Terminal connection
VladaPUB
Posts: 139
I shoud use IP comunication to control cameras connected to "other control system".
I can control it from Putty , just by sending
when i pres RETURN camera goes to Preset 1.
HOW to send string to 'it' to control that camera ????
I can control it from Putty , just by sending
$1001
when i pres RETURN camera goes to Preset 1.
HOW to send string to 'it' to control that camera ????
0
Comments
Jeff
Have you any idea ?
Also, verify that the connection is using the correct port.
Jeff
Jeff
That may be the problem. A telnet connection is NOT the same as a raw socket connection. Try connecting with Putty with the connection type set to "Raw". If this does not work, it implies that the remote device is expecting telnet negotiation.
If this proves to be the issue, it is reasonably easy to implement telnet negotiation by answering the device with "I won't" when it requests that you turn on a telnet feature. There should be some good references to the telnet protocol out there on the web.
How to solve that ???
Try eliminating the wait in th eonline event cuz it's possible the connection is timing out before you send. Not likely but possible. Tthe device may also maintain the connections so an initial connection when in define_start behind a long wait may be the way to go when this actually starts working.
Port 4001? What port were you using in PuTTy? Telnet is 23 so what's 4001, how about a link to the protocol. Also create a buffer for the port so you can see what strings are coming in. You may be receiving a challenge that you need to respond to.
Put some send_string 0's in so you can see when you send the IP_CLIENT OPEN and when (if) you get an ON_LINE event.
Also 4001 !! Putty is set to TELNET connection.
I dont have protocol, I only have commands to send, like : or