Hi Giovanni,
I need your help for your serial usb driver.
I want to send a serial message for a GPS over usb.
First I copy your USB_CDC test code, but how can I send a serial message?
Regards,
Odie
Need help for serial usb
Moderators: RoccoMarco, lbednarz, tfAteba
Re: Need help for serial usb
Hello Odie,
do you intend to connect the GPS device to the USB socket? If so, that will probably not work. The usb serial interface is meant to connect to a computer.
Regarding how to write to the serial usb driver: I think SerialUSBDriver implements a BaseAsynchronousChannel, so you can use it the same way as every serial driver.
do you intend to connect the GPS device to the USB socket? If so, that will probably not work. The usb serial interface is meant to connect to a computer.
Regarding how to write to the serial usb driver: I think SerialUSBDriver implements a BaseAsynchronousChannel, so you can use it the same way as every serial driver.
Re: Need help for serial usb
Hello mabl,
I am so stupid. Now I use sdAsynchronousWrite() and it works fine.
Thanks for your help!
I am so stupid. Now I use sdAsynchronousWrite() and it works fine.
Thanks for your help!