Saia-Burgess
Controls Ltd.
Manual Modem PCDxx7 Serie│Doc. 26/793; Ed. E2│30.04.2005
Sending Pager Messages
7
7-4
Pager function
Parameter
Type
Description
Pager_DB
BLOCK_DB / IN Number of the Pager_DB
Req_SEND
BOOL / IN
Request to send the Pager message, 1 will proc-
ess the request, 0 will cancel.
Pager_Message
ANY / IN
Pointer to the string “Message“ (max. 140 char).
Pager_Recipient_num. INT / IN
Number in the list of the Pager recipient
Pager_Type
BOOL / IN
0: for numeric message,
1: for Alphanumeric message
TIMER_N
TIMER / IN
Number of a TIMER reserved for the Pager func-
tion (needed internally). This TIMER can’t be used
anymore.
DONE
BOOL / OUT
The message has been sent with success, stay at
1 until the Req_SEND is reset.
ERROR
BOOL / OUT
An error occurred during the transmission of the
message, stay at 1 until the Req_SEND is reset.
Status
INT / OUT
Error code of the operation, output the code until
the Req_SEND is reset.
7.3.1 Integration to the application
Integrate in your project the modem driver library (see chapter 5 to 5.3). But when
doing the configuration of the
DB_Modem
you need to consider, which are the values
for the parameters to use in conjunction to the Page Center. It means, what is the
phone number of the Page Center (with necessary prefix), which is the baud rate
supported by the Page Center.
1.
Integrate in your project the Pager function FC600,DB600 and UDT600.
2.
Configure the
Pager_DB
(see 7.2.2 and 7.2.3).
3.
In Data Blocks, prepare the message in a string format and not longer than 140
characters (maximum is usually less, depends on the provider).
4.
Call the function FC600 in a such way that:
•
Make the request to send a message, when the connection has been
established, for this use the signal CONNECT from the modem Driver.
•
Cancel the Calling request when the SMS function return an signal
DONE
or
ERROR
.