This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

WiFi Command line interface with Froyo 2.2

Other Parts Discussed in Thread: WL1271, AM3703

Hello,

can I execute the wl1271 command line interface from the console?
I found it in /system/bin, but I get a "cannot open socket" error when trying to start it.

My goal is to control some of the radio parameters, like in example the TX power.
I'm on Am3703.

Thanks, Best regards

Massimo

  • Hi,

    Do you mean the wlan_cu application?

    It works with AM37x evm. socket error is shown but, you should still be able to interact with the wifi module.

    Here's what I get on AM37x evm

    # wlan_cu
    ERROR - IpcWpa_Sockets_Open - can't connect the socket
    ******************************************************
    Connection to supplicant failed
    ******************************************************
    user_main, start
    \> Driver/, Connection/, Management/, Show/, Privacy/, scAn/, roaminG/, qOs/, poWer/, eVents/, Bt coexsistance/, Report/, dEbug/, biT/, aboUt, Quit
    u
    Driver version: WiLink_Driver_6.1.0.0.131_NOCCX
    Firmware version: Rev 6.1.0.0.335
    a
    .../scAn> Start, sTop, Wextstart, configApp/, configpEriodic/, configPolicy/
    s
    Application scan started
    /
    \> Driver/, Connection/, Management/, Show/, Privacy/, scAn/, roaminG/, qOs/, poWer/, eVents/, Bt coexsistance/, Report/, dEbug/, biT/, aboUt, Quit
    s
    .../Show> Statistics, Txstatistics, Advanced, Power consumption
    p

    Power Consumption Statistics:
    -----------------------------
    activeTimeCnt:0x013fbb
    elpTimeCnt: 0x01269ceb4
    powerDownTimeCnt: 0x04b0e3a9
    ListenMode11BTimeCnt: 0x00
    ListenModeOFDMTimeCnt: 0x00
    s
    ******************
    Driver Statistics:
    ******************
        dot11CurrentTxRate : Auto (0)
             CurrentRxRate : Auto (0)
       dot11DesiredChannel : 11
         currentMACAddress : 08.00.28.12.34.56
          dot11DesiredSSID :
              dot11BSSType : 1
        AuthenticationMode : 0

    ... etc

    The socket error is possibly due to android permissions, but we have not debugged this.

  • Using Super User login then it works fine for me:

     

    1) type 'su' and press enter

    2) type 'wlan_cu' and press enter

     

    Marco