I am wondering if the additional serial ports as implemented in Marlin act independently from one another. Meaning is each is it’s own bi-directional communication path? I am currently using a pendant with hard coded buttons via an Arduino that ties into serial port 0 on the serial extension connector. I think it is not getting the correct returns over serial though. I am guessing this may be because serial port 0 is also the USB port that Octoprint is utilizing. Below is from configuration.h . If I set up a second serial port like this and rewire the pendant to serial port 1, I am wondering if it will be isolated from the other connections and the returns will be more readable. Most importantly though, will injected commands still be taken from the second port/host?
/**
* Select a secondary serial port on the board to use for communication with the host.
* Currently Ethernet (-2) is only supported on Teensy 4.1 boards.
* :[-2, -1, 0, 1, 2, 3, 4, 5, 6, 7]
*/
#define SERIAL_PORT_2 1
#define BAUDRATE_2 250000 // :[2400, 9600, 19200, 38400, 57600, 115200, 250000, 500000, 1000000] Enable to override BAUDRATE