-
1. Re: adding device to whitelist while scanning
hima Nov 20, 2016 9:23 PM (in response to vaisakh.hari21_1668226)Hello Vaisakh,
Please have a look at the whitelist example project:https://github.com/cypresssemiconductorco/PSoC-4-BLE/tree/master/100_Projects_in_100_Days/Day014_Whitelist.
Thanks,
Hima
-
2. Re: adding device to whitelist while scanning
vaisakh.hari21_1668226 Nov 26, 2016 9:29 AM (in response to vaisakh.hari21_1668226)Hello Hima,
Yes I did go through this program , the fact is that im trying to add devices to whitelist while in scanning mode rather than in broadcasting mode, so when i try using the program fragment to add device the program flow directly goes to the default case ie enter valid address.
when im entering 'a' in serial terminal it directly goes to the condition that address entered is invalid and hence i am not able to add the device.
please help
-
3. Re: adding device to whitelist while scanning
yssu Nov 28, 2016 1:01 AM (in response to vaisakh.hari21_1668226)Hi,
Please find the example project modified such that you can add devices to whitelist whilst scanning. The device will process advertisement packets only from devices in the White List.
-
4. Re: adding device to whitelist while scanning
vaisakh.hari21_1668226 Dec 6, 2016 1:07 PM (in response to vaisakh.hari21_1668226)Hi yssu,
Thankyou for the code. but again it shows the same error..instead of accepting the entire string, it directly access the default condition ie invalid address entered.Plus in this code if the same device is present it is scanned and displayed continuously. Rather i just want it to displayed only once as long as it is on. Once if broadcasting device turns off and on again only then should the PSOC display it again ..can u please look into it
I have attached a pic of the error im talking about on the Serial terminal.
please let me know
-
Capture_10.PNG 14.9 K
-
-
5. Re: adding device to whitelist while scanning
yssu Dec 9, 2016 6:09 AM (in response to vaisakh.hari21_1668226)Hi Vaisakh,
The error is associated with your serial terminal Termite 3.2. I downloaded Termite 3.2 and noted that it is apending a linefeed(LF) in addition to the LFCR that is added when you press enter. Go to Settings and select 'Append nothing' under Transmitted text. It should work fine after you do that.
In the example, duplicate filtering is enabled. So, only when the advertisement data changes, the scan report will be printed.