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 23 Oct 2014, 09:15
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » System
Bluetooth & D-Bus, January 08
Post new topic   Reply to topic View previous topic :: View next topic
Page 4 of 7 [93 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7 Next
Author Message
Chewi


Joined: 17 Aug 2008
Posts: 31
Location: Perth, Scotland

PostPosted: Tue 16 Sep 2008, 20:42    Post subject:  

Ah well. I wouldn't have thought DBus was slow, all it does is pass messages around. Maybe it needs some optimising.
Back to top
View user's profile Send private message 
Aitch


Joined: 04 Apr 2007
Posts: 6825
Location: Chatham, Kent, UK

PostPosted: Tue 16 Sep 2008, 21:49    Post subject:  

He He

I would have thought your Libretto to be the perfect testbox for that Wink

Even beats my IBM 560 @ 223mhz/64mb ram, but makes up for the 'speed' by having no native floppy or CD - & wifi & bluetooth is just greedy Laughing

well done!

Aitch
Back to top
View user's profile Send private message 
Chewi


Joined: 17 Aug 2008
Posts: 31
Location: Perth, Scotland

PostPosted: Wed 17 Sep 2008, 06:18    Post subject:  

Thanks!

Did a search for "dbus slow" out of interest and got this. It was a while ago though.

Quote:
Most of the time in FOSS, people try to make the theory work before improving. That's why DBus is still unoptimised and really slow. It's slower than ORBit2/Bonobo !!


I also found this PDF, which does a benchmark. It says DBus is probably slower because it uses text rather than pointers. I knew that but like the author, I didn't expect it to be THAT much slower.

_________________
Running Puppy 4.00 on a Toshiba Libretto 70CT. That's a Pentium 120MMX, 32MB RAM machine the size of a VHS cassette! It works like a charm. I even have wireless (WPA) and Bluetooth. Very Happy
Back to top
View user's profile Send private message 
tommy

Joined: 04 Oct 2005
Posts: 96
Location: Italy

PostPosted: Fri 19 Sep 2008, 20:52    Post subject: Bluetooth in Puppy 4.00
Subject description: Success in trying to mount the phone and transfer files
 

Hi everybody, I just want to write about my bluetooth experience in Puppy 4.00. Well, I don't need bluetooth at all, but I have an unused TRENDnet bluetooth usb dongle and I wanted to play with it to see the capabilities of tempestuous packages...
I installed the Dbus, the BlueZ, the Obex dotpet packages I found in page 1 of this thread, I edited the passkey in /etc/bluetooth/hcid.conf (and I found security user was already there instead of security auto), I modprobed all the necessary modules. Then I registered on my phone my bluetooth dongle ( this is the moment where your phone asks you the passkey you wrote in hcid.conf file).
Then I mounted the phone in /mnt/bluetooth with obexfs : this gave me this message:
shell-init: error retrieving current directory: getcwd: cannot access parent directory: No such file or device.

However I could browse my phone directories with Rox and transfer files from the phone to my PuppyPC. I tried to transfer a jpg file from my Pc to my Phone, and Rox gave me an error about something not implemented - failed. The file was successfully transferred to the phone, though!

So what can I say? Bluetooth file transfer in Puppy 4.00 was for me quite easy, and I'm not an expert linux user. But the transfer speed is very slow, I think it's about 10 kB/sec. (will there be a Rutilt-like app (or should I say Pwireless-like?) to see the signal strenght and max speed of bluetooth connections?).

Well, if you need to copy your pictures / videos from the phone to your PC and vice-versa, tempestuous' tutorial and Dotpet packages can help you a lot. Good work! Wink
Back to top
View user's profile Send private message 
John Doe

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

PostPosted: Sat 20 Sep 2008, 01:37    Post subject: Re: Bluetooth in Puppy 4.00
Subject description: Success in trying to mount the phone and transfer files
 

tommy wrote:
But the transfer speed is very slow, I think it's about 10 kB/sec.


perhaps the difference between 1.x vs 2.x?

great report, thanks for sharing.
Back to top
View user's profile Send private message 
paulski

Joined: 06 Oct 2006
Posts: 127
Location: Cologne, Germany &/or Perth, Australia

PostPosted: Sun 12 Oct 2008, 17:18    Post subject: Script toolbox for 2 Nokia phones on bluetooth  

Thanks to the excellent work done in this thread I created a few scripts with an xdialog as a kind of script tool box allowing me to connect two different Nokia phone models (6230i and 7310) over a USB bluetooth device. Its still developmental but it may provide a start for others to make more intelligent scripts or at least a few ideas.
It should make the process a little easier for beginners.

So far it allows:
1- Basic USB HCI startup, Dbus and password agent
2- Scan for phones (hcitool scan)
3- Obex connections for the two phones with auto Rox filer opening
4- rfcomm ports for the phones allowing contacts, sms, calendar data to be used by either xgnokii or wammu with auto copying of the configuration scripts for these phones
5 Disconnect scripts for the phones

Unfortunately to get it up and running you need to modify details (phone model numbers and MAC addresses in filenames and scripts).

Have a look - try it, modify it break it- whatever.
If someone can find out how to parse MAC addresses from hcitool scan to other scripts and functions then it could easily be much more powerful.

EDIT: Found a way to parse it.!!
Now have a simplified Xdialog script (the toolbox4 nokia ....2a version) that autodetects the MAC of only one phone and allows you to connect it rfcomm or Obex.
No support for wammu or gammu in this one.
Should get some starters off the ground. May even work for a few non Nokia bluetooth phones.

For specific Nokia with Puppy issues see this thread:
http://www.murga-linux.com/puppy/viewtopic.php?t=35321

Try to keep this bluetooth thread strictly bluetooth.
toolbox4nokia-bluetooth-2a.tar.gz
Description 
gz

 Download 
Filename  toolbox4nokia-bluetooth-2a.tar.gz 
Filesize  1.42 KB 
Downloaded  656 Time(s) 
toolbox4nokia-bluetooth.tar.gz
Description 
gz

 Download 
Filename  toolbox4nokia-bluetooth.tar.gz 
Filesize  3.85 KB 
Downloaded  649 Time(s) 

Last edited by paulski on Sat 15 Nov 2008, 12:46; edited 1 time in total
Back to top
View user's profile Send private message 
Boneo

Joined: 06 Jul 2006
Posts: 44
Location: UK

PostPosted: Sat 08 Nov 2008, 20:21    Post subject:  

I've just surprised myself and got my Microsoft 5000v1.0 bluetooth mouse working with my Acer Aspire One netbook, This is really a big step forward because I don't like the track pad. It's working well but unfortunately I suspect my mouse wont work after a reboot but at least this is a start.

Thanks to tempestuous (again) I followed most of things in his first post, There's no passkey with my mouse so in etc/bluetooth/hcid.conf file the default passkey is changed from "BlueZ" to being empty "" and so also in the entry passkey-agent --default &
I didn't need a channel number.
Moving on to advice from Caneri (thanks) I used hcitool scan whilst pressing the scan button on the mouse thus finding the MAC followed then by hidd -connect hardware address. I did earlier download the DBus packages but I'm not sure if these were necessary.
Back to top
View user's profile Send private message 
tempestuous

Joined: 10 Jun 2005
Posts: 5271
Location: Australia

PostPosted: Sat 08 Nov 2008, 22:28    Post subject:  

Boneo wrote:
I did earlier download the DBus packages but I'm not sure if these were necessary.

Unless there's something special about a bluetooth mouse, then D-Bus is absolutely essential. Without it the Bluetooth Host Controller Interface daemon (hcid) will fail to start.
Back to top
View user's profile Send private message 
Boneo

Joined: 06 Jul 2006
Posts: 44
Location: UK

PostPosted: Wed 12 Nov 2008, 20:02    Post subject: MS Bluetooth Mouse 5000v1.0 working on an Acer Aspire One  

Thanks folks, I've got my mouse working at bootup on my AA0 after getting eth0 and ath0 configured I moved onto bluetooth. I downloaded the 5 D-bus related packages from page one of this thread.

http://www.murga-linux.com/puppy/viewtopic.php?t=25009

I got an error message which I interpreted as needing to install libxcb-1.0 I did but I'm not sure if this was necessary.

In /etc/rc.d/rc.local the first two lines at the beginning are for the AA0's wifi LEDs. Here's the whole file contents. The MAC address is for my mouse which I discovered by following the earlier instructions.

W#this file called from rc.sysinit
#you can edit this file
#When firewall is installed, will append lines to this file...
modprobe evdev
sysctl -w dev.wifi0.ledpin=3
sysctl -w dev.wifi0.softled=1

rm -f /var/run/dbus/*
dbus-uuidgen --ensure
dbus-daemon --system
modprobe bluetooth
modprobe l2cap
modprobe rfcomm
modprobe hci-usb
hcid
sdpd
hciconfig hci0 class 0x3e0100
hcitool inq
passkey --default &
hcitool scan
hidd --connect "00:1B:D8:93:98:BD"

Hope this helps others.

Edit: For some reason sometimes the mouse isn't found at bootup and I'm having to run again in the console-
hidd --connect "00:1B:D8:93:98:BD"

Perhaps when the mouse is switched on is important.

2nd Edit: In the Startup directory I also created a file with the line
hidd --connect "00:1B:D8:93:98:BD"
This seems to increase the chance of connecting to the mouse. Typically at bootup I find there's a pause where it seems to me looking for the mouse then I press the scan button under the mouse.
Back to top
View user's profile Send private message 
testato

Joined: 23 Nov 2008
Posts: 1

PostPosted: Sun 23 Nov 2008, 16:07    Post subject:  

Thanks for your work.
i have 2 problem:

- i found the phone end retrive the correctly the mac address but not found any service.

- If i try search puppy from the phone i not found the pc
Back to top
View user's profile Send private message 
ecke

Joined: 14 Jan 2009
Posts: 4

PostPosted: Thu 15 Jan 2009, 07:33    Post subject:  

Hello,

i had started the packages from tempestuous, but there i have the problem, that i get a message that the programm is installed, but there are many failure's.
So my question is, is it normal, that at the end of the installation the package-installer write so many failure's ???

Sorry, for my bad english!

Edwin
Back to top
View user's profile Send private message 
Chewi


Joined: 17 Aug 2008
Posts: 31
Location: Perth, Scotland

PostPosted: Wed 28 Jan 2009, 06:24    Post subject:  

I've just found out about an alternative bluetooth stack called Affix. I gather that it's a worthy alternative to Bluez though I haven't been able to find a single piece of information about why it was written or what makes it better than Bluez. I haven't tried it myself but I suspect it doesn't require HAL/DBus. Maybe it's worth a look?
_________________
Running Puppy 4.00 on a Toshiba Libretto 70CT. That's a Pentium 120MMX, 32MB RAM machine the size of a VHS cassette! It works like a charm. I even have wireless (WPA) and Bluetooth. Very Happy
Back to top
View user's profile Send private message 
Aitch


Joined: 04 Apr 2007
Posts: 6825
Location: Chatham, Kent, UK

PostPosted: Wed 28 Jan 2009, 09:38    Post subject:  

Hi Chewi

It seems to me that Bluez is currently well supported, whereas Affix documentation, at least, is 2001 Nokia copyright

There may be circumstances where affix can connect devices which fail with Bluez - like you, untested [good find, btw]

I don't know if Béèm ever got his bluetooth problem sorted, it was a while ago......?

Aitch Smile
Back to top
View user's profile Send private message 
Chewi


Joined: 17 Aug 2008
Posts: 31
Location: Perth, Scotland

PostPosted: Wed 28 Jan 2009, 10:06    Post subject:  

Hmm I hadn't noticed that it hasn't been update since 2005. Oh well.
_________________
Running Puppy 4.00 on a Toshiba Libretto 70CT. That's a Pentium 120MMX, 32MB RAM machine the size of a VHS cassette! It works like a charm. I even have wireless (WPA) and Bluetooth. Very Happy
Back to top
View user's profile Send private message 
gary101


Joined: 08 Oct 2006
Posts: 539
Location: Boston, Lincs. UK

PostPosted: Sun 15 Feb 2009, 07:12    Post subject:  

Hi

I am just taking my first steps into bluetooth, the ultimate aim for me is being able to use a bluetooth headset with skype.

I have installed all the pets I need from this thread apart from one that gives an error message about expanding into its own directory in .packages.

The problem pet is Bluetooth-alsa-sbc+plugz.pet and I am running 4.12

I have downloaded several times in case of a corrupt download and cleaned up .packages on each failed install.

When downloaded the file is named with a % instead of a + and I have renamed before install with no success.

I am wondering if this problem is just with 4.12. can anyone give me any pointers to getting this package installed?

All the best

Gary
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 4 of 7 [93 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » System
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.0913s ][ Queries: 12 (0.0049s) ][ GZIP on ]