| Dart Home | PowerTCP Telnet for .NET | Custom Development | Reply | PowerTCP Telnet for .NET Topics | Forums |
| Author | Forum: PowerTCP Telnet for .NET Topic: Telnet Client usage |
| jgrasmeder From: King of Prussia, PA USA Posts: 3 Member Since: 07/28/03 |
posted January 22, 2009 5:38 PM I currently have a project with requirements that I believe PowerTCP.Telnet should fill without any problems. I need to communicate with a device that has a standard modem imbedded in the hardware. I also have a Cisco router that contains multiple modems. These modems can be accessed by Telnet client software (telnet router address,portnumberofmodem). I have tested this and can login to the router and send modem command to the modem. When the modem "connects" to the hardware on the other side of the phone line I can send commands to that piece of hardware. When I am finished I can send +++ to the Dart Telnet client (telnet.send(+++) which is accepted by the modem and goes into command mode. I can then send a modem command to hang-up the modem (telnet.send(ATH + cr) and then close the Telnet connection (Telnet.Close()). Everything looks good and I'm happy with the process. My question is about the Telnet client and server options that are available with the PowerTCP.Telnet class. 1) Do I need to be concerned with the binary data being sent back and forth between the windows service running on my server and the Hardware on the other side of the phone line? Do I need to worry about a sequence of characters doing something to the Telnet Client session? I will be using the character range from null Chr(0) thru Chr(255), not just ASCII 1 thru 127. 2) What are the options that I should be setting when I first connect to the router? Currently I am using the following options Telnet.ClientOptions.Add(New Dart.PowerTCP.Telnet.Option(Dart.PowerTCP.Telnet.OptionCode.SuppressGoAheads, Nothing, Dart.PowerTCP.Telnet.OptionState.RequestOn)) Telnet.ClientOptions.Add(New Dart.PowerTCP.Telnet.Option(Dart.PowerTCP.Telnet.OptionCode.WindowSize, New Byte() {CType(0, Byte), CType(80, Byte), CType(0, Byte), CType(24, Byte)}, Dart.PowerTCP.Telnet.OptionState.RequestOn)) Telnet.ClientOptions.Add(New Dart.PowerTCP.Telnet.Option(Dart.PowerTCP.Telnet.OptionCode.TerminalType, New Byte() {CType(0, Byte), CType(116, Byte), CType(116, Byte), CType(121, Byte)}, Dart.PowerTCP.Telnet.OptionState.RequestOn)) Telnet.ServerOptions.Add(New Dart.PowerTCP.Telnet.Option(Dart.PowerTCP.Telnet.OptionCode.SuppressGoAheads, Nothing, Dart.PowerTCP.Telnet.OptionState.RequestOn)) Telnet.ServerOptions.Add(New Dart.PowerTCP.Telnet.Option(Dart.PowerTCP.Telnet.OptionCode.Echo, Nothing, Dart.PowerTCP.Telnet.OptionState.RequestOff)) Telnet.ServerOptions.Add(New Dart.PowerTCP.Telnet.Option(Dart.PowerTCP.Telnet.OptionCode.OutputPageSize, Nothing, Dart.PowerTCP.Telnet.OptionState.RequestOn)) 2) Should I even be doing this in the first place? Am I going to run into problems with using the Telnet client the way I explained my process above? Thanks John |
| Jamie Powell (Admin) From: Rome, NY USA Posts: 448 Member Since: 03/13/07 Extra Support Options Custom Application Development |
posted January 29, 2009 2:09 PM Hello, this request needs to be handled through our administrative procedures prior to approval. Please contact sales@dart.com directly regarding this issue. Thank you. |
| Reply | PowerTCP Telnet for .NET Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|