Re: how to synchronize 2 com ports



This question is well-applied for Richard Grier :)
Seen your web page, seems like you are very keen on that...
I am looking for a protocol which I want it to be full-duplex
One side I put a timer, about one timer event per 1 second.
Then the receiving end must consume the data. On the receiving end, which is
a SBC, it also sends commands continuously (also one second between pulses),
now the sending side has reversed role and becomes the receiving end, this
data acquisition unit consumes the command and sends full data back to the
SBC.
So two cases, the data acquisiton end sends data either if
* there is some data on it received from sensor array
* the SBC asks for it and the DAQ might send or telling the SBC there is no
data to be consumed
Sometimes the data is discarded or the data read cycle is prolonged
depending on the situation
one situation is
* The shutter is closed when some data in transit. Then the read cycle is
prolonged until all data has been received
* The shutter is closed, then some data is going to the SBC end, the SBC
relinquishes (oh i like this word, if I spell it correctly) it.

This is what I've got from my colleague. I am half-finished the program and
I am stuck at the protocol.


Thanks
Jack

"Jack" <jl@xxxxxxxxxx> ׫??ì¶à]¼þÐÂÂ?:%238uBmyNmGHA.2112@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
I am sending a variable length data from com3 to com4
sometimes just !q and sometimes it is #m123456
sometimes !q is followed by !s etc
but the receiving end sometimes reports
!q!
then next one is
s
So after the shift
#m123456
became
m123456
which could not be recognized as proper data on the receiving end
How do I synchronize these 2 ports?
I have set MSComm to Handshake = XonOff
all buffers set to 1024
and inputlen = 0
RTSEnabled
DTSDisabled
Baudrate = 460800bps thru USB bridge
CTS Output flow control checked...
Thanks
Jack



.



Relevant Pages

  • Re: Outlook 2003 Timing out on recieve
    ... > Everything has been working fine until 24 hours ago when my email from SBC ... try turning that off to see if it's interfering with the receiving of mail. ... Sharon F ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: WM_COPYDATA
    ... On the receiving end, assign the text to the Text ... The protocol should focus on the problem domain, ... implementation for pushing images to a server. ... To destroy an object: DESTROY CRLF ...
    (comp.lang.pascal.delphi.misc)
  • Re: How to deal with full-duplex communication?
    ... TCP/IP itself will not and cannot "lose" messages. ... is an error in your protocol. ... completely asynchronously as part of the design. ... At the level of socket io, you cannot really coordinate sending and receiving, ...
    (microsoft.public.vc.mfc)
  • Re: net/mpd4: Unable to pass pass traffic as pptp client
    ... through ng0 and then a PPP compressed data packet out em0. ... receiving back a PPP LCP protocol reject from the concentrator back to ... LCP: protocol 0xee0b was rejected ...
    (freebsd-net)
  • Re: NetworkStream Read/Write operations - # bytes read/written.
    ... read/wrote when there is an exception (i.e. socket read/write timeout). ... For reading, if you don't have a successful call to a receiving function, ... protocol in which the recipient can tell you how many bytes it received. ...
    (microsoft.public.dotnet.languages.csharp)