I was wondering if anyone could help me. I am building a security alarm using VB and I was hoping that someone may have a few ideas that would set me on the right track. Anything would be helpful.
: I was wondering if anyone could help me. I am building a security alarm using VB and I was hoping that someone may have a few ideas that would set me on the right track. Anything would be helpful. :
Hey,
I am curious... What do you mean with a 'Security Alarm'. Is that a program that detects any movements of the mouse when active? Or do you want to track a users path on internet... Check which programs they had open?
: I was wondering if anyone could help me. I am building a security alarm using VB and I was hoping that someone may have a few ideas that would set me on the right track. Anything would be helpful. :
If you are looking code for firewall application take a look at
: j04nn3, are you trying to create an application which detects a burglar smashing the door and calling the police (the VB app) ?! : ))) : Yes that is exactly what I am trying to create. Have you got any ideas to help me out?
: : j04nn3, are you trying to create an application which detects a burglar smashing the door and calling the police (the VB app) ?! : : ))) : : Yes that is exactly what I am trying to create. Have you got any ideas to help me out? :
First of all, you would need some hardware too (maybe something like ADAM4000 series module and few sensors). Then you need to make a dialer. Take a look at routines accessing serial port (modem). VB comes with MSCom...
: : j04nn3, are you trying to create an application which detects a burglar smashing the door and calling the police (the VB app) ?! : : ))) : : Yes that is exactly what I am trying to create. Have you got any ideas to help me out? : Did you try the link that I sent to you? If not try it http://website.lineone.net/~john.errington/programm.htm
I onced made a program like that you try to make. Well, there is always a hardware module that can solve your problem. But you can make it with no extra hadware... Use your Paralel port. Some pins on the pp were designed to monitor the state of the printer. This pins are (numericaly) 10,11,12,13,15. The state from this pins can me found at the port's status byte. You may be confused.., but it's simply. There is a hardware port that holds the status of the paralel port. The address of it is 0x3bd (LPT1) or 0x379 (LPT2) or 0x279 (LPT3). In QBasic the command was IN(PORT) to take a byte from a hardware port, in VB i don't know but you can search in the msdn. The only thing you have to do is to monitor this Hardware port and check for changes at its value. The byte that you get, holds in seperate bits the state for each pin: bit 3 -> Pin 15 bit 4 -> Pin 13 bit 5 -> Pin 12 bit 6 -> Pin 10 bit 7 -> Pin 11 I take the first bit as 0 and not as 1. Now with a cable you test your program by connecting the pin you want with the ground pin (1 or 25 I don't remember). In this way you don't have to buy any hardware, even the sensors you can make by your own. Try to program the code controlling the port at first and then you 'll find a way to use modem for dialing (Tip: You can use an old nokia 51xx to send sms at your phone or the opposite, control it by sms or by dialtones through modem). I hope I helped and sorry for my english.
Talking security takes more than locking doors and windows when you leave home. There are lots of other things to consider like back and front yard, inside and outside lightning, alarms and safes. http://secure-your-valuables.com/ I hope it will be useful
Comments
:
Hey,
I am curious... What do you mean with a 'Security Alarm'. Is that a program that detects any movements of the mouse when active? Or do you want to track a users path on internet... Check which programs they had open?
Greets...
Richard
:
If you are looking code for firewall application take a look at
http://www.freevbcode.com/ShowCode.Asp?ID=2500 or
http://www.codetoad.com/visual_basic/internet/
otherwise check this one
http://website.lineone.net/~john.errington/programm.htm
)))
: )))
: Yes that is exactly what I am trying to create. Have you got any ideas to help me out?
: : )))
: : Yes that is exactly what I am trying to create. Have you got any ideas to help me out?
:
First of all, you would need some hardware too
(maybe something like ADAM4000 series module
and few sensors).
Then you need to make a dialer. Take a look at
routines accessing serial port (modem).
VB comes with MSCom...
: : )))
: : Yes that is exactly what I am trying to create. Have you got any ideas to help me out?
:
Did you try the link that I sent to you? If not try it
http://website.lineone.net/~john.errington/programm.htm
bit 3 -> Pin 15
bit 4 -> Pin 13
bit 5 -> Pin 12
bit 6 -> Pin 10
bit 7 -> Pin 11
I take the first bit as 0 and not as 1.
Now with a cable you test your program by connecting the pin you want with the ground pin (1 or 25 I don't remember). In this way you don't have to buy any hardware, even the sensors you can make by your own. Try to program the code controlling the port at first and then you 'll find a way to use modem for dialing (Tip: You can use an old nokia 51xx to send sms at your phone or the opposite, control it by sms or by dialtones through modem). I hope I helped and sorry for my english.
http://secure-your-valuables.com/
I hope it will be useful