Bluetooth on Puppy

Under development: PCMCIA, wireless, etc.
Message
Author
User avatar
debernardis
Posts: 180
Joined: Sat 12 Nov 2005, 08:01
Contact:

#21 Post by debernardis »

I am going on learning.
And I learned that I have to create the /dev/rfcomm0 node,
and I should do it this way:

Code: Select all

mknod -m 666 /dev/rfcomm0 c 216 0
I'll do it :twisted:
Last edited by debernardis on Wed 03 Jan 2007, 05:23, edited 1 time in total.

User avatar
debernardis
Posts: 180
Joined: Sat 12 Nov 2005, 08:01
Contact:

Whoa!

#22 Post by debernardis »

It did work, by following step by step this: http://www.artm-friends.at/rm/bluetooth ... -HOWTO.txt
and I'm presently posting through a gprs connection :P

Now I'll prepare a dotpup and a howto - somebody please get it and make a wizard... we'll have a BT puppy soon. Next step - obex! :P :P

daemon
Posts: 26
Joined: Sat 30 Dec 2006, 01:54
Location: Vladivostok, Russia
Contact:

#23 Post by daemon »

Sorry, i have read a lot of FAQ's, HOWTO's, etc while getting this to work, and i have forgotten some steps i made...
Now i have 2 problems:
1. I cannot initiate LAN connection from my laptop. I only can run listening daemon on laptop(puppy) and then connect from pc(Windows Vista). Have anyone any idea?
2. My GPRS Provider is a bit buggi, when i connect in windows i have to wait about 1 minute while windows says "Loging in to network...". In linux it causes BIG problems. When i try to connect to GPRS pppd successfully creates ppp0, then waits a bit (20-30 seconds) and dies because of timeout. After 5-6 retries it finally connects. Where can i increse this timeout?

User avatar
debernardis
Posts: 180
Joined: Sat 12 Nov 2005, 08:01
Contact:

#24 Post by debernardis »

Daemon: sorry at the present time I am unable to help you! :cry: But eventually I'll learn.

For an experimental howto on gprs bluetooth connection go see http://puppylinux.org/wikka/ExperimentalBT and report your experiences and thoughts :idea:

daemon
Posts: 26
Joined: Sat 30 Dec 2006, 01:54
Location: Vladivostok, Russia
Contact:

#25 Post by daemon »

I have solved my problem with gprs!
Now it connects 100%
I think speed does not matter, so may be returned to 115200, i made it 56700 just for safety.
Here are my pppd config files:
Peers:

Code: Select all

noauth
connect "/usr/sbin/chat -v -f /etc/ppp/chatscripts/akos"
/dev/rfcomm0
#115200
57600
defaultroute
#noipdefault
user 
usepeerdns
nodetach
debug
#xonxoff
crtscts
receive-all
novj
nodeflate
noccp
Chatscript:

Code: Select all

ABORT ERROR
ABORT RING
ABORT BUSY
ABORT "NO CARRIER"
ABORT VOICE
ABORT "NO DIALTONE"
ABORT "NO ANSWER"
REPORT CONNECT
""    "ATZ"
OK ATDT*99#
TIMEOUT 60
CONNECT \c
I was editing scripts, originally created by kppp (i edited only peer script).

User avatar
debernardis
Posts: 180
Joined: Sat 12 Nov 2005, 08:01
Contact:

Call for scripting

#26 Post by debernardis »

Friends,
is there anybody who's got time and will to convert my howto in
http://puppylinux.org/wikka/ExperimentalBT
to a script (shell or puppybasic or whatever) to automate connection?
At present I have no time and also I'm clueless at scripting but that could be useful for everybody.

User avatar
pakt
Posts: 1157
Joined: Sat 04 Jun 2005, 16:54
Location: Sweden

Re: Call for scripting

#27 Post by pakt »

debernardis wrote:Friends,
is there anybody who's got time and will to convert my howto in
http://puppylinux.org/wikka/ExperimentalBT
to a script (shell or puppybasic or whatever) to automate connection?
At present I have no time and also I'm clueless at scripting but that could be useful for everybody.
BT would also be useful to me, but at present I'm busy with other projects and don't have the time to help you :(

Perhaps later, if no one else volunteers.

Paul
Methinks Raspberry Pi were ideal for runnin' Puppy Linux

User avatar
debernardis
Posts: 180
Joined: Sat 12 Nov 2005, 08:01
Contact:

#28 Post by debernardis »

I have put together kinda of a script to automate gprs connection.
In order to make it work you must have:
1) mac address and dun channel of your phone (to be hardcoded into the script);
2) gprs connection scripts for pppd for your telco.
Everything is described in the wiki page; the script is attached in this message.

Please testers let me know their results!

In next step I would like to automate phone selection. Then, going on, there is obex to be added, maybe from http://openobex.triq.net/ - and phone filesystem mounting (p3nfs ?).
Help is really welcome 8)

EDIT 24-1-07 uploaded new version of the script, modified the wiki accordingly
Attachments
gprs-connect.gz
(352 Bytes) Downloaded 1405 times

daemon
Posts: 26
Joined: Sat 30 Dec 2006, 01:54
Location: Vladivostok, Russia
Contact:

#29 Post by daemon »

I have some free time to try OpenObex, but I am not sure if it supports my phone (Samsung E900). May be somebody know this? I dont want to spend time doing useless things...

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#30 Post by Béèm »

daemon,
Your phone supports bluetooth and USB.
So you should be able to do things.
ObexFTP via bluetooth f.e.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

User avatar
steevieb
Posts: 289
Joined: Sun 31 Dec 2006, 00:11
Location: Poole, Dorset. UK

p3nfs

#31 Post by steevieb »

- and phone filesystem mounting (p3nfs ?)
Some addresses with some info about p3nfs below.
http://ocaoimh.ie/2003/05/10/linux-to-s ... fer-howto/
Note: from above webpage: Start Bluetooth services: /etc/init.d/bluetooth start
Puppy does not have this file on my machine. Or /etc/rc.d/init.d/bluetooth start
http://www.koeniglich.de/p3nfs.html - has .SIS files for phone.

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#32 Post by Béèm »

Did anybody got the p3nfs working?
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

Master_wrong
Posts: 452
Joined: Thu 20 Mar 2008, 01:48

#33 Post by Master_wrong »

hi, I got myself "almost" connected with gprs, but my operator use username and password, how do I put username and password in the pppd script? I'm using puppy 3.01...


i browse around and find this...

# Username and password:
# If username and password are required by the APN, put here the username
# and put the username-password combination to the secrets file:
# /etc/ppp/pap-secrets for PAP and /etc/ppp/chap-secrets for CHAP
# authentication. See pppd man pages for details.
# Example, Radiolinja operator pap-secrets:
# "rlnet" * "internet" *
#user "rlnet"
#user "Orange"


from... http://www.bigsoft.co.uk/projects/bluetooth/

what is it mean ?
thank you

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#34 Post by tempestuous »

The correct way to specify username and password for ppp connections is to add this line to both /etc/ppp/pap-secrets and /etc/ppp/chap-secrets

Code: Select all

MYUSERNAME * MYPASSWORD
Obviously, replace "MYUSERNAME" and "MYPASSWORD" with your true values, and don't forget the asterisk in the middle.

Another thing to try is wvdial, since the wvdial configuration file makes it obvious where to put the username and password. However, you would probably need to Google for all the other GPRS settings for wvdial. Do a Google search for "wvdial GPRS".

But I wouldn't assume that ppp chat scripts necessarily need to specify username/password. GPRS connections are not standard; different service providers use different login processes.
From the instructions provided by my Motorola K1 mobile phone, it appears that the phone holds data service settings, including username/passwords.
Forum members daemon and debernardis are the experts on this subject. They may have further information.

Master_wrong
Posts: 452
Joined: Thu 20 Mar 2008, 01:48

#35 Post by Master_wrong »

hi, thank you...

but
I have found one method which work for me, . I edit the file /etc/ppp/peers/gprs


I add these simple code :
user xxxx
password zzzz

(xxxx,zzzz are standart username and password from ISP)

it work without changing other thing, in fact I writing this on linux connection. :)
I thank you again...

burgiuk
Posts: 3
Joined: Fri 20 Mar 2009, 00:30

File Transfers Via Bluetooth

#36 Post by burgiuk »

Hello

I'm using Puppy for a university project which also requires me to transfer files from a mobile phone via BlueTooth. I am a bit of a newbie when it comes to Linux so there was much gnashing of teeth and hair pulling to get the modules compiled and installed, but I think have them installed correctly now.

I've plugged in my bluetooth adapter but I am now clueless as to where to access the utilities to enable me to transfer files from my phone to my laptop (or vice versa). If anyone can shed any light on this or at least point me to some documentation that might help I'll be very grateful.

Thanks in advance!

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#37 Post by tempestuous »

The bluetooth libraries in this post are the older type which do not have D-Bus as a dependency.

The more modern type of bluetooth libraries are now here
"Bluetooth & D-Bus, January 08"
http://www.murga-linux.com/puppy/viewtopic.php?t=25009
There you will find a HOWTO which includes file transfers to mobile phones.
burgiuk wrote:there was much gnashing of teeth and hair pulling to get the modules compiled and installed
All recent Puppy versions already contain the bluetooth kernel modules. There is no compiling necessary.

burgiuk
Posts: 3
Joined: Fri 20 Mar 2009, 00:30

#38 Post by burgiuk »

Ah! Thanks for that! Google only brings up this thread in relation to Bluetooth on Puppy.

Its good to know I wasted my weekend doing the wrong thing (or maybe it saved me a lot of money...) :D

I'll give that other thread a good long read now. Thanks!

Post Reply