Chops up the specified packet contents into a list of fields. Does
not attempt to re-order the field values for parsing. ''.join(X) will
reassemble original packet string. Fields which may or may not be
present (such as the Source PAN field) are empty if they are not present,
keeping the list elements consistent, as follows: FCF | Seq# | DPAN | DA
| SPAN | SA | [Beacon Data] | PHY Payload
If the packet is a beacon frame, the Beacon Data field will be
populated as a list element in the format:
Superframe Spec | GTS Fields | Pending Addr Counts | Proto ID | Stack
Profile/Profile Version | Device Capabilities | Ext PAN ID | TX Offset |
Update ID
An exception is raised if the packet contents are too short to
decode.
- Parameters:
packet (String) - Packet contents.
- Returns: list
- Chopped contents of the 802.15.4 packet into list elements.
|