oms_wp_phy_rcvd_pk_accept_status_get()

Abstract

Obtains the accept status and average SNR value of the given packet received from the PHY module.

Syntax

oms_wp_phy_rcvd_pk_accept_status_get (rcvd_pkptr, snr_ptr)

Argument Type Description
rcvd_pkptr Packet* Packet to be evaluated
snr_ptr double* Pointer to the SNR

Return Type

Boolean

OPC_TRUE: The packet was successfully received by the PHY. OPC_FALSE: The packet was rejected by the PHY.

Details

The accept status indicates if the packet was originally accepted or rejected by the PHY layer. This is useful when using multicarrier mode, where packets are delivered to the MAC layer even if the PHY layer determined that the packet should be dropped. Dropped packets are still used by the MAC layer to help the retransmission mechanism reconstruct the data in the packets. This function also provides the average SNR experienced by the packet.

You can force a packet to be received regardless of its reception error conditions by setting the property OMSC_WP_PK_ECC_ACCEPT_STATUS_INT before the packet is transmitted by calling oms_wp_phy_pk_transmission_info_set().

Example

/* Packet arrived via PHY layer model.						*/
/* Get the decode recommendation from the PHY.					*/
else if ((decode_success = oms_wp_phy_rcvd_pk_accept_status_get 
		(rcvd_pkptr, &effective_snr_db)) != OPC_TRUE)	{
	/* Find the current number of retransmissions for this process.		*/
	num_rxmt = ue_context_ptr->harq_receive_state_arr [harq_process]->num_rxmt;
	/* The PHY layer could not decode the packet, pass it to HARQ		*/
	/* channel to compute HARQ SNR gain.					*/
	harq_support_packet_coding_gain_calculate_simple_harq (HarqC_Chase_Combining,
		&effective_snr_db,
		1.0 /*This is the entire packet*/, ue_context_ptr->harq_receiver_handle,
		harq_process,
		(num_rxmt == 0) /*New transmission*/);;

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com