frdmrw612_wifi_cli wlan-set-antcfg command

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

frdmrw612_wifi_cli wlan-set-antcfg command

612 Views
JeffChang
Contributor III

 

Dear Sir,

Please check how to use "wlan-set-antcfg" command to change ant channel. thank you.

SDK version: 25.06.00

MCUXpresso IDE: v25.6

Sample project: frdmrw612_wifi_cli

 

log messages as below.

# wlan-get-antcfg

Mode of Tx/Rx path is : 1

Current antenna is Ant1

 

# wlan-set-antcfg 2

[wlcm] Error: Unable to set antenna

Antenna configuration failed

Usage:

wlan-set-antcfg <ant_mode> <evaluate_time> <evaluate_mode>

 

        <ant_mode>:

                   1   -- Tx/Rx antenna 1

                   2   -- Tx/Rx antenna 2

                   0xFFFF  -- Tx/Rx antenna diversity

        [evaluate_time]:

                   If ant mode = 0xFFFF, use this to configure

                   SAD evaluate time interval in milli seconds unit.

                   MAX evaluate time is 65535ms.

                   If not specified, default value is 6000 milli seconds.

        <evaluate_mode>:

                   0: Ant1 + Ant2

                   1: Ant2 + Ant3

                   2: Ant1 + Ant3

                   255: invalid evaluate mode

                   If not used, just keep this field empty.

Examples:

wlan-set-antcfg 1

wlan-set-antcfg 0xffff

wlan-set-antcfg 0xffff 5000

wlan-set-antcfg 0xffff 6000 0

Tags (1)
0 Kudos
Reply
2 Replies

585 Views
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hello,

 

Hope you are doing well. Let me check internally.

I will keep you posted.

 

Best Regards,

Ricardo

0 Kudos
Reply

505 Views
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hello @JeffChang ,

Based on the information you provided, I am waiting to internal confirmation.

As soon as I have something to share, I will let you know. 

Thank you for your patience!

 

Regards,

Ricardo

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2171916%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Efrdmrw612_wifi_cli%20wlan-set-antcfg%20command%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2171916%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CBR%20%2F%3E%3CP%3EDear%20Sir%2C%3C%2FP%3E%3CP%3EPlease%20check%20how%20to%20use%20%22wlan-set-antcfg%22%20command%20to%20change%20ant%20channel.%20thank%20you.%3C%2FP%3E%3CP%3ESDK%20version%3A%2025.06.00%3C%2FP%3E%3CP%3EMCUXpresso%20IDE%3A%20v25.6%3C%2FP%3E%3CP%3ESample%20project%3A%20frdmrw612_wifi_cli%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Elog%20messages%20as%20below.%3C%2FP%3E%3CP%3E%23%20wlan-get-antcfg%3C%2FP%3E%3CP%3EMode%20of%20Tx%2FRx%20path%20is%20%3A%201%3C%2FP%3E%3CP%3ECurrent%20antenna%20is%20Ant1%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%23%20wlan-set-antcfg%202%3C%2FP%3E%3CP%3E%5Bwlcm%5D%20Error%3A%20Unable%20to%20set%20antenna%3C%2FP%3E%3CP%3EAntenna%20configuration%20failed%3C%2FP%3E%3CP%3EUsage%3A%3C%2FP%3E%3CP%3Ewlan-set-antcfg%20%3CANT_MODE%3E%20%3CEVALUATE_TIME%3E%20%3CEVALUATE_MODE%3E%3C%2FEVALUATE_MODE%3E%3C%2FEVALUATE_TIME%3E%3C%2FANT_MODE%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CANT_MODE%3E%3A%3C%2FANT_MODE%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%201%26nbsp%3B%26nbsp%3B%20--%20Tx%2FRx%20antenna%201%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%202%26nbsp%3B%26nbsp%3B%20--%20Tx%2FRx%20antenna%202%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200xFFFF%26nbsp%3B%20--%20Tx%2FRx%20antenna%20diversity%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%5Bevaluate_time%5D%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20If%20ant%20mode%20%3D%200xFFFF%2C%20use%20this%20to%20configure%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20SAD%20evaluate%20time%20interval%20in%20milli%20seconds%20unit.%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20MAX%20evaluate%20time%20is%2065535ms.%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20If%20not%20specified%2C%20default%20value%20is%206000%20milli%20seconds.%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CEVALUATE_MODE%3E%3A%3C%2FEVALUATE_MODE%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%3A%20Ant1%20%2B%20Ant2%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%201%3A%20Ant2%20%2B%20Ant3%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%202%3A%20Ant1%20%2B%20Ant3%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20255%3A%20invalid%20evaluate%20mode%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20If%20not%20used%2C%20just%20keep%20this%20field%20empty.%3C%2FP%3E%3CP%3EExamples%3A%3C%2FP%3E%3CP%3Ewlan-set-antcfg%201%3C%2FP%3E%3CP%3Ewlan-set-antcfg%200xffff%3C%2FP%3E%3CP%3Ewlan-set-antcfg%200xffff%205000%3C%2FP%3E%3CP%3Ewlan-set-antcfg%200xffff%206000%200%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2176766%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20frdmrw612_wifi_cli%20wlan-set-antcfg%20command%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2176766%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F11468%22%20target%3D%22_blank%22%3E%40JeffChang%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EBased%20on%20the%20information%20you%20provided%2C%20I%20am%20waiting%20to%20internal%20confirmation.%3C%2FP%3E%0A%3CP%3EAs%20soon%20as%20I%20have%20something%20to%20share%2C%20I%20will%20let%20you%20know.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20your%20patience!%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3ERicardo%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2172915%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20frdmrw612_wifi_cli%20wlan-set-antcfg%20command%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2172915%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EHope%20you%20are%20doing%20well.%20Let%20me%20check%20internally.%3C%2FP%3E%0A%3CP%3EI%20will%20keep%20you%20posted.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20Regards%2C%3C%2FP%3E%0A%3CP%3ERicardo%3C%2FP%3E%3C%2FLINGO-BODY%3E