FlutterBleLib icon indicating copy to clipboard operation
FlutterBleLib copied to clipboard

Manufacturer Data is not correct

Open raycardillo opened this issue 6 years ago • 4 comments

I'm debugging with BlueSee and cross referencing when I port the implementation to a Flutter app using this library. I need a way to identify devices from certain manufacturers (not the specific device but a signature of the type of device so I know which model it is, etc). So I was going to use manufacturer data, but it's not working quite right.

  • First, it's an Int8List and I would have expected a Uint8List so we can get the raw bytes and parse them.
  • More concerning is that I just tested with 4 different devices, and for each, I'm getting the same Manufacturer Data (see below) across 4 difference devices when using this library but BlueSee is showing me very different data... so I think there is a bug here.

What I'm getting on all of them is this (even though BlueSee shows different info): [-103, -87, -18, 125, -89, 45, -70, -73, -85, 13, -85, 90]

I'm testing on a physical device (iPhone 11 Pro Max running iOS 13.3).

raycardillo avatar Jan 03 '20 05:01 raycardillo

Hi @raycardillo! Thanks for the issue!

Could you see if the same error occurs on Android? Could you paste the code from obtaining Manufacturer Data to the end of parsing it?

mikolak avatar Jan 08 '20 14:01 mikolak

I've identified the issue, fix will be out shortly.

mikolak avatar Jan 09 '20 13:01 mikolak

Sorry for the delayed response but I was busy with work. Glad to hear that you figured out the root cause. I'll be eager to test the fix when it's available (as soon as I get spare cycles).

raycardillo avatar Jan 10 '20 03:01 raycardillo

Version 2.1.0 with fix has just been released.

mikolak avatar Jan 24 '20 15:01 mikolak