bitfocus / companion-module-tslproducts-umd

MIT License
4 stars 6 forks source link

Output TSL over serial connection #11

Open Seanbucks opened 1 year ago

Seanbucks commented 1 year ago

I'd like to use a native serial connection or usb-to-serial adapter to output TSL over RS422/RS485 for a Decimator Multiview. I have tried using the Generic-Serial module in different ways to achieve this, but have been unsuccessful.

josephdadams commented 1 year ago

Do you believe it to be an issue with this module, the generic tcp serial module, or a configuration/lack of knowledge problem?

Seanbucks commented 1 year ago

Adding native serial connectivity to the TSL-UMD module is really my implication, regardless of whether or not the Generic-Serial module could accomplish this.

In case you would like to know what I did try, in my attempt to accomplish this via the Generic-Serial module: I set the TSL connection to 127.0.0.1:32100 and set the Generic-Serial to listen on 32100, no luck (also tried different ports). I also tried to use 2 separate companion computers, one to send TSL data and the other to listen via Generic-Serial, and though packet sniffing shows the packets are in fact transmitting appropriately and on the specified port, the serial connection doesn't seem to forward. I have verified drivers and tried 3 different serial adapters (2 of which are rs232 capable, 1 of which is rs422/rs485). I have tried windows and Mac. I have also tried various baud rate settings, including using known parameters I use to accomplish TSL communication between a TSL Tallyman TM1 and a Decimator Multiview via RS485.

Thank you for your time and attention on this subject Joseph.

josephdadams commented 1 year ago

Well, TSL 3.1 in this module only sends via UDP.

The generic-tcp-serial module receives TCP.

So...

Seanbucks commented 1 year ago

That's a good point.

Is there another thread I should be posting in, to feature request the ability to output over serial, from within the TSL-UMD Module?

premultiply commented 11 months ago

There are many IP-to-RS485 converters out there. Just use something like a Protoss PE11-H or similar. Just make sure it is setup with the right serial parameters and that any protocol conversion (like Modbus) is disabled.

Also make sure that your serial bus wiring matches all aspects of RS485 spec! Twisted pair, bus termination, polarity, no grounding etc.

Of course the TSL protocol over IP has to match the protocol spoken on the serial interface!