obexserver
NAMEmaxtt писал(а):что это такое - скажите , прежде чем поставлю
obexserver - receive files with OBEX protocol and Bluetooth
SYNOPSIS
obexserver
DESCRIPTION
obexserver is a small tool which uses openobex to receive files using the OBEX (object exchange) protocol via Bluetooth. It is mainly used to
receive files from bluetooth enabled devices (e.g. mobile phones like the nokia 7650).
For using obexserver with bluetooth, you first need to register the OPUSH service by using the command 'sdptool add --channel=10 OPUSH'. The
channel number is right for nokia but can be different for other phones. You can use sdptool and its browsing service to check which channel your
mobile phone / bluetooth device uses for OBEX.
After you have registered the service you can just start obexserver. It will store received files in /tmp.
Есть ли у кого-нибудь скрипт для автоматической посылки объектов с Завра? А то процедура многоступенчатая:
1) hcitool scan DEVICE_NAME
to find MAC
2) sdptool search OPUSH
to get channel number for required MAC
3)opextool push /path/file XX:XX:XX:XX:XX:XX CHANNEL_NUMBER
1) hcitool scan DEVICE_NAME
to find MAC
2) sdptool search OPUSH
to get channel number for required MAC
3)opextool push /path/file XX:XX:XX:XX:XX:XX CHANNEL_NUMBER
Zaurus SL-C860 with Cacko 1.22a,Socket Bluetooth rev.G, Wi-Fi, SD Kingston 256MB & 1Gb, Casio CF Modem
Шаг 1 можно смело опустить.VadimG писал(а):Есть ли у кого-нибудь скрипт для автоматической посылки объектов с Завра? А то процедура многоступенчатая:
1) hcitool scan DEVICE_NAME
to find MAC
2) sdptool search OPUSH
to get channel number for required MAC
3)opextool push /path/file XX:XX:XX:XX:XX:XX CHANNEL_NUMBER
Спасибо, нашел!
вот получившийся скриптик send.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;
вот получившийся скриптик send.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;
Ужас.
Я собрал новые утилиты и проч.
http://justnews.ru/zaurus
Послать файло, как два пальца об асфальт:
#obexftp -p -b [btaddress] filename.jpg
it works
Я собрал новые утилиты и проч.
http://justnews.ru/zaurus
Послать файло, как два пальца об асфальт:
#obexftp -p -b [btaddress] filename.jpg
it works
