yashsingh1/xdaforums huggingface dataset:
[Android General] donaldta:
Yes, you can customize the functions by editing the \system\usr\keylayout\MultiCC_KBD.kl file. You can even use the the key_events from other *.kl files in the same directory. You can even use Key_Events that are within the range of API level 1 to 10.

As far as the Parrot Unika only recognizing a fewer number buttons than physical buttons, this is usually due to the car's Steering Wheel Controls (SWC) having duplicate or similar values on their buttons. If your car uses resistance signaling it could also be because it is using more wires than you have connected to the Unika. You can test this by looking at the Unika's LED while pressing the various buttons it will flash orange any time there is a change in the resistance. If it doesn't flash on the missing three buttons that means you are missing wires from car's SWC. You'll have to find out which one they are and connect them. In resistance mode, the available wires are V1 and Aux 1, 2 or 3 wires on the Unika. So, you can have up to four wires connected to your SWC.

In resistance mode, the Unika will only program the first unique values. The duplicated values will sometimes facilitate the first programmed button. So, for example, if "Volume Up" button measures 300Ω and the "On Hook" button measures 300Ω then it will activate the Volume Up function through the Unika. This usually happens when your car's SWC uses multiple wires with duplicate values across them. If this is the case, then you can patch in a unique resistor (>11k Ω) on the wire(s) with duplicated values. You can verify this by disconnecting the Unika then use a multimeter and setting it to measure resistance (Ω), use ground as common, and record the values between the wires coming from the car.

If your car uses voltage signaling you'll have to verify the voltage values from the incoming SWC wires of the car with a multimeter. The Unika will only program the first unique value registered any button. In voltage mode, the Unika's LED will flash red only when it recognizes a programmed button. So, you'll have to check the values and makes sure they are unique if they are not then make sure that you use V2 on the Unika for the wire that has duplicate values. In this mode you can use up to five wires to measure voltage but V1 and Aux 1, 2, and 3 use the same path and require unique values. If you need more than two wires to be unique then you'll need to patch resistor(s) (>11k Ω) on the duplicated wire(s). And, if you need more than one resistor make sure that they have different resistance values.

For digital connections (CAN-Bus and K-Line) you cannot change this and it will require a firmware update. As the button to function negotiation is handled between the Unika and your car's ECU.

I almost forgot... currently, in resistance mode, the Unika will only program up to seven buttons. Eight button programming is only available via digital connection.
[Android General] bakk1:
Thank you for a greate answer!

My car has canbus, so I need a different software. But I guess Parrot will not care to much about that... Even my old china headunit had all the buttons working, so I'm a bit dissapointed with Parrot for only implementing five:-\
[Android General] jsstelt:
Can i change the MultiCC_KBD.kl file if my car uses CAN ?

I have also a button that is recognized by the Unika but doesn't do anything on the Asteroid smart.

I would like to use this as source or something.
[Android General] donaldta:
As long as you are using the Unika and your Asteroid is rooted. But, I have not tested it with any of the other SWC adapters. That file is the keylayout file that Android uses to translate the scan codes from the Unika into Key Events. And, it doesn't matter if it is set to read voltage, resistance, K-line, or CAN-bus. The information received is interpreted by the Asteroid as keyscan information As far as the button not doing anything but being recognized by the Unika, maybe try downloading the keytest.apk from Chris Boyle's Github site. This software will help identify the scancodes when a key is pressed. If it you get a response from that key with this app then its a just a matter of setting up the correct line in the MultiCC_KBD.kl file to handle the translations. Otherwise, the Unika is reacting to the button press but isn't sending out data.

This is the generic description of the how each line in the file is interpreted, "key <scancode> <keyevent> <modifier>"

For example, the line "key 24 VOLUME_UP WAKE" handles the scancode "24" from the Unika which in turn initates the "Volume_UP" key event.
[Android General] jsstelt:
Thanks! I will try that today.

What does the modifier mean? And what if i wan't to add a function to "long press" a button.
[Android General] jaanusj:
Whats inside

Has anyone thought of looking inside the head unit to see the hardware? Which PCB which and DAC?

We have pictures of Sensus Connected Touch and pictures of Tablet amplifier unit but no information about Smart Hardware?

