9

AppSwitcher - smart SWC launcher (for Junsun, Xtrons and similar devices) incl....

 11 months ago
source link: https://forum.xda-developers.com/t/appswitcher-smart-swc-launcher-for-junsun-xtrons-and-similar-devices-incl-autostart.4435555/page-24#post-88591501
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

AppSwitcher - smart SWC launcher (for Junsun, Xtrons and similar devices) incl. autostart

TorstenH

Senior Member
Feb 20, 2021 1,807 t.me Realme GT 2 Pro
Hello, today I installed the program, I use it .. It's strange that the GPS button does not work the first time. Only from the second or even the third time. In principle, for 1 day of use, little can be said. We will continue to use, look. Thank you very much for the program. It's a pity there is no Russian language.

I would need further information to provide an answer. E.g. you could make a picture of the "About Screen" so I can see your device information.
And additionally a photo of your "Log listener" settings.

TorstenH

Senior Member
Feb 20, 2021 1,807 t.me Realme GT 2 Pro
Does this override the default mode button behaviour on Xtrons?

No it doesn't overwrite a button. But especially if you have a dedicated button to start the navigation app or if you can assign a button to start the navigation app, it should work on Xtrons, too..

Another possibility is to bypass the CAN box for SWC (see next post). Unfortunately that's not possible for all cars.

Last edited: Sunday at 10:55 PM

TorstenH

Senior Member
Feb 20, 2021 1,807 t.me Realme GT 2 Pro

idea.png
I supported a XDA user installing his Junsun head unit and checked the pinout of the original head unit.

His SWC is connected via a CAN box and the keys are mapped fixed to its functions. You know that the SWC learning function can't be used if a CAN box is in place.

But in his case it's easy possible to bypass the CAN box for SWC - without loosing the other CAN related features by connecting the marked wires to KEY1 and GND of the head unit, instead of the CAN box.
IMG_20230528_093111.jpg
The result is a working SWC study and the easy use of AppSwitcher via a key of his choice.

Last edited: Sunday at 10:58 PM

h2official

Member
Apr 15, 2016
I managed to run the application on an AWESAFE PX9s (== Junsun V1 "pro" / MT 8667 8G Ram + 128Go rom - Alps FF_866x spm8667p1_64) in a 2009 Peugeot 308 MkI. The buttons are not reassignable with the "SWC" application, as they are connected via a G-PSA-RZ-51 CAN box (set to CAN Type = 127).

The buttons are not configurable, and the button I'm interested in switches the HU's modes (FM/Bluetooth etc..).

Edit: *Warning: this makes the built-in FM radio unusable! If you value radio, this won't work for you. Or you'll have to install an IP radio application.

First, I installed AppSwitcher according to the normal installation procedure.
Secondly, following TorstenH's advice, I tried to disable all the options in the system menu: 8888/"Menu Icon"*: to do this, you have to press twice on all the functions that appear on the right so that they move to the list on the left. Once done, press "SAVE".
After rebooting, the MODE button will no longer do anything.
Following TorstenH's advice, I installed and activated logcatreader with the nDealPkey filter by clicking on the magnifying glass. By clicking several times on the button I was looking for, I found that in my case the button of interest gave the value nDealPkey = = 10.
So I entered this value in the "short button press log entry" parameter of AppSwitcher's Log Listener menu, and voilà!

Now all you have to do is configure your favorite settings and applications! For the record, on this unit, the "Automate" autostart also works correctly.

There are, however, few bugs I've encountered:
- Sometimes, when switching to the launcher ("Lauwnchair" in my case), you have to press several times for the window to appear, but the "beep" is heard, and the keystroke is recorded in the logs. Other times, it works right on first attempt. In all other applications, it's fine.
- I installed the latest version and activated the "smart apps" in foreground, but it doesn't seem to work. The only apps that appear are the ones I configure (in my case: Spotify, Maps and the launcher). However, I didn't try to disable everything and leave just "smart apps". Edit: Not a bug, I had misunderstood how it worked.
- The equalizer (or the shortcut to it) doesn't appear in the window after activation and reboot. Edit: Not a bug, I had misunderstood how it worked.
- Sometimes, after saving and rebooting in a system menu (8888/8878), the default navigation engine is reset to "Maps", which then requires reapplication of "AppSwitcherStarter" in the navigation settings after reboot. This may be a default setting made by the mainapp when the parameters were saved.

In any case, thanks again for the application!

