Saia-Burgess
Controls Ltd.
Manual Modem PCDxx7 Serie│Doc. 26/793; Ed. E2│30.04.2005
Sending SMS
8
8-4
TAP functions
●
The function affects the Data Block Register 1.
●
Internally the function is working with the address register, to avoid any problem
with some alarm interrupts, those one are disabled.
Parameter
Type
Description
TAP_DB
BLOCK_DB / IN Number of the TAP_DB
Req_SEND
BOOL / IN
Request to send the SMS, 1 will process the re-
quest, 0 will cancel.
SMS_Message
ANY / IN
Pointer to the string “Message“
1)
SMS_Recipient_num. INT / IN
Number in the list of the SMS recipient
TIMER_N
TIMER / IN
Number of a TIMER reserved for the SMS function
(needed internally). TIMER can’t be used anymore.
DONE
BOOL / OUT
The SMS 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
SMS, 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.
1)
The total length of SMS_Message and SMS_Recipient_num can be 250 charac-
ters. Some TAP centre allows a maximum length of 160 characters.
8.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 value
for the parameters to use in conjunction to the TAP Center. It means, what is the
phone number of the TAP Center (with necessary prefix), which is the baud rate sup-
ported by the TAP- Center.
1.
Integrate in your project the TAP function FC801,DB810 and UDT801.
2.
Configure the
DB_TAP
(see 8.2.2 and 8.2.3).
3.
In Data Blocks, prepare the SMS message in a string format and not longer
than 250 characters (incl. SMS_Reciipient_num).
4.
Call the function FC801 in such a way that:
●
Make the request to send SMS, when the connection has been estab
lished. For this use the signal
CONNECT
from the modem Driver.
●
Cancel the Calling request when the TAP function return an signal
DONE
or
ERROR
.