This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to use the static length field when receiving

Hi!

My idea of sending a packet would be:

-regulary send a packet with fixed length (stated in static length field) to a base: i.e send the temperature =>4byte -if something went wrong while transmitt (and this becomes recognized) in the next attempt the new temp value (4byte) + the last one (4byte): (=> 8byte) get sent (now plus 1byte payload length information)

So i thought i set the static length in transmitter and receiver to 4byte, in case of a neccesary retransmitt the transmitter sends now 8byte data + 1byte addtional payload length information which the receiver takes care about.

Is this the way you would use this static length field or do i misunderstand something (i still cant see the benefit using/having the static length field)?

The reason i am asking: According the Reference manual i thought its like having static length = 0 and if mor bytes need to be sent the transmitter does so by adding static length.... problem with this would be though that the receiver configuration would not fit the transmiter any more.

RGDS Dominik

Parents
  • Hi Carles,

    it was a little late when posting the question I am afraid ;) The question is about proprietary protocolls and how to best(most power efficient) define the payload length for a scenario with "random" retransmits...

    When I was talking about the "static length field" this means the "statlen" bits in the radios packet configuration register.

    "If something went wrong" in order to the receiver couldnt receive data because the signal strength was too low, the distance to high, the channel was used by any other transceiver,... it is needed retransmit the "lost" data in addition to the new sensor data fetched.

    hope this now helps you to help me :) RGDS Dominik

Reply
  • Hi Carles,

    it was a little late when posting the question I am afraid ;) The question is about proprietary protocolls and how to best(most power efficient) define the payload length for a scenario with "random" retransmits...

    When I was talking about the "static length field" this means the "statlen" bits in the radios packet configuration register.

    "If something went wrong" in order to the receiver couldnt receive data because the signal strength was too low, the distance to high, the channel was used by any other transceiver,... it is needed retransmit the "lost" data in addition to the new sensor data fetched.

    hope this now helps you to help me :) RGDS Dominik

Children
No Data
Related