|Top Previous Next|
Communications with the NetLoader is effected by sending programming commands as UDP datagrams to port 65535 of the DS. For each command the NetLoader sends a reply, also in the form of a UDP datagram. Reply to a particular command is always sent to the IP-address and the port number from which this command was received.
Because each command and reply is sent in its own UDP datagram no additional encapsulation is necessary.
All NetLoader commands have the following format:
All NetLoader replies have the following format:
Example: here is a sample exchange between the network host and the DS running NetLoader. Each line represents the data in a separate UDP datagram.
DS(NetLoader)-->Host: A<NV1.10 Netloader>
This method of exchanging commands and replies is exactly the same as the one used by the application firmware of the DS where it is called out-of-band (UDP) programming. UDP communications with the application firmware and the NetLoader are the same except for the following small differences:
Except for the above two differences UDP communications with the NetLoader is the same as UDP communications with the application firmware. Just like the application firmware, the NetLoader supports broadcadt UDP programming, which is initiated by the Select In Broadcast Mode (W) command. There are other commands that have similar or identical "parallel" commands in the application firmware- Echo (X) command, Verify and Start Firmware (E) command, Get Firmware Version (V) command.
UDP programming is called (in the Application Firmware Manual) out-of-band (UDP) programming because there is also inband (TCP) programming that relies on TCP communications with the DS. Because of size constraints the NetLoader doesn't support TCP communications and the only available method of exchanging commands and replies is the one based on UDP commands.