Page 1 of 1

telnet client

Posted: Mon Jan 18, 2010 7:10 pm
by nirias999
I'm wondering how much work it would be for a MOD5282 to control a network camera that is designed for control via telnet. This should only require a subset of the usual telnet library, but I have never programmed a telnet client and interpreting the RFC (#854) on telnet is a bit like decrypting the rosetta stone. While the RFCs for http and ftp are presented in excruciating detail, telnet is presented as more of a conceptual design that lacks sufficient detail to even begin to implement.

If anyone has done something like this I would greatly appreciate any tips such as a useful online reference or an actual source code example.

thanks

Re: telnet client

Posted: Tue Jan 19, 2010 7:03 am
by Chris Ruff
For this application I would tend to:

1. open a client socket to <camera IP> port 23
2. speak to the camera.

I am sure the camera responds to things like:

A9<return> (aperture set to 9)
X23<return> (scan in X direction to 23)

I think this because Telnet is simply a terminal program for TCP/IP

when done controlling the camera you would close your socket.

I am assuming all of this about the camera, I haven't controlled a telnet interface camera.

Chris

Re: telnet client

Posted: Tue Jan 19, 2010 10:37 am
by Forrest
Chris hit the nail. You should'nt need to be refering to the rfc. Once you open the socket to port 23 (telnet port), just print out to that socket what you would normally type out. If you already know how to controll the camera in your own telnet session, you are most of the way done. Function for every required command should be all you need to handle the interface.