oandrew / ipod

ipod implements ipod accessory protocol and a client for https://github.com/oandrew/ipod-gadget
MIT License
71 stars 21 forks source link

Car doesn't recognise device as an iPod #2

Open gerryd opened 6 years ago

gerryd commented 6 years ago

Hi,

First of all, many thanks for this project. It is exactly what I was looking for, and I'm very excited to get it to work!

I have an OrangePi Zero Plus 2 H5 and I'm running Armbian on it. I have compiled the ipod-gadget module and loaded it, which seems to work fine (after I prevented the g_serial module from being loaded, which is in Armbian's /etc/modules by default). I have the /dev/iap0 device and the ALSA iPodUSB card is there.

Now, when I plug the OrangePi in my car (a Volvo V60 MY2015 with Sensus Connect), it sees that something is happening. The screen switches briefly (~.5s) from "Connect iPod" to "Reading iPod" and then says "iPod unreadable".

When I plug in the OrangePi in my laptop, it sees it as an iPhone 4 and I can play audio from it, so I'm guessing my car expects some or other magic IAP command, but I have no idea where to start. The ipod command doesn't say anything, even when running with -d and the tracefile is empty.

Any pointers?

oandrew commented 5 years ago

Try with different product_id and/or swap_config=1 i.e. insmod g_ipod_gadget.ko [swap_configs=0] [product_id=0x1297] More info here: https://github.com/oandrew/ipod-gadget

bbfelts commented 4 years ago

I had to use swap_config=1 to get mine recognized on a Raspberry Pi Zero W.