ios - "Scan Response" not available in advertisementData -


I have a configuration problem with a BLE 112 module: I can not display the contents of the scan response.

I am attempting to use this method through adadata dictionary:

  - (zero) Central Manager: (CBC Central Manager *) Central discounter Peripheral: (CBParyFerral *) Peripheral AdData: (NSDRIED *) AdData RSSI: (NSN * *) RSS {NSG (@ "AdvertisingData:% @", AdData); }  

I use the code given by BlueGiga as an example: Here is the URL for the zip file

What do I get in the ad here? :

  adv: {kCBAdvDataIsConnectable = 1; KCBAdvDataManufacturerData = & lt; Ffffb1b2 b3 & gt; KCBAdvDataTxPowerLevel = 3; }  

But I almost do not display the contents of the scan response, i.e. the local name CBSdvertisementDataLocalName on iOS. Using sniffer, scan response is available, though ...

The following scan response was used for formatting. Bgs is part of the script: # Flags for

  Searchable / connectable ad_data (0: 1) = $ 02 # Ad field length = 2 bytes adv_data (1: 1) = gap_ad_type_flags # Ad field type = 0x01 (flag) adv_data (2: 1) = $ 06 # Flags = 0x06, connectable / embedded # tx power field ads, this ad_data (3: 1) = $ 02 # ad area Length = 2 bytes ad_data (4: 1) = gap_ad_type_txpower # Ad field type = 0x0A (TX power) adv_data (5: 1) requirement = $ 03 # TX power in # DBM # Custom manufacturer adv_data (6: 1) = $ 06 # Ad field length = 5 bytes (arbitrary, at least, but at least 3) adv_data (7: 1) = $ Ff # Ad Field Type = 0xFF (Manufacturer Specific Data) adv_data (8: 1) = $ ff # Unknown / Prototype Company Identifier Code - octet 2 adv_data (9: 1) = $ ff # Unknown / Prototype Company Identifier Code - Octet 1 adv_data (10: 1) = $ b1 # Custom data byte # 1 (can be anything) adv_data (11: 1) = $ B2 # Custom Data Byte # 2 (Anything Adv_data (12: 1) = $ b3 # Custom data byte # 3 (can be anything) # --------------- --------- ------- # Creating custom scan response data # --------------------------- ---- # of this device Receive Bluetooth MAC Address (Note: This is Small-Endian!) Call system_address_get () (mac_addr (0: 6)) sr_data (0: 1) = $ 13 # Length of ad field = 1 9 bytes 0x13) sr_data ( 1: 1) = gap_ad_type_localname_complete # Ad field type = 0x09 (full local name) sr_data (2: 1) = $ 4d # 'm' sr_data (3: 1) = $ 79 # 'y' sr_data (4: 1) = $ 20 # '' sr_data (5: 1) = $ 57 # 'W' sr_data (6: 1) = $ 69 # 'I' sr_data (7: 1) = $ 64 # 'D' sr_data (8: 1) = $ 67 # 'g' sr_data (9: 1) = $ 65 # 'e 'Sr_data (10: 1) = $ 74 #' t 'sr_data (11: 1) = $ 20 #' sr_data (12: 1) = (mac_addr (2: 1) / $ 10) + 48+ (mac_addr (2: 1) / $ 10) / 10 * 7) #Make byte 4 10 points sr_data (13: 1) = (mac_addr (2: 1) & amp; $ F) + 48+ ((mac_addr (2: 1) and amp; $ f) / 10 * 7) # Mac byte 4 1 score sr_data (14: 1) = $ 3a # ':' sr_data (15: 1) ) = (Mac_addr (1: 1) / $ 10) + 48 + (mac_edder (1: 1) / $ 10) / 10 * 7) # mac byte 5 10 digit number sr_data (16: 1) = (mac_addr (1 : 1) and $ f) + 48+ ((mac_addr (1: 1) & amp; $ f) / 10 * 7) # Mac byte 5 1 mark sr_data (17: 1) = $ 3a # ':' sr_data ( 18: 1) = (mac_addr (0: 1) / $ 10) + 48 + ((Mac_addr (0: 1) / $ 10) / 10 * 7) # Mac byte 6 10 digits sr_data (19: 1) = (Mac_addr (0: 1) and $ f) + 48 + ((mac_addr (0: 1) & amp; $ f) / 10 * 7) # byte byte 6 1 mark # set ad interval 1s -2 s, Use All Ad Channels # (Note Minimum / Maximum Parameter 625 UCC In units, call gap_set_adv_parameters (1600, 3200, 7) # Custom ad data call gap_set_adv_data (0, 13, adv_data (0:13)) # Set custom scan response data (i.e. device name value) call gap_set_adv_data (1, 20, Sr_data (0:20))  

Is anyone in the form of an idea?


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -