posted by Eugenia Loli on Sun 27th Feb 2005 12:07 UTC

"Configuring Linux/PalmOS/MacOSX, Page 2/2"
Macintosh: (Panther-only)

1. Pair with the Linux machine: Turn on Bluetooth on your Mac, and then Setup a Bluetooth Device from the Bluetooth preference panel. Select "other device", select the BlueZ device, enter the 12345 pin number as requested, and create the pairing (it's a bit hairy procedure, sometimes doesn't work...).

2. Open the /Applications/Utiltiies/BluetoothSerialUtility and hit "new". Give it a name (e.g. BTLan), click "show in network preferences", and from the port type, select rs-232. From the "Select device..." button a new window will open: select the BlueZ name and then the "LAN Access Point" option. Click Select and then Ok. Make sure the On/Off switch for BTLan on the main Serial Utility window is checked. Close that window down.

3. Go to the Preferences/Network. From the "Show" combo box, select "Network port configurations" and enable the "BTLan" option. Click Apply Now.

4. From the Show combo box again, select the BTLan option. From the TCP/IP tab, select "using PPP". You can enter some DNS numbers there if you want btw, just in case. In the Modem tab, select the "null modem 115200" from the long list and uncheck the "wait for dial tone before dialing". Select Apply Now. Close down the Preferences.

5. Open /Applications/InternetConnect. You should be seeing the BTLan connection name there now. Select configuration and Edit Configurations. Save that default Modem Configuration. Now, hit "connect". You should be connected on the internet now via Arch Linux's Bluetooth routing.

Linux machine:

After starting your bluetooth services (different for each distro, usually it's /etc/rc.d/bluetooth start or /etc/rc.d/init.d/bluetooth start) do the following:

hcitool scan
# the above will give you something like:
#       00:11:22:33:44:55       BlueZ

modprobe bnep

# use the number found above
pand -c 00:11:22:33:44:55

# this is the IP address of your Linux client, change accordingly
ifconfig bnep0 10.0.0.111 netmask 255.255.255.0

# this is the address of your Arch Access Point server, change accordingly
route add default gw 10.0.0.102

ifconfig bnep0 up

You should now be connected to the Internet. If not, advise Google. ;)

PalmOS devices: (text borrowed from here):

1. Pair the Palm to the Bluetooth Access Point Linux machine: in Bluetooth Preferences, tap "Trusted Devices", "Add Device", and select your dongle's name from the list that appears. If it asks for your passphrase, use the pin you entered earlier: 12345.

2. In Connection Preferences, create a new connection with the following attributes: Connect To: PC, Via: Bluetooth, Device: {BlueZ}. Under Details, set the speed to 115,200 bps and Flow Ctl to Automatic.

3. In Network Preferences, create a new service. You can leave the User Name and Password fields blank. Select the connection you created in the previous step, then tap Details. Here, set the Primary and Secondary DNS servers to the same as your Server, and check the box for Automatic IP Address discovery.

4. Test the connection by tapping "Connect". After a few messages, the connection should be made. Tap Menu->Options->View Log..., and scroll to the bottom. Here, you can test the connection by sending the following ping command: ping 10.0.0.102 (or whatever your BT server's address is) -- this will test the connection between your Palm and the Server (i.e., Gateway). You can then try pinging an IP on the Internet, or a DNS name. If both work from the server, they ought to work from the handheld as well.

Conclusion

You can also configure PC laptops, desktop PCs and PocketPCs to connect to your BT Access Point as long they have BT functionality (the Access Point works for up to 7 clients, that's a Bluetooth protocol limitation).

Here's a guide how to connect a Windows machine on a Bluetooth Access Point. It should be fairly easy for PocketPC too. BTW, if you instead want to share internet connection via a USB or serial cable with your PalmOS (instead of Bluetooth), check this article.

Phew... That was painfull, no matter what OS you are using. But it works. Leave a comment on the forum or directly email me if you have trouble.

Table of contents
  1. "Configuring the server, Page 1/2"
  2. "Configuring Linux/PalmOS/MacOSX, Page 2/2"
e p (0)    14 Comment(s)

Technology White Papers

See More