11 years, 1 month ago.

New USBHostSerial library - Question

Hello mbed experts,

I am planning to deploy the USBHostSerial library for communication with an Inertal measurement unit (YEI Three Space Sensor). This device is capable of communicating with a host via USB CDC as a virtual serial port. The basic communication protocol is well documented by the manufacturer, so once serial communication is established, data acquistion via USB should be possible.

Here are my questions:

  • Basically, is the USB Host library capable of communicating as CDC device in such a scenario?
  • Is the baud() function really impacting transmission speed? Usually the information is given that CDC devices communicate "at the speed of USB". Does the baud function have an effect?
  • One question about performance: I would like to read sensor values at up to 800 Hz, This is possible via SPI. If I request a sample, I first need to send a command. Therefore, each sample requires a) Sensor data request and b) Sensor data transmission to the host (mbed in this case). The maximum data size per sample would be 36 bytes. Is this feasible?

Thank you in advance for any advice!

Be the first to answer this question.