I have a USB host shield connected to a UNO. As a starting point, I'm using the USB_desc script from the USB Host Shield Library 2.0. Ultimately, I would like to connect to a simple Silicon Labs CP210x device.
In the serial monitor, although I get the initial 'Start', after that I get unintelligible strings of characters (including Chinese, Russian, reverse question marks and square shapes), and the timing of the strings corresponds to times when information is sent through (according to a Serial Port Monitor application on my desktop computer).
I'm hoping there's something in the code that I can change to obtain recognisable character strings? Does anyone have any suggestions?
Whatever you do, do NOT tell us what is sending the data, do NOT show your code, and, most importantly, do NOT show us the serial output. If you do any of those things, someone just might accidentally provide a clue.
The device I'm using is a very simple Silicon Labs CP210x RFID reader, the code is the standard USB_desc code with nothing changed from the default (attached), and the symbols don't copy well from the serial monitor into this form (hence the description in the previous message rather than including the output itself). Here's a sample of the first few lines after connecting the device, to illustrate the format:
I found the problem - I checked the Device Manager in Windows, and my device is running at a baud rate of 9600, not the default speed (115200) set in the USB_desc script. I'm getting the output I expected now.
LiamB55:
I found the problem - I checked the Device Manager in Windows, and my device is running at a baud rate of 9600, not the default speed (115200) set in the USB_desc script. I'm getting the output I expected now.
USB devices do not operate at baud rates. That's a serial thing.