For more information, here are the button "nDealPkey" values I've been able to identify for myself:
Mode = 10; Vol + = 19; Vol - = 20; next track = 44; prev track = 45
the button on the windshield washer control (a.k.a onboard display "show", the one that displays consumption information) : "cycle show" = 8
Last edited: 46 minutes ago

TorstenH

Senior Member
Feb 20, 2021 1,807 t.me Realme GT 2 Pro
I managed to run the application on an AWESAFE PX9s (== Junsun V1 "pro" / MT 8667 8G Ram + 128Go rom - Alps FF_866x spm8667p1_64) in a 2009 Peugeot 308 MkI. The buttons are not reassignable with the "SWC" application, as they are connected via a G-PSA-RZ-51 CAN box (set to CAN Type = 127).

The buttons are not configurable, and the button I'm interested in switches the HU's modes (FM/Bluetooth etc..).

First, I installed AppSwitcher according to the normal installation procedure.
Secondly, following TorstenH's advice, I tried to disable all the options in the system menu: 8888/"Menu Icon": to do this, you have to press twice on all the functions that appear on the right so that they move to the list on the left. Once done, press "SAVE".
After rebooting, the MODE button will no longer do anything.
Following TorstenH's advice, I installed and activated logcatreader with the nDealPkey filter by clicking on the magnifying glass. By clicking several times on the button I was looking for, I found that in my case the button of interest gave the value nDealPkey = = 10.
So I entered this value in the "short button press log entry" parameter of AppSwitcher's Log Listener menu, and voilà!

Now all you have to do is configure your favorite settings and applications! For the record, on this unit, the "Automate" autostart also works correctly.

There are, however, few bugs I've encountered:
- Sometimes, when switching to the launcher ("Lauwnchair" in my case), you have to press several times for the window to appear, but the "beep" is heard, and the keystroke is recorded in the logs. Other times, it works right on first attempt. In all other applications, it's fine.
- I installed the latest version and activated the "smart apps" in foreground, but it doesn't seem to work. The only apps that appear are the ones I configure (in my case: Spotify, Maps and the launcher). However, I didn't try to disable everything and leave just "smart apps".
- The equalizer (or the shortcut to it) doesn't appear in the window after activation and reboot.
- Sometimes, after saving and rebooting in a system menu (8888/8878), the default navigation engine is reset to "Maps", which then requires reapplication of "AppSwitcherStarter" in the navigation settings after reboot. This may be a default setting made by the mainapp when the parameters were saved.

In any case, thanks again for the application!

For more information, here are the button "nDealPkey" values I've been able to identify for myself:
Mode = 10; Vol + = 19; Vol - = 20; next track = 44; prev track = 45
the button on the windshield washer control (a.k.a onboard display "show", the one that displays consumption information) : "cycle show" = 8

I will provide a detailed answer regarding your identified bugs later because in some cases it seems to be just a confusion how the options work...

Reactions: h2official

TorstenH

Senior Member
Feb 20, 2021 1,807 t.me Realme GT 2 Pro
I managed to run the application on an AWESAFE PX9s (== Junsun V1 "pro" / MT 8667 8G Ram + 128Go rom - Alps FF_866x spm8667p1_64) in a 2009 Peugeot 308 MkI. The buttons are not reassignable with the "SWC" application, as they are connected via a G-PSA-RZ-51 CAN box (set to CAN Type = 127).

The buttons are not configurable, and the button I'm interested in switches the HU's modes (FM/Bluetooth etc..).

You may check the pinout of your original radio. I think the chances are high that only a resistance matrix is connected directly to the head unit.

forum.xda-developers.com

AppSwitcher - smart SWC launcher (for Junsun, Xtrons and similar devices) incl. autostart

AppSwitcher SWC (Steering Wheel Control) app launcher Stay focused on the street and don't touch the head units display to switch between apps. Support the development of this free app via ko-fi.com/appswitcher Please note: This app is...
forum.xda-developers.com forum.xda-developers.com
First, I installed AppSwitcher according to the normal installation procedure.
Secondly, following TorstenH's advice, I tried to disable all the options in the system menu: 8888/"Menu Icon": to do this, you have to press twice on all the functions that appear on the right so that they move to the list on the left. Once done, press "SAVE".
After rebooting, the MODE button will no longer do anything.

This is a possibility but I expect the radio app isn't working, now.

Following TorstenH's advice, I installed and activated logcatreader with the nDealPkey filter by clicking on the magnifying glass. By clicking several times on the button I was looking for, I found that in my case the button of interest gave the value nDealPkey = = 10.
So I entered this value in the "short button press log entry" parameter of AppSwitcher's Log Listener menu, and voilà!

Now all you have to do is configure your favorite settings and applications! For the record, on this unit, the "Automate" autostart also works correctly.

There are, however, few bugs I've encountered:
- Sometimes, when switching to the launcher ("Lauwnchair" in my case), you have to press several times for the window to appear, but the "beep" is heard, and the keystroke is recorded in the logs. Other times, it works right on first attempt. In all other applications, it's fine.

That would require further investigation by checking the Android log. Unfortunately I only tested with Agama, the stock launcher and on my phone without issues.

- I installed the latest version and activated the "smart apps" in foreground, but it doesn't seem to work. The only apps that appear are the ones I configure (in my case: Spotify, Maps and the launcher).

"Smart List" is not intended to enhance this list of selected media and navigation apps automatically. I want to avoid to collect all recently ran apps because AppSwitcher would offer apps which makes no sense to run while driving. E.g. the Android settings app.

However, I didn't try to disable everything and leave just "smart apps".

"Smart List" will offer the most recently run media/navigation app first (they need to be selected). And it will suppress the app which is currently in foreground.
The idea is to be able to switch between media app and navigation app by one key press.

- The equalizer (or the shortcut to it) doesn't appear in the window after activation and reboot.

It will be only offered when you touch on the header of the dialog or when you swipe over the app list.
I want to avoid people playing around with the equalizer while driving.

- Sometimes, after saving and rebooting in a system menu (8888/8878), the default navigation engine is reset to "Maps", which then requires reapplication of "AppSwitcherStarter" in the navigation settings after reboot. This may be a default setting made by the mainapp when the parameters were saved.

Please check if you activated the setting "Disable navi start activity". Please disable it.

In any case, thanks again for the application!

For more information, here are the button "nDealPkey" values I've been able to identify for myself:
Mode = 10; Vol + = 19; Vol - = 20; next track = 44; prev track = 45

Thanks for this very helpful information for 8667 units.

the button on the windshield washer control (a.k.a onboard display "show", the one that displays consumption information) : "cycle show" = 8

This is a special key of your car?

h2official

Member
Apr 15, 2016
You may check the pinout of your original radio. I think the chances are high that only a resistance matrix is connected directly to the head unit.

Unfortunately I don't see any "free" threads like in your previous post, only audio related and CanBus L/H. Concerning the resistance matrix, I don't think it's that on my car, as the HU receives information on consumption, outside temperature, lights state, etc...

This is a possibility but I expect the radio app isn't working, now.

I can confirm that the application starts up and closes a few seconds later without making the slightest sound.
I don't use the radio, so it's fine for me, but I'll look into alternative applications... For those who don't need "real-time" radio and have a permanent connection, you can use IP radios.

That would require further investigation by checking the Android log. Unfortunately I only tested with Agama, the stock launcher and on my phone without issues.

I didn't manage to do it again today, I'll keep an eye on it after a reboot.

"Smart List" is not intended to enhance this list of selected media and navigation apps automatically. I want to avoid to collect all recently ran apps because AppSwitcher would offer apps which makes no sense to run while driving. E.g. the Android settings app.
"Smart List" will offer the most recently run media/navigation app first (they need to be selected). And it will suppress the app which is currently in foreground.
The idea is to be able to switch between media app and navigation app by one key press.

Thanks for the explanations, this time I actually took the time to read the description... 😓 And it's clear! Sorry about that! So it works correctly.

It will be only offered when you touch on the header of the dialog or when you swipe over the app list.
I want to avoid people playing around with the equalizer while driving.

Oh right, I was expecting to see a button. I forgot to look, I'll try again later.

Please check if you activated the setting "Disable navi start activity". Please disable it.

It is properly deactivated

This is a special key of your car?

I don't think it's anything special. At least all Peugeot models with a central display screen should probably have this button, as it's what allows you to cycle between displays of fuel consumption, estimated remaining distance and so on. I attach an image.

Attachments

  • peugeot_RD4_pineout.png

    peugeot_RD4_pineout.png
    112 KB · Views: 0
  • peugeot_radio_can-commands.png

    peugeot_radio_can-commands.png
    2.1 MB · Views: 0

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK