Debian Buster - serial issue

More
30 Oct 2022 14:31 #255439 by Mud
Hi all,

I have freshly installed Debian Buster from the buildbot, so I can run 2.9 for qtplasmac. If I try to run pmx485-test it says "pyserial module not available" and how to install it, but the terminal says python-serial is already the newest version (3.4-4). What am I doing wrong?

I should add I'm using a DTECH DT-5019 - is this plug and play? I couldn't find any install notes. The active light is red.

Thanks in advance :)

Please Log in or Create an account to join the conversation.

More
30 Oct 2022 14:52 #255440 by tommylight
Not sure if this is the issue, but in Linux everything needs it's permissions, even serial ports, or more clearly, the user needs access rights to serial port.
Whenever i bump into access denied or port not found on Linux, i search for arduino as more people use them hence easier to find, so try adding you user to dialout group, so here is a link to several options, from how to find the serial port in use to setting permissions for it:
forum.arduino.cc/t/permission-denied-on-dev-ttyacm0/475568

Please Log in or Create an account to join the conversation.

More
30 Oct 2022 18:01 #255470 by Mud
Replied by Mud on topic Debian Buster - serial issue
If I'm understanding correctly it already had the permissions:

crw-rw---- 1 root dialout 188, 0 Oct 30 17:48 /dev/ttyUSB0

Running the chmod line added an extra rw, which I'm assuming is redundant:

crw-rw-rw- 1 root dialout 188, 0 Oct 30 17:48 /dev/ttyUSB0

I get the same error as before, "pyserial module not available".

Please Log in or Create an account to join the conversation.

More
30 Oct 2022 18:05 #255471 by Mud
Replied by Mud on topic Debian Buster - serial issue
PS, is it possible that I am missing a directory? I can't find the linuxcnc-dev folder mentioned in the manual:
For a run in place installation enter the following two commands in a terminal window:

source ~/linuxcnc-dev/scripts/rip-environment
pmx485-test

Please Log in or Create an account to join the conversation.

More
30 Oct 2022 19:57 #255480 by tommylight

If I'm understanding correctly it already had the permissions:

crw-rw---- 1 root dialout 188, 0 Oct 30 17:48 /dev/ttyUSB0

crw-rw-rw- 1 root dialout 188, 0 Oct 30 17:48 /dev/ttyUSB0

Those are for user root and group dialout.
You have to add your user name to dialout group.
The following user(s) said Thank You: Mud

Please Log in or Create an account to join the conversation.

More
30 Oct 2022 20:34 #255488 by arvidb
Replied by arvidb on topic Debian Buster - serial issue

PS, is it possible that I am missing a directory? I can't find the linuxcnc-dev folder mentioned in the manual:
For a run in place installation enter the following two commands in a terminal window:

source ~/linuxcnc-dev/scripts/rip-environment
pmx485-test


Unless you've built LinuxCNC from source (and elected not to use 'make install') you are not using a "run in place" (rip) installation, so that part does not apply to you.
The following user(s) said Thank You: Mud

Please Log in or Create an account to join the conversation.

More
30 Oct 2022 21:58 - 30 Oct 2022 22:14 #255496 by phillc54
For QtPlasmaC you need python3-serial.

Edit: For a package install python3-serial is in the -dev package.
Last edit: 30 Oct 2022 22:14 by phillc54.
The following user(s) said Thank You: Mud

Please Log in or Create an account to join the conversation.

More
01 Nov 2022 15:35 #255669 by Mud
Replied by Mud on topic Debian Buster - serial issue
Great, getting somewhere - got serial comms now, including in qtplasmac :)

Possibly a daft question not deserving its own thread (though admittedly misplaced here) - my Arc Ok LED in qtplasmac does not light even though the input on the 7i96 shows the state changing (as does HAL meter) - is that normal behaviour?

Please Log in or Create an account to join the conversation.

More
01 Nov 2022 22:24 #255701 by phillc54
The torch on output needs to be on before an arc ok input can be active. You may be able to test it using a torch pulse user button with a long enough pulse duration.
The following user(s) said Thank You: Mud

Please Log in or Create an account to join the conversation.

More
02 Nov 2022 07:25 #255759 by Mud
Replied by Mud on topic Debian Buster - serial issue
Makes sense, I think I'll bypass testing it and go straight to trying to use it :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.117 seconds
Powered by Kunena Forum