Strange problems with SWC

Search This thread

Sanrian

New member
Nov 11, 2014
2
0
Hello!

I have Nedehe TS18 head unit for my Fiat Bravo. I can use basic buttons from steering wheel, for example MUTE, VOL UP, VOL DOWN but I can't change it in SWC app. For example I click "home" function and when I'm trying to assign some button from steering wheel nothing happens. What is important "door open" alert is working. Anyone had problem like that?

I have Simplesoft RP5-FT-001 can bus adapter.
 

rigattoni

Senior Member
Apr 27, 2010
1,705
544
Fuerth
You can not change the buttons as they are provided by CAN. That is the reason that nothing can be changed.
 

Sanrian

New member
Nov 11, 2014
2
0
You can not change the buttons as they are provided by CAN. That is the reason that nothing can be changed.
But if buttons provide different codes why I can't change interpretation of these codes on my device? I want for example that "ARROW UP" button from my wheel do "hang up" function in my device. Seller told I can change functions using SWC app so here is my question :c
 

rigattoni

Senior Member
Apr 27, 2010
1,705
544
Fuerth
May be there is some setting in the settings menu to switch/change buttons, but normally you only can change buttons if they are resistant ones, connected to Key1 and Key2 lines in the radio cable tree.
 

quangtiens

Member
Nov 23, 2021
8
1
Hello!

I have Nedehe TS18 head unit for my Fiat Bravo. I can use basic buttons from steering wheel, for example MUTE, VOL UP, VOL DOWN but I can't change it in SWC app. For example I click "home" function and when I'm trying to assign some button from steering wheel nothing happens. What is important "door open" alert is working. Anyone had problem like that?

I have Simplesoft RP5-FT-001 can bus adapter.
Cause of you connect your head unit with car through the Can bus adapter then you cannot change function of those buttons.
Without Can bus box, you can customize those button as you want.
 

rigattoni

Senior Member
Apr 27, 2010
1,705
544
Fuerth
Cause of you connect your head unit with car through the Can bus adapter then you cannot change function of those buttons.
Without Can bus box, you can customize those button as you want.
Sorry, but if the buttons are CANbus driven, you are not able to change the function without CANbox, you are even not able to use them.
You only can change the buttons if they are resistant related.
The CANbox does not provide these resistant buttons and disconnecting the CANbox does not influence the resistant buttons.
 

TorstenH

Senior Member
Feb 20, 2021
779
176
But it may be possible to use one button for AppSwitcher


Currently it does not work on devices with SWC controlled by canbus because I don't have canbus. That means (according to first post) I need support to check if it's possible. Until now, no one cared enough about that functionality to support me.
 

rigattoni

Senior Member
Apr 27, 2010
1,705
544
Fuerth
But it may be possible to use one button for AppSwitcher


Currently it does not work on devices with SWC controlled by canbus because I don't have canbus. That means (according to first post) I need support to check if it's possible. Until now, no one cared enough about that functionality to support me.
That is all possible even to reconfigure all buttons, but there is a problem... You need that:

  1. You need to have a CAN-sniffer to find the CAN signal which is used for each button.
  2. You need to use some sort of micro computer (Arduino, Raspi) and the hard will to do what you want.
  3. You need to find the CAN message which you want to switch.
  4. You need to be able to develop an app which receives the message and translate this to the message you want to get.... like switching the app.
  5. A lot of time and you need to be frustration tolerant.
May be you should have a look at this page: https://www.instructables.com/CAN-Bus-Sniffing-and-Broadcasting-with-Arduino/ to give you some background what it means to work with CAN related things.

There are also a lot of good videos for CAN sniffing.

I got all these things, but I am still not willing to invest the time just to get more information out of the CAN.
My SWC are working on resistance and it works as I want to have it.
 

TorstenH

Senior Member
Feb 20, 2021
779
176
That is all possible even to reconfigure all buttons, but there is a problem... You need that:

  1. You need to have a CAN-sniffer to find the CAN signal which is used for each button.
  2. You need to use some sort of micro computer (Arduino, Raspi) and the hard will to do what you want.
  3. You need to find the CAN message which you want to switch.
  4. You need to be able to develop an app which receives the message and translate this to the message you want to get.... like switching the app.
  5. A lot of time and you need to be frustration tolerant.
May be you should have a look at this page: https://www.instructables.com/CAN-Bus-Sniffing-and-Broadcasting-with-Arduino/ to give you some background what it means to work with CAN related things.

There are also a lot of good videos for CAN sniffing.

I got all these things, but I am still not willing to invest the time just to get more information out of the CAN.
My SWC are working on resistance and it works as I want to have it.
Another approach could be to block an Android activity (temporarily) and run another app instead. It may be easy if a SWC button starts the set navigation app in its default configuration.

My SWC is working on resistance basis, too. So I need no support and no time from you.
Any my plan is not to analyse CAN protocol or other things on this level of complexity. And to be honest my answer was not addressed to you because you already have a working configuration and your are not the starter of this thread.
 

rigattoni

Senior Member
Apr 27, 2010
1,705
544
Fuerth
Another approach could be to block an Android activity (temporarily) and run another app instead. It may be easy if a SWC button starts the set navigation app in its default configuration.

My SWC is working on resistance basis, too. So I need no support and no time from you.
Any my plan is not to analyse CAN protocol or other things on this level of complexity. And to be honest my answer was not addressed to you because you already have a working configuration and your are not the starter of this thread.
Sorry, but the ticket creator seems to have issues with CAN-related SWC.
So That has nothing to do with your app. I know your app and I am following this thread.
Don´t get me wrong... I really appreciate that you came up with this app, and I would like to see that more people get aware of it and use it.
May be the TC can help you in getting this app also working for CAN SWC.
 

Renate

