10 years, 5 months ago.

Easiest way to implement some sort of 1Mbps+ serial port?

HI,

I am trying to sniff/log/analyze the CAN Bus in a car, and I need to be able to transfer the data to my computer for processing (in real-time) faster than the serial port (rs232) will allow.

What is a good way to make use of the USB's speed, while maintaining an arbitrary serial port type device that I can easily access?

I'm thinking of some USB HID type implementation that I can write a nice python interface for. Looking for a solution that uses readily available USB driver.

Using: 1768Mbed+SeeedStudio mbed Shield (has CAN built-in), Windows/Linux/Mac.

Any suggestions?

Thanks in advance! -Rob

Not really a solution, but afaik USB HID is fairly slow, not intended for very fast transfers. Maybe you can figure out what kind of USB protocol for example Salea logic analysers use (and similar USB scopes which just stream data extremely fast to your PC).

posted by Erik - 24 Jun 2014

This may be a silly question, i've not checked your specific parts, any way you can run the serial port fast enough and so avoid the problem? I've not had any problems with mbed ports at 460kbit/s and 1Mb/s is often possible. You'd need to use a buffered port of some sort (e.g. MODSERIAL) but on the mbed side of the link RS232 should be good enough.

It may depend if your PC will let you set the ports fast enough or not.

posted by Andy A 24 Jun 2014
Be the first to answer this question.