Send Packets to the PHY Module (with Wireless Properties Specified)
This section describes how to use the API functions to send packets to the PHY module of the advanced wireless package with wireless properties specified.
Procedure 3: Sending Packets to the PHY Module (with Wireless Properties Specified)
-
Get a handle to the PHY module from the client module.
1.1 Within the client module call oms_wp_phy_module_handle_get(), providing the actual name of the PHY module.
*Result:* A local handle to the PHY module is created. Note that calling this function does not cause any interrupt or event interaction between the client module and the PHY module. -
Use oms_wp_phy_pk_transmission_info_set() to indicate the wireless transmission properties for the packet about to be transmitted. When using with single carrier mode all the following transmission properties are currently mandatory:
-
OMSC_WP_PK_START_TIME_DBL -
OMSC_WP_PK_TX_DELAY_DBL -
OMSC_WP_PK_START_FREQ_HZ_DBL -
OMSC_WP_PK_BW_HZ_DBL -
OMSC_WP_PK_END_FREQ_HZ_DBL -
OMSC_WP_PK_TX_PWR_PER_SUBCHANNEL_DBL -
OMSC_WP_PK_BLER_CURVE_PTR.—This property must be set to a modulation table handle (Modulation_Handle) obtained by usingop_tbl_modulation_get(). For example:mod_table_hdl = op_tbl_modulation_get(“qpsk”); -
OMSC_WP_PK_SIZE_PHY_BLOCKS_INT(must be set 1)
Example
oms_wp_phy_pk_transmission_info_set (pkptr, OMSC_WP_PK_START_TIME_DBL, op_sim_time (), OMSC_WP_PK_TX_DELAY_DBL, 0.001, OMSC_WP_PK_START_FREQ_HZ_DBL, 1000000.0, OMSC_WP_PK_BW_HZ_DBL, 22000000.0, OMSC_WP_PK_END_FREQ_HZ_DBL, 23000000.0, OMSC_WP_PK_TX_PWR_PER_SUBCHANNEL_DBL, 1.0, OMSC_WP_PK_BLER_CURVE_PTR, mod_table_hdl, OMSC_WP_PK_SIZE_PHY_BLOCKS_INT, 1, OMSC_WP_ARG_END);Note: Ensure that the corresponding numerical values of the properties are set using their correct notation. For example, for double values make sure to specify the decimal places even if zero (e.g., 1.0). For integers, omit any decimal places (e.g., 1).
-
-
Use function oms_wp_phy_pk_send() to pass the packet pointer and the PHY handle previously obtained.
Result: The wireless properties of the packet will be associated with the packet within the PHY module based on the current attribute configuration of the node.
End of Procedure 3