BlueamaroK

Amarok 1.x Scripts

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

1
5.0
Description:

BlueamaroK controls basic functions of the amaroK player with a SonyEriccson mobile telephone through a bluetooth connection.

Dependencies:
Bluez - http://www.bluez.org/
Tcl - http://tcl.sourceforge.net/

Using:
Pair your PC and phone, run rfcomm to bind the connection to a serial device, for example /dev/rfcomm0, run BlueamaroK and go to the accessories menu (Connectivity > Accessories).

Binding example:
# hcitool scan
Scanning ...
00:0E:07:3E:58:0D Khertz
# rfcomm bind rfcomm0 00:0E:07:3E:58:0D 1

Permanent binding:
Edit /etc/bluetooth/rfcomm.conf adding:
rfcomm0 {
bind yes;
device 00:0E:07:3E:58:0D;
channel 1;
comment "Khertz T610";
}

I recommend to use the KDE Bluetooth Framework (http://kde-bluetooth.sourceforge.net/). In the KDE Bluetooth Framework homepage you'll find good documentation for configuring bluetooth.

Models supported:
- T68
- T86i
- T300
- T310
- T610
- Z600
- T230/T238/T226
- T630
- T290

Author:
Pablo Chinea
N.Cat
Last changelog:

14 years ago

* Version 0.1 (03/01/2006)
- Initial Release.

* Version 0.5 (12/01/2006)
- Feature: Playlist listed in phone display.
- Feature: Select track to play from the phone.
- Feature: Added bitrate and sample rate in Track Info.
- Bugfix: Phone return an error when back button is pressed. FIXED
- Some texts changed
- Added more using information in the README

* Version 0.51 (13/01/2006)
- Bugfix: Script fail writing debug output. FIXED

* Version 0.52 (05/10/2006) by N.Cat
- Feature: Reconnect automatically.
- Feature: Improved menu, now just one Play/Pause entry.
- Feature: Show message and set status info on song change.
- Feature: Mark active song in playlist.
- Bugfix: Parsing fails when KDE applications output on stderr. FIXED
- Bugfix: Configuration can be corrupted. FIXED
- Bugfix: Infinite read loop if connection is lost. FIXED
- Bugfix: Menu is no longer displayed after certain errors. FIXED
- Bugfix: Error on long playlist items. FIXED
- Bugfix: Playlist item displayed strangely. FIXED

* Version 0.53 (10/12/2006)
- Bugfix: Incorrect title showed on song change. FIXED

matersci

14 years ago

Script works with my K700i but if I don't use it for a while it looses connection with the phone and stops responding. Any ideas?

And is it possible to make a script for kaffeine or Mplayer, so we can have full control of both audio and movie players?

Thanks

Report

C

khertz

14 years ago

Hello, I don't know how it looses connection. Check your phone configuraction or bluez configuration (maybe any energy saving). BlueamaroK works over a bluetooth conection, but not touch any connection parameter, it is controlled by the bluez stack.

BlueamaroK is based on a script called BlueKaffeine, also programmed by me, it's hosted in sourceforge:

http://sourceforge.net/projects/bluekaffeine/

but is in spanish :-P.

Report

matersci

14 years ago

I just saw that this bug has been mentioned before by mabs on 02/06/2006. In his comment he suggests a change to the script for disconnection and reconnection once a while. I think this could work.

And thanks for the link to bluekaffeine. I will check it, although I don't speak Spanish.

Report

AceTheFace

14 years ago

Hi,

I have a K750i, started blueamarok and setted up the connection correctly. But I can't find within the menus the remote for amarok. Under "Entertainment" (Games etc.) I have a point "remote control" but it has only 3 entries: presentation, desktop, media player.
In the Connections-Bluetooth-Section the "Accessoires"-Point is disabled...any hints?

Report

C

khertz

14 years ago

This script was programmed for a T610 phone, and the k750i use a different AT commands set. The script isn't compabtible with this model and I can't migrate the script because I haven't a k750i. I'm sorry :-S.

Report

pucek

14 years ago

There is problem with playlist browsing.

When I want to browse playlist with brackets (and probably other non alphanumeric characters - I didn't check) T610 returns an error.
example:

< - *EAMI: 10
- > AT*EASM="Playlist (388/434)",1,6,7,"","T- Wave - Reconstruction (Radio Version)","The Chemical Brothers - Galvanize","The Chemical Brothers - Hey Boy Hey Girl","The Crystal Method - Born Too Slow","The Discoboys - For You (Dub Mix)",""
< -
< - ERROR
- > AT*EAID=1,0,"BLUEAMAROK ERROR!\0APlease, send debug output to khertz\80gmail.com",0

If playlist items have no brackets everything is ok.

Report

C

khertz

14 years ago

Hello, there are no problem with the brackets, the problem is the lenght of the string sent to the phone, this is a knonw issue. The playlist is shown with 5 songs per page and when the songs titles are too long the script fail. :S

Report

pucek

14 years ago

This can be true ;) I should check better :)

Can you do something to cut titles to "good" length?

Report

C

khertz

14 years ago

I'm studying the way to generate the playlist with a variable number of songs per page, I don't want to cut the titles. But this bears to restate completely the way of creating the list

Report

nebbus

14 years ago

Does this work with SE w800i?

I keep getting an error when I try to run the script. The error is:

"¡Error! Can't open device"

I would really like to see this script working!

Report

Janek

14 years ago

I have the same problem with my d750i ;-(

Report

iamseawolf

14 years ago

Hello -
I dloaded your script, just what I want!
However, I get an error no.225 when starting the script in amaroK.
rfcomm and such report no errors in the terminal, the phone binds on startup ok. The script installed correctly.
I’m using a SE K700i and amaroK 1.4-1 beta3 or something like that.

Any idea what the error is?

Many thanks :)

Report

karlheinz

14 years ago

Would it be possible that k750i ownwers can provide you with the info you need to add support for it? (without disassembling the phone ;))

Bye, Val.

Report

C

khertz

14 years ago

I think it would be imposible. I had to do hunders of test while I was programming the script because I didn't know how the phone will response to the AT commands. I have been reading the K750i AT commands set documentation and it's totally different. The script must be fully recoded again.

Report

a1th0

15 years ago

This script is great, and all the functions work as they should, but some of the characters displayed on my k700i appear to be wrong. On the main menu, for example, there's a square after 'Play', 'Previous', 'Backward' and 'Track Info'. Also when 'Track Info' is displayed, newline characters are displayed as an [O with an umlaut]OA. As I said it's more an aesthetic than a functional thing though.

Report

C

khertz

15 years ago

Hello, this script was programmed for the T610 but the K700 uses a slightly different AT command set (It works but with some issues). A friend of mine have this model, I'll try to looking for the correct escape code for the line feed.

Report

supermihi

15 years ago

Hi,
I downloaded the plugin and did everything as mentioned. I create the rfcomm device and set the right permissions, then start the script, which works without errors - but with my phone (a K750i), the "accessoires" menu option stays greyed out. Do you have any ideas what the problem could be?

Report

C

khertz

15 years ago

The K750i isn't compatible with this script, sorry :-(

Report

supermihi

15 years ago

too bad :(
Is a support planned, or should I go get another phone? ;)

Report

C

khertz

15 years ago

No, I haven't this phone model to make a conversion of the script, very very sorry.
I made the script for my T610 and the K750i use a different AT instructions set. If someday I have this model I'll make the conversion.

Report

ljubomir

15 years ago

This is very good script! Congratulations to the author. It works like a charm on my K608i under Ubuntu Dapper.

Report

mabs

15 years ago

I've a small feature wish...

After a while my phone disconnects and the only way for the connection to be reestablished, is to manually restart the script.

So it'd be cool, if the script could do that it self, maybe just disconnect and reconnect once in a while, every 10-15 mins. or so.

PS.: Thanks, it's a nice script.

Report

C

khertz

15 years ago

I'll be very busy until next month, but I added this feature(bugfix) in the TODO list :-), it will be present in the next version.

Report

rens

15 years ago

I have some trouble to get it running. I tried the following steps:
1. I established a connection between my k700i and kde. so far, so good.
2. I installed the blueamarok-script using amarok. When I tried to execute the script, I got an error as follows:
¡Error! Can't open /dev/rfcomm0 device

Where did I go wrong?!? Can somebody give my an detailed howto or an example to get it running.

thx

rens

Report

mabs

15 years ago

I got the same, it's a permission problem.
chmod your /dev/rfcomm0 and it should work.
I just did:
chmod o+rw /dev/rfcomm0
Since I'm the only user and /dev/rfcomm0 is owned by user: root and group: root.

It works for my k700i, great another reason to keep my big butt on the sofa ;)

Report

14 years ago

* Version 0.1 (03/01/2006)
- Initial Release.

* Version 0.5 (12/01/2006)
- Feature: Playlist listed in phone display.
- Feature: Select track to play from the phone.
- Feature: Added bitrate and sample rate in Track Info.
- Bugfix: Phone return an error when back button is pressed. FIXED
- Some texts changed
- Added more using information in the README

* Version 0.51 (13/01/2006)
- Bugfix: Script fail writing debug output. FIXED

* Version 0.52 (05/10/2006) by N.Cat
- Feature: Reconnect automatically.
- Feature: Improved menu, now just one Play/Pause entry.
- Feature: Show message and set status info on song change.
- Feature: Mark active song in playlist.
- Bugfix: Parsing fails when KDE applications output on stderr. FIXED
- Bugfix: Configuration can be corrupted. FIXED
- Bugfix: Infinite read loop if connection is lost. FIXED
- Bugfix: Menu is no longer displayed after certain errors. FIXED
- Bugfix: Error on long playlist items. FIXED
- Bugfix: Playlist item displayed strangely. FIXED

* Version 0.53 (10/12/2006)
- Bugfix: Incorrect title showed on song change. FIXED

12345678910
Be the first to comment
DaiVied
Dec 30 2009
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.53
updated Dec 10 2006
added Jan 03 2006
downloads 24h
0
mediaviews 24h 0
pageviews 24h 5
System Tags addon