Re: F38 adding user to dialout group without reboot
On 12/4/23 17:41, Samuel Sieb wrote: On 12/4/23 14:38, Robert Moskowitz wrote: Got port busy at first, then remembered that I improperly terminated screen run from sudo. So actually screen still was running and keeping the port busy. Easiest fix was pulling the usb cable to the esp32 and reinserting. If you're using Arduino IDE with an ESP32, you might want to check out https://esphome.io/ instead. I am using ESP32s3 for drone Remote ID. Starting with: https://github.com/jjshoots/RemoteIDSpoofer/tree/master I then hope to add to this with more "standard" openremoteID code and add support for our IETF DRIP work. And the person I am working with on this uses Arduino IDE... -- ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
Re: F38 adding user to dialout group without reboot
El 4/12/23 a las 22:38, Robert Moskowitz escribió: I have added me to group dialout: $ groups rgm rgm : rgm wheel dialout But I cannot access /dev/ttyUSB0 screen /dev/ttyUSB0 115200 Does not work but: sudo screen /dev/ttyUSB0 115200 does. Dr. Google seems to think I need a reboot for this to work. I have too many things running to want to reboot. Actually I am trying to get the Arduino IDE stuff to work and it wants to use the ttyUSB0 and gets permissions denied. Is rebooting the only option? Logout and login again must work -- ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
Re: F38 adding user to dialout group without reboot
On 12/4/23 18:14, Samuel Sieb wrote: On 12/4/23 14:58, Robert Moskowitz wrote: the download worked. Last message was Hard resetting via RTS pin... and nothing. I hope I have not bricked it. Waiting for my colleague that works with these things (but on Win) to get back to me. You basically can't brick an ESP. You can always flash it again. Does your S3 have two USB ports? If so, then one of them should be wired to a UART converter. That one should give you serial output. This is rather off-topic for the list, but you can email me directly if you want. Thanks for the offer. My colleague told me just to push the reset. And it came up, but other issues specific to the code. Having a bit of fun, but I really want this working by tomorrow so I can show up at the symposium and be a bit of a trouble maker... :) -- ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
Re: F38 adding user to dialout group without reboot
On 12/4/23, Robert Moskowitz wrote: > I have added me to group dialout: > > $ groups rgm > rgm : rgm wheel dialout > > But I cannot access /dev/ttyUSB0 > > screen /dev/ttyUSB0 115200 > > Does not work but: > > sudo screen /dev/ttyUSB0 115200 > > does. > > Dr. Google seems to think I need a reboot for this to work. I have too > many things running to want to reboot. > > Actually I am trying to get the Arduino IDE stuff to work and it wants > to use the ttyUSB0 and gets permissions denied. > > Is rebooting the only option? You can invoke the `newgrp` command to enable a new group without logging out or obtaining a new login shell via `sudo` or the like: $ newgrp dialout https://linux.die.net/man/1/newgrp -- ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
Re: F38 adding user to dialout group without reboot
On Mon, Dec 4, 2023 at 5:38 PM Robert Moskowitz wrote: > > Working! > > Got port busy at first, then remembered that I improperly terminated > screen run from sudo. So actually screen still was running and keeping > the port busy. Easiest fix was pulling the usb cable to the esp32 and > reinserting. > > Code now downloading. Be careful if you want exclusive access to the serial port. You have to take extra steps to ensure others, like ModemManager and other users, do not open and probe the serial port while you are using it. Your C code it will look something like this on an open file descriptor: fd = open(device_path, O_RDWR | O_NOCTTY | O_SYNC); if (fd == -1) { log_error("Failed to open device %s: %s\n", device_path, strerror(errno)); ret = errno; goto finished; } /* Verify the modem is a terminal we can configure and control */ if (!isatty(fd)) { log_error("Device %s is not a tty\n", device_path); close(fd); fd = 0; ret = ENOTTY; goto finished; } /* NetworkManager and ModemManager will try to open our device */ /* on occasion. Set TIOCEXCL to ensure we get exclusive access */ if (ioctl(fd, TIOCEXCL, NULL) == -1) { log_warn("Failed to set TIOCEXCL on device: %s\n", strerror(errno)); } Jeff -- ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
Re: F38 adding user to dialout group without reboot
On 12/4/23 14:58, Robert Moskowitz wrote: the download worked. Last message was Hard resetting via RTS pin... and nothing. I hope I have not bricked it. Waiting for my colleague that works with these things (but on Win) to get back to me. You basically can't brick an ESP. You can always flash it again. Does your S3 have two USB ports? If so, then one of them should be wired to a UART converter. That one should give you serial output. This is rather off-topic for the list, but you can email me directly if you want. -- ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
Re: F38 adding user to dialout group without reboot
On 12/4/23 14:49, Robert Moskowitz wrote: On 12/4/23 17:41, Samuel Sieb wrote: On 12/4/23 14:38, Robert Moskowitz wrote: Got port busy at first, then remembered that I improperly terminated screen run from sudo. So actually screen still was running and keeping the port busy. Easiest fix was pulling the usb cable to the esp32 and reinserting. If you're using Arduino IDE with an ESP32, you might want to check out https://esphome.io/ instead. I am using ESP32s3 for drone Remote ID. Starting with: https://github.com/jjshoots/RemoteIDSpoofer/tree/master I then hope to add to this with more "standard" openremoteID code and add support for our IETF DRIP work. And the person I am working with on this uses Arduino IDE... ok, that's for a specific application. Carry on. :-) -- ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
Re: F38 adding user to dialout group without reboot
the download worked. Last message was Hard resetting via RTS pin... and nothing. I hope I have not bricked it. Waiting for my colleague that works with these things (but on Win) to get back to me. On 12/4/23 17:41, Samuel Sieb wrote: On 12/4/23 14:38, Robert Moskowitz wrote: Got port busy at first, then remembered that I improperly terminated screen run from sudo. So actually screen still was running and keeping the port busy. Easiest fix was pulling the usb cable to the esp32 and reinserting. If you're using Arduino IDE with an ESP32, you might want to check out https://esphome.io/ instead. -- ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue -- ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
Re: F38 adding user to dialout group without reboot
On 12/4/23 14:38, Robert Moskowitz wrote: Got port busy at first, then remembered that I improperly terminated screen run from sudo. So actually screen still was running and keeping the port busy. Easiest fix was pulling the usb cable to the esp32 and reinserting. If you're using Arduino IDE with an ESP32, you might want to check out https://esphome.io/ instead. -- ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
Re: F38 adding user to dialout group without reboot
Working! Got port busy at first, then remembered that I improperly terminated screen run from sudo. So actually screen still was running and keeping the port busy. Easiest fix was pulling the usb cable to the esp32 and reinserting. Code now downloading. thanks! On 12/4/23 17:28, Chris Adams wrote: Once upon a time, Robert Moskowitz said: I have added me to group dialout: $ groups rgm rgm : rgm wheel dialout But I cannot access /dev/ttyUSB0 screen /dev/ttyUSB0 115200 Does not work but: sudo screen /dev/ttyUSB0 115200 does. Dr. Google seems to think I need a reboot for this to work. I have too many things running to want to reboot. No, you don't need to reboot... but you do need to logout (which might be close to the same thing). Group modifications are only applied to new user sessions; you can see this with the "id" command. For terminal stuff, you can get away with re-authenticating that terminal, like "exec sudo -su $(id -un)". -- ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
Re: F38 adding user to dialout group without reboot
I tried: exec sudo -E -u "$USER" "$SHELL" No longer no permissions but now Error opening serial port '/dev/ttyUSB0'. (Port busy) On 12/4/23 16:38, Robert Moskowitz wrote: I have added me to group dialout: $ groups rgm rgm : rgm wheel dialout But I cannot access /dev/ttyUSB0 screen /dev/ttyUSB0 115200 Does not work but: sudo screen /dev/ttyUSB0 115200 does. Dr. Google seems to think I need a reboot for this to work. I have too many things running to want to reboot. Actually I am trying to get the Arduino IDE stuff to work and it wants to use the ttyUSB0 and gets permissions denied. Is rebooting the only option? -- ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue -- ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
Re: F38 adding user to dialout group without reboot
Once upon a time, Robert Moskowitz said: > I have added me to group dialout: > > $ groups rgm > rgm : rgm wheel dialout > > But I cannot access /dev/ttyUSB0 > > screen /dev/ttyUSB0 115200 > > Does not work but: > > sudo screen /dev/ttyUSB0 115200 > > does. > > Dr. Google seems to think I need a reboot for this to work. I have > too many things running to want to reboot. No, you don't need to reboot... but you do need to logout (which might be close to the same thing). Group modifications are only applied to new user sessions; you can see this with the "id" command. For terminal stuff, you can get away with re-authenticating that terminal, like "exec sudo -su $(id -un)". -- Chris Adams -- ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
F38 adding user to dialout group without reboot
I have added me to group dialout: $ groups rgm rgm : rgm wheel dialout But I cannot access /dev/ttyUSB0 screen /dev/ttyUSB0 115200 Does not work but: sudo screen /dev/ttyUSB0 115200 does. Dr. Google seems to think I need a reboot for this to work. I have too many things running to want to reboot. Actually I am trying to get the Arduino IDE stuff to work and it wants to use the ttyUSB0 and gets permissions denied. Is rebooting the only option? -- ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue