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 (2) Thread Tools Display Modes
Old September 4th, 2006, 06:51 PM   1 links from elsewhere to this Post. Click to view. #1 (permalink)
0.5 Farad - Min. Capacity
 
Join Date: Sep 2006
Posts: 6
mweels
I Bus

I am going to impliment an I_Bus module and would like to understand the best approach.

Couple of questions..

How can I have my own process running within Centrafuse? I want to handle the events coming from the IBus and then kick out the methods in Centra Fuse.

I would rather not create a seperate application and send events to CentraFuse. Does Centrafuse have a web service layer at all if I have to?

MWEELS
mweels is offline   Reply With Quote
Old September 4th, 2006, 07:08 PM   #2 (permalink)
Administrator
David's CarPC Specs
 
David's Avatar
 
Join Date: Oct 2004
Location: Atlanta, GA
Posts: 5,012
David has disabled reputation
Their is an entire SDK you can use to create GUI or non-GUI plugins....

You would simply create a non-GUI plugin that reads the iBus events and uses the easy functions to call commands within Centrafuse...

Create a nice setup screen, examples in the SDK, that allows you to assign which actions to associate...

should be fairly simple....


note: If you are registered on the website go under My Account and get access to the FDN. You can download the SDK with documentation and examples...

david
David is offline   Reply With Quote
Old September 5th, 2006, 01:15 PM   #3 (permalink)
0.5 Farad - Min. Capacity
 
Join Date: Sep 2006
Posts: 6
mweels
Got it.

So the Non-Gui plug ins are residnt throughout the applcation context?

yes... you can have a non-GUI plugin that monitors for i-Bus commands, then issues the systemcommand with the enum in the SDK to have it call any function you want...

then create a nice setup screen to allow you to assign what actions you want...

david
mweels is offline   Reply With Quote
Old May 13th, 2007, 03:24 PM   #4 (permalink)
3 Farad - Moderate Capacity
 
Join Date: May 2007
Posts: 24
vinzer is on a distinguished road
Is there any updates on this ? I am looking for ibus software for centrafuse.
Thank you
vinzer is offline   Reply With Quote
Old May 14th, 2007, 08:42 PM   #5 (permalink)
1 Farad - Avg. Capacity
 
Join Date: Mar 2007
Posts: 16
fsolanes is on a distinguished road
I have been trying, with no luck...I'm not sure if any of the or BMW owners have had any luck...
__________________
:google:
fsolanes is offline   Reply With Quote
Old May 15th, 2007, 01:19 PM   #6 (permalink)
3 Farad - Moderate Capacity
 
Join Date: May 2007
Posts: 24
vinzer is on a distinguished road
At least it is important to understand at what point it does not work. Maybe David may help us with that. I have 3 friends here with Centrafuse and BMW vehicles.... we realy need it to work.
Basically ibuscomm.exe works and sending messages (I am using simple messages like "u" for volume up and "d" for volume down). And these messages come to centrafuse, but for some reason centrafuse just doesnot react on them. Maybe there is some thing which prevents centrafuse to react on commands which are keyboard-emulating messages ??? because when I press on my keyboard "u" or "d" buttons it works rightaway

David please help us
Thnak you.
vinzer is offline   Reply With Quote
Old May 15th, 2007, 05:38 PM   #7 (permalink)
Administrator
David's CarPC Specs
 
David's Avatar
 
Join Date: Oct 2004
Location: Atlanta, GA
Posts: 5,012
David has disabled reputation
very strange because many keyboard shortcut applications work fine with Centrafuse...

This is the only device that seems to have issues...

david
David is offline   Reply With Quote
Old May 15th, 2007, 09:31 PM   #8 (permalink)
3 Farad - Moderate Capacity
 
Join Date: May 2007
Posts: 24
vinzer is on a distinguished road
Yep thats strange. If I send you ibuscomm software (basically there is 1 .exe file which is useless for you probably and 1 .ini file which has many specific settings can you please take a look at that ? Because if it possible to resolve this IBUSS problem it would be great
vinzer is offline   Reply With Quote
Old May 15th, 2007, 09:40 PM   #9 (permalink)
3 Farad - Moderate Capacity
 
Join Date: May 2007
Posts: 24
vinzer is on a distinguished road
ibuss.ini - ibus configuration file

lines 11 and 17 from bottom is my settings to send "u" keyboard key for volume up and "d" key for volume down. When I press any button on my steering wheel and centrafuse is minimized at that moment, it immideately goes to full screen but no volume changes happen. Please help.


; IBUS Communication Manager.
; Configuration File.
; Franck Touanen, September 2003.
; ftouanen@yahoo.fr
; V1.0.

;
; General IBUSCOMM Setting

[Settings]

; IBusComm can be totally invisible...

SetVisible=true
SetMinimized=True
;SetBackGround=True <-TODO


; COM port. 1 means COM1. 2 means COM2...
ComPort=1

; Contention Management
;
; IBusCOMM is able to manage contention problems by testing the bus line before sending
; a message to another device.
;
; 0 : By software (simple Interface 1/2)
; 1 : CTS/RTS (T.Woods or Melexis chips based interfaces). NOT CURRENTLY SUPPORTED.
; 2 : RING High (Simpe Interface 3)NOT CURRENTLY SUPPORTED.
; 3 : CTS High " NOT CURRENTLY SUPPORTED.
; 4 : CD High "NOT CURRENTLY SUPPORTED.
; 5 : DSR High "NOT CURRENTLY SUPPORTED.
;
; 0 mode is a pure software contention detection, working enough well if you already have
; a basic interface.
; 1 mode is a hardware contention management.
; 2 to 5 is a mix beetween hardware and software, more accurate than the 0 mode as it works at
; a bit resolution rather than character resolution.
;

ContentionManagement=0

; Switched Line
;
; The switched line can be used to activate a relay to switch on for example, the
; video line to the PC and the Navigation computer.
;
; 0 : No switched line used
; 1 : RTS line used
; 2 : DTR line used
;
; A ProcessEvent=Enable will set the line to HIGH.
; A ProcessEvent=Disable will set the line to LOW.
; Status is LOW by default.
;
SwitchedLine=0

; Time for shutdown in minutes
; This will trig the Shutdown event.
IBusIdleTime=100

; Time between 2 IBus messages in miliseconds.
; Used if no contention detection hardware (mode 0)
; Usually set to 11 millisecs.
InterMsgDelay=11

; Activate LogMode. Reset each 500 events.
LogMode=True

; Synchronize PC Clock and OBC Clock every 5 minutes
; Note : The PC is master and set the OBC clock.NOT CURRENTLY SUPPORTED.
SYnchronizeClock=

; Application to send event to (Windows Title)
; Note that application must be started before IBusComm in that case.
AppCaptionSendEventTo="Centrafuse"

; Force Application to ForeGround ID (only when using AppCaptionSendEventTo)
; Sometimes, it is necessary to force the application to foreground, as some windows application
; can keep focus.
AppForceForeGround=BUT_TAPEDOLBY_PRESS

; The following parameter will make IBUSCOMM to set the focus to the application window each time
; a message is detected and a keyboard event has to be sent.
AppForceForeGroundOnEvent=true


; Startup Process Events state when detecting message
; False by default (except system messages)
ProcessEvents=true

; Urgent REBOOT message ID;
; When the system needs to be rebooted, specify the IBus ID here.
; The reboot action will BE the first action processed for the Event, so
; all others actions specified will be ignored.
UrgentReboot=BUT_TAPEREV_HOLD



[AppEventsDefine]
PLAY=1
STOP=2
PAUSE=3
FAST_FORWARD=4
FAST_BACkWARD=5
NEXT_SONG=7
PREV_SONG=8
NEXT_ALBUM=9
PREV_ALBUM=10

; ---------------------------------------------------------------------------------------------------
;
; Message definition syntax

;
; [ID:<Message ID>], MsgTemplate=<MsgTemplate>, Label=<Label>, Parse=<0/1>
;
; IBus Message ID : This ID is one the IBUS ID known by the IBUS COM module.
;
; MsgTemplate : The message template. wildcard "XX" can be used to replace
; : a specific character for variable content messages.
; : If wildcars are used, set the checksum byte to XX also.
;
; Message Label : A clear text for debuging session, or monitoring.
;
; Parse : If 0 (default), the message is not parsed by IBUSCOM (but can be sent)
; : If the message MsgTemplate is empty, Parse will be forced to 0.
; : If 1 the message is parsed and generate an event.
;
; System : If True, then the message is always processed, whatever is the state of ProcessEvents
;
;
; KeyBoardMap : If Set, Generate the keystroke sequence when ID recognized
;
; ProcessEvents : If set to "Disable", then IBuscomm will stop to send ReplyMsg, & Events + keystrokes
; : to the application Until a message with ProcessEvents "Enable"s again (flip/flop).
; : When IBusComm is launched, initial state of ProcessEvents is can be set in the main section.
;
; ReplyMsgID : If Set to a valid ID, will send the message <ID> on the bus
; : Message wil be sent only if no XX wildcards contained.
;
; ButtonState : If Set to true, the PRESSED state will be managed automatically.
; : The ReleaseID value must be set with a valid ID for this parameter.
;
; ButtonReleaseID : If set to a valid ID, will wait the msg ID before processing
; : This can be used especially when a button PRESS/HOLD state is needed.
;
; WMUserEvent : If a windows message has to be sent also.
;
; About Keystrokes definition (keyboardMap) :
;
; Each key is represented by one or more characters.
; To specify a single keyboard character, use the character itself.
; For example, to represent the letter A, use "A" for string.
; To represent more than one character, append each additional character to the one preceding it.
; To represent the letters A, B, and C, use "ABC" for string.
: The plus sign (+), caret (^), percent sign (%), tilde (~), and parentheses ( ) have special
; meanings to SendKeys.
; To specify one of these characters, enclose it within braces ({}).
; For example, to specify the plus sign, use {+}. Brackets ([ ]) have no special meaning to SendKeys,
; but you must enclose them in braces. In other applications, brackets do have a special meaning that
; may be significant when dynamic data exchange (DDE) occurs. To specify brace characters,
; use {{} and {}}.
; To specify characters that aren't displayed when you press a key, such as ENTER or TAB,
; and keys that represent actions rather than characters, use the codes shown below:
;
; BACKSPACE {BACKSPACE}, {BS}, or {BKSP} BREAK {BREAK}
; CAPS LOCK {CAPSLOCK} DEL or DELETE {DELETE} or {DEL}
; DOWN ARROW {DOWN} END {END}
; ENTER {ENTER}or ~ ESC {ESC}
; HELP {HELP} HOME {HOME}
; INS or INSERT {INSERT} or {INS} LEFT ARROW {LEFT}
; NUM LOCK {NUMLOCK} PAGE DOWN {PGDN}
; PAGE UP {PGUP} PRINT SCREEN {PRTSC}
; RIGHT ARROW {RIGHT} SCROLL LOCK {SCROLLLOCK}
; TAB {TAB} UP ARROW {UP}
; F1 {F1} F2 {F2}
; F3 {F3} F4 {F4}
; F5 {F5} F6 {F6}
; F7 {F7} F8 {F8}
; F9 {F9} F10 {F10}
; F11 {F11} F12 {F12}
; F13 {F13} F14 {F14}
; F15 {F15} F16 {F16}
;
; To specify keys combined with any combination of the SHIFT, CTRL, and ALT keys,
; precede the key code with one or more of the following codes:
;
; SHIFT + CTRL ^ ALT %
;
; To specify that any combination of SHIFT, CTRL, and ALT should be held down while several other keys
; are pressed, enclose the code for those keys in parentheses.
; For example, to specify to hold down SHIFT while E and C are pressed, use "+(EC)".
; To specify to hold down SHIFT while E is pressed, followed by C without SHIFT, use "+EC".
;
; To specify repeating keys, use the form {key number}. You must put a space between key and number.
; For example, {LEFT 42} means press the LEFT ARROW key 42 times; {h 10} means press H 10 times.
;
; Note SendKeys can't send keystrokes to an application that is not designed to run in Microsoft Windows.
; Sendkeys also can't send the PRINT SCREEN key {PRTSC} to any application.

; ; IBUS Messages --------------------------------------------------------
;
; -------------------------------------------------------------------------
; ID declaration
; Syntax is <Id name>=Id # (a byte from 0 to 255)
; -------------------------------------------------------------------------

[IBusIdsDefine]
; - - - - - - - - - - - - - - -
; Message from 0 to 5 are reserved.
IBUS_IDLE=0
IBUS_SHUTDOWN=1
RESERVED_2=2
RESERVED_3=3
RESERVED_4=4
RESERVED_5=5
; - - - - - - - - - - - - - - -
STW_NEXT_PRES=157
STW_PREV_PRES=158
STW_PLUS_PRES=159
STW_MINUS_PRES=160
STW_PHONE_PRES=161
STW_RT_PRES=162


TEXT_MSGCD=200

; Messages to send when IBusComm starts up
; Syntaxe is : Message Id=True || False.
; False means do not send
; TO DO !
; -------------------------------------------------------------------------
[StartupIds]
CD_ANNOUNCE=True

; -------------------------------------------------------------------------
; Internal Messages

[ID:IBUS_IDLE]
Label="IBus Idle"
System=True

[ID:IBUS_SHUTDOWN]
Label="IBus ShutDown"
System=True
KeyBoardMap="^{F12}"

; -------------------------------------------------------------------------
; Steering Wheel ----------------------------------------------------------

;
[ID:STW_PREV_PRES]
MsgTemplate="5004683B080F"
Label="S. Wheel < Press"
Parse=True
KeyboardMap="RRPREV"

[ID:STW_NEXT_PRES]
MsgTemplate="5004683B0106"
Label="S. Wheel > Press"
Parse=True
KeyboardMap="RRNEXT"


[ID:STW_PLUS_PRES]
MsgTemplate="50046832111F"
Label="S. Wheel + Press"
Parse=True
KeyboardMap="u"

[ID:STW_MINUS_PRES]
MsgTemplate="50046832101E"
Label="S. Wheel - Press"
Parse=True
KeyboardMap="d"

[ID:STW_PHONE_PRES]
MsgTemplate="5004C83B8027"
Label="S. Wheel phone Press"
Parse=True
KeyboardMap="MUTE"

[ID:STW_RT_PRES]
MsgTemplate="5003C8019A"
Label="S. Wheel - Press"
Parse=True
KeyboardMap="PLAY"

Last edited by vinzer; May 15th, 2007 at 09:43 PM.
vinzer is offline   Reply With Quote
Old August 6th, 2007, 12:55 PM   #10 (permalink)
Newbie - Zero Capacity
 
Join Date: Aug 2007
Posts: 3
rtaxerxes is on a distinguished road
Bump!! I am trying Centrafuse, and am also not able to get IBUS Commands thru to centrafuse. It works in Road Runner and notepad, has anyone solved this?
rtaxerxes is offline   Reply With Quote
Reply

Bookmarks

Tags
bus

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/551-i-bus.html
Posted By For Type Date
BMW IBus control for Centrafuse? - Page 2 - MP3Car.com This thread Refback July 30th, 2008 05:35 AM
BMW E46 steering wheels (ibus) + centrafuse? - MP3Car.com Post #0 Refback June 28th, 2008 11:53 AM



All times are GMT -4. The time now is 11:25 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ©2009 Flux Media, Inc. All rights reserved.Ad Management plugin by RedTyger