Help - Search - Members - Calendar
Full Version: Bluetooth Recieve
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > pdaXrom
rmrfchik
How can I recieve files with BT in pdaXrom RC10?
netdevil
QUOTE(rmrfchik @ Aug 8 2005, 02:17 PM)
How can I recieve files with BT in pdaXrom RC10?
*


Download obexserver from here: http://justnews.ru/zaurus/obexserver_1.0_armv5tel.ipk
and type in command line:
# sdptool add --channel=10 OPUSH
# obexserver
rmrfchik
QUOTE(netdevil @ Aug 17 2005, 10:34 AM)
QUOTE(rmrfchik @ Aug 8 2005, 02:17 PM)
How can I recieve files with BT in pdaXrom RC10?
*


Download obexserver from here: http://justnews.ru/zaurus/obexserver_1.0_armv5tel.ipk
and type in command line:
# sdptool add --channel=10 OPUSH
# obexserver
*


This package was made by me wink.gif
netdevil
QUOTE(rmrfchik @ Aug 17 2005, 07:47 AM)
QUOTE(netdevil @ Aug 17 2005, 10:34 AM)
QUOTE(rmrfchik @ Aug 8 2005, 02:17 PM)
How can I recieve files with BT in pdaXrom RC10?
*


Download obexserver from here: http://justnews.ru/zaurus/obexserver_1.0_armv5tel.ipk
and type in command line:
# sdptool add --channel=10 OPUSH
# obexserver
*


This package was made by me wink.gif
*



Thank you for creating this package!
And how to send file via bt ?
rmrfchik
QUOTE(netdevil @ Aug 17 2005, 11:06 AM)
Thank you for creating this package!
And how to send file via bt ?
*

Can't do that now sad.gif
I think, I build full obex tools and check it.
netdevil
QUOTE(rmrfchik @ Aug 17 2005, 08:29 AM)
QUOTE(netdevil @ Aug 17 2005, 11:06 AM)
Thank you for creating this package!
And how to send file via bt ?
*

Can't do that now sad.gif
I think, I build full obex tools and check it.
*



It's a great idea!
Thank you and good luck!
rmrfchik
I updated info on http://justnews.ru/zaurus and upload packages.
Stay tuned!
netdevil
Sending file via BT well done!!!

I got file "obextool" from CackoRom22a (thanks Anton Maslovky).
It attached to this post.
Make a link: ln -s /usr/lib/libopenobex-1.0.so.1.0.0 /usr/lib/libopenobex-1.0.so.0
and wrote a script "send.bt" for sending file via bt:

#!/usr/bin/perl

$file = $ARGV[0] or die "Usage:\n send.bt <filename>\n\n";
while (!$bt){
@bt = `hcitool scan`;
print @bt;
print "\nEnter BT client: ";
$bt = <STDIN>;
chomp $bt;
foreach $str (@bt){
chomp $str;
if ($str =~ /^\s+([\d\w:]+)\s+$bt.*$/){
$mac = $1;
}
}
$bt = "" if !$mac;
}
@res = `sdptool search --bdaddr $mac OPUSH`;
print @res;
foreach $str (@res){
if ($str =~ /\s*Channel: (\d+).*/){
$channel = $1;
}
}
print "Waiting for send file\n";
@res = `obextool push $file $mac $channel`;
print @res;
rmrfchik
QUOTE(netdevil @ Aug 17 2005, 04:01 PM)
Sending file via BT well done!!!

I got file "obextool" from CackoRom22a (thanks Anton Maslovky).

I upload via bt without any additional scripts and tools.
netdevil
QUOTE(rmrfchik @ Aug 17 2005, 01:04 PM)
QUOTE(netdevil @ Aug 17 2005, 04:01 PM)
Sending file via BT well done!!!

I got file "obextool" from CackoRom22a (thanks Anton Maslovky).

I upload via bt without any additional scripts and tools.
*



I use scripts because i am too lazy for write a commands.
It's very easy write: send.bt <filemame> smile.gif
rmrfchik
QUOTE(netdevil @ Aug 17 2005, 04:09 PM)
I use scripts because i am too lazy for write a commands.
It's very easy write: send.bt <filemame> smile.gif

Not too more to write:
obexftp -p -b <filename>
wink.gif
netdevil
QUOTE(rmrfchik @ Aug 17 2005, 01:15 PM)
QUOTE(netdevil @ Aug 17 2005, 04:09 PM)
I use scripts because i am too lazy for write a commands.
It's very easy write: send.bt <filemame> smile.gif

Not too more to write:
obexftp -p -b <filename>
wink.gif
*



What about BTADDR ?
A you known BTADDR all your BT devices ?
My script seaкche all bt devices and you only choose device which you want to send a file smile.gif
Darth_Sith
Hi.
I can receive, but can't send files.
The script don't work, and obexftp give me "no custom trasport"...

What I can do?
It's possible get work in rox (send option)?

Thanks for answers.
Chero
QUOTE(Darth_Sith @ Aug 30 2006, 09:11 AM)
Hi.
I can receive, but can't send files.
The script don't work, and obexftp give me "no custom trasport"...

What I can do?
It's possible get work in rox (send option)?

Thanks for answers.
*


maybe some news on this later, i'm struggling with gnome-bluetooth on my Z right now
desertrat
QUOTE(Darth_Sith @ Aug 30 2006, 08:11 AM)
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
obexftp --device <MY PHONE> --list

I immediately get:
CODE
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 sad.gif
Chero
QUOTE(desertrat @ Sep 10 2006, 02:57 PM)
QUOTE(Darth_Sith @ Aug 30 2006, 08:11 AM)
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
obexftp --device <MY PHONE> --list

I immediately get:
CODE
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 sad.gif
*



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.
Darth_Sith
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?
desertrat
QUOTE(Darth_Sith @ Sep 10 2006, 07:04 PM)
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 smile.gif
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 sad.gif
Chero
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
obexftp -b 00:11:00:11:00:11 -l
gives me a list of the subdirs on my phone
The output is :
CODE
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
obexftp -b 00:11:00:11:00:11 -c "Video's" -l


I see:
CODE
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
obexftp -b 00:11:00:11:00:11 -c "Video's" -c "Mijn Video's" -l

Then I finally see my video-files
CODE
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
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
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. wink.gif

Have fun,
Chero.
desertrat
QUOTE(Chero @ Sep 10 2006, 08:56 PM)
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.
desertrat
QUOTE(desertrat @ Sep 11 2006, 03:17 PM)
...
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
# 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
# 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
pelrun
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. smile.gif 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... biggrin.gif )
desertrat
QUOTE(pelrun @ Sep 12 2006, 11:38 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. smile.gif 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
# 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... biggrin.gif )

They'll be great. Anyway, why 2.18 and not the latest (or later) version?
pelrun
QUOTE(desertrat @ Sep 13 2006, 03:32 AM)
You mean that sometime before the release of 2.18 the functionality of libsdp.so was absorbed into libbluetooth making libsdp.so obsolete?
*

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(desertrat @ Sep 13 2006, 03:32 AM)
Anyway, why 2.18 and not the latest (or later) version?
*

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. rolleyes.gif

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! ohmy.gif
pelrun
...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! sad.gif

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.
desertrat
QUOTE(pelrun @ Sep 13 2006, 02:00 PM)
So, many hours later I finally have Bluez 2.24, OpenObex 1.3 and ObexFTPD 0.20. Yay.

Thanks smile.gif obexftp works now although as Chero points out it's very clunky sad.gif However I'm not sure whether it's because it's a newer version but wildcards do work:
CODE
obexftp -b $btnokia -c "E:" -c "Others" -p *.jpg

Also 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.
pelrun
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 huh.gif
Chero
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 ?! blink.gif I'm happy to know they do work in the new packages, I'll have them installed ASAP.

Chero.
pelrun
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 biggrin.gif

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!
desertrat
QUOTE(pelrun @ Sep 14 2006, 10:04 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 biggrin.gif

That is slow smile.gif But my figures are even slower sad.gif

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

Phone -> Z 5-10KB/s
Z -> Phone 15KB/s
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.