Pocket PC logging now working
Pocket PC logging now working
http://john824.fotopic.net/p42200929.html
Sorry about the poor photo.
This is the first working version, rough and ready with no error checking, the temperatures are not scaled yet (non-linear conversion). It should still be useful though, and it is just finishing touches as the core of the logging work is accomplished. It would be nice to do graphing, logging to SD card etc.
It requires a reflash of the ECU to change the comms rate from a Pocket PC/PC unfriendly 15625 to 19200 baud.
All the items update about once a second - the slow execution of the interpreted Embedded Visual Basic is to blame. If I am brave I will try to rewrite it in C which I'm learning.
I will publish code as it progresses.
I am using a VAG COM KKL RS232 cable off Ebay, an old O2 XDA Pocket PC (about £50 off Ebay) and an XDA serial cable with null modem adaptor - all off the shelf parts.
In my case I used an old TomTom GPS cradle to which I connected an old RJ11 telephone cable and RS232 cable to connect to the VAG COM cable.
From bits I had lying about it cost nothing except the VAG COM cable which was about £14.
Sorry about the poor photo.
This is the first working version, rough and ready with no error checking, the temperatures are not scaled yet (non-linear conversion). It should still be useful though, and it is just finishing touches as the core of the logging work is accomplished. It would be nice to do graphing, logging to SD card etc.
It requires a reflash of the ECU to change the comms rate from a Pocket PC/PC unfriendly 15625 to 19200 baud.
All the items update about once a second - the slow execution of the interpreted Embedded Visual Basic is to blame. If I am brave I will try to rewrite it in C which I'm learning.
I will publish code as it progresses.
I am using a VAG COM KKL RS232 cable off Ebay, an old O2 XDA Pocket PC (about £50 off Ebay) and an XDA serial cable with null modem adaptor - all off the shelf parts.
In my case I used an old TomTom GPS cradle to which I connected an old RJ11 telephone cable and RS232 cable to connect to the VAG COM cable.
From bits I had lying about it cost nothing except the VAG COM cable which was about £14.
Attached eVB 3.0 source
It is my first eVB program ever, is uncommented, rough and ready, but shows how it is done.
Basically - open port, 0x17, break 1800ms, wait 200ms, FE, FF, FE, FF, logging.
I use three timers - 1 and 2 to do the init, 3 to run the logging with a 25ms delay between each cycle so the GUI works.
This really should be rewritten in eVC.
It is my first eVB program ever, is uncommented, rough and ready, but shows how it is done.
Basically - open port, 0x17, break 1800ms, wait 200ms, FE, FF, FE, FF, logging.
I use three timers - 1 and 2 to do the init, 3 to run the logging with a 25ms delay between each cycle so the GUI works.
This really should be rewritten in eVC.
Sorry donour, it wouldn't have happened if I tried it first in C since all I can do in that is Hello World! If someone can write this in eVC it would be much quicker than me learning C. Trouble is I don't know if I would be able to negotiate all the libraries and files to then modify it as I would get lost rapidly.
Yes it is a VAG COM KKL RS232 cable. VAG = Volkswagen Audi Group.
Yes it is a VAG COM KKL RS232 cable. VAG = Volkswagen Audi Group.
Sorry donour, it wouldn't have happened if I tried it first in C since all I can do in that is Hello World! If someone can write this in eVC it would be much quicker than me learning C. Trouble is I don't know if I would be able to negotiate all the libraries and files to then modify it as I would get lost rapidly.

The problem is I don't have a PDA that can use that cable. I have a dell axim v51 -- no serial support that I know of.

d
EDIT: Well maybe... http://www.gomadic.com/dell-axim-x50...ata-cable.html
Anybody want to send me an RS232 VAGCOM.

