core location - iBeacon & XCode - Discovering with CoreLocation and Connecting with CoreBluetooth -


i have little hw ble module communicates ios device.

i perform discovery using ibeacon (so using ibeacon advertisement packets) , - - connection (and data exchange) using corebluetooth, there issues.

before describing issues, have tell need provide these information in discovery phase:

  1. serial number (needed internal purposes) - 6 characters , 10 numbers.

  2. a "hw version" specify type of product (each product uses different protocol).

the problem have how perform discovery phase , connect particular discovered object:

a. in ibeacon adv packet, should use uuid field serial number , major/minor field hw version, if so, devices not discoverable (ibeacon sdk ios needs know uuid before starting monitoring phase, cannot different every device).

b. in ios, ibeacon features available through corelocation libraries, standard ble features instead available through corebluetooth. if use ibeacon advertisement packet, objects discovered corebluetooth libraries not see information of package (so, problem is: "how know object serial xyz?").

i realized possible solution problem advertising both ibeacon , standard ble packages, in "round robin way" let's say.

i tried (i advertised 500msec ibeacon package , 500msec standard ble one) , standard ble seems ok.

i still need investigate more how ibeacon discovery reacts this, said solution.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -