​ ​ ​ ​ SERIN Without Knowing Length? - Page 2
Page 2 of 2 FirstFirst 1 2
Results 11 to 13 of 13

Thread: SERIN Without Knowing Length?

  1. #11
    Technical Support
    Join Date
    Jan 1970
    Location
    UK
    Posts
    24,343

    Default

    Quote Originally Posted by Texasclodhopper View Post
    Wow! Same problem all the way back to when Hippy was a real hippy?
    I'd completely forgotten about that! The CTS proposal of course only works where the sender respects such a CTS signal, doesn't send when it is asserted. HSERIN background receive almost complete avoids the need for CTS as it will receive everything sent. Any CTS needed can be asserted by the PICAXE monitoring how much of the background buffer has been used.

  2. #12
    Senior Member
    Join Date
    Feb 2010
    Location
    Don't Mess With My Texas!
    Posts
    2,559
    Blog Entries
    7

    Default

    So, in reality and to summarize,

    If I want to receive "variable length or unsolicited messages", my hardware is going to have to be an X2 using background hser. I've done that with much faster stuff.

    If I want to use a serial protocol that can be common with M2 and X2 hardware, I can use SERIN. However, to do that I have to decide on a fixed length packet format AND handshake (so the message won't be unsolicited) with the sender so SERIN will be prepared to receive the fixed length packet.

    Six one way; half a dozen the other, but I really want to make this work with both M2 and X2 hardware.

    Really sounds like a plan has formed.

    Thanks to all of you for the insight!
    - Tex
    __________________________________________________ _______________________
    These words are my opinion, WYLION. Any resemblance to truth or fiction is accidental at best.
    "Truth lies dormant in our future history." ― Tex Clodhopper LXVI
    "Confidence is ignorance. If you're feeling cocky, it's because there's something you don't know." ― Eoin Colfer, Artemis Fowl

  3. #13
    Technical Support
    Join Date
    Jan 1970
    Location
    UK
    Posts
    24,343

    Default

    I think that generally sums it up.

    But you don't need a handshake with SERIN so long as the system is designed such that the receiver will be ready to receive before the sender sends.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •