Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sven Gestegård Robertz
LabComm
Commits
9e33b043
Commit
9e33b043
authored
Oct 14, 2014
by
Anders Blomdell
Browse files
Updated packet layout info
parent
e9735e39
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/python/labcomm/LabComm.py
View file @
9e33b043
#!/usr/bin/python
#
#
All packets follow
s the following layout
#
LabComm20141009 packet ha
s the following layout
#
# +----+----+----+----+
# | id |
# | id (packed32)
# +----+----+----+----+
# | length (packed32)
# +----+----+----+----+
# | data
# | ...
# +----+--
#
# Data layouts for packets
#
# TYPEDEF:
# LabComm220141009 SAMPLE:
#
# +----+----+----+----+
# | id = 0x0
0000001 |
# | id = 0x0
2 (packed32)
# +----+----+----+----+
# | type number |
# | length (packed32)
# +----+----+----+----+
# | type number (packed32)
# +----+----+----+----+
# | 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 |
...
...
@@ -36,15 +60,15 @@
# | type name (UTF8)
# | ...
# +----+----+----+----+
# | type
# | type
signature
# | ...
# +----+--
#
#
# User data:
#
LabComm2006
User data:
#
# +----+----+----+----+
# | id >= 0x000000
6
0 |
# | id >= 0x000000
4
0 |
# +----+----+----+----+
# | user data
# | ...
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment