LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-05-2005, 09:38 AM   #1
fosterjuan
LQ Newbie
 
Registered: Nov 2005
Location: South Africa
Distribution: Suse 10/FC4
Posts: 5

Rep: Reputation: 0
Internet sharing via Bluetooth


Hi Guys,

I'm having some trouble with my connections. The problem is that I only can connect via bluetooth.No network car,wireless etc. I'm running Suse10 on my PC and need to connect to my laptop with XP(The laptop connects via a 3G card to the internet). It is a easy job sharing the internet connection when both PC's have XP but I'm trying to move to linux(PC). I can move files via Suse10 with no problem but that doesn't fix my internet problem. Even my caveman of an old phone with bluetooth works fine. Can anybody point me in the right direction to fix the problem.(In XP they saw the bluetooth devices as network cards and it automatically shared the internet)

Regards
Juan
 
Old 11-05-2005, 11:29 PM   #2
arunbabu
LQ Newbie
 
Registered: Oct 2005
Location: kerala
Posts: 8

Rep: Reputation: 0
Sorry i cannot help you with ur problem, but may be you could help with mine.

how do i dialup an internet with a dongle ? from kde ? my bluetooth can be connected and can transfer files.
 
Old 11-06-2005, 04:41 AM   #3
fosterjuan
LQ Newbie
 
Registered: Nov 2005
Location: South Africa
Distribution: Suse 10/FC4
Posts: 5

Original Poster
Rep: Reputation: 0
That was the root that I was following but I can't get it to work?Sorry about this but the windows software that came along with mine enable me to do that. I'm still having the time of my life working on linux.Sorry?
 
Old 11-06-2005, 06:07 AM   #4
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
I haven't done this before but I know a bit about Bluetooth so here we go. I presume you know the address of the other computer with Bluetooth? If not, type this at a console:
Code:
hcitool scan
Then once you have the address, ping it to check that you can send/receive packets from it:
Code:
l2ping xx:xx:xx:xx:xx:xx
Should all that work, then try this (this is the bit I haven't done so I make no promises:
Code:
pand -c xx:xx:xx:xx:xx:xx
and see what it says. In theory, that should create a connection between the computers similar to a basic LAN, then you can just share the connection over that
 
Old 11-06-2005, 10:11 AM   #5
arunbabu
LQ Newbie
 
Registered: Oct 2005
Location: kerala
Posts: 8

Rep: Reputation: 0
hey may be i'll share what i know...and check out this link http://pramode.net/articles/lfy/mobile/pramode.html

Hack a Mobile Phone with Linux and Python

A mobile phone is a cool gadget to play with, especially when I can run my favourite programming language (no prize for guessing what it is!) on it! That was the logic which made me purchase a Nokia Series 60 smartphone, the N-Gage QD. This article describes a few experiments I did with the mobile - like setting up Bluetooth communication links, writing Python/C code and emulating serial ports.
Bluetooth on Linux

Bluetooth is a short distance wireless communication standard. It is commonly used to facilitate data transfer between PC's and cell phones/PDA's without the hassle of `wired' connections. The hardware which provides Bluetooth connectivity on the PC is a small device called a `USB-Bluetooth dongle' which you can plug onto a spare USB port of your machine. I approached the local electronics dealer asking him for such a device and got one which didn't even have the manufacturer's name printed on it. The driver CD which came with it of course contained only Windows software. Deciding to try my luck, I plugged the device on and booted my system running Fedora Core 3 - bluetooth service was started manually by executing:

sh /etc/init.d/bluetooth start


Here is the output I obtained when the command `hciconfig' ( which is similar to the `ifconfig' command used to configure TCP/IP network interfaces) was executed:

hci0: Type: USB
BD Address: 00:11:B1:07:A2:B5 ACL MTU: 192:8 SCO MTU: 64:8
UP RUNNING PSCAN ISCAN
RX bytes:378 acl:0 sco:0 events:16 errors:0
TX bytes:309 acl:0 sco:0 commands:16 errors:0


My no-name USB-Bluetooth dongle has been detected and configured properly! The number 00:11:B1:07:A2:B5 is the Bluetooth address of the device.
Detecting the mobile

The next step is to check whether Linux is able to sense the proximity of the mobile. If your phone has bluetooth disabled, enable it and run the following command (on the Linux machine):

hcitool scan


Here is the output obtained on my machine:

Scanning ...
00:0E:6D:9A:57:48 Dijkstra


The `BlueZ' protocol stack running on my GNU/Linux box has `discovered' the Nokia N-Gage sitting nearby and printed its Bluetooth address as well the name which was assigned to it, `Dijkstra'.
Pairing the mobile

For security reasons, some interactions with the mobile require that the device is `paired' with the one it is interacting with. First, store a number (4 or more digits) in the file /etc/bluetooth/pin (say 12345). Stop and restart the bluetooth service by doing:

sh /etc/init.d/bluetooth stop
sh /etc/init.d/bluetooth start


Now initiate a `pairing' action on the mobile (the phone manual will tell you how this is done). The software on the phone will detect the presence of the Bluetooth-enabled Linux machine and ask for a code - you should enter the very same number which you have stored in /etc/bluetooth/pin on the PC - the pairing process will succeed.
Transferring files

Files can be transferred to/from the Linux machine using a high level protocol called OBEX (standing for OBjectEXchange, originally designed for Infrared links). First, you have to find out whether the mobile supports OBEX based message transfer. Try running the following command on the Linux machine (the number is the bluetooth address of the phone):

sdptool browse 00:0E:6D:9A:57:48


You might get voluminous output - here is part of what I got:

Service Description: OBEX Object Push
Service RecHandle: 0x10005
Service Class ID List:
"OBEX Object Push" (0x1105)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 9
"OBEX" (0x0008)


OBEX is built on top a lower-level protocol called RFCOMM. The `Object Push' service uses RFCOMM `channel' 9. Let's try to upload a file to the phone; run the following command on the Linux machine:

obex_push 9 00:0e:6d:9a:57:48 a.txt


The phone will respond by asking you whether to accept the message coming over the bluetooth link. The same command, invoked without any option, can be used to receive files sent from the mobile over the bluetooth link (read the corresponding `man' page for more details).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wireless internet with T-mobile, Knoppix, and bluetooth nbcthreat Linux - Wireless Networking 9 06-12-2006 12:34 AM
Dialing internet with a bluetooth device from kde arunbabu Linux - Hardware 2 11-06-2005 07:05 PM
mandrake 10.1 sharing files and internet sharing xfiles_arram Linux - Networking 0 05-21-2005 02:22 PM
network/internet share over bluetooth 0pal_t0ad Linux - Wireless Networking 0 12-21-2004 06:29 AM
Internet via GPRS--Bluetooth HP. carboncopy Linux - Networking 0 07-09-2004 04:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration