Skip to content

Instantly share code, notes, and snippets.

@j2abro
Last active November 4, 2015 01:10
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save j2abro/e6d3e45de405d5e99b1a to your computer and use it in GitHub Desktop.
Save j2abro/e6d3e45de405d5e99b1a to your computer and use it in GitHub Desktop.
Bluetooth PDU data format for advertising packet
#http://interactive.blockdiag.com/packetdiag/
packetdiag {
colwidth = 32
node_height = 80
scale_direction = ltr # right_to_left; # left_to_right, ltr, right_to_left or rtl
scale_interval = 8 # draw scale labels each 4 bytes
0-15: Header\n\n(16 bits)
16-31: Payload\n\n(variable, per length field in header) [colheight = 2]
* PDU Type [rotate = 270, len=4]
* RFU [rotate = 270, len = 2] #this format also works
* TxAdd [rotate = 270, len = 1]
* RxAdd [rotate = 270, len = 1]
* Length [rotate = 270, len = 6]
* RFU [rotate = 270, len = 2]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment