Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raspberry PI #66

Open
Vitalic66 opened this issue Apr 6, 2017 · 9 comments
Open

Raspberry PI #66

Vitalic66 opened this issue Apr 6, 2017 · 9 comments

Comments

@Vitalic66
Copy link

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

@mbt28
Copy link

mbt28 commented Apr 6, 2017

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?

@Vitalic66
Copy link
Author

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 ?

@mbt28
Copy link

mbt28 commented Apr 6, 2017

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

@Vitalic66
Copy link
Author

Vitalic66 commented Apr 6, 2017

  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
Copy link
Author

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
Copy link
Author

Vitalic66 commented Apr 13, 2017

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 ?

@viktorgino
Copy link

@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/

@reduxd
Copy link

reduxd commented Jun 9, 2017

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.

@f1xpl
Copy link

f1xpl commented Feb 14, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants