求助---关于SPComm(100分)

  • 主题发起人 主题发起人 gxuqin
  • 开始时间 开始时间
G

gxuqin

Unregistered / Unconfirmed
GUEST, unregistred user!
  我用SPComm写了一个程序,程序与下位机通讯一段时间后,SPComm的数据到达事件停止
响应(不再接受任何数据),而程序并未死掉。将程序退出再重新启动后SPComm又正常了
(将会重复出现上述情况)。请问各位大虾,如何解决?
 
去看这个问题http://www.delphibbs.com/delphibbs/DispQ.asp?LID=706853

我和你碰到了相同的问题。那里有高手
 
你检查一下.in_xonxoffflow是否等于true.如果为true,接收到xon_char或xoff_char会停止接收的.
我曾经就是被这个问题搞到要用api写串口程序

Inx_XonXoffFlow : Boolean
Specifies whether XON/XOFF flow control is used during reception.
If this member is TRUE, the XoffChar character is sent when the
input buffer comes within XoffLim bytes of being full, and the
XonChar character is sent when the input buffer comes within XonLim
bytes of being empty.
You can change this value when the comm is open.

| input buffer comes within
+-----------------------------+------------------------------
Action | XoffLim bytes of being full | XonLim bytes of being empty
--------+-----------------------------+------------------------------
TRUE | Xoff char send | Xon char send
--------+-----------------------------+------------------------------
FALSE | do nothing | do nothing
 
如果是缓存区满了,用MOVE语句将缓存区清空!
 
后退
顶部