![]() |
DM&P Mity-Mite LT200 |
2002/07/16 |
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.
Jan Yin Chan Electronics Co., LTD. All rights reserved. | Email us: info@dmp.com.tw |