none
Set Channel 14 in SORA

    Question

  • Hi there,

           When I try to take a test, I find the channel 14 set by SORA is not matched with standard. This will give a value of 2477MHz, not 2484MHz as standard.

           Therefore, I modified the 'ioctrl.c' from 'line 162'.

    case IOCTL_SET_CHANNEL:
                //SoraHwSetCentralFreq(pRadio, uInputValue * 1000, 0);
                //channel 1: 2412MHz, 2: 2417Mhz, ..., 14: 2484
                if (uInputValue >= 36 && uInputValue <= 161)
                {
                    SoraHwSetCentralFreq(pRadio, (5180 + (uInputValue - 36) * 5) * 1000, 0);
                }
                else if (uInputValue >= 162)
                {
                    SoraHwSetCentralFreq(pRadio, (5000 + (uInputValue - 162) * 350) * 1000, 0);
                }
                else if (uInputValue >= 0 && uInputValue <= 14 )
                {
                    SoraHwSetCentralFreq(pRadio, (2407 + uInputValue * 5) * 1000, 0);
                }
                else 
                {
                    SoraHwSetCentralFreq(pRadio, (2479 + (uInputValue - 13) * 5) * 1000, 0);
                }

                I think this will improve the codes.

                Thanks,

                Wenhan

    Thursday, May 19, 2011 2:27 PM

All replies

  • It should be "else if (uInputValue >= 0 && uInputValue <= 13 )" instead of "else if (uInputValue >= 0 && uInputValue <= 14 )"

    Wenhan

    Thursday, May 19, 2011 2:29 PM
  • Thanks, Wenhan!

    This could be a bug in driver code, but the channel 14 should still be correctly set. This is because in the FPGA code running on USRP adapter, only 14 center frequencies values are valid, which map to 14 channels of 802.11b/g. There's a mapping table, and the value set in SoraHwSetCentralFreq will be converted to one of the 14 valid values according to the table. The value of channel 14 in this table is 2484, therefore channel 14 is still correctly set. You can check the FPGA code if you are interested.

    -Jiansong

    Monday, May 23, 2011 1:06 PM
    Moderator