-
Category : Remote Control
Tags :
- Update : 2008-10-13
- Size : 38kb
- Downloaded :0次
- Author :L****
- About :
Lee
- PS : If download it fails, try it again. Download again for free!
Introduction - If you have any usage issues, please Google them yourself
The biggest flaw in the program:
Windows interface of the hardware drivers abstract and standardization, a serial port is not exceptional also, most of the equipment can be stored through the API file operation control, such as: CreateFile and ReadFile, WriteFile, actually very simple. There's a SerialPort class on the net that's pretty good, and I'll just use it and make a small change to meet my requirements. Original class can only send and receive a Byte at a time, I changed to 512 Byte according to need, need to focus on, when to send and receive multibyte data, more the need to guarantee the correctness and completeness of the data, because a serial port protocol standard is defined at the physical layer and data link layer, for example, if a Byte sent 512, 512 Byte received is not necessarily correct, so you want to check to ensure correctness, or may not be a will complete received 512 Byte, but several times after collect all the data, then will we define related structure to ensure the data transceiver integrity. These details are related to the serial driver implementation, and the reader can view the relevant documents if they are interested. In this application completely without protection processing on the problem, given a small amount of sending and receiving data (512 Byte), and only own experiment, so write is not rigorous, the data transceiver ideal for one-time send and receive correctly, I hope you can take note.
Packet file list
(Preview for download)
Packet : 83390087232_tcpip.rar filelist
resource.h
SerialPort.cpp
SerialPort.h
SerialTcp.cpp
SerialTcp.h
SerialTcp.rc
SerialTcp.sln
SerialTcp.vcproj
SerialTcpDlg.cpp
SerialTcpDlg.h
stdafx.cpp
stdafx.h
TcpSocket.cpp
TcpSocket.h
TRAYICON.CPP
TRAYICON.H
res\SerialTcp.ico
res\SerialTcp.rc2
res\tray.ico
res
config.ini
item3.txt
Item.cpp
Item.h
新建文件夹
新建 文本文档 (2).txt
Related instructions
- We are an exchange download platform that only provides communication channels. The downloaded content comes from the internet. Except for download issues, please Google on your own.
- The downloaded content is provided for members to upload. If it unintentionally infringes on your copyright, please contact us.
- Please use Winrar for decompression tools
- If download fail, Try it againg or Feedback to us.
- If downloaded content did not match the introduction, Feedback to us,Confirm and will be refund.
- Before downloading, you can inquire through the uploaded person information