551 297 03 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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.
Bits 0 and 1 will cause Act error in the P-NET response on access to all variables.
Bit 0: Program_storage_fault is set if the self-test finds an error in the program memory.
Bit 1: RAM_storage_fault is set if the self-test finds an error in the data memory (RAM).
Bits 2 and 3 will cause His error in the P-NET response on access to all variables.
Bit 2: InternalReset is set if a reset is caused by a power failure, or if the power has been disconnected (only a His error).
Bit 3: ExternalReset is set if a reset is caused by writing 255 to Reset, via P‑NET (only a His error).
Bits 4 and 5 will cause Act error in the P-NET response on access to all variables.
Bit 4: ModuleError is set if a module error occurs.
Bit 5: SIM_not_inserted is set if no SIM card is inserted into the cardholder.
Bit 6: GPRS_Network_Error is set to TRUE if the module’s internal self-test detects a network error and the network connection has been reinitialised.
Bit 8: EEPROM_error_in_SMSFlagReg is set if the self-test finds an error in the data memory (EEPROM). EEPROM fault is only set at power-up If the corresponding variable(s) is accessed, Act error in the P-NET response is set.
This error can occur if the power disappears, when writing to EEPROM. Consequently, a rewrite to the variable could perhaps solve the problem.
Bit 9: SendSMS_Failed is set if transmission of an SMS fails. It is cleared when transmission of an SMS succeeds. This will cause Act error in the P-NET response on access to the SMSOutputBuffer variable. For example is this flag set if an invalid phone number has been selected.
Bit 10: SendWatchdogSMS_Failed is set if the sending of a Watchdog SMS failed. It is cleared after a successful Watchdog SMS transmission. For example is this flag set if an invalid phone number has been selected for the Watchdog SMS. A missing telephone number leads to an immediate alarm.
Bit 11: Watchdog_error is set when WDTimer in the service channel reaches zero and WDEnable is TRUE. This bit is cleared if WDTimer is above zero.
Bit 12: EEPROM_error_in_WatchdogSMSConfiguration is set TRUE if the self-test finds an error in the data memory (EEPROM). EEPROM fault is only set at power-up. If the corresponding variable(s) is accessed, Act error in the P-NET response is set.
This error can occur if the power disappears, when writing to EEPROM. Consequently, a rewrite to the variable could perhaps solve the problem. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|