Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: BMW i-bus and ibuscomm

  1. #1
    Low Bitrate
    Join Date
    Apr 2011
    Location
    London, UK
    Posts
    59

    BMW i-bus and ibuscomm

    Hello,

    I need help with the ibuscomm program. I have a BMW e39 that I have integrated a resler ibus adaptor into. I have set up and tested ibuscomm and the program reads my steering wheel button presses, which I have assigned to certain keyboard presses/hotkeys. However I am trying to get this to now work within the DriveLine frontend. The hotkeys set in DriveLine and those I have mapped to the steering wheel buttons both match, but ibuscomm just wont control DriveLine.



    In the ini file I tried setting the AppCaptionSendEventTo line to:

    AppCaptionSendEventTo="DriveLine" (this would make ibuscomm hang in taskmanager and would not open to the taskbar, even with DriveLIne open. I read that when it does this it is waiting for the application you set for it to control to open and if that application is already open, then you must have set the windows title wrong.

    and also tried AppCaptionSendEventTo="" (this produced "error opening com port" when I try to open the ibuscomm exe)

    and just removing the line completely (as I read in another thread that if you remove the line ibuscomm will stop looking for a specific application that you preset to control and will control any program that is in focus. Setting the ini file like this made ibuscomm open and read the button presses/codes properly, but just not seemingly link to DriveLIne)

    However, whatever I write has the same effect of ibuscomm not pairing properly and DriveLine will not respond to the button presses.



    Can someone tell me, are any of the lines written correct or should I use some other code to tell ibuscomm that it needs to pair with and activate DriveLIne?

    Or, do I need to tweak some of the other settings within the ini file too?



    I had a read through the best thread I could find on the ibuscomm and how to make it work (http://www.mp3car.com/general-hardwa...o-connect.html) but this does not help me fix the problem

  2. #2
    Mod - Driveline forum
    Auto Apps:loading...
    ClockWorK's Avatar
    Join Date
    Oct 2003
    Location
    Michigan
    Posts
    728
    Have you made your ibus setup work with other front-ends or other applications prior to this?

    The way DriveLine works, it registers hotkeys globally within windows. Even if the keys are not sent specifically to DriveLine, it should still pick them up.

    The hotkeys that DriveLine registers are:
    CTRL+M to toggle mute
    CTRL+Plus to increase volume (in 10% increments)
    CTRL+Minus to decrease volume (in 10% increments)
    CTRL+RightArrow for Next
    CTRL+LeftArrow for Prev
    CTRL+H for HomeScreen
    CTRL+S to cycle through media sources.

    I'm not familiar with ibus, but my suggestions are:
    Send me the ini and I will take a look at it.
    Try sending your keys to "Explorer"
    Try sending your keys to "DriveLine_InvisibleForm"
    It could be an issue with the way you're specifying the 'CTRL' part of the key command.

    It sounds like ibus is using 'SendKeys'. I don't know if the hotkeys registered in DriveLine will pick these up as actual keyboard presses.

    Have you tested the functionality within DriveLine using just a regular keyboard?
    Last edited by ClockWorK; 08-17-2013 at 09:11 PM.

  3. #3
    Low Bitrate
    Join Date
    Apr 2011
    Location
    London, UK
    Posts
    59
    Clockwork, I have also been testing the keys using the keyboard within DriveLine and this works fine.

    I have tested the ini file again to try and see if I can get the buttons to either activate commands or just write letters into Notepad. I seem to have got the exe file to recognise and focus on notepad by using the line AppClassSendEventTo="NOTEPAD" (does not work with line AppCaptionSendEventTo="NOTEPAD" and will hang in the taskmanager waiting for the correct program to open, like previously mentioned). With this line added the exe file will open fully and not hang waiting. When I then use the program to simulate the button presses notepad is forced to the foreground, so it seems to be communicating to a certain extent. However notepad will not pick up any commands I have set for the keys (e.g. cntrl+p should bring up the print screen, or just assigning normal letter keys to make a p display when the button is pressed, for example).

    This is the ini file I have changed about a little in my test attempts, along with the ibuscomm exe program that can simulate the button assignments (don't know if it works without an adaptor plugged into a com port though)
    Copy of Ibuscomm.zip


    Any help is appreciated

  4. #4
    Confusion Master
    Auto Apps:loading...
    Enforcer's Avatar
    Join Date
    Sep 2003
    Location
    If you go down to the woods today, You're sure of
    Posts
    14,589
    One of the plugins I have in development in other frontends is an iBus one. (it's be my own take on it so may be different from ones already in RR and CF.)

    But, it will probably be a while down the road yet before it get released for the other FE's let alone DL.

  5. #5
    Maximum Bitrate rray's Avatar
    Join Date
    Apr 2012
    Location
    SF Bay Area
    Posts
    732
    I used the Joycon EXR USB interface to connect my steering wheel control line. It works flawlessly with Driveline. I had to assign key strokes to each button press I wanted to use, but after doing that, the Joycon turns those button presses into keystrokes, that Driveline recognizes.

    I assume that ibuscomm works the similarly, so it should just run by itself, and translate any steering wheel button presses into windows keypresses. So all you need to do it figure out how to make ibuscomm output the keystroke combinations Driveline recognizes...

    Example:

    You press the volume up button, and ibuscomm must output keystrokes "Control" and the "+ key" at the same time.



    CTRL+M to toggle mute
    CTRL+Plus to increase volume (in 10% increments)
    CTRL+Minus to decrease volume (in 10% increments)
    CTRL+RightArrow for Next
    CTRL+LeftArrow for Prev
    CTRL+H for HomeScreen
    CTRL+S to cycle through media sources.

    To see if it's working, open a browser window, press the volume up button that should be programmed to output CTRL+Plus, and the browser font should get larger like it is zooming in, then press CTRL+Minus, and it should shrink the fonts like zooming out. If that happens, then those same button presses will raise or lower volume in Driveline.
    Last edited by rray; 08-18-2013 at 08:55 AM.

  6. #6
    Low Bitrate
    Join Date
    Apr 2011
    Location
    London, UK
    Posts
    59
    Have now tried to get this to work in a browser window as rray suggested. Still the same problem. If I assign a browser program name to specifically work with ibuscomm then it hangs in taskmanager. I used "MOZILLA FIREFOX" and just "FIREFOX". Neither terms worked. If I leave the line blank then ibuscomm will open, but the button presses do not operate the browser window. From the notes in the ini file I believe I have written the correct combination of command to make the +button translate to control+plus (^{+} in the ini file) and the -button translate to control+minus (^{-} in the ini file).

  7. #7
    Maximum Bitrate rray's Avatar
    Join Date
    Apr 2012
    Location
    SF Bay Area
    Posts
    732
    So far that's a positive, in that the problem is not with Driveline, rather it's figuring out how to setup the IBusComM.ini file. I looked at the ini, and it describes the CTRL+Plus command would need to be "^{+}" so you need to include the parentheses around the ^{+} .



    ; 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 {+}.

    ; 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)".
    Last edited by rray; 08-18-2013 at 10:05 AM.

  8. #8
    Low Bitrate
    Join Date
    Apr 2011
    Location
    London, UK
    Posts
    59
    Rray I have already done this. This is how i have the command for control+plus written

    "^{+}"

    And the command for control+minus is written as

    "^{-}"

    If you were looking at my file i posted above, this was just a test where i changed about what i wanted the buttons to do to test in notepad to see if i could get the button presses to do things like bring up the print screen or just type a letter.

    Sent from my HTC One X+ using Tapatalk 2

  9. #9
    FLAC SNOtwistR's Avatar
    Join Date
    Nov 2009
    Location
    Keswick,On Canada
    Posts
    1,630
    What OS are we using? It's not a user rights issue is it? just a thought SNO

  10. #10
    Mod - Driveline forum
    Auto Apps:loading...
    ClockWorK's Avatar
    Join Date
    Oct 2003
    Location
    Michigan
    Posts
    728
    Test with notepad for now. Try specifying Ctrl+P exactly like this:
    ^(p)

    Once we get a single command working, we can do the others.

Page 1 of 2 12 LastLast

Similar Threads

  1. IbusComM E46 CD Emulation
    By Assault in forum RR Plugins
    Replies: 0
    Last Post: 05-18-2008, 08:16 AM
  2. Ibuscomm and Girder
    By ringltangbob in forum Input Devices
    Replies: 0
    Last Post: 09-07-2007, 05:23 PM
  3. IBusComm with cPos
    By kamikazeIT in forum Newbie
    Replies: 2
    Last Post: 03-09-2007, 08:42 AM
  4. IBuscomm
    By doubletop in forum Software & Software Development
    Replies: 10
    Last Post: 05-21-2006, 05:54 PM
  5. IBUSCOMM help
    By phita23 in forum Software & Software Development
    Replies: 0
    Last Post: 02-08-2005, 10:30 PM

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
  •