This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Add telnet command



Hello experts,

I would like add next item into telnet command list.

I would like avoid to rebuild NDK library and so I used a own console with a call the original functions of NDK.

In example "client_evmc6678l" I changed settings from &OpenConsole to &MyOpenConsole. I copied ...\ti\ndk_2_21_02_43\packages\ti\ndk\tools\console\console.c into client project and I deleted from this file all functions except OpenConsole() and console(). I changed names of this functions to MyOpenConsole() and myconsole().

After this changes and translation I started the modificated example in Core0 (evmc6678). Telnet connection was establish, but program does not write any messages to client console. ConPrintf() is returning size of message but do not execute sending message to client.


Do you have any idea how to solve this problem.

David

  • David,

    I'd like to help you get this going.  I've got a couple basic initial questions:


    Did your project ever work?  In otherwords, did it work before your modifications? 
    Do you have a GEL file associtated with your target configuration?
    Does the program immediately start running when you click debug, or does it stop at main? 

    I have imported the client project into my workspace (copied files), updated the links, copied console.c and console.h into the workspace, removed all PPPOE code, added include paths, corrected a minor include issue, rebuilt, and it seems to run OK on my EVM before modifying or removing any code from console.c (connect to telnet console, verify I'm actually talking to my console.c via breakpoints, etc).

    Next I made your modifications, renamed ConsoleOpen to MyConsoleOpen, edited console.h and client.c and it still seems to be working OK.

    Let me know if there is anything I've listed here that does not make sense, or you'd like me to expand on. 

     

    Mike

  • Hi Mike,

    the original project worked very well. GEL file is associated and the program stops at the main() after uploading to the core. When I start program, then it is running without stop, including telnet and its communication with the client.

    If I let all functions in console.c and I only rename OpenConsole(),console() then client console seems good but doesn't call subfunctions like ConCmdPing().

    I think that my problem is calling elementary functions of console ndk library. 

    David

    5432.client_evmc6678l_telnetproblem.zip

  • Wonderful, now it works.

    I've used your way again and now I can ping to anywhere. I'll try tftp, but I think it will work. I do not know where I made ​​a mistake, but thank you very much for your help.

    David