The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   MP3Car.com > Mp3Car Technical > MacCar > CarFrontEnd

Reply
 
Thread Tools Display Modes
Old 07-19-2007, 09:32 AM   #1
FLAC
 
sdashiki's Avatar
 
Join Date: Aug 2004
Location: Floreeda
Vehicle: 2003/Toyota/Matrix
Posts: 998
My Photos: (0)
How about an ODB-II plugin?

Obd-ii?
__________________
(----) 0.0%
No more loot for the carpute.
Trying to fit my 20" iMac into the dash... RF 600.5 amp, two 10" JLW0, 8 Infinity Components
sdashiki is offline   Reply With Quote
Sponsored Links
Old 07-19-2007, 11:02 AM   #2
Low Bitrate
 
mr2mac's Avatar
 
Join Date: Jun 2006
Location: South East London
Vehicle: Toyota MR2
Posts: 102
My Photos: (0)
Quote: Originally Posted by sdashiki View Post
Obd-ii?

Do you not think of anything else?









OBD-ii would be nice though.
mr2mac is offline   Reply With Quote
Old 07-22-2007, 06:53 PM   #3
CarFrontEnd Creator
iamgnat's CarPC Specs
 
iamgnat's Avatar
 
Join Date: Jul 2004
Location: NoVA
Vehicle: 04 Ford Escape
Posts: 845
My Photos: (0)
Sorry guys, I went to the beach for a few days. Back now though

Quote: Originally Posted by sdashiki View Post
Obd-ii?

Know how to write Objective-C?

ODB-II is something I want so I hope to get to it at some point, but since it took me two years to get off my butt and do this much I wouldn't wait on me to do it

