Motor Vehicle Maintenance & Repair Stack Exchange is a question and answer site for mechanics and DIY enthusiast owners of cars, trucks, and motorcycles. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i need help with c++ program, if either the airbag is triggered or the deceleration detected is greater than 5 Gs, we consider that an accident occurred. The vehicle decides to ask nearby by sendig SMS.

share|improve this question

closed as too broad by Bob Cross May 22 '14 at 17:08

There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in the help center, please edit the question.

What exactly is your question ... Do you need the OBDII output, or what? – Pᴀᴜʟsᴛᴇʀ2 Apr 10 '14 at 0:07
Do you know the proper PID's? What are you struggling with exactly? – Juann Strauss Apr 10 '14 at 8:23
i need th OBD2 output that show airbag triggred – user4837 Apr 10 '14 at 10:29
This question appears to be off-topic because it is about programming – Gabriel Mongeon Apr 10 '14 at 15:05
@GabrielMongeon ... there has been other questions very similar to this which was answered. – Pᴀᴜʟsᴛᴇʀ2 Apr 10 '14 at 15:35

This will be specific to each vehicle Manufacturer and some specific to make and model. It's not covered in OBD-II and is propitiatory for each manufacturer. You might be able to detect by monitoring the CAN buss but again it will be specific to each manufacturer. You may be better off using your own G-force sensor to determine if there has been an accident, although you want the threshold to be much lower than 5 G's. The sensor type varies but all but rollover sensors measure G-force, and require two separate sensors to close at the same time, sometimes called an arming and discriminating sensor.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.