You are not logged in.

#1 2021-10-02 20:00:32

eric.meehan
Member
Registered: 2020-01-01
Posts: 52

[SOLVED] Sending commands over serial port

Hello everyone,

I have a new 3D printer that I want to connect to my Arch Linux machine (no GUI) in order to send my G-Code files directly to the printer.  Arch is detecting the printer, which uses a CH340 chip, and is labeling it as  /dev/ttyUSB1.  When I try to write to the machine, though, nothing happens:


echo "G28" > /dev/ttyUSB1

In another shell (tmux), I am trying to read a response, which should be "OK" after the command is executed.  This post on stack exchange indicated that the baud rate may be the issue, but I did not have any luck with their suggestion.  I'm open to any ideas!

Last edited by eric.meehan (2021-10-03 00:14:54)

Offline

#2 2021-10-02 20:40:41

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: [SOLVED] Sending commands over serial port

You do have read/write permissions for that device?


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#3 2021-10-02 22:28:58

eric.meehan
Member
Registered: 2020-01-01
Posts: 52

Re: [SOLVED] Sending commands over serial port

Yes, my user has been added to uucp group, which owns /dev/ttyUSB1.  Permissions are:

crw-rw---- 1 root uucp

Last edited by eric.meehan (2021-10-02 23:20:33)

Offline

#4 2021-10-03 00:14:27

eric.meehan
Member
Registered: 2020-01-01
Posts: 52

Re: [SOLVED] Sending commands over serial port

Got it!  Using

screen /dev/ttyUSB1 115200

I was able to enter the Grbl command line of the Ender 3!  Now I should be able to do a complete 3D design and print entirely from the command line - next up is the CNC router.

Offline

Board footer

Powered by FluxBB