nRF7002Dk send wifi beacon on 3 channel with the samples "raw_tx_packet"

Hi Supporter:

  I want make a wifi position card with nRF7002 which support low power and fast beacon sending. 

  I evaluate it with nRF7002. 

  Now i have some problem about this(Environment:  nrf-sdk main branch, samples\wifi\raw_tx_packet):

1. i want to send the beacon on 3 channel(1,6,11) every 250ms. 

       The code:

uint8_t channel_info[3] = {6,1,11};

static void wifi_send_raw_tx_packets(void)

{......

        for (int i = 0; i < 3; i++) {
            wifi_set_channel(channel_info[i]);
            memcpy(test_frame + sizeof(struct raw_tx_pkt_header),
                   &test_beacon_frame, sizeof(test_beacon_frame));
           
            ret = sendto(sockfd, test_frame, buf_length, 0,
                    (struct sockaddr *)&sa, sizeof(sa));
            if (ret < 0) {
                LOG_ERR("Unable to send beacon frame: %s", strerror(errno));
                num_failures++;
            }

            increment_seq_control();

            k_msleep(CONFIG_RAW_TX_PACKET_SAMPLE_INTER_FRAME_DELAY_MS);
        }

}

The beacon is sending success when it slowly. But when the beacon interval update to 250ms, There have some error:

[00:01:20.487,121] [1;31m<err> wifi_nrf: umac_cmd_alloc: Failed to allocate UMAC cmd[0m
[00:01:20.487,152] [1;31m<err> wifi_nrf: nrf_wifi_fmac_set_channel: umac_cmd_alloc failed[0m
[00:01:20.487,182] [1;31m<err> wifi_nrf: nrf_wifi_channel: set channel failed[0m
[00:01:20.487,182] [1;31m<err> raw_tx_packet: Channel setting failed -1

I thought that the beacon sending is fast, not need wait so long time, ,Could you tell me if it has some better way to implement this feature.

2. The low power is 120uA when the nRF7002DK sleep. I thought that it should be lower power consumption. 

I test the current refer to the document "nRF7002_DK_User_Guide_v1.0.0.pdf". 

I get 3uA when the net shutdown refer to the sample "shutdown"(suspend the debug serial). 

Could you please tell if there have a register description document available for reference

Related