Handles the functionalities of Packet Error Rate Measurement(PER) Mode, User can set and get various paramters of Transceiver like Channel,Antenna Diversity,CSMA and do the Packet Error Rate Measurement.
Modules | |
PER mode Initiator | |
This module handles the functionalities of the Initiator in PER mode. | |
PER mode Receptor | |
This module handles the functionalities of the receptor in PER mode. | |
PER mode Common Utilities | |
This module handles the PER mode Common utilities used by Initiator and Receptor. | |
Data Structures | |
struct | ed_scan_result_t |
ED scan result structure to hold the channel and its ED value. More... | |
struct | trx_config_params_t |
Structure to hold all configurable parameter values. More... | |
Macros | |
#define | PULSE_CW_TX_TIME_IN_MICRO_SEC (50000) |
Functions | |
void | configure_pkt_stream_frames (uint16_t frame_len) |
Configure the frame to be used for Packet Streaming. More... | |
Variables | |
trx_config_params_t | curr_trx_config_params [NUM_TRX] |
trx_config_params_t | curr_trx_config_params |
trx_config_params_t | default_trx_config_params |
Request and response Ids which sent over the air | |
#define | SET_PARAM (0x01) |
#define | RESULT_REQ (0x02) |
#define | RESULT_RSP (0x03) |
#define | IDENTIFY_NODE (0x07) |
#define | PER_TEST_PKT (0x0B) |
#define | PEER_INFO_REQ (0x0C) |
#define | PEER_INFO_RSP (0x0D) |
#define | DISCONNECT_NODE (0x0E) |
#define | SET_DEFAULT_REQ (0x0F) |
#define | PER_TEST_START_PKT (0x10) |
#define | RANGE_TEST_START_PKT (0x11) |
#define | RANGE_TEST_PKT (0x12) |
#define | RANGE_TEST_RSP (0x13) |
#define | RANGE_TEST_STOP_PKT (0x14) |
#define | RANGE_TEST_MARKER_CMD (0x15) |
#define | RANGE_TEST_MARKER_RSP (0x16) |
#define | REMOTE_TEST_CMD (0x17) |
#define | REMOTE_TEST_REPLY_CMD (0x18) |
#define | PKT_STREAM_PKT (0x18) |
#define | RANGE_TEST_PKT_LENGTH (19) |
#define | LED_BLINK_RATE_IN_MICRO_SEC (50000) |
Packet Error rate Measurement Generic Macros | |
#define | SET_PARAM (0x01) |
#define | RESULT_REQ (0x02) |
#define | RESULT_RSP (0x03) |
#define | IDENTIFY_NODE (0x07) |
#define | PER_TEST_PKT (0x0B) |
#define | PEER_INFO_REQ (0x0C) |
#define | PEER_INFO_RSP (0x0D) |
#define | DISCONNECT_NODE (0x0E) |
#define | SET_DEFAULT_REQ (0x0F) |
#define | PER_TEST_START_PKT (0x10) |
#define | RANGE_TEST_START_PKT (0x11) |
#define | RANGE_TEST_PKT (0x12) |
#define | RANGE_TEST_RSP (0x13) |
#define | RANGE_TEST_STOP_PKT (0x14) |
#define | RANGE_TEST_MARKER_CMD (0x15) |
#define | RANGE_TEST_MARKER_RSP (0x16) |
#define | SET_SUN_PAGE (0X17) |
#define | RANGE_TEST_PAYLOAD_LENGTH (0X08) |
#define | LED_BLINK_RATE_IN_MICRO_SEC (50000) |
#define DISCONNECT_NODE (0x0E) |
#define DISCONNECT_NODE (0x0E) |
Referenced by per_mode_receptor_rx_cb(), and send_disconnect_command().
#define IDENTIFY_NODE (0x07) |
#define IDENTIFY_NODE (0x07) |
Referenced by per_mode_receptor_rx_cb(), and send_identify_command().
#define LED_BLINK_RATE_IN_MICRO_SEC (50000) |
#define LED_BLINK_RATE_IN_MICRO_SEC (50000) |
#define PEER_INFO_REQ (0x0C) |
#define PEER_INFO_REQ (0x0C) |
Referenced by per_mode_receptor_rx_cb(), and send_peer_info_req().
#define PEER_INFO_RSP (0x0D) |
#define PEER_INFO_RSP (0x0D) |
Referenced by per_mode_initiator_rx_cb(), and send_peer_info_rsp().
#define PER_TEST_PKT (0x0B) |
#define PER_TEST_PKT (0x0B) |
Referenced by configure_frame_sending(), and per_mode_receptor_rx_cb().
#define PER_TEST_START_PKT (0x10) |
#define PER_TEST_START_PKT (0x10) |
Referenced by per_mode_receptor_rx_cb(), and send_per_test_start_cmd().
#define PKT_STREAM_PKT (0x18) |
Referenced by configure_pkt_stream_frames().
#define PULSE_CW_TX_TIME_IN_MICRO_SEC (50000) |
#define RANGE_TEST_MARKER_CMD (0x15) |
#define RANGE_TEST_MARKER_CMD (0x15) |
Referenced by per_mode_initiator_rx_cb(), and send_range_test_marker_cmd().
#define RANGE_TEST_MARKER_RSP (0x16) |
#define RANGE_TEST_MARKER_RSP (0x16) |
Referenced by per_mode_receptor_rx_cb(), and send_range_test_marker_rsp().
#define RANGE_TEST_PAYLOAD_LENGTH (0X08) |
Referenced by configure_range_test_frame_sending(), and usr_range_test_beacon_tx().
#define RANGE_TEST_PKT (0x12) |
#define RANGE_TEST_PKT (0x12) |
Referenced by configure_range_test_frame_sending(), per_mode_initiator_tx_done_cb(), and per_mode_receptor_rx_cb().
#define RANGE_TEST_PKT_LENGTH (19) |
Referenced by configure_range_test_frame_sending().
#define RANGE_TEST_RSP (0x13) |
#define RANGE_TEST_RSP (0x13) |
Referenced by per_mode_initiator_rx_cb(), and send_range_test_rsp().
#define RANGE_TEST_START_PKT (0x11) |
#define RANGE_TEST_START_PKT (0x11) |
Referenced by per_mode_receptor_rx_cb(), and send_range_test_start_cmd().
#define RANGE_TEST_STOP_PKT (0x14) |
#define RANGE_TEST_STOP_PKT (0x14) |
Referenced by per_mode_receptor_rx_cb(), and send_range_test_stop_cmd().
#define REMOTE_TEST_CMD (0x17) |
Referenced by per_mode_receptor_rx_cb(), and send_remote_cmd().
#define REMOTE_TEST_REPLY_CMD (0x18) |
Referenced by per_mode_initiator_rx_cb(), and send_remote_reply_cmd().
#define RESULT_REQ (0x02) |
#define RESULT_REQ (0x02) |
Referenced by per_mode_receptor_rx_cb(), and send_result_req().
#define RESULT_RSP (0x03) |
#define RESULT_RSP (0x03) |
Referenced by per_mode_initiator_rx_cb(), and send_result_rsp().
#define SET_DEFAULT_REQ (0x0F) |
#define SET_DEFAULT_REQ (0x0F) |
Referenced by per_mode_receptor_rx_cb(), and send_set_default_config_command().
#define SET_PARAM (0x01) |
#define SET_PARAM (0x01) |
Referenced by per_mode_receptor_rx_cb(), and send_parameters_changed().
#define SET_SUN_PAGE (0X17) |
Referenced by per_mode_initiator_tx_done_cb(), per_mode_receptor_rx_cb(), and send_sun_page_changed().
void configure_pkt_stream_frames | ( | uint16_t | frame_len | ) |
Configure the frame to be used for Packet Streaming.
frame_len | Length of the frame to be used for Packet Streaming |
References CCPU_ENDIAN_TO_LE16, app_payload_t::cmd_id, convert_16_bit_to_byte_array(), DST_PAN_ID, FCF_LEN, FCF_PAN_ID_COMPRESSION, FCF_SET_DEST_ADDR_MODE, FCF_SET_SOURCE_ADDR_MODE, FCF_SHORT_ADDR, FCS_LEN, FRAME_OVERHEAD, frame_info_tag::mpdu, PAN_ID_LEN, pkt_buffer, PKT_STREAM_PKT, SHORT_ADDR_LEN, SRC_PAN_ID, and tal_pib.
Referenced by pktstream_test().
trx_config_params_t curr_trx_config_params[NUM_TRX] |
Referenced by calculate_net_data_rate(), config_ack_request(), config_csma(), config_frame_retry(), config_frequency(), config_rpc_mode(), configure_frame_sending(), configure_range_test_frame_sending(), get_current_configuration(), per_mode_initiator_rx_cb(), per_mode_initiator_task(), per_mode_initiator_tx_done_cb(), per_mode_receptor_rx_cb(), perf_get_req(), perf_set_req(), range_test_timer_handler_cb(), set_channel(), set_channel_page(), set_parameter_on_transmitter_node(), set_paramter_on_recptor_node(), set_phy_frame_length(), set_transceiver_state(), set_tx_power(), and start_test().
trx_config_params_t curr_trx_config_params |
trx_config_params_t default_trx_config_params |