Bluetooth mangoH yellow launch

Hi,
Is there a procedure to follow in order to detect the bluetooth using the mangoH yellow?
Thanks

Does this help?

I have tried but cannot detect my bluethooth using another device.
I wonder if I have to launch specific apps or download drivers. Moreover the bluetooth is integrated so I don’t need any antenna, right?

What do you mean by another device?
You have one working device?

I want to connect it with my smartphone.

the link shows that you need to check " dmesg | grep Blue"

Bluetooth isn’t going to be active until you’re running an application. A simple example:

root@swi-mdm9x28-wp:~# bluetoothctl
Agent registered
[CHG] Controller 3C:E1:A1:E8:B6:E1 Pairable: yes
[bluetooth]# 

Now I run bluetoothctl on an Ubuntu system:

paul@paul-ThinkCentre-M72e:~$ bluetoothctl
Agent registered
[bluetooth]# info 3C:E1:A1:E8:B6:E1
Device 3C:E1:A1:E8:B6:E1 (public)
	Name: BlueZ 5.52
	Alias: BlueZ 5.52
	Paired: no
	Trusted: no
	Blocked: no
	Connected: no
	LegacyPairing: no
	UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
	UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
	UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
	UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
	UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
	Modalias: usb:v1D6Bp0246d0534
[bluetooth]#

The Ubuntu Bluetooth sees the mangOH Bluetooth

Could you tell me where can I find some examples of app developed using BlueZ and Dbus to send message with another device (if possible) please?

bluetoothServices which can be found in https://github.com/mangOH/BluetoothServices . I used this as a model to implement the nRF Transparent UART service. I think you should be able to find a smartphone app from Nordic RF which can connect with it as is.

Thanks I will try it

I have this message when trying to connect to bluetooth after command ‘power on’, can you help me?

"no default controller available "

You mean you’re running bluetoothctl? Works for me:

root@swi-mdm9x28-wp:~# bluetoothctl
Agent registered
[CHG] Controller 3C:E1:A1:E8:B6:E1 Pairable: yes
[bluetooth]# power on
Changing power on succeeded
[CHG] Controller 3C:E1:A1:E8:B6:E1 Powered: yes
[bluetooth]# exit             
root@swi-mdm9x28-wp:~# cm info
Device:                        WP7702
IMEI:                          352653090190778
IMEISV:                        4
FSN:                           4L931585051610
Firmware Version:              SWI9X06Y_02.32.02.00 c2e98c jenkins 2019/08/30 07:28:21
Bootloader Version:            SWI9X06Y_02.32.02.00 c2e98c jenkins 2019/08/30 07:28:21
MCU Version:                   002.013
PRI Part Number (PN):          9909138
PRI Revision:                  001.001 
Carrier PRI Name:              SIERRA
Carrier PRI Revision:          001.027_000
SKU:                           1104405
Last Reset Cause:              Power Down
Resets Count:                  Expected: 379	Unexpected: 1
root@swi-mdm9x28-wp:~# 

It works after restarting my computing… strange. I managed to pair mangoh to smartphone but I get an error while trying to connect to my smartphone device :
image

Do you have any idea of what could be wrong? Then I still struggle to find my mangoh on nrF connect application but you might not know…

Then could you bring me clarifications of these points:

  • Where do I have to work : in my “leaf-data” folder or in my “mangoh” folder that both were created after installation.
  • is it possible to work with python? The only requirement is to use Legato standard of coding , right?

Thanks,

I looks like not all functions in bluetoothctl work on the yellow. The connect function is classic Bluetooth and it does not appear to work.

But my BLE application does work.

Regarding building bluetoothServices (which is BLE), I put it in ~/myWorkspace/mangOH/apps and added the app name to yellow.sdef in ~/myWorkspace/mangOH. Then when I do make yellow_wp77xx it gets built with all the other apps.

The gatttool utility which is on Ubuntu systems is useful in communicating with a BLE application.

Regarding python, you have Python 2.7.15 at the command line and can run scripts, that’s about all I know. There is a lot more discussion on Python on the forum.

OK and what is the bluez version? can we use mango with any version of bluez or is it only 5.48 as shown in this procedure

The default snap install looks out of date. There is a note at the bottom of the page saying a later version is available. I am using BlueZ 5.50 on Ubuntu which I downloaded. According to my post above the mangOH is running BlueZ 5.52.

paul@paul-ThinkCentre-M72e:~$ sudo snap find bluez
Name                 Version  Publisher     Notes  Summary
bluez                5.48-1   canonical✓    -      Bluez for Ubuntu
ofono                1.17-1   canonical✓    -      Mobile telephony daemon
bluez-tests          1        canonical✓    -      Set of utilities that are not production ready yet help in testing
bluetooth-autostart  1.1      maumx2        -      Simple snap to autostart bluetooth at boot
thingy52             1.0      anonymouse67  -      Compact multi-sensor BLE prototyping platform
bluetooth-6lowpand   0.1      wielgosm      -      BLE 6LoWPAN commissioning
paul@paul-ThinkCentre-M72e:~$ sudo snap info bluez
name:      bluez
summary:   Bluez for Ubuntu
publisher: Canonical✓
store-url: https://snapcraft.io/bluez
contact:   https://code.launchpad.net/~snappy-hwe-team/snappy-hwe-snaps/+git/bluez
license:   unset
description: |
  no description
commands:
  - bluez.bluetoothctl
  - bluez.btattach
  - bluez.btmgmt
  - bluez.btmon
  - bluez.hciattach
  - bluez.hciconfig
  - bluez.hcidump
  - bluez.hcitool
  - bluez.meshctl
  - bluez.obexctl
  - bluez.sdptool
services:
  bluez:      simple, enabled, inactive
  bluez.obex: simple, enabled, inactive
snap-id:      JmzJi9kQvHUWddZ32PDJpBRXUpGRxvNS
tracking:     latest/stable
refresh-date: 2020-07-13
channels:
  latest/stable:    5.48-1     2020-07-13 (229) 4MB -
  latest/candidate: 5.48-1     2020-07-08 (229) 4MB -
  latest/beta:      5.48-1     2020-07-03 (229) 4MB -
  latest/edge:      5.48-2-dev 2020-07-10 (240) 4MB -
  20/stable:        5.53-2     2020-11-13 (252) 5MB -
  20/candidate:     5.53-2     2020-11-12 (252) 5MB -
  20/beta:          5.53-2     2020-11-12 (252) 5MB -
  20/edge:          5.53-2     2020-11-12 (252) 5MB -
installed:          5.48-1                (229) 4MB -
paul@paul-ThinkCentre-M72e:~$ 

Thanks. I will try to change the version of bluez. Now I have 5.50 and I would like to change to 5.52. Can you tell me how to do this please? I tried to follow one process based on internet and I made it in mangoh folder but it haven’t changed the version…

If you’re talking about the version of Bluez on the mangOH you should be able to update it to 5.52 by loading the latest firmware. I have never tried updating it any other way.

Hi,
I am still wondering why I do not have the 5.52 version. I followed the guide for installation of the leaf environment… maybe it is because I chose "$ leaf setup -p mangOH-yellow-wp77xx_0.2.3 ". I should have chosen another version you thing? This was not the latest version

I’m simply using firmware revision 0.6.0 as downloaded from here:

https://mangoh.io/mangoh-yellow-resources-software