When I work with BLE sniffer can I use filters by advertising data?

asked 2018-10-18 10:23:23 +0000

When I work with BLE sniffer can I use filters by advertising data?

edit retag flag offensive close merge delete

Comments

This depends on which advertising data you want to filter on. Wireshark supports generic types but not many manufacturer specific types. Can you tell more which types you have?

Stig gravatar imageStig ( 2018-10-18 11:42:03 +0000 )edit

Thanks! For example in my MPA in use ALT-BEACON. Advertising data:

 Beacon beacon = new Beacon.Builder()
                .setId1("12345678-0000-0000-0000-00004d504132")   // 31 - MPA1 (Samsung); 32 - MPA2 (LG)
                .setId2("1")
                .setId3("2")
                .setManufacturer(0x0118)
                .setTxPower(-59)
                .setDataFields(Arrays.asList(new Long[]{0l}))
                .build();
        BeaconParser beaconParser = new BeaconParser()
                .setBeaconLayout("m:2-3=beac,i:4-19,i:20-21,i:22-23,p:24-24,d:25-25");
        beaconTransmitter = new BeaconTransmitter(getApplicationContext(), beaconParser);

Can I use filter by part of Advertising data: ... xxx.contains("12345678")?

rakhlingm gravatar imagerakhlingm ( 2018-10-21 11:06:29 +0000 )edit