Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: cast-fish on February 24, 2015, 09:03:17 AM

Title: bluetooth
Post by: cast-fish on February 24, 2015, 09:03:17 AM
Hello

Here, TCL 4.3.1 is running on my laptop from a virgin boot from CD.

After looking into bluetoothe ....my cell phone finds the laptops blue toothe USB dongle and they PAIR and it reports that the Linux box "device" only supports OPP and FTP bluetooth services.

But i also see that the TCL extension called "blueman manager" offers options for connecting via
the DUNP bluetooth service...(dial up networking)  for tethering and web surfing on laptops.

but i am wondering why my handset  "thinks" the Linux box (laptop) only
supports the OPP and FTP bluetooth services.... and does not mention the DUNP bluetooth service?

In summary, do TCL laptops connected over bluetooth support the DUNP bluetooth service for internet modem surfing?

thanks

V
Title: Re: bluetooth
Post by: cast-fish on February 24, 2015, 10:01:44 AM
Hi

it seems from the few posts i searched in this forum here about Bluetooth

when they compile a version of Bluez for tinycore there are switch options for bluetooth services
you want included......

for example...to compile it with the PAN service it's  --enable-pand   

presumably for including the DUND service it would need the compiling switch of --enable-dund.....which i don't believe Bluez 4.101  (in TCL 4.3.1) has been compiled that way


so

V
Title: Re: bluetooth
Post by: Rich on February 24, 2015, 10:45:26 AM
Hi cast-fish
Quote
presumably for including the DUND service it would need the compiling switch of --enable-dund.....which i don't believe Bluez 4.101  (in TCL 4.3.1) has been compiled that way
Looking in the files tap of Apps, I see there is a file called  /usr/local/bin/dund  which suggests it might support dial up.
Title: Re: bluetooth
Post by: Juanito on February 24, 2015, 11:29:15 AM
see http://tinycorelinux.net/4.x/x86/tcz/src/bluez/compile_bluez

At one point I used a mobile phone to connect to the Internet via bluetooth from a laptop running tc, but that was a long time ago (before the local telco blocked internet tethering).

You could check if all required kernel modules (bnep.ko?) are loaded and if some sort of bluetooth.conf or network.conf is required for this to work.
Title: Re: bluetooth
Post by: cast-fish on February 24, 2015, 02:37:54 PM
Right Rich and Juanto.

well it clearly shows in your link that "dund" was indeed an aspect of compiling. Therefor it must be supported
in the Bluez 4.101 tcl extension.

STill, by default, tinycore app browser only explains how to use some particular profiles like the bluetoothe
OPP/FTP profile. I already know how to make FTP work and it does work. THe laptop sends a file to the
phone handset over BlueT.

The profile i want to use is "dund' and i need to work out how to do it. This will allow me to web surf on the
laptop from a "Bluetoothe connected cell phone" delivering 3G world wide web internet link....

on win32 this "dund' is the default approach that they make with the Blue Toothe stack. It simply works
right out of the box for internet tethering. Seems that's not the case with the Linux blue toothe stack.

i will read the web to try to discover it....but it really should be a simple job indeed. Surprisingly, that does not
seem to be the case

V
Title: Re: bluetooth
Post by: Juanito on February 25, 2015, 04:14:50 AM
My laptop appears to be too recent to boot tc-4.x to test.

In tc-6.x blueman segfaults when I try to set an iPhone as an Internet connection - this could be because the blueman project has just been restarted and is still in alpha, or because the telco here blocks Internet tethering/personal hotspot or because iPhones are not linux friendly...
Title: Re: bluetooth
Post by: Juanito on February 25, 2015, 05:21:01 AM
I also tried using gnome on tc-6.x x86_64...

After I pair, set "set your mobile phone as a network device (PAN/NAP)" to "yes" and hit connect, the blue "personal hotspot" line appears at the top of the iPhone screen and "Personal Hotspot: 1 Connection" flashes for a while before disappearing.

I'd say this means things would work, but are blocked by the local telco.
Title: Re: bluetooth
Post by: cast-fish on February 26, 2015, 02:16:52 AM
yes Juanto

it will be possible.....but i am unsure how to proceed with DUND.

I mean you can search the web and stuff but the explanations for arch get
quite involved.


i figured most people use bluetoothe to a Laptop for "tethering" a 3G web signal
and also for transferring files (but they often transfer files just using an SDcard....)

So what other uses does bluetoothe to a laptop have?...well sound-Headsets ofcourse.

BUt otherwise.....Why have Linux and Bluez not sorted out DUND and PAND by default or explained to users how to do this as a standard?..web internet tethering?

