I am currently working on a project wich involves an arduino DUE and a honeywell 1900 corded barcode scaner. I need to connect it to the native usb port of the due and recieve the data on my computer. The problem is that the scanner does not start, altough it only needs 450mA. I tried with another scanner wich doesn't have a driver installed and it works perfectly. I also tried to connect it directly to the laptop and it will imediatly start. I looked into the Device Manager and it is recognized there also. I think that the scanner does somekind of handhake with the laptop and this is why it recognises it. What should I do in order for it to work when connected to the DUE board?
Well i need the data on multiple computers at the same time. The board will be the master and the pc-s the slaves. The computers are not connected to a network, and cannot be provided with external software. The data that the scanner reads wil be transmited to serial ports to each of the computers. The only thing that doesn't work is the connection to the scanner. As i said , i tested it with a different model of barcode scanner and it works just fine. I do not know why this specific model does't power on. I believe that the board only provides 100mA as default and because it does't recognize the scanner it doesn;t allow it to draw more power.
If you power the board thru the USB programming port with a PC, and you connect your barcode to the Native USB port, there is a good chance that your board will not sink enough current to power the USB device (barcode).
To know an USB device current consumption, you would need to program your board as a USB Host and retrieve the barcode configuration descriptor. The Maxpower item gives you the maximum power the USB device coould need in multiple of 2 mA. E.g., if MaxPower = 250, the maximum current consumption is 250 * 2 = 500 mA.
See this thread for a workaround in order to power the board with a 9V battery pack:
It seems the native port on the Due is more for low powered devices. Are you able to apply power to the barcode scanner separately?
Also, you have other USB-Serial adapters for connecting to the PCs. Could you try those connected to the barcode scanner?
Hello Jack and happy new year!
I was looking in the specs of the Honeywell scanner and conumes at max 450mA which I hope the Due can provide this.
Anyway I've tried powering on the Due with an external power supply rated at 9v 1.66A but still nothing on the Due.
Another thing is that I cut the USB cable of the Honeywell scanner and provided in paralel with Arduino 5v, 500mA grounds conected and still nothing.
Is wierd that with another barcode scanner and keyboard is working( scanner is Datalogic Gryphon gm4100 BK) but for my application I need to use Honeywell scanners.
I've tried to configure the Honeywell scanner as USB, Keyboard Wedgea and RS-232, but still nothing...
I used the following code:
#include
// Initialize USB Controller
USBHost usb;
// Attach Keyboard controller to USB
KeyboardController keyboard(usb);
What is noticeable is that the Honeywell scanner is seen in device manager of Windows 10 POS BARCODE SCANNER and the other scanner is seen as HID even if the scanner is configured as USB Keyboard
What is noticeable is that the Honeywell scanner is seen in device manager of Windows 10 POS BARCODE SCANNER and the other scanner is seen as HID even if the scanner is configured as USB Keyboard
USB POS (point of sale) is not the same as USB HID keyboard. Option 1) Figure out how to reconfigure the scanner so it appears to be a USB HID keyboard (read the manual). Option 2) Write a USB POS driver. This is very hard. All USB specifications are available at usb.org.