Sending longs between 2 Props
Tharkun
Posts: 67
What is the easiest and fastest way to send longs from one Prop to another ? (with serial object !?)
I want to send 5 longs + 1 char (=21bytes) in one string/step,
Any ideas ?
Tharkun
I want to send 5 longs + 1 char (=21bytes) in one string/step,
Any ideas ?
Tharkun
Comments
····Easiest: Sync character (e.g. "!"), followed by 42 hex digits.
····Faster: DLE (i.e. $10), "!", followed by 21+ bytes of data. When data byte == DLE, send two DLEs in a row. Receiver synchronizes on DLE, "!" and replaces double DLEs with single DLEs.
-Phil
Mike has provided a good nuts and bolts answer to your question. As long as the receiver and transmitter stay in sync, it will do the job for you. In addition to the synchronization methods I mentioned, timing gaps between data bursts will also work. As an alternative, break sequences (sustained serial low states) can be used to punctuate the bursts as well.
-Phil
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps (SixBladeProp)
· Prop Tools under Development or Completed (Index)
· Emulators (Micros eg Altair, and Terminals eg VT100) - index
· Search the Propeller forums (via Google)
My cruising website is: ·www.bluemagic.biz
Here is a link to the program·you are referring to... the only stipulation is that the receiver MUST already be running before you transmit. The purpose of this program was to provide a fast conduit between two Propellers for data transfer.· It is not full duplex, it is not even standard serial communication, It was written specifically in mind for the Propeller.· With a little bit of handshaking, you could modify this program to function bidirectionally.
http://forums.parallax.com/showthread.php?p=691952
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps (SixBladeProp)
· Prop Tools under Development or Completed (Index)
· Emulators (Micros eg Altair, and Terminals eg VT100) - index
· Search the Propeller forums (via Google)
My cruising website is: ·www.bluemagic.biz