Commit 9e33b043 authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Updated packet layout info

parent e9735e39
#!/usr/bin/python #!/usr/bin/python
# #
# All packets follows the following layout # LabComm20141009 packet has the following layout
# #
# +----+----+----+----+ # +----+----+----+----+
# | id | # | id (packed32)
# +----+----+----+----+
# | length (packed32)
# +----+----+----+----+ # +----+----+----+----+
# | data # | data
# | ... # | ...
# +----+-- # +----+--
# #
# Data layouts for packets # LabComm220141009 SAMPLE:
#
# TYPEDEF:
# #
# +----+----+----+----+ # +----+----+----+----+
# | id = 0x00000001 | # | id = 0x02 (packed32)
# +----+----+----+----+ # +----+----+----+----+
# | type number | # | length (packed32)
# +----+----+----+----+
# | type number (packed32)
# +----+----+----+----+ # +----+----+----+----+
# | type name (UTF8) # | type name (UTF8)
# | ... # | ...
# +----+----+----+----+ # +----+----+----+----+
# | type # | signature length (packed32)
# +----+----+----+----+
# | type signature
# | ...
# +----+--
#
# LabComm20141009 User data:
#
# +----+----+----+----+
# | id >= 0x00000040 (packed32)
# +----+----+----+----+
# | length (packed32)
# +----+----+----+----+
# | user data
# | ... # | ...
# +----+-- # +----+--
#
#
# LabComm2006 packets has the following layout
# #
# +----+----+----+----+
# | id |
# +----+----+----+----+
# | data
# | ...
# +----+--
# #
# SAMPLE: # LabComm2006 SAMPLE:
# #
# +----+----+----+----+ # +----+----+----+----+
# | id = 0x00000002 | # | id = 0x00000002 |
...@@ -36,15 +60,15 @@ ...@@ -36,15 +60,15 @@
# | type name (UTF8) # | type name (UTF8)
# | ... # | ...
# +----+----+----+----+ # +----+----+----+----+
# | type # | type signature
# | ... # | ...
# +----+-- # +----+--
# #
# #
# User data: # LabComm2006 User data:
# #
# +----+----+----+----+ # +----+----+----+----+
# | id >= 0x00000060 | # | id >= 0x00000040 |
# +----+----+----+----+ # +----+----+----+----+
# | user data # | user data
# | ... # | ...
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment