Broadcast+Observe.cydsn

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
LUBA_1714456
Level 3
Level 3
First solution authored 10 replies posted 5 replies posted

Hello! In reference to  https://community.cypress.com/thread/52338  AND https://community.cypress.com/message/226277 , I kindly ask to restart low power consumption dialog, with Mr. Yugandhar.

(I remember that the project kindly was sent me was named "Broadcast+Observe" but I think it should be named "Advertiser+BroadcastReceiver": so it works)

Now the question: is there any way to frozen the BroadcastReceiver at startup, (as if I changed the BLE device in PCOS IDE, then Build it all again) ?

In other words: depending on my final application, somehow the host processor tells Psoc4 wether start both roles or Advertiser only: with only one role I surely get low power consumption!

Will you help me again?

Thanks

BR

Luigi

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.

Hello LUBA_1714456,

Please refer to the attached reference project. In the project, when you enter command 'a' through UART in tera-term the device starts advertising and enters into low power mode. If you enter command 'b' then the device starts both advertising and scanning at the same time.

Please let me know if this helps.

Thanks,
P Yugandhar.

View solution in original post

0 Likes
6 Replies
Yugandhar
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 5 likes given

Hello LUBA_1714456 ,

Could you please elaborate more on your requirement ? Would you like to start the advertisement first and broadcastreceiver later ?
In the project, with higher advertisement values and scan interval values(with less scan window) will give minimum power consumption. Please refer to the section 3.3.1 in AN92584 Datasheet, in which the table list the average currents measured for different values of advertising and connection. Higher the advertisement interval lesser will be the current consumption.

Please let me know if you have any questions, I'm glad to help.

Thanks,
P Yugandhar.

0 Likes
lock attach
Attachments are accessible only for community members.

Hello Yugandhar!

What I need is to program Psoc device (CYBLE-022001-00) with only one object code, then at run time (may be after Psoc & BLE initialization) enter in one of the following modes:

a. Advertising only : where power consumption has to be reduced as much as possible

b. Advertising and Scan at the same time: the actual running project, (where I’ll try to reduce power modifying adv & scan periods, but in this application it’s not so important)

The mode to enter could be known by Uart communication, and this is a task of mines….

* What I don’t know is: how to switch between these two modes ad run time

So your suggestion “Would you like to start the advertisement first and broadcastreceiver later” could fit my needs

Will you help me doing this?

Here below the link to get my Project

https://we.tl/t-afiSqUCzhl

Thanks in advance

<http://www.shd-elettronica.it/> <https://www.facebook.com/SHDCuneo/> <https://www.instagram.com/s.h.d._elettronica/>

Bassignana Luigi.

S.H.D. s.a.s.

<http://www.shd-elettronica.it/> Sito : www.shd-elettronica.it

Email <mailto:luigi.bassignana@shd-elettronica.it> luigi.bassignana@shd-elettronica.it

Tel - Fax : +39 0171 348019

0 Likes
lock attach
Attachments are accessible only for community members.

Hello LUBA_1714456,

Please refer to the attached reference project. In the project, when you enter command 'a' through UART in tera-term the device starts advertising and enters into low power mode. If you enter command 'b' then the device starts both advertising and scanning at the same time.

Please let me know if this helps.

Thanks,
P Yugandhar.

0 Likes
lock attach
Attachments are accessible only for community members.

Hello Mr. Yugandhar,

today I went back to work on this project.

Having a look on the code you kindly sent me, at main() infinite loop a doubts arises:

* why did you place Low Power entering section inside switch case ‘a’ (Advertising) only?

Is that a mistake?

Furthermore, about reducing power consumption in Scanning mode: I need to receive security alarm BLE sensors broadcast data, where the sensor sends the same broadcast data packet, let’s say about 3 times, 100mS delay between each transmission.

What SCAN parameters do you suggest me to set in the Gap settings\Scan settings\Scan parameters\Scan window … Scan interval?

Is there a picture showing SCAN window/interval timings?

Thanks a lot

BR

Luigi

<http://www.shd-elettronica.it/> <https://www.facebook.com/SHDCuneo/> <https://www.instagram.com/s.h.d._elettronica/>

Bassignana Luigi.

S.H.D. s.a.s.

<http://www.shd-elettronica.it/> Sito : www.shd-elettronica.it

Email <mailto:luigi.bassignana@shd-elettronica.it> luigi.bassignana@shd-elettronica.it

Tel - Fax : +39 0171 348019

0 Likes
lock attach
Attachments are accessible only for community members.

Hello,

As you said " Advertising only : where power consumption has to be reduced as much as possible" so I added Low Power entering section for advertising only. You can add Low Power entering section for both the cases.

Please refer to below points on scan parameters:
The scan interval is defined as the interval between the start of two consecutive scan windows as shown in attached image(Scan_Parameters). In each scan window, the Link Layer should scan on a different advertising channel index. The Link Layer shall use all the advertising channel indices as shown in attached image(Scan_Channels). The scanWindow and scanInterval parameters shall be less than or equal to 10.24 s. The scanWindow shall be less than or equal to the scanInterval. If the scanWindow and the scanInterval parameters are set to the same value, then the Link Layer should scan continuously.

Thanks,
P Yugandhar.

0 Likes
lock attach
Attachments are accessible only for community members.

Many thanks!

Have a nice life!

Luigi

<http://www.shd-elettronica.it/> <https://www.facebook.com/SHDCuneo/> <https://www.instagram.com/s.h.d._elettronica/>

Bassignana Luigi.

S.H.D. s.a.s.

<http://www.shd-elettronica.it/> Sito : www.shd-elettronica.it

Email <mailto:luigi.bassignana@shd-elettronica.it> luigi.bassignana@shd-elettronica.it

Tel - Fax : +39 0171 348019

0 Likes