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 Tue 22 Aug 2017, 16:53
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 2 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: Wed 23 May 2007, 18:11    Post subject:  

Quote:
Once we get it going, it would be neat to go back and test without these also
sh-3.00#modprobe bluetooth
sh-3.00#modprobe l2cap

These don't seem to make any difference to the basic connection
Quote:
rfcomm bind /dev/rfcomm0 00:0E:ED:AE:D7:3B 2 <-your MAC and channel

This does not seem to be needed either, just put the channel number on the end when you start obex.
BTW, without -b option, obex_test defaults to infra-red.

sh-3.00# dbus-daemon --system
sh-3.00# hcid
sh-3.00# modprobe rfcomm
sh-3.00# modprobe hci-usb
sh-3.00# hciconfig hci0 up
sh-3.00# hcitool scan
Scanning ...
00:60:57:D3:9C:24 Me 2 #<-your MAC and Phone name

Then just enter
sh-3.00# sdptool browse 00:60:57:D3:9C:24 #<-(your MAC) to find the correct channel for Obex Object Push

sh-3.00# obex_test -b 00:60:57:D3:9C:24 9 #<-your MAC and channel

You should now have bluetooth working.
c to connect
x <filename> to push file to phone eg; > x /root/bluetooth2
q to quit

Has anyone else got bluetooth working?
Back to top
View user's profile Send private message 
John Doe

Joined: 01 Aug 2005
Posts: 1689
Location: Michigan, US

PostPosted: Wed 23 May 2007, 21:04    Post subject:  

I sent a PM to edoc. Had been helping him with gps/bluetooth in the past with no luck.

Hopefully he can jump in also.
Back to top
View user's profile Send private message 
edoc


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

PostPosted: Thu 24 May 2007, 19:24    Post subject:  

John Doe wrote:
I sent a PM to edoc. Had been helping him with gps/bluetooth in the past with no luck.

Hopefully he can jump in also.


OK, just scanned through the thread.

I have my USB-Bluetooth adapter plugged in and my GPS-Bluetooth device
charging off another USB port.

Have company here at the moment so will try to get back to this later in the
evening.

Sure am happy to hear that we may have a solution in the making!

_________________
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 
edoc


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

PostPosted: Sun 27 May 2007, 19:38    Post subject:  

steevieb wrote:

sh-3.00# dbus-daemon --system


I am afraid that I didn even get past the first step:

sh-3.00# dbus-daemon --system
Failed to start message bus: Failed to bind socket "/usr/var/run/dbus/system_bus_socket": No such file or directory

So I tried the two steps that were suggested to be unnecessary ...
same error:

sh-3.00# modprobe bluetooth
sh-3.00# modprobe l2cap
sh-3.00# dbus-daemon --system
Failed to start message bus: Failed to bind socket "/usr/var/run/dbus/system_bus_socket": No such file or directory

_________________
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 
steevieb


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

PostPosted: Mon 28 May 2007, 15:03    Post subject:  

I do not have that folder either. My main folder seems to be /usr/include/dbus-1.0/dbus/


Did you download
bluez-firmware-1.2.pet
dbus-1.0.2.pet
bluez-libs-3.9.pet
bluez-utils-3.9.pet
from http://www.murga-linux.com/puppy/viewtopic.php?p=115474#115474

I also downloaded & installed openobex-1.3+apps.pet from tempestuous, posted Sat May 19 in this thread (two thirds down 1st page)

I also downloaded bluez-gnome-0.7, bluez-pin-0.30 and afe, affix-3.2.0 but I cannot compile or install anything - I get an error as below;
configure: error: C preprocessor "/lib/cpp" fails sanity check
With afe I just get an error saying I have kernel headers but not full source code
http://affix.sourceforge.net/afe/
Back to top
View user's profile Send private message 
edoc


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

PostPosted: Mon 28 May 2007, 16:00    Post subject:  

[quote="steevieb"]I do not have that folder either. My main folder seems to be /usr/include/dbus-1.0/dbus/

