garygid
Posts: 187
Joined: Fri Oct 05, 2012 10:19 am
Location: Laguna Hills, CA 92653
Contact: Website

Android CAN Monitoring App

Tue Oct 30, 2012 8:06 am

This thread is a place to discuss the development and use of
Android CAN-monitoring applications, usually requiring a
Bluetooth connection from an OBD CAN Reader device,
similar to the OBDLink Bluetooth device from ScanTool.

Some people are building DIY OBD BT interfaces, so
there should be more choices available "soon".

Our friend "priusfan" has constructed an Android App
using the B4A (Basic4Android) programming system.
LEAF owner, EV supporter

priusfan
Posts: 194
Joined: Mon Oct 08, 2012 7:39 am
Location: France

Re: Android CAN Monitoring App

Wed Oct 31, 2012 2:58 am

edit 21/06/2013

there are 2 applications there : https://drive.google.com/folderview?id=0B8dQaQF7N-koZ2tYWWRFOTV4a3c&usp=sharing

one is btion.... .apk
the other is trpviewer. .apk

thx to me168, there are many changes:

Release 75: add Screen Altitude History
Release 74: add Screen Speed History (the last 3 minutes)
Release 73: minor bugfix on bad values in odometer
Release 72: Rpm added
Release 71: 80 cell support
Release 67: adapt textsize for big screens
Release 62: integration 4 screens , battery cells infos are now in main application
Release 56: start communication bugfix for OBDLINK
Release 53: special trick for galaxy tab

here are links to get 2 apk
one allows to check the balance between the cells.
Image
the apk is in the folder object

the other one allows to see & log parameters
Image
the apk is in the folder object

the logs are in small SQLite database located in /sdcard/bt_can
it is easy to explore this db on a pc using firefox and the extension for sqlite.

these 2 apps are working well with my car and it was tested on 4 different android devices:
GALAXY Note
Nexus 7
Asus Transformer Prime
a chinese 7" tablet

the interface used is a very good quality BT dongle (forget chinese low cost, it will not work).

here in France, 5 guys will receive soon their dongle and start testing...
Last edited by priusfan on Fri Jun 21, 2013 1:25 am, edited 1 time in total.

garygid
Posts: 187
Joined: Fri Oct 05, 2012 10:19 am
Location: Laguna Hills, CA 92653
Contact: Website

Re: Android CAN Monitoring App

Wed Oct 31, 2012 7:26 am

Wow, very nice, splendid work.

To obtain the Cell Voltages, is it necessary to write a Request
to the CAN bus, or were you able to get the voltage data by
just "listening" to the CAN bus messages?

I wish that I could get the cell-pair voltage data from the LEAF.

Again, VERY GOOD WORK!
LEAF owner, EV supporter

garygid
Posts: 187
Joined: Fri Oct 05, 2012 10:19 am
Location: Laguna Hills, CA 92653
Contact: Website

Re: Android CAN Monitoring App

Wed Oct 31, 2012 7:50 am

Is this "OBDLink Bluetooth Scan Tool" the device that you are using?

http://www.scantool.net/scan-tools/obdl ... tooth.html

Maybe it would be possible to put a 2 pole 3 position slide
switch on the hood of the OBD connector (on the cable
that connects this OBDLink Bluetooth device to the car)?

(For use with the LEAF to read all three of its CAN buses,)

-----
I have the OBDLink SX device that has a USB cable that
will connect to a PC, looking like a virtual Comm Port to
my CAN-Do program.

Do you know of any Bluetooth client adapter device that
would host the OBDLink SX USB client?
LEAF owner, EV supporter

garygid
Posts: 187
Joined: Fri Oct 05, 2012 10:19 am
Location: Laguna Hills, CA 92653
Contact: Website

Re: Android CAN Monitoring App

Wed Oct 31, 2012 8:00 am

Where is the iON Monitor apk?
LEAF owner, EV supporter

jjlink
Site Moderator
Posts: 401
Joined: Sun Sep 11, 2011 8:26 am
Location: San Francisco Bay Area, CA

Re: Android CAN Monitoring App

Wed Oct 31, 2012 10:08 am

I got a error message about Bluetooth on both of these apps. I told it to continue running anyway and both apps worked after the initial error message.

Image
2012-10-31 14.46.25 by JJLINK, on Flickr

Oops, here is a new error:

Image
2012-10-31 14.47.02 by JJLINK, on Flickr
John - 2012 Silver i-MiEV SE model, Jan 19th, 2012 w/OpenEvse, caniOn,& OVMS.

priusfan
Posts: 194
Joined: Mon Oct 08, 2012 7:39 am
Location: France

Re: Android CAN Monitoring App

Thu Nov 01, 2012 12:37 am

hello,
this error is strange, it means 2 records have the same timestamp....
a timer is used each 1000mS to do some logging...
at this time the timestamp is rounded to second, I will change that : no rounding, keep mS.

with the above programs, what is your experience with BT connexion?
normally, it connects fully automatically with the last used device. (it can take 3 to 5 sec, but it should start)

also the next release includes an export to flatfiles from the DB.

edit:
next release is here
changes:
a) avoids bug with BT on first use.
b) time stamp is now to mS : avoids duplicate entry in log.
c) Stop Button generates 2 txt files in the BT_CAN folfer with logs. (easy to use with excel).

necessary to emply the folder BT_CAN (only once) before the first use, because the timestamp's content is not the same.

garygid
Posts: 187
Joined: Fri Oct 05, 2012 10:19 am
Location: Laguna Hills, CA 92653
Contact: Website

Re: Android CAN Monitoring App

Thu Nov 01, 2012 7:18 am

Since the iMiEV CAN bus might make 1600 messages per second,
it is quite possible that two messages will have the same
millisecond time stamp, right?

Are you setting the OBDLink to filter only some messages?

What baud rate are you using from the OBDLink?

Very nice work.

Maybe add a one-time message asking the user if
they want to clear the BT_XXX Directory?

Or, include a version number in the files., and auto-detect
obsolete file or database structure?

Also, best to include an application version number
in the app where the user can see it, even where it
will show on a screen shot, because it will make it
much easier for you to debug when people give
you input. They can say "version XXX did... ".
LEAF owner, EV supporter

garygid
Posts: 187
Joined: Fri Oct 05, 2012 10:19 am
Location: Laguna Hills, CA 92653
Contact: Website

Re: Android CAN Monitoring App

Thu Nov 01, 2012 7:39 am

"priusfan", can you easily add a button to your cell-voltage
App to show the cell temperature data?
LEAF owner, EV supporter

garygid
Posts: 187
Joined: Fri Oct 05, 2012 10:19 am
Location: Laguna Hills, CA 92653
Contact: Website

Re: Android CAN Monitoring App

Thu Nov 01, 2012 7:50 am

Nice that you named this version 41 as a new App name,
so that it does not over-write the older version 40 app.

One version previous to 40, I think you had the application
start with sample data being displayed, even when there
is no BT available. That was a very nice feature, to be able
to show other people what nice work you are doing with
this application. Maybe that sample-data feature could
come back?

The sample data in the cell-voltage application is also
very nice. Thanks.
LEAF owner, EV supporter

Return to “Instruments - Radio/USB/Nav - CAN - Climate Controls - Remote”