cancel
Showing results for 
Search instead for 
Did you mean: 

ModusToolbox AnyCloud SDK

YongX_46
Employee

Hi All,

     We meet low power issue with example code of "mtb-example-anycloud-mqtt-client" . It seems that 43012 can goes  into offload with low power, but PSOC6 cannot goes to deep sleep constantly. The PSOC6 will sleep 100ms and then wake up with 100ms, it seems that PSOC6 runs  and sync with AP beacon interval. I checked that this example cod did not used the LPA library, we hope this example can woks like the "TCP offload" project. thanks!

regards,

David

0 Likes
Reply
1 Solution
AditiB_81
Moderator
Moderator

Hi,

Can you clarify more on this --> "seems the PSOC6 cannot goes to sleep due the network stack not suspend"
Have you included the "network_idle_task" function which in turn calls the function "wait_net_suspend"?
Is it that you have already included the function and still you can't see the network being suspended?

You can also take a look at this thread for more clarifications-->
https://community.cypress.com/thread/70916

Thanks
Aditi

View solution in original post

0 Likes
Reply
3 Replies
AditiB_81
Moderator
Moderator

Hello,

Yes, the TCP offload project employs the LPA (Low Power Assistant) Library for low power applications, whereas the AnyCloud Mqtt Client application doesn't include this library. If you want to use this library and utilize low power functionality, then you need to add this library to your MQTT application. You can do so via the Library Manager 1.2 provided in the Modus ToolBox 2.2. It lets you add and remove the various libraries according to the requirement of your application. I have attached the snapshot for your reference. In the Modus ToolBox IDE, you will find the Library Manager 1.2 in the Tools.

Thanks

Aditi

0 Likes
Reply
YongX_46
Employee

Hi Aditi,

    Yes, already add the LPA lib into the project, but seems the PSOC6 cannot goes to sleep due the network stack not suspend.  And "wait_net_suspend" can not  pass due network will never suspend.

      Thanks!

Regards,

David

0 Likes
Reply
AditiB_81
Moderator
Moderator

Hi,

Can you clarify more on this --> "seems the PSOC6 cannot goes to sleep due the network stack not suspend"
Have you included the "network_idle_task" function which in turn calls the function "wait_net_suspend"?
Is it that you have already included the function and still you can't see the network being suspended?

You can also take a look at this thread for more clarifications-->
https://community.cypress.com/thread/70916

Thanks
Aditi

View solution in original post

0 Likes
Reply