For example:

Tablet has DAC CS4245 which is quite good quality DAC but the capacitors and op amps are not good - with few simple and cheap modifications it would be possible to improve the sound quality.
[Android General] donaldta:
Here is a link to official Android documentation for Key Layout files. Long presses would have to be identified uniquely from the Unika side of things, so that would require a firmware update from Parrot. Otherwise, it would have to be handled programmatically by the app that has focus.
[Android General] LiquidBreadMan:
I'm back. Crutchfield is sending me a new radio that will hopefully resolve my dying battery problem.

My next issue: :fingers-crossed:

I have a Sirius Lynx connect to the HU through the FM antenna connection. When I shut the car off the Lynx shuts down before the Tuner does, so I'm left with a moment of blaring static while it goes through it's shut down process.

I just read in a previous donaldta post that the radio "enters Airplane Mode at the same time it turns off the screen after the "Goodbye!" message is displayed". I was wondering if I might be able to use Tasker to tie into some other event that happens just before or when the radio displays the "GoodBy!" message and mute the sound. Of course, I'd probably have to unmute it on startup, but I think Asteroid Tweaker's ability to set the volume on startup might be able to address that.

Any ideas?
[Android General] donaldta:
Yep, that's easy. Use the same profile context for "Airplane Mode" and add task for Audio > Media Volume > Level = 0.
[Android General] LiquidBreadMan:
Thanks! I'll give it a shot.
[Android General] devoidx:
have we figured out a way to completely replace parrot's boot animation? I remember people posting that their custom boot animation doesn't replace and just follow parrot's boot animation
[Android General] donaldta:
If you're referring to the "Parrot" bootlogo or splash screen that appears when you first turn on the unit and not the "Parrot Asteroid" boot animation that follows it then the answer is no. The splash screen is a part of the bootloader. I would hope if someone were to unlock it, then they would offer instructions on how to replace Parrot's Recovery/Bootloader with Clockwork Mod Recovery or Team Win Recovery Project before trivial things such as the bootlogo replacement.
[Android General] zcgofaster:
Seeder?

Has anyone tried Seeder yet on the PAS yet?
[Android General] Whorse:
Further instructions on rooting, installing Google Framework

triple-w.planet-9.com/987-cayman-boxster-electronics/80561-parrot-asteroid-smart-4.html#post744714

I had trouble making it work using the instructions from the amazon kindle page. This page seems to have a little better explanation, and also has links to the files that I was able to make work.

The part about how to set Read/Write permissions and how to install the Vending.apk using SuperUser (root) access was the key. Make sure to do all installations and file moving from the file explorer.

Currently able to get Torque running, along with Torque widgets. Question:

Is there a way to customize the size of widgets, like I can do on my S4 with Apex launcher? I installed Go launcher but I haven't played with it before. Is anyone running a custom launcher on their Asteroid Smart, and have any cool suggestions or pics of the screens?

Note: Being a new user I can't link the address above so might have to copy/paste it.
[Android General] donaldta:
Or you can use the rooting instructions for the Volvo Sensus Connected Touch (SCT). It is based on Parrot hardware and I helped program the menuing batch file which makes the process as easy as pressing a few buttons. The archive included has all the files necessary to install market and framework. I also included a couple of scripts that makes remounting the system drive and adding apps to the whitelist.xml file easy to do.

The ability to resize widgets depends on the launcher that you use. My favorite is Next Launcher.
[Android General] Whorse:
Anyone been able to get Apex launcher working?

I should point out that I used the ES File Explorer, and framaroot 1.4.1 from the kindle fire Root/Google Framework instructions on these forums.
[Android General] donaldta:
I thought Apex Launcher was meant for Ice Cream Sandwich (Android 4.0.3) and up? The Asteroid Smart and Tablet are on Gingerbread (Android 2.3.7).
[Android General] devoidx:
Impossible.
[Android General] Whorse:
Which part is impossible? I definitely did the first part step by step. Not sure about Apex - haven't tried and don't know much about it except it works nice on my phone. I did get the Go.Launcher working
[Android General] donaldta:
It is pretty obvious he's talking about Apex because of the Android OS requirements. He wouldn't be talking about rooting and installing market as just about everyone else has already done it.
[Android General] breakthestatic:
Thanks for the tips, but I still can't get this to work. I'm not sure if it's an issue with Tasker or the package manager, but it seems that the script hangs after it's run. Going through a sleep/wakeup cycle, when I open Tasker to check on things, the unfreeze task is still running (shows the cancel/stop button perpetually). If I manually run the commands via terminal however, they work fine. I'm using the root mode for the task and verified that Tasker has root access in super su. Anything else to try?
[Android General] breakthestatic:
It's definitely the task itself that is running, not the active profile. I did a quick bit of further testing and it seems that pm is causing the problems. I noticed that if I run pm disable com.parrot.audioservice, it never fully returns. The first time I'll get the package state change, but no exit code and no return to the prompt. Is there a place where I could see the logs to figure out what could be causing the hang?
[Android General] donaldta:
Yes, logcat might give you the information. Are you sure that running as root is enabled for the task and SuperSU is allowing it? Because if it isn't actually working then it might give off the symptoms that you witnessing. Try it in a terminal app without being root to see the response similar.
[Android General] LiquidBreadMan:
SUCCESS! The new radio doesn't turn itself on after 10 minutes. And when I do open the car door it turns off automatically after a couple of seconds unless I start the car.

Next is getting Tasked to mute the radio before the static kicks in.

?
[Android General] breakthestatic:
I've attached a logcat from when I try to manually run the task pm disable com.parrot.audioservice. I've ensured that it's being granted root privileges so I'm not sure what's going on. The steps I've taken in the logcat is simply Tasker > Tasks > Unfreeze (run shell pm disable com.parrot.audioservice) as root. after that I changed over to aLogCat and saved the log.
[Android General] devoidx:
Hey Donaldta, I remember reading that you tried Spirit FM radio on Smart, did it work?
[Android General] donaldta:
repost.
[Android General] breakthestatic:
So I noticed in your log that the pm thread (6771) does some extra stuff after shutting down the vm, like:

D/jdwp ( 6772): adbd disconnected

D/jdwp ( 6771): adbd disconnected

D/jdwp ( 6771): Got wake-up signal, bailing out of select

D/dalvikvm( 6771): Debugger has detached; object registry had 1 entries

D/jdwp ( 6772): Got wake-up signal, bailing out of select

D/dalvikvm( 6772): Debugger has detached; object registry had 1 entries

Mine seems to abruptly end with (2279 is the pid of my pm process):

I/AndroidRuntime( 2279): NOTE: attach of thread 'Binder Thread #3' failed

Does that indicate that it's not exiting cleanly, and if so, could that stop future shell commands from running properly? I've noticed that after a cold boot, the first Tasker task will run (unfreeze). However, it seems that the subsequent freeze task on airplane mode does not complete (since the package is already unfrozen on the next wakeup). I've verified that Tasker is performing the command via the Tasker debug log and also verified that root is fine in the SuperSU logs. I really suspect it's something to do with that pm command not returning cleanly. Does that make any sense? Sorry I'm not well versed in Linux.
[Android General] donaldta:
That's only because I'm running the commands through "adb shell". The adbd stands for Adroid Debug Bridge Daemon while jdwp stands for Java Debug Wire Protocol.

Exactly what happens when you try the pm and dumpsys commands through a terminal app? Have you tried importing my profile / task?
[Android General] breakthestatic:
Terminal Emulator outputs 'Package com.parrot.audioservice new state: disabled' when I run pm disable com.parrot.audioservice. However, it never exits back to a command prompt so I'm unable to run dumpsys (or anything else) afterwards. The shell effectively hangs and the only way to get out is to force stop the process via Manage Applications. I also tried your Tasker config and it does the same exact thing regrettably.
[Android General] donaldta:
Most Terminal apps have the ability to open multiple terminal sessions from the overflow menu. Also, which Smart version are you running?
[Android General] breakthestatic:
I'll give that a shot in order to grab the dumpsys data, and I'm running 2.1.5.
[Android General] donaldta:
Maybe try using strace from the [UTILITY] STrace 4.8 - Ultimate debugging utility now ported to Android ! thread.
[Android General] Psy87:
May it be possible to use a IR USB dongle with a remote to control the PAS?
[Android General] LiquidBreadMan:
Yep, it's the Lynx. I'll have to wait try the tasker thing until Sunday. Do you know when the smart goes into airplane mode?

I haven't tried the audio jack yet because I was hoping to leave that available for passengers with iPods and I'd like to keep the dual mode Bluetooth to pair with both my phone and my wife's phone.
[Android General] donaldta:
The Parrot Asteroid Smart (PAS) enters Airplane Mode at the same time it turns off the screen after the "Goodbye!" message is displayed

I guess it would be a trade-off in certain conveniences depending on the situation.
[Android General] LiquidBreadMan:
So, is there any other event I can pick up on to know that power to the radio has been cut? Like an intent to display the Goodbye message?
[Android General] donaldta:
As long as the USB IR Dongle facilitates control via Human Interface Device (HID), otherwise if special drivers are needed then it'll take a quite a bit to get it working.

Well, I don't think that you're having a problem when the power to radio has been cut. It sounds the radio is just picking up static once the Lynx's FM Direct ceases to transmit the radio signal. So the static you're hearing over the speaker is due to the lack of a tuned radio signal when the Lynx shuts off before the Asteroid speakers. I don't think there's a direct way of monitoring that from Android.

I'm fairly new to tasker and haven't had much luck triggering profiles off of intents, so I have been sticking to states. If you figure out how then please let me know how. Here are the logcat outputs which are triggered during the Ignition On/Off triggers which may help you.

There's also a hardware approach to this, since the Asteroid Smart has the Power ANT (blue wire) that provides +12V signaling while it is "on". I'm not sure how the vehicle kit turns on/off the Lynx but theoretically, you might be able to use the rewire blue wire from the Asteroid to keep the Lynx and transmitting a radio signal until the shuts off the speaker.
[Android General] LiquidBreadMan:
That's an interesting idea.
[Android General] mpgrimes:
Why don't you use the power antenna /amp trigger to power a relay to turn the satellite radio on and off... That way it will turn on and off with the smart
[Android General] moogvo:
In reference to the satellite hook up, it sounds like what you need is a power on delay relay to feed the power to the satellite receiver. This will keep the Satellite receiver powered up when you either turn the Asteroid off or turn the car off. I found this one on ebay:

http://www.ebay.com/itm/DC-12V-H3Y-2-Power-On-Time-Relay-Delay-Timer-0-60-Second-DPDT-Base-Socket-NEW-/261320472183

Wiring will be pretty straight forward. You will hook it up to the power antenna lead, constant hot and a ground, then on the other side, positive and negative out to your satellite receiver. It comes from China but the picture shows an Omron relay which is the brand used in most cars from the factory so it should be dependable.
[Android General] jaanusj:
I see some AT commands here, are these related to Unika?

Is the there a method to reproduce standby intent to try it on tablet?
[Android General] qs504792:
Seems like this unit is still completely unchallenged by any compitition. Go Parrot!
[Android General] crashgh:
Realtime temperature (outside & inside )

Hi all,

I thought, it would be nice to have the realtime temperature (outside & inside ) in the statusbar of the parrot.

I found nothing out-of-the-box but this one.

yoctopuce . com/EN/products/usb-sensors/yocto-thermocouple

Is is supported for android, however it leans on the usb-host. (android 3.x + ? )

Does it work in android 2.2 (no, but, The GPS and iPod are also supported in de asteroid smart so i thought, maybey parrot has a build in support for usb-host?

If that is working, it would be relative easy to build an app what shows the temperature in the notification balk. (as an icon or.. )
[Android General] jaanusj:
Asteroid Accessory Box

It is probably not going to work out of the box.

What we could do is create a xda asteroid project "Asteroid Accessory box" and design Arduino based hardware and Android supporting software for it.

Some functions:

1) Measurement of car parameters via can/lin/k-line/obd and additional sensors;

2) Alarm functions - accessory box can wake up asteroid and it would send us e-mail in case of emerqency;

3) Activation of car/asteroid functions over 3G/gsm - wake up your asteroid over mobile phone, start the car ventilation or parking heater, forgot to lock the doors - do it over gsm/3G;

4) Get rid of Unika and get more functions for steering wheel buttons;

5) any other functions you would like to see;

And this accessory would work with PAS/PAT/SCT
[Android General] jmorton10:
Is there any way with this unit to make any display adjustments other than the obvious brightness control??

I had an Eclipse (Fujitsu 10) DVD/NAV/RADIO etc.etc.double din head unit in my truck that was probably 10 tears old and finally stopped working.

I was running my Galaxy Note 3 through the video in connection with an HDMI connection & the picture quality on the Eclipse for videos etc was simply outstanding.

Since the Eclipse is not made anymore, I decided to replace the defective unit with the Parrot Asteroid smart setup. Hooking up my Note 3 the same way as before works fine with the video in, but the image quality of the Parrot totally sucks compared to the old Eclipse unit. The Parrot screen image is very washed out and it is glaringly apparent how had it is next to the AMOLED screen of the Note 3.

I knew all along that the Parrot could not equal the awesome screen of the Note 3, but I did figure it would be somewhat comparable to the old Eclipse unit. The Eclipse had brightness but it also had a contrast adjustment along with a tint adjustment. The image quality wasn't just a little better than the Parrot, it was absolutely night and day better.

Are there any other ways to tweak the image quality of the Parrot or are you just stuck with what you get out of the box??
[Android General] donaldta:
No, I actually have to turn off Remote Steering Wheel controls because the Unika is way too noisy in the logcat since Asteroid 2.1.5 version.

I honestly don't know. I believe this is all handled under the Asteroid Framework. Are you sure that the Tablet doesn't go into standby? Have you tried "logcat > /mnt/sdcard/logcat.txt" and let the system shutdown.

I thought about this a bit. I don't think having a Power On Relya Delay will do anything except for delay turning on the Sirus Linux. If anything, I would stick to use a standard BOSH Automotive Relay connected to the Asteroid's blue wire (Power ANT/AMP) since it powers on/off along with the speakers. There is no reason to add further delays at the beginning or end.

So, something thing happened last night. I left my Asteroid Smart powered on while on my test bench. This morning, I woke up and it seems someone (Santa?) must have initiated Factory Reset. Anyways, since this happens it my Activity Manager (am) and Package Manage (pm) commands do not exit on their own. I had to alter the Tasker Task Shell Scripts to add a " &" at the end of the line to background the process, so it doesn't keep Tasker hanging.
[Android General] moogvo:
You can get relays to do either a delayed on or a delayed off. The power antenna wire should be sufficient to take care of the sat receiver, but if it isn't, there is always the retained power relay method. I have used this type of system to retain power to various accessories after shutting vehicles down.

For example, in our new fire department tanker trucks, you have to leave the pump controller powered up for 2 minutes after shutting the truck down. Our trucks have master battery disconnects that you turn off when leaving the trucks. The relay system powers ONLY the pump controller for the proper length of time after flipping the master switch off. You would think that at $480,000.00, the truck manufacturer would have thought of that. Instead, they had stickers printed up to stick bext to the master switch that says "Wait 2 minutes before turning off!"
[Android General] donaldta:
Right, but you linked a "Power On Relay". :confused:
[Android General] moogvo:
I did. Oops. Here is the correct one:

http://www.ebay.com/itm/TOP-QUALITY-12V-DC-Power-Off-Delay-Timer-Time-Relay-0-60-Second-ST3PF-Base-/251309909316?pt=LH_DefaultDomain_0&hash=item3a833ce544
[Android General] LiquidBreadMan:
Ok. I just ordered one.
[Android General] F2thaK:
Even with the latest update 215, I still get no audio almost 1/3 of the time. I swear its never been this bad. Its frustrating. Plus the stupid power antenna problem is still there. (With key off, bump my car and antenna goes half way up then down)

Parrot get your **** together!
[Android General] mrm2083:
Is there a launcher, or some other way, to just have 6 big icons with no text? Basically something that looks like a car launcher? If not, is there a way to just replace the standard icons with custom ones. I tried using some android programs but the icons keep coming out in a very low resolution.

Thanks
[Android General] LiquidBreadMan:
As far as I know, you can use different launchers. I've personally tried the Smart Launcher, and it works great except for the ability to switch to any of the built in music apps.