nRF24L01 channel scanner output guidance

Hello guys,

I was trying the channel scanner described in the link below.

http://forum.arduino.cc/index.php/topic,54795.msg441969.html#msg441969

I want to understand what does its out means. What the numbers (1 to 14) represent. Also what the number at the end of each line shows. And how this grey scale mapping works?

Can someone explain this?

Thank you

I need some explanation with the code.

it urgent..

Thank you

Have you been able to move any feather up on this?

Did you have a go at looking into the sketch?

From the image provided by cpixip in his comment when posting his code:

What the numbers (1 to 14) represent?

They represent channels commonly used for wifi.
defined in:

// give a visual reference between WLAN-channels and displayed data
void printChannels(void)
{
  // output approximate positions of WLAN-channels
  Serial.println(">      1 2  3 4  5  6 7 8  9 10 11 12 13  14                     <");
}

what the number at the end of each line shows

Power on the strongest channel for a given round of the scan

// outputs channel data as a simple grey map
void outputChannels(void){
...
  // indicate overall power
  Serial.print("| ");
  Serial.println(norm);
...
}

how this grey scale mapping works?

Simplifying it; a signal power on a given channel can take only one of the ‘value’ from " .:-=+*aRW". Where the weakest signal is represented by ‘space’ and the strongest signal is represented by ‘W’. Kind of out of 0 to 10…

// outputs channel data as a simple grey map
void outputChannels(void)
{
...
    // calculate grey value position
    if( norm!=0 ) pos = (channel[i]*10)/norm;
    else          pos = 0;
    
    // boost low values
    if( pos==0 && channel[i]>0 ) pos++;
    
    // clamp large values
    if( pos>9 ) pos = 9;
   
    // print it out
    Serial.print(grey[pos]);
...
}