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 there,

    I am afraid you'll need to clarify a bit for me to be able to help you.

    -regulary send a packet with fixed length (stated in static length field)

    What's the "static length field" ? Do you mean the characteristic value length? Are you talking about fixed vs. variable length?

    -if something went wrong while transmitt

    Nothing can go wrong while transmitting in BLE. The radio and the protocol guarantee that the packet will be delivered, there is no need for application level retransmission schemes.

    Carles

Reply
  • Hi there,

    I am afraid you'll need to clarify a bit for me to be able to help you.

    -regulary send a packet with fixed length (stated in static length field)

    What's the "static length field" ? Do you mean the characteristic value length? Are you talking about fixed vs. variable length?

    -if something went wrong while transmitt

    Nothing can go wrong while transmitting in BLE. The radio and the protocol guarantee that the packet will be delivered, there is no need for application level retransmission schemes.

    Carles

Children
No Data
Related