Recognized Contributor / Inactive Recognized Dev
Feb 3, 2012
3,604
1,601
Boston
www.temblast.com
Nexus 7 (2013)
Moto E5
It looks like we have some real expertise here. I have curiousity (but no CANBUS, only OBD1 because it's a 1995).

Do CAN boxes (like Simplesoft RP5-FT-001) just do CAN level/bitstuffing/filtering and spit out simplified messages or do they do any mapping?
Since they can do "Door open" as well as "Volume up", the serial input is clearly probably not just a /dev/input stream (although that would be possible too).
Is VolUp done by key injection or some API?

I presume that what goes over the serial link (between CAN box and HU) is standardized?
Does the HU ever transmit?

My own Bluetooth SWC (which steals power from the horn) uses an app (service) that sends Intents to switch apps and injects keys for volume/brightness/power.
 

rigattoni

Senior Member
Apr 27, 2010
1,705
544
Fuerth
It looks like we have some real expertise here. I have curiousity (but no CANBUS, only OBD1 because it's a 1995).

Do CAN boxes (like Simplesoft RP5-FT-001) just do CAN level/bitstuffing/filtering and spit out simplified messages or do they do any mapping?
Since they can do "Door open" as well as "Volume up", the serial input is clearly probably not just a /dev/input stream (although that would be possible too).
Is VolUp done by key injection or some API?

I presume that what goes over the serial link (between CAN box and HU) is standardized?
Does the HU ever transmit?

My own Bluetooth SWC (which steals power from the horn) uses an app (service) that sends Intents to switch apps and injects keys for volume/brightness/power.
Hi Renate,

not that easy to answer...
Each single car model has it´s own CAN signal setup.
If you own a well known make like VW, Ford, Mercedes, BMW, most probably it works in both directions as long as the CAN provides these data. There is at least nothing standardized, Even a switch between a Golf 6 and Golf 7 shows up with a different setup and own possibilities.

The CAN box provided from some Chinese seller don´t care much about all different setups. They just provide standard features like volume, clamp 30, RVC and reverse gear, Fast forward, fast backwards, next title, Hang up phone, so the standards, nothing else. May be the CAN signal that the front lights are turned on to switch the unit into some sort of night mode.

Even the output of the CAN box is not standardized. For this reason you need to set the used CAN box in the system settings of your head unit and chose the right car to be able to get the CAN SWC working. Means, these CAN boxes only provide intents which are hardcoded in there. Not that comfortable and not that easy. You really need to analyze the data output of each single CAN box to see what they get, what they transfer and what is implemented in the firmware.

There are some units with a special car form factor which have the CAN integrated in the head unit. These are mostly able to read and send all available CAN signals which are implemented by the car manufacturer, incl. ACC, doors, car settings like alarm, Coming Home light... you name it.
 
  • Like
Reactions: Renate

Renate

Recognized Contributor / Inactive Recognized Dev
Feb 3, 2012
3,604
1,601
Boston
www.temblast.com
Nexus 7 (2013)
Moto E5
Well, addressing the OP's problem: You definitely can remap all the SWC CAN buttons by re-engineering the app (service) that handles the serial input.
Yes, that is probably different code for each HU. If someone wants to post an .apk I'll take a look.

Like every other Android usage I'm sure that there are major differences in people's needs, usage.
I don't even use the SWC for audio. I use them to switch between mapping apps (Google, camping, National Forest maps), GPS app (to see altitude), accelerometer app (to find a level place) and OBD1 app. Also brightness +/-, volume +/-. I especially like the sleep button to turn off the display.

Does the "Coming Home light" alert the mother spaceship?
 
  • Like
Reactions: rigattoni

rigattoni

Senior Member
Apr 27, 2010
1,705
544
Fuerth
Does the "Coming Home light" alert the mother spaceship?
:ROFLMAO:
No... that keeps the lights at the car on for around 30 sec, to prevent the driver from walking through the darkness. Same procedure for "Leaving Home". You press the open button on your remote and the car switches the lights on. Modern stuff, but available in a lot of cars now.
Well, addressing the OP's problem: You definitely can remap all the SWC CAN buttons by re-engineering the app (service) that handles the serial input.
Yes, that is probably different code for each HU. If someone wants to post an .apk I'll take a look.
Appreciate your offer to have a look at the service.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    It looks like we have some real expertise here. I have curiousity (but no CANBUS, only OBD1 because it's a 1995).

    Do CAN boxes (like Simplesoft RP5-FT-001) just do CAN level/bitstuffing/filtering and spit out simplified messages or do they do any mapping?
    Since they can do "Door open" as well as "Volume up", the serial input is clearly probably not just a /dev/input stream (although that would be possible too).
    Is VolUp done by key injection or some API?

    I presume that what goes over the serial link (between CAN box and HU) is standardized?
    Does the HU ever transmit?

    My own Bluetooth SWC (which steals power from the horn) uses an app (service) that sends Intents to switch apps and injects keys for volume/brightness/power.
    Hi Renate,

    not that easy to answer...
    Each single car model has it´s own CAN signal setup.
    If you own a well known make like VW, Ford, Mercedes, BMW, most probably it works in both directions as long as the CAN provides these data. There is at least nothing standardized, Even a switch between a Golf 6 and Golf 7 shows up with a different setup and own possibilities.

    The CAN box provided from some Chinese seller don´t care much about all different setups. They just provide standard features like volume, clamp 30, RVC and reverse gear, Fast forward, fast backwards, next title, Hang up phone, so the standards, nothing else. May be the CAN signal that the front lights are turned on to switch the unit into some sort of night mode.

    Even the output of the CAN box is not standardized. For this reason you need to set the used CAN box in the system settings of your head unit and chose the right car to be able to get the CAN SWC working. Means, these CAN boxes only provide intents which are hardcoded in there. Not that comfortable and not that easy. You really need to analyze the data output of each single CAN box to see what they get, what they transfer and what is implemented in the firmware.

    There are some units with a special car form factor which have the CAN integrated in the head unit. These are mostly able to read and send all available CAN signals which are implemented by the car manufacturer, incl. ACC, doors, car settings like alarm, Coming Home light... you name it.
    1
    Well, addressing the OP's problem: You definitely can remap all the SWC CAN buttons by re-engineering the app (service) that handles the serial input.
    Yes, that is probably different code for each HU. If someone wants to post an .apk I'll take a look.

    Like every other Android usage I'm sure that there are major differences in people's needs, usage.
    I don't even use the SWC for audio. I use them to switch between mapping apps (Google, camping, National Forest maps), GPS app (to see altitude), accelerometer app (to find a level place) and OBD1 app. Also brightness +/-, volume +/-. I especially like the sleep button to turn off the display.

    Does the "Coming Home light" alert the mother spaceship?