|Program for the Reporting of Alarms Via SMS digital format by a GMB HRxxx, combined with various types of Mini Module, capable of capturing digital lines.|
SAV-SMS and 'a simple and
efficient system for acquiring digital input signals can send
a text message containing the status of Opto-Isolated lines,
the activation of a Trigger signal input.
This trigger signal is the first line Opto-Isolated input available on the GMB HRxxx chosen.
Whenever input is activated Trigger, the system will photograph the state of the digital inputs and transmit it through a suitably formatted SMS, phone number firmly inserted in the program.
|The program SAV-SMS management via the GMB HR84, manages the acquisition of 7 digital input lines.|
From this management program, of which it is possible to buy the program in the Source form, it becomes possible to increase the operation by introducing, for example, the different trigger conditions. It becomes possible to easily modify the program by making sure that sending SMS is made only to the achievement of specific conditions of entry or by including also the exact conditions on the Analog Inputs.
|The program SAV-SMS management via the GMB HR168, manages the acquisition of 15 digital input lines.|
You can also extend the operation of the program can also introducing the management of the output moving true a true remote control system.
|The program SAV-SMS management via the GMB HR246 manages the acquisition of 23 digital input lines.|
Main Module of Demo program that illustrate how to send
SMS according with Variations of the Digital
Inputs available on selected hardware. The SMS is transmitted
to any compatible system (Mobile Phone, PC, Tablet,
etc.) over the wireless GSM network, through DIGICOM
modem Pocket GPRS provided of an active SIM card.
The program includes all code for SMS management, in source format, and it executes the following simple operations:
01) It initializes the modem and it checks the GSM features. In detail it performs the following controls:
- presence of the modem -> OUT A1
- PIN protection -> OUT A2
- Subscription to GSM network and Wireless coverage quality -> OUT B1
- Availability and subscription to Phone service provider -> OUT B2
Each controls is a possible cause of malfunction and it is signalized to user, by activating the side reported relay output.
Other checks could be performed by the user according with his requirements and his enviromental conditions.
02) Whenever a malfunction condition is found the Demo program stops with the relays output enabled as before described. Viceversa when no problems are found (no outputs enabled) the programs continuosly ececutes the following steps.
03) It cecks the first input (IN1-1) status that acts as a trigger for SMS sending.
04) When the trigger input is enabled (LED turned on) for at least 1 second it sends an SMS to a preset telephone number. The SMS includes:
- An header with an identification name,
- The available inputs legend,
- The status of all the hw inputs aligned with the legend.
An example of SMS transmitted by a GMB HR168, provided of 16 digital
Inputs, is: xxxx
1 2 3 4 5 6 7 8
0 0 1 0 1 1 0 0
1 0 0 0 0 0 1 1
05) Once the Trigger input is disabled, it is masked for 10 seconds; during this time no SMS will be sent.
NOTE: Perform the configurations described in the following steps:
01) Check presence of 8951CC03.DAT file in BASCOM-8051 root directory and copy it if not available;
02) Inside "Options | Compiler | Misc" window set:
Register File = 8951CC03.DAT
Byte End(Hex) = A0
Size warning = selected at 65535 (=FFFFH)
03) Inside "Options | Compiler | I2C" window set:
SCL Port = P2.0
SDA Port = P2.1
RC5 Port = P0.0 (don't care)
04) Inside "Options | Programmer" window set:
Programmer = External programmer
Wav file = empty
AutoFlash = not selected
Autoverify = not selected
Code + Data = not selected
Other | Program = select BATCHISP.EXE from the already installed FLIP folder
Other | Parameter = -cmdfile "DemoSMS_MAIN_11.CMD"
Other | Mode = Go to program[bas] directory and run application
Other | Use HEX file = not selected
05) Inside "Options | Communication" window set:
COM port = those connected to GMB HR168
Baudrate = 9600
Parity = None
Databits = 8
Stopbit = 1
Handshake = None
Emulation = TTY
Font = Terminal, Normal, 12 points, white colour
Backcolor = Navy
Run emulator modal = not selected
06) Connect RS 232 serial line of target boards to RS 232 serial line on PC.
GMB HR168 CN6 pin 5 = RX RS232 <----> TX pin 3 COMx DB9M PC
GMB HR168 CN6 pin 3 = TX RS232 <----> RX pin 2 COMx DB9M PC
GMB HR168 CN6 pin 7 = GND <----> GND pin 5 COMx DB9M PC
07) Compile the fw program by using command Program | Compile or the shortcut F7.
08) Download the fw program to target board, by using command Program | Send to chip or the shortcut F4.
09) Realize a serial communication cable that connect RS 232 serial line of target boards to RS 232 serial line on Modem.
GMB HR168 CN6 pin 5 = RX RS232 <----> TX pin 2 DB9F Modem
GMB HR168 CN6 pin 3 = TX RS232 <----> RX pin 3 DB9F Modem
GMB HR168 CN6 pin 7 = GND <----> GND pin 5 DB9F Modem
To correctly use this program, first of all check modem configuration
- Insert the active SIM cards into proper Pocket
- Ensure that Modem communication speed is 9600 Baud
and if it isn't, please change it as described in modem documentation.
For example you can connect modem directly to a PC's COM
line and then you can supply the suitable commands through the
BASCOM Terminal Emulator tools. In detail, suppose that
Modem is configured for a communication with 115200, 8, 1, No, No Protocol; It must be changed by performing the following steps:
It must be changed by performing the following steps:
. Connect PC COM to modem RS 232 connector;
. Configure PC COM for original protocol 115200, 8, 1, No, No in Option | Communication window and open the Tools | Terminal Emulator window;
. Inside the BASCOM Terminal Emulator window type the commands AT<Enter> and AT+IPR=9600<Enter> in order to configure the new protocol on modem;
. Close BASCOM Terminal Emulator, then configure PC COM for new protocol 9600, 8, 1, No, No and reopen Terminal Emulator window;
. Type the command AT&W<Enter> in order to save the new protocol on modem;
. Close Terminal Emulator window: now the modem configuration has been changed. Perform the configurations described in hardware definition file:
- Choose File | Open item;
- Select the folder with all the demo SMS source files on yoour PC hard disk;
- Select DemoSMS_HW_xxxxxx_xxxxxx_??.BAS that will be opened and displayed;
- Read and perform the IDE configuration steps; at this point the demo SMS program is downloaded and executed on target board. Connect modem to target board and try the demo program.
- Connect RS 232 serial line of target board to RS 232 serial line of GSM Modem (inside hardware file there is a detailed description of the suitable
- Arrange all system connections as digital inputs, power supply, antenna, etc.
- Supply power to system (both modem and target board) and check the demo functionalities.
SAV-SMS Program Versions With 8051 CPU
- GMB HR84 + GMM 518 Complete Program Source DEMO.
- GMB HR168 + GMM ACB Complete Program Source DEMO.
- GMB HR168 + GMM ACB Zero Complete Program Source DEMO.
- GMB HR246 + GMM ACB Complete Program Source DEMO.
- GMB HR246 + GMM ACB Zero Complete Program Source DEMO.
SAV-SMS Program Versions With AVR CPU
- GMB HR84 + GMM AM328 Complete Program Source DEMO.
- GMB HR168 + GMM AM644 Complete Program Source DEMO.
- GMB HR168 + GMM AM1284 Complete Program Source DEMO.
- GMB HR246 + GMM AM644 Complete Program Source DEMO.
- GMB HR246 + GMM AM1284 Complete Program Source DEMO.
- At least one SAV-SMS
- A power supply source for the selected hardware device.
- A GSM Modem.
- Communication cables.