I have an Arduino micro connected to a Bluetooth module that successfully streams live data from the arduino to my desktop serial. When connected via usb I am receiving around 530 submissions per second, however when I connect it over bluetooth (with exactly the same code, except change serial to serial1) I'm only getting 170 submissions per second.
I've put a count++ in the code to check no submissions are missing and appears that they are all there, but going through rx tx on pins 0 and 1 seems to slow the whole thing down.
To check it wasn't the Bluetooth module I used a usb to TTL serial cable and I was getting the same 170 submissions per second.
I'm using 38400 baud rate but to make things weirder, anything above that and the serial now becomes jerky with no speed improvements. I've tried this on my other spare micro and the same thing happens
Serial is slower than USB?
A Arduino Micro speaks native USB, and I'm pretty sure that even though it is emulating a "Communications Port" set at 38400bps, there is nothing there that actually limits the transmission rate.
westfw:
Arduino Micro speaks native USB, and I'm pretty sure that even though it is emulating a "Communications Port" set at 38400bps, there is nothing there that actually limits the transmission rate.
There is no serial port being used for the communication in the Micro - or the Leonardo of which it is simply a compact version - since the USB interface is actually internal to the MCU.
The "baudrate" is therefore completely meaningless; data flow is limited only by the USB (1.0) protocol, and is much faster than a serial port. This applies equally to other devices where the USB is integral.
(I was trying to recall that when I first saw this question - believe it or no!)