-dave
__________________
My pathetic worklog.
CarFrontEnd (now it's own sub-forum!!!!)
iamgnat is offline   Reply With Quote
Old 08-15-2007, 12:35 PM   #4
Admin. Don't bug or I'll byte.
Bugbyte's CarPC Specs
 
Bugbyte's Avatar
 
Join Date: Sep 2004
Location: Corning, NY
Vehicle: 2001 VW Beetle
Posts: 4,444
My Photos: (19)
Well, it seems like what you really need is some good code to communicate with serial devices. If you had that, you could:

1. Communicate with serial OBDII devices
2. Control XM Direct units
3. Output data to LCD/LED displays
4. Get data from NMEA GPS devices

I'm too swamped for the next few months to get on the path to figure this out, though. Anybody else willing to put some serial comm code into CFE?
__________________
-Where in the world is the iBug?
-Find out about theiBug
-Attention Newbies! Have you seen the FAQ Emporium?
-No time to figure it out? Take 5 minutes to view the Car PC 101 video
Bugbyte is offline   Reply With Quote
Old 08-15-2007, 03:09 PM   #5
CarFrontEnd Creator
iamgnat's CarPC Specs
 
iamgnat's Avatar
 
Join Date: Jul 2004
Location: NoVA
Vehicle: 04 Ford Escape
Posts: 845
My Photos: (0)
Quote: Originally Posted by Bugbyte View Post
Well, it seems like what you really need is some good code to communicate with serial devices. If you had that, you could:

1. Communicate with serial OBDII devices
2. Control XM Direct units
3. Output data to LCD/LED displays
4. Get data from NMEA GPS devices

I'm too swamped for the next few months to get on the path to figure this out, though. Anybody else willing to put some serial comm code into CFE

There isn't really a call for it to be in CFE directly (though it could be useful for remote control options), but I potentially see a helper object in the API being a good idea.

I'm open to ideas on what people think it should do (though remember it should be generic to allow the plugin developer to do the specifics like talk to a GPS, ODB-II, etc..).

Just some quick thoughts:
  1. It should manage connection prefs (e.g. last device connected) storage.
  2. Handle error checking for missing device (at startup and while running).
  3. Handle input and output (should this be done by notifications, selector call backs, or both?)
  4. Configure the port speed.

I'd have to look at the serial interface (it's been awhile and I can't look right now) to see what other things should be bubbled up/handled.

-dave
__________________
My pathetic worklog.
CarFrontEnd (now it's own sub-forum!!!!)
iamgnat is offline   Reply With Quote
Old 08-16-2007, 08:05 AM   #6
Admin. Don't bug or I'll byte.
Bugbyte's CarPC Specs
 
Bugbyte's Avatar
 
Join Date: Sep 2004
Location: Corning, NY
Vehicle: 2001 VW Beetle
Posts: 4,444
My Photos: (19)
Quote: Originally Posted by iamgnat View Post
I'm open to ideas on what people think it should do (though remember it should be generic to allow the plugin developer to do the specifics like talk to a GPS, ODB-II, etc..).

Bingo. That way people can create a plugin that uses the generic serial handler to communicate with the device.

I looked into this a few months ago and I could tell that it wouldn't be incredibly difficult to do but I hadn't programmed in Cocoa at that point and it was an uphill climb.

I've got some serial code that Jirka very helpfully sent to a friend of mine when we were working on XM that could be helpful. PM me if you're interested.
__________________
-Where in the world is the iBug?
-Find out about theiBug
-Attention Newbies! Have you seen the FAQ Emporium?
-No time to figure it out? Take 5 minutes to view the Car PC 101 video
Bugbyte is offline   Reply With Quote
Old 08-16-2007, 09:00 AM   #7
CarFrontEnd Creator
iamgnat's CarPC Specs
 
iamgnat's Avatar
 
Join Date: Jul 2004
Location: NoVA
Vehicle: 04 Ford Escape
Posts: 845
My Photos: (0)
Quote: Originally Posted by Bugbyte View Post
I've got some serial code that Jirka very helpfully sent to a friend of mine when we were working on XM that could be helpful. PM me if you're interested.

Yeah I have some that I played with about a year ago or so. I looked at it last night. The "pain" is in setting up the serial port as you have to drop to the lower level C routines, but after that it is all NSFileHandle work which is pretty simple.

I've already started to think about the interface to it, but if someone wants to beat me to the punch they are more than welcome to

-dave
__________________
My pathetic worklog.
CarFrontEnd (now it's own sub-forum!!!!)
iamgnat is offline   Reply With Quote
Old 09-13-2007, 03:28 PM   #8
Newbie
 
impala454's Avatar
 
Join Date: Aug 2007
Location: Houston, TX
Vehicle: 2006 Chevrolet Silverado
Posts: 35
My Photos: (0)
.net 2.0+ has a great SerialPort class (System.IO.SerialPort). It has event callback functionality and everything. I've successfully used it to communicate with and parse data from a Holux M1000 GPS. I've started a little bit of work to communicate with and parse data from a Elmscan 5, just haven't gotten around to it yet. Either way, that library is awesome. No looping through or waiting for returns, just use the built in eventhandler functions and you're good to go.
impala454 is offline   Reply With Quote
Old 09-13-2007, 03:34 PM   #9
CarFrontEnd Creator
iamgnat's CarPC Specs
 
iamgnat's Avatar
 
Join Date: Jul 2004
Location: NoVA
Vehicle: 04 Ford Escape
Posts: 845
My Photos: (0)
Quote: Originally Posted by impala454 View Post
.net 2.0+

This is a Mac Front End

NSFileHandle has the same functionality that you are talking about, it is just for basic file handles though. You just need to request the underlying C file id from the object so you can set it up the serial port configuration (bits, speed, etc..), then you just use NSFileHandle to handle your select loop type monitoring of it and it will notify you when there is work to be done.

-dave
__________________
My pathetic worklog.
CarFrontEnd (now it's own sub-forum!!!!)
iamgnat is offline   Reply With Quote
Old 09-13-2007, 03:38 PM   #10
Newbie
 
impala454's Avatar
 
Join Date: Aug 2007
Location: Houston, TX
Vehicle: 2006 Chevrolet Silverado
Posts: 35
My Photos: (0)
Oh geez sorry about that I actually got linked to this thread from a google search

ironically, the google search was "ODB serial port C#"
impala454 is offline   Reply With Quote
Sponsored Links
Old 09-13-2007, 04:51 PM   #11
CarFrontEnd Creator
iamgnat's CarPC Specs
 
iamgnat's Avatar
 
Join Date: Jul 2004
Location: NoVA
Vehicle: 04 Ford Escape
Posts: 845
My Photos: (0)
Quote: Originally Posted by impala454 View Post
Oh geez sorry about that I actually got linked to this thread from a google search

It's all a cheap ploy to drag you over to our side

-dave
__________________
My pathetic worklog.
CarFrontEnd (now it's own sub-forum!!!!)
iamgnat is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Indexing music in 1.0.9.8 Failed hovalistic StreetDeck 0 07-07-2007 11:19 AM
IRMAN plugin knyarko StreetDeck 3 01-05-2007 08:26 PM
ODB II C# Style alacom Engine Management, OBD-II, Engine Diagnostics, etc. 16 09-25-2006 11:32 PM
Where went the Guages in the OBD II plugin? bns2000 Centrafuse 3 08-11-2006 10:39 PM
Newbie question about ODB I and II Nokia6600 Engine Management, OBD-II, Engine Diagnostics, etc. 9 04-24-2004 10:59 PM


All times are GMT -5. The time now is 01:26 AM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics