yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] spadival:
I have posted the Hyundai cable schematic in the 3rd post. I think it is self explanatory - the circuitry is there to determine whether a USB is connected or the Apple serial + audio cable is connected to tell the "apple device" that a particular type of accessory (determined by value of resistance between ACC-ID and GND) is connected and for the Apple device to activate serial comms.. Since we dont have an apple device at the other end :).. we don't need this circuitry.

So in Hyundai's implementation, the USB D+/D- are also used for Apple serial TX/RX signal.

So all you have to do is cut up a USB cable and connect D+ and D- to TX/RX pyins of a serial to USB converter directly. .. no need for 30 pin apple plug.

http://xdaforums.com/showpost.php?p=39911408&postcount=3

If you are using a BT chip HC05 or FTD311D chip, you can power it using the USB +5v and USB ground.. if you use PL chip, I think you still need to connect USB ground to GND on the chip (to have a common ground). Under no circumstances, should you connect USB 5V to VCC of a PL2302 chip.. unless you like to see a puff of smoke.
[Android Apps and Games] fr4nk1yn:
I'm not sure of what the car is doing with the data wiring through the circuit. After reading up on the ACC-ID wire, which should be going to pin 21 of the connector, info suggests the Apple device uses that wire to detect the accessory it's plugged into.

The car obviously does switching as it supports iPods and USB flash drives but the USB mode won't be any use to this project.

Good news, as has already been done, is we can come out the URL converter and go straight into to USB plug.
[Android Apps and Games] rp9:
Hi fr4nk1yn. Here is explanation what circuit is doing. What I can see on the image that you posted is that there are 2 voltage dividers (one is on R1-R5 and the second is on R2-R6). What you marked as GRD (left pin of R4) in my opinion is a mistake as it would not have sense. It is probably connected to 3,3V source. Why? Because if it is connected to 3,3V it will give us almost 3,3V on D+ (R1=85, R5=51K) and 1,717V on D- (R2=47K, R6=51K). It is needed simply to inform iPod that it can drain amps from this accessory. In other words it simply enables charging.

Now about transistor. Again, assuming that left pin of R4 is 3,3V, transistor together with R4 and R7 is simply an NPN negative gate that when powered shorts upper pin of R3 to the ground. This will inform iPod through Accessory-ID pin car link interface is connected and iPod can communicate through serial interface.

All the above is only needed for iPod to enable charging and to enable serial communication (as spadival mentioned in 3rd post). You can simply skip it if you want to use PodMode. And yes, I would guess, that there is some "smart" logic inside your usb port that can recognize when real USB device is connected and when USB port is used for serial communication.
[Android Apps and Games] spadival:
I am attaching the layout and gerber files for PCB of an FT311D based adaptor that user Frank built for me.

PS: Thanks to user Chris who donated $50. Appreciate it :)
[Android Apps and Games] DHM47:
This is very good to hear, so where can I get the 3.3V for the PL chip ?

(and can you kindly check the attached schematic I modified , is it correct? Only thing left is the 3.3V cable )
[Android Apps and Games] fr4nk1yn:
Thanks guys. Look like we were all posting at the same time.

Anxiousness got the best of me. I ordered a couple of these: http://goo.gl/LYoHBf but this time around I'm too excited to wait!
[Android Apps and Games] peerota:
vote

this good.
[Android Apps and Games] spadival:
Looks fine. Why do you need the 3.3v? This is normally used by the accessory to detected that an Apple device is connected. As you can see, Hyundai audio system does not use the detection part. PL chip supplies the 3.3v NOT consumes it !! PL chip supply comes from the USB end.

Note that PL chip is not ideal because your device will not be charged unless it supports OTG. Even then, some devices (like Samsung) need a specific resistance value between the OTG pin and GND in order for it to start charging.

I would say go with HC05 BT solution (since Hyundai cars don't need 3.3v ).
[Android Apps and Games] DHM47:
Oh, I thought it consumed the 3.3v. And the ground should be connected?

Well, I'm using a Galaxy S4 and I think it supports OTG and it's running CM12.1 so hopefully the ROM is not checking for the resistance.

As for the Bluetooth solution, it look more complicated. So I went with the PL chip for now. If I start using it daily I'll switch to the Bluetooth chip.

Two question about the Bluetooth:

1-Can I use this to call using the car speakers?

2-My friend's stereo (Accent the same as yours) has Bluetooth, what would be the difference between the built-in Bluetooth and the HC05 chip ?

Thank you again for the guide and app. And thank you for answering my questions.
[Android Apps and Games] NONAME11:
So i managed to make it connect to a 2005 BMW. Instead of id3 it schows PowerAmp advance mode and instead of back, next it pauses the song.
[Android Apps and Games] davelangmaid:
Thank you for all your work on podmode, I am trying to connect it to vw ipod dock in my audi but my dock doesn't have any connections to pins 1 16 18 or 23 it has a 12v firewire serial, enable and serial gnd instead, pins 11 19 20 21 29 30.
[Android Apps and Games] rp9:
After months of quietness this thread is hot again. This is great!

Spadival, I don't know what I did to gain your hostility - my intentions were sincere. You should really not judge people so easily.

I know they are identical (at least UART part). I just expected that even if you tested only with FT311D you also added FT312D to the device list so that it is also recognized by your app. This is really normal that if someone develops an application then someone else can find a bug. I found a bug in "documentation" and just showed it to the developer - nothing to be ashamed of. I thought this information could be useful to others so I did it publicly. If you think I want everything on the plate, read further. And btw, I gave you 4 stars, because I can appreciate someone's work...

Adding the device to the list would not solve my problem. As I posted earlier I connected PodMode to my car using PL2303 and it turned out that they (car and PodMode) do not understand each other. So I wrote my own application that, well, has (almost) the same functionality as PodMode (at least from user perspective), but definitely supports more iPod commands, and has some other features like downloading colour images from car or easy to use debug sharing. This application (PodEmu, like iPod Emulation) is Open Source from day one and is available on github: https://github.com/xtensa/PodEmu/

The application is available on the Market or for manual installation from the GitHub here: https://github.com/xtensa/PodEmu/blob/master/app/app-release.apk.

[YOUTUBE]zXcBL5EdCGY[/YOUTUBE]​

...So the community have two alternative applications now :) PodEmu is already fully functional and stable, but there are still several TODOs. Anyway, I encourage everybody who is interested in this topic to download and to test PodEmu. You can easily collect the debug and send it to me so that I can further improve PodEmu. Also, I am open to any constructive critics :) (probably I need to create separate thread for this).

More than this, for testing purposes I also developed 2 CLI tools. One (console) could be used to communicate with iPod or car/dock in human-friendly way. The second is simply MITM tool that dumps the communication between iPod and car/dock for further analysis. All is available here: https://github.com/xtensa/oap Maybe someone will make use of it.

I cannot wait for you to publish the source code of PodMode! Even if not for me - I still will look at it and maybe reuse in PodEmu!
[Android Apps and Games] spadival:
I am not hostile..far from it. I was merely responding to what appeared to be a rant (complete with CAPITAL and bolded letters) :)..

Your app looks great! Unfortunately, as I said before, I no longer have a car that has the serial interface to test it out.

I have already posted the PCB schematic for a FT311D interface. PodMode Source code is coming.. I need to find some time to restore my mac and then upload the source.

Do you have any linux kernel programming skills? I have an idea on how to implement the iPod USB interface. However, I have absolutely no time to work on it.
[Android Apps and Games] fr4nk1yn:
As on par for me I'm having a weighed issue.

When the USB is connected to the car the sound from the aux becomes attenuated and staticy.

Originally it worked fine.The problem happened after I changed the USB plug in the car side.

Changing back to the car's iPod plug, from a regular USB plug, didn't fix it.

Data wires are not reversed. Reversing them gives a USB error.
[Android Apps and Games] iCstyle:
If I set Google Play Music as default app, and connect with my car radio (AiR / mode 4), will I be able to browse with my car radio through my Google Play Music playlists? Or does this only work with local music?
[Android Apps and Games] rp9:
As far as I noticed (spadival, please correct me if I am wrong) PodMode does not support browsing albums or playlists from the car for either application. The same is true for PodEmu. However, for PodEmu I am planning to implement it, but the behaviour will depend on the application.

BTW, for discussin PodEmu functionality and "wishlist" I created new thread.
[Android Apps and Games] Hafnernuss:
Hi!

Is there any update for aftermarket radios that come with Ipod support via standard usb cable?

That would be great... Great job by the way!
[Android Apps and Games] andxit:
does it works with galaxy s6 ?
[Android Apps and Games] fsonnlei:
Hi spadival.

Thank you for such a great app.

Any update on the release of the source code?

Thanks again.

fsonnlei
[Android Apps and Games] spadival:
Sorry for the lengthy delay. I have finally moved the code across to my Linux system last weekend. I need to put the GPL boiler plate before uploading. Should be done this week.
[Android Apps and Games] spadival:
As promised, source code is available here

https://github.com/spadival/PodMode
[Android Apps and Games] fsonnlei:
Excellent news! Thank you.
[Android Apps and Games] spadival:
You are welcome. Some quick suggestion on some immediate improvements that can be made. I never got around to make them once the APIs became available.

* Replace the Accessibility API hacky get notification method with NotificationListenerService

* Replace the Play/Pause/Stop etc implementation via ACTION_MEDIA_BUTTON with RemoteController APIs

* Replace the hacky way of getting currently playing song metadata from notifications with RemoteController API.

This would of course mean lower versions of Android will not be supported.
[Android Apps and Games] tenerif88:
Hello I would like to understand this better ipod vs Android, I explain my application. I use tablet Nexus 7 2013 flo in the car, for quality audio issues I would like to replace radio of good quality alpine ida-x305 and connect it to the nexus, tell me via aux ok, but from what I understand as Alpine is ready ipod I could even check it all with this app. my doubt and entrance ipod of the alpine and a standard USB cable with a detachable adapter for ipod usb to ipod so how should I do? also the main purpose would be to have direct digital connection in the passage of the audio via USB or nexus ----> Alpine-----> Amplifier would function as dac, using aux in the passage would nexus ---> internal dac nexus to analogic jack 3.5 -----> Alpine dac ---> analogic exit rCA to amp resulting in degradation think music thanks to those who can provide help and opportunity to better understand how to do.
[Android Apps and Games] branded:
Updated parts list/suppliers?

Hello!

I'm excited to get cooking on this, but I'm having a lot of trouble finding a 30 pin breakout board.

Is it possible to use another breakout board? Sorry if this was already answered.

If not, is there a supplier you are familiar with that still stocks the 30 pin breakout boards?

Thanks,

Matt
[Android Apps and Games] macasch:
Looks very usefull gonna have to try it
[Android Apps and Games] GnatGoSplat:
Cheapest way to go is probably to modify an iPod dock extension cable. You can get those for under $2.20 shipped from eBay.
[Android Apps and Games] branded:
Thanks for your reply!

I actually have an Infiniti FX35 2011 (which means I have no RCA [or 3.5mm stereo] aux input, unfortunately), but I do have a straight USB input that "speaks iOS."

Given that I need a USB out, I was figuring that I would be stuck stringing together the 30-pin dock connector with a USB out. Is it possible to avoid making that jump by directly connecting the output of the chip to the USB pins? If so, has this been done/speced?

Thank you!
[Android Apps and Games] GnatGoSplat:
Unfortunately, this app and the similar PodEmu app won't work for you. They both work by simulating iPod serial communication, not USB.

From the OP:

If there were an app that could emulate an iPod/iPhone USB connection, you would only need to use your standard USB charging cable to plug it into the car stereo.
[Android Apps and Games] branded:
Thank you for the conclusive info. I'll give up for now or try to find another way.
[Android Apps and Games] rasscalno1:
First off thank thee vey much for an amazing app :)

My aim is to have a OEM install wired in behind the stereo with podmode sharing music from an HDD connected via OTG + phone charging.. (So I'm not asking alot)

Devices/specs

Hyundai Santa Fe 2011

HC-05 Bluetooth module (configured)

Sony Xperia m2 & OTG cable with HDD connected (podmode installed tested... All gravy)

Dual USB port fitted inside dash storage (thinking of tapping into cigarette port)

ebay.co.uk/itm/252445461604

Dual power USB to micro USB connected to the above port

ebay.co.uk/itm/162110351482

OTG cable plugged into phone & HDD with the above USB powering both devices

Here is where I run into problems.. The phone will only charge if I plug it in last which isn't something I wanted to keep doing, so after a lot of head scratching I thought of this

ebay.co.uk/itm/252340218311

But not being a qualified sparky I'm not sure if the output amperage would kill my phone.

I know all of the above sounds overkill but it would really suit my needs because the phone would connect to my wifi when parked enabling me to transfer new music without taking the HDD in the house, something I wouldn't be able to do if I just shelled out £200 for a new stereo.

Would really appreciate your comments & thoughts.

Regards

Dave
[Android Apps and Games] fr4nk1yn:
Amperage, as long as its wired correctly won't kill your device.

I have a 10amp DC/DC converter wired to my car's tablet and it's fine. In fact it doesn't even charge sometimes. The phone will only pull what it needs.
[Android Apps and Games] Edvard_Greig:
How would this work with something like the CarPro or Bovee Viseeo?
[Android Apps and Games] meat juice:
I saw you mentioned that you can make ones and sell the Hardware part right? because unfortunately, I have zero knowledge about hardware, just software.

Selling the cable with the components would be much of help.

Just to make sure, this will allow factory radio car to use the USB for the IPod/IPhone to be played with Android device ?

looking forward and wish you all the best in your life as you welling to help others. May God bless you.
[Android Apps and Games] Seadee:
is it a steadfast requirement that a usb and an audio jack be used, or did i miss something and you can do it all over bluetooth?
[Android Apps and Games] Bmos91:
Ah bloody #$@$. I was jumping up and down when I stumbled across this only to be foiled by fact that my car has the USB to Ipod interface.
[Android Apps and Games] riiw88d:
So yeah, anyone making these cables? Not sure I want to risk doing something wrong here. does the app still work with android 6?
[Android Apps and Games] arturkin:
Same here too. Banging my head against the wall for weeks :(
[Android Apps and Games] carmeloamg:
My experience

I manage to get the app working in my 2009 Hyundai i30 using:

1. FTDI FT232RL and a HTC One (m7)

2. HC-05 and Huawei Honor 8.

First to say is that Honor 8 is not compatible with FT232RL so using bluetooth is compulsory (other RS232 solutions have not been tested by me). In other hand, the cable setup for this car (and probably every Hyundai/Kia compatible) can be done by simply connecting:

USB Vcc --> FT232RL Vcc

USB D+ --> FT232RL RXD

USB D- --> FT232RL TXD

USB Gnd --> FT232RL Gnd

IDEM connection for HC-05 bluetooth adaptor.

Using the app I found that song name and artist is only displayed when PodMode is selected as the advanced mode app. Setting another app as advanced mode app works also but the song information is not shown. I also found interesting that Parrot CK3100 bluetooth handsfree is connected simultaneously and can work with PodMode together without any conflict. I've attached some pics and videos.

[YOUTUBE]https://www.youtube.com/watch?v=6dNKd5EcKjA[/YOUTUBE]

https://www.youtube.com/watch?v=6dNKd5EcKjA

[YOUTUBE]https://www.youtube.com/watch?v=ac3GEuN06lE[/YOUTUBE]

https://www.youtube.com/watch?v=ac3GEuN06lE

Thanks [MENTION=245233]spadival[/MENTION] for your amazing work.
[Android Apps and Games] carmeloamg:
It is true that the volume level is lower in iPod mode than in Aux mode. Also it sounds worst if I pump up the phone volume to the top. Keeping the phone volume at 70% o 80% sounds nice (at least I don't feel it poorer but I'm not an audiophile).

So the only difference for me between using iPod mode and Aux mode is that I have to set a higher volume in the head unit to hear the same. Not a problem as long speakers (specially bass) get overloaded about 25/32 volume level for Aux mode and about max volume level (32/32) using iPod mode.

I've always used the mass storage usb mode for the music and I've been happy until a few month ago that I became Spotify Premium subscriber. I've never considered to change the head unit and all I wanted from PodMode was to be able to use the steering wheel buttons with spotify that probably won't work in any new head unit, only for the original or similar. For me is not only about money is that I'm simply happy with the radio (and with the money on my wallet).
[Android Apps and Games] 6stringaddict:
Software Implementation of Apple Accessory Protocol

I came across this project in which the developer implemented the Apple Accessory Protocol via software. Could this code be utilized to emulate the IPod USB protocol in this app?

beagleboard(dot)org/project/beaglepod/
[Android Apps and Games] spadival:
This app is already implementing the same thing as that project.. Maybe you didn't notice the "USB->TTL cable" mentioned in the project you linked.
[Android Apps and Games] Pondy:
HI, I've had trouble getting hold of the PodBreakout board as used in the wiring diagram, so I ended up ordering some sacrificial iPod extension leads (see attached). Will these still work? I notice this one in particular i missing some pin terminals (none which are used in the wiring diagram) eg pins 5 and 6. Should this still work?

Also I noticed in the wiring diagram that some of the ports of the circuit board are red and some are green but not connected. Do the green ones need to be connected to anything - eg port 20 and 29
[Android Apps and Games] AlexanderBlaQ:
ok so I'm not really up for the whole mod soldering and everything dip curious if this item would do the trick..link below

https://m.miniinthebox.com/30pin-fe...7QdCbXBKa78yS1QQ2PSBUxIOh1NCgbJMruhoCkSDw_wcB
[Android Apps and Games] CCacerola:
Hi everyone

I made the Bluetooth configuration and it work great, i have some issues try to connect to the FTDI adapter but was only a bad cable connections.

Now i have que next question: the bluetooth HC05 works OK but only can control the track and on screen information, but no wireless music. I have another cheap Bluetooth "XS3868 Bluetooth Stereo Audio Module" from aliexpress and work great, it come with everything to start listen music, just soldering some pins to the 3.5 jack and powered by USB and it work great, now, there is any way to mix this two bluetooth "HC05 + XS3868"??

The XS3869 have 2 pins UART_TX and UART_RX if i change the configuration like the name and the baud rate like it says in the first post, can this work with the PodMode app? Music Streaming, On Screen info and wheel control?

I have an 2013 Elantra Coupe
[Android Apps and Games] rp9:
CCacerola, as far as I know this UART port in this module is used only for controlling the device, but cannot be used for communication over bluetooth. In other words it does not have SPP capabilities. So you will have to pair with both, XS3869 and with HC-05.
[Android Apps and Games] tenerif88:
can i ask for info if someone is still active here? i would like to connect my nexus 2013 to my ipad in my alps idax305s i only initiate that autoradio recognizes nexus and via usb invites digital music data so that the alpine dac decoding them and playing them and not the nexus possible in some way?
[Android Apps and Games] jcsantos26:
Anybody selling a cable :)
[Android Apps and Games] Mc corral:
Does this work on Bluetooth?
[Android Apps and Games] jokerigno:
Does this solution auto power on the dock?

I want to use it with my old smartphone who has running a multiroom client on it (Snapchat).

The idea is that my old Logitech anyfi will auto power up and sending music from my mopidy server.

Inviato dal mio MI 6 utilizzando Tapatalk
[Android Apps and Games] theandre:
I think this entire project is obsolete because there is a commercial product (uses Open Accessory 2.0 API) that makes Android appear as iPod for older cars:

https://gromaudio.com/store/accessories/smart_android_usb_typec_car_converter.html
[Android Apps and Games] CCacerola:
I found this other project called "PodEmu" in the play store, you can use the HC05 + XS3868 for Streaming audio and Track control, all wireless, this maybe is the solution.
[Android Apps and Games] eduardobuenof:
Don' work with Nissan Sentra

I tried this with my Nissan Sentra 2014, and it did not work!

In the PodEmu app shows:

Serial Port: Connected

Dock: Disconnected

Is there a table of compatible Docks?
[Android Apps and Games] Quadgnim:
I just stumbled upon this, and was wondering. I have an IPOD dock connector in my car, and I bought a bluetooth receiver for it, so I have bluetooth to ipod dock in my car. If I use this software on my android and connect over bluetooth, should I still need the crazy custom wiring, or is that only if I'm connecting over a physical cable?
[Android Apps and Games] pee-wee:
I believe this for wire connection
[Android Apps and Games] theballo:
I have a dumb question: is there an app that simulates an iPod for head units which only communicate to the iPod via a USB port? My old head unit does this with my 5G iPod. I don't see why I'd need to hobble together a 30pin port considering it ultimately uses USB only.
[Android Apps and Games] rp9:
What you old head unit exactly does? Simulates iPod? I don't think so. You are connecting your iPod 5G to your head unit, so head unit is an accessory. Regarding your initial question, yes, technically it is possible, but I never heard about such app.
[Android Apps and Games] theballo:
I don't know what you mean by "What you old head unit exactly does?" Perhaps English isn't your first language.

Anyway, the head unit refers to a car's stereo, so no, it does not "Simulates iPod" (again, I don't necessarily know what you mean here).

When I plug my iPod into my head unit's USB port, the head unit is in control. The head unit can display all songs by artist or whatever and crudely behaves like an iPod (although not as well).

The head unit is NOT controlled by the iPod except if you're playing a song and plug in the unit, in which case the head unit plays the song from the point that the iPod is connected. The iPod cannot be used while connected.