Login  
Search All Forums
Dart Home | PowerTCP Telnet for .NET | Custom Development Reply | PowerTCP Telnet for .NET Topics | Forums   
AuthorForum: PowerTCP Telnet for .NET
Topic: Data.Common.DataEventArgs Incomplete : special caracters ?
antoine.lullier@sncf.fr

From: France
Posts: 5
Member Since: 01/15/14
posted July 24, 2014 2:43 AM

Hi,

I have a function that send a command on a linux system with telnet.write and wait a return from the command that is writed on a string named StrTelnet that is assigned in the telnet_data function.
example :
StrTelnet = StrTelnet + e.Data.ToString();
//where e is Dart.Common.DataEventArgs

So I have a code like this :
 SendAndWait("cd home", "#");
// goes to home, then wait the "#" caracter to go to the next instruction.

All my commands worked perfectly with this system. But my problem occured with one command "mcu.elf TEST".
It should respond "TEST..." then a ~1000 caracters string, instead of what it respond only "TEST...".
I tried the command manually with telnet.exe from a powershell and it responds fine.
But it displays many "o" caracters kind of underscored, like this : ọọọọọọọọọọọ.
So maybe that's why the string from Telnet Data displays nothing...
Does Dart.Common.DataEventArgs displays all caracters? Thank for your response
antoine.lullier@sncf.fr

From: France
Posts: 5
Member Since: 01/15/14
posted September 15, 2014 4:51 AM

Problem solved. It was the buffer used for telnet.read that was set like this
var buffer = new byte[1023]
instead of
var buffer = new byte[1024].
Then i used :
telnet1.Marshal(telnet1.Read(buffer,0,1024)null);
Reply | PowerTCP Telnet for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX