View Full Version : anybody using linux & n3650
fricike
02-10-2003, 07:16 PM
Just to exchange experience, get tips and discuss problems and solutions, is there anybody else running linux to communicate with n3650?
ricey
03-10-2003, 01:34 AM
I'm not, but i want to!
What software config you using, and which communication method are you using?
I currently have to use a virtual windows machine to communicate via bluetooth with my 3650. Not ideal!
fricike
03-10-2003, 04:37 PM
Hey, good to hear that! :)
i dont have a BT device, i' using ir. i'm planning to buy one, but it isn't cheap enough for me at the moment. i have an external ir device, and im using it with openobex.
ricey
06-10-2003, 01:57 PM
I've heard of openobex, had a quick look at it the other month.
But i think IR might be a bit slow , i get impatient!, so one day BT will work without a kernel recompile! I might wait for that. And hopefully the nice developer boys will make it a priority, as more and more is being done via BT.
In the mean time i'll have to carry on using the virtual machine, which actually works very well.
fricike
06-10-2003, 02:22 PM
I've decided, i'm gonna get that bt device this (or next) week!
(Have any advice?)
That virtual windows machine is wine?
ricey
08-10-2003, 09:56 PM
That virtual windows machine is wine?
No I use VMWare running windows XP Pro.
Then i connect the hardware (USB Belkin BT Adapter) direct to the virtual machine. (instructions with VMWare)
Let me know how you get on.
fricike
10-10-2003, 04:56 PM
My BT is on the way! :)
According to this (http://www.holtmann.org/linux/bluetooth/devices.html), Belkin F8T001 and F8T003 is supported. Maybe check this bt howto (http://www.saunalahti.fi/~laakkon1/linux/3650_blue.php), it seems correct.
fricike
12-10-2003, 09:12 PM
Well, i've bought an epox bt-dg03, and it's working.
i can send files from pc to phone, but at the moment, not from phone to pc in the most simple way. (got problems compiling obexserver.c)
But via bt i can mount my phone to ex. /mnt/phone, and i can work on it like a part of the filesystem... :)
meanguy
30-10-2003, 01:57 AM
hmm actually i do, obexserver is fine as well as i can upload files to my nokia3650, and aslo use bmused with xmms.
if anyone has a problem u can email me at
[email protected]
though if u google, u will find pretty stright forwarded answers.
fricike
30-10-2003, 10:08 AM
Everything is working fine here too, except obex_server.
Would you please mail me the compiled file? Maybe... :)
meanguy
30-10-2003, 05:27 PM
sure, just give me ur email, and i'll send it to u, or send me an email request.
and i'll reply with the file.
and to make it easier on u. put it in /usr/local/bin/
so u wouldn't have to type the whole path everytime u want to use it
just obsexserver
and it'll work
hopefully :)
fricike
31-10-2003, 12:06 AM
[email protected]
What BT software do you use? Bluez?
With IR i send with irobex_palm3 so i wrote a /usr/local/bin/btobex_palm3:
> rfcomm connect 1 00:60:57:50:74:B8 10 &
> sleep 1
> ussp-push /dev/rfcomm1 "$1" "$1" 2>/dev/null
> rfcomm release 1
f
meanguy
31-10-2003, 01:08 AM
yeah its bluez. heard of another program? i dont mind trying anything. anyways.
i emailed u the file.
let me know if it works
obexsend.sh <-- thats for sending from http://www.unrooted.net/hacking/bluez-rfcomm-obex.html
its a good one, though i called it send2nokia and moved it in /usr/local/bin/
easier to send :P
hmmmmmmm here's this one, might be helpful for u "cuz i didn't know how to do it before"
for i in *.gif; do send2nokia $i; done
this code is .. to send all the files with .gif extention "by using send2nokia program"
u can say, like this also .
for i in *.jpg; do mv $i renamed/`basename $i .jpg`.gif; done
this can be useful sometimes, trust me :)
have fun.
meanguy
31-10-2003, 01:12 AM
ur email is wrong. doesn't exists.
do me a favor and just email me at
[email protected]
so i'd just reply it and get over it
bye.
fricike
31-10-2003, 03:42 PM
Mail sent!
The other sw i heard of (but not tried) is affix.
If i need to send several files to the phone i mount the phone to /mnt/phone using p3nfs. Easier and _much_ faster. :)
Have you ever tried that hack about using the PC connection to browse? I were successful under win, but not under linux. :*( Any experience?
meanguy
31-10-2003, 06:35 PM
yeah i sent u the email.
funny thing. i couldn't get affix to work.
do u compile any filesystem modules in the kernel or something .
if u have a good link please post it.
peace.
fricike
31-10-2003, 07:30 PM
i'm using p3nfs (http://www.ki-ag.de/html/tech/p3nfs.html). after compiling (./configure, make, make install) make a folder /mnt/phone, turn BT on, install nfsapp-2.6-series60.sis to the phone, start it, press joystick button (or number 7), and you have 30 sec exec phn-mount on the PC! Now ls -l /mnt/phone ! After usage, don't forget to phn-umount!
/usr/local/bin/phn-mount:
> rfcomm bind /dev/rfcomm2 00:60:57:50:74:B8 4
> sleep 1
> p3nfsd -series60 -dir /mnt/phone/ -tty /dev/rfcomm2
/usr/local/bin/phn-umount:
> umount /mnt/phone
> rfcomm release /dev/rfcomm2 00:60:57:50:74:B8 4
> killall -9 p3nfsd
meanguy
31-10-2003, 09:50 PM
i wish it was that easy.
heres the ./configure output. and make
johar@gentoo$ ./configure
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc... /usr/bin/gcc
checking for AIX... no
checking for additional libraries... checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for svcudp_create in -lrpcsoc... no
checking for rfcomm_connect in -lrfcomm... no
checking for batostr in -lrfcomm... no
checking for mount table... /etc/mtab
checking for default serial line... /dev/ttyS0
checking how to run the C preprocessor... gcc -E
checking for sys/ioctl.h... yes
checking for sys/errno.h... yes
checking for sys/ttold.h... no
checking for stdlib.h... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating nfsd/Makefile
creating nfsd/config.h
johar@gentoo$ make
cd nfsd; make all
make[1]: Entering directory `/home/johar/cellphone/p3nfs-5.12/nfsd'
gcc -O2 -Wall -I. -c -o mp_main.o mp_main.c
gcc -O2 -Wall -I. -c -o mp_mount.o mp_mount.c
gcc -O2 -Wall -I. -c -o nfs_prot_svc.o nfs_prot_svc.c
gcc -O2 -Wall -I. -c -o nfs_prot_xdr.o nfs_prot_xdr.c
gcc -O2 -Wall -I. -c -o mp_pfs_ops.o mp_pfs_ops.c
gcc -O2 -Wall -I. -c -o mp_serial.o mp_serial.c
gcc -O2 -Wall -I. -c -o mp_inode.o mp_inode.c
gcc -O2 -Wall -I. -c -o mp_xmit.o mp_xmit.c
gcc -O2 -Wall -I. -c -o crc.o crc.c
gcc -O2 -Wall -I. -c -o pty.o pty.c
gcc -lnsl -o p3nfsd mp_main.o mp_mount.o nfs_prot_svc.o nfs_prot_xdr.o mp_pfs_ops.o mp_serial.o mp_inode.o mp_xmit.o crc.o pty.o
mp_xmit.o(.text+0x439): In function `getbyte':
: warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
mp_mount.o(.text+0x6cd): In function `mount_and_run':
: undefined reference to `errno'
mp_mount.o(.text+0xb57): In function `mount_and_run':
: undefined reference to `errno'
collect2: ld returned 1 exit status
make[1]: *** [p3nfsd] Error 1
make[1]: Leaving directory `/home/johar/cellphone/p3nfs-5.12/nfsd'
make: *** [all] Error 2
any suggestions? , btw did obexserver work?
fricike
01-11-2003, 12:04 AM
Bleh, i'm sorry. I wrote those instructions from memory, without any check.
There's the binary in the bin folder in the archive. (if not, give this version (http://www.koeniglich.de/p3nfs.html) of p3nfs a try!
Unfortunately, obexserver still suxx. Stops with the same; function btobex_accept is missing (or something).
meanguy
01-11-2003, 12:55 AM
thanx. i'll look it up.
however. would u mind telling me the exact steps on how u're trying to compile obexserver ? i did have problems long time ago with it. but if u just refresh my memory
if u dont mind. in details.
i might have had the same problem before.
meanguy
01-11-2003, 03:20 AM
here's the good news. it worked. got it compiled. and blah blah.
i did creat the same scripts as urs.
...... i'll give u the funny output.
here's the files.....
this is the phone-mount
rfcomm bind /dev/rfcomm2 00:60:57:76:DD:5E 4
sleep 1
p3nfsd -series60 -dir /mnt/mynokia/ -tty /dev/rfcomm2
and this is phone-umount
umount /mnt/mynokia/
rfcomm release /dev/rfcomm2 00:60:57:76:DD:5E 4
killall -9 p3nfsd
--------------------------
bash-2.05b# ./phone-mount
p3nfsd: version 5.14, using /dev/rfcomm2 (115200), mounting on /mnt/mynokia/
p3nfsd: to stop the server do "ls /mnt/mynokia//exit". (pid 1150)
ls
umount /mnt/mynokia/:Invalid argument
umount /mnt/mynokia/:Invalid argument
umount /mnt/mynokia/:Invalid argument
umount /mnt/mynokia/:Invalid argument
umount /mnt/mynokia/:Invalid argument
umount /mnt/mynokia/:Invalid argument
umount /mnt/mynokia/:Invalid argument
umount /mnt/mynokia/:Invalid argument
umount /mnt/mynokia/:Invalid argument
umount /mnt/mynokia/:Invalid argument
umount /mnt/mynokia/:Invalid argument
this msg -> umount /mnt/mynokia/:Invalid argument comes after like 5 mnts and doesn't stop ...and the msg keeps going on.....
while it was being monted.. u know when i got this msg -> p3nfsd: to stop the server do "ls /mnt/mynokia//exit". (pid 1150)
johar@gentoo$ ls -l /mnt/mynokia/
total 0
bash-2.05b# ./phone-unmount
umount: /mnt/mynokia/: not mounted
bash-2.05b# ps aux | grep p3nfsd
root 1137 0.0 0.3 1504 592 pts/0 D 02:51 0:00 p3nfsd -series60 -dir /mnt/mynokia/ -tty /dev/rfcomm2
root 1150 0.0 0.0 0 0 pts/0 Z 02:51 0:00 [p3nfsd] <defunct>
root 1205 0.0 0.2 1440 448 pts/1 R 02:59 0:00 grep p3nfsd
----
after like 10 mnts , it dies
thats about it.
are there any keys i press on the phone? and i also get this stupid msg about umount /mnt/mynokia unkown arguement. if i press the joystick and i get "no mount point" or something like that........
there u go ;l
fricike
01-11-2003, 11:57 AM
compiling obexserver:
downloaded the .c file, and copied to src/openobex-alls-1.0.0/src/, and
cc -o obexserver obexserver.c libmisc.a -lopenobex
first, i had the problem was userdata. changed it to customata.
then i got a failure message about btobex_accept.
now i tried again, i could compile (what happened?!?!), but if i run it, i still get
undefined symbol: btobex_accept message....
p3nfs:
you have to do everything as root.
but these two lines are great news! they say ya got it working.
> p3nfsd: version 5.14, using /dev/rfcomm2 (115200), mounting on /mnt/mynokia/
> p3nfsd: to stop the server do "ls /mnt/mynokia//exit". (pid 1150)
i think if you can't umount it, it's not a problem.
meanguy
02-11-2003, 10:27 PM
those are the helpful links i've used in order to make it work.
it could be since the function isn't enabled. probably a module in ur kernel is missing?
i still haven't feddled with it. but i'll give it a try later on
or i'll google for some answers later .
http://blog.chris.de/archives/19_Bluetooth_Linux_and_a_Mobile.html
http://eol.init1.nl/linux/sitecom/cn-500.php
did u define
$ cd openobex-apps-1.0.0/src
$ wget http://www.frasunek.com/sources/unix/obexserver.c
$ cc -o obexserver obexserver.c libmisc.a -lopenobex
# chown root.root obexserver && cp obexserver /usr/local/bin
# sdptool add --channel=10 OPUSH
# ./obexserver
read those two links, u might have missed something
fricike
02-11-2003, 11:00 PM
yeah, thanks the links, i know them, read them before.
when i go thru these lines, everythinks seems fine, but when i run obexserver, i get this:
diquot:/home/fricike/src/openobex-apps-1.0.0/src# /usr/local/bin/obexserver
Waiting for connection...
/usr/local/bin/obexserver: relocation error: /usr/local/bin/obexserver: undefined symbol: btobex_accept
according to lsmod i have these bt related mods loaded:
l2cap 16496 2 (autoclean)
rfcomm 31616 1 (autoclean)
hci_usb 8120 1
bluez 32132 3 [l2cap rfcomm hci_usb]
Do i need anything else??
meanguy
03-11-2003, 12:00 AM
ahha, did u specify the pin ? it seems to be working.
when u ask it to "pair with ur computer" it should ask u for a pin!
anyways. do this. , hope it helps
echo 1 >> /etc/bluetooth/pin
and in hcid.conf , also in /etc/bluetooth
put # infront of pin_helper /bin/bluepin;
# PIN helper
# pin_helper /bin/bluepin;
and make sure. that u have the line
lm accept;
anyhow. here's my hcid.conf
...........................................................
#
# HCI daemon configuration file.
#
# $Id: hcid.conf,v 1.3 2002/07/18 18:12:46 maxk Exp $
#
# HCId options
options {
# Automatically initialize new devices
autoinit yes;
# Security Manager mode
# none - Security manager disabled
# auto - Use local PIN for incoming connections
# user - Always ask user for a PIN
#
security auto;
# Pairing mode
# none - Pairing disabled
# multi - Allow pairing with already paired devices
# once - Pair once and deny successive attempts
pairing multi;
# PIN helper
# pin_helper /bin/bluepin;
}
# Default settings for HCI devices
device {
# Local device name
# %d - device id
# %h - host name
name "Gentoo";
# Local device class
class 0x100;
# Default packet type
#pkt_type DH1,DM1,HV1;
# Inquiry and Page scan
iscan enable; pscan enable;
# Default link mode
# none - no specific policy
# accept - always accept incoming connections
# master - become master on incoming connections,
# deny role switch on outgoing connections
#
#lm accept,master;
#
lm accept;
# Default link policy
# none - no specific policy
# rswitch - allow role switch
# hold - allow hold mode
# sniff - allow sniff mode
# park - allow park mode
#
#lp hold,sniff;
#
lp hold,sniff,park;
# Authentication and Encryption
#auth enable;
#encrypt enable;
}
........... i hope it works. i think i did have a problem with obexserver accepting files before. something about "authentication and shit like that.
u might wanna copy the file over there.
let me know how it goes.
meanguy
03-11-2003, 12:20 AM
and yeah , after u do that, dont forget to pair with device before sending it anything.
fricike
03-11-2003, 12:21 AM
not helped. the pin specified (without that i couldn't have had pair the device before), device paired, set as authorized, etc. the same prob. :(
meanguy
03-11-2003, 01:35 AM
maybe its time to send the developpers ... but i noticed u have 1.0.0,
try this source
http://debian.spark.net.gr/debian/pool/main/o/obexserver/obexserver_1.0-3.tar.gz
another desperate move...
take out the line
btobex_accept . just to see how it works.
...... just for the record. maybe u missed out a package?
net-wireless/bluez-utils vr 2.3
net-wireless/bluez-sdp 1.4
net-wireless/bluez-libs 2.4
net-wireless/bluez-kernel 2.3
net-wireless/bluez-hciemu 1.0
net-wireless/bluez-hcidump 1.5
net-wireless/bluez-bluefw 0.9
these are the packages i have installed.
... although , before taking out the btobex line "im sure it would't work. but who knows" ...
try the other version. maybe u'll be lucky and it would be the problem fixed with the other source.
heh. let me know how it goes.
----after edit------
hey, i asked some of my friends. in linux, the general question was if u get unidentified symbol : function bleh, does it mean that he's missing one of the dependincies?... the answer was it is possible, try compiling it again. if it doesn't work. recompile the lastest versions of its dependencies.
good luck
just out of curiousity. which distro do u use?
fricike
03-11-2003, 02:37 PM
tried the tar you linked. everything seems workin, no error message, only when i'm tryin to run the /usr/bin/obexserver (this is the new).
It gives the same error.
here goes "dpkg -l |grep blue":
ii bluez-bluefw 1.0-1 Firmware and loader for BCM2033-based Blueto
ii bluez-hcidump 1.5-2 Analyses Bluetooth HCI packets
ii bluez-pan 1.1rel-1 Personal area networking for Bluetooth devic
ii bluez-pin 0.20-2 Bluetooth PIN helper with D-BUS support
ii bluez-sdp 1.4-1 BlueZ Bluetooth SDP daemon and tool
ii bluez-utils 2.3-2 Utilities for controlling Bluetooth devices
ii libbluetooth1 2.4-1 Library to use the BlueZ Linux Bluetooth sta
i've downloaded the .deb files straight from http://bluez.sourceforge.net/download/debian/
anyway I'm using debian distrib testing, kernel 2.4.21-4-686.
meanguy
04-11-2003, 12:30 AM
i think debian already has obexserver in package. its been a year since i used it. try apt-cache search obexserver <- and then apt-get install obexserver
"ofcourse after u remove everything"
u also might wanna try #debian on freenode. they know alot. im sure they'd help u.
fricike
30-11-2003, 02:12 AM
hi again
i got that idea to run a webcam. but coz softcam works with windows, i'm trying to find another way.
with p3nfs i can see my phn as a part of my filesystem, and with cron i can get a specified file eg. in every 10 sec. but what app is going to take a pic for me every 10 sec?
do you know any app i can set to take a shot and save it to a specified file continously ?
or does anybody have any solution to use the 3650 as a webcam?
thanks
when accessing phone with: rfcomm connect 1 [mac-address] 10
the phone asks for a PIN. No matter what PIN I enter in /etc/bluetooth/pin and phone , PC answers with: Can't connect RFCOMM socket: Connection refused. I put # in front of pin_helper /bin/bluepin.
After hours of trying and googling still no solution. I'm new with linux.
ahha, did u specify the pin ? it seems to be working.
when u ask it to "pair with ur computer" it should ask u for a pin!
anyways. do this. , hope it helps
echo 1 >> /etc/bluetooth/pin
and in hcid.conf , also in /etc/bluetooth
put # infront of pin_helper /bin/bluepin;
# PIN helper
# pin_helper /bin/bluepin;
and make sure. that u have the line
lm accept;
anyhow. here's my hcid.conf
...........................................................
#
# HCI daemon configuration file.
#
# $Id: hcid.conf,v 1.3 2002/07/18 18:12:46 maxk Exp $
#
# HCId options
options {
# Automatically initialize new devices
autoinit yes;
# Security Manager mode
# none - Security manager disabled
# auto - Use local PIN for incoming connections
# user - Always ask user for a PIN
#
security auto;
# Pairing mode
# none - Pairing disabled
# multi - Allow pairing with already paired devices
# once - Pair once and deny successive attempts
pairing multi;
# PIN helper
# pin_helper /bin/bluepin;
}
# Default settings for HCI devices
device {
# Local device name
# %d - device id
# %h - host name
name "Gentoo";
# Local device class
class 0x100;
# Default packet type
#pkt_type DH1,DM1,HV1;
# Inquiry and Page scan
iscan enable; pscan enable;
# Default link mode
# none - no specific policy
# accept - always accept incoming connections
# master - become master on incoming connections,
# deny role switch on outgoing connections
#
#lm accept,master;
#
lm accept;
# Default link policy
# none - no specific policy
# rswitch - allow role switch
# hold - allow hold mode
# sniff - allow sniff mode
# park - allow park mode
#
#lp hold,sniff;
#
lp hold,sniff,park;
# Authentication and Encryption
#auth enable;
#encrypt enable;
}
........... i hope it works. i think i did have a problem with obexserver accepting files before. something about "authentication and shit like that.
u might wanna copy the file over there.
let me know how it goes.
Powered by vBulletin® Version 4.2.0 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.