Author Topic: Sending single transmission to multiple nodes?  (Read 2533 times)

blebson

  • Newbie
  • *
  • Posts: 23
  • Country: us
Re: Sending single transmission to multiple nodes?
« Reply #15 on: May 14, 2017, 06:37:16 PM »
So what I ended up doing was splitting the voltage into two different bytes and then combining them after transmission. It's a bit hackey but it works just fine.

TomWS

  • Hero Member
  • *****
  • Posts: 1892
Re: Sending single transmission to multiple nodes?
« Reply #16 on: May 14, 2017, 09:16:30 PM »
So what I ended up doing was splitting the voltage into two different bytes and then combining them after transmission. It's a bit hackey but it works just fine.
Uh, how is your 'basestation' implemented?  Is the packet processed by the same type of AVR processor as your node or is it processed by a different type of processor?

Tom


blebson

  • Newbie
  • *
  • Posts: 23
  • Country: us
Re: Sending single transmission to multiple nodes?
« Reply #17 on: May 14, 2017, 10:47:52 PM »
Different processor, it's sending from a Moteino to an ESP8266.

TomWS

  • Hero Member
  • *****
  • Posts: 1892
Re: Sending single transmission to multiple nodes?
« Reply #18 on: May 15, 2017, 07:51:51 AM »
Different processor, it's sending from a Moteino to an ESP8266.
Ok, you didn't post your code so I can't comment on that, therefore I suggest you do some research on "data alignment within structures" for the various processors you're using.  I think you'll find the answer to your difficulties in that research.

Tom

blebson

  • Newbie
  • *
  • Posts: 23
  • Country: us
Re: Sending single transmission to multiple nodes?
« Reply #19 on: May 15, 2017, 10:51:05 AM »
Thanks for your help!

syrinxtech

  • Sr. Member
  • ****
  • Posts: 306
  • Country: us
    • Syrinx Technologies
Re: Sending single transmission to multiple nodes?
« Reply #20 on: May 15, 2017, 11:35:55 AM »
Good catch Tom....definitely sounds like a packing primitive is going to be in order here.

TomWS

  • Hero Member
  • *****
  • Posts: 1892
Re: Sending single transmission to multiple nodes?
« Reply #21 on: May 15, 2017, 01:16:21 PM »
Good catch Tom....definitely sounds like a packing primitive is going to be in order here.
Maybe not.  The ESP8266 does not like to have its primitives unaligned.  Reordering maybe...
Actually, on second thought, I'm not 100% sure that the radio.DATA is guaranteed to be aligned on a word although it should be.  OP can research and educate us ;-)

Tom
« Last Edit: May 15, 2017, 01:18:47 PM by TomWS »