yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Carpet-s:
Hello. It has been a while since someone someone has posted here. But I must ask the void for help in my time of need. I'm a CS guy that is rather new to electronics.

All I want to do is use the first, most simple method of setting up PodEmu with a physical connection. An adapter to go from my Android 12 Motorola phone to that funny looking iPod port in my 2010 Nissan Sentra. So, I stripped an aux cable, ordered a 30-pin breakout board from Elab-Bay, and wired everything up on a breadboard I had lying around. Then, I purchased this board which is advertised as PL2303. But, I would later discover that this was actually a PL2303GS. I know, I must be freaking bald to not notice that but I hoped it would still work.

After countless tests, I cannot get the PodEmu app to recognize that a PL2303 was connected. I wasn't sure if it was my version of Android, or the fact that I have the wrong chip here that was causing the issue. I tried it in my car and it still said disconnected despite the board appearing to receive data from RXD.

Can someone please tell me these things:

1. Will the PodEmu show that it is connected to a UART board without the UART board being connected to anything on the other side? Docs don't really say

2. Is it the PL2303GSs fault that I am unable to use PodEmu? Is it a counterfeit or just not compatible?

3. What kind of PL2303 should I get? I can't find any online that are just labeled PL2303.

4. Should I even bother with PL2303?

I'll be very pleased if anyone sees this post. Please ask me any questions that will help with my problems. Thank you
[Android Apps and Games] salutka:
Try the FT232R, this one worked for me. Don't forget to set the jumper to 3.3V. You will also need a mini-usb cable and OTG adapter.
[Android Apps and Games] Carpet-s:
Y'know what? I just got around to testing this out and my phone was able to recognize it when I hit Start SRVC!

Now, I'm just having a problem getting my car to recognize it. When I plug it in to my 2010 Nissan Sentra's iPod port and press the iPod button on the dash, I just get a message saying "no ipod connect". I've tried changing the baud rate to every available setting, but still nothing. My only thought is that I must have the pinout wrong somehow. I'd be happy to post pictures of my crammed breadboard if someone can help, or if you have questions that could narrow it down it'd be my pleasure to answer.

I believe that the issue is with the power pin. I did switch the jumper to 3.3V on the board, but I'm limited with the resistors and diodes I have on hand for the wired setup. Even if I directly connect the VCC to pin 18, nothing changes. I don't know what I'm doing!!
[Android Apps and Games] fr4nk1yn:
No audio is sent by usb. It's still carried by audio cable.

Even if you car supports the iPod cable you'll need a USB to serial adapter. Makes it a whole lot easier though.
[Android Apps and Games] hrushipatil:
Thanks. Can you please elaborate? Any links that I can refer to?
[Android Apps and Games] rp9:
Hrushipatil, I suggest to read original thread by spadival (you will find the link in the first post of this thread) - the answers for your questions are in the first couple of posts. But generally, if the cable you use to connect ipod to the car is the same you use to connect ipod to you computer, this app will not work for you.
[Android Apps and Games] scottial:
Usb Car Cable

Hi! What is the cable to connect the phone directly on iPod-enabled USB car port?
[Android Apps and Games] rp9:
Hi scottial. Please read the question from hrushipatial and the responses - it is explained here. Most probably this app will not work with your car.
[Android Apps and Games] fr4nk1yn:
Any news?
[Android Apps and Games] rp9:
Yea, there are some news, but no update to the app itself yet :) First of all there were some requests to add more apps to be supported, which to be honest is the minor change (and not for all app is possible). The bigger change is - I decided to implement built-in media player. This is the only way to add support for browsing through artists, albums etc directly from car or dock. As you can imagine for such change I had to refactor significant piece of the code. For now I prepared the app for embedded player support and the app is in "test phase". After I test it thoroughly, I will publish the update. The next step will be to implement local and Spotify players (Spotify player will require login of course). Don't expect sophisticated UI though, the player is supposed to be controlled using the dock.

Unfortunately right now I have much less time for this project due to some private reasons. However, the work is progressing, even though not so fast as in the beginning.
[Android Apps and Games] fsonnlei:
First of all thank you for a great app!!!

I've a 2012 hyundai azera and an lg g4.

On the car I can see the album and track info, but I've a problem when trying to skip forward to the next song: the music app just come back to the previous song. It appears as the music app (spotify, neutron, etc.) just sent a 2 song playlist: the app is playing song A, press NEXT and it plays song B, press NEXT and it plays song A, press NEXT and it plays song B.

If in podemu or spotify I press NEXT it plays song C.

In other words:

- from podemu I can skip forward or backward a song

- from the music app is the same

- from the steering wheel or Radio controls I can not: I'm stuck in a "2 songs playlist" (song A, song B, song A, song B)

I'm connecting the phone with the car with a custom made cable (as per the instructions) using a cp2102 or pl2303 usb to ttl adapter. With both the behavior is the same.

I hope you can take a look at this issue. Attached is the debug log.

On the other hand I just tested podmod and it works when skipping forward or backwards but it doesn't display the song or album info.

Thank you very much.
[Android Apps and Games] rp9:
Yesterday I published updated version of PodEmu: 1.19. The following has been changed/improved:

Core engine rewritten to support future built in players

Support for applications added: TIDAL, PowerAmp, MixZing

When ListSize information is provided in the broadcast (supported by some apps) PodEmu will emulate 1 album that will be browsable from docking station

several bug fixed and stability improved

fsonnlei, thanks for feedback, it was helpful. Please checkout new version.

Additionally I received several request to support application X or application Y. I tested PodEmu with all of them and created Suported Application List table on the project page on GitHub. I tried to explain here why some apps work better with PodEmu then the others, and why some apps even don't appear on the list. I encourage you to read it for better understanding of PodEmu. So far, recommended apps for PodEmu which work the best are MixZing, PowerAmp and Google Play Music.
[Android Apps and Games] Tung_meister:
where can I source the female 30 pin connector? and could the interface charge the phone?
[Android Apps and Games] rp9:
I simply bought 30pin to lightning adapter and repurposed it :), sth like this: http://www.macworld.com/article/2012137/hands-on-with-apples-lightning-to-30-pin-adapters.html. However, this is a "hard way" although very cheap. A lot of precision soldering is required to connect to all of these tiny pins that you need (lightning cable uses different pins). However, you can also search google for available offers (I should admit, they are rare) using this keyword: "ipod 30 pin male connector". You will find offers like this: http://www.aliexpress.com/item/orig...32377337840.html?spm=2114.40010208.4.8.eMP7Dk. I hope it is helpful.
[Android Apps and Games] illuminerdi:
My car supports connecting an iPod via standard USB, but PodEmu never recognizes when I connect my phone to the car. The option to start the Service remains disabled. My phone is in MTP mode and my car tries to read the MP3s off my phone, but this is not what I want, because I can't play Google Music or Pandora this way, which is what I'm trying to solve.

Do I still need to make some kind of special USB cable? I assumed that since my car had a USB port and not a 30 pin iPod cable coming out of it (like my brother's Scion, for example) that I could just bypass the need for an adapter.

My phone is a OnePlus One running Android 5.1 (not rooted), and my car is a 2012 Chevy Volt. I'm willing to answer any questions if it helps to solve this. Am I just misunderstanding the use for this app? I really hope I can get it working because this is EXACTLY what I need since the stupid GM engineers didn't put A2DP into the car's bluetooth connection despite it being a 2012 car, and I really would love a way to control the music from my steering wheel controls.

Thank you so much, rp9, for all your hard work on this app - please let me know if I can help expand this any further or test any fixes to this problem!
[Android Apps and Games] rp9:
illuminerdi, PodEmu does not support iPod interface over USB (only through 30pin connector), so unfortunately it will not work with your car :(.
[Android Apps and Games] branded:
I am in the same situation. I'm curious if anyone has tried anything interesting here?

3.5mm out + USB out => custom cable 30pin => 30pin-to-usb => car usb input

I find it odd that the car system itself would be backward compatible with 30-pins and not support usb input in some way, but then again... I did find some reference to additional chipsets of 30-pin to USB cables, etc getting in the way.
[Android Apps and Games] RaulGuichard:
[MENTION=1118153]fr4nk1yn[/MENTION] How do you manage to get audio to get audio if you just solder the rx and tx from the serial interface to the data pins on the USB cable?
[Android Apps and Games] fr4nk1yn:
You still need the audio aux cable.
[Android Apps and Games] RaulGuichard:
[MENTION=1118153]fr4nk1yn[/MENTION] Okay, but how may I join the audio with the USB cable. I mean, if I the USB to Serial adapter and the 3.5mm audio cable connected and skip the 30-pin connector and just open a regular usb connector to connect the serial output of the the Serial adapter to the data pins on the USB cable, where do the audio cables should go?

I guess I'm missing something there or misunderstanding something, Thanks in advance.
[Android Apps and Games] rafpac:
Just wondering, instead of making the cable is the dockboss + compatible? Here's a link:

http://www.theregister.co.uk/2011/11/21/geek_treat_of_the_week_dockboss_plus/

It would be so much more convenient than making a cable.
[Android Apps and Games] melon96:
Hi, I tried podmode in the past and it was a little buggy. I made a new cable and seems to work fine with podemu. I will make a new adapter inside a box with female connectors.

The bad is that I still can't charge the phone with the adapter. Yes, +5v from the ipod connector is connected.
[Android Apps and Games] rp9:
Have a look at this thread: http://electronics.stackexchange.co...-host-and-be-charged-simultaneously-through-a If you want to experiment, it may help. However, I still think that it depends on particular model of the phone/tablet.
[Android Apps and Games] GnatGoSplat:
I can't get PodEmu to work on a Motorola RAZR M XT907. Worked fine from an LG G2, but I prefer the XT907 because it's small, good for keeping in a car, and has MicroSD for expansion. I had sent logs awhile back (June), just wondering if they give any clues as to why XT907 doesn't work. I could never get this phone to work with PodMode either, but it does support USB host (works with USB sound "cards").

Are there any other small MicroSD capable phones that already work with PodEmu or PodMode?
[Android Apps and Games] carmeloamg:
First of all thanks for your effort. I've tried both apps and I've found that:

1. My new Honor 8 doesn't support the FT232R adapter so I'm really interested in PodEmu supporting bluetooth adapter. You probably already know that spadival made his source code public (https://github.com/spadival/PodMode) it may help if you decide to implement it. It is also interesting because using bluetooth you still being able to use the usb for charging or whatever (if 3.3v accessory detect is not used by the dock as happens with Hyundai car radios).

2. Using my old HTC One (M7) with CM13.0 the adapter worked but the car (2009 Hyundai i30) radio didn't recognise the "iPod". In other hand, PodMode works so it should not be car side or wiring issue. I'm not developer and don't know the background and workarounds of your app but it seems that PodEmu is expecting a communication starting with "FF 55..." and is receiving "FF FF 55..." so maybe it should be easy to fix.

I tried connecting first to the phone and then to the car and viceversa. Then tried to start the radio iPod mode with PodMode and then switch to PodEmu. It didn't work. The three logs and three pics are attached. I hope it helps to improve your app and make it also work for me.

Regards!
[Android Apps and Games] Bmos91:
Car with 30 pin Ipod connection vs USB/3.5>30 Pin

Can someone help explain exactly what the issue is with cars that have USB/3.5mm Aux input and utilize cable with male 30 pin Ipod connector on one end and male USB/3.5mm on the other?

Intuitively it seems like we should be able to USB male to FT232R to Micro USB to android device (and 3.5mm cable from Android device to Aux in) but obviously missing something in terms of how the signals are interpreted by PodEmu?
[Android Apps and Games] carmeloamg:
Not sure if I understand you. An iPod use 30 pin for several functions. The two that concern us is analog audio output and the metadata and control communication that are the functions that a car radio uses. So what you need from a android device to be dressed up as an iPod is an analog audio output connected to the proper pins of the car radio and a way to use the communication pins for the metadata.

Audio is not a problem as long every phone (nowadays) have an audio jack output that you can be directly connected to the audio pins of the 30 pin iPod socket. The tricky part is to communicate. iPod use serial protocol messages for that purpose and

some

android devices can use serial communication with the help of a usb-to-serial adapter. What PodEmu does is to gather the information from the music player and "translate it into iPod language" to be understood by the car radio and also get the car radio messages that ask the device to reproduce next/previous song and make the phone act in consequence.

USB/3.5mm Aux input is not the point. Most of the newer cars has both usb and aux inputs and some cars have proprietary sockets that need a dongle to convert it into USB/3.5mm/30pin/lightning... The point is how they use those connections.

A car with 3.5mm+USB usually uses the usb for reproduce music from a media storage device and the 3.5mm as an auxiliary input for any device from a 90s walkman to an explosive note 7. The iPod support can be in two ways:

1. The older one and the one we are interested in: USB as serial port and 3.5mm as iPod audio input.

2. The newer: USB as digital audio input and metadata input using a new way to communicate.

So if you connect an iPod/iPhone to your car using ONLY the usb port and it works the app is NOT for you.

If you need a special split cable that make use of both, 3.5mm and USB, this app is for you. Now you could be more confused but I tried.

---------- Post added at 02:05 PM ---------- Previous post was at 02:02 PM ----------

@rp9 I've already received the HC-05 bluetooth-to-serial adapter and it is working perfectly with PodMode. PodMode doesn't support Spotify metadata and PodEmu does but not support HC-05. So if you finally decide to support it using PodMode previous work feel free to directly contact me for testing purposes.
[Android Apps and Games] Bmos91:
:) That's exactly what I was trying to get to. My car uses a cable which splits 30 pin to male USB and 3.5mm with NO conversion. There are other adapters with same physical configuration which already have a UART between the 30pin and USB plug which do not work with my car.

So I should simply be able to plug USB Uart in to car and wire that straight to a male Micro USB to Android device, and line from headphone jack to 3.5 input, correct?
[Android Apps and Games] carmeloamg:
It should work. Serial side of supported serial interface to male USB and plug it into the car. USB side of the supported serial interface to a female USB (to use any cable) or to micro USB and to the phone. Check PodMode OP for more info.

But I'm not there to ensure how your car works so don't blame me if your car or phone is finally not supported. In my case, my car is compatible with PodMode and isn't for PodEmu (a Hyundai i30) and my phone doesn't support FT232RL (a Honor 8). Finally I got working with PodMode and a HC-05 (a Bluetooth to serial adapter that is not compatible with PodEmu). So I bought two adaptors before get it working.
[Android Apps and Games] Bmos91:
No worries, I have the Genesis with Lexicon Tech package and NOTHING is standard :crying:
[Android Apps and Games] carmeloamg:
Check this:

https://xdaforums.com/showpost.php?p=70616757&postcount=344
[Android Apps and Games] 8500:
Do i understand You right, You just soldered GND, RX, TX from the PL2303 to a standard usb male plug with TX, RX reversed? Did You connect +5V from the 2303 board too?

Thx in advance for Your help
[Android Apps and Games] fr4nk1yn:
IIRC that's right. It should pick up it's power from the USB.

I haven't used this in awhile. For some reason play music would complain it couldn't find tracks with the cable
[Android Apps and Games] 8500:
You mean from the OTG (smartphone) side?
[Android Apps and Games] 6stringaddict:
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] rp9:
Hi 6stringaddict. Actually this board is doing exactly what PodEmu is doing and it also uses usb-ttl cable as PodEmu does. So no, it will not help to emulate usb protocol. However, I expect it will be much more easier to emulate USB protocol on beagleboard, rather then on Android.
[Android Apps and Games] Bmos91:
Thanks but completely different system made by Lexicon.
[Android Apps and Games] Pondy:
Hi [MENTION=1795196]rp9[/MENTION], are you still supporting this app? I have an Australian made Ford, with the 30-pin ipod adaptor (non-usb). I've created the cable, but I seem to be stuck here:

Almost like the app isnt recognising my dock. I'm also not able to get the app to write to the debug file - I've tried this on a few phones running different Andoird flavours. Are you able to help out at all?
[Android Apps and Games] rp9:
Hi Pondy. Please check app permissions. It should have permissions granted to access SD card. Otherwise it will not be able to write logs. Does it throw any error when you are enabling logging?

The fact that it recognise serial interface is actually a good sign, you are half way through :) At this stage I can also advice to double check and recheck again wiring connection between serial interface and your car.
[Android Apps and Games] sryu99:
So interesting :)
[Android Apps and Games] Pondy:
Thanks for the reply. I'm putting it down to the 30-pin adapter I have purchased - it was a 4 core charge/sync only. As it is, the audio works fine, but it never seems to recognise that the dock is connected. My car also shows "unsupported" in the track info section.

I've ordered a 16 core cable and waiting on delivery. Once it arrives I'll rewire it all up and see how I go.
[Android Apps and Games] Bmos91:
When connected this way does the analog out feed through the 3.5 plug or audio fed through USB? e.g. my old car required IPod cable with USB and Aux output, both of which had to be connected to car. My new car requires only USB cable and will not accept aux signal while iPod connected via USB. What I REALLY dream of is ability to control android device, output via DAC and THEN have line level from DAC go to car. I realize this is probably a matter of head unit programming but worth an ask ?
[Android Apps and Games] Pondy:
I believe it wont work with USB type connections.
[Android Apps and Games] Pondy:
Hi [MENTION=1795196]rp9[/MENTION],

I'm onto my fifth attempt at a cable now lol. I've tripled checked the connections and they are all as specified in:

https://xdaforums.com/showthread.php?t=2220108

I'm still getting the same result. Serial device detected, but the dock isnt. It auto starts etc when I connect it, the audio is fine.

My head unit shows unsupported.

I sent some logs through. If you can help out I'm willing to send a few beers your way if you have a paypal account.
[Android Apps and Games] rp9:
Hi Pondy, I reviewed the logs and your cable is working - I can see serial communication in the logs. The problem is that PodEmu is not supporting command 0x13 which is used to recognise supported accessory modes, so it does not proceed with the communication. I'll try to fix it when I will find the time (this is the most difficult part unfortunately). And btw, I prefer beers if I visit your place, someday... maybe... :)
[Android Apps and Games] Pondy:
OK so I have forked your code and been playing around with it to get it working with my car, and added in the response to command 0x13 as follows:

case 0x13: // Accessory lingos sent

{

byte msg[] = new byte[3];

msg[0] = 0x02; // ACK

msg[1] = 0x00; // Response lingo

msg[2] = 0x13; // Response command

oap_write_cmd(msg, msg.length, (byte) 0x00);

} break;

It looks like there is an issue with the way the code is handling an extended image message from my head unit. With these errors - it doesn't seem to be handling the extended message bit correctly:

2017-07-02 20:41:31 (052) : PodEmu - Line 1: RAW MSG IN: FF 55 00 01

2017-07-02 20:41:31 (052) : PodEmu - MSG IN | | |

2017-07-02 20:41:31 (053) : PodEmu - Line 1: ERROR: checksum error. Received: 01 Should be: 00

2017-07-02 20:41:31 (055) : PodEmu - Line 1: len=0 cnt=0 : RCV: F3

2017-07-02 20:41:31 (055) : PodEmu - Line 1: ERROR: first byte is not 0xFF. Received 0xF3

2017-07-02 20:41:31 (063) : PodEmu - Line 1: len=0 cnt=0 : RCV: 04

2017-07-02 20:41:31 (069) : PodEmu - Line 1: ERROR: first byte is not 0xFF. Received 0x04

2017-07-02 20:41:31 (070) : PodEmu - Line 1: len=0 cnt=0 : RCV: 00

2017-07-02 20:41:31 (077) : PodEmu - Line 1: ERROR: first byte is not 0xFF. Received 0x00

2017-07-02 20:41:31 (077) : PodEmu - Line 1: len=0 cnt=0 : RCV: 32

2017-07-02 20:41:31 (078) : PodEmu - Line 1: ERROR: first byte is not 0xFF. Received 0x32

2017-07-02 20:41:31 (078) : PodEmu - Line 1: len=0 cnt=0 : RCV: 00

2017-07-02 20:41:31 (079) : PodEmu - Line 1: Extended image message detected!!!

2017-07-02 20:41:31 (080) : PodEmu - Line 1: len=505 cnt=9 : RCV: 01

2017-07-02 20:41:31 (080) : PodEmu - Line 1: len=505 cnt=10 : RCV: FF

2017-07-02 20:41:31 (081) : PodEmu - Line 1: len=505 cnt=11 : RCV: FF

2017-07-02 20:41:31 (082) : PodEmu - Line 1: len=505 cnt=12 : RCV: FF

2017-07-02 20:41:31 (083) : PodEmu - Line 1: len=505 cnt=13 : RCV: FF

2017-07-02 20:41:31 (084) : PodEmu - Line 1: len=505 cnt=14 : RCV: FF

2017-07-02 20:41:31 (084) : PodEmu - Line 1: len=505 cnt=15 : RCV: FF

2017-07-02 20:41:31 (085) : PodEmu - Line 1: len=505 cnt=16 : RCV: FF

I ended up playing with the code and getting it to ignore the errors for this particular occurrence. Once I send an ACK to the image message, nothing much else happens. I think my head unit is waiting for some message to say the "ipod" is in RemoteUIMode, because once it finishes handling the image part, nothing happens, it just sits there. I think this is the case because I have tried changing the response to command 0x03 to say its in RemoteUIMode and the head unit in my car changes display and goes into polling mode (0x26), but because the Ipod mode isnt set to 4 in the code, it never responds and the head unit just repeatedly sends 0x26.

I'm going to try some more testing tonight.