Remote Serial Port via Netlinx
TurnipTruck
Posts: 1,485
Greetings,
I am working with a system that has a lighting controller on it at a remote location. The lighting controler is connected to an AMX serial port.
When at the remote location, I disconnect the lighting controller from the AMX system and connect it to directly to my laptop.
Is there a good way to connect my laptop to a serial port on the AMX system at my office and virtually connect that port to the lighting controller port at the remote location?
I tried REDIRECT_STRING, but it doesn't seem to do anything.
Thank you.
I am working with a system that has a lighting controller on it at a remote location. The lighting controler is connected to an AMX serial port.
When at the remote location, I disconnect the lighting controller from the AMX system and connect it to directly to my laptop.
Is there a good way to connect my laptop to a serial port on the AMX system at my office and virtually connect that port to the lighting controller port at the remote location?
I tried REDIRECT_STRING, but it doesn't seem to do anything.
Thank you.
0
Comments
I am trying to find a way to do it from off-site using the two connected AMX systems as a 25-mile serial cable.
Vinc
1. Create a TCP/IP server in your code. Port should match your connecting software's port. Command prompt "netstat -a" can be useful to determine this.
2. Create a serial router based on state of Ethernet client connectivity. With no TCP/IP connection route com port serial I/O to your code. When TCP/IP connection is made route ethernet serial data straight to com port. When TCP/IP client is connected be sure to disable your Netlinx code from listening or transmitting.
Joel
I have been using Moxa Ethernet-to-serial convertors with port redirection in the past for similar things. That method works well, but it occupies the serial port of the device being controlled at the remote site, not allowing it to be connected to the AMX system.
Vinc
You have systemA at your location and it connects via ethernet to SystemB.
You want to hook your laptop to comm port1 on SystemA and want it to come out at SystemB on the port the lighting controller is attached to.
Exactly!
why not leave the ethernet-to-serial in place then adapt your program to open an ethernet port instead of a serial port to your lighting system.
then possibly you can have multiple access to the lighting.. AMX, and your pc via Internet.
Okay, I have one more question before I add any input.
Are you just sending commands to the lighting controller or are you using software interface to communicate with the lighting controller ?
This should make it completely transparent to any software you hook up to it.