Did you download
bluez-firmware-1.2.pet
dbus-1.0.2.pet
bluez-libs-3.9.pet
bluez-utils-3.9.pet
from http://www.murga-linux.com/puppy/viewtopic.php?p=115474#115474
[//quote]

OK, went back, downloaded and installed those and walked through the
steps:

sh-3.00# modprobe bluetooth

sh-3.00# modprobe l2cap

sh-3.00# dbus-daemon --system
sh-3.00# hcid
sh-3.00# modprobe rfcomm

sh-3.00# modprobe hci-usb

sh-3.00# hciconfig hci0 up
Can't get device info: No such device

I didn't have the USB-Bluetooth Adapter inserted, did so then tried again ...

sh-3.00# hciconfig hci0 up
sh-3.00# hcitool scan
Scanning ...
00:0A:3A:1F:D5:8A BT GPS
sh-3.00# sdptool browse 00:0A:3A:1F:D5:8A #<-BT
Browsing 00:0A:3A:1F:D5:8A ...
sh-3.00# obex_test -b 00:0A:3A:1F:D5:8A 9 #<-BT GPS
sh: obex_test: command not found

Downloaded & installed openobex-1.3+apps.pet ...

sh-3.00# obex_test -b 00:0A:3A:1F:D5:8A 9 #<-BT GPS
Using Bluetooth RFCOMM transport
OBEX Interactive test client/server.
>

HOORAY! No more errors. Smile

Now what, please?

My GPS Bluetooth Atmel Antaris4 still does not connect with my generic
USB-Bluetooth Adapter.

Do I need to open GPSdrive?

_________________
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 
steevieb


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

PostPosted: Mon 28 May 2007, 16:28    Post subject:  

Yes, open GPSdrive first.

Just enter
sh-3.00# sdptool browse 00:0A:3A:1F:D5:8A
This should give you a channel number.
Then enter
sh-3.00# obex_test -b 00:0A:3A:1F:D5:8A
with a space and then your channel number on the end, eg;
sh-3.00# obex_test -b 00:0A:3A:1F:D5:8A 1


The only obex commands I know are;

c to connect
x <filename> to push file to phone eg; > x /root/bluetooth2
p to push a file to phone
g to get a file from phone (not tried this yet)
q to quit

so once obex is running enter c
then enter x <filename>
Back to top
View user's profile Send private message 
edoc


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

PostPosted: Mon 28 May 2007, 16:58    Post subject:  

steevieb wrote:
Yes, open GPSdrive first.

Just enter
sh-3.00# sdptool browse 00:0A:3A:1F:D5:8A
This should give you a channel number.
Then enter
sh-3.00# obex_test -b 00:0A:3A:1F:D5:8A
with a space and then your channel number on the end, eg;
sh-3.00# obex_test -b 00:0A:3A:1F:D5:8A 1


The only obex commands I know are;

c to connect
x <filename> to push file to phone eg; > x /root/bluetooth2
p to push a file to phone
g to get a file from phone (not tried this yet)
q to quit

so once obex is running enter c
then enter x <filename>


(NOTE: Something, perhaps GPS-drive, perhaps one of the Bluetooth apps,
is slamming my laptop -- extremely high resource usage -- caused the laptop
to shut down earlier. I have a cooling rack from the kitchen under the laptop
at the moment!

Anyhow, here is what happens when I go through the steps ...

sh-3.00# modprobe bluetooth

sh-3.00# modprobe l2cap

sh-3.00# dbus-daemon --system
Failed to start message bus: The pid file "/usr/run/dbus/pid" exists, if the message bus is not running, remo ve this file
sh-3.00# hcid
sh-3.00# modprobe rfcomm

sh-3.00# modprobe hci-usb

sh-3.00# hciconfig hci0 up
sh-3.00# hcitool scan
Scanning ...
00:0A:3A:1F:D5:8A BT GPS
sh-3.00# sdptool browse 00:0A:3A:1F:D5:8A
Browsing 00:0A:3A:1F:D5:8A ...
sh-3.00# obex_test -b 00:0A:3A:1F:D5:8A 1
Using Bluetooth RFCOMM transport
OBEX Interactive test client/server.
> c
Unknown event 05!
Error while doing OBEX_HandleInput()
>

I was afraid that the stress was going to crash my laptop so I rushed my
post.

When I looked closely I noticed that I was never given a Channel Number,
only "BT" and "GPS".

I tried Channels 1 through 6 and received
"Transport connect error! (Bluetooth)"

I also tried "BT" with the same result.

How do force OBEX to reveal the Channel Number?

Is 1 - 6 the full range of available Channel Numbers?

_________________
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 
John Doe

Joined: 01 Aug 2005
Posts: 1689
Location: Michigan, US

PostPosted: Mon 28 May 2007, 17:34    Post subject:  

check this out:

http://www.elisanet.fi/tapio.tolvanen/gpsdrive_readme.txt

not sure where that gps.id goes.

I thought I saw somewhere a way to link /dev/rfcomm0 to tty0 or something and GpsDrive would see it that way.
Back to top
View user's profile Send private message 
John Doe

Joined: 01 Aug 2005
Posts: 1689
Location: Michigan, US

PostPosted: Mon 28 May 2007, 17:41    Post subject:  

edoc wrote:
I was afraid that the stress was going to crash my laptop so I rushed my
post.


open xterm and type 'top' next time to see what's running the processor so hard.

Do you have acpi going (if you have it)?

Code:
#!/bin/sh
modprobe ac
modprobe battery
modprobe fan
modprobe processor
modprobe thermal
#/proc/acpi/thermal_zone/THM0/polling_frequency
wmpower -no-meddling &
Back to top
View user's profile Send private message 
steevieb


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

PostPosted: Mon 28 May 2007, 17:52    Post subject:  

BT GPS is the bluetooth name of the remote device (GPS receiver)
My phone has channel numbers up to 10, my GPS seems to have only one.
In total I believe there are 16 channels.

try this (with no channel number)

sh-3.00# rfcomm connect rfcomm0 00:0A:3A:1F:D5:8A


It should then give something like;

Connected /dev/rfcomm0 to 00:02:C7:2A:4B:91 on channel 1
Press CTRL-C for hangup


It seems to find the channel automatically this way.
Back to top
View user's profile Send private message 
edoc


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

PostPosted: Mon 28 May 2007, 17:58    Post subject:  

John Doe wrote:
edoc wrote:
I was afraid that the stress was going to crash my laptop so I rushed my
post.


open xterm and type 'top' next time to see what's running the processor so hard.


It was two sessions of GSP-drive, actually it showed up as three of one and
two of another but when I killed the first one the others did not respond
saying that they had already been killed and the same happened with the
second set of two.

John Doe wrote:

Do you have acpi going (if you have it)?

Code:
#!/bin/sh
modprobe ac
modprobe battery
modprobe fan
modprobe processor
modprobe thermal


It appears that I do not ...

sh-3.00# modprobe ac
FATAL: Module ac not found.
sh-3.00# modprobe battery
FATAL: Module battery not found.
sh-3.00# modprobe fan
FATAL: Module fan not found.
sh-3.00# modprobe processor
FATAL: Module processor not found.
sh-3.00# modprobe thermal
FATAL: Module thermal not found.

John Doe wrote:

Code:
#/proc/acpi/thermal_zone/THM0/polling_frequency
wmpower -no-meddling &


Here is what shows up in my acpi folder ...

sh-3.00# cd /proc/acpi/
sh-3.00# ls
alarm embedded_controller fadt power_resource wakeup
dsdt event info sleep
sh-3.00#

_________________
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 
edoc


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

PostPosted: Mon 04 Jun 2007, 21:31    Post subject:  

steevieb wrote:
BT GPS is the bluetooth name of the remote device (GPS receiver)
My phone has channel numbers up to 10, my GPS seems to have only one.
In total I believe there are 16 channels.

try this (with no channel number)

sh-3.00# rfcomm connect rfcomm0 00:0A:3A:1F:D5:8A


It should then give something like;

Connected /dev/rfcomm0 to 00:02:C7:2A:4B:91 on channel 1
Press CTRL-C for hangup


It seems to find the channel automatically this way.


I get this:

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

_________________
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 
schapus

Joined: 04 Jun 2007
Posts: 1

PostPosted: Tue 05 Jun 2007, 09:22    Post subject: Bluetooth with several USB dongles
Subject description: Bluetooth Guru anywhere ?
 

Dear all,

I use Puppy 2.16, and so far I've been successful with getting bluetooth working - thanks to everyone here ! Smile

Puppy is amazing : as soon as I plug a dongle, it works ! But now, what if I need to use several bluetooth USB dongles ?

I need to use obex, so I've installed obex_test, but I don't know how to say to obex_test which dongle I want to use.

This is supposed to work this way : obex_test -u interface_number

But I've tried 283592385925 ways of interface_number, and I only get a "invalid interface number" error message...

With hci commands, this seems to be better.

I stop the first dongle :
# hciconfig hci0 down

Then, I start the second one :
# hciconfig hci1 up

Then, I scan
# hcitool scan

And it works !

But this is because when I run a "hcitool scan" command, I don't need to indicate which dongle I want to use.

Anyone knows, with HCI or anything else (ideally Obex...) how I could choose which Dongle I want to use for each operation ?

To make it clear : I need to be able to send a file to every bluetooth device that can be detected around. Each, say, 5 minutes, I need perform a scan. And then, to (try to) send a file to any available bluetooth device that has not received it yet. So, depending on the number of targets, I might need to use 2 or 3 dongles at a time...

Long life to Puppy ! Smile
Steph
Back to top
View user's profile Send private message 
edoc


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

PostPosted: Tue 05 Jun 2007, 10:39    Post subject: Re: Bluetooth with several USB dongles
Subject description: Bluetooth Guru anywhere ?
 

schapus wrote:
Dear all,
I use Puppy 2.16, and so far I've been successful with getting bluetooth working - thanks to everyone here ! Smile


I didn't know that 2.16 had been released!


WHY can we not receive a "push-mail" notifying us of such important events?

I will download and upgrade and see what happens.

Thanks for the heads-up ... sure is a very odd and ineffective way to communicate version upgrades to users! Rolling Eyes

_________________
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 2 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.0637s ][ Queries: 14 (0.0073s) ][ GZIP on ]