barcode generator vb.net code Setting Up the Data-Alert in Software

Maker Code 128 Code Set A in Software Setting Up the Data-Alert

Setting Up the Data-Alert
Reading Code 128B In None
Using Barcode Control SDK for Software Control to generate, create, read, scan barcode image in Software applications.
Print Code 128C In None
Using Barcode encoder for Software Control to generate, create Code 128 Code Set A image in Software applications.
Operation of the Data-Alert is simple, First you will need to connect a 9-V wall wart power supply to the circuit via the two power input pins at the top of the board. Next you will need to make up a serial communication or programming cable that connects the DataAlert header J5 to the serial port of your programming computer.
Read Code 128 Code Set A In None
Using Barcode recognizer for Software Control to read, scan read, scan image in Software applications.
Drawing Code128 In Visual C#
Using Barcode creation for .NET Control to generate, create Code 128 image in .NET framework applications.
SETTING UP THE DATA-ALERT 283
Code 128 Code Set A Encoder In Visual Studio .NET
Using Barcode encoder for ASP.NET Control to generate, create Code128 image in ASP.NET applications.
Drawing USS Code 128 In VS .NET
Using Barcode printer for .NET framework Control to generate, create Code 128C image in VS .NET applications.
Pin 14 (P10) J3-1 5V U1
Generating USS Code 128 In VB.NET
Using Barcode printer for Visual Studio .NET Control to generate, create Code 128A image in .NET framework applications.
Generating DataMatrix In None
Using Barcode drawer for Software Control to generate, create Data Matrix ECC200 image in Software applications.
1 X1 4 8
Code-39 Maker In None
Using Barcode creator for Software Control to generate, create USS Code 39 image in Software applications.
Barcode Generation In None
Using Barcode encoder for Software Control to generate, create barcode image in Software applications.
C1 R1 Pin 17 (P14) J3-4 Pin 16 (P15) J3-3 Pin 15 (P11) J3-2
EAN13 Encoder In None
Using Barcode drawer for Software Control to generate, create EAN-13 image in Software applications.
UCC.EAN - 128 Creator In None
Using Barcode encoder for Software Control to generate, create EAN 128 image in Software applications.
NJ 6355
Encoding EAN / UCC - 14 In None
Using Barcode creator for Software Control to generate, create Case Code image in Software applications.
GTIN - 12 Creator In None
Using Barcode drawer for Office Excel Control to generate, create UPC-A Supplement 2 image in Microsoft Excel applications.
Pin 23 J4-2 Pin 24 J4-3 5V J1-9 C4
Making Data Matrix ECC200 In Visual Basic .NET
Using Barcode printer for .NET framework Control to generate, create DataMatrix image in VS .NET applications.
Decoding GS1 - 13 In VB.NET
Using Barcode decoder for Visual Studio .NET Control to read, scan read, scan image in Visual Studio .NET applications.
X2 U2
Code 39 Extended Creation In Java
Using Barcode generator for Android Control to generate, create USS Code 39 image in Android applications.
Drawing UPC-A Supplement 5 In .NET Framework
Using Barcode generator for Reporting Service Control to generate, create UPC-A Supplement 5 image in Reporting Service applications.
1 16
Encoding Code 39 Extended In VS .NET
Using Barcode printer for VS .NET Control to generate, create Code-39 image in VS .NET applications.
Recognizing UPC Symbol In Java
Using Barcode decoder for Java Control to read, scan read, scan image in Java applications.
M0 M1 TX
MX 604
5V Pin 18 mic enable J1-7 C5 J1-2
C6 R5 R4
6 5 8 5 7
C7 J1-8 audio
Figure 21-7 Modem board.
Now you will need to fire-up your PC and load the supplied disk into your computer. Once the communication cable has been attached, you will now need to load the STAMP2X or the STAMPW.EXE programs. These are the editor programs you will need to load the Data-Alert programs into the microprocessor. There are two Data-Alert programs included with this project: the DATA.BS2 program (Listing 21-1), which is the basic data reporting program, and MODEMTIME.BS2 (Listing 21-2), which reports data along with the time of day. Scroll down the displayed program, look for the simulated phone number, and replace it with your own phone number. Remember, a digit 10 is programmed by a zero. If you want to dial a long distance number, just add the full sequence of numbers. If you wish to dial out from a PBX telephone system, you will need to first put in the access number such as an 8 or 9 followed by a comma,
284 DATA-ALERT
9V J4-1 J4-2 J4-3
Phone line J3-1 J3-2 J3-3 J3-4
Data-alert main board
J3-4 J3-3 J3-2 J3-1
Modem module board
J1-1 M0 Figure 21-8 Modem module connections.
'DATA.BS2 flash new_io_state old_io_state call_state io timer tpin Tele TXpin M0 M1 LedPin Siren Lamp recall_delay bdmd delay
Var Var Var Var Var Var Con Con Con Con Con Con Con Con Con Con Con
byte byte byte byte byte byte 8 9 10 14 13 15 12 13 120 17197 500
init: DIRL = %00000000 DIRH = %11111111 high M0 high M1 new_io_state = %00000000 old_io_state = %00000000
Listing 21-1 Data-Alert Program 1
SETTING UP THE DATA-ALERT 285
for flash = 1 to 3 high LedPin pause 1500 low LedPin pause 1500 next main: high LedPin new_io_state=INL pause 100 low LedPin pause 100 if new_io_state <> %00000000 then dial_data after_io1: old_io_state = new_io_state goto main delay_and_scan old_io_state = new_io_state for timer = 1 to recall_delay high LEDPin new_io_state=INL pause 100 low LedPin pause 100 if new_io_state <> old_io_state then dial_data old_io_state = new_io_state next goto after_io1 dial_data: if new_io_state = %00000000 then main high LedPin high Tele 'high Lamp high Siren pause 500 'dtmfout TXPin, 600, 600, [8] dtmfout TXPin, 500, 100, [7,2,4,7,8,6,7] sleep 10 gosub send_msg goto delay_and_scan send_msg: io = new_io_state if io.bit0=1 if io.bit1=1 if io.bit2=1 if io.bit3=1 pause 10 then then then then gosub_chan_1 gosub_chan_2 gosub_chan_3 gosub_chan_4
gosub_chan_1: high M0 low M1 pause 6000 serout tpin,bdmd,50, [" CHAN1 BURGLAR ALARM",10,13]
Listing 21-1 Data-Alert Program 1 (Continued).
286 DATA-ALERT
goto fin_1 gosub_chan_2: high M0 low M1 pause 3500 serout tpin,bdmd,50, [" CHAN2 TEMPERATURE ALARM",10,13] goto fin_2 gosub_chan_3: high M0 low M1 pause 3500 serout tpin,bdmd,50, [" CHAN3 MOTION ALARM",10,13] goto fin_3 gosub_chan_4: high M0 low M1 pause 3500 serout tpin,bdmd,50, [" CHAN4 FIRE ALARM",10,13] goto fin_4 fin_1:fin_2:fin_3:fin_4: pause 2000 serout tpin,bdmd,10,["+++"] pause 2000 serout tpin,bdmd,10,["ATH",10,13] pause 100 high M0 high M1 pause 10000 low Tele low LEDPin low Siren low Lamp low M0 pause 100 return end
Listing 21-1 Data-Alert Program 1 (Continued ).
then the actual phone number. Next, press ALT-R to load the program into the DataAlert circuit. Your Data-Alert is now programmed and ready to operate. At last, you can connect your event or alarm inputs to the set of solder pads at the far edge of the circuit board, just below the phone line connection. Remember, you must use normally open circuit switches for the alarm inputs unless you are using the optional motion module, which provides both normally open and normally closed inputs. Connect your phone line via the phone jack and your Data-Alert is now ready to serve you. Now you are ready to simulate an alarm condition to see if your Data-Alert functions. You can test the circuit in one of two ways. A simulated approach is to connect a crystal headphone across the secondary of T1 at J6, with the Data-Alert disconnected from the phone line. Apply power to the circuit, and connect a normally open switch across input
Copyright © OnBarcode.com . All rights reserved.