Testing

Top  Previous  Next

You can test this application with Tibbo's I/O NINJA software. Download it from tibbo.com/ninja.

 

note_further-wtIn case you are using TiOS Simulator, remember to install I/O Ninja on another PC. NINJA will not be able to talk to the Simulator if both are installed on the same PC.

Further, the Simulator must have its Use WinPcap option enabled (Simulator > Options to access), and the correct Ethernet interface must be selected. This should be the Ethernet interface, through which the Simulator's PC is connected to the network. You must have this PC connected to the network via the Ethernet interface. Using other interfaces, such as Wi-Fi, will prevent the Simulator from being able to communicate on the network. All this is explained in Network Communications on the Simulator.

 

To test your application, run I/O NINJA and select File > New Session > TCP Connection Socket.

 

ninja_test

 

Type the destination IP:port into the Address box. For example, if the device's (Simulator's) IP address is 192.168.1.222 then the string to enter is 192.168.1.222:1000.

Reminder: the device's (Simulator's) IP address is the one defined by the net.ip= line in your source code.

Click the Connect button.

 

ninja_connect

 

At this point you will receive the customary "HELLO WORLD!" message.

Type anything into the Send pane and click Send.

You device will echo the data back.

 

ninja_sending_data