Connect USB honeywell barcode reader to Moteino

Started by barbaran, April 23, 2018, 10:39:05 AM

barbaran

Hi all,

For a project we need to connect to a Honeywell bar code reader. In particular the model is the N5680SR-BR0-215. https://www.quad.de/epages/qios.sf/en_GB/?ObjectPath=/Shops/qios/Categories/OEM_Produkte/%22OEM%20Scanner%22/Scan_Module/Imager_Scanmodule/Honeywell_N5680N5690

This barcode reader in particular provides a microUSB and we have tested it with an USB connection with a Raspberry pi. The reading is perfect with a Python program. From software point of view we only have to send a serial message in order to get the bar code reading.

For this project we need to change the raspberry pi for a Moteino or a Moteino USB so we can communicate the Moteino USB with the barcode reader. To do so we are thinking on using a micro-USB male to a micro-USB male. However, we have tried to connect the USB by cutting it and connecting it to the barcode (please see image attached), and we have also deal with the power lines. We have also developed a sketch that writes characters needed to talk to the barcode reader and nothing is written as we cannot see the TX or RX leds flash and the barcode does not send anything back to the moteino. We might not be respecting USB protocols.

I hope my explanation is not too confused...  ::) Please ask me the questions you need in order to understand better our problem.

Is there any option to make it work?

Many thanks in advance.

Regards,

Javier.

Felix

#1
Quote from: barbaran on April 23, 2018, 10:39:05 AM
This barcode reader in particular provides a microUSB and we have tested it with an USB connection with a Raspberry pi

Javier,
What exactly is the interface from the barcode reader? Serial? Or USB-serial?
The current AVR based Moteinos don't have a way to interface to a USB slave device. In other words there is no USB host functionality in the Moteino-USB. And making a cable that has USB on both ends and connect them to the reader<->Moteino won't work. The USB interface on Moteino works in USB-UART device mode (via FT321xs USB-serial converter chip). You can only do direct serial interfacing (TTL TX/RX).

barbaran

Hi Felix,
Many thanks for the quick response. This particular model of the barcode reader only provides USB interface, despite is has mounted the Serial connector.

Our other aim is to buy the barcode model that implements Serial protocol, which should work with Moteino via Serial line or even SoftwareSerial.

With the Serial interface it should not be any trouble. It has been a misunderstanding as we expect the barcode to support both Serial and USB.

I will keep you updated with the final solution,

Regards,

Javier.