Page 7 of 19 FirstFirst 1234567891011121314151617 ... LastLast
Results 61 to 70 of 182

Thread: Harmony - Mac Front End Worklog

  1. #61
    FLAC sdashiki's Avatar
    Join Date
    Aug 2004
    Location
    Floreeda
    Posts
    1,085
    Quote Originally Posted by MINI4cathy
    sdashiki,

    If you want that, you need create an Applescript to parse and use ODBII messages. We're not planning to use Python as a part of Harmony.
    how would one go about doing that?

    OBD ---> serial ----> USB ----> mac

    I believe we first need a translator for serial/usb so that an applescript could be created....unless I am mistaken.

    id just find built in OBD a great feature of any frontend.
    (All done)
    iPad Mini 128GB, RF 600.5 amp, JL12W0V2, 8 Infinity Components

  2. #62
    Constant Bitrate
    Join Date
    Jun 2005
    Location
    California
    Posts
    142
    Quote Originally Posted by sdashiki
    how would one go about doing that?

    OBD ---> serial ----> USB ----> mac

    I believe we first need a translator for serial/usb so that an applescript could be created....unless I am mistaken.

    id just find built in OBD a great feature of any frontend.
    sdashiki, I have good news and bad news. The first part is done, but I'm not aware of any Applescript out there for ODBII control. So that's on you.

    There's already an Applescript extension (called an OSAX) for communicating with serial interfaces like USB. So the 'Appescript translator' is available, and doesn't require Harmony. (Harmony will handle its own serial-to-XM communication to keep the install process extremely simple.)

    You can either use an ODBII interface that has a USB connection or a USB-to-RS232 adapter. If it has a USB interface, make certain that the serial chip they use is from FTDI, so you'll be able to get a Mac OS X driver for it. If you have to use a USB-to-RS32 adapter, get one that has up to date Mac OS X drivers. The driver makes the serial device accessible to Mac software like the OSAX or Harmony.

    That's the easier part -- install the software and fiddle with the settings for the port in System Preferences and you're ready for the next step.

    You'd also need to create the script that reads data from the device, decides what it means, and acts on the information. You'd need to learn what the various messages are and how they look coming in off the port. You should be able to find some resources for learning more about ODBII in other forums on MP3car.com. And you'd need to learn Applescript. No one step is overwhelming, it just takes time to learn, time to test, time to fix.

    If you want to display the info and perhaps accept commands, you'd need to either create an app or integrate with one.

  3. #63
    Constant Bitrate
    Join Date
    Jun 2005
    Location
    California
    Posts
    142
    sdashiki, another thing about ODBII... depending on what you want to do with it, like changing the control chip settings of the car, etc, it can be a very dangerous thing to mess with. If you want to make changes to the car, you might be better served getting an established Windows app, because it will have safeguards against mistakes and a group of users with valuable experience.

    If you're just reading data from the ODBII it's not an issue, but sending data into ODBII is something to be careful of.

  4. #64
    FLAC sdashiki's Avatar
    Join Date
    Aug 2004
    Location
    Floreeda
    Posts
    1,085
    I want a graphical representation of various car functions. that any average shmoe would like to see themselves.

    Like MPG, RPMs, Fuel Mixtures etc etc, just useful real time things going on with the car. In the form of animated graphs or dials...

    ScanTool
    Serial/USB adapter
    connect to mac
    turn on car
    watch data flow in...

    this is where I am confused...where do I see the data coming in? What app etc? I know the data is in a raw form and requires an applescript to translate it into a useable form. I just wonder, can I plug and play what I described above, and see the data on screen inside of AppleScript which would allow me to write script to translate certain data into graphs etc....?

    if I can see/know where the data flowing is, then i can translate
    (All done)
    iPad Mini 128GB, RF 600.5 amp, JL12W0V2, 8 Infinity Components

  5. #65
    Newbie minicoopS007's Avatar
    Join Date
    Sep 2005
    Location
    Gaithersburg
    Posts
    31
    Quote Originally Posted by Jirka Jirout
    You should try to connect to /dev/cu.usbserial... not /dev/tty/usbserial.. the fileHandleForUpdatingAtPath is a correct way of opening the file, never had any problems with it. (I do not think that NSFileHandle has any method like -open)
    Thanks Jirka, I was able to connect to /dev/cu.xxxx and /dev/tty.xxxx. Is there a difference in using either. In the java app i wrote I was using /dev/tty.xxxx. The open command I was refering to was the unix socket commands, but we won't need that anymore.
    To send byte commands; this is the code snippet:

    Code:
    	NSString *pcrMode1 = [NSString stringWithString:@"5AA50003740001EDED"];
    	NSData *messageData = [NSData dataWithBytes:[pcrMode1 UTF8String] length:[pcrMode1 length]];
    message format:
    5AA5 = header bytes
    [length of data]
    [command data]
    EDED = tail bytes

    So in between the header and tail is the length and command data.

    However I'm not getting any data back.

    Cheers Eugene

  6. #66
    Admin. Linux loser.
    Auto Apps:loading...
    Bugbyte's Avatar
    Join Date
    Sep 2004
    Location
    Corning, NY
    Posts
    7,359
    Blog Entries
    2

    Update #9, 4/13/2006

    Stick me with a fork, I'm done. Progress made, and also time lost. On the progress front, I've nearly finished incorporating all of the Harmony 'H' mode changes into the current version of the front end and that's a good thing.

    However, I'm having trouble with the table views. Table views are always tricky because they are enclosed in scroll views that are part of a tab view item. I earned my stripes awhile ago with those but our changes require a set of tab views embedded inside an existing tab view and I'm just not getting the syntax to address them right.

    If you know anything about Applescript, here's what I'm trying to do:

    set tv to table view "tblTableViewPlaylists" of scroll view "tblContainerPlaylists" of tab view item "tabPlaylists" of tab view "tabLists" of tab view item "tabMusic" of tab view "tabViewMain" of window "HarmonyMain"

    Basically, I have a table view that contains the playlist names from iTunes called "tblTableViewPlaylists". That sits inside a scroll view called "tblContainerPlaylists" that's inside a tab view item called 'tabPlaylists" in a tab view called "tabLists". All of THAT is on a tab called "tabMusic" which is part of the main tab view on the main window. Phew!

    -----------Edit FOUND IT! ---------------------------
    You use the 'view' command. Here's how:
    set tv to view of tab view item "myInnerTabViewItem2" of tab view "myTabViewInner" of view of tab view item "myOuterTabViewItem2" of tab view "myTabViewOuter" of window "GarbageMain"

    You'll notice that the labels are different in my example, above. I built a garbage application to try and get it to work. Now I have to translate that to Harmony.
    -----------------------------------------------------------

    I'm missing that one magic bit of syntax somewhere and right now I can't find it. I need to, because what we're doing is allowing the user to swap out either the playlists or the track names. That functionality is on the Music tab. I've made the tabs invisible so that you can step through them by hitting a big button rather than those teeny tiny tabs in the original screenshot.

    Paul has been firing interface elements at us, along with lots of questions about how stuff should work, Eugene is hard at work on the serial interface, and as you can see, making some progress. I'm incorporating the H look into the beta release. Moving along, but not fast enough to suit me!

    -Tom
    Quote Originally Posted by ghettocruzer View Post
    I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
    Want to:
    -Find out about the new iBug iPad install?
    -Find out about carPC's in just 5 minutes? View the Car PC 101 video

  7. #67
    Variable Bitrate
    Join Date
    Feb 2006
    Posts
    262
    sounds like wonderful progress! any chance of seeing the H configuration, which we know will be temprary, if we PROMISE not to make suggestions to it since it will only be a temprary interface?

    thanks for all the hard work guys!

  8. #68
    Admin. Linux loser.
    Auto Apps:loading...
    Bugbyte's Avatar
    Join Date
    Sep 2004
    Location
    Corning, NY
    Posts
    7,359
    Blog Entries
    2
    Yeah, we're going to post a screenshot of it pretty soon. I talked to Paul and Eugene and they think we should update that old one on the first post pretty soon.

    On a progress note - tonight I incorporated the solution I was babbling about two posts up and now have Harmony switching between tracks and playlists with the touch of a single button. Sweet!

    Of course, that broke the routines that update the data in the tracks and playlists tables but it's merely a matter of fixing the references to them. I'll try and get that done tomorrow and I'll be pretty close to having a working 'H' configuration.
    Quote Originally Posted by ghettocruzer View Post
    I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
    Want to:
    -Find out about the new iBug iPad install?
    -Find out about carPC's in just 5 minutes? View the Car PC 101 video

  9. #69
    Maximum Bitrate pepsibobby's Avatar
    Join Date
    Dec 2005
    Location
    Kaiserslautern Germany
    Posts
    648
    so excited. hoping for screen shot and more!

  10. #70
    Admin. Linux loser.
    Auto Apps:loading...
    Bugbyte's Avatar
    Join Date
    Sep 2004
    Location
    Corning, NY
    Posts
    7,359
    Blog Entries
    2

    Update #10, 4/18/2006

    Okay, we're in a groove now. Paul has sent over a nib file to use for properly implementing the 'H' mode for Harmony and Eugene is making progress in his objective-c implementation of serial control for XM. He's out of town this week, though, and won't be able to develop more on it until next week.

    I've been working through the issues to make H mode a reality and the three of us have settled on some interface simplifications that ought to make the app easier to use in the car, on the move.

    I had family stuff to do this weekend, so didn't get too much done on the app, but expect to steal some late night devel time this week. I already worked on it tonight some.

    All in all, we're moving forward and I'm really pleased with the team we've put together. Paul and Eugene are great to work with and I'm sure we'll have something for you guys to test in the coming weeks. (He said, knowing full well that this will doom the project)

    Screenshots of the new look soon. I promise. Unless I decide to renege.
    Quote Originally Posted by ghettocruzer View Post
    I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
    Want to:
    -Find out about the new iBug iPad install?
    -Find out about carPC's in just 5 minutes? View the Car PC 101 video

Similar Threads

  1. which front end for no touch screen?
    By turbochris in forum Newbie
    Replies: 4
    Last Post: 08-30-2005, 10:59 AM
  2. This is an awesome front end, and here is why:
    By WhiteRabbit in forum NeoCar Media Center
    Replies: 47
    Last Post: 08-27-2005, 10:43 PM
  3. Front End Challange!
    By SEGgeek in forum MacCar
    Replies: 30
    Last Post: 08-16-2005, 11:16 AM
  4. Front end needed for semi commercial venture
    By Orange Bus in forum Software & Software Development
    Replies: 10
    Last Post: 04-28-2005, 02:59 AM
  5. BASIC Stamp question
    By Banderon in forum General Hardware Discussion
    Replies: 18
    Last Post: 05-07-2004, 09:33 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •