Changes between Version 1 and Version 2 of 802.11/wlan_exp/log/entry_types


Ignore:
Timestamp:
Apr 16, 2014, 4:04:07 PM (10 years ago)
Author:
murphpo
Comment:

--

Legend:

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

    v1 v2  
    1414
    1515== Reference Design Entry Types ==
    16 
     16{{{#!comment
     17from wlan_exp.log.entry_types import log_entry_types as log_entry_types
     18
     19for lid in log_entry_types.keys():
     20    if(type(lid) is int and lid != 0):
     21        print(log_entry_types[lid].generate_entry_wiki_doc())
     22
     23}}}
     24
     25=== NODE_INFO ===
     26Details about the node hardware and its configuration. Node info values are static after boot.
     27
     28Fields:
     29||=  Field Name  =||=  DataType  =||=  Description  =||
     30|| timestamp ||  uint64  || Microsecond timer value at time of log entry creation ||
     31|| 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 ||
     32|| node_id ||  uint32  || Node ID, as set during wlan_exp init ||
     33|| hw_generation ||  uint32  || WARP hardware generation: 3 for WARP v3 ||
     34|| wn_ver ||  uint32  || WARPnet version, as packed bytes [0 major minor rev] ||
     35|| fpga_dna ||  uint64  || DNA value of node FPGA ||
     36|| serial_num ||  uint32  || Serial number of WARP board ||
     37|| wlan_exp_ver ||  uint32  || wlan_exp version, as packed values [(u8)major (u8)minor (u16)rev] ||
     38|| wlan_max_associations ||  uint32  || Maximum number of wireless associations allowed by node ||
     39|| wlan_log_max_size ||  uint32  || Maximum size in bytes of node's event log ||
     40|| wlan_mac_addr ||  uint64  || Node MAC address, 6 bytes in lower 48-bits of u64 ||
     41|| wlan_max_stats ||  uint32  || Maximum number of statistics structs maintained by node ||
     42|| ltg_resolution ||  uint32  || Minimum interval in microseconds of LTG schedules ||
     43
     44----
     45
     46
     47=== EXP_INFO ===
     48Header 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.
     49
     50Fields:
     51||=  Field Name  =||=  DataType  =||=  Description  =||
     52|| timestamp ||  uint64  || Microsecond timer value at time of log entry creation ||
     53|| info_type ||  uint16  || Exp info type (arbitrary value supplied by application ||
     54|| length ||  uint16  || Exp info length (describes arbitrary payload supplied by application ||
     55
     56----
     57
     58
     59=== STATION_INFO ===
     60Information 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.
     61
     62Fields:
     63||=  Field Name  =||=  DataType  =||=  Description  =||
     64|| timestamp ||  uint64  || Microsecond timer value at time of log entry creation ||
     65|| mac_addr ||  6uint8  || MAC address of associated device ||
     66|| aid ||  uint16  || Association ID (AID) of device ||
     67|| host_name ||  20uint8  || String hostname (19 chars max), taken from DHCP DISCOVER packets ||
     68|| flags ||  uint32  || Association state flags: ??? ||
     69|| rx_last_timestamp ||  uint64  || Microsecond timer value at time of last successful Rx from device ||
     70|| rx_last_seq ||  uint16  || Sequence number of last packet received from device ||
     71|| rx_last_power ||  int8  || Rx power in dBm of last packet received from device ||
     72|| rx_last_rate ||  uint8  || PHY rate index in [1:8] of last packet received from device ||
     73|| tx_phy_rate ||  uint8  || Current PHY rate index in [1:8] for new transmissions to device ||
     74|| tx_phy_antenna_mode ||  uint8  || Current PHY antenna mode in [1:4] for new transmissions to device ||
     75|| tx_phy_power ||  int8  || Current Tx power in dBm for new transmissions to device ||
     76|| tx_phy_flags ||  uint8  || Flags for Tx PHY config for new transmissions to deivce ||
     77|| tx_mac_num_tx_max ||  uint8  || Maximum number of transmissions (original Tx + re-Tx) per MPDU to device ||
     78|| tx_mac_flags ||  uint8  || Flags for Tx MAC config for new transmissions to device ||
     79|| padding ||  uint16  ||  ||
     80
     81----
     82
     83
     84=== NODE_TEMPERATURE ===
     85
     86
     87Fields:
     88||=  Field Name  =||=  DataType  =||=  Description  =||
     89|| timestamp ||  uint64  ||  ||
     90|| node_id ||  uint32  ||  ||
     91|| serial_num ||  uint32  ||  ||
     92|| temp_current ||  uint32  ||  ||
     93|| temp_min ||  uint32  ||  ||
     94|| temp_max ||  uint32  ||  ||
     95
     96----
     97
     98
     99=== WN_CMD_INFO ===
     100Record 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.
     101
     102Fields:
     103||=  Field Name  =||=  DataType  =||=  Description  =||
     104|| timestamp ||  uint64  || Microsecond timer value at time of log entry creation ||
     105|| command ||  uint32  || WARPnet / wlan_exp command ID ||
     106|| src_id ||  uint16  || Node ID of device sending command ||
     107|| num_args ||  uint16  || Number of arguments supplied in command ||
     108|| args ||  10uint32  || Command arguments ||
     109
     110----
     111
     112
     113=== TIME_INFO ===
     114Record 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.
     115
     116Fields:
     117||=  Field Name  =||=  DataType  =||=  Description  =||
     118|| timestamp ||  uint64  || Microsecond timer value at time of log entry creation ||
     119|| time_id ||  uint32  || Random ID value included in wlan_exp TIME_INFO command; used to find common entries across nodes ||
     120|| reason ||  uint32  || Reason code for TIME_INFO log entry creation ||
     121|| new_time ||  uint64  || New value of microsecond timer value; 0xFFFFFFFFFFFFFFFF if timer was not changed ||
     122|| abs_time ||  uint64  || Absolute time in microseconds-since-epoch; 0xFFFFFFFFFFFFFFFF if unknown ||
     123
     124----
     125
     126
     127=== RX_DSSS ===
     128
     129
     130Fields:
     131||=  Field Name  =||=  DataType  =||=  Description  =||
     132|| timestamp ||  uint64  || Microsecond timer value at PHY Rx start ||
     133|| length ||  uint16  || Length of payload in bytes ||
     134|| rate ||  uint8  || PHY rate index, in [1:8] ||
     135|| power ||  int8  || Rx power in dBm ||
     136|| fcs_result ||  uint8  || Checksum status, 0 = no errors ||
     137|| pkt_type ||  uint8  || Packet type: 1 = other data, 2 = encapsulated Ethernet, 3 = LTG, 11 = management, 21 = control ||
     138|| chan_num ||  uint8  || Channel (center frequency) index ||
     139|| ant_mode ||  uint8  || Antenna mode: [1,2,3,4] for SISO Rx on RF [A,B,C,D] ||
     140|| rf_gain ||  uint8  || AGC RF gain setting: [1,2,3] for [0,15,30]dB gain ||
     141|| bb_gain ||  uint8  || AGC BB gain setting: [0:31] for approx [0:63]dB gain ||
     142|| flags ||  uint16  || Bit OR'd flags: 0x1 = Rx was duplicate of previous Rx ||
     143|| mac_payload_len ||  uint32  ||  ||
     144|| mac_payload ||  24uint8  ||  ||
     145
     146----
     147
     148
     149=== TX ===
     150
     151
     152Fields:
     153||=  Field Name  =||=  DataType  =||=  Description  =||
     154|| timestamp ||  uint64  ||  ||
     155|| time_to_accept ||  uint32  ||  ||
     156|| time_to_done ||  uint32  ||  ||
     157|| uniq_seq ||  uint64  ||  ||
     158|| num_tx ||  uint8  ||  ||
     159|| tx_power ||  int8  ||  ||
     160|| chan_num ||  uint8  ||  ||
     161|| rate ||  uint8  ||  ||
     162|| length ||  uint16  ||  ||
     163|| result ||  uint8  ||  ||
     164|| pkt_type ||  uint8  ||  ||
     165|| ant_mode ||  uint8  ||  ||
     166|| queue_id ||  uint8  ||  ||
     167|| padding ||  2uint8  ||  ||
     168|| mac_payload_len ||  uint32  ||  ||
     169|| mac_payload ||  24uint8  ||  ||
     170
     171----
     172
     173
     174=== TX_LOW ===
     175
     176
     177Fields:
     178||=  Field Name  =||=  DataType  =||=  Description  =||
     179|| timestamp ||  uint64  ||  ||
     180|| uniq_seq ||  uint64  ||  ||
     181|| rate ||  uint8  ||  ||
     182|| ant_mode ||  uint8  ||  ||
     183|| tx_power ||  int8  ||  ||
     184|| flags ||  uint8  ||  ||
     185|| tx_count ||  uint8  ||  ||
     186|| chan_num ||  uint8  ||  ||
     187|| length ||  uint16  ||  ||
     188|| num_slots ||  uint16  ||  ||
     189|| cw ||  uint16  ||  ||
     190|| pkt_type ||  uint8  ||  ||
     191|| padding ||  3uint8  ||  ||
     192|| mac_payload_len ||  uint32  ||  ||
     193|| mac_payload ||  24uint8  ||  ||
     194
     195----
     196
     197
     198=== TXRX_STATS ===
     199
     200
     201Fields:
     202||=  Field Name  =||=  DataType  =||=  Description  =||
     203|| timestamp ||  uint64  ||  ||
     204|| last_timestamp ||  uint64  ||  ||
     205|| mac_addr ||  6uint8  ||  ||
     206|| associated ||  uint8  ||  ||
     207|| padding ||  uint8  ||  ||
     208|| data_num_rx_bytes ||  uint64  ||  ||
     209|| data_num_tx_bytes_success ||  uint64  ||  ||
     210|| data_num_tx_bytes_total ||  uint64  ||  ||
     211|| data_num_rx_packets ||  uint32  ||  ||
     212|| data_num_tx_packets_success ||  uint32  ||  ||
     213|| data_num_tx_packets_total ||  uint32  ||  ||
     214|| data_num_tx_packets_low ||  uint32  ||  ||
     215|| mgmt_num_rx_bytes ||  uint64  ||  ||
     216|| mgmt_num_tx_bytes_success ||  uint64  ||  ||
     217|| mgmt_num_tx_bytes_total ||  uint64  ||  ||
     218|| mgmt_num_rx_packets ||  uint32  ||  ||
     219|| mgmt_num_tx_packets_success ||  uint32  ||  ||
     220|| mgmt_num_tx_packets_total ||  uint32  ||  ||
     221|| mgmt_num_tx_packets_low ||  uint32  ||  ||
     222
     223----
     224
     225
     226=== RX_OFDM ===
     227
     228
     229Fields:
     230||=  Field Name  =||=  DataType  =||=  Description  =||
     231|| timestamp ||  uint64  || Microsecond timer value at PHY Rx start ||
     232|| length ||  uint16  || Length of payload in bytes ||
     233|| rate ||  uint8  || PHY rate index, in [1:8] ||
     234|| power ||  int8  || Rx power in dBm ||
     235|| fcs_result ||  uint8  || Checksum status, 0 = no errors ||
     236|| pkt_type ||  uint8  || Packet type: 1 = other data, 2 = encapsulated Ethernet, 3 = LTG, 11 = management, 21 = control ||
     237|| chan_num ||  uint8  || Channel (center frequency) index ||
     238|| ant_mode ||  uint8  || Antenna mode: [1,2,3,4] for SISO Rx on RF [A,B,C,D] ||
     239|| rf_gain ||  uint8  || AGC RF gain setting: [1,2,3] for [0,15,30]dB gain ||
     240|| bb_gain ||  uint8  || AGC BB gain setting: [0:31] for approx [0:63]dB gain ||
     241|| flags ||  uint16  || Bit OR'd flags: 0x1 = Rx was duplicate of previous Rx ||
     242|| chan_est ||  (64,2)i2  ||  ||
     243|| mac_payload_len ||  uint32  ||  ||
     244|| mac_payload ||  24uint8  ||  ||
     245
     246----