The PC utility Netcat is known as the "Swiss-army knife" for TCP/IP. Source code and Windows executable are located in the Support SW directory \D.SignT\Utilities
. Netcat lets you easily check UDP and TCP connections. Some of the netlib examples require a netcat terminal for testing.
Copy the Windows executable nc.exe to your PC and add this directory to your environment path variable or use setup_netcat.exe from the utilities directory. setup_netcat.exe is executed automatically, if you use a D.SignT installer for the netlib support SW.
Netcat is a command line tool which requires some parameters to work properly. Use nc -h for a list of possible parameters.
The required parameter list for each example is mentioned in the examples source code.
E.g. example nettest. First run the DSP program nettest.out. Start a console window and try to ping the DSP. If all settings are right, the pings should be replied. Then start a UDP netcat session with
Parameter description:
All characters you type in the console should be echoed after pressing the enter key:
For the TCP test press ctrl - c to stop netcat and start a new netcat session with the following parameter:
Parameter description:
Type in 15 characters and press enter:
The DSP answers with message "this is the DSP response". If you enter more than 15 characters you will observe two DSP answers:
This effect is due to the configured TCP buffer size of 16 characters on the DSP. TCP always takes care of the receivers buffer size. If more bytes than the maximum buffer size have to be transmitted, TCP splits the data stream into suitable packets.