Centrafuse Carputer, CarPC & UMPC Forums
Go Back   Centrafuse Carputer, CarPC & UMPC Forums > 3rd Party Development > Plugin Development

Plugin Development Extend the functionality of Centrafuse by developing plugins

Reply
 
LinkBack (22) Thread Tools Display Modes
Old January 13th, 2008, 12:09 AM   21 links from elsewhere to this Post. Click to view. #1 (permalink)
7 Farad - Super Capacity
 
Join Date: Nov 2007
Posts: 108
Nerve is on a distinguished road
NEW Car2PC Plugin under development

Centrafuse Car2PC Plugin
Description: Plugin to allow a headunit to talk to Centrafuse using a USB device called the Car2PC available from In Dash PC.
Latest version: 0.61 download
Status: Development (beta)
Requirements: Centrafuse 1.20 (should work on all later versions)
Features:
  • Press buttons on your headunit or steering wheel to control Centrafuse
  • Display song information in Centrafuse on your headunit*
  • Control what the buttons do by pressing them and assigning actions (some buttons on headunits have an on/off so you will need to press them twice to configure each state (on and off)
  • Restores connection to car2pc when car is turned off then back on again (may still be some issues with this)
  • Context dependant headunit/wheel buttons. Control what they do depending on where you are in Centrafuse
  • Customise the headunit display*
*Will be available in a future release

Any buttons that Car2PC can read will be configurable.

Issues!
When selecting a port the port is not opened correctly. To work around this Save settings and exit Centrafuse then go back in to settings and you should then be able to add your actions.

Some Windows themes are causing dialogs to be displayed behind the main window. Symptons are that the dialog displays briefly then seems to disappear. Watch out for this.

I chucked ALL the actions in and some of them may not need to be there while others have some dodgy names. This can be customized though in the English.xml language file. Entries can be removed and description can be altered if anyone fancies.
Centrafuse does not have any actions for Forward/Rewind and Playlist manipulation but these are on David's list to add.

What's Next?
Still would like to do headunit display. Now I have my car it should be easier!

Last edited by Nerve; June 15th, 2008 at 07:54 AM.
Nerve is offline   Reply With Quote
Old January 13th, 2008, 04:30 PM   #2 (permalink)
10 Farad - Flux Capacity
nintwala's CarPC Specs
 
nintwala's Avatar
 
Join Date: Nov 2006
Location: RI, USA
Vehicle: 03 Accord EX
Posts: 1,136
nintwala will become famous soon enough
Hi there...

I would be more than happy to test it out for you.

I dont know if you are the same guy that I PMed my email, but I will send you my email again. Check your PM.

Thank you so much for working on this plugin. I cant wait to test it out.

You can post your codes here too instead of emailing it. Just zip the plugins and attach it. Mark the file Car2PC-test.zip or something, that way people know its not fully working.
nintwala is offline   Reply With Quote
Old January 13th, 2008, 05:30 PM   1 links from elsewhere to this Post. Click to view. #3 (permalink)
7 Farad - Super Capacity
 
Join Date: Nov 2007
Posts: 108
Nerve is on a distinguished road
Yes that's me!

Here it is then version 0.2! (see first post).

If anyone has suggestions for how they want to see this developed then please let me know. For example I could use one button to cycle between different modules. Or the number buttons could be used for different modules. Once I've played around a bit I might attempt to allow it to be customized but it depends on how many people find it useful.

Last edited by Nerve; January 13th, 2008 at 06:10 PM.
Nerve is offline   Reply With Quote
Old January 13th, 2008, 06:19 PM   #4 (permalink)
10 Farad - Flux Capacity
nintwala's CarPC Specs
 
nintwala's Avatar
 
Join Date: Nov 2006
Location: RI, USA
Vehicle: 03 Accord EX
Posts: 1,136
nintwala will become famous soon enough
Hi there,

Just tested the 0.2 version. Its working pretty damn well. The previous and next track is working fine. The Repeat button is working as random right now, but it is working fine too.

I am not sure what exactly what the Random button is set to do, but freezes up CF. I have to press it a couple of time for CF to respond back. Its almost like it gets stuck somewhere and doesnt know what to do until you press it again.

Also its showing up as a blank in the Settings menu. It should be a minor thing to fix. Take a look at the screenshot below.

Log file is attached too...
Attached Images
File Type: jpg CF-Car2PC-ver0.2.JPG (221.9 KB, 2098 views)
Highslide JS
Attached Files
File Type: zip error-log.zip (3.0 KB, 56 views)
nintwala is offline   Reply With Quote
Old January 13th, 2008, 06:28 PM   #5 (permalink)
7 Farad - Super Capacity
 
Join Date: Nov 2007
Posts: 108
Nerve is on a distinguished road
Hey that's great!

The repeat button is mapped to shuffle but it's an on/off button so that's why you were seeing it seemingly lock up. There is currently anyway to repeat (I don't think) in Centrafuse but I could probably make the plugin simulate it. I should be able to hook into an end of song event or something. I'll see if I can do this.

The blank settings is because I don't have any settings but I'll make sure the text appears at least. No problem.

Let me know if you have any more suggestions especially what do you really need to have next. What Car/headunit do you have?

I might also be able to turn on a debugging for the Car2PC which may give me even more commands to map. If this is specific I might have to create a separate app to help with the mapping.

Thanks for testing nintwala. Glad it works
Nerve is offline   Reply With Quote
Old January 13th, 2008, 06:52 PM   #6 (permalink)
10 Farad - Flux Capacity
nintwala's CarPC Specs
 
nintwala's Avatar
 
Join Date: Nov 2006
Location: RI, USA
Vehicle: 03 Accord EX
Posts: 1,136
nintwala will become famous soon enough
I have a 2003 Honda Accord.

This is what my headunit looks like

Honda Accord 03 touch screen install

I am not too worried about the repeat function, but I am sure few people would like to have...

What I really would like to have it the ability to change loaded playlists by press Next/Previous Disc button. It should basically simulate what happens when you press the stack button in media. So it switches to the next/previous playlist in the stack.

In the previous plugin the settings had options to choose what each button should do, so people can customize the buttons. Maybe that can be added eventually too. I used the Prev Disc button to shuffle/unshuffle because the RPT button didnt work in it and I used the Next Disc button to load the visualization.
nintwala is offline   Reply With Quote
Old January 13th, 2008, 06:56 PM   #7 (permalink)
10 Farad - Flux Capacity
nintwala's CarPC Specs
 
nintwala's Avatar
 
Join Date: Nov 2006
Location: RI, USA
Vehicle: 03 Accord EX
Posts: 1,136
nintwala will become famous soon enough
I have a program that reads the COM port. It can read the Car2PC adapter and it displays what commands are sent. Like PL, RT1, RT0... something like that.

I will try to press every single button on the headunit and see what command it sends to the computer. This way you can have a list of all the buttons that can be simulated in CF.

Stay tuned...
nintwala is offline   Reply With Quote
Old January 13th, 2008, 06:59 PM   #8 (permalink)
7 Farad - Super Capacity
 
Join Date: Nov 2007
Posts: 108
Nerve is on a distinguished road
nice one. I'll keep a look out for the results
Nerve is offline   Reply With Quote
Old January 13th, 2008, 07:20 PM   #9 (permalink)
10 Farad - Flux Capacity
nintwala's CarPC Specs
 
nintwala's Avatar
 
Join Date: Nov 2006
Location: RI, USA
Vehicle: 03 Accord EX
Posts: 1,136
nintwala will become famous soon enough
Ok, This is what I found

PD = Previous Disc
ND = Next Disc
RP1 = Repeat On
RP0 = Repeat Off
MX1 = Random On
MX0 = Random Off
NT = Next Track
PT = Previous Tack
FR1 = Press and Hold Rewind
FR0 = Release Rewind
FF1 = Press and Hold Forward
FF0 = Release Forward
SC1 = Scan Radio On
SC0 = Scan Radio Off

Attached it the log file that it produced when scanning the port. I copied and pasted it into a txt file.

Notice when I pressed Rewind it keeps sending FR1.. When I let go, it send FR0. Same for Forward, when pressed it repeatedly sends FF1 and when I let go it sends FF0. So I think if you check for FF1 or FR1 and start the forward/rewind and look for FF0/FR0 and resume regular play.

I know there was an issue before cause CF didnt have any command for forward/rewind. I am not sure if that has changed, so you might have to do some work around.

Let me know if you need anything else.
Attached Files
File Type: txt log.txt (789 Bytes, 99 views)
nintwala is offline   Reply With Quote
Old January 13th, 2008, 07:41 PM   #10 (permalink)
7 Farad - Super Capacity
 
Join Date: Nov 2007
Posts: 108
Nerve is on a distinguished road
Yea I know about the forward and rewind buttons and no there aren't currently actions for this or for changing playlists but I'll about getting these added.
Nerve is offline   Reply With Quote
Reply

Bookmarks

Tags
car2pc, development, plugin

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 On

LinkBacks (?)
LinkBack to this Thread: http://forums.fluxmedia.net/plugin-development/2131-new-car2pc-plugin-under-development.html
Posted By For Type Date
www.soloCarputer.com :: Ver tema - Problemas con el plugin Car2PC de centrafuse This thread Refback November 6th, 2008 03:24 PM
www.soloCarputer.com :: Ver tema - Problemas con el plugin Car2PC de centrafuse This thread Refback November 6th, 2008 09:11 AM
www.soloCarputer.com :: Ver tema - Problemas con el plugin Car2PC de centrafuse This thread Refback November 5th, 2008 02:53 PM
www.soloCarputer.com :: Ver tema - Problemas con el plugin Car2PC de centrafuse This thread Refback October 28th, 2008 11:35 AM
www.soloCarputer.com :: Ver tema - Problemas con el plugin Car2PC de centrafuse This thread Refback October 28th, 2008 10:02 AM
www.soloCarputer.com :: Ver tema - Problemas con el plugin Car2PC de centrafuse This thread Refback October 27th, 2008 06:54 PM
www.soloCarputer.com :: Ver tema - Problemas con el plugin Car2PC de centrafuse This thread Refback October 27th, 2008 05:16 PM
www.soloCarputer.com :: Ver tema - Problemas con el plugin Car2PC de centrafuse This thread Refback October 27th, 2008 02:03 PM
www.soloCarputer.com :: Ver tema - Problemas con el plugin Car2PC de centrafuse This thread Refback October 27th, 2008 01:32 PM
www.soloCarputer.com :: Ver tema - Problemas con el plugin Car2PC de centrafuse This thread Refback October 27th, 2008 01:02 PM
PCCar.ru - Ваш автомобильный компьютер - Показать сообщение отдельно - Проект: карпутер в Toyota Camry V30 This thread Refback October 7th, 2008 07:36 PM
Проект: карпутер в Toyota Camry V30 - PCCar.ru - Ваш автомобильный компьютер This thread Refback September 21st, 2008 03:02 PM
Configuring your Car2PC Adapter - Page 2 - MP3Car.com This thread Refback September 21st, 2008 02:40 PM
Проект: карпутер в Toyota Camry V30 - PCCar.ru - Ваш автомобильный компьютер This thread Refback September 20th, 2008 04:26 PM
cwwny's car Bookmarks on Delicious This thread Refback September 15th, 2008 01:03 AM
Mazda RX-8 Stealthy CarPC install - Page 2 - MP3Car.com This thread Refback July 27th, 2008 04:35 PM
www.soloCarputer.com :: Ver tema - Mandos de volante con CAR2PC This thread Refback July 19th, 2008 06:03 PM
InDashPC.org :: View topic - NEW Centrafuse Car2PC Plugin under development This thread Refback July 14th, 2008 01:24 PM
www.soloCarputer.com :: Ver tema - Mandos de volante con CAR2PC This thread Refback July 7th, 2008 06:20 AM
InDashPC.org :: View topic - NEW Centrafuse Car2PC Plugin under development This thread Refback July 3rd, 2008 10:00 AM
Mazda RX-8 Stealthy CarPC install - MP3Car.com This thread Refback July 2nd, 2008 06:03 PM
Control Centrafuse with you headunit or steering controls - MP3Car.com Post #0 Refback June 25th, 2008 06:40 PM


All times are GMT -4. The time now is 12:03 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Advertisement System V2.5 By   Branden
©Copyright 2008 Flux Media, Inc. All rights reserved.