DM&P Mity-Mite LT200

2002/07/16

COM-to-Ethernet Function

Convert data between COM port and Ethernet like RSIP do is useful for some special application. It works as host-based mode of RSIP. To do this is very easy with our DSock and SerPort library.

After initializing COM port, any data come in will be save into SerPort buffer. We set the buffer size is 4096 bytes. You can change buffer by modifying the value pass to SerPort. We add a file, COMCTRL.C, into DSOCK_AP project which is a serial to Ethernet service. It open a TCP socket listen on port 6001. Serial service will send data in buffer to remote when remote connect to port 6001 of LT200. Any data from TCP socket will be sent to COM port and any data received from COM port will send to remote via TCP socket. It is the host-based mode of RSIP.

Serial service send/receive raw data to/from COM port. So, we do not check password. You can add password checking when socket connection is established. See the COMCTRL.C in DSOCK_AP project. We also provide a simple Windows console program, SerTest, for use to test serial service. You can find it is very easy to read/write raw data from/to serial port of LT200 from SerTest.C.

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