Multiple virtual beacon communication to Multiple transmitting nodes BLE

我的梦境 提交于 2020-04-17 22:51:50

问题


We have two overdrive Node devices to track the beacon location. Our idea is to convert the mobile device to the virtual beacon and track the current location of the virtual device?

we are using the code:(Android Beacon Library).

As per the code, we need to pass three params, UUID, Minor, and Major to create a beacon layout.

But our assumption is like any number of virtual beacon needed to connect to the BLE node device. It not possible to configure the fixed minor id on our mobile app, since that virtual beacon may be required to connect to another node as well.

How to handle this. we are also not clear in this flow.

We are using the following code:

    Beacon beacon = new Beacon.Builder()
            .setId1("2f234454-cf6d-4a0f-adf2-f4911ba9ffa6")
            .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 beaconTransmitter = new BeaconTransmitter(getApplicationContext(), beaconParser);
    beaconTransmitter.startAdvertising(beacon);

来源:https://stackoverflow.com/questions/58796573/multiple-virtual-beacon-communication-to-multiple-transmitting-nodes-ble

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!