COMM32.PAS
==========
Version 1.00
Comm32.pas is a simple Communications VC for Borland Delphi 2.0 which
demonstrates the Win32 Communications functions and the new Delphi
'TThread' class. It is implemented using two threads: one for reading
from, and one for writing to a Comm Port.
It probably needs to be implemented as a single thread for read/write
operations if it is needed for any synchronisation functions (such as
file-transfer algorithms).
I started to create a 'TAPI' component to use in conjunction with this
component (hence the 'OnRequestHangup' property) but as of this version
it is incomplete.
Version 1.02 - by small-pig team
1. Add Read/Write timing control
2. Add Data bits, Parity, Stop bits properties
3. Support software and hardware flow control: DTR/DSR, CTS/CTS, XON/XOFF
4. Add 'Sender' parameter in OnReceiveData
Version 2.0 - - by small-pig team
1. Support separatly DTR/DSR and RTS/CTS hardware flow control setting
2. Support separatly OutX and InX software flow control setting
3. Log file(for debug) may used by many comms at the same time
4. Add DSR sensitivity property
5. You can set the error char. replacement when parity error
6. Let XonLim/XoffLim and XonChar/XoffChar setting by yourself
7. You may change flow-control when comm is still opened
8. Change TComm32 to TComm
9. Add OnReceiveError event handler when overrun, framing error,
parity error
10. Fix some bug
Version 2.01 - - by small-pig team
1. Support some property about modem.
2. Add OnModemStateChange event hander when RLSD(CD) change state
Version 2.02 - - by small-pig team
1. Bug fix: When receive XOFF character, the system FAULT!!!!
2. Remove CommFileLog property
SPCOMM.PAS
==========
Version 2.5
1. Add OnSendDataEmpty event handler when all data in buffer
are sent(send-buffer become empty) this handler is called.
You may call send data here.
2. Change the ModemState parameters in OnModemStateChange
to ModemEvent to indicate what modem event make this call
3. Add RING signal detect. When RLSD changed state or
RING signal was detected, OnModemStateChange handler is called
4. Change XonLim and XoffLim from 100 to 500
5. Remove TWriteThread.WriteData member
6. PostHangupCall is re-design for debuging function
7. Add a boolean property SendDataEmpty, True when send buffer
is empty
USAGE
=====
To use the component once it is installed:
1) Attach an event handler to 'OnReceiveData'.
2) Call 'StartComm' to open the port.
3) Use the 'WriteCommData' method to write to the Comm port.
4) Call 'StopComm' to close the port.
PROPERTY
========
CommName : String
The name of comm port. The comm port is named 'COM1', 'COM2',...
This comm port must exist when you open it.
BaudRate : DWORD
The baud rate for this comm port. It must be a legal value for your
serial port can accept it.
You can change this value when the comm is open and
the real baud rate is changed immediately.
ParityCheck : Boolean
Specifies whether parity checking is enabled. If this member is TRUE,
parity checking is performed and errors are reported
(to OnReceiveError handler).
You can change this value when the comm is open.
Outx_CtsFlow : Boolean
Specifies whether the CTS (clear-to-send) signal is monitored
for output flow control. If this member is TRUE and CTS is turned off,
output is suspended until CTS is sent again.
CTS is a input pin. You can read its state from MSR register. It
usually connect to RTS pin in the other end.
It is often used for hardware flow control to indicate that the other
end if being waiting for data.
You can change this value when the comm is open.
CTS Input on | the other end is waiting for data
------------+----------------------------------------
Input off | the other end will NOT receive any data
Outx_DsrFlow : Boolean
Specifies whether the DSR (data-set-ready) signal is monitored for
output flow control. If this member is TRUE and DSR is turned off,
output is suspended until DSR is sent again.
DSR is a input pin. You can read its state from MSR register. It
usually connect to DTR pin in the other end.
It is often used for hardware flow control to indicate that the other
end is working(active, ready, wait for data...)
You can change this value when the comm is open.
DSR Input on | the other end is ready, and wait for your data
------------+----------------------------------------------------
Input off | the other end is not ready, we cannot send data out
DtrControl : ( DtrEnable, DtrDiable, DtrHandshake )
Specifies the DTR (data-terminal-ready) flow control. This member
can be one of the following values:
Value Meaning
------------- ------------------------------------------------------
DtrDiable Disables the DTR line when the device is
opened and leaves it disabled.
DtrEnable Enables the DTR line when the device is
opened and leaves it on.
DtrHandshake Enables DTR handshaking. When our comm port is opened
and ready for receiving data, DTR is enabled. When
our comm port is suspend, closed or has error
(and not cleared), DTR is disable.
If handshaking is enabled, it is an error for the
application to adjust the line by using the Win32
EscapeCommFunction function.
DTR is a output pin. You can set its state in MCR register.
It usually connect to DSR pin in the other end.
You can change this value when the comm is open.
DsrSensitivity : Boolean;
Specifies whether the communications driver is sensitive to the
state of the DSR signal. If this member is TRUE, the driver ignores
any bytes received, unless the DSR modem input line is high.
You can change this value when the comm is open.
TRUE | ignore any received byte
-------+------------------------------
FALSE | nothing
TxContinueOnXoff : Boolean;
Specifies whether transmission stops when the input buffer is full
and the driver has transmitted the XoffChar character. If this member
is TRUE, transmission continues after the input buffer has come within
XoffLim bytes of being full and the driver has transmitted the
XoffChar character to stop receiving bytes. If this member is FALSE,
transmission does not continue until the input buffer is within XonLim
bytes of being empty and the driver has transmitted the XonChar
character to resume reception.
You can change this value when the comm is open.
TRUE | enable or disable transmisstion has no any relation with
| input buffer
-------+-------------------------------------------------------------
FALSE | When Xoff is send(input buffer will be full),stop transmission.
| And stop continue until Xon is send(input buffer will empty).
Outx_XonXoffFlow : Boolean
Specifies whether XON/XOFF flow control is used during transmission.
If this member is TRUE, transmission stops when the XoffChar character
is received and starts again when the XonChar character is received.
You can change this value when the comm is open.
Action | Xoff received | Xon received
--------+--------------------+---------------------------
TRUE | stop transmission | resume t
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
WIFI232模块开发资料 (127个子文件)
Subclass.asm 7KB
modSocketMaster.bas 33KB
modSocketMaster.bas 33KB
SocketMaster.bmp 2KB
SocketMasterTB.bmp 822B
Project1.cfg 390B
USR-TCP232-Test.cfg 315B
CSocketMaster.cls 59KB
CSocketMaster.cls 59KB
CDownload.cls 10KB
style.css 10KB
Socket.ctl 8KB
Socket.ctx 3KB
SPCOMM.DCR 464B
SPComm.dcu 26KB
Unit1.dcu 13KB
spcommkongjian.dcu 3KB
PSComm.dcu 3KB
Unit1.ddp 51B
Unit1.dfm 6KB
zlib1.dll 98KB
Project1.dof 2KB
Project1.dpr 188B
gtk2-runtime.exe 7.46MB
虚拟串口英文版.exe 1.66MB
USR-TCP232-Test.exe 1000KB
Project1.exe 472KB
A11_Config_net_cn.exe 391KB
A11_Config_serial_cn.exe 389KB
sweb_simulator.exe 48KB
recover.exe 24KB
SocketMaster.exp 1023B
FormMain.frm 22KB
FormMain.frm 10KB
frmDownloader.frm 5KB
FormMain.frm 4KB
Server.frm 3KB
Client.frm 3KB
tcpServer.frm 3KB
udpClient.frm 3KB
tcpClient.frm 3KB
Client.frm 3KB
udpServer.frm 2KB
main.frm 2KB
Server.frm 2KB
FormMain.frx 100KB
tcpClient.frx 10B
tcpServer.frx 10B
udpClient.frx 10B
udpServer.frx 10B
sweb_C4.htm 31KB
sweb_C5.htm 14KB
sweb_C3.htm 8KB
sweb_A2.htm 8KB
sweb_A3.htm 6KB
sweb_B2.htm 6KB
sweb_C1.htm 5KB
sweb_C2.htm 5KB
sweb_B1.htm 5KB
sweb_A1.htm 5KB
index.htm 5KB
step4_.htm 4KB
step4.htm 4KB
step3.htm 1KB
step2.htm 544B
step1.htm 425B
008.ico 100KB
Vb_tcpudp.jpg 100KB
dephi_tcp232.jpg 52KB
引脚图.jpg 21KB
cat.jpg 17KB
rgraph.js 108KB
sweb.js 73KB
jui.js 46KB
WIFI-PCB.LIB 22KB
SocketMaster.lib 3KB
WIFI-SCH.Lib 2KB
COMCTL32.OCX 590KB
msmask32.ocx 163KB
MSCOMM32.OCX 101KB
SPComm.pas 62KB
Unit1.pas 7KB
usr-wifi232-x.PcbLib 41KB
USR-WIFI232-X-V4.0.pdf 3.36MB
USR-WIFIMOD-II.pdf 2.31MB
USR-WIFI232-L.pdf 2.11MB
USR-WIFI232-S.pdf 1.81MB
USR-WIFI232-X快速入门.pdf 1.71MB
WIFI转以太网透明传输.pdf 1.17MB
安卓手机链接到wifi服务器.pdf 881KB
USR-WIFI232-600.pdf 292KB
pic 27KB
pwron.png 10KB
pwrdn.png 8KB
offline.png 8KB
borland c++_NetAssist.rar 635KB
安卓编程例子.rar 347KB
SLSocketTest_20101220.rar 22KB
Project1.res 876B
MSSCCPRJ.SCC 198B
共 127 条
- 1
- 2
zzwdkxx
- 粉丝: 445
- 资源: 16
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- rainy-day.jpg
- IMG_20240501_171218.jpg
- Swift-内购封装swift版本
- 经典CNN网络之ResNet 图像分类网络实战项目:7种小麦叶片病害分类(迁移学习)
- Java毕设之ssm010基于ssm的新能源汽车在线租赁管理系统+vue.rar
- Java毕设之ssm009毕业生就业信息统计系统+vue.rar
- Java毕设之ssm008医院门诊挂号系统+jsp.rar
- Java毕设之ssm007亚盛汽车配件销售业绩管理统+jsp.rar
- Java毕设之ssm006基于java的少儿编程网上报名系统+vue.rar
- Java毕设之ssm005基于SSM框架的购物商城系统+jsp.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页