Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > MacCar


Reply
 
Share Thread Tools Display Modes
Old 05-08-2008, 04:19 PM   #16
Variable Bitrate
 
NeonDev's Avatar
 
Join Date: Feb 2008
Posts: 431
NeonDev is an unknown quantity at this point
@bugbyte that is absolutely the way to go IMO. if people want to start a new FE just because no current FEs provide a certain feature nothing will ever come about but a collection of FEs with many different features but none that have even close to everything.

since the majority of FEs have plugin capability and are all OS X based there is little stopping somebody from writing the code that does all the work and "porting" it to all the different FEs. obviously there are likely some exceptions but I'll wager an OBD2 or GPS module could be ported fairly seamlessly across the board. If i end up being the one who writes it driven by donations then I have no problem with the code ending up in any of the other FEs at all.

just somebody needs to get the ball rolling. right now I am swamped at work and I am obligated to finish the XM module before moving on to the next thing.

@hanzov
I will gladly take up the offer if it still stands after I finish the XM module. I feel more comfortable taking the initiative on OBD2 then navigation since I have no idea where to even start with navigation.

couple of questions. how does the scantool interface with the mac? what drivers are needed to communicate with it? do you have or know where I can find good documentation on OBD2 communication?

If you end up sending it to me and I can't do anything with it I will send it back
__________________
check us out at: www.neonboombox.com
NeonDev is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 05-08-2008, 04:39 PM   #17
Newbie
 
Join Date: May 2008
Posts: 45
hanzov69 is an unknown quantity at this point
@NeonDev/BugByte

Well said both. This is exactly my frustration, picking through the forum is a virtual graveyard of fancy interfaces, interesting ideas, and a lot of vapor and abandoned code.

Hence my push for OSS/GPL type plugins/modules.


Quote: Originally Posted by NeonDev View Post
I will gladly take up the offer if it still stands after I finish the XM module. I feel more comfortable taking the initiative on OBD2 then navigation since I have no idea where to even start with navigation.

Of course. Let me know when you are ready to take it on, and I purchase it.

Quote: Originally Posted by NeonDev View Post
couple of questions. how does the scantool interface with the mac?

I don't specifically know what the USB/RS-232 cable offered by Scantool.net is based on. When I bought my elmscan/5, I opted for the straight bluetooth version.

However, connecting it to my mac was fairly painless, I used a USB/RS-232 adapter I had laying around (actually, I have several) based on the Prolific PL-2302 chipset, which is exceptionally well supported. I've been able to source these cables locally for about $10 USD.


Quote: Originally Posted by NeonDev View Post
what drivers are needed to communicate with it?

Just the ones available at that link

Quote: Originally Posted by NeonDev View Post
do you have or know where I can find good documentation on OBD2 communication?

That's a bit trickier. Reading off ODB-II is pretty straightforward, as I understand. (Warning: I may not be 100% correct with what I am about to say...don't hold it against me)
I found some pretty basic information on working specifically with the ElmScan here. As you can see, it's not terribly complicated to work with.

As for dealing with the data itself, it looks like the I/O is based around simple request/response, EG request a PID for a value you would like (Vehicle Speed), it returns an integer in a pre-determined range, which would then need to be parsed and applied to the GUI graph/control.

I believe this list on Wikipedia is quite comprehensive, and presumably accurate.

There are a number of quick-n-dirty OBD-II scripts that will do request/parse data, pyOBD might be worth looking at as well. It doesn't really tell you much info, it's more for sorting out the cause of MIL code, and it's also fairly old.

Quote: Originally Posted by NeonDev View Post
If you end up sending it to me and I can't do anything with it I will send it back

While I am confident this will be "low hanging fruit" for you, in the event that it proves to be a stumper, I would rather see it "paid forward" to another dev with the chops to take on the challenge
hanzov69 is offline   Reply With Quote
Old 05-08-2008, 04:50 PM   #18
Newbie
 
Join Date: May 2008
Posts: 45
hanzov69 is an unknown quantity at this point
Guess I should look before I speak.

The cable available from Scantool.net is based on the Prolific PL-2303 chip, which has Mac drivers, so in the best laid plans it should be largely the same as the PL-2302
hanzov69 is offline   Reply With Quote
Old 05-08-2008, 07:13 PM   #19
Variable Bitrate
 
NeonDev's Avatar
 
Join Date: Feb 2008
Posts: 431
NeonDev is an unknown quantity at this point
hey as long as there is an intel mac driver that can send and receive data I see no reason why I won't be able to do something for the community. wish I could start now ;-)
__________________
check us out at: www.neonboombox.com
NeonDev is offline   Reply With Quote
Old 11-13-2008, 06:59 PM   #20
Newbie
 
