Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 6 months ago.
How to access the buffer of the arm processor?
please provide a sample code for interfacing a barcode reader, and store its scanned data in the buffer, and show the data.
1 Answer
9 years, 6 months ago.
What you're asking to do is how to read data from a serial port and then perform some operation based on what was input.
That the data is coming from a barcode reader doesn't matter, it's just serial data.
There are hundreds of examples of how to do this already, you could start with https://developer.mbed.org/handbook/Serial and https://developer.mbed.org/users/4180_1/notebook/id-tech-4439-barcode-scanner/
Once you have some code feel free to ask questions if it doesn't work and people will help you.
My barcode scanner has a USB interface but it can work as a Serial I/O device. As for wire connection, I have tried to connect the four wires of USB out to LPC1768. (Black to GND, Red to Vin, Green to D+, White to D-. But nothing is being read from the scanner by the ARM. Can we not operate like this? How can I connect a USB output as input serial data to ARM?
posted by 12 May 2015