gsmBER (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

All

Firmware version:

1.00 / 1.00.00


This function returns the Bit Error Rate in the communication with the GSM base station.

To check the bit error rate there must be a call in progress to obtain realistic values. If no call is set up, there is no BER to be determined. In this case, the indicated value may be 0 or 99 depending on the SIM card.

If the GSM is not powered on, the indicated value will be 1.

 

 

Input:

None.

         

Returns: SINT (0..7, 99)

Bit Error Rate (0..7).

 

Declaration:

FUNCTION gsmBER : SINT;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
VAR
  ber : SINT;
END_VAR;
 
BEGIN
  ...
  // Get Bit Error Rate
  ber := gsmBER();
  ...
END;
 
END_PROGRAM;