QNX Development for CIC

doublespaces

Administrator
Oct 18, 2016
7,334
AZ
The brute force way of accomplishing this goal would be to build a can sniffer and do some packet analysis. I have a software sniffer on my PC somewhere that was given to me a long time ago which records the data like wireshark. You would then try and replay those back back until you managed to trigger the alert you wanted.

If you want actual customized messages you may need to modify the cic firmware as I doubt strings are sent via Can. Then the associated hardware to trigger the arduino and then the bulk and reliability and ease of use come into consideration when you're past prototype. At that time you'll start contemplating plastic injection and you may as well start at business making Legos and army men.

The other way to go about this is to check your methanol tank routinely.
 

NoQuarter

Captain
Nov 24, 2017
1,056
Indiana
The brute force way of accomplishing this goal would be to build a can sniffer and do some packet analysis. I have a software sniffer on my PC somewhere that was given to me a long time ago which records the data like wireshark.
This is exactly the way I did it years ago. Capture thousands of records and do the analysis on most likely addresses and continue to narrow it down. That was still the "easy" part. Determining the packet payload was very difficult for anything that was more than simple yes/no on/off, etc.
 

e90reborn

Lurker
Nov 5, 2018
13
Not sure how to do it with arduino
I was actually referring to the QNX code. I can manage the Arduino code.

Reading and writing on the can bus is actually the easy part. Getting the addresses and, even harder, figuring out the data packet encoding.

I would have to say .. if your first question is how to read can data the actual data part of the problem might be a stretch.

Triggering an existing alert will be a significant achievement. Creating a custom message? That is a very big task.
That's not the way I'm going. See below.

If you want actual customized messages you may need to modify the cic firmware as I doubt strings are sent via Can. Then the associated hardware to trigger the arduino and then the bulk and reliability and ease of use come into consideration when you're past prototype.
Thanks guys for the replies. I'll try to clear things up on how I'm picturing this.

#1: my meth kit already comes with a level sensor and a led that fires up when meth level is low.
#2: led wiring is already in place all the way up to the dash
#3: i would take the led off and feed an arduino port
#4: when port goes up (meaning LED was going ON) arduino will FLAG the CAN BUS. not a string, just a switch (ON/OFF). and it's not supposed to be addressed to CIC.
#5: i'll have a custom app (QNX code I sample I was asking in the original message) running in CIC as a daemon or a cron job that would capture that custom CAN package and pops up a message when flag is ON. I am not trying to modify CIC's code.
 

NoQuarter

Captain
Nov 24, 2017
1,056
Indiana
Ok.. now this sounds much more achievable and matches something I have had in my head.

I want to add in a sensor package (MAP sensors, temp sensors, etc) and put that data on the CAN BUS to be picked up by something. MHD would be great, a custom app on the CIC would be cool.

Send me a PM to remind me to track down some of my old code. It has been years but the gist of it should be relevant.
 

e90reborn

Lurker
Nov 5, 2018
13
Ok.. now this sounds much more achievable and matches something I have had in my head.

I want to add in a sensor package (MAP sensors, temp sensors, etc) and put that data on the CAN BUS to be picked up by something. MHD would be great, a custom app on the CIC would be cool.

Send me a PM to remind me to track down some of my old code. It has been years but the gist of it should be relevant.
The data you want might already be available in the CAN BUS. Please take a look here:

 

NoQuarter

Captain
Nov 24, 2017
1,056
Indiana
The data you want might already be available in the CAN BUS. Please take a look here:

I'm talking about sensors where they don't currently exists.

Thanks for posting the link though
 

Laurens

New Member
Jun 27, 2019
1
Hi All, great work so far! I've been reading a lot on this forum for a while and would like to have access to the "setting-up-development-environment" thread so i can play around with my CIC and share my findings.

Amazing to see something developed by the community running on the CIC. I'm looking into going the HTML5 road with the development of an react app. I'm very curious for the HTML5 QNX SDK.

I'm pretty statisfied with the functionality of the CIC, but missing two features. One is Flitsmeister (iOS/Android) and more accurate traffic information. I'm very curious if it's possible to create a background service which sends out notifications (like the service required notification) when a traffic cam is detected. I'll also need GPS coordinates to achieve this.

Thanks in advance, keep up the good work!
 
Top