Shop OBEX P1 Docs P2 Docs Learn Events
Prop to Prop communication — Parallax Forums

Prop to Prop communication

DamoDamo Posts: 16
edited 2012-06-23 08:03 in Propeller 1
Can I use the fullduplexserialplus to have two props communicate and pass data back and forth. I've tried, but don't get good results.
I've also tried the fast inter-propellor-communication file from the OBEX, but can;t get my props talking that way either.
Any suggestions ?

Comments

  • Cluso99Cluso99 Posts: 18,069
    edited 2012-06-23 07:03
    I use FullDuplexSerial_rr004 which is my version set with default buffers of 256 bytes. I run at 115,200 baud without problems. The cips need to be in close proximity. There is a faster object by Beau, but at least get this running first.
  • Duane DegnDuane Degn Posts: 10,588
    edited 2012-06-23 08:03
    I usually use 10K pull-up resistors on the com lines with my Prop to Prop projects.

    I've found Tracy Allen's version of a four port serial driver works well for Prop to Prop communication since it includes a check for framing errors.

    I've modified Tracy's version to check for an end of message character. When this character (I usually use a carriage return) is detected by the PASM driver, it increments a variable. When the main program sees this variable has increased, it then processes the message. This way I don't have to keep moving bytes around of partial messages.

    I don't think I've posted my most recent modification. I'll post it if you're interested.

    The downside to using an end of message character is you need to limit your communication to ASCII characters so your data doesn't include the end of message character. This is one of many issues that come up when deciding about a Prop to Prop communication protocol.
Sign In or Register to comment.