Question Steering wheel music next/prev crash - FYT Android Head Units

Whenever I try to change songs outside the playing app I lose all volume, next/prev controls. I discovered a log and I discovered that there is a file called "CanId.txt" but nothing is written in it. Is there supposed to be a string in it which the code refers to? Can anyone help me make sense of the crash log?
versionName=1.0
versionCode=2002131246
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.contains(java.lang.CharSequence)' on a null object reference
at app.ToolkitApp.mediaKey(ToolkitApp.java:311)
at app.ToolkitApp.mediaKey(ToolkitApp.java:302)
at app.ToolkitApp.mediaNext(ToolkitApp.java:192)
at module.main.HandlerMain.mcuKeyDown(HandlerMain.java:3922)
at module.canbus.analysis.HandlerAnalysis.canbusKeyDown(HandlerAnalysis.java:3151)
at module.canbus.analysis.HandlerAnalysis.keyEvent(HandlerAnalysis.java:2858)
at module.canbus.CAR_0424_XP_KeLeiAo.onHandle(CAR_0424_XP_KeLeiAo.java:148)
at module.canbus.analysis.CanbusTypeXP1.onReceive(CanbusTypeXP1.java:102)
at dev.ReceiverMcu.onHandle(ReceiverMcu.java:1119)
at dev.ReceiverMcu.onReceive(ReceiverMcu.java:216)
at util.SerialThread.run(SerialThread.java:76)
Click to expand...
Click to collapse

An empty value is given to "something" where a string was expected. This goes wrong in the CANbus functions.
And how on earth do you change songs outside the media app? and why?
Or do you mean that you use your steering wheel buttons to change a song while the media app is active?
In that case you need to go back to the reseller either to aks them for the correct CAN bus porotocol, or to mention that there is a bug in the CAN bus protocol decoding for your car/CANbus controller.

surfer63 said:
An empty value is given to "something" where a string was expected. This goes wrong in the CANbus functions.
And how on earth do you change songs outside the media app? and why?
Or do you mean that you use your steering wheel buttons to change a song while the media app is active?
In that case you need to go back to the reseller either to aks them for the correct CAN bus porotocol, or to mention that there is a bug in the CAN bus protocol decoding for your car/CANbus controller.
Click to expand...
Click to collapse
I mean when I open music and go to maps for example, I can't skip songs anymore.
I guess I have no other options other than to visit the dealer.

Related

GSPlayer with AVRCP!!

Hello everybody,
after my resume-plugin for the Windows Media Player i have developed a little AVRCP agent, wich allows to use AVRCP in combination with the GSPlayer, even to start the GSPlayer by pressing the "start" button on the A2DP Headset.
If there´s anyboby interested in, i would post it in this thread....
Greets,
Thomas
core
core player is better
I'm interested in that plugin. Thanks.
I'm interested, could you please post it?
The Agent......
Ok, here is the agent!
It is a little app(NOT a plugin for the GSPlayer!) wich runs in background. The app uses the Windows Media Player plugin for parsing the AVRCP signals (thank you to Mirko Schenk from MortPlayer for his help!!).
On startup you do not see anything from the app! When you start it a second time, you see an menu at the bottom (OK and SETTINGS) where you can configure various things like the path to the GSPlayer and timings for double and triple clicks. Don´t click the OK button, because the app will exit after that! Just leave it run in background. The menu disappears after clicking somewhere else.
When you have configured the GSPlayer path, the plugin ready to work.
Headset Button functions:
Play - click - If GSPlayer is not running, it will startup, if it is running you can switch between play and pause.
Play - double click - turns the screen off
Play - triple click - opens the "File Open" Dialog
Play - long click - exits the GSPlayer. you can start it again with another click!
Forward - click - jumps forward one track.
Forward - double click - fast forward.
Backward - click - jumps back one track.
Backward - double click - fast rewind.
OK, that´s all. The best thing is to start the app in autostart, it is only 50kb of size and uses about 50-100kb of main memory! Then you are able to start the the GSPlayer when you connect your headset.
I´ve tested it with the Motorola HT810 Headset under WM6, but it SHOULD work under WM5 and with any other Headset wich is supported by the Windows Media Player. I´am working at a new version, where you can fully configure the functions of the buttons, e.g. start any other app and control it by sending WM_ messages.....
Ok, then enjoy.
Any feddback is welcome! Excuse my english if there are any mistakes in the post, but i am german..
Greets,
Thomas
This is exactly what I was looking for! I love GSPlayer. The agent works for all single click functions, but the double and triple clicks don't work for me. If I try to set the times for those functions, it doesn't get saved. It just reverts back to blank. I don't really need those functions, but I thought you'd want to know about it.
Question please for those using GS Player...
When Itried GS Player months ago... I noticed it can't select and play every MP3 songs I have. It only can play 10 songs.
For example, I have 100 MP3 songs in one folder. With WMP or TCPMP, if I select all and press play. It will play ALL 100 MP3 songs until the end or it runs out of battery. BUT with GS Player, it only can select 10 songs even if I MANUALLY select them one by one.
My question is: Does GS Player still suffer from this BUG???
---
rofl ,i dont know what gsgetfile version you are using..but..trust me..its not normal.
AVRCP - How did you do that?
Wolfman, could you point me to some sites that explain how to add AVRCP support to Windows Mobile apps?
I did a lot of searching, but haven't found the "holy grail" ...
pshaw118 said:
This is exactly what I was looking for! I love GSPlayer. The agent works for all single click functions, but the double and triple clicks don't work for me. If I try to set the times for those functions, it doesn't get saved. It just reverts back to blank. I don't really need those functions, but I thought you'd want to know about it.
Click to expand...
Click to collapse
That´s strange. Which device and OS are you using? I tested it on universal and WM6.....
Thanks Wolfman for your great job
By the way: i have modified the GSPlayer Source, so it can display Album or Track covers and changed some Parameters so that the Player is VGA-Compatible (i think someone did this before too). There are some VGA-Skins wich looks really nice.
Anyone interested?
VGA updated GSplayer
I would be very interested in your modified GSplayer and VGA skins, please let me know where I can download them from so I can try it out. Great work.
Here are the Files.
It´s just the gsplayer exe and one dll. The SubDirs are some VGA skins i have collected.
If there is a jpg file with the same Name as the mp3 file in the directory, it will be shown at the bottom. If not and there is a file named "folder.jpg" in the directory it will be displayed instead.
is it possible to change?
from:
Forward - click - jumps forward one track.
Forward - double click - fast forward
to:
Forward - double click - jumps forward one track.
Forward - Click - fast forward
thx
Yes, i have already change it, because i like it better, too.
This is the newest Version of the AVRCP-Agent.
New Features:
-Changed double and dingle click behaviour of forward/backward buttons
-Pause and Resume the GSPlayer on incoming call.
-If you press the VoiceCommand Button, the Player will pause too.
Greets,
Thomas
Hey, can we adapt this to other programs, like say, TCPMP?
Or better yet, can we assign custom commands to the AVRCP calls? For example, maybe I'd like a forward-press to launch WMP, and a back press to launch TCPMP, or something along those lines?
I could see this being very useful in my car since I have a AVRCP / A2DP stereo unit.
It would be interesting to have a control start the GPS app on my phone..
Great agent
Thanks very much for this agent it works great. If I could get the universal to ring through the internal speaker as well as the bluetooth headset at the same time I would have the perfect solution from my persepective.
Dishe said:
Hey, can we adapt this to other programs, like say, TCPMP?
Or better yet, can we assign custom commands to the AVRCP calls? For example, maybe I'd like a forward-press to launch WMP, and a back press to launch TCPMP, or something along those lines?
I could see this being very useful in my car since I have a AVRCP / A2DP stereo unit.
It would be interesting to have a control start the GPS app on my phone..
Click to expand...
Click to collapse
It´s no Problem to start other Applications, i plan to make the commands to be customizable. To start the WMP is a problem, because i use the WMP-AVRCP plugin to parse the AVRCP commands. It will start, but then there are 2 AVRCP Application running, this would be problematic.
To control the TCPMP would be no problem, if would have the corrosponding WM_ Messages to control the TCPMP. I would need the TCPMP Source code to do so.
I you just need a button to start your GPS App, just replace the path to the GSPlayer in "Settings" with the path to your GPS-App.
the new settings for one/doble click arent really confortable for my hbh-ds970
will you release the configurable version of this ?
also, ANY chance you can not only make gsplayer to pause, but also send sound to the loudspeaker on a call (for the ringtone )
i dont know if its a WM limitation, but i hate not hearing my ringtones and missing calls when i drive

[App Request/Idea] Music controll

Hello,
I'm riding a bicycle everyday and skipping a track while riding isn't so easy. Pulling my X10 out of a pocket and changing a song is pretty hard (I have it in etui). So I was looking for an app that could change the tracks being played on a default music player (e.g.MIUI Miusic), not that it has it's own music player, because they're very bad. After pressing a button on a headset the app should activate and wait for voice command (e.g. next track) and it also should work offline, because I don't have instant Internet access, so something like database of commands on a sdcard. Also there wouldn't be such a big problem with language and missunderstanding the command. All the programs that I've found till this time needed Internet connection or had their own music player (e.g.Skyvi). I'm not an Android Dev, so It would be great if some of the Developers could make such a program.
I did a quick search and found https://play.google.com/store/apps/details?id=jp.co.chobirich.tools.mediabutton&hl=en
Would it accomplish what you're looking for albeit without voice commands?
Starfleeter said:
I did a quick search and found https://play.google.com/store/apps/details?id=jp.co.chobirich.tools.mediabutton&hl=en
Would it accomplish what you're looking for albeit without voice commands?
Click to expand...
Click to collapse
SE original headset isn't so fast for that program, so I choose JAYS Headset Control, in which I was able to configure the delay between clicks. It will take a while to learn the speed of clicking etc., but to answer Your question: Yes, this program does thing that I wanted > skips a track without taking out the phone
Thank You

Remember track for each folder

I noticed that MX Player remembers which track was played last, but what about remembering which audio/video track was played last in each folder? That would be a great feature!
madeinlisboa said:
I noticed that MX Player remembers which track was played last, but what about remembering which audio/video track was played last in each folder? That would be a great feature!
Click to expand...
Click to collapse
Added on latest test version: https://sites.google.com/site/mxvpen/translation/test-build
Thanks
bleu8888 said:
Added on latest test version: https://sites.google.com/site/mxvpen/translation/test-build
Thanks
Click to expand...
Click to collapse
Amazing. That's it!
This feature is great but is it possible to also jump in the tracks list to that position? When I select the last media for a specific folder it plays that track but when I get back to the list, it shows tracks from the top instead of the selected track. With a list of dozens of tracks a lot of finger work is necessary to get down to the current track
Pressing twice to go back to the track list in unnecessary. One is enough.
Thanks!
Can't you use that Play button that shows up at the top of the list, and it would play the last file in the current folder?
CDB-Man said:
Can't you use that Play button that shows up at the top of the list, and it would play the last file in the current folder?
Click to expand...
Click to collapse
But when you have hundreds of podcasts in a folder and want to play a track near the one being played you have to scroll down a lot....
madeinlisboa said:
But when you have hundreds of podcasts in a folder and want to play a track near the one being played you have to scroll down a lot....
Click to expand...
Click to collapse
You have misunderstood.
It's already implemented.
But,There is no new buttons. Only Resume button functionality has been changed. If you are in root of folder list where resume button will resume the last played media. But, If you are inside a folder, then it will resume the last played video in that particular folder.
Note:
Usually Resume button will be in the top right side above the list. On some lower end devices it can be accessed by pressing options/menu hardware button.
ktsamy said:
You have misunderstood.
It's already implemented.
But,There is no new buttons. Only Resume button functionality has been changed. If you are in root of folder list where resume button will resume the last played media. But, If you are inside a folder, then it will resume the last played video in that particular folder.
Note:
Usually Resume button will be in the top right side above the list. On some lower end devices it can be accessed by pressing options/menu hardware button.
Click to expand...
Click to collapse
Thanks, but there is a lot of misunderstanding here. I know I can resume the last played track on every folder, but the track list is not updated with the position of that track. It still shows the first track on top.
As an example, if the track being played is the 100th, when I go the track list, it shows the list from the begining instead of showing the position where track 100 is.
madeinlisboa said:
Thanks, but there is a lot of misunderstanding here. I know I can resume the last played track on every folder, but the track list is not updated with the position of that track. It still shows the first track on top.
As an example, if the track being played is the 100th, when I go the track list, it shows the list from the begining instead of showing the position where track 100 is.
Click to expand...
Click to collapse
What do you mean by track list?
Are you talking about video list?
By default Video list will be always showed in alphabetical order. It won't directly scroll down to show the last played video. It's just a video library.
Right now there is no playlist like options to list the videos in que. If it's implemented, it has to be auto scrolled to the last played file in the que when the playlist is resumed.
@bleu8888
Take a look at this feature request.
> " It won't directly scroll down to show the last played video."
This is what he's requesting; he's asking if when a folder is opened, that the folder could auto-scroll to what MX remembers was the last video played in the folder, instead of defaulting the folder view to the first entry.
madeinlisboa said:
Thanks, but there is a lot of misunderstanding here. I know I can resume the last played track on every folder, but the track list is not updated with the position of that track. It still shows the first track on top.
As an example, if the track being played is the 100th, when I go the track list, it shows the list from the begining instead of showing the position where track 100 is.
Click to expand...
Click to collapse
You can use 'play last video' button on the menu bar.
Also you can check video file name by long clicking this button.
I did not know about the long-click part.
CDB-Man said:
I did not know about the long-click part.
Click to expand...
Click to collapse
Since Android 4.1, if you long press any button, a tooltip will be displayed describing feature of the button.
It is video file name for 'last played video'.
bleu8888 said:
You can use 'play last video' button on the menu bar.
Also you can check video file name by long clicking this button.
Click to expand...
Click to collapse
Thanks but my problem still remains. The track/video list doesn't jump to the position of the file currently being played. It still shows first track/video at the top. Every player that I know of shows current track in the list.
madeinlisboa said:
Thanks but my problem still remains. The track/video list doesn't jump to the position of the file currently being played. It still shows first track/video at the top. Every player that I know of shows current track in the list.
Click to expand...
Click to collapse
Please check latest test build. It might resolve your request.
https://sites.google.com/site/mxvpen/translation/test-build
@madeinlisboa
@bleu8888
I have just tested. I can confirm that video list now automatically scrolls to the last played file.
bleu8888 said:
Please check latest test build. It might resolve your request.
https://sites.google.com/site/mxvpen/translation/test-build
Click to expand...
Click to collapse
Great! You're the best!
bleu8888 said:
Since Android 4.1, if you long press any button, a tooltip will be displayed describing feature of the button.
Click to expand...
Click to collapse
This I knew about already. However, I expected the tooltip to say something like "Play last video", so I never bothered to check it!

[Release][PX3|PX5] MtcdTools-Control music players, customize buttons, voice control

Hello,
Today is time to release second application with more powerful features on-board. I would like to introduce MtcdTools.
MtcdTools
ReadMe
HOWTO
HOWTO by @Geniee33
Source code
Latest release​https://forum.xda-developers.com/an...ent/howto-beginners-guide-to-setting-t3595793
21.06.2017: Version 1.9 has been released
19.06.2017: Version 1.8 has been released
10.05.2017: Version 1.7 has been released
09.05.2017: Version 1.6.1 has been released
02.03.2017: Version 1.6 has been released
27.02.2017: Version 1.5 has been released
23.02.2017: Version 1.4 has been released
14.02.2017: Version 1.3.3 has been released
13.02.2017: Version 1.3.2 has been released
10.02.2017: Version 1.3.1 has been released
07.02.2017: Version 1.3 has been released
19.08.2016: Version 1.2 has been released
14.08.2016: Version 1.1 has been released
10.08.2016: Version 1.0 has been released
Click to expand...
Click to collapse
If you enjoyed using of the application, you can support my work and Donate to me .
Best regards,
f1x
Should I delete your other Spotify control to use this?
Sent from my SGH-M919 using Tapatalk
j2gifted said:
Should I delete your other Spotify control to use this?
Sent from my SGH-M919 using Tapatalk
Click to expand...
Click to collapse
MtcdTools includes functionality of SpotifyKeys so you can uninstall it.
Tried it, does not work with my music app named doubleTwist
sterod said:
Tried it, does not work with my music app named doubleTwist
Click to expand...
Click to collapse
Hi,
I tested it a minute ago on my device and it works for me (I listened to mp3 files on my SD card using doubleTwist). Have you bound key codes to NEXT/PREV/TOGGLE PLAY actions? Could you please provide a screenshot of "Edit existing bindings" screen?
Works perfectly for me on Spotify. I notice you called it MTCD tools rather then Music Player tools or similar? Do you have aspirations for it beyond just music?
If so I was wondering if the launch function could be expanded to support intents. For example I use AutoMate Dashboard which has different menus so to flick over to maps screen rather then maps I would need to use an intent.
com.bitspice.automate.EXIT_APP = Exit the app
com.bitspice.automate.MAP_SCREEN = Launch the maps screen
com.bitspice.automate.PHONE_SCREEN = Launch the phone screen
com.bitspice.automate.HOME_SCREEN = Launch the home screen
com.bitspice.automate.MUSIC_SCREEN = Launch the music screen
com.bitspice.automate.SHORTCUT_SCREEN = Launch the shortcut screen
com.bitspice.automate.VOICE_SCREEN = Launch the voice input screen
I'll try with an mp3 shortly but I was trying the radio streaming feature in doubleTwist, when in that mode, the on screen back button rewinds, which may not be the same as the "previous" button intent your app sends.
I assume this works for PowerAmp too... ? Thank you
Donated thanks for the app!
I just tried with MP3's in doubleTwist - still not working. I only have two bindings for steering wheel control buttons.
NEXT - 300
PREV - 299
sterod said:
I just tried with MP3's in doubleTwist - still not working. I only have two bindings for steering wheel control buttons.
NEXT - 300
PREV - 299
Click to expand...
Click to collapse
I have checked the radio streaming and it works as you mentioned - next/prev on the screen has 'seeking' behavior. I will try to simulate these buttons in my app and check again.
Btw. In doubleTwist player settings I see something like 'steering using headphones' (I have Polish language set and it is 1:1 translation). Try to switch it on/off and check in case of mp3 playback steering.
I will try this with Neutron and report. Thanks
f1x said:
I have checked the radio streaming and it works as you mentioned - next/prev on the screen has 'seeking' behavior. I will try to simulate these buttons in my app and check again.
Btw. In doubleTwist player settings I see something like 'steering using headphones' (I have Polish language set and it is 1:1 translation). Try to switch it on/off and check in case of mp3 playback steering.
Click to expand...
Click to collapse
Yes the setting is called "Headset/Car Controls" and it's inside categories / player settings, however toggling it on or off makes no difference. Unfortunately it still won't work.
Can confirm "Radioplayer - Free UK Radio" works as well, skips between radio stations fine.
I can confirm that it works great with the Neutron app..
BUT...
I need to open the MTCD tools each time I use the head unit or else it wont work.
DanB0y said:
I can confirm that it works great with the Neutron app..
BUT...
I need to open the MTCD tools each time I use the head unit or else it wont work.
Click to expand...
Click to collapse
You mean it does not start automatically after boot up? Is your device completely shutdown or just sleep?
f1x said:
You mean it does not start automatically after boot up? Is your device completely shutdown or just sleep?
Click to expand...
Click to collapse
I think its both on sleep and shutdown.
Unit is MTCD_KD if that helps
---------- Post added at 05:28 AM ---------- Previous post was at 05:26 AM ----------
DanB0y said:
I think its both on sleep and shutdown.
Unit is MTCD_KD if that helps
Click to expand...
Click to collapse
If start my car, play music in Neutron and open the MTCDtolls app and go back to the already running Neutron app, it works, so I still enjoy your work
DanB0y said:
I think its both on sleep and shutdown.
Unit is MTCD_KD if that helps
Click to expand...
Click to collapse
Could you please check what delay you have set to shutdown device after ACC off?
f1x said:
Could you please check what delay you have set to shutdown device after ACC off?
Click to expand...
Click to collapse
30 min.
IE: This evening I parked my car at the mall at 7:30PM and went shopping. At 8:45PM I started my car and steering wheels were not working (until I reopened MTCDtools app)
DanB0y said:
30 min.
IE: This evening I parked my car at the mall at 7:30PM and went shopping. At 8:45PM I started my car and steering wheels were not working (until I reopened MTCDtools app)
Click to expand...
Click to collapse
I think I can reproduce this issue. I will try to prepare a correction today's evening.

Steering Wheel Controls and MPH

MTCE_HLA_3.53_1
New to the unit and installed in my Mini Cooper 2007. Had a good read around the found and lots of interesting things for a newbie but not found anything clear enough for my questions.
1) Can I set the unit to display MPH rathe than Km/h on the home screen?
2) My steering wheel controls work for the stock music and radio apps (mute, next, previous) but do not work in any 3rd party apps like Poweramp, Spotify or AutoPlay (Apple CarPlay dongle). Please can someone explain how to enable this?
Many thanks for all the info and hard work in these forums.
Managed to resolve #2. For for anyone else who searches later.
Head into factory settings. Password for HLA was m123456
Other tab
Changed steering wheel control to can key
Save and reboot.
Steering wheel controls app then appeared in my apps list and was very easy to assign keys.
Pedsteruk said:
MTCE_HLA_3.53_1
2) My steering wheel controls work for the stock music and radio apps (mute, next, previous) but do not work in any 3rd party apps like Poweramp, Spotify or AutoPlay (Apple CarPlay dongle). Please can someone explain how to enable this?
Many thanks for all the info and hard work in these forums.
Click to expand...
Click to collapse

Categories

Resources