Go Down

Topic: Serial communication + mouse emulation at the same time? (Read 932 times) previous topic - next topic


I would like to use the arduino due as a mouse/keyboard and at the same time use serial communication. Is this possible? If i understand it correctly, you have to use the usb native port on the due to emulate a keyboard. In the "getting started" page of the due it says it isn't that simple to use serial communication on the native port. I would be very thankful if somebody could explain (in simple language) how to set up serial communication via the native usb port (what bps rate should I use?).


It should be possible to set up several different types of communication over one USB. Each different type (HID, Serial) can identify itself separately. It must also be possible to do several items of the same type - I have a phone that shows up as 2 storage devices when it's plugged in.

Doing that through the Arduino libraries? I think it might take a lot of deep understanding how USB really works.

SerialUSB doesn't seem to be dependent on baud rate. You declare a baud rate in the SerialUSB.begin() but it doesn't seem to matter if the serial monitor names a different baud rate.

In the worst case, plug in a second USB on the programming port and use Serial.
"The problem is in the code you didn't post."

Go Up