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
telnet client
- Chris Ruff
- Posts: 222
- Joined: Thu Apr 24, 2008 4:09 pm
- Location: topsail island, nc
- Contact:
Re: telnet client
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
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
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand
Re: telnet client
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.
Forrest Stanley
Project Engineer
NetBurner, Inc
NetBurner Learn Articles: http://www.netburner.com/learn
Project Engineer
NetBurner, Inc
NetBurner Learn Articles: http://www.netburner.com/learn