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

AIROC™ Wi-Fi MCUs Forum Discussions

ecbg
Level 2
5 replies posted 5 sign-ins First solution authored
Level 2

Hello, 

I try to understand the different command below and the mcs_data_rate_lookup_table.

The iperf example is used to validate the modifications of the parameters in measuring the datarate.

The goal is to understanding how to select the type of modulation (BPSK, 64 QAM, 128QAM) the number of wifi channel  (20MHz, 40MHz, 80MHz).

The iperf program has been modified as below:

/* Bring up the network on the STA interface */
wwd_wifi_set_tx_power( 0 );
wwd_wifi_set_mcs_rate( WICED_STA_INTERFACE, 0, 0 );
wwd_wifi_set_bandwidth(80);
wiced_network_up( WICED_STA_INTERFACE, WICED_USE_EXTERNAL_DHCP_SERVER, NULL );
//wwd_wifi_set_preferred_association_band( WLC_BAND_2G );
bandwidth = wwd_wifi_get_bandwidth() ;
printf("Bandwidth: %lu \n", bandwidth);

result = wwd_wifi_get_ht_mode ( WICED_STA_INTERFACE, &test);
printf("htmode: %d \n", result);
printf( "iPerf app\n" );

/* Add iperf command to console */
command_console_init( STDIO_UART, MAX_LINE_LENGTH, line_buffer, MAX_HISTORY_LENGTH, history_buffer_storage, " " );
console_add_cmd_table( iperf_commands );

 

Two board are used one in AP, the other in STA. A loink is created between the two board in order to test the datarate.

No modification brings a change on the datarate value.

Does anyone have an operating example?

Thank's

0 Likes
5 Replies
GauravS_31
Moderator
Moderator 250 solutions authored 250 sign-ins First comment on KBA
Moderator

To actually set the bandwidth in the Wi-Fi chip, you can call wwd_wifi_set_bandwidth(BANDWIDTH_80MHZ) for 80MHz bandwidth. This will set the global variable bandwidth=BANDWIDTH_80MHZ. This should be followed by calling wwd_wifi_set_chanspec(). You can see an implementation of this function in internal_ap_init() in WICED/WWD/internal/chips/4390x/wwd_ap.c. Regarding modulation setting, we will check and get back to you.

0 Likes
ecbg
Level 2
5 replies posted 5 sign-ins First solution authored
Level 2

Hello I tried the above function.

For success compilation, I put the function wwd_wifi_set_bandwidth and  wwd_wifi_set_chanspec after the function wiced_network_up. Is it ok?

But no change about the datarate with iperf.

You can show below my code, is it correct?

wiced_network_up( WICED_STA_INTERFACE, WICED_USE_EXTERNAL_DHCP_SERVER, NULL );
wwd_wifi_set_bandwidth(BANDWIDTH_80MHZ);
wwd_wifi_set_chanspec(WICED_STA_INTERFACE,32,sem_change_spec);

Best regards

0 Likes
ecbg
Level 2
5 replies posted 5 sign-ins First solution authored
Level 2

static host_semaphore_type_t* sem_change_spec;

0 Likes
Rakesh_BG
Moderator
Moderator 100 replies posted 100 sign-ins 10 likes received
Moderator

Hi @ecbg ,

The steps what you followed is correct but you have to choose the valid channel and bandwidth combination(may be 40/80 in your case). The list of valid channel-bandwidth which CYW954907AEVAL1F supports is given below.

chanspecs
1 (0x1001)
2 (0x1002)
3 (0x1003)
4 (0x1004)
5 (0x1005)
6 (0x1006)
7 (0x1007)
8 (0x1008)
9 (0x1009)
10 (0x100a)
11 (0x100b)
5u (0x1903)
6u (0x1904)
7u (0x1905)
8u (0x1906)
9u (0x1907)
10u (0x1908)
11u (0x1909)
1l (0x1803)
2l (0x1804)
3l (0x1805)
4l (0x1806)
5l (0x1807)
6l (0x1808)
7l (0x1809)
36 (0xd024)
40 (0xd028)
44 (0xd02c)
48 (0xd030)
52 (0xd034)
56 (0xd038)
60 (0xd03c)
64 (0xd040)
100 (0xd064)
104 (0xd068)
108 (0xd06c)
112 (0xd070)
116 (0xd074)
120 (0xd078)
124 (0xd07c)
128 (0xd080)
132 (0xd084)
136 (0xd088)
140 (0xd08c)
144 (0xd090)
149 (0xd095)
153 (0xd099)
157 (0xd09d)
161 (0xd0a1)
165 (0xd0a5)
40u (0xd926)
48u (0xd92e)
56u (0xd936)
64u (0xd93e)
104u (0xd966)
112u (0xd96e)
120u (0xd976)
128u (0xd97e)
136u (0xd986)
144u (0xd98e)
153u (0xd997)
161u (0xd99f)
36l (0xd826)
44l (0xd82e)
52l (0xd836)
60l (0xd83e)
100l (0xd866)
108l (0xd86e)
116l (0xd876)
124l (0xd87e)
132l (0xd886)
140l (0xd88e)
149l (0xd897)
157l (0xd89f)
36/80 (0xe02a)
52/80 (0xe03a)
100/80 (0xe06a)
116/80 (0xe07a)
132/80 (0xe08a)
149/80 (0xe09b)
40/80 (0xe12a)
56/80 (0xe13a)
104/80 (0xe16a)
120/80 (0xe17a)
136/80 (0xe18a)
153/80 (0xe19b)
44/80 (0xe22a)
60/80 (0xe23a)
108/80 (0xe26a)
124/80 (0xe27a)
140/80 (0xe28a)
157/80 (0xe29b)
48/80 (0xe32a)
64/80 (0xe33a)
112/80 (0xe36a)
128/80 (0xe37a)
144/80 (0xe38a)
161/80 (0xe39b)

For selecting different modulation techniques available . The list of mcs rate value given below

2g rate - a simple CCK/DSSS/OFDM rate value {1 2 5.5 11 6 9 12 18 24 36 48 54}

5g rate - a simple OFDM rate value {6 9 12 18 24 36 48 54} 

 

Thanks,

Rakesh B G

0 Likes
ecbg
Level 2
5 replies posted 5 sign-ins First solution authored
Level 2

Hello Rakesh,

I tried your table.Trying some channels:

With a spectrum analyser, the used channel is verify during the iperf test.  The two following function do not change the channel.
wwd_wifi_set_bandwidth(BANDWIDTH_80MHZ);
wwd_wifi_set_chanspec(WICED_STA_INTERFACE,32,sem_change_spec);


An other  function  result_set_channel = wwd_wifi_set_channel(WWD_AP_INTERFACE,9)  give positive results, It has been verified with a spectrum analyzer for channel 1 to 10 and it is correlated with the regulation (see below).

Channel F0 (MHz) Frequency
range
(MHz)
North
America
[3]

Japan
[3]

India
[4]
Most of
world
[3][5][6][7]
[8][9][10][11]
1 2412 2401–2423 Yes Yes Yes Yes
2 2417 2406–2428 Yes Yes Yes Yes
3 2422 2411–2433 Yes Yes Yes Yes
4 2427 2416–2438 Yes Yes Yes Yes
5 2432 2421–2443 Yes Yes Yes Yes
6 2437 2426–2448 Yes Yes Yes Yes
7 2442 2431–2453 Yes Yes Yes Yes
8 2447 2436–2458 Yes Yes Yes Yes
9 2452 2441–2463 Yes Yes Yes Yes
10 2457 2446–2468 Yes Yes Yes Yes
11 2462 2451–2473 Yes Yes Yes Yes
12 2467 2456–2478 NoB Yes Yes Yes
13 2472 2461–2483 NoB Yes Yes Yes
14 2484 2473–2495 No 11b onlyC No No

 

But For channel in 5GHz band, it is not possible to have a  "joined wifi access" with success.
So The following test bench has been set:
One board is program with the snip scan example, the second board is program with our iperf program in mode AP.
For channel 1 to 10, scan program detect The AP board in the right channel (channelm in the 2.4GHz band).
For channel 36, 40, 44, and 48 (5GHz band), scan program  detect  the AP board with the right channel but no way to have a "joined wifi access" with success.
Channel 52 and 32 give error.

So do you have an idea of what it can missing between the 2.4GHz mode and the 5GHz mode? Same program is used, only wwd_wifi_set_channel(WWD_AP_INTERFACE,9)  is modify. 
wwd_wifi_set_preferred_association_band( WLC_BAND_5G ); has been tested without success.

Do you have an example of operating iperf (AP+STA) in the 5GHz band? Or any success connection in the 5GHz band with a baord programed in AP mode and the other in STA mode?

Thank's for your help.

Best regards

 

 

 

 

 

 

 

 

0 Likes