Hello All,
i am working on a project where i need to send serial commands to a device that is connected to the arduino through a USB host shield. I was wondering if anyone has any ideas how i might do it as i have looked through the examples that come with the host shield library and i cant seem to find anything that relates to it. All i want to do is send a serial command through the USB shield to a device and it will run the command. I have tested the command i want to send on the realterm software and it seems to work so now all i want to do is send it though the arduino serial port.
thank you
so now all i want to do is send it though the arduino serial port.
Arduino serial port is easy, but what does that have to do with a USB host shield?
I know arduino serial is easy, i have done it before. What i am talking about is using the USB port on the host shield as a serial port. I want to send serial commands though the USB on the USB host shield to a device.
I'm not real clear on where the message originates. However, if you want to send a message from the Arduino through it's USB host shield to another device with serial input then it can be done. I'm doing about the same thing by sending commands from a laptop through a USB port to the serial1 pins on a Mega2560 at 2Mbps. At some time later, milliseconds, I get a large amount of data back in 38 byte packets, 6 for ID and 32 for data. The trick is to use an FTDI USB/serial converter board between the two devices. The baud value has to be set at each end to the same speed. It may even go faster but the waveforms and data look good at 2Mbps.
fuller0125:
Hello All,
i am working on a project where i need to send serial commands to a device that is connected to the arduino through a USB host shield.
thank you
USB host shield to serial/RS232 examples include acm, ftdi, pl2303, and cdc_XR21B1411. Choose a USB to serial device (FTDI and PL2303 are the most common) then run the corresponding driver library example.
No hijack intended, but I have a similar scenario that I am trying to pass along the serial signal to another host (Windows 7) for use on a laptop over BT.
The source device is an FTDI enabled circuit that I would like to connect to the USB host shield, establish a serial port, then retransmit the serial data to Windows via HC-06 BT and associateD port that the HC enumerates on the PC.
Is this even possible?