Page 1 of 1

Need help for serial usb

Posted: Fri Apr 29, 2011 11:10 am
by odie
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

Re: Need help for serial usb

Posted: Fri Apr 29, 2011 11:43 am
by mabl
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.

Re: Need help for serial usb

Posted: Fri Apr 29, 2011 12:12 pm
by odie
Hello mabl,

I am so stupid. Now I use sdAsynchronousWrite() and it works fine.

Thanks for your help!