question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'discover' not seeing manufacturerData on OSX Yosemite

See original GitHub issue

Hi,

I am building an few apps around BLE:

  • BLE server on rPi using bleno
  • iOS / Android native app to connect to that BLE device
  • electron app for OSX / Windows using noble

Now everything works perfectly between the rPi and iOS / Android I have an issue with noble though. When discovering the devices noble does not report the manufacturerData on OSX Though i see it well from And and iOS (which as a very similar code to noble).

on mi Pi i see that i create the adv correctly

creating BLEDevice 12334 12wef3
createData: {
  "name": "NeOsmia 12wef3",
  "manufacturerData": [
    3,
    186
  ],
  "services": [
    "6e400001b5a3f393e0a9e50e24dcca9e"
  ]
}
adv [ <Buffer 02 01 06 11 06 9e ca dc 24 0e e5 a9 e0 93 f3 a3 b5 01 00 40 6e>,
  <Buffer 0f 08 4e 65 4f 73 6d 69 61 20 31 32 77 65 66 33 03 ff 03 ba> ]
on -> stateChange: poweredOn true
startAdvertising [ <Buffer 02 01 06 11 06 9e ca dc 24 0e e5 a9 e0 93 f3 a3 b5 01 00 40 6e>,
  <Buffer 0f 08 4e 65 4f 73 6d 69 61 20 31 32 77 65 66 33 03 ff 03 ba> ]
on -> advertisingStart: success
services [ '6e400001b5a3f393e0a9e50e24dcca9e' ]

i use

                bleno.startAdvertisingWithEIRData(this.advertisement[0], this.advertisement[1]);

Now on noble when get the discover event i get this:

parseAdvertisingData { localName: 'raspberrypi',
  txPowerLevel: undefined,
  manufacturerData: undefined,
  serviceData: [],
  serviceUuids: [ '6e400001b5a3f393e0a9e50e24dcca9e' ] }

Where manufacturerData is undefined.

Do you have any idea?

Thanks

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
farfromrefugcommented, Apr 28, 2016

Found the bug. If i start advertisement-discovery.js with my mac’s bluetooth on i get this

peripheral discovered (3dfcac45fee74f3f8176f9e6b409a746 with address <5c:f3:70:68:17:2a, unknown>, connectable true, manufacturerData undefined, RSSI -59:
    hello my local name is:
        raspberrypi
    can I interest you in any of the following advertised services:
        ["6e400001b5a3f393e0a9e50e24dcca9e"]

if i then stop the bluetooth and start it again i get this

peripheral discovered (3dfcac45fee74f3f8176f9e6b409a746 with address <5c:f3:70:68:17:2a, unknown>, connectable true, manufacturerData �, RSSI -56:
    hello my local name is:
        raspberrypi
    can I interest you in any of the following advertised services:
        ["6e400001b5a3f393e0a9e50e24dcca9e"]
    here is my manufacturer data:
        "03ba"

It seems that for some reason if noble is started with the bluetooth on, i don’t get the manufacturerData Any idea?

0reactions
stevelixincommented, May 8, 2018

I have the same situation, is it possible to merge the PR?

Read more comments on GitHub >

github_iconTop Results From Across the Web

'discover' not seeing manufacturerData on OSX Yosemite -
Hi,. I am building an few apps around BLE: BLE server on rPi using bleno; iOS / Android native app to connect to...
Read more >
Yosemite will not find User Library Files - Apple Community
3. I go to my User Library folder and cannot find the file or folder I seek. 4. I go to the folder...
Read more >
Fixing Bluetooth Discovery Problems in OS X Yosemite
My bluetooth speakers were not being discovered in El Capitan. I resolved the issue by choosing “Browse Files on Device…” in the bluetooth...
Read more >
Mac OS X information for installing and using Java
Why can't I find Java 6 for Mac OS X on java.com? ... If you do not see a Java icon under System...
Read more >
Missing MeCompass functions in Makeblock library V2.1.0916 ...
Using Starter Robot Kit, mblock and Arduino IDE on Mac OS Yosemite. I just bought and installed the new MeCompass module and found...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found