how to set MCS in iperf example

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

cross mob
kach_1524451
Level 3
Level 3
25 replies posted 10 replies posted 5 replies posted

Hi,

I am using iperf example with CYW954907AEVAL1F, which comes along with WICED. I want to set modulation bit rate and also want to know what is modulation bit rate is in use. Can you guide me for the same. I was trying to use wwd_wifi_set_mcs_rate() but it does not help.

I am using as soft AP. i can able to set channels belong to 20 MHz, but not manage to set 40, 80, 160 MHz. Please help me in this too. I am using WICED_802_11_BAND_5GHZ, with

#define WICED_COUNTRY_CODE    WICED_COUNTRY_UNITED_STATES

#define WICED_COUNTRY_AGGREGATE_CODE    WICED_COUNTRY_AGGREGATE_XV_0

Thank you.

With Regards.

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

Hi :

please use this patch for a try as below steps:

1.  add:

  1. WWD.mk (wiced\wwd)

$(NAME)_COMPONENTS += utilities/TLV

$(NAME)_COMPONENTS += utilities/wifi

2.  please modify this line manually.

wwd\internal\chips\4390x\

.....

    bandwidth = wifi_utils_get_bandwidth();

    WPRINT_APP_INFO (( " Bandwidth : %d\n", bandwidth ));

     bandwidth=80;

........

3.  start iperf application normally

4.  if you set band width to 40 , use below command

   start_ap ht40test wpa2 abcd1234 159

   if you set band width to 80 use below command

  start_ap ht80test wpa2 abcd1234 155

Ht40 and ht80 have different channel spec.

I can bring up AP successfully , and can be connected normally , please have a try .

By the way what I am testing is in 6.0 version.

View solution in original post

22 Replies
Zhengbao_Zhang
Moderator
Moderator
Moderator
250 sign-ins First comment on KBA 10 questions asked

Hi:

     Which SDK version are you using now ?  It is better you can use the newest to have a test.   we will confirm if  HT40 was enabled also.

0 Likes

Hi Zhez,

I am using WICED-SDK Version: Wiced_006.002.001.0002

Thank you.

with regards

0 Likes

Hi zhez

Any update on this?

Thank you.

With Regads

0 Likes

Hi :

   sorry for the late, I need to check if we enable HT40 firstly in the release.

0 Likes

Check if the patch in below link helps:

Re: How to set CYW43907 to HT40?

0 Likes

Hi Axel,

I already checked this link before. i also tried to patch WICED. I saw some notification as per the image attached (file does not exits). Please refer to the attached image.

After i did the above process, I tried the same method explained in the link you provided. But i still not manage to switch the band.

Thank you.

With Regardspatch.JPG

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

Hi :

please use this patch for a try as below steps:

1.  add:

  1. WWD.mk (wiced\wwd)

$(NAME)_COMPONENTS += utilities/TLV

$(NAME)_COMPONENTS += utilities/wifi

2.  please modify this line manually.

wwd\internal\chips\4390x\

.....

    bandwidth = wifi_utils_get_bandwidth();

    WPRINT_APP_INFO (( " Bandwidth : %d\n", bandwidth ));

     bandwidth=80;

........

3.  start iperf application normally

4.  if you set band width to 40 , use below command

   start_ap ht40test wpa2 abcd1234 159

   if you set band width to 80 use below command

  start_ap ht80test wpa2 abcd1234 155

Ht40 and ht80 have different channel spec.

I can bring up AP successfully , and can be connected normally , please have a try .

By the way what I am testing is in 6.0 version.

Hi Zhez,

I am getting the following error

patch_Error.JPG

0 Likes

Hi Zhez,

May i know what is the value of BACKPLANE_WINDOW_SIZE ?

I simply set it as WWD_BUS_MAX_BACKPLANE_TRANSFER_SIZE. but need to know what the actual value.

After i set as per above, i manage to run AP with out any issue for 40 and 80 Mhz, Thanks a lots for your support.

Now, can you also let me know how i can change Modulation bit rate when AP is running?

Thank you.

With Regards

0 Likes

Hi zhez,

can you also let me know how i can change Modulation bit rate when AP is running?

Thank you.

With Regards

0 Likes

Hello:

   Do you mean you want to fix the rate in AP mode like fixing to 11g 54M highest rate or other ?

0 Likes

Hi Zhez,

I want to set AP in a fixed mode  like (choose 802.11b, 802.11g, 802.11a  at a time only one mode) and also choose the bit rate (like fixed to 1, 2, 5.5, 6, 9, 11, 12, 18, 24, 36, 48, 54, which is applicable to the mode and only one bit rate)

Thank you.

with Regards

0 Likes

Are you using fixed rate to do tests ?  we are not suggesting to a fixed rate in normal running mode.

0 Likes

Hi Zhez,

i understand. But in my test i want to use fixed rate for some evaluation. That's why i can't use test mode. I need to use AP (signaling mode) with fixed rate to verify.

Thank you.

with Regards

0 Likes

Hi zhez,

any update on this?

thank you.

With Regards

0 Likes

seems 11b/11g rate is ok.

> set_data_rate 12

> start_ap test1231 wpa2 12345678 1

IPv4 network ready IP: 192.168.0.1

Setting IPv6 link-local address

IPv6 network ready IP: FE80:0000:0000:0000:BAD7:AFFF:FE4D:1DD6

> get_rate

12 Mbps

> get_rate

12 Mbps

> set_data_rate 5.5

> start_ap test1231 wpa2 12345678 1

IPv4 network ready IP: 192.168.0.1

Setting IPv6 link-local address

IPv6 network ready IP: FE80:0000:0000:0000:BAD7:AFFF:FE4D:1DD6

> get_rate

5.5 Mbps

> get_rate

5.5 Mbps

will look further for the MCS rate set, Can you have a try if above setting can meet your requests ?

0 Likes

Hi zhez,

Thank you. i manage to use this to set for 802.11b/g.

As i request you earlier i also need to set fixed MCS. can you please help me for that?

Thank you.

with Regards

0 Likes

Hi zhez,

Any update on MCS?

Thank you.

With Regards

0 Likes

Hi zhez

Any update on MCS setting?

Thank you.

With Regards

0 Likes

Hi :

please try below modifications:

1.

int set_mcs_rate (int argc, char* argv[])

{

......

    if (argc == 3)

mcsonly = (wiced_bool_t)(atoi( argv[2]));

result = wwd_wifi_set_mcs_rate(WWD_AP_INTERFACE, mcs, mcsonly);

2.

wwd_result_t wwd_wifi_set_mcs_rate( wwd_interface_t interface, int32_t mcs, wiced_bool_t mcsonly )

{

    uint32_t nrate = 0;

    UNUSED_PARAMETER(mcsonly);

    if ( mcs != -1 )

    {

//        nrate |= mcs & NRATE_RATE_MASK;

//        nrate |= NRATE_MCS_INUSE;

//        if ( WICED_TRUE == mcsonly )

//        {

// nrate |= NRATE_OVERRIDE_MCS_ONLY;

// }

                             nrate |= mcs & NRATE_RATE_MASK;

                            nrate |=0x01000000;

3.

you need to start AP firstly , then call the mcs_rate set.

> start_ap test123 wpa2 12345678 11

> set_mcs_rate 5 0

> get_rate

52 Mbps

> set_mcs_rate 0 0

> get_rate

6.5 Mbps

> set_mcs_rate 7 0

> get_rate

65 Mbps

Hi zhez,

Thank you. it's working perfectly for MCS 0 to MCS7. But, MCS 8 & 9 does not working.

Thank you.

With Regards

0 Likes

Hi :

   For MCS8, MCS9 , it should have a  "5g_rate" command for the interface,  but currently didn't add it in the release.