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 27 Jul 2017, 00:49
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Bluetooth support in Puppy
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 3 of 4 [59 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Author Message
steevieb


Joined: 30 Dec 2006
Posts: 288
Location: Poole, Dorset. UK

PostPosted: Tue 05 Jun 2007, 15:17    Post subject:  

Quote:
edoc wrote:

I get this:

sh-3.00# rfcomm connect rfcomm0 00:0A:3A:1F:D5:8A
Can't connect RFCOMM socket: Host is down


Did you enter all the commands again? Seem to need to do this every boot.
Edit: I got this error when I tried to connect the computer to the GPS when there was already a connection made with the phone. Seems it thinks it is down when it is busy.

BTW, I now get no GPS data from the GPS although bluetooth connects ok. It was very hot last time I used used it so it may have overheated, or I may have to reset it somehow. I have tried taking the battery out for a while.

I made a script that runs from the desktop for the bluetooth commands. Open Geany, copy and paste, save it, open Rox, drag file to desktop, right click and make executable. I also added a bluetooth logo.

One click now sets up my bluetooth devices and opens rxvt ready for commands.
Is there any way to enter a command automatically when rxvt starts?
Code:
#! /bin/sh
dbus-daemon --system
hcid
modprobe rfcomm
modprobe hci-usb
hciconfig hci0 up
modprobe bluetooth
modprobe l2cap
exec rxvt

bt-logo.png
 Description   bluetooth logo
 Filesize   2.43 KB
 Viewed   3892 Time(s)

bt-logo.png

Back to top
View user's profile Send private message 
giac_fab

Joined: 25 Jan 2007
Posts: 114

PostPosted: Wed 05 Sep 2007, 16:27    Post subject:  

Hi

Bluetooth on my pc is working .... I can upload to my phones any file ( to a NOKIA with obex_test to a LG with obexftp ) but I can't download from my phone anything .....

I found with google some how-to ( obexserver, opd daemon ) .... but is impossible (for me) compile that apps .....

Anyone can help me ????

Thanks

_________________
Embarassed I know, my english is very bad Embarassed
Give a man a fish and he eats for a day, teach a man to fish and he eats for a lifetime.
Back to top
View user's profile Send private message 
steevieb


Joined: 30 Dec 2006
Posts: 288
Location: Poole, Dorset. UK

PostPosted: Thu 06 Sep 2007, 17:53    Post subject:  

Quote:
I can't download from my phone


/usr/etc/bluetooth/hcid.conf should have a reference to pin_helper, which should pop up a window on the pc, to enter the same password as just entered on the phone, to allow connection. Puppy does not seem to have pin_helper, so, as no password is, or can be, entered it refuses the connection.

Have just d/loaded bluez-pin from http://t2-project.org/packages/bluez-pin.html
Will install and see what happens.

Following is a part of a working hcid.conf file from an Ubuntu forum
http://ubuntuforums.org/showpost.php?p=582960&postcount=7

Quote:
# PIN helper
pin_helper /usr/lib/kdebluetooth/kbluepin;
#pin_helper /usr/bin/bluepin;
#pin_helper /usr/lib/blues-pin;

# D-Bus PIN helper
#dbus_pin_helper;
}

There is nothing like this in Puppy ..yet
Back to top
View user's profile Send private message 
steevieb


Joined: 30 Dec 2006
Posts: 288
Location: Poole, Dorset. UK

PostPosted: Thu 06 Sep 2007, 18:05    Post subject:  

Quote:
Have just d/loaded bluez-pin from http://t2-project.org/packages/bluez-pin.html
Will install and see what happens.


Got these errors
Quote:

checking for BLUEZ_PIN... configure: error: Package requirements (gtk+-2.0 dbus-glib-1 libglade-2.0 bluez gconf-2.0) were not met:

Package dbus-glib-1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `dbus-glib-1.pc'
to the PKG_CONFIG_PATH environment variable
No package 'dbus-glib-1' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables BLUEZ_PIN_CFLAGS
and BLUEZ_PIN_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

Back to top
View user's profile Send private message 
giac_fab

Joined: 25 Jan 2007
Posts: 114

PostPosted: Thu 06 Sep 2007, 18:29    Post subject:  

Do you think that the problem is so little ?

I can bring to you an help and you to me the final solution =)

you can use the debian-package (GOOGLE) that have also al the missing libraires

OR (BETTER)

You can by-pass bluez-pin installation , it's unuseful .... it only echoes "PIN:XXXX"
You only need an script named pin like the one below (this is what various how-to tell ) into /usr/etc/blutooth:

#!/bin/bash
echo PIN:XXXX

and into hcid.conf you need to add this line :

# PIN helper
pin_helper /usr/etc/bluetooth/pin;

I think that puppy-bluetooth don't execute "pin_helper" so phone and PC can't pair together......

so we need only to execute pin_helper when it's needed .....

_________________
Embarassed I know, my english is very bad Embarassed
Give a man a fish and he eats for a day, teach a man to fish and he eats for a lifetime.
Back to top
View user's profile Send private message 
steevieb


Joined: 30 Dec 2006
Posts: 288
Location: Poole, Dorset. UK

PostPosted: Fri 07 Sep 2007, 15:49    Post subject:  

Quote:
You can by-pass bluez-pin installation

Tried scripts and altering hcid.conf in many ways - nothing working.
Tried d/loading obexftp 0.20 which is for file transfer from http://sourceforge.net/project/showfiles.php?group_id=8960&package_id=62937

Instructions here;
http://dev.zuckschwerdt.org/openobex/wiki/ObexFtpInstalling
* make sure you have installed OpenObex and BluezLib
* download obexftp here
* extract the tarball to a temporary folder
* execute the following

export OPENOBEX_LIBS="-L/usr/lib -lopenobex"
export OPENOBEX_CFLAGS="-I/usr/include/openobex/ -I/usr/include"
./configure --prefix=/usr
make
make install

But I need Python as I get this error;
configure: error: cannot find Python include path
Back to top
View user's profile Send private message 
giac_fab

Joined: 25 Jan 2007
Posts: 114

PostPosted: Fri 07 Sep 2007, 16:26    Post subject:  

It's strage for me explain someting.... Laughing

Try :

./configure --prefix=/usr --disable-perl --disable-python --disable-tcl

OR

download debian package from here :
http://http.us.debian.org/debian/pool/main/o/obexftp/obexftp_0.19-7_i386.deb

undeb it
copy it to / ....
obexftp

I think that only who made bluetooth-puppy support can help us to pair our phone ...... probably he missed something ....

_________________
Embarassed I know, my english is very bad Embarassed
Give a man a fish and he eats for a day, teach a man to fish and he eats for a lifetime.
Back to top
View user's profile Send private message 
steevieb


Joined: 30 Dec 2006
Posts: 288
Location: Poole, Dorset. UK

PostPosted: Fri 07 Sep 2007, 17:16    Post subject:  

Quote:
It's strage for me explain someting..

I know nothing about coding, I just try things and see if it works.

Installed MU's Python 2.4 but get
configure: error: cannot find Python library path

Tried ./configure options for obexftp, did make and make install but gave a lot of errors.

Downloaded debian package, clicked on it to start puppy deb installer, and is working, but fails where it asks for password as before.
Same with a Samsung phone, except it wants channel 7.

Quote:
sh-3.00# obexftp -b 00:60:57:D3:9C:24 -l
Browsing 00:60:57:D3:9C:24 ...
Channel: 10
Connecting...failed: connect
Still trying to connect
Connecting...failed: connect
Still trying to connect
Connecting...failed: connect
Still trying to connect
sh-3.00#
Back to top
View user's profile Send private message 
tempestuous

Joined: 10 Jun 2005
Posts: 5468
Location: Australia

PostPosted: Fri 07 Sep 2007, 21:48    Post subject:  

EDIT Jan 1st 2008 - obexftp attachment deleted.
Revised bluetooth libaries and obexftp here
http://www.murga-linux.com/puppy/viewtopic.php?t=25009

Last edited by tempestuous on Mon 31 Dec 2007, 21:20; edited 1 time in total
Back to top
View user's profile Send private message 
giac_fab

Joined: 25 Jan 2007
Posts: 114

PostPosted: Sat 08 Sep 2007, 08:38    Post subject:  

EDIT :

It's strange but an earlier bluetooth support works better yhan a new one......

with http://www.debernardis.it/dotpups/experimental_BT_1.pup

I can pair my phone ...... !!

I can upload files to phone

I can download but :

NOKIA

obexftp ecc ecc -l >>>> list of files >>>> obexftp ecc ecc -g xxx >>>> OK

LG

obexftp ecc ecc -l >>>> STOP ( Nothing to do )

-------------------------------

If I try with obexftpd my phone can't see my PC

# obexftpd -b
Waiting for connection...

_________________
Embarassed I know, my english is very bad Embarassed
Give a man a fish and he eats for a day, teach a man to fish and he eats for a lifetime.

Last edited by giac_fab on Fri 14 Sep 2007, 16:34; edited 1 time in total
Back to top
View user's profile Send private message 
steevieb


Joined: 30 Dec 2006
Posts: 288
Location: Poole, Dorset. UK

PostPosted: Sun 09 Sep 2007, 17:55    Post subject:  

Tried gnokii, installed ok, and worked, but same password connection problem.

Possibly something in bluez configuration, as I then tried debernardis experimental dotpup, and it worked without a password and paired to the phone automatically - I didn't even know it had paired until I checked on the phone.
However, I still cannot download from the phone although it connects ok.

Am I in the wrong folder, and if so, how do I change the current folder?
This is what I get when I try to list phone contents;
Code:
sh-3.00# obexftp -b 00:60:57:D3:9C:24 -l
Browsing 00:60:57:D3:9C:24 ...
Channel: 10
Connecting...done
Receiving "(null)"... <?xml version="1.0"?>    <!DOCTYPE folder-listing SYSTEM "                                    obex-folder-listing.dtd">    <folder-listing version="1.0"><file name = "VideoMS                                    G_N6600_TIM.sis" size="120245" modified="20060611T192914"/></folder-listing>done
Disconnecting...done

-b, --bluetooth [<device>] use or search a bluetooth device
-l, --list [<FOLDER>] list current/given folder
-g, --get <SOURCE> fetch files
-G, --getdelete <SOURCE> fetch and delete (move) files
-p, --put <SOURCE> send files

This is what I get when I try to transfer file;
Code:

sh-3.00# obexftp -b 00:60:57:D3:9C:24 -g "Image(886)"
Browsing 00:60:57:D3:9C:24 ...
Channel: 10
Connecting...done
Receiving "Image(886)"... failed: Image(886)
Disconnecting...done


Probably doing something stupid, need to sleep...
Back to top
View user's profile Send private message 
giac_fab

Joined: 25 Jan 2007
Posts: 114

PostPosted: Sat 15 Sep 2007, 10:03    Post subject:  

It's so difficult Sad

I tried also obexpushd ..... I can't put file from my phone to my pc ....

I tried all the channel but my phone wan't see my pc

If I try to associate my phone to pc my phone see th pc !

I don't understand

_________________
Embarassed I know, my english is very bad Embarassed
Give a man a fish and he eats for a day, teach a man to fish and he eats for a lifetime.
Back to top
View user's profile Send private message 
Vaklin

Joined: 08 Nov 2007
Posts: 35
Location: Bulgaria, Europe

PostPosted: Wed 14 Nov 2007, 12:39    Post subject:  

Will say a real big THANK YOU to seomeone who can take a look why obexftp looks in phone services and for "OBEX file transfer" and ignores the -B (--channel). In my phone this service is 11. I need to try with service in channel 12 (Nokia OBEX PC Suite Services). I hope this will give me access to addressbook and SMS's in card and phone memory.

I'm not a programmer and this "small look" will catch few weeks of my time.

Please, please, please....
Back to top
View user's profile Send private message 
giac_fab

Joined: 25 Jan 2007
Posts: 114

PostPosted: Sat 24 Nov 2007, 09:40    Post subject:    

SOLVED SEND/RECEIVE FILES to/from
install :
Experimental Bluetooth
BluezLibs
ObexFTP
OpenObex
http://www.debernardis.it/dotpups/experimental_BT_1.pup
http://www.murga-linux.com/puppy/viewtopic.php?mode=attach&id=3927
http://www.murga-linux.com/puppy/viewtopic.php?mode=attach&id=4045
http://www.murga-linux.com/puppy/viewtopic.php?mode=attach&id=5581

Starting script must be :

#! /bin/sh
hcid
modprobe rfcomm
modprobe hci-usb
hciconfig hci0 up
modprobe bluetooth
modprobe l2cap
sdpd
#next lines added by me (from internet)
dbus-send --system --dest=org.bluez /org/bluez/hci0 \ # this line make pc visibile
org.bluez.Adapter.SetMode string:discoverable # this line make pc visibile
sleep 3
hciconfig hci0 class 0x3e0100 # this line seems not be load automaticaly from hcid.conf

Then :

obexftp -b xxx -put yyy # xxx=ADRESS OF DEVICE(hcitool scan) yyy=file
obexftpd -b # pc wait for connections

PAIRING IS "1234"

Tell me if it works also for you

EDIT : I saw that It works only with xfce 441 installed ( it has an own dbus system installed )

_________________
Embarassed I know, my english is very bad Embarassed
Give a man a fish and he eats for a day, teach a man to fish and he eats for a lifetime.

Last edited by giac_fab on Sun 25 Nov 2007, 07:05; edited 2 times in total
Back to top
View user's profile Send private message 
edoc


Joined: 07 Aug 2005
Posts: 4722
Location: Southeast Georgia, USA

PostPosted: Sat 24 Nov 2007, 09:57    Post subject:  

Which version of Puppy are you using, please?

That is a probably critical to success.

Also, what bluetooth devices are you using?

Thanks! doc

_________________
Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
TahrPup64 & Lighthouse64-b602 & JL64-603
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 3 of 4 [59 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
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.0661s ][ Queries: 14 (0.0065s) ][ GZIP on ]