Need help for serial usb

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
odie
Posts: 2
Joined: Thu Apr 28, 2011 2:45 pm

Need help for serial usb

Post 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
mabl
Posts: 417
Joined: Tue Dec 21, 2010 10:19 am
Been thanked: 1 time

Re: Need help for serial usb

Post 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.
odie
Posts: 2
Joined: Thu Apr 28, 2011 2:45 pm

Re: Need help for serial usb

Post by odie »

Hello mabl,

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

Thanks for your help!
Post Reply