[Arduino C++ IDE] configure usb serial port on Linux [message #1716171] |
Tue, 01 December 2015 21:14 |
Vlad Gheorghe Messages: 127 Registered: May 2011 |
Senior Member |
|
|
Hi Doug,
Thank you for the great present that you made early this year to the Arduino community.
After trying it out over the week-end on my old projects, I can say that everything looks great, with some rough edges.
I'll try to explain one of the issues that should be fixed.
I have a Micro (miniaturized Leonardo) / Ubuntu 14.04.
Because of some design decisions (usb serial on same chip as the main uC), these boards USB connection can get reset while they are plugged, and they get *re-enumerated*.
Therefore, my *single* Micro device will get, under normal development use, one of the ports /dev/ttyACM{0,1,2,3}.
See
https://www.arduino.cc/en/Guide/ArduinoLeonardoMicro#toc3
https://www.arduino.cc/en/Guide/ArduinoLeonardoMicro#toc12
For Linux/udev, the solution that I find most elegant (and it can also solve the identification of multiple boards), is creating custom UDEV rules.
( e.g. http://www.joakimlinde.se/microcontrollers/arduino/avr/udev.php )
In my case, my board is also mapped to /dev/micro.
Now - to the Arduino IDE.
The IDE only allows the selection of /dev/tty(USB|ACM)[0-9] as device file name.
This does not accommodate for the use case above.
Also, it does not handle the device file name change ( which I think it should not ).
As a work-around - I had to edit the configuration files to force the device file to /dev/micro.
So the request is to allow the arduino usb serial file name to be arbitrary.
Best regards
Vlad Gheorghe
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02872 seconds