![]() |
Re: Playing music via bluetooth in car???
how did you manage it by accident? Or did you never finnd out? I think I need something that will make the n900 trick the car into thinking there is a call about to come in or something, but which never acgtually happens. Then it should play whatever is on the media payer, like it does for a second before actually dialling or picking up a call. I can't program myself, but maybe someone could teach me how and an app could be written. There must be loads of people with cars that only do calls and having it play music this way would be ace. Perhaps a script that sends whatever the trigger is to a bluetooth headset that says 'get ready for a call' ans just sends that constantly?
I know there is the fm transmitter option, and this will do for now. |
Re: Playing music via bluetooth in car???
What kyllerbuzcutsaid was my plan when i searched for "car bluetooth audio"
lol But is there someone with the programming skills that can make this happening? My kenwood cd player, 1 year old do only support handsfree.. Sorry for my english.. |
Re: Playing music via bluetooth in car???
Quote:
Recently joined the ranks with an N900. Loving it so far :D. It already plays music on my JVC bluetooth deck after a manual start of a music playing app. I'm also wondering if there is any progress on the automatic start to the music player over bluetooth. Or if someone can point me in the right direction to learn how to do it (I'm a total noob to programming). Cheers |
Re: Playing music via bluetooth in car???
There is a way I think which would work, that is by using dbus-scripts.:
1) You will need to create a new file (as root) inside /etc/dbus-scripts.d/. The filename should preferrably end with .conf. In my instance I was using dbus-scripts to add extra functionality (key locking) to my BH-905 so I named my .conf file as bh-905.conf. The conf file should have the permissions: 644 or basically `chmod 644 /etc/dbus-scripts.d/insert_name_of_file_here.conf' as root. Contents of the file can vary, in my case I made dbus-scripts listen for Bluetooth override signal to run the script I made, in your case you may need to point it to mediaplayer and possibly if you wanted to you can make dbus-script run the program from a different signal. Here is mine: /root/bt_force_key * * org.maemo.Playback.Manager BluetoothOverride As you can see the first part is the script to run, in my case its a script, in your case you can probably point it to mediaplayer. The rest of the information are just for you specifically specifying which signals should trigger this event, from senders, destinations, interface, member, etc. More information can be found here. 2) If you decide to run your own script you will obviously need to create a new file for dbus-scripts to read once it picked up the triggered signal. The script file that you create will need to have perms 755 or `chmod 755 /path/to/script'. If you choose mediaplayer, it should already have relevant world execute permissions. 3) Last but not least, you will need to enable dbus-scripts. Under the link provided above, scroll down to the section `Running dbus-scripts on the session bus'. That is where you will need to modify and to make sure that it will run the setup even after reboots. There are plenty of information on getting dbus-scripts to work the way you want including some examples on the very same wiki entry above. |
Re: Playing music via bluetooth in car???
Thanks Tuxsavvy for the detailed post.
I'm going to pour a glass of red and have a go. It may take me a while to get me head around all the info here but will post back soon as possible. |
Re: Playing music via bluetooth in car???
I figured this might be a bit of a learning curve :) though if you have some experience with Linux CLI then you shouldn't have much to worry about, for I have dug most of the hard work up.
For now I couldn't be stuffed pinpointing the exact location of where I want dbus-scripts to run that script and I could in theory get away with parsing one line command maybe via using backquotes. Though the general idea I guess is there. Hopefully it'll work out right for your case :). |
Re: Playing music via bluetooth in car???
I´ve got the same problem with my Fiesta. I can handle phone calls over bluetooth fine, but when it comes to play music over bluetooth, it fails.
|
Re: Playing music via bluetooth in car???
Well, I got even something else ...I can play music and make phone calls without problems, but when it comes to receiving calls ring tone does not play thorugh bluetooth, but through my n900..when I answer I can talk over bluetooth. ANy idea?
Thanx fellas :) |
Re: Playing music via bluetooth in car???
Quote:
I think you are onto something here. So far I've worked out how to ssh into the n900 and am getting a bit more familiar as to how it is laid out. and to root it! then installed the dbusscript. Tried and initial script which so far hasn't worked but it is a start. I've hit a couple noobie stumbling blocks. How to get the mplayer app to kick start - in windows I know to look for an .exe - what do I look for in debian linux? my logic is it that it should be in /etc/mplayer? but i see no files in there. Can there be hidden files similar to windows by going into folder options and enabling the checkbox? Also I rebooted my phone and now etc/dbusscript.d directory is missing when ssh'd into the n900? It was there where I save the first script but where would it have gone? Would I need to reinstall the app? Cheers |
Re: Playing music via bluetooth in car???
In linux, executables aren't indicated by their filename extensions (which is completely the opposite of what windows does). This is where the tool `file' comes in handy.
With file, it can describe to you what sort of file it is. It isn't foolproof but it is very handy for getting started with understanding the various files (until you decide you want to dig into understanding the headers of the files, which is usually where the tool file works its magic). Here is an example of how it works: Code:
Nokia-N900:~$ file /bin/bash Code:
Nokia-N900:~$ dpkg -l mediaplayer*| grep ii| awk '{ print $2 }' From that output we can see the very first line is the actual package we want to query for the list of files that came with the package: Code:
Nokia-N900:~$ dpkg -L mediaplayer Code:
Nokia-N900:~$ for i in `dpkg -L mediaplayer`; do file $i; done Code:
/usr/bin/mediaplayer.launch: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), stripped That will restore the directory along with the scripts but whatever you had before would have been lost. There is an ugly hack that I can think of right now, which would involve setting the file immutable but I cannot vouch if it is safe for use with N900: chattr +i /etc/dbusscripts.d/foo.conf (as root) raver2011: I'm guessing your issue is with the head deck you have which is probably incapable of playing through bluetooth. Which methods have you tried? I don't have a head deck in my car (I ripped my old Sony out because it was dead and it doesn't have bluetooth functionality). vittoriob4: This could either be the use of silence profile or something else which I wouldn't know of. With the silence profile enabled, it will be evident when you have an incoming call as mediaplayer will stop playing the music and then the rtcom-call-ui may play the requested music as ringtone. |
All times are GMT. The time now is 01:19. |
vBulletin® Version 3.8.8