yashsingh1/xdaforums huggingface dataset:
[Android Head-Units] shajumcc:
Hi There,

Man you were right, the resistive ladder thing works.

Fortunately my unit had this key1 and key2 pins . I came across an old post in this forum, where the guy had connected his swc +ve to either key1 or key2 and swc -ve to ground.

The Lead provided by Chinese manufacturer had no cables connecting these pins, so i had to wire the lead manually so i can pass the swc signals to these pins in the unit. To my surprise it worked !!!!!;) and i am now able to assign different key press signals to different functions and all the combination that you mentioned also works:good: The only think is that I had to by pass the connection without using the Canbus.

However this trick does not work for my OEM panel buttons as they don't seem to be analog:crying:. Ford Circuit diagram calls it as LIN BUS, a single cable responsible for all the 25 buttons in the Panel and it also carries some other signals. In order to make the panel buttons to work with the unit, the LIN BUS will have to be wired via the canbus, but unfortunately i cannot get it to learn new functions with the existing canbus. I guess this should be ok for now until i purchase a correct canbus that would work with this AN-21U.

kaween, to answer your question, whether i was able to access the Learning function app when connected via canbus. Yes i was but i cannot get it to learn. With the canbus connected and the correct mcu is chosen in the model config, the key press signals are already working but somehow this does not show as highlighted grey in SWC app.

Now whenever i try to make a key press to learn a new function in the SWC app, the actual key press action is triggered.

For example, In SWC App,

1. On slecting "START" = the text is changed to "END" and turns yellow

2. Then I select "VOLUME UP" = it turns yellow

3. On pressing the SWC "VOLUME +" button, i can see the volume getting increased but the "VOLUME UP" button in the SWC app stays on yellow and never turns to grey.

4. This happens to all the buttons, the actual function of that SWC key press is triggered and the SWC APP is ignored. Does it ring a bell :confused::confused::confused::confused:

Also, what does a MCU got to do with SWC or canbus? Can any one help me with some info ?

Cheers,

Shaju Mathew
[Android Head-Units] kaween:
When the value stays yellow, it is my experience this means the captured value of the button isn't valid OR too similar in value with another key to differentiate.

If I understand you correctly, this simply means your Ford sees the buttons as normal "on/off" buttons, without a unique resistive value tied to each action.

I had the same problem with my car : the SWC exists of 6 switches, all just closing when being operated, the stock radio had an internal decoder matrix to sort these out and react accordingly but if you hook that kind of situation to an aftermarket radio, it has no way to identifiy a button from another one as all the values are identical. Identification will fail, and as a result the "yellow" will not change into gray (sign of succesful recognition).

In my car, I solved this by making a little PCB with 6 resisitors, wired up so that whenever I pressed a button, it would allow a circuit to close and a unique resisitive value to be measurable. Look at the little doodle I've made to make this clear underneath. The resistive value's were a bit of of experimentation to get a decent result, ranging from 220 ohm to somewhere like 5K6 ohm.

A far more elegant solution would be to use an Atmel or if need be an Arduino (which is overkill, but would work too) and capture the buttons on an input matrix and push out resistive values instead that would have to be connected to the SW cables of the radio. But I cobbled that resistive matrix together while I was installing my unit and noticed the (quite expensive) SWC control box I had bought was defective, and out of anger I threw that thing together. It worked fine, and has been in use ever since (... even before I had the AN21 it has served me on an old WinCE unit and a S150 droid)
[Android Head-Units] Zaphod-Beeblebrox:
It appears this is already the way Newsmy firmware works. I've not personally played with it, but according to this post, while we do have a 'wire' for speed control, it evidently works without it using GPS.

http://xdaforums.com/showpost.php?p=58212302&postcount=2219
[Android Head-Units] kaween:
"Auto Volume". Cripes. Probably I've overlooked it, as I expect this to be called Gala, SDVC or something more common. Thanks for the headsup.
[Android Head-Units] hellSunshine:
TA-8084: Modify key / app mapping

I purchased from Chinese manufacturer Shenzhen Hetongtai Electronics Co., Ltd. the Android Car DVD Radio TA-8084; see attached for full specs. It turned out that it's just another "AN-21 U" clone with Android 4.4 running on it. Screen resolution is 1024x600, screen size 8". Meanwhile I rooted the device and it works fine.

Of course I read a lot in this great forum/thread, and since I'm a developer myself I would like to do a couple of modifications. So I came across the modded versions of the com.tw.* apps like music player, radio, etc.

For the start I would like to replace the apps which are called when the keys like "Mode" (switch navi - music - ipod - aux - radio etc.) or "Audio" (open the equalizer) are pressed. So, mainly I would like to replace the com.tw.music with a call to Poweramp. In the settings menu I found that "navi" application could replaced with any app quite easily (which modified "navi_name" conf file) but I failed to do the same for the "music" app. I modified a lot in data/tw (i.e. placed "music_name") and such but it didn't work out in the end :crying:

Any hint or recommendation on how to replace the calls to the default apps?
[Android Head-Units] kaween:
The renaming trick fails indeed. Many of us have tried this before you. We all failed. :(

Calculated guess, this behavior is dictated by the com.tw.srvice_a54.apk . So if you're looking for a place/way to alter this, that would be the first place I'd look for.

However, without source code and seriously obfuscated code .... well above my limited level of knowledge.

So in the end we make do with Llama/Tasker-like stuff to capture the launch of the default app, stop it and launch PA instead. Yep, Ugly. But it does work and for as long as no other solution is found, it is acceptable as solution.
[Android Head-Units] Zaphod-Beeblebrox:
Renaming an App has no bearing on how Android calls it. If you really want to try and masquerade as another app, you'll need to tear apart the AndroidManifest,xml of the app you want to replace and see if it's responding to intents or specific application calls. If it's just responding to Intents, then you might be able to alter the manifest of your desired app to respond to the same intent (you could also use Tasker for this, most likely).

Use APKTool to decompile the various factory apps and see what intent filters are defined.
[Android Head-Units] hellSunshine:
Yes, actually I was already on my way through TWService, TWApp and so on. Without any luck so far. :(

I don't think that it's too difficult in the end since there are many videos/pics out there with either additional possibilities in the "Settings" to adjust the apps for "Music", "EQ" and so on - or having the "Launcher" adjusted to select apps after pressing longer the ugly home screen icons. But I couldn't get a hand on one of these Service or Settings or Launcher classes to check deeper.

The Tasker/Llama trick works after reboot/restart but not when trying to toggle between Music, Navi, EQ, iPod apps using "Mode".
[Android Head-Units] kaween:
... Except that it DOES. When I press my SWC-assigned Mode key till "Music" is selected, I see the default music app pop up, close down, start PA and PA resumes to play, all by using LLama ...
[Android Head-Units] hellSunshine:
Oh dear, so I probably just misconfigured Llama! :confused:

Would you mind to share some more info about you setup the shutdown of default music app / restart PA including PA to resume to play? I would really appreciate it...! Many thanks in advance!
[Android Head-Units] kaween:
No problem. But the solution isn't flawless. Main problem is forcing PA to autoplay : at the time, I found no simple way for a problem I had with PA : when issuing a Play command, I couldn't diffirintiate between the play-state of PA. And the Play command from LLama (there's 2, really) both have a "toggle" result on PA meaning : if PA is stopped or paused, it will start playing. But if PA WAS playing in the background and for some reason I send a new Play command to it, it will PAUZE.

This happens when I for example have PA running and playing, and while doing so put the car in reverse, loosing focus as the reverse cam image is shown. Result : PA disappears from screen and reverse camera image comes up, When coming out of reverse, focus comes back to PA, a play command is issued .... which puts PA in PAUZE. A bit of fiddling with the internal variable-system of LLama should provide a means to solve this inconvinience.

I also set the normal media player's music location to a default location where there's no sound files available, so the switch-time between "music apk" and PA doesn't get accompanied by a couple of seconds from another song from the music apk library ... :)
[Android Head-Units] M89SE:
Hi I have a problem connected my car to VCDS but can't access radio, it's like it can't see it but the head unit works normally I can control the unit from my steering wheel maybe someone can help me?

Sorry for my English.

I have upgraded the Canbus gateway to 3C0 907 530 Q and reprograming it using VCDS, the old one had the letter "C".
[Android Head-Units] kaween:
There's nothing wrong with your English, I can asure you.

I'm just too stupid to correctly understand what your issue really is. Happens a lot really. :silly:

"can't access radio" (so it doesn't work ?)and after that "but the head unit works normally I can control the unit from my steering wheel" (so it does work ?) ....

VCDS is typically a VW thing, so I expect that's your problem/what you have an issue with.

Or you're talking about the Canbus info that is send out by the head unit to your car's dashboard maybe like radio station, RDS data, current song ect ?

Or do you mean the stuff non-VW'ers use Torque for ? (Engine/car diagnostics over OBD, to check and control your car's behavior on the radio unit ?)

*slightly puzzled look* If English is a problem, I can try and help you out in French, German or Dutch too. I'm sure the other members won't mind.
[Android Head-Units] scott_65:
Kaween

I read your response a few days ago to my last post referring to the zhoon products, and set about thumbing through their aliexpress listings. I didn't realize you had posted a link to one, so thanks for that. I was coming on here today to get your blessing before ordering one and it happens to be the one you linked, so that must be a good sign. I have emailed them about the simultaneous phone and obd streaming but haven't received a response yet. Other than that it looks pretty good. Can I assume that since you linked to it, you think it's a good unit? If so I think I'm just going to give in and order that one.

Edit: Djblaze, sorry somehow i missed your post. I guess i just accidentally scrolled past it. I just now had a second to go back and look for your earlier posts as kaween suggested and i happened to see it. It seems like this is about as close as I'm going to get, and maybe everything i need. I assume that since it does the Bluetooth obd, it must have that bt6 board. Should i just get them to throw in their obd plug for $20, or is one from the states going to work better(I'm in usa)? I guess the main thing here would be any delay sending between obd port and radio unit
[Android Head-Units] hellSunshine:
[MENTION=4736782]kaween[/MENTION]: Everything worked as suggested with Llama, Music process kill and Poweramp start. Since my Poweramp version autoplays itself I didn't even had to send the play command. But, how did you manage to set the Music default location? By editing the /data/tw/music config file?
[Android Head-Units] sms2000:
DPI not changing?

Hi everyone

I need some help for a similar device labeled "AOSP on MStar Cedric3" from TARGET. I succeeded to root the device but cannot set DPI. It preserved on 240 and I'd like to have some lower value like 200.

When I use the "textdroid_dpi" APK from Google Market it works but after reboot I'm again with 240dpi.

Android version: 4.1.1 rooted, root verified.

where I can edit DPI setting manually if it ever possible? Or how can I set DPI for a specific application?

Thanks
[Android Head-Units] kaween:
Heh, no "blessing" from me. I'm sure your car will explode when you turn it on first time. :)

No seriously : like all other stuff, there's always the chance of buying a dud but owners of this Zhoon unit were all positive about their units so "signs are good".

If the unit has a BC6, it can do phone linking and OBD. If it hasn't, it can do OBD over BT at all, at least not with a normal torque+obd BT module combo. In light of that, I'm 99,99% sure an existing OBD-BT plug will work. If you want total peace of mind and want to exclude any discussion with them in the future, buy the plug they offer and sell your old plug. But as said .....

You will ALWAYS have an observable delay when OBD'ing over the BT port. It is subtle, but compare to a direct USB OBD connection it is noticable.

---------- Post added at 09:58 AM ---------- Previous post was at 09:51 AM ----------

Wait ? You have a PA version that automatically starts playing a track when launched ? I have the official version toom licence and all, yet I can't do that ? (and a lot of other people have this issue too).

What version is it ? Normal standard buy from Playstore ? Trial ? Some "other" version. ;)

The "default location" where the default music app searches for sound can be set by the user simply by choosing it (the buttons above the track info). I simply chose a location without sound files (ext SD) and exit the software. The app remembers this setting and hence never starts playing anything during the "launch+kill phase".

Any pointer to the PA "plays tracks at launch" will be highly appriciated !
[Android Head-Units] wanxu:
Hey guys, is it possible to remap some button to "back" function?
[Android Head-Units] kaween:
Manual change of dpi SHOULD be possible by modifying the build.prop in /system.

There SHOULD be a line like ro.sf.lcd_density=240 there now. You could try and directly modify it there. No guarantees, not done this myself on the AN21, but I did do this succesfully on an older tablet back in the days.

---------- Post added at 10:08 AM ---------- Previous post was at 10:06 AM ----------

Well look who's back ! Welcome ! It has been far too long !

You mean remapping a hardware button to "back" ? Sure. Panel button remap (I think it's found in settings -> "User Settings" ... could be "Extra", not sure, but it's on top of the selection list in that section) learn some button action to "back", ready.

---------- Post added at 10:58 AM ---------- Previous post was at 10:08 AM ----------

Finally got my head around this issue.

For people having the same issue as I had, Poweramp not starting music playback on launch :

settings -> audio engine -> audio focus -> resume at start
[Android Head-Units] wanxu:
Thanks, I'll try later! By the way, my new unit comes with 2.9.3 version and passwords changed :S

As [MENTION=5560428]djblaze852002[/MENTION] said here, there are new passwords. For me, the last one worked: 61808683, to enable "install from unknown sources".
[Android Head-Units] perieanuo:
confirmed bluetooth dongle

For those who want to spend a little money I confirm that the OBDLink™ LX Bluetooth adapter is working flawless with BC6 bluetooth,tested with torque and Obdlink .I have a Fiat Bravo 2 (2007), let's say a difficult task for an Obd2 interface :) .The price is a little high - 119 euros for me (buyed from germany shipped to France), very good quality, turns off itself if no ignition/motor running and they give you a licence for scanmaster elm and one for obdwiz, not yet tested but sure it works.I had a really bad experience with a china cheap bluetooth adapter from aliexpres sort of elm327 v1.2 who screw up the airbag settings,luckily i had a really usb obd2 interface for reset the airrbag module ...

dashcommand should work too but i didn't tested yet
[Android Head-Units] scott_65:
Wait, so you can run a direct usb connection for obd? I don't remember ever hearing that mentioned in anything I've been reading. I wonder why, is there some downside to it? If it's only because you have to run a wire, I've got no problem with that
[Android Head-Units] djblaze852002:
Yes you can use USB OBD adapters... They work fine. My only gripe with my particular installation is that the USB adapters are much "longer" than the tiny bluetooth ones. It stuck out a little bit and I would kick it with my foot when getting in and out of the car. The bluetooth ones are so tiny you cant event tell they're there. You then also have to mess with wiring and snaking the cable up the dash, it is usually a bit short so then you might have to add a USB extension.

Lastly, some OBD apps like Dash, do not support USB OBD adapters... HOWEVER, I have yet to get Dash to work with the bluetooth adapter either... I think these Chinese units are specifically programmed (drivers) to only work with Torque. Has anyone gotten OBD to work with another app?

I am very satisfied with my Infidini (Zhoon) unit. However, I am really sad I have not been successful in rooting it. I know there are some instructions HERE on how to achieve perm-root, but I am afraid to try it out. They come with a big warning. Does anyone have any ideas on how I can achieve root? Is it really as dangerous as I perceive it to be? Lastly, according to the seller, we should not use any of the firmwares posted on this site as they are different from the ones my unit uses. So that means I can't try downgrading to 2.8.8(permroot), I don't want to risk bricking my unit. I will be very grateful to anyone who can help me achieve root. It is the last piece of the puzzle I am desperately seeking.
[Android Head-Units] TheSSJ:
Seriously, it's not that hard-if I did this,you can do it while being blinded :cool:

When you are temp rooted with that baidu app, please check if the gocsdk binary is present. If yes,look wgat Miwer did here.

Otherwise I think I can make a video if this helps you :) will take some time though...
[Android Head-Units] M89SE:
The radio does work, I'm not an expert in this things but I will do my best, when connected to VCDS I can't access the radio unit through this program, but to my main issue is i want the park radar control to show up when I put my car in reverse "I have park sensors" don't really know the name of it sorry. So I read that i had to upgrade my canbus gateway maybe to gain some extra features so i did and i did program it transferring the information to the new one from the old one. But still it does not work and I really suck at this thing and don't know what to do?

