Telnet Server implementation

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Telnet Server implementation

1,728 Views
Jairo
Contributor III

Hi, i'm doing a project implementing a telnet server, the commands work fine in terminal, but when i try to run the telnet server (telnetd start) it seems that nothing happens, no errors are shown but neither a functional server, also i've noticed that the board (DEMO52259) doesn't reply the ping request, the ping arrives to the board but don't reply it. I've set the vars:

#define RTCSCFG_ENABLE_ICMP      1
#define RTCSCFG_ENABLE_UDP       1

in user_config.h of the propper board folder.

 

 

//GLOBAL VARS

static void Telnetd_shell_fn (pointer dummy)
{ 
   Shell(Telnetd_shell_commands,NULL);
}

const RTCS_TASK Telnetd_shell_template = {"Telnet_shell", 8, 2000, Telnetd_shell_fn, NULL};

__________________________________________________________
__________________________________________________________
//MAIN TASK (AUTOSTART)
TELNETSRV_init("Telnet_server", 7, 2000, (RTCS_TASK_PTR) &Telnetd_shell_template ); 
 //Function placed after ENET_DEVICE initialization

 That's the initialization that i wrote, Something is missing?

 The netstat command returns that all the packets received are discarded  because they got an illegal destination.

 

 

PS: excuse my misspelling if some.

Message Edited by Jairo on 2009-09-25 05:17 AM
Labels (1)
Tags (1)
0 Kudos
Reply
1 Reply

444 Views
PetrL
NXP Employee
NXP Employee

Hi,

There is several telnet server examples in MQX. Do they work for you?

 

Try for example: rtcs/examples/shell with default setting.

(

use comands:

>>ipconfig init

>>ipconfig staticip or dhcp

>>telnetd

also ping should work there.

)

 

 

PetrL

 

0 Kudos
Reply