RE: Bluetooth Smart 5LoWPAN connection between two devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I forgot to mention below, that I also have full Wireshark dumps of both the BlueZ 4 (6LoWPAN connection works) and the BlueZ 5 (6LoWPAN connection doesn't work) if anyone wants to see them.  I personally do not know enough about the internals of the protocols to pick out where the issue is.

Thanks,

> -----Original Message-----
> From: linux-bluetooth-owner@xxxxxxxxxxxxxxx [mailto:linux-bluetooth-
> owner@xxxxxxxxxxxxxxx] On Behalf Of Jon Hoffman
> Sent: Tuesday, January 26, 2016 10:19 AM
> To: 'Luiz Augusto von Dentz' <luiz.dentz@xxxxxxxxx>
> Cc: linux-bluetooth@xxxxxxxxxxxxxxx
> Subject: RE: Bluetooth Smart 5LoWPAN connection between two devices
> 
> Hello,
> Thank you for the reply
> 
> > -----Original Message-----
> > From: Luiz Augusto von Dentz [mailto:luiz.dentz@xxxxxxxxx]
> > Sent: Tuesday, January 26, 2016 4:41 AM
> > To: Jon Hoffman <Jon.Hoffman@xxxxxxxxxxxxxxxx>
> > Cc: linux-bluetooth@xxxxxxxxxxxxxxx
> > Subject: Re: Bluetooth Smart 5LoWPAN connection between two devices
> >
> > Hi Jon,
> >
> > On Mon, Jan 25, 2016 at 7:53 PM, Jon Hoffman
> > <Jon.Hoffman@xxxxxxxxxxxxxxxx> wrote:
> > > I do not want to use Bluez 4.XX so I am attempting to get this to
> > > work with Bluez 5 on both the master and slave.  I have tried the
> > > following commands on both the Raspberry Pi with Bluez 5.23 and
> > > Fedora 23 with Bluez 5.35
> >
> > BlueZ 4 is too old to support, if you want some support from the
> > community just stick with BlueZ 5.
> >
> 
> Our goal is to get Bluez 5 working.  Since I am having issues with Bluez 5, I
> tried using Ubuntu 14 with Bluez 4 to see if it would work (to rule out
> hardware issues).  I have also tried Ubuntu 15 with Bluez 5.23 but I am
> experiencing the same issues as with Fedora 23 (Bluez 5.35) and Raspbian
> (Bluex 5.23).
> 
> > >
> > > Slave (Raspberry Pi Bluez 5.23 or Fedora 23 Bluez 5.35):
> > >        #need root access
> > >        sudo su
> > >
> > >        #enable 6lowpan over Bluetooth le
> > >        echo 1 > /sys/kernel/debug/bluetooth/6lowpan_enabled
> > >
> > >        #start advertising Bluetooth LE service
> > >        hciconfig hci0 leadv
> >
> > There is a built-in D-Bus interface to advertise using bluetoothd, or
> > if you prefer low level then use btmgmt.
> 
> I am not familiar with Bluez D-Bus interface but I can give it a try if you think I
> might get different results.  My preference would be to get an OS level
> connection working for the proof of concept similar to how the Bluez 4
> worked.
> 
> >
> > > master (Raspberry Pi Bluez 5.23 or Fedora 23 Bluez 5.35):
> > >         #need root access
> > >         sudo su
> > >
> > >         #enable 6lowpan over Bluetooth le
> > >         echo 1 > /sys/kernel/debug/bluetooth/6lowpan_enable
> > >
> > >         #establish le connection to master
> > >         hcitool lecc 5C:F3:70:XX:XX:XX
> > >
> > >         echo "connect 5C:F3:70:XX:XX:XX 1" >
> > > /sys/kernel/debug/bluetooth/6lowpan_control
> >
> > This actually works for me so perhaps there is something else going
> > on, you can try enabling dynamic debug in your kernel as well as
> > checking the HCI trace, perhaps the L2CAP channel doesn't connect or
> something like that.
> >
> >
> 
> I do have a hcidump file but I did not want to send it to the entire e-mail
> group.  If anyone would like to see it I can forward it to them individually.
> When you got it to work, were you using a standard out of the box
> distribution (Ubuntu, Fedora...) or did you build a custom Kernel or compile
> Bluez yourself?  I am currently using out of the box distributions.  If I need to
> build a custom kernel or Bluez from source, I am fine with that.
> 
> > --
> > Luiz Augusto von Dentz
> 
> Thanks again for the reply,
> Jon
> N     r  y   b X  ǧv ^ )޺{.n +    { n[   - )   w*jg        ݢj/   z ޖ  2 ޙ   & )ߡ a     G   h 
> j:+v   w ٥
��.n��������+%������w��{.n�����{����^n�r������&��z�ޗ�zf���h���~����������_��+v���)ߣ�

[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux