How to remap canbus SWC keys? - MTCD Software Development

Hi there
As you may know, if your SWC buttons are connected to the headunit through native canbus (the specific one to your car, with opened door info, aircon info, and so on), you can't remap them using de key study app (it's only for resistive SWC input).
Unfortunately my car has the up-down buttons replicating the left-right ones, so I have 4 buttons but only 2 functions. I would like to remap the up-down buttons to another function but I'm not pretty sure wich part of the firmware would I have to mod.
Does someone know if the canbus SWC codes are managed in mtccanbus.apk? Maybe mtcmanager.apk?
I searched in mtccanbus.apk but I only found code regarding parking radar, door info, aircon....
Thanks in advance.

Same here -> All the buttons are preconfigured and not changable.
mtce-utils can remap those buttons and the ones it can't, they may be mapped to native Android functions via Keylayout. (Try App Buttonmapper)

Xorit said:
Same here -> All the buttons are preconfigured and not changable.
mtce-utils can remap those buttons and the ones it can't, they may be mapped to native Android functions via Keylayout. (Try App Buttonmapper)
Click to expand...
Click to collapse
Hi Xorit
I gave mtcd-utils a try few months ago, but while you can assign new functions to buttons, the native one is still being executed.
Are you having this behaviour now?
Regards.

Pachis83 said:
Hi Xorit
I gave mtcd-utils a try few months ago, but while you can assign new functions to buttons, the native one is still being executed.
Are you having this behaviour now?
Regards.
Click to expand...
Click to collapse
I had two buttons which did the same and figured out, they were executing inbuild Android functions. (in-app menu, back-button).
Those can't be simply remapped by any tool, but altered via Android keylayout. Google it.
Android uses a keylayout similar to the Windows keyboard layout config.
Try executing "keyevent" (google!) via terminal emulator.

Is mtce-utils available on it's own (without custom ROM)? I haven't been able to find it anywhere... I'm running a stock ROM that I'm customizing to my needs (trying to keep temps down), but I'd like to check out mtce-utils...
Thank you!

Hey there,
are there any news to it? I‘m also looking for a solution

Xorit said:
I had two buttons which did the same and figured out, they were executing inbuild Android functions. (in-app menu, back-button).
Those can't be simply remapped by any tool, but altered via Android keylayout. Google it.
Android uses a keylayout similar to the Windows keyboard layout config.
Try executing "keyevent" (google!) via terminal emulator.
Click to expand...
Click to collapse
Thanks Xorit, I will try and let you know.
Regards.

Xorit said:
I had two buttons which did the same and figured out, they were executing inbuild Android functions. (in-app menu, back-button).
Those can't be simply remapped by any tool, but altered via Android keylayout. Google it.
Android uses a keylayout similar to the Windows keyboard layout config.
Try executing "keyevent" (google!) via terminal emulator.
Click to expand...
Click to collapse
Hi Xorit
I have been investigating about the key layout feature but I couldn't do the modification:
1-I found an app in the play store to show the keycodes of each key. I got the keycode for the can-bus keys.
2-I found some .kl files somewhere in Android firmware, but I don't know wich should I edit. I searched for the can-bus keycodes but none was found in the .kl files.
Maybe can-bus key press are managed by a native microntek app? Like mtcmanager or mtccanbus?.
Regards.

Install HAL9k latest software if you hve MTCD/E 8.0 unit. Or check out the headunits over at www.androidautoshop.com
All canbus keys can now be changed in Mod settings in Hals firmware

AndroidAutoShop said:
Install HAL9k latest software if you hve MTCD/E 8.0 unit. Or check out the headunits over at www.androidautoshop.com
All canbus keys can now be changed in Mod settings in Hals firmware
Click to expand...
Click to collapse
Great! I have H9k rom installed, but prior version 3.0. Didn't notice that 3.1 version includes canbus keys remapping.
Thanks for the info.

Pachis83 said:
Great! I have H9k rom installed, but prior version 3.0. Didn't notice that 3.1 version includes canbus keys remapping.
Thanks for the info.
Click to expand...
Click to collapse
Yeah it just came out We tried this on a volkswagen and a mercedes. and it was awsome to see it work just as we wanted.

AndroidAutoShop said:
Yeah it just came out We tried this on a volkswagen and a mercedes. and it was awsome to see it work just as we wanted.
Click to expand...
Click to collapse
O which mercedes did you tried on? (MY, Type)

rabenkind said:
O which mercedes did you tried on? (MY, Type)
Click to expand...
Click to collapse
We have tried it on several now.
GLK x204 2010
E class w211
GL W164
and one more that i cant remember, think it was a C class.

Works fine on c-class S203 / MY 2003

Is there any particularly good software to use to read out the button keycodes? I currently have a "dead" panel except for the AC-buttons, so only steering wheel keys are working as of now, and it's bugging me...

In Hal9K 3.1 you can activate an option somewhere (Mod Settings...) where it says "Show Key Codes when pressed" or something like that. It helps a lot.

AndroidAutoShop said:
We have tried it on several now.
GLK x204 2010
E class w211
GL W164
and one more that i cant remember, think it was a C class.
Click to expand...
Click to collapse
I have a W164 and i cannot remap the lingua buttons (the ones in the middle) to anything. Enabling the key code in Hal9k 3.1 ROM don't give any code.
Any idea ?

hblom said:
Is there any particularly good software to use to read out the button keycodes? I currently have a "dead" panel except for the AC-buttons, so only steering wheel keys are working as of now, and it's bugging me...
Click to expand...
Click to collapse
Less information.
What car and what Android Radio do you have exactly?

rabenkind said:
Less information.
What car and what Android Radio do you have exactly?
Click to expand...
Click to collapse
It's a Witson unit
MCU Version: MTCE_MX2_V2.92_1
And activating the ability to see the keycodes only shows keycodes from steering wheel buttons

hblom said:
It's a Witson unit
MCU Version: MTCE_MX2_V2.92_1
And activating the ability to see the keycodes only shows keycodes from steering wheel buttons
Click to expand...
Click to collapse
Then I guess you have a hardware problem.

Related

Hardware button codes

I'm trying to configure the controls for the Genesis Plus emulator but its done through a text file that needs the hardware button codes.
Is there any software that can show all the codes for your phone as you press the buttons on it?
Thanx.
-IK- said:
I'm trying to configure the controls for the Genesis Plus emulator but its done through a text file that needs the hardware button codes.
Is there any software that can show all the codes for your phone as you press the buttons on it?
Thanx.
Click to expand...
Click to collapse
http://wiki.xda-developers.com/inde...ed to Play Gameboy Advance Games on your PDA?
AEKmap (google it) has a utility included 'aekmapscan' that does this.
there's another japanese one, but I can't remember what it is...Q-something.
I found it, it's called PQz-check, found here:
http://www.nicque.com/PQz/
Xetra's tools:
http://xetranet.free.fr/xbar2/download/tools.zip
use the keycodes.exe

Does anyone know how to simulate a keypress?

Hello all,
In WM6 does anyone know how to simulate a keypress without using macro code?? I want to be able to create a link/shortcut to 2 keys...
Record button (keycode 121)
Voice tag button (keycode 195)
Thanks for any help!!!
vjgrace said:
Hello all,
In WM6 does anyone know how to simulate a keypress without using macro code?? I want to be able to create a link/shortcut to 2 keys...
Record button (keycode 121)
Voice tag button (keycode 195)
Thanks for any help!!!
Click to expand...
Click to collapse
Well I understand what you mean by simulating a keypress but I can't understand what you mean by it.
I could write you a small app in .net cf 2.0 to keypress but I don't know if that's you want.
Why not create a shortcut to the actually applications in the windows folder? I have not tried it, but i believe that they should be accessable...
ignore this space
Exitao said:
"x#" is the number that is assigned to that key by the keymap, if Long_VolDown.lnk didn't have it, it wouldn't work; I used "x" because my phone's in the bedroom and I don't feel like getting up to check.
Click to expand...
Click to collapse
No, that's wrong. x is the number of ASCII characters after # allocated to command-line arguments:
[num of chars]#[command line] [optional parameters]​ Look here for more info...
@vjgrace: I don't understand what you are looking for. Can you explain what exactly you want to do?
kartam said:
Well I understand what you mean by simulating a keypress but I can't understand what you mean by it.
I could write you a small app in .net cf 2.0 to keypress but I don't know if that's you want.
Click to expand...
Click to collapse
@kartam,
Yes, that is exactly what I am looking for...A simple exe that presses 121 and a simple exe that presses 195. Weird, but that is it...the reason (AEBPlus). Currently I am running xmacros (xbar) to perform these actions but AEBPlus doesn't recognize xmc files. I am unable to have 2 more keypress options on one button because I am running 2 xmc files on the camera button...If I had 2 exe files to do these keypresses that would do it, I would be able to have 4 options on one button, I could use AEBPlus fully.
I have Vis. Studio (VS) and I have searched before to do this without success (I am use to C++ and VB, but nothing related to Smartphones). It is such a simple task, I couldn't find how to simply build 2 exe files to perform simply one keypress each (one for 195 keycode and one for 121). If you could do this it would be great, or if you could just give me an idea for VS, I could do it myself . There will be little to no code for VS, I just need to know what to use: language, parameters/arguments, and which properties, if you know what I mean.
@ Nitrogenious,
Thanks for replying, the above description should clarify, I hope .
@phatman81,
Tried but unsuccessful, but thanks for comments.
Thanks all for comments!!
Couldn't you use the keybd_event WinAPI call in a C++ program? I've never used it in Windows Mobile before, but according to the API documentation, it says it works.
http://msdn2.microsoft.com/en-US/library/aa928103.aspx
Toad said:
Couldn't you use the keybd_event WinAPI call in a C++ program? I've never used it in Windows Mobile before, but according to the API documentation, it says it works.
http://msdn2.microsoft.com/en-US/library/aa928103.aspx
Click to expand...
Click to collapse
Good suggestion, thanks!! I will check into it, if it works THANK YOU!!! I have been trying to find a solution for quite some time.

HW Keyboard not working in citrix RDP

hi guys,
I am using a citrix ica client as a remote desktop.ANd unfortunately its not accepting the Hardware keyboard strokes at all. Its only accepting virtual keyboard.Can any kind soul tell me how to completely disable the virtual keyboard and use only the hardware keyboard please ?
I tried changing the few roms availabe, but nothing helps.
Suggestions are welcome , as whats the point of not able to use a keyboard in Remote desktop clients ?
vijayvasa
I've just been reading about RDP. It should work if it is install on the phone, not the card, but you can try the opposite, if its not working.
deanjp1 said:
I've just been reading about RDP. It should work if it is install on the phone, not the card, but you can try the opposite, if its not working.
Click to expand...
Click to collapse
I have tried the citrix client with installed on device.
I will try and then will post the feedback.
vj
I'd forgotten about Citrix until reading this thread. I've just installed it and have the same problem - no working hardware keyboard...
I found another program in witch the hardware keyboard doesn't work; iGO8. I Haven't been able to figure out why, thinking it was an iGO8 problem. Now reading Citrix also doesn't work maybe it isn't an iGO prblem after all.
Still searching for a solution; iGO *must* be use in 320*240 mode, and it seems silly not being able to use the hardware keyboard.
I have a good news. The hardware keyboard works in the ica client. I believe the "Enable Palette Device" in the settings did the trick for me.
Ashkhan said:
I have a good news. The hardware keyboard works in the ica client. I believe the "Enable Palette Device" in the settings did the trick for me.
Click to expand...
Click to collapse
Can you kindly tell us which version of rom , that you got this working on ?
VJ
Ashkhan said:
I have a good news. The hardware keyboard works in the ica client. I believe the "Enable Palette Device" in the settings did the trick for me.
Click to expand...
Click to collapse
Hi yaa, I tried with your setting enabled on 1.90.405.1 Uk version official rom and am still unable to make the HW keyboard work in the ica client ? Hope you can tell me your rom version ? Thank you.
vijayvasa said:
Can you kindly tell us which version of rom , that you got this working on ?
VJ
Click to expand...
Click to collapse
Sure.
ica client version: 10.0.57037
ROM: 1.90.401.1 WWE
I played with settings again and unfortunately the previous option indeed doesn't enable the keyboard.
You have to modify the IME settings. Either in global settings or for each server (from the main screen select the remote server, press edit, edit options, set IME settings). Set it to "Disable Client IME" (default is Disable Server IME). Tested it this time
Sorry for the confusion, I enabled more options at the same time.
Just in case anyone else has been having the same problem as me, use Pocket IE to get to the /localaccess page instead of Opera.
le_cactus said:
I found another program in witch the hardware keyboard doesn't work; iGO8. I Haven't been able to figure out why, thinking it was an iGO8 problem. Now reading Citrix also doesn't work maybe it isn't an iGO prblem after all.
Still searching for a solution; iGO *must* be use in 320*240 mode, and it seems silly not being able to use the hardware keyboard.
Click to expand...
Click to collapse
It seems the xT9 software breaks keyboard handling somehow. After cooking a ROM without it iGO8 works fine. I'm sure there must be another way (like with Citrix) but I'm happy now.
Cheers,
Cacti

360 factory camera OSD alignment.

Hi all, I have this bugging issue with the all round 360 camera on screen display and text which should all be to the right of the screen and not on the left. I have an Australian nissan 2018 Qashqai Ti with the Dasaita PX6 head unit. There is no option in the menu system to rectify this problem other than the X - mirror function only. I have contacted Dasaita and it seems not big of a problem for them to rectify. Could it be the vehicles Canbus or canbus decoder which came with the head unit that's has messed up the graphics and text alignment?
Thank in advance.
sandpita said:
Hi all, I have this bugging issue with the all round 360 camera on screen display and text which should all be to the right of the screen and not on the left. I have an Australian nissan 2018 Qashqai Ti with the Dasaita PX6 head unit. There is no option in the menu system to rectify this problem other than the X - mirror function only. I have contacted Dasaita and it seems not big of a problem for them to rectify. Could it be the vehicles Canbus or canbus decoder which came with the head unit that's has messed up the graphics and text alignment?
Thank in advance.
Click to expand...
Click to collapse
Just an update, I have successfully edited the Auto Park file and realigned all the graphics accordingly. It was a self crash course in Android Studio and in the end it was so easy.
sandpita said:
Just an update, I have successfully edited the Auto Park file and realigned all the graphics accordingly. It was a self crash course in Android Studio and in the end it was so easy.
Click to expand...
Click to collapse
Hi,
can you say which canbus decoder you have installed? I have a 2016 Nissan xtrail T32 with the Dasaita PX6 head unit but cannot get the PA option for Park Assist which was available on the original factory head unit.
Thank you.
yugisop said:
Hi,
can you say which canbus decoder you have installed? I have a 2016 Nissan xtrail T32 with the Dasaita PX6 head unit but cannot get the PA option for Park Assist which was available on the original factory head unit.
Thank you.
Click to expand...
Click to collapse
Dasaita CB008 canbus.
It supports the factory 360 full camera and PA system (PA language only in English ), support BOSE amplifier , support original usb cable and steering wheel control.
Note: Make sure you have selected the right vehicle in the Canbus settings.
sandpita said:
Dasaita CB008 canbus.
It supports the factory 360 full camera and PA system (PA language only in English ), support BOSE amplifier , support original usb cable and steering wheel control.
Note: Make sure you have selected the right vehicle in the Canbus settings.
Click to expand...
Click to collapse
For example on my 2018 Qashqai, these are my Canbus settings.
sandpita said:
For example on my 2018 Qashqai, these are my Canbus settings.
Click to expand...
Click to collapse
Thanks, tried those but when I go into 360 mode with the camera I still DO NOT get the "PA" option on screen. Maybe there is something else missing. Have tried contacting Dasaita and they basically pointed me back to the same settings as you mentioned.
These are my factory harnesses below, one larger than the other however I have seen in some videos, other vehicles where the 2 that are actually connected are of similar width and the larger one not used. However while the Dasaita harness has 3 connectors (2 x 20 pin and 1 x 40 pin), my vehicle only has 2 - 1 wide (40 pin) and 1 small (20pin).
Maybe i'll have to go look for the old original unit to confirm if "PA" Park Assist was actually included in my model to confirm my memory.
Appreciate the feedback..
Hi @sandpita
Could you help as I have the same issue but on a ts10 on my nissan Qashqai RHD UK model.
iceze said:
Hi @sandpita
Could you help as I have the same issue but on a ts10 on my nissan Qashqai RHD UK model.
Click to expand...
Click to collapse
Hi mate, is your HU a MTCD , ie Px5,Px6?
No, it's a head unit of AliExpress from a company called Sinosmart.
I think it's a TS10 model head unit with a uis7862 processor.
But I've had a look at the overlay issue. Came to the conclusion it was the difference between LHD and RHD cars and how their 'Park assist' is shown.
My issue looks pretty identical to the YouTube video. I'll try and attach a picture.
I've found this apk and I've tried to use Android studio on it but can't get my head around it. I think it could possibly be the one that controls the OSD inpark assist?
@sandpita Could you check if possible that this would be the file? How could I go about editing it if so?
https://drive.google.com/file/d/1f7CiS-elC6_NwGXIS6VuDgulZXHDK32Q/view?usp=sharing
Thanks!
iceze said:
I've found this apk and I've tried to use Android studio on it but can't get my head around it. I think it could possibly be the one that controls the OSD inpark assist?
@sandpita Could you check if possible that this would be the file? How could I go about editing it if so?
https://drive.google.com/file/d/1f7CiS-elC6_NwGXIS6VuDgulZXHDK32Q/view?usp=sharing
Thanks!
Click to expand...
Click to collapse
That is the correct APK to edit, use APK Editor Studio to make changes in the layout/reverse.xml to move each graphic button to the right position.
Cheers mate. I've been trying the last few days but couldn't get my head around it.
I've used the Java decompilers website to decompile it and was trying to import the whole APK into android studio so I could change it in the GUI. Just couldnt get any gui up.
Will try this tonight!
Thank you
sandpita said:
That is the correct APK to edit, use APK Editor Studio to make changes in the layout/reverse.xml to move each graphic button to the right position.
Click to expand...
Click to collapse
Hi sandpita, is it possible to upload the apk file to show the correct OSD for the RHD? Thanks. BTW I have the same canbus as yours - CB008.
ymagro said:
Hi sandpita, is it possible to upload the apk file to show the correct OSD for the RHD? Thanks. BTW I have the same canbus as yours - CB008.
Click to expand...
Click to collapse
Make sure you make a backup of the original file, this version is for Android 10 and you must have root access.
Delete the original file and copy my file into it's folder. Reboot you headunit and the adjustment to RHD will be updated.

PS5 wrong button mapping

Hi,
PS5 Pad have a bad button mapping on Google Chromecast with Google TV , latest version Android 10
Anybody know if it's possible to change the button mapping ?
I 've see some app but they require root in order to remap button and I don't know if I can root my device.
Best regards
Albert

Categories

Resources