So in brief I have New Canbus Gateway with letter "Q"

VCDS can't access Radio head unit

The Radio head unit is working

But I wan't the Radar function to turn up on my screen while reversing.

Thank you for helping me out!
[Android Head-Units] hellSunshine:
[MENTION=4736782]kaween[/MENTION]: I just did a couple of screenshots. My apologies that the screens are in German but you will get the idea. PA Version is 2.0.10-build-575. Go Settings, Audio, Audiofocus, Resume on Start.
[Android Head-Units] hellSunshine:
For whatever reason this doesn't work for me. When I start the "Music" player it resumes playback with the previously selected track (from extsd1). After that I select iNand or USB (where not music files are stored) but playback continues. I exit the player with the "Back" icon. If I start now the Music player it continues with the previous track. Is there something I have to do differently?
[Android Head-Units] kaween:
... thanks for the PA thing, but as i wrote, I had already found it : after reading your comment about your PA-autoplay, I started looking through each menu option I could find.

So If you hadn't made that comment that it worked for you, I wouldn't have started looking, so thank you.

As for the Inand trick : No idea why it doesn't work for you.

Otherwise, try this :

kill the standard music app

move/rename the location of your music collection in a new submap on the ExtSD1 so "there's nothing to continu with" for the default music app.

Do NOT start the Music app, nor PA.

Reboot the AN21, the music app should now have to fail finding the file it wants to continu with logically speaking, but do not start the default music app yet.

Start PA manually and let it scan the new music location if need be.

Reboot unit again, see what happens if you "kill launch" the thing now.
[Android Head-Units] KID52:
I cannot be sure, but if you have done a factory reset, and tried a couple different firmware versions, I would have to say it is a hardware fault. Specifically what I don't know.

You only have the ground, red, and yellow wires connected?
[Android Head-Units] omarko:
yes, did a factory reset already and yes, only those 3 are connected.

I can see the whole unit shuts down, like I said I can hear the fan power down. Also when the ignition is turned on, the whole unit goes through the usual boot process.

I solved the button lights however, the USB wifi dongle flashing is still bothering me. Could it be that the board is set to power the USB all the time? Is there a setting somewhere to turn that OFF ?

How can you see it takes 5-10 seconds? what happens with your unit when you turn off the ignition? Are you saying it stays on for 5-10 seconds? Mine shuts off immediately the ignition is off.

EDIT: also, interestingly, when the ignition is off and the wifi flashes, when I disconnect it from USB cable and then plug it back it, it does not come on. As in the light is not flashing.
[Android Head-Units] omarko:
ok, so I tested the loop like you said and its definitely resistive as I am getting no voltage but I can see changed on the multimeter screen when set to resistance (I connected positive to wire 4 and wire 17 to ground).

Now , I connected wire 4 to Key 1 and ground to wire 17. Thing is, nothing is happening. Do I need to set it all up somehow? I went into the settings and then steering wheel control but all it does is come up with all the different functions. How do I teach the radio the various signals? I tried holding down a function (like next) and then pressed next button on the steering wheel but nothing happened.

Any advice is appreciated. Outside of the flashing wifi, this feels like last part of the puzzle I need to solve before I decide if Im installing this or not!

thanks
[Android Head-Units] sorin129:
That i can help you with. Assuming that the wires are connected correct, you go in to settings under steering wheel control settings and there is a start button you press and it lights up, now you press the button you want to program and then you press the coresponding button on the steering wheel. If that works, press the button end and do the same thing again for the others.(the key is the start button on the bottom of the screen that turns into end button as soon as you press it)
[Android Head-Units] omarko:
thanks ! that worked ! yay ! at least something is right hahaha!

many many thanks!
[Android Head-Units] sorin129:
I'm glad it worked for you. Now I have to take apart my steering wheel and try to find that wire to connect my SWC :)
[Android Head-Units] omarko:
install finished :

http://s29.postimg.org/t3q21wruf/DSC00766.jpg

still need to fiddle with the home screen setup. the system is not remembering the Live wallpaper I select. After each restart its back to the basic bubble one. Why is that ?

Also, is there any way to keep music running when I reverse? It shows my camera but music is off.
[Android Head-Units] patrickoneal:
Mine has a different faceplate, but there's a mute in reverse option in there somewhere. If you dig around a bit, I'm sure you'll find it and uncheck it.