Forum >problems with WiFi Shield V3 RPSMA - WiFi shield not present
General

problems with WiFi Shield V3 RPSMA - WiFi shield not present

userHead mail_mee_info 2015-06-07 09:21:24 12296 Views15 Replies
i have problems with WiFi Shield V3 RPSMA (802.11b/g/n) configuration.
I'm using the official WiFi shield on top of Uno R3 and I'm trying the examples provided in the WiFi library, but unfortunately the serial says that the "WiFi shield not present"

Would anyone please tell me how to solve such a problem? and is there anything missing in the code that I should add?

Regards

Code: Select all
//============================================
#include <SPI.h>
#include <WiFi.h>

char ssid[] = "wifiname"; // your network SSID (name)
char pass[] = "wifipass"; // your network password
int keyIndex = 0; // your network key Index number
int status = WL_IDLE_STATUS; // the Wifi radio's status

void setup() {
//Initialize serial and wait for port to open:
Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for Leonardo only
}

// check for the presence of the shield:
if (WiFi.status() == WL_NO_SHIELD) {
Serial.println("WiFi shield not present");
// don't continue:
while (true);
}

// attempt to connect to Wifi network:
while ( status != WL_CONNECTED) {
Serial.print("Attempting to connect to WEP network, SSID: ");
Serial.println(ssid);
status = WiFi.begin(ssid, keyIndex, pass);

// wait 10 seconds for connection:
delay(10000);
}

// once you are connected :
Serial.print("You're connected to the network");
}

void loop() {
// check the network status connection once every 10 seconds:
delay(10000);
Serial.println(WiFi.status());
}
//============================================
2015-06-19 02:44:14 Hi,
so what you want to do is just like make a button on the webpage? and you could turn on or turn off via visit the webpage?
userHeadPic Grey.CC
2015-06-19 02:44:14 Hi,
so what you want to do is just like make a button on the webpage? and you could turn on or turn off via visit the webpage?
userHeadPic Grey.CC
2015-06-19 01:01:32
leff wrote:I played with it before just followed the wiki page, it's all working alright.

hai left...
are you sure???
followed this script???

Code: Select all
#define Sleep_RQ  11  //dormancy control input pin of the WIFI shield
#define Sleep_ON  12  //dormancy state output pin of the WIFI shield
#define LED       13  //test status indication

void setup()
{
  unsigned char temp;
  pinMode(Sleep_RQ,OUTPUT);
  digitalWrite(Sleep_RQ,HIGH); 
  pinMode(Sleep_ON,INPUT);
  pinMode(LED, OUTPUT); 
 
  Serial.begin(115200); 
  delay(100);
  Serial.println("Start!");
  for(unsigned char i = 0;i<10;i++)  //output the state of the shield lasts 20 seconds
  {
    temp = digitalRead(Sleep_ON);
    if(0 == temp)
        Serial.println("D12=0 Sleep");
        else
        Serial.println("D12=1 Active");
    delay(1000);
  }
  Serial.println("Sleep after five second!");
  digitalWrite(Sleep_RQ,LOW);  //set the shield to sleep mode
  delay(5000);
  digitalWrite(Sleep_RQ,HIGH); 
  delay(100);
  Serial.println("Sleep Now!");
  for(unsigned char i = 0;i<10;i++)
  {
    temp = digitalRead(Sleep_ON);
    if(0 == temp)
        Serial.println("D12=0 Sleep");
        else
        Serial.println("D12=1 Active");
    delay(1000);
  }   
  Serial.println("Weak up  Now!");
  digitalWrite(Sleep_RQ,LOW);  //set the shield to normal working state
  delay(2000);
  digitalWrite(Sleep_RQ,HIGH); 
  delay(100);
  for(unsigned char i = 0;i<10;i++)
  {
    temp = digitalRead(12);
    if(0 == temp)
        Serial.println("D12=0 Sleep");
        else
        Serial.println("D12=1 Active");
    delay(1000);
  }
  Serial.println("Test RX and TX!");
}

void loop()
{
   int val;
   
    val = Serial.read();  //Send data received by WIFI shield.Test the receive and dispatch situation.
    if(val!=-1){
    Serial.print(val);
    Serial.print('-');
    Serial.println(" DFRobot");
    digitalWrite(LED, HIGH);   
    delay(200);             
    digitalWrite(LED, LOW);   
    delay(200);             
    }
}


:mrgreen::mrgreen::mrgreen::mrgreen::mrgreen:

you aren't kidding realy??
if you want to turn on the led...just to turn on the led..., this script is to long... :mrgreen::mrgreen:
i ask you ... what are you following?? you just follow to turn on your light??? hahahahahahahahahahahaha LOL

i want to turn on the led over this wifi signal....how to communicate over the http protocol/? or how to communicate with at-command???? please give me a clue.....!!!!!
the wiki didn't give anyting....where's the dfrobot customer support????
userHeadPic mail_mee_info
2015-06-19 01:01:32
leff wrote:I played with it before just followed the wiki page, it's all working alright.

hai left...
are you sure???
followed this script???

Code: Select all
#define Sleep_RQ  11  //dormancy control input pin of the WIFI shield
#define Sleep_ON  12  //dormancy state output pin of the WIFI shield
#define LED       13  //test status indication

void setup()
{
  unsigned char temp;
  pinMode(Sleep_RQ,OUTPUT);
  digitalWrite(Sleep_RQ,HIGH); 
  pinMode(Sleep_ON,INPUT);
  pinMode(LED, OUTPUT); 
 
  Serial.begin(115200); 
  delay(100);
  Serial.println("Start!");
  for(unsigned char i = 0;i<10;i++)  //output the state of the shield lasts 20 seconds
  {
    temp = digitalRead(Sleep_ON);
    if(0 == temp)
        Serial.println("D12=0 Sleep");
        else
        Serial.println("D12=1 Active");
    delay(1000);
  }
  Serial.println("Sleep after five second!");
  digitalWrite(Sleep_RQ,LOW);  //set the shield to sleep mode
  delay(5000);
  digitalWrite(Sleep_RQ,HIGH); 
  delay(100);
  Serial.println("Sleep Now!");
  for(unsigned char i = 0;i<10;i++)
  {
    temp = digitalRead(Sleep_ON);
    if(0 == temp)
        Serial.println("D12=0 Sleep");
        else
        Serial.println("D12=1 Active");
    delay(1000);
  }   
  Serial.println("Weak up  Now!");
  digitalWrite(Sleep_RQ,LOW);  //set the shield to normal working state
  delay(2000);
  digitalWrite(Sleep_RQ,HIGH); 
  delay(100);
  for(unsigned char i = 0;i<10;i++)
  {
    temp = digitalRead(12);
    if(0 == temp)
        Serial.println("D12=0 Sleep");
        else
        Serial.println("D12=1 Active");
    delay(1000);
  }
  Serial.println("Test RX and TX!");
}

void loop()
{
   int val;
   
    val = Serial.read();  //Send data received by WIFI shield.Test the receive and dispatch situation.
    if(val!=-1){
    Serial.print(val);
    Serial.print('-');
    Serial.println(" DFRobot");
    digitalWrite(LED, HIGH);   
    delay(200);             
    digitalWrite(LED, LOW);   
    delay(200);             
    }
}


:mrgreen::mrgreen::mrgreen::mrgreen::mrgreen:

you aren't kidding realy??
if you want to turn on the led...just to turn on the led..., this script is to long... :mrgreen::mrgreen:
i ask you ... what are you following?? you just follow to turn on your light??? hahahahahahahahahahahaha LOL

i want to turn on the led over this wifi signal....how to communicate over the http protocol/? or how to communicate with at-command???? please give me a clue.....!!!!!
the wiki didn't give anyting....where's the dfrobot customer support????
userHeadPic mail_mee_info
2015-06-18 20:15:25 I played with it before just followed the wiki page, it's all working alright. userHeadPic Leff
2015-06-18 20:15:25 I played with it before just followed the wiki page, it's all working alright. userHeadPic Leff
2015-06-16 06:45:37 is there anyone can help me??? :cry::cry::cry::cry::cry::cry::cry: userHeadPic mail_mee_info
2015-06-16 06:45:37 is there anyone can help me??? :cry::cry::cry::cry::cry::cry::cry: userHeadPic mail_mee_info
2015-06-13 00:25:18 Aha, since you have finish the configuration, it should be easier than the sample code. For now, could you make a wireless communication with your PC? This is a serial port device. When you succeed in the connection. you could write a simple code to turn on and turn off the led.

The configuration is just make it connect to your router, then you could make a communicaiton. It can't control the GPIO.
SInce a serial device, the GPIO could be easy to controlled. Just like controlling from the USB port.
Code: Select all
int ledPin=13;   // LED pin: D13
int val;         
int count=0;
void setup()   
{
  pinMode(ledPin,OUTPUT);    //  pinMode defination: OUTPUT
  Serial.begin(115200);       //  baudrate defination: 115200
}
void loop()     
{
  val=Serial.read();    // Read the serial data
  if(-1!=val)           // "-1" means no data
  {

    if('p'==val){
      if(count==0)count=1;
      else if(count==1)count=0;
    }


    if(count==0){
      digitalWrite(ledPin,HIGH);  // Turn ON
      Serial.println("LED ON");
    }
    else if(count==1)
    {
      digitalWrite(ledPin,LOW);  // Turn OFF
      Serial.println("LED OFF");
    }
  }
}

userHeadPic Grey.CC
2015-06-13 00:25:18 Aha, since you have finish the configuration, it should be easier than the sample code. For now, could you make a wireless communication with your PC? This is a serial port device. When you succeed in the connection. you could write a simple code to turn on and turn off the led.

The configuration is just make it connect to your router, then you could make a communicaiton. It can't control the GPIO.
SInce a serial device, the GPIO could be easy to controlled. Just like controlling from the USB port.
Code: Select all
int ledPin=13;   // LED pin: D13
int val;         
int count=0;
void setup()   
{
  pinMode(ledPin,OUTPUT);    //  pinMode defination: OUTPUT
  Serial.begin(115200);       //  baudrate defination: 115200
}
void loop()     
{
  val=Serial.read();    // Read the serial data
  if(-1!=val)           // "-1" means no data
  {

    if('p'==val){
      if(count==0)count=1;
      else if(count==1)count=0;
    }


    if(count==0){
      digitalWrite(ledPin,HIGH);  // Turn ON
      Serial.println("LED ON");
    }
    else if(count==1)
    {
      digitalWrite(ledPin,LOW);  // Turn OFF
      Serial.println("LED OFF");
    }
  }
}

userHeadPic Grey.CC
2015-06-11 08:09:03
Grey wrote:Hi,

WIFI shield V3 is simple connected module, all the configuration could be finished on the webpage. Please check its product wiki:
https://www.dfrobot.com/wiki/index.php? ... KU:TEL0078
It contains the simple tutorial about how to use it with wifi shield. The official wifi shield is using code configuration method. they are not compatible.


hai Grey... thanks before for your reply...
1. i have configure the wifi shield on the webpage.
2.i have try the simple tutorial
Code: Select all
#define Sleep_RQ  11  //dormancy control input pin of the WIFI shield
#define Sleep_ON  12  //dormancy state output pin of the WIFI shield
#define LED       13  //test status indication

void setup()
{
  unsigned char temp;
  pinMode(Sleep_RQ,OUTPUT);
  digitalWrite(Sleep_RQ,HIGH); 
  pinMode(Sleep_ON,INPUT);
  pinMode(LED, OUTPUT); 
 
  Serial.begin(115200); 
  delay(100);
  Serial.println("Start!");
  for(unsigned char i = 0;i<10;i++)  //output the state of the shield lasts 20 seconds
  {
    temp = digitalRead(Sleep_ON);
    if(0 == temp)
        Serial.println("D12=0 Sleep");
        else
        Serial.println("D12=1 Active");
    delay(1000);
  }
  Serial.println("Sleep after five second!");
  digitalWrite(Sleep_RQ,LOW);  //set the shield to sleep mode
  delay(5000);
  digitalWrite(Sleep_RQ,HIGH); 
  delay(100);
  Serial.println("Sleep Now!");
  for(unsigned char i = 0;i<10;i++)
  {
    temp = digitalRead(Sleep_ON);
    if(0 == temp)
        Serial.println("D12=0 Sleep");
        else
        Serial.println("D12=1 Active");
    delay(1000);
  }   
  Serial.println("Weak up  Now!");
  digitalWrite(Sleep_RQ,LOW);  //set the shield to normal working state
  delay(2000);
  digitalWrite(Sleep_RQ,HIGH); 
  delay(100);
  for(unsigned char i = 0;i<10;i++)
  {
    temp = digitalRead(12);
    if(0 == temp)
        Serial.println("D12=0 Sleep");
        else
        Serial.println("D12=1 Active");
    delay(1000);
  }
  Serial.println("Test RX and TX!");
}

void loop()
{
   int val;
   
    val = Serial.read();  //Send data received by WIFI shield.Test the receive and dispatch situation.
    if(val!=-1){
    Serial.print(val);
    Serial.print('-');
    Serial.println(" DFRobot");
    digitalWrite(LED, HIGH);   
    delay(200);             
    digitalWrite(LED, LOW);   
    delay(200);             
    }
}


but it's not working well, if i change the code
Code: Select all
void loop() 
{
   int val;
   
    val = Serial.read();  //Send data received by WIFI shield.Test the receive and dispatch situation.
    Serial.print(val);
    Serial.print('-');
    Serial.println(" DFRobot");
    digitalWrite(LED, HIGH);   
    delay(200);             
    digitalWrite(LED, LOW);   
    delay(200);             
}


the led will turn on, and turn off...

3. i think that the configuration on web (http://10.10.100.254) and the sample tutorial can't control and manage the WiFi Shield.
how can i communicate with this think? i'm try to communicate with AT- Command but nothing happend with this WIFI
Code: Select all
#include <SoftwareSerial.h>
#define rxPin 0
#define txPin 1

// set up a new serial port
SoftwareSerial mySerial =  SoftwareSerial(rxPin, txPin);
char junk;
String inputString="";
int flag;

void setup()  {
  flag = 0;
  // define pin modes for tx, rx:
  pinMode(rxPin, INPUT);
  pinMode(txPin, OUTPUT);
 
  mySerial.begin(115200);
  mySerial.print("AT+NETP=TCP,CLIENT,8234,192.168.1.102\r\n");
}

void loop() {
int i = 0;
// mySerial.println(mySerial.available());
 
  char someChar2[128] = {0};
  while(mySerial.available()) {
    do{
      someChar2[i++] = mySerial.read();
      delay(3);                 
    }while (mySerial.available() > 0);
    if( strstr(someChar2, "OK"))
    {
      mySerial.print("OK\r\n");
      flag++;
    }
    else
      mySerial.print(someChar2);
  } 
}


how can i control and manage this WIFI Shield...?????
userHeadPic mail_mee_info
2015-06-11 08:09:03
Grey wrote:Hi,

WIFI shield V3 is simple connected module, all the configuration could be finished on the webpage. Please check its product wiki:
https://www.dfrobot.com/wiki/index.php? ... KU:TEL0078
It contains the simple tutorial about how to use it with wifi shield. The official wifi shield is using code configuration method. they are not compatible.


hai Grey... thanks before for your reply...
1. i have configure the wifi shield on the webpage.
2.i have try the simple tutorial
Code: Select all
#define Sleep_RQ  11  //dormancy control input pin of the WIFI shield
#define Sleep_ON  12  //dormancy state output pin of the WIFI shield
#define LED       13  //test status indication

void setup()
{
  unsigned char temp;
  pinMode(Sleep_RQ,OUTPUT);
  digitalWrite(Sleep_RQ,HIGH); 
  pinMode(Sleep_ON,INPUT);
  pinMode(LED, OUTPUT); 
 
  Serial.begin(115200); 
  delay(100);
  Serial.println("Start!");
  for(unsigned char i = 0;i<10;i++)  //output the state of the shield lasts 20 seconds
  {
    temp = digitalRead(Sleep_ON);
    if(0 == temp)
        Serial.println("D12=0 Sleep");
        else
        Serial.println("D12=1 Active");
    delay(1000);
  }
  Serial.println("Sleep after five second!");
  digitalWrite(Sleep_RQ,LOW);  //set the shield to sleep mode
  delay(5000);
  digitalWrite(Sleep_RQ,HIGH); 
  delay(100);
  Serial.println("Sleep Now!");
  for(unsigned char i = 0;i<10;i++)
  {
    temp = digitalRead(Sleep_ON);
    if(0 == temp)
        Serial.println("D12=0 Sleep");
        else
        Serial.println("D12=1 Active");
    delay(1000);
  }   
  Serial.println("Weak up  Now!");
  digitalWrite(Sleep_RQ,LOW);  //set the shield to normal working state
  delay(2000);
  digitalWrite(Sleep_RQ,HIGH); 
  delay(100);
  for(unsigned char i = 0;i<10;i++)
  {
    temp = digitalRead(12);
    if(0 == temp)
        Serial.println("D12=0 Sleep");
        else
        Serial.println("D12=1 Active");
    delay(1000);
  }
  Serial.println("Test RX and TX!");
}

void loop()
{
   int val;
   
    val = Serial.read();  //Send data received by WIFI shield.Test the receive and dispatch situation.
    if(val!=-1){
    Serial.print(val);
    Serial.print('-');
    Serial.println(" DFRobot");
    digitalWrite(LED, HIGH);   
    delay(200);             
    digitalWrite(LED, LOW);   
    delay(200);             
    }
}


but it's not working well, if i change the code
Code: Select all
void loop() 
{
   int val;
   
    val = Serial.read();  //Send data received by WIFI shield.Test the receive and dispatch situation.
    Serial.print(val);
    Serial.print('-');
    Serial.println(" DFRobot");
    digitalWrite(LED, HIGH);   
    delay(200);             
    digitalWrite(LED, LOW);   
    delay(200);             
}


the led will turn on, and turn off...

3. i think that the configuration on web (http://10.10.100.254) and the sample tutorial can't control and manage the WiFi Shield.
how can i communicate with this think? i'm try to communicate with AT- Command but nothing happend with this WIFI
Code: Select all
#include <SoftwareSerial.h>
#define rxPin 0
#define txPin 1

// set up a new serial port
SoftwareSerial mySerial =  SoftwareSerial(rxPin, txPin);
char junk;
String inputString="";
int flag;

void setup()  {
  flag = 0;
  // define pin modes for tx, rx:
  pinMode(rxPin, INPUT);
  pinMode(txPin, OUTPUT);
 
  mySerial.begin(115200);
  mySerial.print("AT+NETP=TCP,CLIENT,8234,192.168.1.102\r\n");
}

void loop() {
int i = 0;
// mySerial.println(mySerial.available());
 
  char someChar2[128] = {0};
  while(mySerial.available()) {
    do{
      someChar2[i++] = mySerial.read();
      delay(3);                 
    }while (mySerial.available() > 0);
    if( strstr(someChar2, "OK"))
    {
      mySerial.print("OK\r\n");
      flag++;
    }
    else
      mySerial.print(someChar2);
  } 
}


how can i control and manage this WIFI Shield...?????
userHeadPic mail_mee_info
2015-06-09 01:07:02 Hi,

WIFI shield V3 is simple connected module, all the configuration could be finished on the webpage. Please check its product wiki:
https://www.dfrobot.com/wiki/index.php? ... KU:TEL0078
It contains the simple tutorial about how to use it with wifi shield. The official wifi shield is using code configuration method. they are not compatible.
userHeadPic Grey.CC
2015-06-09 01:07:02 Hi,

WIFI shield V3 is simple connected module, all the configuration could be finished on the webpage. Please check its product wiki:
https://www.dfrobot.com/wiki/index.php? ... KU:TEL0078
It contains the simple tutorial about how to use it with wifi shield. The official wifi shield is using code configuration method. they are not compatible.
userHeadPic Grey.CC
2015-06-07 09:21:24 i have problems with WiFi Shield V3 RPSMA (802.11b/g/n) configuration.
I'm using the official WiFi shield on top of Uno R3 and I'm trying the examples provided in the WiFi library, but unfortunately the serial says that the "WiFi shield not present"

Would anyone please tell me how to solve such a problem? and is there anything missing in the code that I should add?

Regards

Code: Select all
//============================================
#include <SPI.h>
#include <WiFi.h>

char ssid[] = "wifiname";     //  your network SSID (name)
char pass[] = "wifipass";  // your network password
int keyIndex = 0;                                // your network key Index number
int status = WL_IDLE_STATUS;                     // the Wifi radio's status

void setup() {
  //Initialize serial and wait for port to open:
  Serial.begin(9600);
  while (!Serial) {
    ; // wait for serial port to connect. Needed for Leonardo only
  }

  // check for the presence of the shield:
  if (WiFi.status() == WL_NO_SHIELD) {
    Serial.println("WiFi shield not present");
    // don't continue:
    while (true);
  }

  // attempt to connect to Wifi network:
  while ( status != WL_CONNECTED) {
    Serial.print("Attempting to connect to WEP network, SSID: ");
    Serial.println(ssid);
    status = WiFi.begin(ssid, keyIndex, pass);

    // wait 10 seconds for connection:
    delay(10000);
  }

  // once you are connected :
  Serial.print("You're connected to the network");
}

void loop() {
  // check the network status connection once every 10 seconds:
  delay(10000);
 Serial.println(WiFi.status());
}
//============================================
userHeadPic mail_mee_info