I'm currently using a pair of BGM111 and C-SDK, and I noticed that if I advertise on 1 end in non-connectable mode, I won't get a scan_response event generated on the other end (unless if I advertise in scannable-non-connectable mode initially).
However, on the Blue Gecko app, if I enumerate all my surrounding BT devices with it, I will be able to see the advertising packets sent by the non-connectable device.
So my question is, is there a way to see the 31bytes advertising packet sent by a device advertising in non-connectable mode?
Appreciate any insights anyone has on this!
How did you set the discoverability? Like this?
In my test (with SDK v2.6.1) I can see the scan_response events. Which SDK version do you use?
If it's a bug, it's good to know which stack version does contain it.
I can only confirm, that with v2.6.1 I cannot reproduce this issue.
How do you mean it's not occuring? I have switch mode from scannable_non_connectable to undirected_connectable with SDK v2.4.2.
Before the change I saw the advertisement but wasn't able to connect to the device, after the change I saw the same advertisement and I was able to connect to the device. So I can't see any issue.
What do you experience exactly?
@arkalvac sorry for late reply.
Actually i am trying to change the mode from gecko_cmd_le_gap_set_mode(le_gap_general_discoverable,scannable_non connectable ) to gecko_cmd_le_gap_set_mode(le_gap_general_discoverable,le_gap_undirected_connectable ) .Initially it should be in scannable mode.
So when i give command code let say '*' from uart it should be in undirected mode,so that client can only connect to ble until command is been send to ble from uart. But it doesnot changing the mode.
So what i found was if set non connectable mode initially ,ble was able to connect to client when command was send to ble from uart.
why ble is not able to change the mode from scannable to undirected mode??
In non_connectable mode the radio is not receiving at all after sending out the advertisement.
In scannable_non_connectable mode the radio is receiving after sending out the advertisement, but accepts only scan_requests.
In connectable mode the radio is receiving after sending out the advertisement and it accepts both scan_requests and connection_requests.
Can you capture the packets e.g. using Network Analyzer or a sniffer? In my tests I was able to connect to the device after changing mode from scannable_non_connectable to connactable, but I do not know what packets your other device is sending. Maybe it still sends scan_request before connection requests, and you cannot do both at the same time.