Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeout reading SerialUSB from Arduino DUE or GIGA #179

Closed
dbalsom opened this issue Apr 28, 2024 · 3 comments
Closed

Timeout reading SerialUSB from Arduino DUE or GIGA #179

dbalsom opened this issue Apr 28, 2024 · 3 comments

Comments

@dbalsom
Copy link

dbalsom commented Apr 28, 2024

The Arduino MEGA has a UART implementation (probably something like FTDI)
The Arduino DUE and GIGA boards have native USB serial interfaces.

serialport-rs can enumerate, open, read and write the port from a MEGA.

serialport-rs can enumerate, open the serial port on a DUE or GIGA, but calling read() results in a timeout, even if the Arduino is spinning in a loop printing "hello world" to the SerialUSB interface; so data should always be available.

The units work fine when interfacing via pyserial in a python program.

Baud rate should be irrelevant for the native USB interface but I have tried several values, as well as playing with stop bits and parity.

I'm not sure what else might be helpful in troubleshooting but I'd be happy to provide what I can. If someone needs a GIGA sent to them for troubleshooting I'd be willing to arrange it.

@dbalsom
Copy link
Author

dbalsom commented Apr 28, 2024

Also fixed by #94 .

@sirhcel
Copy link
Contributor

sirhcel commented Apr 29, 2024

Thank you for bringing up this issue and especially the setup for reproducing it! Thank you very much for offering to ship a prepared Arduino device as this will reduce the initial effort to start looking into this dramatically. I would like to look into it and would take your offer.

Could you please prepare an Arduino device with the firmware you described above? Could you please also prepare a repository with the host application using serialport-rs and the sketch on the device? I've send you details for shipment via mail.

@dbalsom
Copy link
Author

dbalsom commented Apr 29, 2024

Thank you for your interest in taking a look.. Sorry if my reply wasn't clear - this issue is fixed by the linked PR

@dbalsom dbalsom closed this as completed Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants