yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Pondy:
OK I'm pretty sure you are correct that it is the image handling. I was going to play around with the message size of the 0x32 command today - but I broke a connection on the cable, I need to redo the soldering. I'm guessing that there is the payload of the image coming directly after the 0x32 command and it's basically going no where, thats why the app is sitting there doing nothing after the the 0x32 command. Hopefully I'll fix the cable in a few days time and test some more.
[Android Apps and Games] rp9:
It's great you have time to help me improving the app. Thanks! So waiting for the news after you fix the cable. And yap, after 0x32 picture image payload is expected. In the log I received from you it is not sent in full, so it looks like communication issue.
[Android Apps and Games] Pondy:
OK I managed to get it working with a bit of a hack:

I added a count on mode 0 0x03, on second occurrence send a different ack:

case 0x03: // current mode requested

{

if (mode3cnt ==0 )

{

// writing current mode

byte msg[] = new byte[2];

msg[0] = 0x04;

msg[1] = (byte) ipod_mode;

oap_write_cmd(msg, 2, (byte) 0x00);

mode3cnt++;

PodEmuLog.debug("Mode3 is 0");

}

else {

// writing current mode

byte msg[] = new byte[2];

msg[0] = 0x04;

msg[1] = 0x01;

oap_write_cmd(msg, 2, (byte) 0x00);

PodEmuLog.debug("Mode3 is 1");

}

} break;

comment this out:

case 0x0039:

//oap_04_write_screen_resolution_3A();

break;
[Android Apps and Games] rp9:
Pondy, thanks a lot for your support!

After almost 2 yours of project being on hold I finally managed to finish the changes that I started long time ago. These are mainly stability and better protocol support changes. But there are also some small new features. Details are updated in the first post. Currently I am working on Bluetooth support that will be ready soon...
[Android Apps and Games] fr4nk1yn:
I'm excited to get back in my car and use use this. The updated app worked much better! Thanks for reviving this!
[Android Apps and Games] marcelser:
The currently released apk for version 2.00 is only 32KB in size and no valid zip file. Please fix download on github. Thx
[Android Apps and Games] rp9:
Thanks for the note, apk updated. The source code however was in the latest version.
[Android Apps and Games] marcelser:
Well, Apk still broken

Tanks for trying to update the Apk. I see in the comment section that you updated the version to 2.02, but it's still an invalid 33Kb file.

I guess the build process is somehow broken or the upload to github, but as the comment and last update time changed in github I guess it's the build process.

Unfortunately I'm not experienced enough to use your source code and build it myself.
[Android Apps and Games] rp9:
Marcelser, why don't you just download it from Google Play? And btw, I double checked APK and it is OK, 1,82MB.

In the meantime I am working on bluetooth support, which is already in the tests phase with HC-05. I ordered RN52 bluetooth module to have full bluetooth connectivity (not only for control but also for audio): http://www.microchip.com/wwwproducts/en/RN52 . Of course it will be still possible to use HC-05 + cable audio or HC-05 + other BT audio module like BK8000 or OVC3860, but then you will need to pair with 2 BT devices. RN52 will allow to use only one BT device and I expect better audio quality :)
[Android Apps and Games] rp9:
So finally Bluetooth support looks stable:

[IMG="PodEmu v2.03 with bluetooth support"]https://raw.githubusercontent.com/xtensa/PodEmu/master/screenshots/PodEmu%202.03%20BT.png?raw=true[/IMG]

It is published on Google Play for Beta Testing. In order to opt in you need to go to this link: https://play.google.com/apps/testing/com.rp.podemu

If you are opting in, please also make a post here so that I know who is opting in.

Now how it works:

currently PodEmu v2.03 was only tested with one BT device - HC-05, but support for more devices is coming, at least for RN-52

before using HC-05 it need to be configured. You need to change Baud Rate to 57600 and device name to PodEmuBT. This could be done issuing commands:

AT+UART=57600,0,0

AT+NAME=PodEmuBT

For details about configuring HC-05 please refer to: https://www.itead.cc/wiki/Serial_Port_Bluetooth_Module_(Master/Slave)_:_HC-05

In the future the option will be added to choose from all paired devices, so changing device name will not be required. However, changing baud rate will always be required to comply with you dock station or car baud rate.

after BT module is configured, you need to manually pair with it. Once paired, start PodEmu and it will connect automatically. You don't need to re-pair each time you want to use it.

Serial interface cable has higher priority to connect, so if it is attached, BT will not connect. Detach the cable first and then restart the app.
[Android Apps and Games] Pondy:
I'm definitely in for this! So excited hehe
[Android Apps and Games] Jacqueline Kim:
It's good!!! I can use it!!!
[Android Apps and Games] ish0909:
interesting... I'll test this using usb type c to apple 30 pin. My car has a build-in apple 30 pin connector for ipods, iphone 1st gen to 4th gen. Hope this works.
[Android Apps and Games] Pondy:
Having some issues getting the device renamed and baudrate changed. Also dont think my car 30pin connection is outputting 5v, so its not getting power. Need to do some testing.

I have another dock that is powering it.

Will changing the BT connection name in Android allow it connect?
[Android Apps and Games] rp9:
Sorry for delay with response... was out for some time. Yes, changing device name in Android should allow to connect.
[Android Apps and Games] Pondy:
All good, I'm still waiting on some more components to get this setup and tested, hopefully they will arrive soon.
[Android Apps and Games] rp9:
While you are waiting for the parts I spent last two weeks on vacation testing my new setup. As I spent a lot of the time in the car I was able to tweak the app and immediately test it on the go. I must say I am very satisfied as I managed to improve it a lot. As I mentioned earlier I used HC-05 together with XS3868 to have completely wireless connection. The schematics of my setup is the following:

[IMG="HC-05 and XS3868 setup for PodEmu"]https://raw.githubusercontent.com/xtensa/PodEmu/master/schematics/HC-05%20and%20XS3868.png[/IMG]

This setup works quite well, but there are few notes worth mentioning:

both modules (HC-05 and XS3868) are getting randomly disconnected. This happened to me every 3 hours on average. Not sure where is the reason. I simply waited 10-15 seconds and modules were reconnected.

volume level produced by XS3868 is low (around 60%) comparing to direct audio connection.

do not short audio ground (pin 2) with power ground (pins 15 and 16). If you do, significant noise will appear.

voltage is set to 3,6V and not to 3,3V. 3,6V is within acceptable range for both modules. However, XS3868 is designed to work with battery and if voltage is dropped below ~3,5V it produces audible warning.

sometimes application cannot connect to HC-05, even though it is paired. I noticed (maybe I am wrong) HC-05 is visible for other devices only for some period of time after power up and only during this time the connection could be established. Therefore I added reset switch to simplify the process, otherwise I was forced to cycle the power for HC-05 every time I start the app.
[Android Apps and Games] rp9:
Version 2.10 with BT support released to the market. First post also updated. Now it is not required to change BT device name - possibility to choose from all paired devices was added.
[Android Apps and Games] Pondy:
Hey,

I wanted to check, how does the app detect the BT device? I'm asking because I'm wondering if I have bought another revision of the HC05. Mine has a button on it rather than having to short the pins. I've changed the device name and baud rate, I'm able to pair with my phone, but PodEmu never detects the device.

This is what I bought:

http://www.ebay.com.au/itm/371599123909
[Android Apps and Games] rp9:
Hi Pondy. I assume you are using the latest version from the market (2.10). In this version changing device name is not required - just select your device from the settings menu. Whenever PodEmu service is running it is constantly trying to connect to bt device. Try also cycling the power of hc-05 while PosEmu is running. Hope this will help.
[Android Apps and Games] Pondy:
Hi,

Yes I am on 2.10, and I have selected the BT device and enabled BT. All I am seeing in the debug is:

2017-09-07 08:19:22 (397) : PodEmu - SIBT: Bluetooth initialization started.

2017-09-07 08:19:22 (399) : PodEmu - ERROR: SIBT: mmServerSocket is not initialized. Aborting...

2017-09-07 08:19:23 (403) : PodEmu - PES: waited too long for BT interface to connect (1000 ms.). Resetting BT interface.

2017-09-07 08:19:23 (414) : PodEmu - SIBT: close requested

2017-09-07 08:19:23 (425) : PodEmu - SIBT: setState() 0 -> 0

2017-09-07 08:19:23 (426) : PodEmu - SIBT: Bluetooth initialization started.

2017-09-07 08:19:23 (429) : PodEmu - ERROR: SIBT: mmServerSocket is not initialized. Aborting...

2017-09-07 08:19:24 (411) : PodEmu - PES: waited too long for BT interface to connect (1000 ms.). Resetting BT interface.

2017-09-07 08:19:24 (412) : PodEmu - SIBT: close requested

2017-09-07 08:19:24 (413) : PodEmu - SIBT: setState() 0 -> 0

2017-09-07 08:19:24 (414) : PodEmu - SIBT: Bluetooth initialization started.

2017-09-07 08:19:24 (415) : PodEmu - ERROR: SIBT: mmServerSocket is not initialized. Aborting...

2017-09-07 08:19:25 (420) : PodEmu - PES: waited too long for BT interface to connect (1000 ms.). Resetting BT interface.

2017-09-07 08:19:25 (553) : PodEmu - SIBT: close requested

2017-09-07 08:19:25 (554) : PodEmu - SIBT: setState() 0 -> 0

2017-09-07 08:19:25 (556) : PodEmu - SIBT: Bluetooth initialization started

2017-09-07 08:19:25 (571) : PodEmu - ERROR: SIBT: mmServerSocket is not initialized. Aborting...

2017-09-07 08:19:26 (597) : PodEmu - PES: waited too long for BT interface to connect (1000 ms.). Resetting BT interface.

2017-09-07 08:19:26 (598) : PodEmu - SIBT: close requested

2017-09-07 08:19:26 (599) : PodEmu - SIBT: setState() 0 -> 0

I'm positive that I have the wiring sorted ok (thanks to your schematic you posted).
[Android Apps and Games] rp9:
Well, apparently your hc05 is not seen by application. There is UUID string that is hardcoded in app that can cause this problem, but all SPP devices are supposed to have the same uuid. Can you download any Bluetooth Terminal app from the market and confirm it can connect to your hc05?
[Android Apps and Games] Pondy:
Thanks mate, I'll try that tonight and let you know how I go!
[Android Apps and Games] Pondy:
I'm able to connect to it with 3 different bluetooth terminal apps
[Android Apps and Games] luke90:
Hi everyone, whats about the HM-10 or HM-11 BLE bluetooth modules? Could they be compatible? They are very similar to the HC-05 or HC-06
[Android Apps and Games] rp9:
Yes, they should be. But of course were not tested.
[Android Apps and Games] luke90:
Ok, I will order one and test it.

Now ive got some Problems with the idtags on my bmw cic Navigation. I use FT232RL for SPP trough otg on my Axon 7 USB Type C with an adapter.

The idtags mostly dont Change, i See the first Song that I Played after connect and than, it doesnt change anymore. And after i turn off the Radio with the volume knob, my mobile is freaking out, Spotify Changes to previous Song every second, when i turn the Radio on again it stops but Spotify is xx Songs back...

I managed when i Press track 003 trough Idrive, the Tags Change. When i use the steering wheel or next Song Button on the Radio, the Tag dosnt change.

This ist the genuine ipod/iPhone Adapter from bmw, its connected to an USB Port on the car and i connected only gnd and RX/TX from FT232RL to it.

Phone (Spotify) > usb otg > FT232RL (SPP) > PL2303XH (BMW Adapter) > usb on the BMW
[Android Apps and Games] Pondy:
[MENTION=1795196]rp9[/MENTION] - I'm wondering if either of my modules are damaged or malfunctioning. I might reorder some new parts and try again. I'm no longer able to send AT commands to the HC-05 from the 232 USB unit, it did work at first, I was able to change the baud rate and device name.
[Android Apps and Games] rp9:
Well, hmm, difficult to judge remotely. Might be that it malfunctioning, but might be they are just buggy. My HC-05 for example had problem responding to programming commands - it was constantly returning ERROR and only like 1 command for every 15 commands sent succeeded.

What I can recommend: if you know current HC-05 settings (baud rate) try to communicate the following way: Android <-> HC-05 <-> serial converter <-> computer and see if serial communication goes through. Of course remember about different TTL levels (3,3V on HC-05 vs usually 5V on serial converters).

[MENTION=2278857]luke90[/MENTION], behaviour of PodEmu in your car can be explained only in one way. Every car manufacturer has it's own implementation of iPod protocol. I mean the commands are the same, but the logic behind them can be implemented differently. Probably BMW is expecting some non-standard behaviour from iPod (PodEmu) that is not implemented. Please collect the logs and send them to me using built in function in PodEmu. I'll analyze them.
[Android Apps and Games] cr08:
Couldn't remember if it was brought up here or in the PodMode thread, but regarding the possibility of going down the native USB route with kernel mods. I've come across this github where someone has already started down that path:

https://github.com/oandrew/ipod-gadget/

Essentially it looks like the device comes up as a composite USB device with an HID endpoint for commands/data and a standard USB Audio endpoint. Sadly I wish I could provide additional assistance or details beyond that.

My only 'compatible' accessory is the Sync system in my car but with that existing code and a Raspberry Pi Zero I haven't had much luck getting it working.

If anyone ends up taking a stab at this on the Android side I'd be willing to help test. Have an old Galaxy Nexus I can throw at it and soon will be migrating off my Moto X Pure.
[Android Apps and Games] Darkfleet:
How did you go testing the RN-52? Stumbled across this when trying to find a solution for my car. Also I will enroll in the beta if that's okay.
[Android Apps and Games] nedge2k:
[MENTION=1795196]rp9[/MENTION] nice work on this! I was considering porting it to arduino so any A2DP device could stream to the 30-pin AAP port, using the arduino to translate AAP to AVRCP and vicer versa. Whilst looking for a nice apt-x module, I found this...

https://www.jetney.com/breakouts/bluetooth-classic/wt32i

...the main chip in that board supports A2DP, AVRCP, SPP and iAP! (https://www.silabs.com/products/wir...-classic-modules/wt32i-bluetooth-audio-module)
[Android Apps and Games] rp9:
Thanks. Regarding your idea - this is of course possible. And actually any BT chip that supports A2DP and AVRCP will do - SPP or iAP2 is not required. The only part you'll need to port is actually communication protocol. You may also want to checkout my other project that might be helpful for not writing everything from scratch: https://github.com/xtensa/oap.
[Android Apps and Games] nedge2k:
No I know for arduino i'd only need A2DP and AVRCP but for your app, that module might be handy - combining the audio and serial into one.

Will check out that project, thanks!
[Android Apps and Games] fr4nk1yn:
[MENTION=1795196]rp9[/MENTION], You sent me a file to test awhile ago. My car wasn't on the road then but the last couple weeks I've been getting a new tablet set up, including PodEmu.

V2.1 has been a little "quirky". Slow to launch Play Music, and in-car track buttons not working. I remember the test version working well so I installed that. It starts playing music withing 3 seconds of turning the car's key on! Track buttons work the majority of the time, the only issues being the ones I think I mentioned then.

Occasionaly PodEmu crashes when I turn the cars key off and the tablet hibernates. When that happens I need to FC Podemu then it's good again.

Rarely I a pause/play cycle with "Track 002" on the car's display. I'll have to pay more attention next time it happens as to what fixes it.

With longer use there's a couple more I found:

PodEmu displays that it is "disconnected", Music doesn't play, and buttons don't work, removing and reconnecting the plug fixes that instantly.

Another rarity is Play Music "losing sync". PodEmu is working and says it's connected but Play Music won't play. FCing Play Music and relaunching fixes that.

Most of those problems if I'm driving and don't bother with all the button pushing are fixed next time I start the car and that tablet resumes.

Now. With "all" that v1.23 still works better in in my application, especially the quick Play Music start up.

I know I'm using an old unsupported version, are you interested in any logs? If so should I sent them from v2.1, v1.23, or both?
[Android Apps and Games] rp9:
Just a quick note as I am still getting questions "where to buy breakout board?". So the answer is unfortunately nowhere - at least I was not able to find it since I believe 2015... However, there is quite easy workaround. You can buy cheap dongle like this one: http://bit.ly/2CFkve9 and simply remove the internals leaving only the connector. Of course some basic soldering skills will be required.

fr4nk1yn, as for your comment and further app development - I am definitely getting back to it... when I find some free time :)
[Android Apps and Games] 2x4:
i have a	Pioneer AVH-X2500BT that has iOS support via USB, but not Android - will this app make it work?
[Android Apps and Games] Darkfleet:
30 pin breakout - h-t-t-p-s://rover-ebay-com/rover/0/0/0?mpre=https%3A%2F%2Fwww-ebay-com%2Fulk%2Fitm%2F253299844892

Won't let me post the url without dashes.
[Android Apps and Games] nedge2k:
Hey [MENTION=1795196]rp9[/MENTION], any chance you can add BLE support to the app?

I've just made an Audi AMI A2DP/SPP cable using a CSR8645 module and a HC-08 BLE module. By default, you can't pair with the HC-08 and your app doesn't detect it as useable.

Some pics of my cable: https://photos.app.goo.gl/2dyvMaq5BZ2LVaVc2
[Android Apps and Games] rp9:
Sure. Will try to add it in the next version!
[Android Apps and Games] nedge2k:
Cheers! :)

Once I get it working, i'll draw up a schematic for Audi MMI users (there's no easy way of getting bluetooth streaming AND control with MMI 2G/3G)
[Android Apps and Games] rp9:
Just release version 2.12 with support for HC-08 as open Beta. Anyone who want to test it please open app on Play Market and search for "Early access" or "Beta signup" options.

nedge2k, let me know the result.
[Android Apps and Games] Pondy:
Hi guys, I've been trying to get this working with an Australian made Falcon (2010 G6E Turbo). The wiring diagram from [MENTION=1795196]rp9[/MENTION] doesn't seem to work with my car. I need to connect pin 18 for the headunit to detect a physical connection.

I've tried a few things, connecting to 5V power and also to stepped down 3.3V and 3.6V. Best results seem to be with 5V. Once I figure this out, I will post my wiring diagram, it may help others.
[Android Apps and Games] Darkfleet:
Hey Pondy, I've been trying to do the exact same thing with my G6E Turbo! If I get some time I'll play around with mine also, but would love to hear if you sort something out!!
[Android Apps and Games] Pondy:
So I did have some success. I could get it to connect maybe about 50% of the time. This is without changing the voltage at all. My best success has been the following:

- Connect pin 18 and 23, and run these two to power the HC05 module and a female USB connector (to power audio - I'm not using the XS3868 ).

- Connect pin 1 and 16, then connect these to ground of HC05 and female USB connector.

This might be causing other issues, but I've tried so many different things and this is the best result.

In the photo below I am still using a 3.5mm connector for audio, I'm waiting on the parts I need for BT - on a slow ship from China :-/
[Android Apps and Games] Darkfleet:
I'm doing the same, hc05 for serial, aux cable to audio pins for audio. Same boat waiting for China shipping of parts :(

I will give it a go connecting 18 and 23, I knew I would need something to 23 as the car has a connection on this line just haven't had too much time to test. Are you okay with a PM?
[Android Apps and Games] Pondy:
Yeah man no dramas

---------- Post added at 08:57 AM ---------- Previous post was at 08:53 AM ----------

This is a very rough diagram, am going to re-do when I sort it out.

---------- Post added at 09:04 AM ---------- Previous post was at 08:57 AM ----------

Hmmm I just realised I'm not using pin 15, not sure if that is a problem, I never used it on the original wired connection.
[Android Apps and Games] nedge2k:
Hey [MENTION=1795196]rp9[/MENTION], 2.12 installed but i'm still only seeing paired devices in settings. I had renamed the device but I changed it back to "HC-08" just incase but no difference.
[Android Apps and Games] rp9:
Nedge2k, as description of this option in the APP says - only paired devices will appear on the list in PodEmu. So first you need to go to the settings and pair the device here. Then you should go to the app and select your HC-08 device here. The name could be any - it is not relevant.
[Android Apps and Games] nedge2k:
I understand that but the problem is, you can't pair the HC-08. The only settings you can change on the module are name and baud rate - you can't set it to allow pairing.
[Android Apps and Games] rp9:
I am not sure I am following you. You should be able to pair it from Android settings (your first screenshot), not from PodEmu settings. Just click on it and you will be asked a pin code. Enter standard one like 0000 or 1234 and it should pair.
[Android Apps and Games] rp9:
Just released version 2.13 to Play store. It has major bluetooth negotiation improvement - I strongly recommend to download it.

nedge2k, it also should support HC-08, but I don't have module to test it. Waiting for info from you.
[Android Apps and Games] Pondy:
I'm pretty keen to try it out tonight!
[Android Apps and Games] nedge2k:
Cheers, will have a look when I get home from work. EDIT: still doesn't see the HC-08.

Going back to the pairing issue, BT4 BLE devices don't always require pairing to be used. Some modules can be set via AT commands to allow pairing but the HC-08 cannot. I've tested it with a BLE serial terminal android app (with module attached to laptop via USB>TTL adapter) and it does work fine without pairing but you cannot pair with it in the system settings.

Main reason I got the HC-08 was due to it's very small size compared to a HC-05. I'd also hope that it might not have the connection drop-outs you'd seen on the HC-05.

I found a guy who's made a breakout board for the WT32i - the one that can do APT-X A2DP and SPP simultaneously so i'll probably order one of those for testing too. If anyone else is interested, see: https://www.jetney.com/x/wt32i.html (i've confirmed with the guy that the board is fully assembled and that for our usage, pins VREGEN, VDDIO and VDDBAT would need a 3v3 supply)
[Android Apps and Games] Pondy:
Heres my wiring diagram for a Ford FG Mark 1 with ICC (Premium Sound) - required slightly different wiring.

Basically needed pin 16 to be paired with pin 1, and 18 to be paired with 23.
[Android Apps and Games] nedge2k:
Hey [MENTION=1795196]rp9[/MENTION], do you think you'll be able to sort the HC-08 issue or should I order a HC-05?
[Android Apps and Games] rp9:
I already ordered HC-08 and waiting for its arrival to make tests. If you don't want to wait 2-3 weeks, then go ahead and order HC-05.
[Android Apps and Games] Xstitch:
Can I replace XS3868 with a HiFi DAC and connect it to same connector pins?
[Android Apps and Games] Strel0ka:
Does PodEmu support digital audio?

I have a Dension Gateway Interface in my car which only supports digital audio afaik.