Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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