OperationErrorCodesExt: Operation Error Codes (ENUM Type)

Enumerated Type Description

The OperationErrorCodesExt enumerated type contains codes that correspond to detected errors. The value of the communication error code returned by the nCommError output affects the meaning of the operation error code returned by the nOperError output.

nCommError = CommunicationOK

When the communication error code is 00 hex (correct transaction), the OperationErrorCo­desExt enumerated type can return these values:

Enumerator

Value (hex)

Description

OperationOK

00

The exchange is valid.

NotProcessed_or_TargetResourceMissing

01

The request has not been processed, or the target system’s resource is absent.

BadResponse

02

The received response is incorrect.

ModemConfSLAsciiFailed

100

The configuration of the serial line in ASCII failed. (See note 1.)

ModemReconfSLFailed

200

The configuration of the serial line back to the user configuration failed. (See note 1.)

ModemBusy

300

The modem answers “BUSY” to the Dial command. (See note 2.)

ModemNoDialtone

400

The modem answers “NO DIALTONE” to the Dial command. (See note 2.)

ModemNoCarrier

500

The modem’s carrier signal has been lost or disconnected. The modem answers “NO CARRIER” to the Dial command. (See note 2.)

ModemBadAnswer

600

The modem’s response in not valid.

SimConfigurationFailed

1000

The SIM card configuration failed. (For example, a PUK code is requested or the initSimString is not valid.) (See note 3.)

SimPinCodeInvalid

2000

The PIN code is not valid. (See note 3.)

SimSmsCenterInvalid

4000

The SMS center phone number is not valid. (See note 3.)

NOTE 1: These enumerated codes are dedicated to Dial and HangUp function blocks.

NOTE 2: These enumerated codes are dedicated to the Dial function block.

NOTE 3: These enumerated codes are dedicated to the ConfigSim function block

nCommError = Refused

When the communication error code is FF hex (message refused), the OperationErrorCo­desExt enumerated type can return these values:

Enumerator

Value (hex)

Description

NotProcessed_or_TargetResourceMissing

01

The request has not been processed, or the target system’s resource is absent.

BadLength

05

The length is incorrect.

CommChannelErr

06

The communication channel is associated with a detected error.

BadAddr

07

The address is incorrect.

SystemResourceMissing

0B

A system resource is missing.

TargetCommInactive

0C

A target communication function is not active.

TargetMissing

0D

The target is absent.

ChannelNotConfigured

0F

The channel is not configured.