Hello,
This is the description of my project.
I want to convert a Qr Code reader to an iOT device connected to AWS IOT. For the QR Code reader i have already some units of this one : https://www.barcoda.fr/142438-scanner-client-sunmi-blink.html
For the iOT part i have choose an Arduino MKR1010 for the wifi capabilities and the usb host.
So to start something on my project, i have tried to make the arduino and the QrCodeReader communicate.
I am still blocked on this step ... This is why i came here to talk with the community and find a solution.
The blink has two mode of communication though usb. USB Serial Port or USB KBW+HID.
The first thing i have tried has been to configure the blink in the USB Keyboard Hid mode and connect it the usb host (i have source this arduino for that) of the arduino. To debug what happen in the arduino i have connect it to the computer through the serial pins (13 / 14) and i have load the usb host keyboard example inside the arduino IDE. Nothing is logged inside the console.
After that i have tried to switch the QRCode reader to the serial port configuration. I have obtain from the manufacturer support the configuration of the serial com (115200 speed) and verified it on my mac with an app like putty to establish com communication. This time, I have start with a clean program on my arduino and use the Serial object (represent the usb port) and open a communication with the good speed and tried to read the bytes emitted by the QrReader. Nothing reached the arduino. I really don't understand why, maybe there is something i don't understand about the serial communication over usb and can not work like that. When the device is connected to a computer it show itself as a Virtual com port so i think the OS is doing something that the arduino doesn't to establish this connection ?
I have also tried to cut an usb cable to expose the wires and wire it directly to the TX / RX pin of my arduino and use the Serial1 object to read data but i still can't read anything.
It is very hard to find documentation of this kind of project over internet. I think i'm miss understanding the kind of communication that my Qr code reader is using. Maybe i need a USB to ttl card ?
Your thinking, your knowledge or your help is very much appreciated. I hope I am misunderstanding something and an easy solution is possible.
Thanks !