-
-
Notifications
You must be signed in to change notification settings - Fork 795
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
miniterm requires sudo #257
Comments
Thanks a lot for report! I'll look into it later. The quick solution to avoid "permission denied" is to add |
Thanks @ivankravets, I did add the udev rule, but it had no effect. I should note that I'm running Ubuntu in a chroot, and sharing the kernel with Chrome OS, which might prevent the rule from working. |
Give please an output of this command:
|
Here ya go: $ platformio serialports list
/dev/ttyS3
----------
Hardware ID: n/a
Description: ttyS3
/dev/ttyS2
----------
Hardware ID: n/a
Description: ttyS2
/dev/ttyS1
----------
Hardware ID: n/a
Description: ttyS1
/dev/ttyS0
----------
Hardware ID: n/a
Description: ttyS0
/dev/ttyACM0
------------
Hardware ID: USB VID:PID=16c0:048b SNR=440040
Description: ttyACM0 |
Looks like Teensy board? See https://github.com/platformio/platformio/blob/develop/scripts/99-platformio-udev.rules#L50:L54 Could I ask you to add this line to the bottom of
Seems that these lines don't work:
|
On Tue, Jul 28, 2015 at 1:23 PM, Ivan Kravets notifications@github.com
Gave it a try, no change. Thanks for your continued effort! |
Do you see any log messages from "udev" in |
Before rebooting: no output. After rebooting:
Oddly, there is no file on my system named |
Where did you place 99-platformio-udev.rules? From that file: # This file must be placed at:
# /etc/udev/rules.d/99-platformio-udev.rules (preferred location)
# or
# /lib/udev/rules.d/99-platformio-udev.rules (req'd on some broken systems)
#
# To install, type this command in a terminal:
# sudo cp 99-platformio-udev.rules /etc/udev/rules.d/99-platformio-udev.rules
#
# Restart "udev" management tool:
# sudo service udev restart
# or
# sudo udevadm control --reload-rules
# sudo udevadm trigger Looks like Another solution how to test |
Thanks, I've just fixed it. PlatformIO 2.2.2 will be released today. |
Cool, that ought to help if this comes up for anyone else. Thanks for this. |
PlatformIO 2.2.2 is out! Try P.S: Did you resolve issue with udev? |
Will upgrade soon! I had no luck with udev, but I know I'm an edge case, and this solves my problem well enough for development purposes: alias serial='sudo platformio serialports monitor' |
You need to ask Chrome OS community how to force udev to use own rules. Your solutions look good. However, I don't recommend to use "sudo" with PlatformIO. PlatformIO uses P.S: This is in theory 😄 |
If I try
platformio serialports monitor
there is a slight delay (0.5s) and then my prompt returns to normal. No messages at all. Prefixing with
sudo
works as expected and gives me a normal, functioning serial monitor.It appears python's miniterm is to blame (note permission denied toward the bottom):
Unfortunately for me,
platformio serialports monitor
hides these errors, which made debugging a bit harder. I'm posting this here to let you guys know. Not sure what the ideal solution would be. Forwarding minicom's error message would have been helpful for me, but I can see why you might want to make it less verbose for other people (whose minicom presumably doesn't require root privileges). Maybe add a footnote to the online docs, or even the--help
option somewhere.The text was updated successfully, but these errors were encountered: