Changes between Version 3 and Version 4 of 802.11/wlan_exp/log/entry_types


Ignore:
Timestamp:
Apr 16, 2014, 5:16:37 PM (10 years ago)
Author:
murphpo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • 802.11/wlan_exp/log/entry_types

    v3 v4  
    2121        print(log_entry_types[lid].generate_entry_wiki_doc())
    2222
     23##############################
     24# Copy and Paste Python Output Below
    2325}}}
     26
    2427=== Entry Type NODE_INFO ===
    2528Details about the node hardware and its configuration. Node info values are static after boot.
     
    255258
    256259----
     260
     261
     262>>>
     263murphpo:~/svn_work/WARP/ReferenceDesigns/w3_802.11/python> python
     264Python 2.7.6 |Anaconda 1.9.1 (x86_64)| (default, Jan 10 2014, 11:23:15)
     265[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
     266Type "help", "copyright", "credits" or "license" for more information.
     267My python startup!
     268>>> from wlan_exp.log.entry_types import log_entry_types as log_entry_types
     269>>>
     270>>> for lid in log_entry_types.keys():
     271...     if(type(lid) is int and lid != 0):
     272...         print(log_entry_types[lid].generate_entry_wiki_doc())
     273...
     274=== Entry Type NODE_INFO ===
     275Details about the node hardware and its configuration. Node info values are static after boot.
     276
     277Entry type ID: 1
     278
     279||=  Field Name  =||=  DataType  =||=  Description  =||
     280|| timestamp ||  uint64  || Microsecond timer value at time of log entry creation ||
     281|| node_type ||  uint32  || Node type as 4 byte value: ![b0 b1 b2 b3]:![![BR]] b0: Always 0x00![![BR]] b1: Always 0x01 for 802.11 ref design nodes![![BR]] b2: CPU High application: 0x1 = AP, 0x2 = STA![![BR]] b3: CPU Low application: 0x1 = DCF ||
     282|| node_id ||  uint32  || Node ID, as set during wlan_exp init ||
     283|| hw_generation ||  uint32  || WARP hardware generation: 3 for WARP v3 ||
     284|| wn_ver ||  uint32  || WARPnet version, as packed bytes ![0 major minor rev] ||
     285|| fpga_dna ||  uint64  || DNA value of node FPGA ||
     286|| serial_num ||  uint32  || Serial number of WARP board ||
     287|| wlan_exp_ver ||  uint32  || wlan_exp version, as packed values ![(u8)major (u8)minor (u16)rev] ||
     288|| wlan_max_associations ||  uint32  || Maximum number of wireless associations allowed by node ||
     289|| wlan_log_max_size ||  uint32  || Maximum size in bytes of node's event log ||
     290|| wlan_mac_addr ||  uint64  || Node MAC address, 6 bytes in lower 48-bits of u64 ||
     291|| wlan_max_stats ||  uint32  || Maximum number of statistics structs maintained by node ||
     292|| ltg_resolution ||  uint32  || Minimum interval in microseconds of LTG schedules ||
     293
     294----
     295
     296
     297=== Entry Type EXP_INFO ===
     298Header for generic experiment info entries created by the user application. The payload of the EXP_INFO entry is not described by the Python entry type. User code must access the payload in the binary log data directly.
     299
     300Entry type ID: 2
     301
     302||=  Field Name  =||=  DataType  =||=  Description  =||
     303|| timestamp ||  uint64  || Microsecond timer value at time of log entry creation ||
     304|| info_type ||  uint16  || Exp info type (arbitrary value supplied by application ||
     305|| length ||  uint16  || Exp info length (describes arbitrary payload supplied by application ||
     306
     307----
     308
     309
     310=== Entry Type STATION_INFO ===
     311Information about an 802.11 association. At the AP one STATION_INFO is created for each associated STA and is logged whenever the STA association state changes. At the STA one STATION_INFO is logged whenever the STA associaiton state changes.
     312
     313Entry type ID: 3
     314
     315||=  Field Name  =||=  DataType  =||=  Description  =||
     316|| timestamp ||  uint64  || Microsecond timer value at time of log entry creation ||
     317|| mac_addr ||  6uint8  || MAC address of associated device ||
     318|| aid ||  uint16  || Association ID (AID) of device ||
     319|| host_name ||  20uint8  || String hostname (19 chars max), taken from DHCP DISCOVER packets ||
     320|| flags ||  uint32  || Association state flags: ??? ||
     321|| rx_last_timestamp ||  uint64  || Microsecond timer value at time of last successful Rx from device ||
     322|| rx_last_seq ||  uint16  || Sequence number of last packet received from device ||
     323|| rx_last_power ||  int8  || Rx power in dBm of last packet received from device ||
     324|| rx_last_rate ||  uint8  || PHY rate index in ![1:8] of last packet received from device ||
     325|| tx_phy_rate ||  uint8  || Current PHY rate index in ![1:8] for new transmissions to device ||
     326|| tx_phy_antenna_mode ||  uint8  || Current PHY antenna mode in ![1:4] for new transmissions to device ||
     327|| tx_phy_power ||  int8  || Current Tx power in dBm for new transmissions to device ||
     328|| tx_phy_flags ||  uint8  || Flags for Tx PHY config for new transmissions to deivce ||
     329|| tx_mac_num_tx_max ||  uint8  || Maximum number of transmissions (original Tx + re-Tx) per MPDU to device ||
     330|| tx_mac_flags ||  uint8  || Flags for Tx MAC config for new transmissions to device ||
     331|| padding ||  uint16  ||  ||
     332
     333----
     334
     335
     336=== Entry Type NODE_TEMPERATURE ===
     337Record of the FPGA system monitor die temperature. This entry is only created when directed by a wlan_exp command. Temperature values are stored as 32-bit unsigned integers. To convert to degrees Celcius, apply (((float)temp_u32)/(65536.0*0.00198421639)) - 273.15
     338
     339Entry type ID: 4
     340
     341||=  Field Name  =||=  DataType  =||=  Description  =||
     342|| timestamp ||  uint64  || Microsecond timer value at time of log entry creation ||
     343|| node_id ||  uint32  || wlan_exp node ID ||
     344|| serial_num ||  uint32  || Node serial number ||
     345|| temp_current ||  uint32  || Current FPGA die temperature ||
     346|| temp_min ||  uint32  || Minimum FPGA die temperature since FPGA configuration or sysmon reset ||
     347|| temp_max ||  uint32  || Maximum FPGA die temperature since FPGA configuration or sysmon reset ||
     348
     349----
     350
     351
     352=== Entry Type WN_CMD_INFO ===
     353Record of a WARPnet / wlan_exp command received by the node. The full command payload is logged, including any (possibly personal-info-carrying) parameters like MAC addresses.
     354
     355Entry type ID: 5
     356
     357||=  Field Name  =||=  DataType  =||=  Description  =||
     358|| timestamp ||  uint64  || Microsecond timer value at time of log entry creation ||
     359|| command ||  uint32  || WARPnet / wlan_exp command ID ||
     360|| src_id ||  uint16  || Node ID of device sending command ||
     361|| num_args ||  uint16  || Number of arguments supplied in command ||
     362|| args ||  10uint32  || Command arguments ||
     363
     364----
     365
     366
     367=== Entry Type TIME_INFO ===
     368Record of a time base event at the node. This log entry is used to enable parsing of log data recored before and after changes to the node's microsecond timer. This entry also allows a wlan_exp controler to write the current absolute time to the node log without affecting the node's timer value. This enables adjustment of log entry timestamps to real timestamps in post-proessing.
     369
     370Entry type ID: 6
     371
     372||=  Field Name  =||=  DataType  =||=  Description  =||
     373|| timestamp ||  uint64  || Microsecond timer value at time of log entry creation ||
     374|| time_id ||  uint32  || Random ID value included in wlan_exp TIME_INFO command; used to find common entries across nodes ||
     375|| reason ||  uint32  || Reason code for TIME_INFO log entry creation ||
     376|| new_time ||  uint64  || New value of microsecond timer value; 0xFFFFFFFFFFFFFFFF if timer was not changed ||
     377|| abs_time ||  uint64  || Absolute time in microseconds-since-epoch; 0xFFFFFFFFFFFFFFFF if unknown ||
     378
     379----
     380
     381
     382=== Entry Type RX_DSSS ===
     383
     384
     385Entry type ID: 11
     386
     387||=  Field Name  =||=  DataType  =||=  Description  =||
     388|| timestamp ||  uint64  || Microsecond timer value at PHY Rx start ||
     389|| length ||  uint16  || Length of payload in bytes ||
     390|| rate ||  uint8  || PHY rate index, in ![1:8] ||
     391|| power ||  int8  || Rx power in dBm ||
     392|| fcs_result ||  uint8  || Checksum status, 0 = no errors ||
     393|| pkt_type ||  uint8  || Packet type: 1 = other data, 2 = encapsulated Ethernet, 3 = LTG, 11 = management, 21 = control ||
     394|| chan_num ||  uint8  || Channel (center frequency) index ||
     395|| ant_mode ||  uint8  || Antenna mode: ![1,2,3,4] for SISO Rx on RF ![A,B,C,D] ||
     396|| rf_gain ||  uint8  || AGC RF gain setting: ![1,2,3] for ![0,15,30]dB gain ||
     397|| bb_gain ||  uint8  || AGC BB gain setting: ![0:31] for approx ![0:63]dB gain ||
     398|| flags ||  uint16  || Bit OR'd flags: 0x1 = Rx was duplicate of previous Rx ||
     399|| mac_payload_len ||  uint32  || Length in bytes of MAC payload recorded in log for this packet ||
     400|| mac_payload ||  24uint8  || First 24 bytes of MAC payload, typically the 802.11 MAC header ||
     401
     402----
     403
     404
     405=== Entry Type TX ===
     406Tx events in CPU High, logged for each MPDU frame created and enqueued in CPU High. See TX_LOW for log entries of actual Tx events, including re-transmissions. The time values in this log entry can be used to determine time in queue (time_to_accept), time taken by CPU Low for all Tx attempts (time_to_done) and total time from creation to completion (time_to_accept+time_to_done).
     407
     408Entry type ID: 20
     409
     410||=  Field Name  =||=  DataType  =||=  Description  =||
     411|| timestamp ||  uint64  || Microsecond timer value at time packet was created, immediately before it was enqueued ||
     412|| time_to_accept ||  uint32  || Time duration in microseconds between packet creation and packet acceptance by CPU Low ||
     413|| time_to_done ||  uint32  || Time duration in microseconds between packet acceptance by CPU Low and Tx completion in CPU Low ||
     414|| uniq_seq ||  uint64  || Unique sequence number for Tx packet; 12 LSB of this used for 802.11 MAC header sequence number ||
     415|| num_tx ||  uint8  || Number of actual PHY Tx events which were used to transmit the MPDU (first Tx + all re-Tx) ||
     416|| tx_power ||  int8  || Tx power in dBm of final Tx attempt ||
     417|| chan_num ||  uint8  || Channel (center frequency) index of transmission ||
     418|| rate ||  uint8  || PHY rate index in ![1:8] of final Tx attempt ||
     419|| length ||  uint16  || Length in bytes of MPDU; includes MAC header, payload and FCS ||
     420|| result ||  uint8  || Tx result; 0 = ACK received or not required ||
     421|| pkt_type ||  uint8  || Packet type: 1 = other data, 2 = encapsulated Ethernet, 3 = LTG, 11 = management, 21 = control ||
     422|| ant_mode ||  uint8  || PHY antenna mode of final Tx attempt ||
     423|| queue_id ||  uint8  || Tx queue ID from which the packet was retrieved ||
     424|| padding ||  2uint8  ||  ||
     425|| mac_payload_len ||  uint32  || Length in bytes of MAC payload recorded in log for this packet ||
     426|| mac_payload ||  24uint8  || First 24 bytes of MAC payload, typically the 802.11 MAC header ||
     427
     428----
     429
     430
     431=== Entry Type TX_LOW ===
     432Record of actual PHY transmission. At least one TX_LOW will be logged for every TX entry. Multiple TX_LOW entries may be created for the same TX entry if the low-level MAC re-transmitted the frame. The uniq_seq fields can be match between TX and TX_LOW entries to find records common to the same MPUD.
     433
     434Entry type ID: 21
     435
     436||=  Field Name  =||=  DataType  =||=  Description  =||
     437|| timestamp ||  uint64  || Microsecond timer value at time packet transmission actually started (PHY TX_START time) ||
     438|| uniq_seq ||  uint64  || Unique sequence number of original MPDU ||
     439|| rate ||  uint8  || PHY rate index in ![1:8] ||
     440|| ant_mode ||  uint8  || PHY antenna mode in ![1:4] ||
     441|| tx_power ||  int8  || Tx power in dBm ||
     442|| flags ||  uint8  || Tx PHY flags ||
     443|| tx_count ||  uint8  || Transmission index for this attempt; 0 = initial Tx, 1+ = subsequent re-transmissions ||
     444|| chan_num ||  uint8  || Channel (center frequency) index ||
     445|| length ||  uint16  || Length in bytes of MPDU; includes MAC header, payload and FCS ||
     446|| num_slots ||  uint16  || Number of backoff slots allotted prior to this transmission; may not have been used for initial Tx (tx_count==0) ||
     447|| cw ||  uint16  || Contention window value at time of this Tx ||
     448|| pkt_type ||  uint8  || Packet type: 1 = other data, 2 = encapsulated Ethernet, 3 = LTG, 11 = management, 21 = control ||
     449|| padding ||  3uint8  ||  ||
     450|| mac_payload_len ||  uint32  || Length in bytes of MAC payload recorded in log for this packet ||
     451|| mac_payload ||  24uint8  || First 24 bytes of MAC payload, typically the 802.11 MAC header ||
     452
     453----
     454
     455
     456=== Entry Type TXRX_STATS ===
     457Copy of the Tx/Rx statistics struct maintained by CPU High. If promiscuous statistics mode is Tx/Rx stats structs will be maintained for every unique source MAC address, up to the max_stats value. Otherwise statistics are maintaind only associated nodes.
     458
     459Entry type ID: 30
     460
     461||=  Field Name  =||=  DataType  =||=  Description  =||
     462|| timestamp ||  uint64  || Microsecond timer value at time of log entry creation ||
     463|| last_timestamp ||  uint64  || Microsecond timer value at time of last Tx or Rx event to node with address mac_addr ||
     464|| mac_addr ||  6uint8  || MAC address of remote node whose statics are recorded here ||
     465|| associated ||  uint8  || Boolean indicating whether remote node is currently associated with this node ||
     466|| padding ||  uint8  ||  ||
     467|| data_num_rx_bytes ||  uint64  || Total number of bytes received in DATA packets from remote node ||
     468|| data_num_tx_bytes_success ||  uint64  || Total number of bytes successfully transmitted in DATA packets to remote node ||
     469|| data_num_tx_bytes_total ||  uint64  || Total number of bytes transmitted (successfully or not) in DATA packets to remote node ||
     470|| data_num_rx_packets ||  uint32  || Total number of DATA packets received from remote node ||
     471|| data_num_tx_packets_success ||  uint32  || Total number of DATA packets successfully transmitted to remote node ||
     472|| data_num_tx_packets_total ||  uint32  || Total number of DATA packets transmitted (successfully or not) to remote node ||
     473|| data_num_tx_packets_low ||  uint32  || Total number of PHY transmissions of DATA packets to remote node (includes re-transmissions) ||
     474|| mgmt_num_rx_bytes ||  uint64  || Total number of bytes received in management packets from remote node ||
     475|| mgmt_num_tx_bytes_success ||  uint64  || Total number of bytes successfully transmitted in management packets to remote node ||
     476|| mgmt_num_tx_bytes_total ||  uint64  || Total number of bytes transmitted (successfully or not) in management packets to remote node ||
     477|| mgmt_num_rx_packets ||  uint32  || Total number of management packets received from remote node ||
     478|| mgmt_num_tx_packets_success ||  uint32  || Total number of management packets successfully transmitted to remote node ||
     479|| mgmt_num_tx_packets_total ||  uint32  || Total number of management packets transmitted (successfully or not) to remote node ||
     480|| mgmt_num_tx_packets_low ||  uint32  || Total number of PHY transmissions of management packets to remote node (includes re-transmissions) ||
     481
     482----
     483
     484
     485=== Entry Type RX_OFDM ===
     486
     487
     488Entry type ID: 10
     489
     490||=  Field Name  =||=  DataType  =||=  Description  =||
     491|| timestamp ||  uint64  || Microsecond timer value at PHY Rx start ||
     492|| length ||  uint16  || Length of payload in bytes ||
     493|| rate ||  uint8  || PHY rate index, in ![1:8] ||
     494|| power ||  int8  || Rx power in dBm ||
     495|| fcs_result ||  uint8  || Checksum status, 0 = no errors ||
     496|| pkt_type ||  uint8  || Packet type: 1 = other data, 2 = encapsulated Ethernet, 3 = LTG, 11 = management, 21 = control ||
     497|| chan_num ||  uint8  || Channel (center frequency) index ||
     498|| ant_mode ||  uint8  || Antenna mode: ![1,2,3,4] for SISO Rx on RF ![A,B,C,D] ||
     499|| rf_gain ||  uint8  || AGC RF gain setting: ![1,2,3] for ![0,15,30]dB gain ||
     500|| bb_gain ||  uint8  || AGC BB gain setting: ![0:31] for approx ![0:63]dB gain ||
     501|| flags ||  uint16  || Bit OR'd flags: 0x1 = Rx was duplicate of previous Rx ||
     502|| chan_est ||  (64,2)i2  || OFDM Rx channel estimates, packed as ![(uint16)I (uint16)Q] values, one per subcarrier ||
     503|| mac_payload_len ||  uint32  || Length in bytes of MAC payload recorded in log for this packet ||
     504|| mac_payload ||  24uint8  || First 24 bytes of MAC payload, typically the 802.11 MAC header ||
     505
     506----
     507