BLE CC2541 not scanned with android beacon library

I am having a problem checking the device currently. I am trying to scan c2541 using the Android beacon library and I cannot find it in the list if I try to scan the StickNFind device . or HM than his job.

Below is my code snippet.

    @Override
    protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_ranging);

    mHandler = new Handler();
    beaconManager.bind(RangingActivity.this);
    beaconManager.getBeaconParsers().clear();
    beaconManager.getBeaconParsers().add(new BeaconParser().
            setBeaconLayout("m:0-3=4c000215,i:4-19,i:20-21,i:22-23,p:24-24"));
    beaconManager.getBeaconParsers().add(new BeaconParser().
            setBeaconLayout("x,s:0-1=feaa,m:2-2=20,d:3-3,d:4-5,d:6-7,d:8-11,d:12-15"));
    beaconManager.getBeaconParsers().add(new BeaconParser().
            setBeaconLayout("s:0-1=feaa,m:2-2=00,p:3-3:-41,i:4-13,i:14-19"));
    beaconManager.getBeaconParsers().add(new BeaconParser().
            setBeaconLayout("s:0-1=feaa,m:2-2=10,p:3-3:-41,i:4-20v"));
    beaconManager.getBeaconParsers().add(new BeaconParser().
            setBeaconLayout("s:0-1=fed8,m:2-2=00,p:3-3:-41,i:4-21v"));

    beaconManager.bind(this);
    //scanning();
}

If anyone has an idea about this, than kindly offer me a solution

I know this question is related to some kind of hardware, but with the problem of my code above.

So any help would be greatly appreciated Thanks in advance.

+4
1

Beacon :

ScanResult{
 mDevice=68:9E:19:03:E0:EA,
 mScanRecord=ScanRecord [mAdvertiseFlags=6, mServiceUuids=null,
 mManufacturerSpecificData={
  76=[2, 21, -3, -91, 6, -109, -92, -30, 79, -79, -81, -49, -58, -21, 7, 100, 120, 37, 0, 0, 0, 0, -59]
 },
 mServiceData={00005153-0000-1000-8000-00805f9b34fb=[67]},
 mTxPowerLevel=0,
 mDeviceName=null],
 mRssi=-68,
 mTimestampNanos=442148352896454
}

.

0

All Articles