sx1 and Debian sarge/etch Author: contact@bokomoko.de Getting bluetooth to work: ========================== - apt-get install bluez-utils silverboxy:~# hcitool scan Scanning ... 00:01:E3:3B:2C:B4 SX1 handy - sometimes it is required to do an /etc/init.d/hcitools restart - Modify pin_helper rd@silverboxy:~$ grep pin_helper /etc/bluetooth/hcid.conf # pin_helper /usr/bin/bluez-pin; pin_helper /usr/local/bin/pin-helper; rd@silverboxy:~$ - Prepare for p3nfs rd@silverboxy:~$ cat /etc/bluetooth/rfcomm.conf # # RFCOMM configuration file. # # $Id: sx1,v 1.3 2007-10-14 19:31:49 rd Exp $ # # example: # rfcomm11 { bind yes; # Bluetooth address of the device device 00:01:E3:3B:2C:B4; # RFCOMM channel for the connection channel 11; # Description of the connection comment "SX1 Handy"; } - install openobex-apps transfer nfsclient to SX1 e.g. rd@silverboxy:~$ obex_test -b 00:01:E3:3B:2C:B4 9 Using Bluetooth RFCOMM transport OBEX Interactive test client/server. > c Connect OK! Version: 0x10. Flags: 0x00 > p nfsclient.sis nfsclient.sis - install p3nfs silverboxy:~# rfcomm rfcomm0: 00:01:E3:3B:2C:B4 channel 11 clean Start nfsapp on sx1 silverboxy:~# p3nfsd -series60 -tty /udev/rfcomm11 -dir /mnt/sx1 p3nfsd: version 5.15, using /udev/rfcomm11 (115200), mounting on /mnt/sx1 p3nfsd: to stop the server do "ls /mnt/sx1/exit". (pid 20670) (note the Debian package does not contain the binary .sis nfsapp-client for the SX1. But it is contained in the .tar.gz from http://koeniglich.de) Permanent IP connection: ======================== Only channel 2 works. Need to contact SX1 on channel two then it establishes a ppp connection on channel 3. See also http://www.sbellon.de/p900.html and http://www.usp-forum.de/bqs-softwareforum/10656-gnubox-und-sx1.html add entry into /etc/bluetooth/rfcomm.conf to make /dev/rfcomm2 available to contact the SX1 on channel 2 rfcomm2 { bind yes; # Bluetooth address of the device device 00:01:E3:3B:2C:B4; # RFCOMM channel for the connection channel 2; # Description of the connection comment "Kathrins Handy"; } listen to channel 3 with dial-up networking daemon dund by modifying DUND in /etc/default/bluetooth # Run dund -- this allows ppp logins. 1 for enabled, 0 for disabled. DUND_ENABLED=1 # Arguments to dund: defaults to acting as a server #DUND_OPTIONS="--listen --persist --channel 2 call sx1-incoming" DUND_OPTIONS="--listen --channel 3 call sx1-incoming" add /etc/ppp/peers/sx1-incoming silverboxy:~# cat /etc/ppp/peers/sx1-incoming debug noauth crtscts lock proxyarp passive ipcp-accept-local ipcp-accept-remote ms-dns 192.168.2.1 192.168.2.1:192.168.2.99 #169.254.1.68:169.254.1.69 After connecting on channel 3, the SX1 asks for the router wsockhost.mrouter. Need to create a dns entry in /etc/hosts (assuming dnsmasq is used as local DNS server) cat /et hosrd@nslu2:~$ cat /etc/hosts 127.0.0.1 localhost 127.0.1.1 nslu2.alzental-castle.de 192.168.1.2 dns nslu2 192.168.1.1 silverboxy sb wsockhost.mrouter Make channel 3 behave as serial port $ sdptool add --channel=3 SP Contact the SX1 on channel 2 $ cat /dev/rfcomm2 I suggest you put those two lines in a small script and place it with a convenient name into your ~/bin/. I called it blue-ppp. (see also http://www.kevinboone.com/p800_linux.html) SyncML: ======= (not yet working) information sources: /usr/share/doc/libopensync-plugin-syncml/README.Debian.gz http://wiki.ubuntuusers.de/OpenSync/Plugin-SyncML http://permalink.gmane.org/gmane.comp.misc.opensync.user/1056 http://united-geeks.org/blog/index.php?/archives/10-SX1-SyncML,-Multisync,-Evolution-2,-Gentoo-Linux.html Running p3nfs: ============== Make sure to configure your firewall that tcp port 13579 and udp port 53 are open. Otherwise the ppp connection stops working after a while (UDP 53 bit openend)... doublecheck C:/System/Apps/nfsapp/nfsclient.ini on the SX1 for the right IP address. run p3nfsd -series60 -tcp -dir /mnt/sx1/ Then nfsapp on your cell phone. Press the stick until a tcp connection is established. For authentication data, doublecheck C\:/System/data/mrouteragent.ini gnokii: ======= read out sx1's phonebook etc. add to /etc/bluetooth/rfcomm.conf: rfcomm14 { bind yes; # Bluetooth address of the device device 00:01:E3:3B:2C:B4; # RFCOMM channel for the connection channel 14; # Description of the connection comment "SX1 Handy"; } Add rd@silverboxy:~$ cat .gnokiirc [global] port = 00:01:E3:3B:2C:B4 rfcomm_channel = 14 model = gnapplet #model = series60 connection = bluetooth [logging] debug = off rlpdebug = off xdebug = off rd@silverboxy:~$ Install on SX1 /usr/share/doc/gnokii/gnapplet.sis.gz Start gnapplet on SX1 then run on the Linux box run e.g. gnokii --identify gnokii --getphonebook ME 1 end Same works with xgnokki, but make sure to unset LANG before starting it. putty: ====== downloaded the noconnect version from http://www.modeemi.fi/~pekangas/putty/ copied the .sis to the sx1 using p3nfsd. find out a lot about the handy: =============================== sdptool browse 00:01:E3:3B:2C:B4 find out firmware variant: ========================== *#06#, danach wird eure IMEI Nummer angezeigt. Dann klickt Ihr auf "Info" und es wird euch eure aktuelle Firmwareversion angezeigt. Wenn Ihr etwas runterscrollt seht Ihr euere Variante. gnubox: ======= I have not yet tried that, but http://www.unix-ag.uni-kl.de/~leonard/sx1.txt seems to be a good start (see also ~/Ablage/Geraete/SX1)