|
551 297 02 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SMS Channel
Registers in SMS channel:
RegNo 0: SMSOutputBuffer
When an SMS is written to SMSOutputBuffer, the message is sent to the requested phone number. After transmission, or if transmission fails, the SMS is deleted from SMSOutputBuffer. Note: Since this register is stored in volatile RAM, it will be cleared after power off and reset.
RegNo 1: SMSInputBuffer
TypeIDHolds the type of SMS received:
TimeDateHolds the timestamp of the SMS.
MessageIf a status report is received, the message will hold two numbers separated by a comma. The first number is the message reference number. The second number is the message status code.
When an SMS is received, it is stored in the SMSInputBuffer. Note: Since this register is stored in volatile RAM, it will be cleared after power off and reset.
RegNo 2: SMSOutputStatus
MessageReferenceNo When an SMS is sent, the service centre returns a reference number. This number can be compared with a status report. MessageReferenceNo is set to -1 when a message is written to the SMSOutputBuffer. Note: Since this register is stored in volatile RAM, it will also be set to –1 after power off and reset.
StatusIDNo If sending an SMS fails, bit 9 in ChError is set and the StatusIDNo is loaded with a number representing an SMS error described in this table:
For all specified errors, attempts should be made to send the SMS at a later time.
StatusIDNo is set to -1, when a message is written to the SMSOutputBuffer. When MessageReferenceNo changes from -1 and StatusIDNo remains at -1, the SMS has been sent without any problems. Note: Since this register is stored in volatile RAM, it will also be set to –1 after power off and reset.
RegNo. 3: SMSFlagReg
FlagReg :
The FlagReg can be accessed as one Byte or as individual bits.
Bit 0: Enable SMS Status reports The Enable SMS Status reports flag configures the module to request SMS status reports from the service centre. The status reports are transported to the SMS input buffer. Bit 7: SMSOnly Important: Setting this flag disables GPRS in the module! In the event that this flag is set the Red Error LED in the module will not be flashing as normal if the GPRS configuration is not valid. If the module has an open connection this will be terminated and the module will not make any attempts to connect, as long as SMSOnly is enabled.
RegNo 5: WatchdogSMSConfiguration
WDEnable If set, this Boolean will enable the Watchdog functionality.
PhoneNoThis field holds the phone number to which an SMS is sent if the WDTimer (in the Service channel) reaches zero before it is preset again, i.e. no communication from a master. If no phone number is entered, no SMS is sent.
WDTextThis string specifies the WatchdogSMS text.
RegNo 7: Statistics
ReceivedSMSThis field holds the number of SMS messages received since the PD 664 was powered up, or since the counter was last reset.
SentSMSThis field holds the number of SMS messages sent since the PD 664 was powered up, or since the counter was last reset.
RegNo 14: GUID
Each channel type is identified by means of a unique GUID. The value of GUID for the SMS channel is: PD/551297-01.
RegNo 15: ChError
There are two sets of error bits, actual and historical. The actual error bits reflect the current situation and will automatically follow any change. The historical error bits reflect the history and have the purpose of holding sporadic errors. The historical error bits are set together with the corresponding actual bits. They remain set after a read, so each individual bit must be cleared manually, via P-NET. Only the bits where the corresponding actual bit is false can be cleared. The “His data error” bit in the P-NET response is set if any historical bit is true. The “Act data error” bit in the P-NET response reflects the validity of the data in the response. An error in registers involved in calculating the result gives “Act data error”. See summary for how ChError.His can be cleared in particular M36 slave modules.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||