maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Carman for Maemo 5? (https://talk.maemo.org/showthread.php?t=37259)

SamuTnT 2010-12-18 12:44

Re: Carman for Maemo 5?
 
Hi guys, i've succesfully installed carman, then i've edited the carmand.conf with the attribute "internal" for the GPS, i rebooted but i can't see the GPS Device in the GPS Setup screen, if i recheck the carmand.conf at the gps_device string i get a MAC address... if i re-edit the string with "internal" and reboot i still get the MAC Address but Carman doesn't show the damn internal GPS in GPS Setup screen... any ideas?

Thanks guys!

Just4pLeisure 2010-12-22 00:10

Re: Carman for Maemo 5?
 
Hi everyone,

First a quick self introduction - I've been involved with the forum.ecuproject.com for Saab (and other) cars, doing my bit writing some software as and when I learn how to do the next thing. Inevitably this involves a lot of googling and so I find out about other projects such as Carman...

Before I go on though, a couple of answers to some other's questions: Carman can show long and short term fuel trim as an average percentage, but ideally you would want to see the whole adaption table. My long term fuel trim for my car was just 0.2% but a few locations in the table were as much as 3% however, Carman can't show this. Carman can show boost pressure when metric units are selected - the kPa gauge next to the temperature gauge is boost pressure. 100 kPa is 1 bar although for some reason the gauge shows about 100 kPa when the engine is off so I think the maximum 240 kPa is actually 1.4 bar not 2.4 (which is OK for me because my maximum boost is 1.15 bar and I see around 210 kPa on the gauge but I know people have more boost than me so having a maximum of just 1.4 bar might be a bit low for some)

So, I have acquired an N900 and a Bluetooth thing and have it working but I'm keen to see if I can make it work more like the Trionic Suites and CarPC software which can record what the engine is doing and FLASH new BIN files to the ECU, but need a laptop or PC. I already know how to do that now, just not with a mobile phone - if you're interested take a look at my Just4Trionic project using the mbed system (to which I'm thinking about adding Bluetooth...)

Now here's my question: Could someone be kind enough to point me in the right direction for instructions on how to 'check out' the Carman source software at the maemo.org garage please? I've got a nasty feeling I need to have Linux software on my laptop, but haven't worked out how to install it on Windows - can I Visual Studio instead or even my N900 on it's own with its Maemo Linux?

I apologise if I haven't used the correct terminology, hopefully I have described things clearly enough though.

Seasons greetings and thanks in advance,
Sophie x

bugzy 2010-12-22 07:42

Re: Carman for Maemo 5?
 
@Just4pLeisure:
You can download the tarball for thee source files for each of its parts at:

1. http://repository.maemo.org/extras-d...urce/c/carman/

2. http://repository.maemo.org/extras-d...ation-wrapper/

3. http://repository.maemo.org/extras-d...-theme-tuning/

4. http://repository.maemo.org/extras-d...an-themes-dev/

5. http://repository.maemo.org/extras-d...e/c/carman-ui/

6. http://repository.maemo.org/extras-d...rce/c/carmand/


You can also get tarballs of the diablo sources from

http://repository.maemo.org/extras-d...free/source/c/

Just4pLeisure 2010-12-22 12:44

Re: Carman for Maemo 5?
 
Thanks Bugzy

Oh!!! :eek: It rather looks like I'll have to put Christmas on hold then :rolleyes: that's quite a lot to get to grips with :confused:

This might take me a little while...

Sophie x

James_Littler 2010-12-22 13:15

Re: Carman for Maemo 5?
 
Quote:

Originally Posted by Just4pLeisure (Post 901714)
Hi everyone,
100 kPa is 1 bar although for some reason the gauge shows about 100 kPa when the engine is off so I think the maximum 240 kPa is actually 1.4 bar not 2.4 (which is OK for me because my maximum boost is 1.15 bar and I see around 210 kPa on the gauge but I know people have more boost than me so having a maximum of just 1.4 bar might be a bit low for some)

When on idle there should be about 1bar of vac, so could it be accurate but showing the pressure as + rather than -?

240 kPa is 2.4 bar (or should be at least), what type of MAF sensor is fitted in the ecu as if you're expecting a reading from a 3.5bar MAF but a 3 bar is fitted it will throw the results way out.

Just4pLeisure 2010-12-23 14:55

Re: Carman for Maemo 5?
 
Quote:

Originally Posted by bugzy
You can download the tarball for thee source files for each of its parts at:

Thanks again for showing me where to get the source software - it's not actually as daunting as it first looked. The first thing I want to do is add some more options for the 'Change Unit' menu since Metric/Imperial is too restrictive. I'm used to temperature in Centigrade (metric) and distances or speeds in MPH(Imperial). It would be nice to add a 'Bar' units option for boost pressure too. So, I've some idea of which Python files to change and the changes I need to make to them but I can't for the life of me find where the Python files are on my N900. In fact I can't find anything much to do with Carman other than the file I had to edit to enable GPS.

And it's about now that I get stuck, I'm pretty sure that I can't use Visual Studio, but I've no idea what to use other than maybe some kind of Linux software except that Linux looks more like Windows than Visual Studio. So if I install Linux (and which one there seem to be many:confused:) I have (at least) 2 questions: What happens to my Windows :eek: and what is the equivalent to Visual Studio that I need to use for Carman? Alternatively is there an online website like the mbed compiler?

(If you hadn't guessed by now I haven't been writing software for very long and almost all that I have learnt is through Google :rolleyes:)

Thanks in advance...:)

Sophie x

Quote:

Originally Posted by James_Littler
When on idle there should be about 1bar of vac, so could it be accurate but showing the pressure as + rather than -?

240 kPa is 2.4 bar (or should be at least), what type of MAF sensor is fitted in the ecu as if you're expecting a reading from a 3.5bar MAF but a 3 bar is fitted it will throw the results way out.

OK, I think I'm starting to understand: No air at all (e.g. in outer space) is 0 (kPa, Bar, InMg), normal air in the atmosphere is 100 kPa, 1 Bar or whatever it is in InMg. Boost is 'extra' air compared to the atmosphere and this is what the turbocharger 'makes'. So far so good, but this doesn't quite explain why normally I see 30-60 kPa (which is -0.4 to -0.7 bar of boost?) which suggests that my engine has less air getting to it than is in the atmosphere, is that right or even possible?

James_Littler 2010-12-24 18:03

Re: Carman for Maemo 5?
 
Quote:

Originally Posted by Just4pLeisure (Post 902870)
OK, I think I'm starting to understand: No air at all (e.g. in outer space) is 0 (kPa, Bar, InMg), normal air in the atmosphere is 100 kPa, 1 Bar or whatever it is in InMg.

Atmospheric pressure is 1.01325 bar, which would be 101.325 kPa, this is at sea level, this will obviously differ according to altitude and alto temperature which is why most boost gauges have the ability to tare the reading.

Quote:

Originally Posted by Just4pLeisure (Post 902870)
Boost is 'extra' air compared to the atmosphere and this is what the turbocharger 'makes'. So far so good, but this doesn't quite explain why normally I see 30-60 kPa (which is -0.4 to -0.7 bar of boost?) which suggests that my engine has less air getting to it than is in the atmosphere, is that right or even possible?

MAF sensors are zero referenced to atmospheric pressure, which means that they measure the pressure above atmospheric pressure, so what you're seeing is atmospheric pressure + or - your reading.

On idle when a supercharger or turbocharger is producing no boost/venting to atmosphere there will actually be a vacuum within the plenum caused by the engine sucking air in.

This is what gives you the - value as the ECU takes a boost feed after the throttle body.

Just4pLeisure 2010-12-30 21:43

Re: Carman for Maemo 5?
 
Thank you James for your explanation, I'm sorry that most of it goes over my head :confused: :rolleyes: Though if I've understood anything then it sounds like a tare button would be a useful addition to Carman which assume you'd have to with the engine off (and again, what's with the numbers 1.013...:confused: (no need to answer btw)

Actually making changes to Carman is a little slower. I know the answer to questions such as 'how do such and such' is more often that not along the lines of you have to read the manual etc, - the problem is sometimes knowing where to find the manual. Anyway I've made some progress (even though it feels like 1 step forward 2 back but...) :
I have Kubuntu (I think I should have downloaded Ubuntu but I found Kubuntu first but it seems to be working OK and since it took the best part of a day to download the CD I'm going to stick with it)
Then I installed Kubuntu - it wanted to fetch hundreds of files that weren't on the CD - another day (lucky me, I live in a broadband blackspot :mad:)
BTW, it's quite cool that Kubuntu starts up with all your programs just as they were from the last shutdown :cool:
And next the Maemo 5 SDK - just a small program to download and then run in a kind of CMD window which started a windows installer program which proudly announced it would take around 20 minutes - depending on broadband speed. Needless to say I went to bed before it had finished.
Today I tried to get to grips with the maemo 5 SDK which to say the least is a somewhat confusing mixture of windows programs and CMD prompts. I managed to follow the the simple hello world examples and then something a little more complex; making an installable package for MaemoPad :)
Great I thought, somewhat prematurely. Surely it's just a matter of using the 'dpkg-buildpackage -rfakeroot' for all of the Carman source code packages. Whilst this worked for some of them others didn't work out as well. I think the problem is that I don't have some libraries or something like that:
Code:

dpkg-checkbuilddeps: Unmet build dependencies: libobd-dev (>= 0.7~beta2-5)
dpkg-buildpackage: Build dependencies/conflicts unsatisfied; aborting.

or
Code:

dpkg-checkbuilddeps: Unmet build dependencies: python2.5-dev python2.5-efl-core (>= 0.9.9.050+svn38845-maemo1) libevas0-dev (>= 0.9.9.050+svn38845-maemo1) python2.5-evas-dev (>= 0.3.1+svn38845-maemo1) carmand-dev (>= 0.7~pre-alpha1-1) python-gdbm (>= 2.6.3)
dpkg-buildpackage: Build dependencies/conflicts unsatisfied; aborting.

Can anyone steer me in the right direction to find the libraries I need in order to sort out this dependency issue?

Thinking ahead a little I realise I'll end up with 6 of these 'deb' packages, but presumably these are ultimately combined to make just 1 Carman.deb package - what do I do to make that happen?

Thanks in advance,
Sophie x

jlu 2010-12-31 13:58

Re: Carman for Maemo 5?
 
Quote:

Originally Posted by Just4pLeisure (Post 907894)
Thank you James for your explanation, I'm sorry that most of it goes over my head :confused: :rolleyes: Though if I've understood anything then it sounds like a tare button would be a useful addition to Carman which assume you'd have to with the engine off (and again, what's with the numbers 1.013...:confused: (no need to answer btw)

Actually making changes to Carman is a little slower. I know the answer to questions such as 'how do such and such' is more often that not along the lines of you have to read the manual etc, - the problem is sometimes knowing where to find the manual. Anyway I've made some progress (even though it feels like 1 step forward 2 back but...) :
I have Kubuntu (I think I should have downloaded Ubuntu but I found Kubuntu first but it seems to be working OK and since it took the best part of a day to download the CD I'm going to stick with it)
Then I installed Kubuntu - it wanted to fetch hundreds of files that weren't on the CD - another day (lucky me, I live in a broadband blackspot :mad:)
BTW, it's quite cool that Kubuntu starts up with all your programs just as they were from the last shutdown :cool:
And next the Maemo 5 SDK - just a small program to download and then run in a kind of CMD window which started a windows installer program which proudly announced it would take around 20 minutes - depending on broadband speed. Needless to say I went to bed before it had finished.
Today I tried to get to grips with the maemo 5 SDK which to say the least is a somewhat confusing mixture of windows programs and CMD prompts. I managed to follow the the simple hello world examples and then something a little more complex; making an installable package for MaemoPad :)
Great I thought, somewhat prematurely. Surely it's just a matter of using the 'dpkg-buildpackage -rfakeroot' for all of the Carman source code packages. Whilst this worked for some of them others didn't work out as well. I think the problem is that I don't have some libraries or something like that:
Code:

dpkg-checkbuilddeps: Unmet build dependencies: libobd-dev (>= 0.7~beta2-5)
dpkg-buildpackage: Build dependencies/conflicts unsatisfied; aborting.

or
Code:

dpkg-checkbuilddeps: Unmet build dependencies: python2.5-dev python2.5-efl-core (>= 0.9.9.050+svn38845-maemo1) libevas0-dev (>= 0.9.9.050+svn38845-maemo1) python2.5-evas-dev (>= 0.3.1+svn38845-maemo1) carmand-dev (>= 0.7~pre-alpha1-1) python-gdbm (>= 2.6.3)
dpkg-buildpackage: Build dependencies/conflicts unsatisfied; aborting.

Can anyone steer me in the right direction to find the libraries I need in order to sort out this dependency issue?

Thinking ahead a little I realise I'll end up with 6 of these 'deb' packages, but presumably these are ultimately combined to make just 1 Carman.deb package - what do I do to make that happen?

Thanks in advance,
Sophie x

Install the said missing packages, for example libobd-dev

Code:

fakeroot apt-get install libobd-dev

jlu 2010-12-31 14:31

Re: Carman for Maemo 5?
 
Quote:

Originally Posted by jlu (Post 908359)
Install the said missing packages, for example libobd-dev

Code:

fakeroot apt-get install libobd-dev

There is also a simpler way of installing all the build dependencies. Go to the source directory (for example carman-ui-0.7~pre-alpha1) and

Code:

fakeroot apt-get build-deb carman-ui
Replace carman-ui with the right package name.

Just4pLeisure 2011-01-03 21:16

Re: Carman for Maemo 5?
 
Thanks jlu
Quote:

Originally Posted by jlu (Post 908382)
There is also a simpler way of installing all the build dependencies. Go to the source directory (for example carman-ui-0.7~pre-alpha1) and

Code:

fakeroot apt-get build-dep carman-ui
Replace carman-ui with the right package name.

Although there was a small typo in your post which I've highlighted above. I also discovered that it's possible to get all dependencies simultaneously:
Code:

fakeroot apt-get build-dep carman carmand carmanui ...
Unfortunately having made and installed all of the Carman deb files it wouldn't work in the Xephyr window which just froze showing the Carman start up/logo screen :( . Not all is lost though; I made the ARMEL deb files and copied then to my N900 and they worked :) I haven't done much yet but I have changed the speedo gauge so that the metric and imperial versions are more or less matched (160mph / 260kmh) and added options to the 'configure units' to independently choose units for speed, temperature and pressure. But don't get too excited just yet, adding tick boxes to a menu is easy, but the way that 'units' are either metric or imperial is taking a bit of time to unravel.

I think Visual Studio would make things a little easier when it comes to navigating around Carman's program structure but Microsoft don't have a version for Kubuntu :( There are lots of things in KPackageKit and whilst I like the numerous word plays I'm on unfamiliar ground and any suggestions on what I could use instead VS gratefully received :)

A couple of other things to do are change the default carmand.conf file to specify internal gps for our N900s and turn of gps as part of the exit procedure. Then I'll need to find out who owns Carman so that I can send them what I've done to see if they want to make use of any of it :rolleyes:.

Happy New Year everyone,
Sophie x

boardnz 2011-01-04 02:00

Re: Carman for Maemo 5?
 
Hi,

Looking at using this with my 2002 subaru legacy blitzen 2.0l twin turbo.

Installed carman fine, opens no problem and connects to my obd2 bluetooth sender(http://www.dealextreme.com/details.dx/sku.42825) without a hitch, but just shows blank values on the gauges etc.

I've tested it with my bosses VW Passat W8 and it seems to work fine(although a little slow), also got my friend who is mechanic to check my legacy's obd2 readings with his workshop hand held unit and everything worked fine.

Any ideas on whats going wrong?

jlu 2011-01-04 06:10

Re: Carman for Maemo 5?
 
Quote:

Originally Posted by Just4pLeisure (Post 910960)
I think Visual Studio would make things a little easier when it comes to navigating around Carman's program structure but Microsoft don't have a version for Kubuntu :( There are lots of things in KPackageKit and whilst I like the numerous word plays I'm on unfamiliar ground and any suggestions on what I could use instead VS gratefully received :)

You might want to try ESbox, which is an Eclipse add-on to support Maemo development.

Just4pLeisure 2011-01-04 14:46

Re: Carman for Maemo 5?
 
Quote:

Originally Posted by boardnz (Post 911145)
Looking at using this with my 2002 subaru legacy blitzen 2.0l twin turbo.

... but just shows blank values on the gauges etc.

Any ideas on whats going wrong?

Hmm, lets see, maybe the problem is that ur-a-bus - just kidding boardnz ;). Cevenn posted the same symptoms with his Subaru too :(:
http://talk.maemo.org/showpost.php?p...&postcount=192
S/He hasn't posted any more and seems to have given up... However, Carman produces very detailed log files - maybe looking through those might shed some light, they are located in your home directory (you can see a list of them by starting 'xterm' and then typing 'ls') and have names like 'carmand_logYYMMDD_HHMMSS.txt' (YYMMDD and HHMMSS are date and time when the log file was created).

Quote:

Originally Posted by jlu (Post 911251)
You might want to try ESbox, which is an Eclipse add-on to support Maemo development.

Thanks again jlu :), I'll take a look.
Sophie x

makkan00 2011-01-05 23:52

Re: Carman for Maemo 5?
 
Quote:

Originally Posted by svalavuo (Post 726316)
I edited /home/user/.carman/carmand.conf
gps_device=internal

rebooted, and now it works!

Thanks to all of you who contributed positively.
Read whole thread.
Install Carman.
Now I wanted to activate GPS.

Went into X-Terminal, typed sudo gainroot and typed the command as written above.

got following error

bin/sh: .carman/carman.conf: Permission denied

Can anobdoy please explain, how to activate GPS.

What am I doing wrong that I do not get the permission to edit the file.

thanks.

ezmendriz 2011-01-06 00:07

subaru guy
 
I am not trying to hijack the thread, but for the subaru guy, there are plenty of opensource development like romraider www.romraider.com that allow you to connect to the native subaru protocol SSM instead of pure obdii. this allow you to make faster readings over more engine values in the ecu.The thing is that is java, I have manage to make it run with ejre1.6 but the rxtxcom libraries are broken. anyway the good thing aboyut their developement is that is parametrized in xml files, so probably that could be used in carman.

makkan00 2011-01-06 00:32

Re: Carman for Maemo 5?
 
Thanks I solved to connect it to internal GPS. See solution using vi.

Cheers.

makkan00 2011-01-06 16:32

Re: Carman for Maemo 5?
 
Hi All.
I have installed the application successfully and edited the GPS file and even GPS is working fine.

Well I cannot connect to OBDII in Carman.
I bought this device.

http://cgi.ebay.co.uk/Bluetooth-ELM3...item3a61f77f37


It works fine with my wife's Andriod phone. No problems so ever.

With N900 I have added it into my device. It is there with the 'key' symbol on the right side (means trusted devices).

Following are displayed in the device detail under BT settings.
Device name: OBD II
Trusted device: Ticked as yes
Device type: Uncategorised
Supported profiles: SPP
BT address: 00:19:5D:24:B7:63

Now everytime I try to connect this device in CARMAN appliaction, it instally disconnected.
Everytime I press connect, it gives message of disconnected.

I tried to pair / unpaire many time, changed from trusted to non trusted and rebooted many time.
Everytime application launches, everything works fine except OBDII and it gives error Disconnected.

Can anybody put me in right direction?
Am I doing somthing wrong?
Do I need to change anything in N900 BT settings (internally)?

Can somebody please help.

Just4pLeisure 2011-01-06 19:43

Re: Carman for Maemo 5?
 
Hi makkan00,

My Bluetooth OBD looks the same as yours although mine said it was version 1.3 and it works for me. However it can be a bit tricky to connect although it's usually OK if I turn my N900 off and back on again. Sorry it's not a very scientific solution, not to mention inconvenient.

Hope this helps
Sophie x

makkan00 2011-01-06 19:51

Re: Carman for Maemo 5?
 
Quote:

Originally Posted by Just4pLeisure (Post 913542)
Hi makkan00,

My Bluetooth OBD looks the same as yours although mine said it was version 1.3 and it works for me. However it can be a bit tricky to connect although it's usually OK if I turn my N900 off and back on again. Sorry it's not a very scientific solution, not to mention inconvenient.

Hope this helps
Sophie x

Hi Sophie
Thanks for reply. Honestly I have done more than 50 restart in last 10 hours and tried all possible combinations.

still no luck :(

Anybody else experiencing same problme, anybody...can you please suggest something?

Cheers.

alynsparkes 2011-01-06 21:39

Re: Carman for Maemo 5?
 
Quote:

Originally Posted by cevenn (Post 837184)
Is it possible to install other themes?

Yes, but it's a PITA.

My method:
1) On a PC, go to here.
2) Go into the two carman-theme-?? folders and download the .deb files to your PC.
3) Rename both .deb files to .tar.gz files.
4) Use 7-zip to open the files and keep going through the folder tree until you get to the ones in the themes folder - drag these onto your desktop (or wherever).
5) You should now have two folders, one called eclipse and one called offroad.

6) At this point methods vary, but you need to get the folders into \usr\share\carman\themes on your n900.

7) I copied the folders via usb onto MyDocs, then "sudo gainroot"ed, created the requisite folders in the \usr\share\carman\themes folder, and copied the contents of the two folders into there.

systemcrash 2011-01-07 07:09

Re: Carman for Maemo 5?
 
Quote:

Originally Posted by makkan00 (Post 913343)
Hi All.
Well I cannot connect to OBDII in Carman.
I bought this device.

http://cgi.ebay.co.uk/Bluetooth-ELM3...item3a61f77f37

Now everytime I try to connect this device in CARMAN appliaction, it instally disconnected.
Everytime I press connect, it gives message of disconnected.

I have the same device and it used to work fine. However, last Sunday, after some months of not using it, I tried to use it and it failed to connect in the same way as yours. As I didn't have time to investigate what was actually happening, I assumed that either the device was dead or my car's battery (which was really dead) was somehow preventing the connection. I said I would retry after changing the battery, but I forgot. I think I'd better try again one of these days.

But now that you mention you have the same problem, I wonder if there was an update some time ago that broke something.

Just4pLeisure 2011-01-07 12:42

Re: Carman for Maemo 5?
 
Hi makkan00

Maybe Carman's report files can give you a clue. They are ordinary text files in your N900's home directory with names like 'carmand_logYYMMDD_HHMMSS.txt' (YYMMDD and HHMMSS are date and time when the log file was created).

Looking through mine I see that carman actually thinks that my Bluetooth OBD is version 1.4, not version 1.3 as it was advertised! Things get even more confusing if you look here: http://www.elmelectronics.com/obdic.html. According to them there are no version 1.4 as i seem to have or 1.5 as yours is described as being - it should be 1.3a or 1.4b! Anything else is a clone.

Also the datasheet here:
http://www.elmelectronics.com/DSheets/ELM327DS.pdf
says 'The descriptions for PP 0E bits 3 and 4 were accidentally reversed in the previous datasheet (document ELM327DSG), and have been corrected' which may mean that depending on the CAN bus settings your car needs something might not work properly.

Good luck,
Sophie x

makkan00 2011-01-07 18:06

Re: Carman for Maemo 5?
 
Quote:

Originally Posted by Just4pLeisure (Post 914076)
Hi makkan00

Maybe Carman's report files can give you a clue. They are ordinary text files in your N900's home directory with names like 'carmand_logYYMMDD_HHMMSS.txt' (YYMMDD and HHMMSS are date and time when the log file was created).

Sophie x

Thanks Sophie being so helpful. I am not being funny, and sorry to ask you, how do I get access to that file. Sorry noob question, but linux is not piece of cake for me.

Can you please explain how can I explore that file, should it be through computer, x-terminal or file explorer?

If I can get access of that file, I can change it to 1.3 or 1.4 and give it a try.

Well today I tried to alter the conf file and deleted the mac address of OBDII from there and entered unknown.
Now when I tried to connect it, it picked up but again disconnected. Checked the conf file, and OBDII mac address is there.

So I guss you are correct, I may get luck if I change the file you mentioned.

Waiting for your response.

Cheers.

makkan00 2011-01-07 18:44

Re: Carman for Maemo 5?
 
OkI have installed WinSCP and connected it to my N900.
Gone to home and then to user and opened carmand conf file.

This is the message which I got from there

libobd[INFO](obdcon_opendev:174): Connected to serial "/dev/rfcomm0"
libobd[INFO](obdchan_setup_channel:95): Trying ELM ...
libobd[RAW_DATA]: Sending to ELM -> 'AT|'
libobd[RAW_DATA]: Recieved from ELM -> 'AT|?||>'
libobd[RAW_DATA]: Sending to ELM -> 'ATZ|'
libobd[RAW_DATA]: Recieved from ELM -> 'ATZ|||ELM327 v1.4||>'
libobd[RAW_DATA]: Sending to ELM -> 'ATE0|'
DEBUG [10:12:12.163134] trip.c:0155 - Saving trip data: (obd: 0 0) (gps: lat:0.000000 lon:0.000000 alt:0.000000 d:-1.000000)
libobd[RAW_DATA]: Recieved from ELM -> 'ATE0|OK||>'
libobd[INFO](obdchanelm_setup:463): ELM echo disabled
libobd[RAW_DATA]: Sending to ELM -> 'ATL0|'
libobd[RAW_DATA]: Recieved from ELM -> 'OK||>'
libobd[INFO](obdchanelm_setup:473): ELM linefeed off
libobd[RAW_DATA]: Sending to ELM -> 'ATST 19|'
libobd[RAW_DATA]: Recieved from ELM -> 'OK||>'
libobd[RAW_DATA]: Sending to ELM -> 'ATAT2|'
libobd[RAW_DATA]: Recieved from ELM -> 'OK||>'
libobd[RAW_DATA]: Sending to ELM -> '0101|'
libobd[RAW_DATA]: Recieved from ELM -> 'CAN ERROR||>'
libobd[ERROR](obdchanelm_error:68): ELM error: "CAN ERROR"
libobd[INFO](obdchan_setup_channel:100): ELM communication failed!
ERROR [10:12:12.437396] obd-thread.c:0170 - Problems setuping the obd channel, using: /dev/rfcomm0
libobd[ERROR](obd_close:166): Trying to close an not opened obd device
libobd[INFO](obdcon_closedev:220): Trying to close serial connection
libobd[INFO](obdcon_closedev:247): Serial connection closed


Now I can see I have ELM v 1.4
and getting CAN error.

Can anybody explain what does it mean?

does anybody else experience the same problem?

cheers.

makkan00 2011-01-07 20:00

Re: Carman for Maemo 5?
 
Before somebody says try it on other car, I would like to say, I have tried it on my Ford car too, but same error.

so I assume it is to do something with ELM327 or N900.

Strange thing, it works fine with my laptop, netbook, and my wife's android phone without any problems....

:(

jlu 2011-01-08 15:12

Re: Carman for Maemo 5?
 
Quote:

Originally Posted by makkan00 (Post 914296)
OkI have installed WinSCP and connected it to my N900.
Gone to home and then to user and opened carmand conf file.

This is the message which I got from there

libobd[INFO](obdcon_opendev:174): Connected to serial "/dev/rfcomm0"
libobd[INFO](obdchan_setup_channel:95): Trying ELM ...
libobd[RAW_DATA]: Sending to ELM -> 'AT|'
libobd[RAW_DATA]: Recieved from ELM -> 'AT|?||>'
libobd[RAW_DATA]: Sending to ELM -> 'ATZ|'
libobd[RAW_DATA]: Recieved from ELM -> 'ATZ|||ELM327 v1.4||>'
libobd[RAW_DATA]: Sending to ELM -> 'ATE0|'
DEBUG [10:12:12.163134] trip.c:0155 - Saving trip data: (obd: 0 0) (gps: lat:0.000000 lon:0.000000 alt:0.000000 d:-1.000000)
libobd[RAW_DATA]: Recieved from ELM -> 'ATE0|OK||>'
libobd[INFO](obdchanelm_setup:463): ELM echo disabled
libobd[RAW_DATA]: Sending to ELM -> 'ATL0|'
libobd[RAW_DATA]: Recieved from ELM -> 'OK||>'
libobd[INFO](obdchanelm_setup:473): ELM linefeed off
libobd[RAW_DATA]: Sending to ELM -> 'ATST 19|'
libobd[RAW_DATA]: Recieved from ELM -> 'OK||>'
libobd[RAW_DATA]: Sending to ELM -> 'ATAT2|'
libobd[RAW_DATA]: Recieved from ELM -> 'OK||>'
libobd[RAW_DATA]: Sending to ELM -> '0101|'
libobd[RAW_DATA]: Recieved from ELM -> 'CAN ERROR||>'
libobd[ERROR](obdchanelm_error:68): ELM error: "CAN ERROR"
libobd[INFO](obdchan_setup_channel:100): ELM communication failed!
ERROR [10:12:12.437396] obd-thread.c:0170 - Problems setuping the obd channel, using: /dev/rfcomm0
libobd[ERROR](obd_close:166): Trying to close an not opened obd device
libobd[INFO](obdcon_closedev:220): Trying to close serial connection
libobd[INFO](obdcon_closedev:247): Serial connection closed


Now I can see I have ELM v 1.4
and getting CAN error.

Can anybody explain what does it mean?

does anybody else experience the same problem?

cheers.

I don't have any experience in ELM327 nor do I have one but looking at the log and quickly skimming through the ELM327 spec, it seems that libobd does not send the used protocol to ELM. It should probably send an AT SP 0 command before trying the first OBD command (0101 which then gives the CAN ERROR).

This begins to be interesting. If I only had an bluetooth ELM327 ;)

makkan00 2011-01-08 16:36

Re: Carman for Maemo 5?
 
Thanks for your reply mate.
It is interesting for me coz I cannot connect it.

what you suggest?

what could be the solution?

Cheers.

makkan00 2011-01-08 16:38

Re: Carman for Maemo 5?
 
libobd????
:confused:

I guess that is something to do with CARMAN.

Am I correct, is there a way to correct it?

Cheers.

Just4pLeisure 2011-01-08 17:01

Re: Carman for Maemo 5?
 
Hi makkan00 and jlu

I don't think this is my week. first I burnt a friends ECU, then my spare ECU and now my Bluetooth OBD doesn't work in my car although it does in my bf's :confused: I guess that things just working for me was too good to be true to last :rolleyes:

I've had a look through the ELM327 datasheet too and will try building the carmand part of carman with jlu's suggestion and some of the suggestions in there and see how I get on.

Sophie x

PS @jlu I have tried to install ESbox but it won't work properly because it can't find 'xulrunner' but Kpackagekit says it is installed. I'm a bit worried that ESbox says to only works on Ubuntu and needs xulrunner version 1.8 whereas I have Kubuntu 10.10 and xulrunner 1.9 do you have any ideas I could try?

PPS if anyone knows of something like Hyperterminal for the N900 that would be rather handy...

jlu 2011-01-08 17:46

Re: Carman for Maemo 5?
 
Quote:

Originally Posted by Just4pLeisure (Post 915021)
PPS if anyone knows of something like Hyperterminal for the N900 that would be rather handy...

minicom. In debian like linuxes apt-get install minicom.

jlu 2011-01-08 17:52

Re: Carman for Maemo 5?
 
Quote:

Originally Posted by makkan00 (Post 915006)
libobd????
:confused:

I guess that is something to do with CARMAN.

Am I correct, is there a way to correct it?

Cheers.

libobd is the device driver library which is between carman and the elm327 based obd dongle. The source is available so there should be a way to correct it. If I'm not mistaken it is made by the same people who made carman. As I said, I don't have an obd dongle, but I am very much tempted to buy one.

makkan00 2011-01-08 18:28

Re: Carman for Maemo 5?
 
Quote:

Originally Posted by Just4pLeisure (Post 915021)
Hi makkan00 and jlu

I don't think this is my week. first I burnt a friends ECU, then my spare ECU and now my Bluetooth OBD doesn't work in my car although it does in my bf's :confused: I guess that things just working for me was too good to be true to last :rolleyes:

.

and what error you get, did you check the log files?

Cheers.

makkan00 2011-01-08 18:49

Re: Carman for Maemo 5?
 
Quote:

Originally Posted by jlu (Post 915057)
libobd is the device driver library which is between carman and the elm327 based obd dongle. The source is available so there should be a way to correct it. If I'm not mistaken it is made by the same people who made carman. As I said, I don't have an obd dongle, but I am very much tempted to buy one.

Thanks buddy for your reply.
I am not really expert...so I guess I have to leave it and forget it.

I thought it was ELM problem, but as you pointed out, it was langauge problem.

I have re-installed the application again, and thought by doing that it will learn the language :D

no luck.

Just wondering how do others get connected and why did not they get the problem?

Can I ask any developer to help?

ortherwise, got to forget it. :(

Cheers.

Just4pLeisure 2011-01-08 19:56

Re: Carman for Maemo 5?
 
OK, this is a bit weird, I've made a few changes to the ELM327 startup in carmand which appeared to get my car working again every other try but when I checked the report file my changes didn't appear to be actually there! I'll check what I've done but if you guys hadn't noticed it's Saturday night so I'm about to get ready to go out and this will have to wait.

@makkan00 my guess is that this is a problem with the way Carman communicates with the ELM327 so getting that bit right hopefully will fix these connection problems. If I get somewhere I'll send you my fixes somehow to test

Sophie x

jlu 2011-01-08 22:27

Re: Carman for Maemo 5?
 
Quote:

Originally Posted by jlu (Post 915057)
libobd is the device driver library which is between carman and the elm327 based obd dongle. The source is available so there should be a way to correct it. If I'm not mistaken it is made by the same people who made carman.

Maybe something like this could help in libobd's obd-chan-elm.c after ATAT2 command and its response test and before sending "0101"

Code:

        if(obdchanelm_ssendcmd(chan, "ATSP0", 6)) { /* Set protocol to Automatic  */
                ret = OBDCHANERR_SETUP_ERROR;
                goto error;
        }

        if(!strstr(pelm->buffer, "OK"))
                LOG_WARNING("Unable to set ELM to use Automatic protocol");

The third parameter of obdchanelm_ssendcmd is a timeout, so a suitable value might have to be tested.

makkan00 2011-01-09 01:03

Re: Carman for Maemo 5?
 
Quote:

Originally Posted by Just4pLeisure (Post 915182)
OK, this is a bit weird, I've made a few changes to the ELM327 startup in carmand which appeared to get my car working again every other try but when I checked the report file my changes didn't appear to be actually there! I'll check what I've done but if you guys hadn't noticed it's Saturday night so I'm about to get ready to go out and this will have to wait.

@makkan00 my guess is that this is a problem with the way Carman communicates with the ELM327 so getting that bit right hopefully will fix these connection problems. If I get somewhere I'll send you my fixes somehow to test

Sophie x

Thanks Sophie, I will wait and see if you can fix it, and will try on mine too.

I agree with you, its the way carman tries to communicate with ELM. And my connection to car through netbook and android phone confirms that it is either carman (or possible language as JLU reported).

As as I am not really expert in that language, so I should wait for you or Jlu to take a step ahead :)

Enjoy your weekend.

makkan00 2011-01-09 01:07

Re: Carman for Maemo 5?
 
Quote:

Originally Posted by jlu (Post 915285)
Maybe something like this could help in libobd's obd-chan-elm.c after ATAT2 command and its response test and before sending "0101"

Code:

        if(obdchanelm_ssendcmd(chan, "ATSP0", 6)) { /* Set protocol to Automatic  */
                ret = OBDCHANERR_SETUP_ERROR;
                goto error;
        }

        if(!strstr(pelm->buffer, "OK"))
                LOG_WARNING("Unable to set ELM to use Automatic protocol");

The third parameter of obdchanelm_ssendcmd is a timeout, so a suitable value might have to be tested.

Jlu thanks for pointing out that.

Can you please tell me, which file in carman software or libobd's should be changed?
Where can I find that file, and how can I entre the commands you mentioned above?

As I am not expert like you, so I many need bit more guidance.

Cheers.

jlu 2011-01-09 10:34

Re: Carman for Maemo 5?
 
Quote:

Originally Posted by makkan00 (Post 915382)
Jlu thanks for pointing out that.

Can you please tell me, which file in carman software or libobd's should be changed?
Where can I find that file, and how can I entre the commands you mentioned above?

As I am not expert like you, so I many need bit more guidance.

Cheers.

libobd is packaged separate from carman. In scratchbox, you can download the source using "apt-get source libobd". This downloads and unpacks the source to libobd-0.7. The file that has to be modified is obd-chan-elm.c in libobd-0.7/src. You probably should also make a note to libobd-0.7/src/debian/changelog to distinguish your modified version.

systemcrash 2011-01-09 10:45

Re: Carman for Maemo 5?
 
Quote:

Originally Posted by systemcrash (Post 913955)
I have the same device and it used to work fine. However, last Sunday, after some months of not using it, I tried to use it and it failed to connect in the same way as yours. As I didn't have time to investigate what was actually happening, I assumed that either the device was dead or my car's battery (which was really dead) was somehow preventing the connection. I said I would retry after changing the battery, but I forgot. I think I'd better try again one of these days.

But now that you mention you have the same problem, I wonder if there was an update some time ago that broke something.

Well, I tried again yesterday, with the new car battery installed, and it worked flawlessly...


All times are GMT. The time now is 07:29.

vBulletin® Version 3.8.8