|
2011-10-27
, 08:34
|
|
Posts: 1,637 |
Thanked: 4,424 times |
Joined on Apr 2009
@ Germany
|
#392
|
which does not work. My understanding of shell scripting is probably at fault - I created a notepad file in windows with the script code, saved it as headphones.sh(.txt), then transferred to my N900 and renamed it just headphones.sh.
The Following User Says Thank You to nicolai For This Useful Post: | ||
|
2011-10-27
, 08:52
|
|
Posts: 220 |
Thanked: 66 times |
Joined on Aug 2010
@ Melbourne, Australia
|
#393
|
~ $ sh /home/user/MyDocs/headphones.sh : not foundMyDocs/headphones.sh: line 2: /home/user/MyDocs/headphones.sh: line 4: syntax error: Bad substitution
|
2011-10-27
, 09:10
|
|
Posts: 1,637 |
Thanked: 4,424 times |
Joined on Apr 2009
@ Germany
|
#394
|
The Following User Says Thank You to nicolai For This Useful Post: | ||
|
2011-10-27
, 09:29
|
|
Posts: 220 |
Thanked: 66 times |
Joined on Aug 2010
@ Melbourne, Australia
|
#395
|
~ $ sh /home/user/MyDocs/headphones2.sh process 27316: arguments to dbus_message_new_method_call() were incorrect, assertion "interface == NULL || _dbus_check_is_valid_interface (interface)" failed in file dbus-message.c line 1080. This is normally a bug in some application using the D-Bus library. process 27316: arguments to dbus_message_set_auto_start() were incorrect, assertion "message != NULL" failed in file dbus message.c line 2492. This is normalle a bug in some application using the D-Bus library. Couldn't allocate D-Bus message ~ $
|
2011-10-27
, 09:54
|
|
Posts: 1,637 |
Thanked: 4,424 times |
Joined on Apr 2009
@ Germany
|
#396
|
The Following User Says Thank You to nicolai For This Useful Post: | ||
|
2011-10-27
, 10:05
|
|
Posts: 220 |
Thanked: 66 times |
Joined on Aug 2010
@ Melbourne, Australia
|
#397
|
~ $ sh /home/user/MyDocs/headphones3.sh Error org.bluez.Error.Failed: Failed to create a stream
~ $ sh /home/user/MyDocs/headphones3.sh Error org.bluez.Error.Failed: Stream setup failed
~ $ sh /home/user/MyDocs/headphones3.sh method return sender=:1.32 -> dest=:1.639 reply_serial=2
sh /home/user/MyDocs/headphones3.sh
dbus-send --system --type=method_call --dest=org.bluez /org/bluez/906/hci0 org.bluez.Adaptor.SetProperty string:Powered variant:boolean:true
sh /home/user/MyDocs/Bton.sh
|
2011-10-27
, 10:30
|
|
Posts: 1,637 |
Thanked: 4,424 times |
Joined on Apr 2009
@ Germany
|
#398
|
The Following User Says Thank You to nicolai For This Useful Post: | ||
|
2011-10-27
, 10:39
|
|
Posts: 220 |
Thanked: 66 times |
Joined on Aug 2010
@ Melbourne, Australia
|
#399
|
|
2011-10-27
, 10:44
|
|
Posts: 220 |
Thanked: 66 times |
Joined on Aug 2010
@ Melbourne, Australia
|
#400
|
-trying to connect to a specific BT MAC address (Nokia BH-503 headphones)
I have tried this from karimko:
However, this only works once BT is on, and doesn't "genuinely connect" (status bar BT icon turns blue, but device does not respond/receive commands).
I have tried this:
Can anyone point me in the right direction? Nokia revised the programming for their BH-503 (board revision 3), and now I can't connect to my latest pair automatically (must access via the BT menu, despite being "trusted").