Join Date: Nov 2008
Location: Birmingham, UK
Posts: 3
foxdie is an unknown quantity at this point
I've been lurking on and off mp3car.com for years now, and finally I think its time to post.

I too will offer a small token of monetary value (aka, cash) to see this brought to fruition. I've been trying to build ScanTool.net on my mac for a little while now (and some very smart people have given me a hand too) but seem to have hit a brick wall, whenever it tries to connect to a serial port it segfaults.

I'm using a USB to OBD2 adapter I got on ebay, auction number 290270570782, after plugging it into my 1.5Ghz Alu. Powerbook, it failed to work initially, but I checked system profiler and it listed the device as "FT232R USB UART", a quick google later and I found drivers for it

So I've got it installed, I've symlinked /dev/ttyS0 to /dev/usb.serial-blahblah, but whenever ScanTool.net tries to open the serial port (or any for that matter), the software segfaults. Even if I change the COM port (which Allegro should reassign to /dev/ttySx automatically, so COM1 is /dev/ttyS0) it still crashes. I've confirmed its this by the following;

1. log.txt comprises of:

Quote:
Thu Nov 13 23:40:29 2008
Version: 1.08 for DOS

Initializing All Modules...
---------------------------
Initializing Allegro... OK
Installing Timers... OK
Installing Keyboard... OK
Installing Mouse... OK
Loading Preferences... OK
Trying Windowed Graphics Mode... OK
Loading Data File... OK
Initializing Serial Module... OK
Opening COM1...

2. When it crashes, I see the following in the crash report;

Quote:
Thread 1 Crashed:
0 ScanTool 0x0000c940 comm_port_set_baud_rate + 0 (crt.c:355)
1 ScanTool 0x0000409c open_comport + 80 (crt.c:355)
2 ScanTool 0x000034a4 init + 1184 (crt.c:355)
3 ScanTool 0x000035fc _mangled_main + 116 (crt.c:355)
4 ScanTool 0x0000c17c call_user_main + 68 (crt.c:355)
5 ScanTool 0x0000c1c0 +[AllegroAppDelegate app_main:] + 64 (crt.c:355)
6 com.apple.Foundation 0x92bf7118 forkThreadForFunction + 108
7 libSystem.B.dylib 0x9002bd08 _pthread_body + 96

Now I'm not quite sure what #2 means, I know the basics of threaded process execution, and I can tell that it tried to set the serial port baud rate and then try and open it.. but after that it gets hazy.

Anyone want to take up the rope?
foxdie is offline   Reply With Quote
Old 11-29-2008, 02:43 PM   #21
Constant Bitrate
 
scatebase's Avatar
 
Join Date: Oct 2008
Posts: 143
scatebase is an unknown quantity at this point
When the time comes I would be more than happy to donate any GPS equipment that would be needed.
scatebase is offline   Reply With Quote
Old 12-01-2008, 03:15 AM   #22
Newbie
 
Join Date: Nov 2008
Location: Birmingham, UK
Posts: 3
foxdie is an unknown quantity at this point
As an update, I managed to open up the serial port without any problems (by accessing /dev/cu.usbserial0) using PHP Sockets (sorry, not a C coder yet)..

I haven't had any success yet, I've found loads of documentation on the OBD2 and VAG ISO protocols, when I try and communicate with my ECU I hear the relay clicking as it tries to send data, but nothing is received back, I think this is a timing issue..

Also, with it being winter, I'm less inclined to stay in my car because its cold, also because it means leaving my ignition on (to counteract this, what I would do was connect a battery charger to the car to help keep the battery topped up, and I got a 5 meter active USB extension cable, and yes the cable works fine on an XP laptop with VAG-COM)..

I'll keep digging when I have time.
foxdie is offline   Reply With Quote
Old 12-02-2008, 01:03 PM   #23
QCar Creator
 
Jirka Jirout's Avatar
 
Join Date: Jul 2005
Location: Netherlands
Posts: 577
Jirka Jirout is on a distinguished road
Enjoy...
Attached Files
File Type: zip OBD.zip (10.4 KB, 29 views)
Jirka Jirout is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 12-02-2008, 01:07 PM   #24
Newbie
 
Join Date: Nov 2008
Location: Birmingham, UK
Posts: 3
foxdie is an unknown quantity at this point
Quote: Originally Posted by Jirka Jirout View Post
Enjoy...

Oooh will take a look at this now, thankyou
foxdie is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




All times are GMT -5. The time now is 09:16 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
"VaultWiki" powered by VaultWiki v2.5.2.
Copyright © 2008 - 2009, Cracked Egg Studios.Ad Management by RedTyger
Message Board Statistics