Welcome! Log In Create A New Profile

Advanced

Looking to Echo Serial 0 to Serial 2 - Marlin 1.X

Posted by distantkitty 
Looking to Echo Serial 0 to Serial 2 - Marlin 1.X
June 09, 2020 01:34PM
Hello,

I'm looking to control my printer via USB with a host program, but I would also like to read values over serial on a second device. More specifically, I would like to parse an M114 command for axis position data.

I have added #define SERIAL_PORT_2 2 in Marlin, but curious how to echo all the data to this port as well.

Thanks!
Re: Looking to Echo Serial 0 to Serial 2 - Marlin 1.X
June 09, 2020 09:28PM
This is not a standard feature...

Its a communication channel, its responds to commands sent on the channel. To get responses on port_2 you need to send commands on port_2...
Re: Looking to Echo Serial 0 to Serial 2 - Marlin 1.X
June 09, 2020 09:44PM
I have been able to successfully open two ports simultaneously and each has display the typical preamble such as build dates and such.

If I start a toolpath on port 0 from the host, my port 2 call of M114, still shows X0 Y0 Z0 E0, which is not indicative of what the coordinates are from the host connection.

I'm not using the LCD, do you know of a way to redirect the lcd print to serial 2?

Thanks!
Sorry, only registered users may post in this forum.

Click here to login