There is a start-up project in DSock example for programmer quick and easy to
develop TCP/IP application under DOS.
We chose this project to start our development.
The default services are HTTP, FTP and TELNET.
We do not need TELNET server and remove this function.
We do some changes to DSOCK_AP.C:
Remove TELNET function.
Add serial port initial code with SerPort library.
Initialize GPIO to default value, GP7-0 as output, GP15-8 as input.
Open a UDP socket to receive UDP broadcast message and add UdpServer() function.
Add CtrlServer() to accept TCP connection to send/receive data to/from serial port.
Technical Support
If you have any problem, feel free to mail to
tech@dmp.com.tw please.