There is  very little else you would want to do with a cell phone BlueToothe over to a laptop....Sure Bluetoothe can have up to 24 services embedded in the handset chip...but who really uses these when linking a cell phone to a laptop?

V
Title: Re: bluetooth
Post by: Juanito on February 26, 2015, 03:17:17 AM
I'd suggest trying to get things working in tc-4.x with blueman.

Use blueman to pair your laptop with your phone and then right click on the phone in the blueman display and choose "network access point" or similar (I don't remember exactly what it's called).

Once the above is done (i.e. bluez is configued for networking), you need to use a network utility to make the connection - a ppp script, wicd or similar.

As mentioned above (albeit in tc-6.x x86_64) I used gnome-bluetooth and network-manager-applet, so you could perhaps try network-manager-gnome in tc-4.x.

BTW I use bluetooth mostly with headphones and headset (skype), but you can also (for example) set your phone as an audio source and play music through your laptop speakers. Other possibilites are to use bluetooth speakers and (I didn't try) use a TV as a display.
Title: Re: bluetooth
Post by: cast-fish on February 26, 2015, 03:53:46 PM
Hello,

yeah....really did try most things many times.

It simply gives an error message saying that a DUND connection was attempted but
that the connection failed.  Like you say, it's a network connection but there isn't anything
obviouse in Blueman showing you *how* to make that connection system.

it's ok juanto...it was just a stop gap web connection incase my DSL failed. That is highly
unlikely to ever fail indeed. Same line and company for over 8 years....but still.

really it was just a hobby interest and my Win32 DUND feature is down right now.....since
the windows distro isnt the type with a bluetoothe stack in it.

Title: Re: bluetooth
Post by: cast-fish on February 26, 2015, 06:01:50 PM
Juanto

just in the very distant past of my memory banks i recall that the cell handset must
have a special code and procedure done before your network knows you want to
tether a DUND connection on that handset.

It was detailed on the web and pretty easy to find the code sequence for my network
registration for DUND

so although moons ago i correctly arranged this handset for DUND....that was over

6 months ago and the handset has been messed with a great deal since then....
although it's unlikely to have lost these settings....it's possible that a network chron
job or something runs to disable the tethering feature on your number if the bandwidth
monitors don't show that the data passed by the handset ever construed to be
internet activities.....(this is a long shot but certainly possible)...

a long shot but possible....because the error m essage does say that it can't gain a
network connection over BlueT....but it could be compounded error message meaning
there isn't actually an auxillary 3G tethering network active...

hmmm

Thanks

V

Title: Re: bluetooth
Post by: Juanito on April 03, 2015, 08:38:05 AM
I finally got this to work with gnome-session and networkmanager in corepure64 - at present this is a fork separate from the blueman git master, but I'll post the updated blueman extension once it gets into master

See screenshot proof - with an iPhone using 4G it was quite quick...
Title: Re: bluetooth
Post by: cast-fish on April 03, 2015, 08:49:44 PM
oh right........


it hope it wasn't a nightmare.  It's always handy to have it since this type of browsing is real real
cheap here. Almost free.

Not sure about you on 4G.....here it's 3G....but pretty fast.

Vince.
Title: Re: bluetooth
Post by: Juanito on April 04, 2015, 04:48:16 AM
Just in case it's useful, here's the networkmanager configuration file, automatically generated by network-manager-applet (including the spaces in the file name), which might enable it to be used outside of a gnome environment:
Code: [Select]
$ sudo cat /usr/local/etc/NetworkManager/system-connections/*
[connection]
id=juanito iPhone Network
uuid=62c7494c-ed85-457e-8d6d-4eb85491155b
type=bluetooth
autoconnect=false

[bluetooth]
bdaddr=54:E4:3A:22:48:E9
type=panu

[ipv6]
method=auto

[ipv4]
method=auto
may-fail=false
Title: Re: bluetooth
Post by: cast-fish on April 04, 2015, 09:13:55 AM
right Juanito...

uh currently i am not right onto bluetoothe here......but certainly i will keep these threads because it may certainly be needed here at some point.   

You see my old method for BlueT was using win32 and it just worked.
However since then, my newer win32 version is a cut back version without a BlueT stack.

That's why i started messing with TCL and bluetoothe in the first place....since my win32 appraoch no longer worked.

so

thanks

Vince

Title: Re: bluetooth
Post by: Juanito on April 14, 2015, 07:29:06 AM
The nice man at blueman has kindly enabled things so that bluetooth network access point functionality works with udhcpc  :)

Code: [Select]
$ ifconfig
bnep0     Link encap:Ethernet  HWaddr A0:A8:CD:2C:3E:17 
          inet addr:172.20.10.3  Bcast:172.20.10.15  Mask:255.255.255.240
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1375 (1.3 KiB)  TX bytes:1480 (1.4 KiB)

$ ps aux | grep udhcpc
 7737 root     /sbin/udhcpc -t 20 -n -i bnep0

As before, once this makes it into git master, I'll post an updated extension
Title: Re: bluetooth
Post by: cast-fish on April 14, 2015, 01:04:13 PM
This looks crazy complicated Juanto

how long did it take you?

even talking about packets and stuff? It looks to me like the "concept" was not even near to working for bluetoothe DUND connections or PAN.

i am assuming that once the extensions are updated it will literally just click and work....same as on other platforms   (a bluetoothe DUND connection)

i mean to say, it will be greatly useful to have bluetoothe web connect since it's an emergency (almost FREE) web connection for me.

i know that Dillo almost uses no bandwidth as it compresses pages (it seems to have some compression by default)...enough so to do social media and other stuff and even photos etc....graphical useful web surfing for almost free over my 3G cell

so i appreciate it. I expect that it interested you in light of TCL being a nomadic web orientated OS....so more ways to connect to the web would be an advantage.

Juanto, to be honest it seems like what you have done could only be a good thing.

i live on an extremely busy street into central London UK. It's not unusual for me to go out regularly and maybe see over 10 people per day in saloon bars or on buses connected the web with devices...wi fi is everywhere....free too. It would not be unusual for many of those people to be wanting bluetoothe to a laptop....it's a common practice....ye (at least now they may be able to have that laptop as a tinycore laptop right

yes

Vin



Title: Re: bluetooth
Post by: Juanito on May 01, 2015, 08:49:31 AM
updated blueman posted to x86_64 repo using bluetooth 4g connection  8)

Now uses udhcpc by default and uses gtk pop-ups rather than notification-daemon bubbles, which automatically use the dark theme and are difficult to read in flwm.

So far setting a bluetooth device as a network access point will not work with bluez-4, so x86 blueman not updated, but working on it...

As of now, bluetooth audio, network (corepure64 only) and sending a file all work, but receiving a file (with obex-data-server) is broken.
Title: Re: bluetooth
Post by: Juanito on May 07, 2015, 08:02:52 AM
updated blueman posted to x86_64 repo that can now send and receive files without obexd (part of bluex-5) or obex-data-server.

For some obscure reason, receiving files requires the locale to be set to en_US.UTF-8 or similar or it won't work.

bluetooth audio (sink, source and headset), network (corepure64 only) and send/receive file now all all work.
Title: Re: bluetooth
Post by: Juanito on May 16, 2015, 03:10:51 AM
..finally discovered that bluez-4.101 needs patching for networking to work  :-X

bluez and blueman updated in x86 repo so now audio, networking (with udhcpc) and file transfer (with obexd) all work

screenshot proof attached  :)
Title: Re: bluetooth
Post by: cast-fish on May 17, 2015, 12:50:03 PM
Hi juanto


Uh not sure what it all means.

So you have made the regular x86  TCL repo contain
bluetoothe extensions that now work for doing a laptop
to internet connection (via a blutoothe laptop dongle a cell phone and 3g / 4g.....out to the world wide web)

That is for the latest TCL i expect. 

thanks

Vince.

Title: Re: bluetooth
Post by: Juanito on May 17, 2015, 01:01:09 PM
affirmative, to make a 3g/4g network connection you just need the blueman extension from the tc-6.x x86 or x86_64 repos and suitable hardware.
Title: Re: bluetooth
Post by: cast-fish on May 17, 2015, 03:06:58 PM
Juanto

that is real good news there..... from you.

THat must have been a lot of in-depth knowledge and work
to get this to work  ......A seemingly bog standard need of blutoothe to
connect internet world wide web services to devices via "comms nodes" then those devices recieve the world wide web.

It didn't look anything close to bog standard to me.

You must have an In depth knowledge of protocols, telecoms , linux networking and hardware drivers and software stacks.  Masses of experience needed
and a hell of a challenge.

my responses will be somewhat trivial here compared to the task you
achieved....

so yes Juanto....it's another great string to TCL's bow.....right.


Yet to even try it here. Still, it's about the bigger picture for TCL isn't it.

If your work gave a fair few people months of pleasure of world wide web
internet services access.....services they otherwise could not have then it's been worth it right


yes.

you have also had a generic app updated across the board right. Up streamed
and i am sure that this is a much wider picture for you.

Many thanks

Vince.
for sure i feel.