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

cross mob
Unknown05
Level 2
Level 2
10 replies posted 10 sign-ins 5 questions asked

Hi, 

I am a beginner. I want to configure wifi in sleep mode and wake it up as packet is received. I am using CYW43439 with STM32 controller. Can you suggest me how to proceed and what to refer in order to implement the same.

Thanks

0 Likes
1 Solution
Qi_Colin
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 5 questions asked

Hi @Unknown05 :

In Linux, Wi-Fi can wake up the host by implementing "wowl" feature, below is the information about "wowl":

[WOWL command list]
1.Setting WOWL trigger pattern:
>wl wowl_pattern add 66 0xff07 0x616D62615F77616B657570 
2. Set WOWL wakeup cases
>wl wowl 0x12001f 
current bit map :
#define WL_WOWL_MAGIC (1 << 0)                     /* Wakeup on Magic packet */
#define WL_WOWL_NET (1 << 1)                          /* Wakeup on Netpattern */
#define WL_WOWL_DIS (1 << 2)                           /* Wakeup on loss-of-link due to Disassoc/Deauth */
#define WL_WOWL_RETR (1 << 3)                       /* Wakeup on retrograde TSF */
#define WL_WOWL_BCN (1 << 4)                        /* Wakeup on loss of beacon */
#define WL_WOWL_GTK_FAILURE (1 << 10)      /* enable wakeup if GTK fails */
#define WL_WOWL_TCPKEEP_TIME (1 << 17)   /* Wakeup on tcpkeep alive timeout */
#define WL_WOWL_TCPKEEP_DATA (1 << 20)   /* tcp keepalive got data */
#define WL_WOWL_UNASSOC (1 << 24)            /* Wakeup in Unassociated state (Net/Magic Pattern) */
#define WL_WOWL_SECURE (1 << 25)              /* Wakeup if received matched secured pattern */
#define WL_WOWL_DLTRO_WAKE (1 << 27)    /* Wakeup up on DHCP renew failure */
2.Enable WOWL
>wl wowl_activate 1: ==>This command has to be the latest wowl command otherwise the wowl function is not enabled.
3.Check the current wake indication after WOWL happened.
>wl wowl_wakeind
4.Clear WOWL status
>wl wowl_clear

Best Regards,

Colin

View solution in original post

0 Likes
5 Replies
Qi_Colin
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 5 questions asked

Hi @Unknown05 :

Could you inform me about this platform you're working on? RTOS or Linux?

Best Regards,

Colin

0 Likes
Unknown05
Level 2
Level 2
10 replies posted 10 sign-ins 5 questions asked

I am working on STM32CubeIDE on linux.

0 Likes
Qi_Colin
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 5 questions asked

Hi @Unknown05 :

In Linux, Wi-Fi can wake up the host by implementing "wowl" feature, below is the information about "wowl":

[WOWL command list]
1.Setting WOWL trigger pattern:
>wl wowl_pattern add 66 0xff07 0x616D62615F77616B657570 
2. Set WOWL wakeup cases
>wl wowl 0x12001f 
current bit map :
#define WL_WOWL_MAGIC (1 << 0)                     /* Wakeup on Magic packet */
#define WL_WOWL_NET (1 << 1)                          /* Wakeup on Netpattern */
#define WL_WOWL_DIS (1 << 2)                           /* Wakeup on loss-of-link due to Disassoc/Deauth */
#define WL_WOWL_RETR (1 << 3)                       /* Wakeup on retrograde TSF */
#define WL_WOWL_BCN (1 << 4)                        /* Wakeup on loss of beacon */
#define WL_WOWL_GTK_FAILURE (1 << 10)      /* enable wakeup if GTK fails */
#define WL_WOWL_TCPKEEP_TIME (1 << 17)   /* Wakeup on tcpkeep alive timeout */
#define WL_WOWL_TCPKEEP_DATA (1 << 20)   /* tcp keepalive got data */
#define WL_WOWL_UNASSOC (1 << 24)            /* Wakeup in Unassociated state (Net/Magic Pattern) */
#define WL_WOWL_SECURE (1 << 25)              /* Wakeup if received matched secured pattern */
#define WL_WOWL_DLTRO_WAKE (1 << 27)    /* Wakeup up on DHCP renew failure */
2.Enable WOWL
>wl wowl_activate 1: ==>This command has to be the latest wowl command otherwise the wowl function is not enabled.
3.Check the current wake indication after WOWL happened.
>wl wowl_wakeind
4.Clear WOWL status
>wl wowl_clear

Best Regards,

Colin

0 Likes
Unknown05
Level 2
Level 2
10 replies posted 10 sign-ins 5 questions asked

Hi, i am importing an example given in infenion pack, wifi_tko to implement this. Can you please help me with remote and local port number. unable to set it correctly.

0 Likes
Qi_Colin
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 5 questions asked

Hi @Unknown05 :

I'm not sure what's the problem you met.

Please inform me more about it.

OHOT, please check the FW you're implementing supports tko feature.

You can find it in the strings of FW like below:

43439a0-roml/sdio-g-pool-p2p-idsup-idauth-pktfilter-keepalive-aoe-lpc-swdiv-srfast-fuart-noclminc-clm_min-fbt-mfp-sae-wowlpf-tko  Version: 7.95.82 (b4eafbb CY)

Best Regards,

Colin

0 Likes