headunit icon indicating copy to clipboard operation
headunit copied to clipboard

Raspberry PI

Open Vitalic66 opened this issue 8 years ago • 9 comments

Hallo,

has anybody ever tried to run this on a Raspberry PI ?

I compiled the files in the Ubuntu folder with my PI, but when i start it, i get several errors.

The goal is to use AA in my 2001 BMW. Right now KODI on the Raspberry works fine and streams pictures, videos and music to the NAV screen.

Maybe I can get some help here.

Regards

Vitalic66 avatar Apr 06 '17 10:04 Vitalic66

Hi,

I think you own a bmw e46 and using pibus :). I heard that there are problems with usb but since your device should be in trunk you dont use usb.

Can you put the log of the errors?

mbt28 avatar Apr 06 '17 10:04 mbt28

Hallo,

right, I'm using pibus in my E38 :)

And yes, yet i did not use USB to connect to the phone just bluetooth. USB sticks with media work fine.

Now i tested connecting phone via usb to raspberry. An from time to time i get a popup on the phone, that there is a connection error and files cannot be read by the host (rasp).

I'll post some errors later.

So far i compiled and installed also QT5.8.0 . Don't know how necessary it is for this version of headunit ?

Vitalic66 avatar Apr 06 '17 11:04 Vitalic66

The errors and the detailed procedure how you made it is important. I tried his work on X86 computer and was working quite fine.

mbt28 avatar Apr 06 '17 11:04 mbt28

  1. installed latest Raspbian Jessy
  2. compiled and installed QT5.8
  3. installed gstreamer 0.10 and also 1.0
  4. installed SDL
  5. downloaded and compiled v0.94 from here

This is what i get when i start headunit

(headunit:1259): GLib-GObject-WARNING **: g_object_set_valist: object class 'GstAppSink' has no property named '\xe8x\x8b\u0002\u0001' iusb_vendor_get vendor: 0x1532 device: 0x2a0b6b8 iusb_vendor_get vendor: 0x04e8 device: 0x2a0b640 iusb_vendor_get vendor: 0x0424 device: 0x2a0af00 iusb_vendor_get vendor: 0x0424 device: 0x2a0b5c8 iusb_vendor_get vendor: 0x1d6b device: 0x2a0ae88 Device found iusb_best_vendor: 0x04e8 iusb_best_device: 0x2a0b640 iusb_best_man: "" iusb_best_pro: "" SHAI1 iusb_best_product id 26720 iusb_vendor_get vendor: 0x1532 device: 0x2a0b5e8 iusb_vendor_get vendor: 0x18d1 device: 0x2a0b570 iusb_vendor_get vendor: 0x0424 device: 0x2a0ae30 iusb_vendor_get vendor: 0x0424 device: 0x2a0b4f8 iusb_vendor_get vendor: 0x1d6b device: 0x2a0adb8 Device found iusb_best_vendor: 0x18d1 iusb_best_device: 0x2a0b570 iusb_best_man: "" iusb_best_pro: "" SHAI1 iusb_best_product id 11521 Starting Android Auto... Error Could not initialise Xv output

(headunit:1259): GStreamer-CRITICAL **: Trying to dispose element queue0, but it is in READY instead of the NULL state. You need to explicitly set elements to the NULL state before dropping the final reference, to allow them to clean up. This problem may also be caused by a refcounting bug in the application or some element.

(headunit:1259): GStreamer-CRITICAL **: Trying to dispose element capsfilter2, but it is in READY instead of the NULL state. You need to explicitly set elements to the NULL state before dropping the final reference, to allow them to clean up. This problem may also be caused by a refcounting bug in the application or some element.

(headunit:1259): GStreamer-CRITICAL **: Trying to dispose element audioconvert0, but it is in READY instead of the NULL state. You need to explicitly set elements to the NULL state before dropping the final reference, to allow them to clean up. This problem may also be caused by a refcounting bug in the application or some element.

here we are STATUS:Press Back or Home button to close

Vitalic66 avatar Apr 06 '17 12:04 Vitalic66

Looks like you were right with android phone and raspberry pi usb connection.

I was able to compile a version of headunit made by Matt Porter: https://github.com/konsulko/headunit/tree/WIP/headunit-gst

But when i start it, the screnn shows "Error occured with Android Auto, Communication error 7, The software of your car did not fullfill the securitycheck...."

I don't know if this is an usb problem between AA and Raspberry or if the AA version i have installed on my phone is too new.

Vitalic66 avatar Apr 09 '17 16:04 Vitalic66

Hallo again,

i was able to compile to headunit-master, but when is start it on the Raspberry i get:

headunit: pcm.c:679: snd_pcm_stream: Assertation 'pcm' failed.

and

/home/pi/headunit-master/common/Audio.cpp:200: MicInput : Playback open error

I guess there must be a mic connected to the Pi and setup in alsa ?

Vitalic66 avatar Apr 13 '17 07:04 Vitalic66

@Vitalic66 I'm working on a project that relies on the code here for android auto and runs just fine on the RPI. Check it out here : https://github.com/viktorgino/headunit-desktop You can get the building instructions here : http://headunit.viktorgino.me/

viktorgino avatar Apr 19 '17 15:04 viktorgino

Wanted to chime in and say I had it running on a Pi with stock Raspbian, albeit terribly. To fix the PCM error, you have to launch pulseaudio with pulseaudio -D. To fix the Xv initialization error, I changed the sink from xvimagesink to fbdevsink. This allows the program to compile and show the Android Auto window, but it's not fully compatible with the current code and gets really buggy as the SDL touch window and video feed are not in sync. Code could be rewritten to support a Pi-compatible sink such as eglglesink or autovideosink.

reduxd avatar Jun 09 '17 01:06 reduxd

Hi, I am developing project called OpenAuto. It is AndroidAuto headunit emulator optimized to run on Raspberry PI 3 even at 1080p@60. It supports all features of AndroidAuto like touch, buttons, audio playback, voice command and bluetooth. Take a look at https://github.com/f1xpl/openauto . At the project wiki you will find instructions how to build OpenAuto for the Raspberry PI 3.

f1xpl avatar Feb 14 '18 11:02 f1xpl