Author Topic: Bluetooth Recieve  (Read 14649 times)

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Bluetooth Recieve
« Reply #15 on: September 10, 2006, 01:07:02 pm »
Quote
Quote
I can receive, but can't send files.
The script don't work, and obexftp give me "no custom trasport"...
Can't send either. I'm using the packages from the official feed. When I try to list files on my phone:
Code: [Select]
obexftp --device --listI immediately get:
Code: [Select]
Custom transport set to 'Universal/Siemens'
Connecting...failed: connect
Still trying to connect
Connecting...failed: connect
Still trying to connect
Connecting...failed: connect
Still trying to connect
Actually any of the commands (--info, --put, etc) results in the same error.

My desktop is able to send and receive files from the phone without any problems (using the KDE ioslaves).

Also I'm able to use bluetooth from the Z to connect to the internet through the phone's gprs. But I can't get a simple file transfer to work
[div align=\"right\"][a href=\"index.php?act=findpost&pid=141063\"][{POST_SNAPBACK}][/a][/div]

I can receive using gnome-bluetooth, but I can't send. The "manager" doesn't work as it should. I can only receive one file, it starts receiving, receives the whole file, then it should stop receiving or start receiving the next one (probably some dialog should pop-up) - but nothing happens. I have to kill the app, then restart to receive the next file.

I'll keep on searching.

Someone who knows another gui-app to do these things ? (not kde-related !!)

Chero.
HP-95LX -> HP Jornada 680 -> SL-C860 -> SL-C3100 -> Fuji u810 -> SL-C1000 -> HTC uni -> SL-C860 -> SL-C760.
March 12 2009 : Back because the Zaurus is one of a kind.
SL-C760 : pdaXrom
Pandora pre-ordered -> received and tested : great device but not my cup of tea -> sold.

Darth_Sith

  • Full Member
  • ***
  • Posts: 128
    • View Profile
Bluetooth Recieve
« Reply #16 on: September 10, 2006, 03:04:06 pm »
And what are your experience with IRDA?
Also with irda I have the same problem: can receive but can't send.
There is a connession between these two problem?

SL-C1000 + cacko 1.23F + sd4GB + CFBT + CFWiFi
HTC Polaris

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Bluetooth Recieve
« Reply #17 on: September 10, 2006, 04:42:48 pm »
Quote
And what are your experience with IRDA?
Same as with bluetooth: can't send/receive (tried using xircp/ircp, and tried exporting contact info to mobile in kapi), BUT I can connect to internet through phone's gprs via infra red.
Quote
Also with irda I have the same problem: can receive but can't send.
Well at least you can receive  
I've got 3 irda devices: Z, phone, and wince. Phone and wince can talk to each other, but Z can't talk to either
« Last Edit: September 10, 2006, 04:48:28 pm by desertrat »
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Bluetooth Recieve
« Reply #18 on: September 10, 2006, 04:56:29 pm »
Hi,

I downloaded the packages pointed to in this thread, and I can send and receive through bluetooth. Now I'd like a GUI.

Code: [Select]
obexftp -b 00:11:00:11:00:11 -l gives me a list of the subdirs on my phone
The output is :
Code: [Select]
Folder-listing version "1.0"
 Â   Folder name="Afbeeldingen" modified="xxxxxxxxxxxxx"
 Â   Folder name="Muziek" modified="xxxxxxxxxxxxx"
 Â   Folder name="Geluiden" modified="xxxxxxxxxxxxx"
 Â   Folder name="Video's" modified="xxxxxxxxxxxxx"
 Â   xxxx

If I want to see what is in Video's then I
Code: [Select]
obexftp -b 00:11:00:11:00:11 -c "Video's" -l
I see:
Code: [Select]
Folder-listing version "1.0"
 Â   Folder name="Video" modified="xxxxxxxxxxxxx"
 Â   Folder name="Mijn Video's" modified="xxxxxxxxxxxxx"
 Â   Folder name="Gedownloade Video's" modified="xxxxxxxxxxxxx"

so I:
Code: [Select]
obexftp -b 00:11:00:11:00:11 -c "Video's" -c "Mijn Video's" -lThen I finally see my video-files
Code: [Select]
Folder-listing version "1.0"
 Â   file name="video-0001.mpg" modified="xxxxxxxxxxxxx" size="23145" user-perm="R"
 Â   file name="video-0002.mpg" modified="xxxxxxxxxxxxx" size="63145" user-perm="R"
 Â   file name="video-0003.mpg" modified="xxxxxxxxxxxxx" size="43145" user-perm="R"
 Â   xxxxxx

I want video-0002, so I :
Code: [Select]
obexftp -b 00:11:00:11:00:11 -c "Video's" -c "Mijn Video's" -g "video-0002.mpg"
And it gets copied to the current dir ....

Using wildcards ("*" or "?") doesn't work.
Using quotation marks (" ") - or how do you call these in English - is a must for me 'cause otherewise I can't enter a dir called "Video's" or a dir called "Gedownloade afbeeldingen".

To send a file to my phone I do :
Code: [Select]
obexftp -b 00:11:00:11:00:11 -p "video-0002.mpg"The phone determines where to put it (by extension).

Sorry my phone uses "dutch" as language.

Oh, my phone is a Samsung SGH-E340.
I can use (x)gnokii to send sms and view contacts over bluetooth, though the contacts stored on the phone get messed up.

Please point me to a nice bluetooth gui.    

Have fun,
Chero.
« Last Edit: September 10, 2006, 04:57:37 pm by Chero »
HP-95LX -> HP Jornada 680 -> SL-C860 -> SL-C3100 -> Fuji u810 -> SL-C1000 -> HTC uni -> SL-C860 -> SL-C760.
March 12 2009 : Back because the Zaurus is one of a kind.
SL-C760 : pdaXrom
Pandora pre-ordered -> received and tested : great device but not my cup of tea -> sold.

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Bluetooth Recieve
« Reply #19 on: September 11, 2006, 11:17:36 am »
Quote
I downloaded the packages pointed to in this thread, and I can send and receive through bluetooth.
Could you be a bit more specific? I'm pretty certain that by default pdaXrom has the BT stuff installed ie:
bluez-libs
 bluez-pan
 bluez-sdp
 bluez-utils


I downloaded these
obexserver 1.0
 bluez-utils 2.18-02
 bluez-libs 2.18
 obexftp 0.10.7

from rmrfchik (http://justnews.ru/zaurus/). Extracting rmrfchik's IPKs I note that none of them contain libsdp.so. In the official feed libsdp is provided by bluez-sdp, it also provides sdpd & sdptool. In rmrfchik's package bluez-utils provides sdpd & sdptool, but without libsdp.so they're not going to work. How did you resolve this? Did you just installed rmrfchik's stuff on top of the official stuff? Bearing in mind that some of the binaries are installed into different paths (so eg you'll end up with 2 lots of sdptool).

Also rmrfchik's packages does not provide init scripts for starting and stopping the bluetooth so eventually I'll have to hack my own.

Quote
Now I'd like a GUI.
There's one here http://openobex.triq.net/projects that uses Tcl/Tk.
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Bluetooth Recieve
« Reply #20 on: September 12, 2006, 11:34:44 am »
Quote
...
Also rmrfchik's packages does not provide init scripts for starting and stopping the bluetooth so eventually I'll have to hack my own.
I've repackaged the bluez stuff from rmrfchik's site and merged them with the official packages. These are the changes:

- removed manpages, headers, static libs from rmrfchik's packages
- added init scripts, libsdp.so from the official packages

The packages affected are (that is you should remove these packages if you want to install my all-in-one package):

official feed
bluez-utils
bluez-libs
bluez-pan
bluez-sdp

rmrfchik's packages
bluez-utils
bluez-libs

However using rmrfchik's obexftp I'm still getting errors:
Code: [Select]
# obexftp -v -b $btnokia -l
Browsing 00:55:44:33:22:11 ...
Channel: 11
No custom transport
Connecting...bt: 1
done
Receiving (null)... failed: (null)
Disconnecting...failed: disconnect
Similarly when trying to connect to my wince device:
Code: [Select]
# obexftp -v -b $btasus -l
Browsing 00:11:22:33:44:55 ...
Channel: 2
No custom transport
Connecting...bt: 1
done
Receiving (null)... failed: (null)
Disconnecting...failed: disconnect
NB I have obscured the MAC addresses to protect the guilty

NB Updated package to include /etc/rc.d/init.d/create_dev
« Last Edit: September 12, 2006, 11:35:03 pm by desertrat »
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

pelrun

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
Bluetooth Recieve
« Reply #21 on: September 12, 2006, 07:38:51 pm »
Libsdp.so was subsumed into libbluetooth prior to 2.18; you can't just stick an older copy in there and expect it to work.  The apps need to be recompiled.

I'm building and packaging a new bluez 2.18 and latest openobex/obexftp; I hope to have ipks in a day or so (assuming it works...  )
SL-C3100 with usb power mod running debian eabi
pdaXii13 still on the NAND for dualbooting
16GB SDHC! (a new one, after I sat on the old one and it went kaput)
D-Link 660 wifi, Socket Bluetooth rev H
External 9800mAh LiIon battery and slimline dvd drive
Homebrew microphone and remote

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Bluetooth Recieve
« Reply #22 on: September 12, 2006, 11:32:54 pm »
Quote
Libsdp.so was subsumed into libbluetooth prior to 2.18; you can't just stick an older copy in there and expect it to work.  The apps need to be recompiled.
You mean that sometime before the release of 2.18 the functionality of libsdp.so was absorbed into libbluetooth making libsdp.so obsolete?

I've no idea how rmrfchik compiled those packages but:
Code: [Select]
# ldd /bin/sdptool
        libbluetooth.so.1 => /usr/lib/libbluetooth.so.1 (0x4002b000)
        libsdp.so.2 => /usr/lib/libsdp.so.2 (0x40041000)
        libc.so.6 => /lib/libc.so.6 (0x40054000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
# ldd /sbin/sdpd
        libbluetooth.so.1 => /usr/lib/libbluetooth.so.1 (0x4002b000)
        libsdp.so.2 => /usr/lib/libsdp.so.2 (0x40041000)
        libc.so.6 => /lib/libc.so.6 (0x40054000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
# ldd /bin/hcitool
        libbluetooth.so.1 => /usr/lib/libbluetooth.so.1 (0x4002b000)
        libsdp.so.2 => /usr/lib/libsdp.so.2 (0x40041000)
        libc.so.6 => /lib/libc.so.6 (0x40054000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
# ldd /bin/l2ping
        libbluetooth.so.1 => /usr/lib/libbluetooth.so.1 (0x4002b000)
        libsdp.so.2 => /usr/lib/libsdp.so.2 (0x40041000)
        libc.so.6 => /lib/libc.so.6 (0x40054000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
# ldd /bin/hidd
        libbluetooth.so.1 => /usr/lib/libbluetooth.so.1 (0x4002b000)
        libsdp.so.2 => /usr/lib/libsdp.so.2 (0x40041000)
        libc.so.6 => /lib/libc.so.6 (0x40054000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
etc. so libsdp.so is called for.

Quote
I'm building and packaging a new bluez 2.18 and latest openobex/obexftp; I hope to have ipks in a day or so (assuming it works...  )
They'll be great. Anyway, why 2.18 and not the latest (or later) version?
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

pelrun

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
Bluetooth Recieve
« Reply #23 on: September 12, 2006, 11:56:52 pm »
Quote
You mean that sometime before the release of 2.18 the functionality of libsdp.so was absorbed into libbluetooth making libsdp.so obsolete?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=141281\"][{POST_SNAPBACK}][/a][/div]
Yup, it went away in 2.8. Sounds like rmrfchik had a somewhat broken build environment and an old libsdp got linked in when he was compiling bluez-utils. The ones I just finished building do not have any reference to it.

Quote
Anyway, why 2.18 and not the latest (or later) version?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=141281\"][{POST_SNAPBACK}][/a][/div]
Because I spent the past couple of days trying to do it without much luck - every package needed a newer version of some other package, which needed a newer version of yet another package and so on. I gave up after making about 10 ipks when it told me I needed to update glib... And then I accidentally rm -rf *'ed the wrong directory and lost everything I'd just built.  

2.18 seems to be new enough for the latest versions of openobex/obexftp and doesn't require any other packages to be installed, so I went with it. I guess I could try to figure out the most recent bluez version which meets those criteria, but it's hard since the Bluez guys have gone to some trouble to erase any trace of the older versions... I had to jump through hoops just to get the 2.18's!  
SL-C3100 with usb power mod running debian eabi
pdaXii13 still on the NAND for dualbooting
16GB SDHC! (a new one, after I sat on the old one and it went kaput)
D-Link 660 wifi, Socket Bluetooth rev H
External 9800mAh LiIon battery and slimline dvd drive
Homebrew microphone and remote

pelrun

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
Bluetooth Recieve
« Reply #24 on: September 13, 2006, 10:00:36 am »
...and just when I thought I'd finally gotten everything done, I discover 2.18 *isn't* new enough to support the latest obexftpd. I really thought I'd confirmed it worked, too!

So, many hours later I finally have Bluez 2.24, OpenObex 1.3 and ObexFTPD 0.20. Yay.

Depending on your BT card, you may need to eject and reinsert it after installing bluez-utils.
SL-C3100 with usb power mod running debian eabi
pdaXii13 still on the NAND for dualbooting
16GB SDHC! (a new one, after I sat on the old one and it went kaput)
D-Link 660 wifi, Socket Bluetooth rev H
External 9800mAh LiIon battery and slimline dvd drive
Homebrew microphone and remote

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Bluetooth Recieve
« Reply #25 on: September 13, 2006, 12:47:55 pm »
Quote
So, many hours later I finally have Bluez 2.24, OpenObex 1.3 and ObexFTPD 0.20. Yay.
Thanks  obexftp works now although as Chero points out it's very clunky  However I'm not sure whether it's because it's a newer version but wildcards do work:
Code: [Select]
obexftp -b $btnokia -c "E:" -c "Others" -p *.jpgAlso it seems the whole transfer process is very fragile, I often get errors and the transfer aborts. When I try again it succeeds. In contrast copying stuff to and from my desktop to both my phone and my wince is very robust. In fact I am in the middle of copying 1.3GB of stuff over to the wince and it has been going on for hours (with another 3 hours to go) without problems.

A word of warning to people installing this:
- when you uninstall the original (pdaxrom default) bluez-utils it will restart pcmcia, obviously if you're installing from/to microdrive or cf card it's going to cause big problems (I found out the hard way when I first uninstalled it)
- when you install pelrun's packages it will also restart pcmcia

So you should umount your microdrive/cf before trying this.
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

pelrun

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
Bluetooth Recieve
« Reply #26 on: September 13, 2006, 06:04:21 pm »
I agree obexftp is clunky - though I haven't had much trouble with transfers failing it's definitely a LOT slower than transfers from my PC. Like IrDA slow
SL-C3100 with usb power mod running debian eabi
pdaXii13 still on the NAND for dualbooting
16GB SDHC! (a new one, after I sat on the old one and it went kaput)
D-Link 660 wifi, Socket Bluetooth rev H
External 9800mAh LiIon battery and slimline dvd drive
Homebrew microphone and remote

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Bluetooth Recieve
« Reply #27 on: September 14, 2006, 01:36:08 am »
How about using gnome-bluetooth ? It seems to use it's own obexserver.

I've been trying to compile it, but can't get (the subdir) "libegg" compiled. It needs glib-genmarshal to generate the marshalers.list (which seems to succeed) but then the compiler complains about missing voids in "marshalers.h". When I look in the file, they are in it.

Anyone who has used libegg before ? It's not gnome-bluetooth specific as far as I understand. I'm sorry but I don't have the time to investigate this myself any longer right now.

About the wildcards : they didn't work for me and it's mentioned on the openobex-site they don't work ?!    I'm happy to know they do work in the new packages, I'll have them installed ASAP.

Chero.
« Last Edit: September 14, 2006, 01:36:34 am by Chero »
HP-95LX -> HP Jornada 680 -> SL-C860 -> SL-C3100 -> Fuji u810 -> SL-C1000 -> HTC uni -> SL-C860 -> SL-C760.
March 12 2009 : Back because the Zaurus is one of a kind.
SL-C760 : pdaXrom
Pandora pre-ordered -> received and tested : great device but not my cup of tea -> sold.

pelrun

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
Bluetooth Recieve
« Reply #28 on: September 14, 2006, 06:04:17 am »
I take back the slow remark - I did a rough speed test and got 20K/s, which is acceptable (my PC can get 40K/s, but it's not consistent.) I just shouldn't expect 10MB files to transfer in ten seconds

I hit the glib-genmarshal thing when I was trying to build all the dependencies for bluez 3.5, and decided it was not worth the extra effort to compile glib2 - so I fell back to a version that's happy with my current set of packages. It was hard enough getting bluez happy - gnome would kill me!
SL-C3100 with usb power mod running debian eabi
pdaXii13 still on the NAND for dualbooting
16GB SDHC! (a new one, after I sat on the old one and it went kaput)
D-Link 660 wifi, Socket Bluetooth rev H
External 9800mAh LiIon battery and slimline dvd drive
Homebrew microphone and remote

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Bluetooth Recieve
« Reply #29 on: September 14, 2006, 07:53:25 am »
Quote
I take back the slow remark - I did a rough speed test and got 20K/s, which is acceptable (my PC can get 40K/s, but it's not consistent.) I just shouldn't expect 10MB files to transfer in ten seconds
That is slow  But my figures are even slower

PC -> phone 70KB/s
Phone -> PC 20KB/s
PC -> Asus 730W 40KB/s

Phone -> Z 5-10KB/s
Z -> Phone 15KB/s
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM