TrentSeed / BMW_E46_Android_RPi_IBUS_Controller

"Appify" your E46 BMW with a Raspberry Pi and your smartphone! Nexus 7 in dash, connected to Raspberry Pi (via Bluetooth), which is connected to IBUS (via USB Adapter). Supports Android Wear 4.4W w/ full voice commands!
85 stars 26 forks source link

raspberry pi necessary? #18

Open HotMykeul opened 9 years ago

HotMykeul commented 9 years ago

Hi, Thank you very much for your work, I will use that for my car soon but I don't understand why the USB ibus cannot be plug into the tablet directly? Python is supported by android ?

TrentSeed commented 9 years ago

Hi, no problem! If you review python-raspberrypi/android_service/usb.py, the original idea was to connect directly as you mentioned. I ran into a small issue (noted in the file), and decided to use bluetooth. This made it simple to connect from the internal tablet, my mobile phone, and my LG G Watch running Android 4.4W.

HotMykeul commented 9 years ago

Sorry but I can't understand. I mean you can't connect directly the ibus usb to android tablet and execute some python code with an app on this tablet? Because usb.py seems to me for to connect raspberry pi on usb to android? I want to use just a nexus 7 with ibus usb without any rpi. Sorry for my bad english.

nickushorul commented 6 years ago

Hi, I'm also interested in connecting the usb directly to nexus 7 without using bluetooth.

De5tr0yer commented 6 years ago

Hello nick, I have managed to directly connect the Resler IBUS adapter with my nexus 7 flo using usb-serial-for-android from user mik3y.

If you have experience coding in Android Studio, check his project: https://github.com/mik3y/usb-serial-for-android Basically, it can be used as a high level "driver" for configuring USB connection with the device.

I have used his driver to establish usb connection to resler IBUS device and it functions without any problems. You will however need another "layer" of the application to translate the IBUS messages through a running application. I have created a service that turns on after BOOT_COMPLETED or USB_DEVICE_ATTACHED (with filter in xml/device_filter) broadcast is received.

The idea was to keep the service run in the background, receiving messages primarily from steering wheel controls and transfering them to global user inputs: volume +/-, OK, google button, button to turn the screen off and of course fwd/bck buttons. Of course could you also inject IBUS controls (regular IBUS control such as windows.

Hope the information points you in the right direction.

nickushorul commented 6 years ago

Hello, thank you for answer but i dont know Android Studio, i just use it to build apk. Can you help me with your project? And i have another question. Can i switch mode from nexus? I mean switch from radio to cd or cd to radio?. Thank you!

On Oct 5, 2017 00:17, "De5tr0yer" notifications@github.com wrote:

Hello nick, I have managed to directly connect the Resler IBUS adapter with my nexus 7 flo using usb-serial-for-android from user mik3y.

If you have experience coding in Android Studio, check his project: https://github.com/mik3y/usb-serial-for-android Basically, it can be used as a high level "driver" for configuring USB connection with the device.

I have used his driver to establish usb connection to resler IBUS device and it functions without any problems. You will however need another "layer" of the application to translate the IBUS messages through a running application. I have created a service that turns on after BOOT_COMPLETED or USB_DEVICE_ATTACHED (with filter in xml/device_filter) broadcast is received.

The idea was to keep the service run in the background, receiving messages primarily from steering wheel controls and transfering them to global user inputs: volume +/-, OK, google button, button to turn the screen off and of course fwd/bck buttons. Of course could you also inject IBUS controls (regular IBUS control such as windows.

Hope the information points you in the right direction.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/TrentSeed/BMW_E46_Android_RPi_IBUS_Controller/issues/18#issuecomment-334292244, or mute the thread https://github.com/notifications/unsubscribe-auth/Ae3OdkUoUdffZJUfABygt---QYrmSVygks5so_X2gaJpZM4Dy7Wa .

De5tr0yer commented 6 years ago

If that is the case, you will have trouble doing anything with my code. It's not straightforward enough if you cannot code.

I am not yet ready to give the code to anybody nor sell it. If and when I manage to clean up the code and make it more user friendly, I would be glad to make it available.

I have completely removed the radio unit from my device, hence I do not need this option. But the IBUS message for sending the "MODE" button can easily be implemented.