EDIT2: Or maybe I can build one.
http://www.gomadic.com/dell-axim-x50...ctor-plug.html
Last edited by donour; Jun 12, 2007 at 03:58 PM.
Trending Topics
I think nearly everything will have serial pins on their connectors for all these GPS devices - nearly all the early ones were RS232.
I'm downloading the 90 day trial of Visual Studio 2005, and have reflashed my Pocket PC to 2003. This way I believe I can write code in VB.net and run it JIT or native on the Pocket PC. Whilst it may be horrible, at least it will run much faster than the interpreted eVB 3.0?
I'm downloading the 90 day trial of Visual Studio 2005, and have reflashed my Pocket PC to 2003. This way I believe I can write code in VB.net and run it JIT or native on the Pocket PC. Whilst it may be horrible, at least it will run much faster than the interpreted eVB 3.0?
http://pinouts.ru/PDA/dell_axim_pinout.shtml
My XDA has an RS232 level converter, so I just connect Tx, Rx and Gnd. Looks like the Axim will need level conversion - ie MAX232 or similar. MAX233 has the four capacitors on board, or you can buy kits ready to go. Just give them power, connect Tx/Rx from Axim-MAX-VAG COM cable I reckon.
I'd just get the cable you showed as it is all done for you it seems.
My XDA has an RS232 level converter, so I just connect Tx, Rx and Gnd. Looks like the Axim will need level conversion - ie MAX232 or similar. MAX233 has the four capacitors on board, or you can buy kits ready to go. Just give them power, connect Tx/Rx from Axim-MAX-VAG COM cable I reckon.
I'd just get the cable you showed as it is all done for you it seems.
http://pinouts.ru/PDA/dell_axim_pinout.shtml
My XDA has an RS232 level converter, so I just connect Tx, Rx and Gnd. Looks like the Axim will need level conversion - ie MAX232 or similar. MAX233 has the four capacitors on board, or you can buy kits ready to go. Just give them power, connect Tx/Rx from Axim-MAX-VAG COM cable I reckon.
I'd just get the cable you showed as it is all done for you it seems.
My XDA has an RS232 level converter, so I just connect Tx, Rx and Gnd. Looks like the Axim will need level conversion - ie MAX232 or similar. MAX233 has the four capacitors on board, or you can buy kits ready to go. Just give them power, connect Tx/Rx from Axim-MAX-VAG COM cable I reckon.
I'd just get the cable you showed as it is all done for you it seems.
d
No
My KKL cable doesn't have it, AVR and PPC connect fine without. ECU only has the K-line used for logging.
I just open COM1 19200 8N1, 1800ms break, 200ms wait, FEFFFEFF. No line switching or anything fancy.
My KKL cable doesn't have it, AVR and PPC connect fine without. ECU only has the K-line used for logging.I just open COM1 19200 8N1, 1800ms break, 200ms wait, FEFFFEFF. No line switching or anything fancy.
I'm downloading the 90 day trial of Visual Studio 2005, and have reflashed my Pocket PC to 2003. This way I believe I can write code in VB.net and run it JIT or native on the Pocket PC. Whilst it may be horrible, at least it will run much faster than the interpreted eVB 3.0?
Last edited by chmodlf; Jun 12, 2007 at 06:28 PM.
Are you using it for maxQdata collection? VB.net might be a little fasters, but libmut is just stupid fast and was written with these kind of devices in mind. If I can get a cable working I could probably convince Ed to incorporate it into 'flight'.
d
EDIT: Somebody remind me why I can just wire up gnd, tx, and rx to the OBD II connector pins. What does the vagcom cable actually do? It's not nearly as fancy as the FTDI chip, nor does is have the logic of an elm323 device.
EDIT2: For example, I have one of these sitting in my garage. http://www.scantool.net/products/pro...products_id=26
d
EDIT: Somebody remind me why I can just wire up gnd, tx, and rx to the OBD II connector pins. What does the vagcom cable actually do? It's not nearly as fancy as the FTDI chip, nor does is have the logic of an elm323 device.
EDIT2: For example, I have one of these sitting in my garage. http://www.scantool.net/products/pro...products_id=26
Last edited by donour; Jun 12, 2007 at 06:20 PM.


