|
Nokia 3650 - Linux PC
|
Index
|
Howto make a permanent IP-Connection between the Nokia 3650 and a Linux-PC!?!News06/25/2003 adding part 6. Application using TCP/IP06/16/2003 First version of this HOWTO 0. HintsAt the moment there is no Nokia-Software for dataexchange between the Mobilephone 3650 und Linux. To portate some well known software like ftpd or nfsd a TCP/IP-Connection is obsolete. So where is the problem? A connection from Linux to the 3650 over DUND to use the phone as a Modem works well. But if you want to make a ppp-connection over SPP, the Nokia will block. So this is bad, or? No then after this the mobilephone tries to open a ppp-connection to the Linux-PC by itself. If you accept this one, the Nokia tries to resove the following DNS-Address "wsockhost.mrouter". These PC should be in your local network, in case there is no reply from the DNS or the PC is not answering, the connection will be closed. If all this went well, you have a stable IP-Connection...1. Preferences
2. On Linux side...After having a working Linux-Bluetooth-System you can continue. Best first try some data exchange with ussp-push or p3nfs).2.1 SPPYou have to support the SP-Profile for pppd/dund. Type the following:sdptool add --channel=2 SP 2.2 DNS-ConfigfilesTo resolve "wsockhost.mrouter" you should modify your bind configuration. Exsamples:/etc/named.conf: options { directory "/var/named"; cleaning-interval 120; statistics-interval 0; notify no; }; zone "localhost" in { type master; file "localhost.zone"; }; zone "0.0.127.in-addr.arpa" in { type master; file "127.0.0.zone"; }; zone "." in { type hint; file "root.hint"; }; zone "mrouter" { type master; file "/var/named/mrouter.hosts"; }; EOF /var/named/127.0.0.zone: $TTL 2D @ IN SOA localhost. root.localhost. ( 42 ; serial (d. adams) 1D ; refresh 2H ; retry 1W ; expiry 2D ) ; minimum IN NS localhost. 1 IN PTR localhost. EOF /var/named/localhost.zone: $TTL 2D @ IN SOA @ root ( 42 ; serial (d. adams) 1D ; refresh 2H ; retry 1W ; expiry 2D ) ; minimum IN NS @ IN A 127.0.0.1 EOF /var/named/mrouter.hosts: $ttl 38400 mrouter. IN SOA bernd. bernd.pnd. ( 2003051402 10800 3600 604800 38400 ) mrouter. IN NS bernd. wsockhost.mrouter. IN A 192.168.2.1 192.168.2.1.mrouter. IN PTR wsockhost EOF 2.3 PPP-ServerAn exsample for your /etc/ppp/options:noauth local modem proxyarp debug ms-dns 192.168.1.1 # DNS-Server who resolvs "wsockhost.mrouter" 192.168.1.100:192.168.1.200 # IP-Addresses for host and Mobilephone 2.4 dundTo act as a ppp server, type this:dund --listen --channel=2 2.5 Start the SP-Connection to your 3650Solong everything is OK. Now you should type..rfcomm connect 2 <MAC-des-Nokia-3650> 2 and wait for establishing the ppp connection from your mobilephone...fine 3. 3650 side...Enable Bluetooth and may allow connections from the Linuxbox.4. Testing...For exsample try the Opera browser to view some html sides.5. Stuff...To forward the requests from your Nokia through an ISP-Connection do the following:
6. Application using TCP/IPThe new p3nfsd V.5.13a optionaly use TCP/IP for transfer. In case of pure Bluetooth the transfer is sometimes interrupted. While your data exchange is over TCP/IP I have not seen any interruptions so far. The transferrate is 20000 Bytes/s in both directions. |