I am trying to use a serial device connected to a Raspberry Pi, an ethernet switch (will eventually be replaced with a satellite network, but not right now), to another Raspberry Pi then to a computer. Here is my setup:
Serial device --> (serial to usb) --> Pi Server --> (ethernet switch) --> Pi Client --> (usb to serial) --> computer reading serial port
I am locked into this setup and my task is to allow serial data to flow back and forth between the computer and the device. Unfortunately my serial device does not send data unless it first receives a command from the computer, which makes it difficult to troubleshoot because the whole chain has to be working.
I know next to nothing about networking but have been reading a ton online and it seems like socat and ser2net will work for my use. However I cannot get the setup to work. Am I on the right track here? Am I missing something? This should be easy, right? I just want to make sure this will theoretically work before I continue banging my head against the wall. Thank you for any advice and tips.