Author Topic: Latest Bluez Packages For Pdaxrom Beta3  (Read 12298 times)

kkazakov13

  • Sr. Member
  • ****
  • Posts: 408
    • View Profile
Latest Bluez Packages For Pdaxrom Beta3
« 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





 [ Invalid Attachment ]
 [ Invalid Attachment ]

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)
« Last Edit: January 21, 2007, 11:47:46 am by kkazakov13 »
SL-C3200 ** FOR SALE :( **
https://www.oesf.org/forum/index.php?showtopic=25969

Canon K30225 CF wireless card
Taxan iTax-LAN10 wired card
My packages for customized pdaXrom beta 3

kkazakov13

  • Sr. Member
  • ****
  • Posts: 408
    • View Profile
Latest Bluez Packages For Pdaxrom Beta3
« Reply #1 on: January 21, 2007, 06:42:57 am »
Built dbus-glib package for dbus 1.0.2, here it is:

 [ Invalid Attachment ]


I'm still having problem building python bindings for the latest dbus
« Last Edit: January 21, 2007, 06:45:22 am by kkazakov13 »
SL-C3200 ** FOR SALE :( **
https://www.oesf.org/forum/index.php?showtopic=25969

Canon K30225 CF wireless card
Taxan iTax-LAN10 wired card
My packages for customized pdaXrom beta 3

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Latest Bluez Packages For Pdaxrom Beta3
« Reply #2 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.........
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

kkazakov13

  • Sr. Member
  • ****
  • Posts: 408
    • View Profile
Latest Bluez Packages For Pdaxrom Beta3
« Reply #3 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!
« Last Edit: January 21, 2007, 08:20:27 am by kkazakov13 »
SL-C3200 ** FOR SALE :( **
https://www.oesf.org/forum/index.php?showtopic=25969

Canon K30225 CF wireless card
Taxan iTax-LAN10 wired card
My packages for customized pdaXrom beta 3

kkazakov13

  • Sr. Member
  • ****
  • Posts: 408
    • View Profile
Latest Bluez Packages For Pdaxrom Beta3
« Reply #4 on: January 21, 2007, 09:04:11 am »
Added gnome-bluetooth, get the packages


 [ Invalid Attachment ]


[a href=\"http://up.drun.net/i/f/bt1.png\" target=\"_blank\"]
« Last Edit: January 21, 2007, 09:14:32 am by kkazakov13 »
SL-C3200 ** FOR SALE :( **
https://www.oesf.org/forum/index.php?showtopic=25969

Canon K30225 CF wireless card
Taxan iTax-LAN10 wired card
My packages for customized pdaXrom beta 3

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Latest Bluez Packages For Pdaxrom Beta3
« Reply #5 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
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

kkazakov13

  • Sr. Member
  • ****
  • Posts: 408
    • View Profile
Latest Bluez Packages For Pdaxrom Beta3
« Reply #6 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)
« Last Edit: January 21, 2007, 11:43:37 am by kkazakov13 »
SL-C3200 ** FOR SALE :( **
https://www.oesf.org/forum/index.php?showtopic=25969

Canon K30225 CF wireless card
Taxan iTax-LAN10 wired card
My packages for customized pdaXrom beta 3

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Latest Bluez Packages For Pdaxrom Beta3
« Reply #7 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?

 [ Invalid Attachment ]
[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
« Last Edit: January 21, 2007, 11:14:04 am by jpmatrix »
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

kkazakov13

  • Sr. Member
  • ****
  • Posts: 408
    • View Profile
Latest Bluez Packages For Pdaxrom Beta3
« Reply #8 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 ...

 [ Invalid Attachment ]
SL-C3200 ** FOR SALE :( **
https://www.oesf.org/forum/index.php?showtopic=25969

Canon K30225 CF wireless card
Taxan iTax-LAN10 wired card
My packages for customized pdaXrom beta 3

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Latest Bluez Packages For Pdaxrom Beta3
« Reply #9 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 ...

 [ Invalid Attachment ]
[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
« Last Edit: January 21, 2007, 12:20:46 pm by jpmatrix »
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Latest Bluez Packages For Pdaxrom Beta3
« Reply #10 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
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

kkazakov13

  • Sr. Member
  • ****
  • Posts: 408
    • View Profile
Latest Bluez Packages For Pdaxrom Beta3
« Reply #11 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.
« Last Edit: January 21, 2007, 01:02:53 pm by kkazakov13 »
SL-C3200 ** FOR SALE :( **
https://www.oesf.org/forum/index.php?showtopic=25969

Canon K30225 CF wireless card
Taxan iTax-LAN10 wired card
My packages for customized pdaXrom beta 3

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Latest Bluez Packages For Pdaxrom Beta3
« Reply #12 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...
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

kkazakov13

  • Sr. Member
  • ****
  • Posts: 408
    • View Profile
Latest Bluez Packages For Pdaxrom Beta3
« Reply #13 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
« Last Edit: January 21, 2007, 02:44:52 pm by kkazakov13 »
SL-C3200 ** FOR SALE :( **
https://www.oesf.org/forum/index.php?showtopic=25969

Canon K30225 CF wireless card
Taxan iTax-LAN10 wired card
My packages for customized pdaXrom beta 3

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Latest Bluez Packages For Pdaxrom Beta3
« Reply #14 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 ?
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun