DM&P Mity-Mite LT200

2002/07/16

UDP Setup Protocol

We use UDP broadcast on port 5920 to communicate with LT200 devices. The UDP packet size should be 512 bytes and the format is:

XX:XX:XX:XX:XX:XX.Command=Value

stop with ASCII '0'. where "XX:XX:XX:XX:XX:XX" is MAC address of LT200 device. If the MAC address is "00:01:02:03:04:05", it means that is UdpSetup program packet. The commands support are:

Command Description
Search Sent by setup program to find all LT200 devices.
Save Sent by setup program to request LT200 to save parameters into file.
Reboot Sent by setup program to reboot LT200.
Beep2 Sent by setup program to beep twice.
Beep3 Sent by setup program to beep three times.
Get_Version Sent by setup program to get LT200 firmware version.
Get_Password Sent by setup program to get password of LT200.
Get_Ip Sent by setup program to get IP of LT200.
Get_Netmask Sent by setup program to get netmask of LT200.
Get_Gateway Sent by setup program to get gateway of LT200.
Get_UartBaudRate Sent by setup program to get UART baud rate of LT200.
Get_UartParity Sent by setup program to get UART parity setting of LT200.
Get_UartDataLength Sent by setup program to get UART data length of LT200.
Get_UartStopBit Sent by setup program to get UART stop bit of LT200.
MAC Sent by LT200 to echo search command to report its MAC address to setup program.
Set_Password Sent by LT200 to report its password of LT200.
Set_Ip Sent by LT200 to report its IP of LT200.
Set_Netmask Sent by LT200 to report its netmask of LT200.
Set_Gateway Sent by LT200 to report its gateway of LT200.
Set_UartBaudRate Sent by LT200 to report its UART baud rate of LT200.
Set_UartParity Sent by LT200 to report its UART parity setting of LT200.
Set_UartDataLength Sent by LT200 to report its UART data length of LT200.
Set_UartStopBit Sent by LT200 to report its UART stop bit of LT200.

For example: assume the MAC address of LT200 is "AA:BB:CC:DD:EE:FF", let's show you the work flow between UdpSetup.exe and LT200.

UdpSetup.EXE LT200
01:02:03:04:05:06.Search
UdpSetup.EXE start up, send search command to find all LT200 devices.
AA:BB:CC:DD:EE:FF.MAC=AA:BB:CC:DD:EE:FF
AA:BB:CC:DD:EE:FF.Get_Version
UdpSetup will select the first found LT200 and get its data.
AA:BB:CC:DD:EE:FF.Version=1.00
AA:BB:CC:DD:EE:FF.Get_Password
UdpSetup will select the first found LT200 and get its data.
AA:BB:CC:DD:EE:FF.Password=password
AA:BB:CC:DD:EE:FF.Get_IP
AA:BB:CC:DD:EE:FF.IP=192.168.0.234
AA:BB:CC:DD:EE:FF.Get_UartBaudRate
AA:BB:CC:DD:EE:FF.UartBaudRate=38400
UdpSend.EXE will send a lot of GET command to get all setting...(omit)
AA:BB:CC:DD:EE:FF.Beep2
"Save" button is pressed, UdpSetup.EXE will set a lot of SET command...
AA:BB:CC:DD:EE:FF.Set_IP=192.1680.235
AA:BB:CC:DD:EE:FF.Set_UartBaudRate=115200
AA:BB:CC:DD:EE:FF.Save
T200 save all parameters into DSOCK.CFG.
AA:BB:CC:DD:EE:FF.Reboot
LT200 load new setting.

This table will help you to read our source code about UDP setup. See SETUP.C of DSOCK_AP project and UdpSetupDlg.cpp of UdpSetup project.

Technical Support

If you have any problem, feel free to mail to tech@dmp.com.tw please.
Jan Yin Chan Electronics Co., LTD. All rights reserved. Email us: info@dmp.com.tw