Like I said earlier, I added the user to the dialout group (using that usermod 
command below) and that fixed my issue.

My system does not show /dev/ttyUSB0 as locked  (I can't say for sure if that 
was the case before I added dialout to the user's groups.

"stat /dev/ttyUSB0"  does contain  Gid: ( 20/ dialout)

Todd Zuercher
P. Graham Dunn Inc.
630 Henry Street
Dalton, Ohio 44618
Phone:  (330)828-2105ext. 2031

-----Original Message-----
From: zz...@seznam.cz <zz...@seznam.cz>
Sent: Wednesday, May 08, 2024 1:45 PM
To: Enhanced Machine Controller (EMC) <emc-users@lists.sourceforge.net>
Subject: Re: [Emc-users] Mb2hal 2.9?

[You don't often get email from zz...@seznam.cz. Learn why this is important at 
https://aka.ms/LearnAboutSenderIdentification ]

[EXTERNAL EMAIL] Be sure links are safe.

Bookworm has /dev/ttyUSB "locked"
File icon has red cross

stat /dev/ttyUSB0

Check if it contain:

Gid: ( 20/ dialout)

Then:

sudo usermod -a -G dialout $USER

"---------- Původní zpráva ----------
Od: Todd Zuercher via Emc-users <emc-users@lists.sourceforge.net>
Datum: 08.05.2024 19:27:15
Předmět: Re: [Emc-users] Mb2hal 2.9?

Thanks Gene,

I'm not sure that, bug is completely relevant to my issue. As my Mb2hal config 
never used serial/by-id. It has always used /dev/ttyUSB0 to address the RS485 
device. Maybe serial by id might be a better way to address the specific serial 
port used, but I am not even sure if it is even be supported by Mb2hal or 
exactly how to set it up that way (none of the example Mb2hal configurations 
use it.) And even if it were possible, I'm not sure if I still would have had 
the permission problems and I would have also had to fix the udev bug first. 
Changing the permission is all I needed to do to get this working as it was 
before.

Todd Zuercher
P. Graham Dunn Inc.
630 Henry Street
Dalton, Ohio 44618
Phone: (330)828-2105ext. 2031

-----Original Message-----
From: gene heskett
Sent: Wednesday, May 08, 2024 12:23 PM
To: emc-users@lists.sourceforge.net
Subject: Re: [Emc-users] Mb2hal 2.9?

[EXTERNAL EMAIL] Be sure links are safe.

On 5/8/24 08:13, Todd Zuercher via Emc-users wrote:
> No, they are not. The old pc was running Ubuntu 10.04. (Because that
> was
the last Linuxcnc distro that seemed work with this old pc and it's ISA IO
card.) The new PC is running Debian 12 (installed using an ordinary Debian net 
install iso).
>
> The groups the user belongs to on the PC are "adm, dialout, cdrom,
plugdev, lpadmin, admin, and sambashare". The groups for the new PC are "cdrom, 
floppy, sudo, audio, dip, video, plugdev, users, netdev, lpadmin, and scanner"
>
> So, I'm not sure, to my unskilled eye, it would seem that "dialout"
> might
be the most logical possible permission deficiency, but I'm not sure if "dip" 
might be an equivalent replacement for that.
>
Your debian 12 install has the udev bug I sent you a link to the fix already. 
It restores the missing two lines that setup the serial/by-id stuff for usb.

> Todd Zuercher
> P. Graham Dunn
> Inc.>
> http://www.p/
> grahamdunn.com%2F%252Findex.php%26data%3D05%257C02%257Ctoddz%2540&data
> =05%7C02%7Ctoddz%40pgrahamdunn.com%7C59f83c23425d48a02e7308dc6f8b585a%
> 7C5758544c573f47cebee96c3e0806fb43%7C0%7C0%7C638507891505884667%7CUnkn
> own%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwi
> LCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=AiUEBo31wTc8tCmh01ycujCEAsHQS1vaCpN0
> RI5YgCM%3D&reserved=0
pgrahamdunn.com
> %7Cf9247dc4415e4c243c9a08dc6f7b57d0%7C5758544c573f47cebee96c3e0806fb43
> %7C0%7C0%7C638507822770580921%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAw
> MDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=
> C4dBybKwKVpfOPShClzy%2BeP0urLVchdbYjNJ726xmHM%3D&reserved=0>
> 630 Henry Street
> Dalton, Ohio 44618
> Phone: (330)828-2105ext. 2031
>
> From: andy pugh
> Sent: Wednesday, May 08, 2024 4:18 AM
> To: Enhanced Machine Controller (EMC)
>
> Cc: Todd Zuercher
> Subject: Re: [Emc-users] Mb2hal 2.9?
>
>
> [EXTERNAL EMAIL] Be sure links are safe.
>
>
> On Wed, 8 May 2024 at 02:15, Todd Zuercher via Emc-users > wrote:
> It was already set to 3.
>
> What is your MB2HAL load line?
> What does lsusb call the dongle?
>
> Are the two PCs in question running the same version of Linux?
>
> --
> atp
> "A motorcycle is a bicycle with a pandemonium attachment and is
> designed
for the especial use of mechanical geniuses, daredevils and lunatics."
> - George Fitch, Atlanta Constitution Newspaper, 1912
>
> _______________________________________________
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://list/
> s.sourceforge.net%2Flists%2Flistinfo%2Femc-users&data=05%7C02%7Ctoddz%
> 40pgrahamdunn.com%7Cf9247dc4415e4c243c9a08dc6f7b57d0%7C5758544c573f47c
> ebee96c3e0806fb43%7C0%7C0%7C638507822770589530%7CUnknown%7CTWFpbGZsb3d
> 8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C
> 0%7C%7C%7C&sdata=SgEuARxP0MmsgoB3BljySPtlJKAxijEVAv8qQbwQYYU%3D&reserv
> ed=0

Cheers, Gene Heskett, CET.
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis



_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users
"
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to