JTECH Communications Inc. SERVALERT200 Manuel D’Utilisation

Page de 26
 
SmartAlert  8214/8205 Programming/Installation Guide                               320124E 
Page 8 
Message Format 
The recommended format is the 7-digit extended format.  The 7-digit extended 
format consists of six parts: 
 
1. Preamble 
2.  Function Bit (not used in the 3-digit message format) 
3.  Cap Code  
4. Separator  
5. Pager Message 
6. Terminator 
 
A code sample is shown below.  Please refer to this example as you read 
through the sections that describe each part of the message.  The 7-digit 
extended message format is the recommended format to use for application 
developers wishing to exploit the maximum amount of flexibility out of their page-
enabled application. This format allows the SmartAlert transmitter to access 
three types of pager baud rates (512, 1200, 2400), two types of pager data 
(alphanumeric and numeric only), all four function bits (01 through 04) enabling 
priority messaging, and two types of messages (Non inverted and Inverted). 
 
Below is an excerpt from a simple visual basic software program utilizing 7-digit 
extended format, which will result in a non inverted, priority page, to a 512 RF 
baud alphanumeric pager: 
 
 
MSComm1.PortOpen = True 
 
 
 
‘Opens Serial Port for Communication 
Preamble = Chr$(255) & Chr$(255) & Chr$(255) 
FBit 
Chr$(03) 
     ‘Set 
Function 
bit 
#3 
Cap Code = “2049999”   
 
 
Separator = Chr$(10) 
 
 
‘This is an Non Inverted,512 RF baud, Alpha Page 
PagerMessage = “This is a test Page” 
Terminator = Chr$(13) 
OutPutString = Preamble & Fbit & TargetPager & Separator & PagerMessage & Terminator 
MSComm1.Output = OutPutString 
 
Example Data Stream Into 8214: (Expressed in hex) 
 
FF FF FF 03 32 30 34 39 39 39 39 0A 54 48 49 53 20 49 53 20 41 20 54 45 53 54 20 50 41 47 45 OD 
|      P      | F |Cap Code:2049999   | S|          Message: THIS IS A TEST PAGE                               | T | 
 
P = Preamble 
F = Function Bit (Byte) 
Cap Code = Seven Digits 
S = Separator 
Message = Up to 120 Characters 
T = Terminator