this post was submitted on 26 Jan 2025
677 points (97.9% liked)
Linux
49393 readers
1374 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Can anybody comment on their experience using Arduino and ESP with Linux? Especially does Linux handle COM ports better than Windows? There's a seemingly immortal problem of COM ports becoming unusable until you go into Device Manager and uninstall them (again and again) - and if that doesn't work, reboot Windows. I experience this less often now than say 5 or 6 years ago, and sometimes it's my fault, but jeez.
Yes, com ports work way better than in windows. I've done a lot of embedded development on linux and it's way more pleasant than in windows. One thing you do have to keep in mind is that access to com ports (USB and real) requires root access by default, but once you've set the udev rule up, it becomes accesible to normal users and/or group of users. After that, it works flawlessly. Android dev also works great and imo better than on win. Proprietary jtags may be an issue, but I've never actually had an unsolvable situation.
Thank you, that's massively helpful! Pasting your comment into my ESP32 project notes so when I soon move to Linux I can remember to figure out the udev rule and jtags.
Running this command was the only thing required for me to get access to the com ports. After that, everything worked perfectly.
sudo usermod -a -G dialout $USER
(note that $USER is part of the command - do not replace that with your actual username)
Pasting this right into my project doc. Thanks so much!
Same, programmed an arduino last week, that was all I had to do too
I've had wemos d1 boards from AliExpress show up as a brltty and the braille teletype driver grabs the device. Just something to look out for on some distros
That's a bizarre glitch I never would have known to look for - thanks!
Yeah I'd rather deal with this than a blind persons gear not work
I regularily program Arduinos in Arduino IDE v2 (https://flathub.org/apps/cc.arduino.IDE2) and ESPs via the ESPHome web flasher and the esphome CLI tool.
Works flawlessly once you added yourself to the dialout group as mentioned by @StorageB@lemmy.one.
COM ports as handled by Windows is misery anyways. Linux definitely does it better
You might have issues with permissions for serial ports on some distros, but there are loads of easy to follow guides for that. Linux definitely handles them better than windows though. I never had issues where they just stop working like on Windows.
It's mostly a breeze. The only misery I can recall is I remember I had a wonky knockoff Arduino board that kept jumping serial ports, but that was a hardware issue.