Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Hooking Car alarm into PC To monitor

  1. #1
    Constant Bitrate
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    144

    Hooking Car alarm into PC To monitor

    I am going to be puting my car pc in this weekend. I was wondering if anyone has there alarm hooked into their Car pC. If you do what is the name or what adapter did you use.

  2. #2
    MySQL Error MatrixPC's Avatar
    Join Date
    Sep 2003
    Location
    Beach City, Socal
    Posts
    4,053
    What you want to do with it?

    This is an installed by cproaudio on this
    97 Toyota Tacoma truck. to see what a car alarm and computer can do.
    2004 Matrix XR A7N8X-VM/400 AMD XP-M 2500+, DS-ATX
    89 Supra Turbo P3 600E@750/Abit BE6 II, Alpine M-BUS Car2PC.
    Y2K Accord Dell GX150
    RoadRunner is the best FE PERIOD
    EmoRebellion is a SCAMMER

  3. #3
    Newbie
    Join Date
    Nov 2003
    Location
    Los Angeles
    Posts
    18
    If the purpose is to protect the car pc, best bet would be to put a spring switch behind the unit, so when you pull it out, it automatically goes off.

  4. #4
    Neither darque nor pervert DarquePervert's Avatar
    Join Date
    Apr 2004
    Location
    Elsewhere
    Posts
    13,949
    Quote Originally Posted by cyberdrakon
    If the purpose is to protect the car pc, best bet would be to put a spring switch behind the unit, so when you pull it out, it automatically goes off.
    That or some sort of shock sensor, perhaps.
    Have you looked in the FAQ yet?
    How about the Wiki?



    Under normal circumstances, a signature would go here.

  5. #5
    Constant Bitrate
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    144
    I was thinking more in having a connection from my alarm system to my pc via USB or RS232 and monitor the system ( like a log sheet on how many times it went of and such)

  6. #6
    Variable Bitrate BiohazrD's Avatar
    Join Date
    Sep 2004
    Location
    Katy TX
    Posts
    431
    Unless your manufacturer makes a kit for something like this, you would have to use a scotch-lok to make an IO cable from the computer of the alarm. This actually wouldnt be very hard, you can find the ends to IO connectors at RadioShack. Then just write a program that captures all data from the port, set off the alarm, find the data that was sent at that time, and write a program that watches for that value.
    Quick! To the Popemobile!

  7. #7
    Variable Bitrate BiohazrD's Avatar
    Join Date
    Sep 2004
    Location
    Katy TX
    Posts
    431
    Here, I took just about all of the guess work out of it for you.

    Code:
    import java.io.*;
    import javax.comm.*;
    
    public class AlarmInterface implements Runnable
    {
    	InputStream  input = null;
    	OutputStream output;
    	String activationString = "asdf";
    	SerialPort serialPort = null;
    
    
    	public AlarmInterface(String name, int baud, int timeout) throws Exception
    	{
    		CommPortIdentifier portId = CommPortIdentifier.getPortIdentifier(name);
    		serialPort = (SerialPort)portId.openPort("GenericSerialReader", timeout);
    		serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE);	
    		serialPort.setFlowcontrolMode(SerialPort.FLOWCTRL_NONE);   
    		serialPort.enableRcvThreshold(1);
    		serialPort.enableRcvTimeout(timeout);
    		int rosStatus = 0;
    
    		System.out.println("Open device called");
    
    		output = serialPort.getOutputStream();
    		input = serialPort.getInputStream();
    	}
    	
    	public void run()
    	{
    		try
    		{
    			if(output.readLine().compareToIgnoreCase(actiavtionString) == 0)
    			{
    				//Write and call an log function here	
    			}
    		}
    		catch(Exception e)
    		{
    			System.err.println(e);
    		}
    	}
    	
    	public static void main(String [] args)
    	{
    		Thread mt = new Thread(new AlarmInterface("Alarm Reader", 9600, 1000));
    		mt.start();
    	}
    }
    Edit: Yeah, it's in Java. You will need to download the javax.comm package for this to work.
    Quick! To the Popemobile!

  8. #8
    Variable Bitrate darkhalo's Avatar
    Join Date
    Apr 2004
    Location
    Puerto Rico
    Posts
    302
    im interested in seeing this work..
    Carputer: 2.8Ghz P4, 512 RAM, 120gb HDD, WIFI, TV tuner, CDRW/DVDROM, Slot load DVD in front.
    Screen: Lilliput 7" touchscreen (Custom made Carbon Fiber Screen Enclosure)
    S2000 Carputer

  9. #9
    Constant Bitrate
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    144
    Thanx Bio

    I am not a programmer but i can do the wiring and install this is a project to try thou

    I seen that the clifford G5 alarm can also do this right off the shelf with a serial connection that i seen today.

  10. #10
    It ain't easy being a green moderator meddler's Avatar
    Join Date
    Aug 2002
    Location
    Steps out the front of Henson's workshop or Sydney
    Posts
    2,783
    I want to get the Clifford G5, but I just have to find who actually sells them in Australia. They are suppose to be installed by a accredited installer. They won't just sell you the alarm If anyone knows where I can get one, let me know.
    Never let the truth get in the way of a good story

Page 1 of 2 12 LastLast

Similar Threads

  1. Car PC gives edless possibilities!
    By Smukkasen in forum Newbie
    Replies: 18
    Last Post: 06-27-2004, 11:09 AM
  2. need everything for a PC in car??
    By Hollis613 in forum Wireless Communications
    Replies: 3
    Last Post: 04-23-2004, 01:42 PM
  3. will pcchips 748 mobo work as a car pc?
    By hud in forum General Hardware Discussion
    Replies: 2
    Last Post: 03-10-2004, 08:55 PM
  4. About power Supply to PC in car
    By Sk8te in forum General Hardware Discussion
    Replies: 2
    Last Post: 11-11-2000, 10:39 AM
  5. CRT monitor in car
    By TokaTola in forum General Hardware Discussion
    Replies: 2
    Last Post: 02-27-2000, 03:01 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •