OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: kkazakov13 on January 20, 2007, 02:55:53 pm

Title: Latest Bluez Packages For Pdaxrom Beta3
Post by: kkazakov13 on January 20, 2007, 02:55:53 pm
[span style=\'font-size:14pt;line-height:100%\']latest bluetooth tools, quick howto (pdaXrom beta3)[/span]


I'm explaining here exactly what I did. Tested it few times, and it worked on plain pdaxrom b3 install.
I'm not responsible if something gets damaged because you tried this howto. Do it on your risk.
It worked fine for me on my SL-C3200.

you should remove the following packages:

Code: [Select]
ipkg remove dbus
ipkg remove bluez-libs
ipkg remove bluez-pan
ipkg remove bluez-sdp
ipkg remove bluez-utils
ipkg remove openobex
ipkg remove openobex-apps
ipkg remove obexftp

then install the newest:

Code: [Select]
ipkg -d / install dbus_1.0.2_armv5tel.ipk
ipkg -d / install bluez-libs_3.8_armv5tel.ipk
ipkg -d / install bluez-hcidump_1.33_armv5tel.ipk
ipkg -d / install openobex_1.3_armv5tel.ipk
ipkg -d / install obexftp_0.20_armv5tel.ipk

the following must be done on zaurus, not via ssh, as it will restart pcmcia services:

Code: [Select]
ipkg -d / install bluez-utils_3.8_armv5tel.ipk
better reboot here ( I needed it, you may not )



ok, to this point, setup is complete.


if you execute

Code: [Select]
hciconfig hci0
you should get something like this:

Code: [Select]
hci0:   Type: USB
        BD Address: 11:11:11:11:11:11 ACL MTU: 678:8 SCO MTU: 48:10
        UP RUNNING
        RX bytes:63 acl:0 sco:0 events:7 errors:0
        TX bytes:26 acl:0 sco:0 commands:7 errors:0

if you get zeroes instead, try restarting bluetooth with

Code: [Select]
/etc/rc.d/init.d/bluetooth stop && /etc/rc.d/init.d/bluetooth start

execute:
Code: [Select]
hcitool scan

Scanning ...
        00:11:22:33:44:55       Motorola V3X

this will return you all valid bluetooth devices which are set discoverable.


first time i had to start this

Code: [Select]
passkey-agent --default 1234 &
where 1234 is your pin, which will be remembered by the phone.
I needed to start passkey-agent only once, when the phone asked for the pin.

to check if everything works correctly, you can run

Code: [Select]
obexftp -b 00:11:22:33:44:55 -l "/"

Browsing 00:11:22:33:44:55 ...
Channel: 9
Connecting...done
Receiving "/"... Sending ""... done
|








done
Disconnecting...done

Don't forget to replace 00:11:22:33:44:55 with your phone's mac address

Sending files to the phone is simple as

Code: [Select]
obexftp -b 00:11:22:33:44:55 -p /path/to/file.jpg
Browsing 00:11:22:33:44:55 ...
Channel: 9
Connecting...done
Sending "/path/to/file.jpg"...\done
Disconnecting...done


Here are the files. I hope you enjoy flawless bluetooth connection like I did

 [ You are not allowed to view attachments ]
 [ You are not allowed to view attachments ]
 [ You are not allowed to view attachments ]
 [ You are not allowed to view attachments ]
 [ You are not allowed to view attachments ]
 [ You are not allowed to view attachments ]

NOTE: updated dbus package, please remove the old one, and install this. Fixes missing
/var/lib/dbus/machine-id that is required for some dbus-based programs.

Also, updated bluez-utils package to handle correctly CF cards (hopefully, please check! I've tested only on USB dongle)
Title: Latest Bluez Packages For Pdaxrom Beta3
Post by: kkazakov13 on January 21, 2007, 06:42:57 am
Built dbus-glib package for dbus 1.0.2, here it is:

 [ You are not allowed to view attachments ]


I'm still having problem building python bindings for the latest dbus
Title: Latest Bluez Packages For Pdaxrom Beta3
Post by: jpmatrix on January 21, 2007, 07:31:29 am
well,
i've played, i've lost : i've just tried your packages under latest pdaxii13 under my c3000 and apparently it messed up the bluetooth which were working great   apparently my belkin card is not recognized anymore.........
Title: Latest Bluez Packages For Pdaxrom Beta3
Post by: kkazakov13 on January 21, 2007, 08:14:59 am
Quote
well,
i've played, i've lost : i've just tried your packages under latest pdaxii13 under my c3000 and apparently it messed up the bluetooth which were working great   apparently my belkin card is not recognized anymore.........
[div align=\"right\"][a href=\"index.php?act=findpost&pid=151878\"][{POST_SNAPBACK}][/a][/div]

Can you tell me the exact model , and I will check if there is a specific switch to support it.

Also, if you can put here the log from /var/log/messages , after you put the card in the cf slot ?

It should be recognized, as I didn't replaced any kernel modules, or such ...



P.P. I've only tested it on USB dongle!
Title: Latest Bluez Packages For Pdaxrom Beta3
Post by: kkazakov13 on January 21, 2007, 09:04:11 am
Added gnome-bluetooth, get the packages

 [ You are not allowed to view attachments ]
 [ You are not allowed to view attachments ]


[a href=\"http://up.drun.net/i/f/bt1.png\" target=\"_blank\"]
Title: Latest Bluez Packages For Pdaxrom Beta3
Post by: jpmatrix on January 21, 2007, 10:07:44 am
Quote
Quote
well,
i've played, i've lost : i've just tried your packages under latest pdaxii13 under my c3000 and apparently it messed up the bluetooth which were working great   apparently my belkin card is not recognized anymore.........
[div align=\"right\"][a href=\"index.php?act=findpost&pid=151878\"][{POST_SNAPBACK}][/a][/div]

Can you tell me the exact model , and I will check if there is a specific switch to support it.

Also, if you can put here the log from /var/log/messages , after you put the card in the cf slot ?

It should be recognized, as I didn't replaced any kernel modules, or such ...



P.P. I've only tested it on USB dongle!
[div align=\"right\"][a href=\"index.php?act=findpost&pid=151883\"][{POST_SNAPBACK}][/a][/div]


it is an Asus WL110

here are the messages:
socket 0 : Bluetooth BT0100M
executing: './bluetooth start ttyS3 2>&1'
+ sh: ./bluetooth: No such file or directory
start cmd exited with status 127

hope you can help
Title: Latest Bluez Packages For Pdaxrom Beta3
Post by: kkazakov13 on January 21, 2007, 10:17:33 am
Quote
it is an Asus WL110

here are the messages:
socket 0 : Bluetooth BT0100M
executing: './bluetooth start ttyS3 2>&1'
+ sh: ./bluetooth: No such file or directory
start cmd exited with status 127

hope you can help
[div align=\"right\"][a href=\"index.php?act=findpost&pid=151905\"][{POST_SNAPBACK}][/a][/div]


Can you remove bluez-utils package, and reinstall this one?

(removed package link, outdated)
Title: Latest Bluez Packages For Pdaxrom Beta3
Post by: jpmatrix on January 21, 2007, 11:04:38 am
Quote
Quote
it is an Asus WL110

here are the messages:
socket 0 : Bluetooth BT0100M
executing: './bluetooth start ttyS3 2>&1'
+ sh: ./bluetooth: No such file or directory
start cmd exited with status 127

hope you can help
[div align=\"right\"][a href=\"index.php?act=findpost&pid=151905\"][{POST_SNAPBACK}][/a][/div]


Can you remove bluez-utils package, and reinstall this one?

 [ You are not allowed to view attachments ]
[div align=\"right\"][a href=\"index.php?act=findpost&pid=151908\"][{POST_SNAPBACK}][/a][/div]


well,
i got some ldconfig error messages after installing:

file /usr/lib/libdbus-glib-1.so.2.0.0 is too small, not checked
input file /usr/lib/libbtctl.so.4.0.0 not foundd
input file /usr/lib/libgnomebt.so.0.0.1 not found

i reboot to see if it is working

EDITED:
now as i plug the card, i've this error:
Starting bluetooth ./bluetooth: line 58: /bin/rfcomm: no such file or directory

but now hciconfig is working!
little progress
Title: Latest Bluez Packages For Pdaxrom Beta3
Post by: kkazakov13 on January 21, 2007, 11:43:02 am
Yes ... the problem was that I built the package from the beginning, and for pdaXrom there are lot specific files. I copied from the original package the file /etc/pcmcia/bluetooth inside my package (that's what was missing) , modified it a bit. The problem after this was that the files are not located where bluez-utils-2.4's ones are. I fixed the rfcomm call, so please, check this again. Thanks. This should work now.

About ldconfig - I don't get error messages, weird ...

 [ You are not allowed to view attachments ]
Title: Latest Bluez Packages For Pdaxrom Beta3
Post by: jpmatrix on January 21, 2007, 12:13:28 pm
Quote
Yes ... the problem was that I built the package from the beginning, and for pdaXrom there are lot specific files. I copied from the original package the file /etc/pcmcia/bluetooth inside my package (that's what was missing) , modified it a bit. The problem after this was that the files are not located where bluez-utils-2.4's ones are. I fixed the rfcomm call, so please, check this again. Thanks. This should work now.

About ldconfig - I don't get error messages, weird ...

 [ You are not allowed to view attachments ]
[div align=\"right\"][a href=\"index.php?act=findpost&pid=151920\"][{POST_SNAPBACK}][/a][/div]


well well
now the only error message on installing is :
file /usr/lib/libdbus-glib-1.so.2.0.0 is too small, not checked

now everything seems to load ok

hciconfig & hcitool scan is working

the only trouble now is that i cannot start my bt dialup
starting pppd call orange give me:
unrecognized option '/dev/rcomm0'

it seems there are no /dev/rfcommxx..is it the problem ?

keep up the good work


solved:
mknod /dev/rcomm0 c 216 0

now i try all thing, bt dialup and file xfer
Title: Latest Bluez Packages For Pdaxrom Beta3
Post by: jpmatrix on January 21, 2007, 12:49:40 pm
Quote
now i try all thing, bt dialup and file xfer
[div align=\"right\"][a href=\"index.php?act=findpost&pid=151927\"][{POST_SNAPBACK}][/a][/div]

so,
bt dialup networking is working
although i had to start pass-agent like you told it

for file xfer:
first i had to restart bluetooth because the sdpd was not up...i don't know why...
then obexftp works , i could transfer successfully a file from the zaurus to my nokia  cool!

however gnome-obex-send give me the following error:
libgnomebt.so.0 : no such file or directory
Title: Latest Bluez Packages For Pdaxrom Beta3
Post by: kkazakov13 on January 21, 2007, 12:58:59 pm
Quote
so,
bt dialup networking is working
although i had to start pass-agent like you told it

for file xfer:
first i had to restart bluetooth because the sdpd was not up...i don't know why...
then obexftp works , i could transfer successfully a file from the zaurus to my nokia  cool!

however gnome-obex-send give me the following error:
libgnomebt.so.0 : no such file or directory
[div align=\"right\"][a href=\"index.php?act=findpost&pid=151933\"][{POST_SNAPBACK}][/a][/div]

/usr/lib/libgnomebt.so and /usr/lib/libgnomebt.so.0.0 are symlinks to /usr/lib/libgnomebt.so.0.0.1 and are in gnome-bluetooth package. Are you sure you used mine gnome-bluetooth package ? Just reinstalled it - works ok. Please check in /usr/lib if the symlinks and the real file exist

About the rfcomm0 problem , maybe you need to edit /etc/bluetooth/rfcomm.conf and add the device you need. After reinstalling with my packages, you've probably lost the content.
Title: Latest Bluez Packages For Pdaxrom Beta3
Post by: jpmatrix on January 21, 2007, 02:35:13 pm
Quote
/usr/lib/libgnomebt.so and /usr/lib/libgnomebt.so.0.0 are symlinks to /usr/lib/libgnomebt.so.0.0.1 and are in gnome-bluetooth package. Are you sure you used mine gnome-bluetooth package ? Just reinstalled it - works ok. Please check in /usr/lib if the symlinks and the real file exist

it works! i probably forgot to install it  sorry


Quote
About the rfcomm0 problem , maybe you need to edit /etc/bluetooth/rfcomm.conf and add the device you need. After reinstalling with my packages, you've probably lost the content.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=151935\"][{POST_SNAPBACK}][/a][/div]

well i gave my customised rfcomm.conf, so it should be working already...anyway, the mknod command did it

well,
my last (i hope!) trouble:
the zaurus seems to be hidden, as i cannot discover it from my phone..although i have double checked hcid.conf...
Title: Latest Bluez Packages For Pdaxrom Beta3
Post by: kkazakov13 on January 21, 2007, 02:41:45 pm
Quote
well,
my last (i hope!) trouble:
the zaurus seems to be hidden, as i cannot discover it from my phone..although i have double checked hcid.conf...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=151946\"][{POST_SNAPBACK}][/a][/div]

Yes, I had the same problem , it's not discoverable somehow. If I send file from the zaurus to the phone, then the phone have it in the list and I can send.


Code: [Select]
dbus-send --system --dest=org.bluez /org/bluez/hci0 org.bluez.Adapter.SetMode string:discoverable
This actually did it. I can see zaurus now
Title: Latest Bluez Packages For Pdaxrom Beta3
Post by: jpmatrix on January 22, 2007, 11:39:31 am
Yes ! It works !
Thanks :-)

i installed these packages to see if the bluetooth speed was improved : it is not ... I m about 9k/s with dialup . How can i improve this ?
Title: Latest Bluez Packages For Pdaxrom Beta3
Post by: jpmatrix on January 28, 2007, 12:52:04 pm
Quote
solved:
mknod /dev/rcomm0 c 216 0


hi,
after rebooting it seems i've lost the /dev/rfcomm0 again
would you check why it doesn't go up itself ?
Title: Latest Bluez Packages For Pdaxrom Beta3
Post by: kkazakov13 on January 28, 2007, 01:20:53 pm
remove the installed bluez-utils, and install this one:

http://z.drun.net/packages/bluez-utils_3.8_armv5tel.ipk (http://z.drun.net/packages/bluez-utils_3.8_armv5tel.ipk)
Title: Latest Bluez Packages For Pdaxrom Beta3
Post by: jpmatrix on January 28, 2007, 04:49:14 pm
well,
now /dev/rfcomm* are there after reboot ... but ...
my card drivers seems not to load after card inserting... i've got these messages :

socket 0 : Bluetooth BT0100M
start cmd exited with status 1


help again!
Title: Latest Bluez Packages For Pdaxrom Beta3
Post by: kkazakov13 on January 28, 2007, 05:08:23 pm
Can you re-install http://z.drun.net/packages/bluez-utils_3.8_armv5tel.ipk (http://z.drun.net/packages/bluez-utils_3.8_armv5tel.ipk) and see if it's ok ? I've updated it.
Title: Latest Bluez Packages For Pdaxrom Beta3
Post by: jpmatrix on January 29, 2007, 06:50:26 am
Quote
Can you re-install http://z.drun.net/packages/bluez-utils_3.8_armv5tel.ipk (http://z.drun.net/packages/bluez-utils_3.8_armv5tel.ipk) and see if it's ok ? I've updated it.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=152763\"][{POST_SNAPBACK}][/a][/div]

ok
there's still a problem: seen in var/log/messages as i pppd call orange:
can't get terminal parameters: Input/output error

i think sdp seems to be missing on ps -ef too...
Title: Latest Bluez Packages For Pdaxrom Beta3
Post by: kkazakov13 on January 29, 2007, 07:12:01 am
Check the problem on your side. Here it is working perfectly, all I changed to the prev version, was adding few mknod commands on bluetooth startup.
Title: Latest Bluez Packages For Pdaxrom Beta3
Post by: jpmatrix on January 29, 2007, 11:36:59 am
Quote
Check the problem on your side. Here it is working perfectly, all I changed to the prev version, was adding few mknod commands on bluetooth startup.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=152806\"][{POST_SNAPBACK}][/a][/div]


well well, after a reboot, everything seems to be ok:
i can dialup networ thru bt again !

however i tried to remove and insert my bt card , and apparently things seems not to load ok after that... again after a reboot it is ok... perhaps a little last setting to do ?

anyway thank you for your fast help!
Title: Latest Bluez Packages For Pdaxrom Beta3
Post by: Chero on January 29, 2007, 12:24:25 pm
Quote
Quote
Check the problem on your side. Here it is working perfectly, all I changed to the prev version, was adding few mknod commands on bluetooth startup.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=152806\"][{POST_SNAPBACK}][/a][/div]


well well, after a reboot, everything seems to be ok:
i can dialup networ thru bt again !

however i tried to remove and insert my bt card , and apparently things seems not to load ok after that... again after a reboot it is ok... perhaps a little last setting to do ?

anyway thank you for your fast help!
[div align=\"right\"][a href=\"index.php?act=findpost&pid=152829\"][{POST_SNAPBACK}][/a][/div]

Without the card, try running "/etc/rc.d/init.d/bluetooth restart" from a terminal window. Then insert the card.
Title: Latest Bluez Packages For Pdaxrom Beta3
Post by: jpmatrix on January 29, 2007, 12:42:32 pm
Quote
Without the card, try running "/etc/rc.d/init.d/bluetooth restart" from a terminal window. Then insert the card.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=152832\"][{POST_SNAPBACK}][/a][/div]

that's what i did...no way...
Title: Latest Bluez Packages For Pdaxrom Beta3
Post by: kkazakov13 on January 29, 2007, 01:26:43 pm
Does /etc/rc.d/init.d/pcmcia restart work ?
Title: Latest Bluez Packages For Pdaxrom Beta3
Post by: Chero on January 29, 2007, 02:30:23 pm
Quote
Quote

Without the card, try running "/etc/rc.d/init.d/bluetooth restart" from a terminal window. Then insert the card.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=152832\"][{POST_SNAPBACK}][/a][/div]

that's what i did...no way...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=152834\"][{POST_SNAPBACK}][/a][/div]

Mmm, works in r121.
Maybe instead of restart do a "stop" first and then a "start". Maybe restart just doesn't exist in beta3 (Don't remember).

There simply has to be a way to avoid rebooting.
Title: Latest Bluez Packages For Pdaxrom Beta3
Post by: kkazakov13 on January 29, 2007, 05:55:24 pm
Quote
Mmm, works in r121.
Maybe instead of restart do a "stop" first and then a "start". Maybe restart just doesn't exist in beta3 (Don't remember).

There simply has to be a way to avoid rebooting.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=152844\"][{POST_SNAPBACK}][/a][/div]

restart exists ... we're talking about mine custom built packages.
Title: Latest Bluez Packages For Pdaxrom Beta3
Post by: jpmatrix on January 30, 2007, 10:22:43 am
Quote
Quote
Mmm, works in r121.
Maybe instead of restart do a "stop" first and then a "start". Maybe restart just doesn't exist in beta3 (Don't remember).

There simply has to be a way to avoid rebooting.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=152844\"][{POST_SNAPBACK}][/a][/div]

restart exists ... we're talking about mine custom built packages.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=152863\"][{POST_SNAPBACK}][/a][/div]


well,

/etc/rc.d/init.d/bluetooth restart : doesn't work ... sorry to be so nasty

however:
/etc/rc.d/init.d/pcmcia restart is working and my bt card seems to like it better
Title: Latest Bluez Packages For Pdaxrom Beta3
Post by: kkazakov13 on January 30, 2007, 10:26:48 am
Damn ... I'll add restart option
Title: Latest Bluez Packages For Pdaxrom Beta3
Post by: Chero on January 30, 2007, 11:24:25 am
Quote
Damn ... I'll add restart option
[div align=\"right\"][a href=\"index.php?act=findpost&pid=152916\"][{POST_SNAPBACK}][/a][/div]
Title: Latest Bluez Packages For Pdaxrom Beta3
Post by: wowo123 on January 30, 2007, 12:32:15 pm
Is there any way to change the directory for incoming obex-files? Default is /home/root/Desktop  which is not quite the best choice. Thanks in advance, nice to have a working OBEX with beta3!