This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

one way Serial DasiyChain

Hi All,

I want to daisy chain 256 controllers serially.

TX0--->RX1|TX1--->RX2|TX2...->RX255|TX255--->RXPC

Each controller has to send a packet of 8bytes to the next controller plus all the data that it has received from the previous controllers. The last controller is connected to a PC serial port where all the data is captured.

Can anyone throw some ideas how to go about writing this code ??

Any help will be great.

Thankzz && Bye
-Rocknmoon


Parents
  • Thanks for the suggestions.

    How about the following method.

    Each controller packs its 8 bytes data and the data received from previous controllers between 8 header bytes (all zeros) and 8 tailer bytes (all ones).

    The first controller waits for X msec and then TX a header of eight zero bytes, then 8 data bytes and then 8 tailer bytes. Its RX-FIFO will be empty all the time.

    The second controller waits for X msec and then TX a header of eight zeros, then the eight data bytes of previous controller from its RX-FIFO , then its own eight data bytes , and then 8 ones at the tail.

    so on for all the controllers upstream.

    Does this sounds like workable solution ?? Any reference code to implement this logic would be highly appreciated .

    Thankzz && Bye
    -Rocknmoon

Reply
  • Thanks for the suggestions.

    How about the following method.

    Each controller packs its 8 bytes data and the data received from previous controllers between 8 header bytes (all zeros) and 8 tailer bytes (all ones).

    The first controller waits for X msec and then TX a header of eight zero bytes, then 8 data bytes and then 8 tailer bytes. Its RX-FIFO will be empty all the time.

    The second controller waits for X msec and then TX a header of eight zeros, then the eight data bytes of previous controller from its RX-FIFO , then its own eight data bytes , and then 8 ones at the tail.

    so on for all the controllers upstream.

    Does this sounds like workable solution ?? Any reference code to implement this logic would be highly appreciated .

    Thankzz && Bye
    -Rocknmoon

Children
No data