Hello,
After a couple of days of research I've ran out of hope to find an answer on my own. I need to connect HID peripheral as an input to my
Arduino Uno microcontroller. The peripheral is a barcode scanner that has a USB connector, but has the following interfaces:
Thinking it's going to be a cake I set the scanner for RS232 interface at 9600 baud, 8-bit data, no parity, and 1 stop bit. I then connect it to Arduino's USB port and run the following code on Uno:
void setup() {
/* Setup serial communication at 9600 baud */
Serial.begin(9600);
}
void loop()
{
if (Serial.available() > 0)
{
/* Do something */
}
}
Alas, Arduino goes all the way through the
setup(), but never makes it inside the
loop()'s if-statement when the scanner transmits data.
What am I missing here? Is my setup even possible? If not could I adapt it to something like this:
http://arduino.cc/playground/ComponentLib/BarcodeScanner ?