Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 31 Jul 2014, 03:40
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Bluetooth connectivity in Puppy Linux
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [1 Post]  
Author Message
alwaysalonee

Joined: 28 Feb 2012
Posts: 62

PostPosted: Wed 09 May 2012, 06:54    Post subject:  Bluetooth connectivity in Puppy Linux
Subject description: access internet from bluetooth modem from mobile
 

Hello, after doing many efforts now i can finally connect my mobile device to the computer with bluetooth thanks to the puppy linux forum members for all the help, so here's how it goes ..
Note that i am using lucid puppy version 5.2.8

Note : latest article would be always here :
http://themikex.blogspot.in/2012/11/bluetooth-connectivity-in-puppy-linux.html

Step 1 :
Download needed .pets from here http://www.murga-linux.com/puppy/viewtopic.php?p=396249 or from http://up.ht/IC9pnA, install all .pets and Reboot

Step 2 :
Right click Select Network -> Bluetooth Wizard , now follow on-screen steps to pair your devices.if it does not scan a bluetooth device make sure you have selected always visible or discoverable in your mobile device. if it still is not scanning make sure the bluetooth device of your computer is on and attached properly. You can check if puppy linux has detected your computer's bluetooth device in Menu->System->HardwareInfo in that select USB to check.

Step 3 :
Now navigate to the /etc/ppp from your file manager.
in ppp goto chatscripts directory, now right click and select create new file named gprs and paste following code ..

ABORT ERROR
ABORT RING
ABORT BUSY
ABORT VOICE
ABORT "NO CARRIER"
ABORT "NO ANSWER"
#ABORT "NO DIALTONE"
REPORT CONNECT
"" "ATZ"
OK 'AT+cgdcont=1,"IP","enter your ISP APN here"'
OK ATD*99***1#
TIMEOUT 60
CONNECT \c

you'll need to provide APN address in my case it looks like this ..
OK 'AT+cgdcont=1,"IP","tata.docomo.internet"'
or may be even change the dial number though *99***1# should work, if not try *99#

did that ? ok, now go to ppp again and goto peers directory and right click to create new file and name it gprs and paste following code ..

noauth
connect "/usr/sbin/chat -v -f /etc/ppp/chatscripts/gprs"
/dev/rfcomm0
1152000
defaultroute
noipdefault
user
usepeerdns

Step 4 :
Now click console icon from desktop and type hcitool scan it would be like ..

sh-4.1# hcitool scan
Scanning ...
18:14:56:CA:9E:42 Yo

18:14:56:CA:9E:42 is mac address of my mobile bluetooth device and Yo is my mobile bluetooth's name copy the mac address and browse your mobile also save mac address somewhere you'll need it in next steps e.g.

sh-4.1# sdptool browse 18:14:56:CA:9E:42
Browsing 18:14:56:CA:9E:42 ...

Service Name: Dial-up networking
Service RecHandle: 0x10003
Service Class ID List:
"Dialup Networking" (0x1103)
"Generic Networking" (0x1201)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 1
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
Profile Descriptor List:
"Dialup Networking" (0x1103)
Version: 0x0100

It'll list all services your mobile provides. scroll down and find Service Name: Dial-up networking and channel number in my case it is Channel: 1, save or remember channel number you'll need it in next step.

Step 5 :
Now click file icon on desktop and right click , select create new script with name Connect and paste following code ..

#!/bin/sh
modprobe bluetooth
modprobe l2cap
modprobe rfcomm
modprobe hci_usb
mknod -m 666 /dev/rfcomm0 c 216 0
hcid

# in the following line change mac address and channel number for your phone
rfcomm bind /dev/rfcomm0 18:14:56:CA:9E:42 1

rxvt -bg "light yellow" -geometry 134x20 -title GPRS_connection_tail -e tail -n 20 -f /var/log/messages &
pppd call gprs
gxmessage -center -bg "light green" -title "PPPD calling..." -buttons "EXIT" "PPPD calling...press EXIT for exiting GPRS connection"
killall pppd
rfcomm release /dev/rfcomm0
killall rfcomm
killall hcid
kill $(ps|grep GPRS_co)
exit

in above script, in red line, you'll need to change the mac address and channel number as you saved it, Ok so now we all set up , you just need to click Connect and it'll connect to your mobile and will create internet connection.

if it is not connecting to your mobile first try following in console
rfcomm connect 0 your-mac-address chennal-number
e.g. rfcomm connect 0 18:14:56:CA:9E:42 1
and then click Connect script file it should work fine ..

To transfer files with bluetooth, right click bluetooth icon in tray and select Send Files Smile

Some Resource and HELP links :
http://puppylinux.org/wikka/ExperimentalBT
http://www.murga-linux.com/puppy/viewtopic.php?p=396249
http://www.murga-linux.com/puppy/

Thanks to seeme , trapster , puppy linux forum members
You can now Enjoy Intenet on Puppy Linux Smile
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [1 Post]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0464s ][ Queries: 11 (0.0027s) ][ GZIP on ]