WIZnet Developer Forum

Error : Timeout or Not Found Success String

I’m trying to use the module and can’t get it to work at all.
I imported the libraries and made the following arduino sketch based off of the samples that should just connect to my laptop and tcp a simple message (I’ve tried to do this with another computer and my laptop side is fine).

[code]
#include <SPI.h>
#include “WizFi250_tcp_client.h”

IPAddress servAddr(192, 168, 0, 192);
WizFi250_TCP_Client * cli;
WizFi250 wizfi250;

void setup()
{
Serial.begin(9600);

wizfi250.begin();
wizfi250.setDebugPrint(4);
Serial.println(“wifi began”);
wizfi250.hw_reset();
Serial.println(“wifi reset”);
wizfi250.sync();
Serial.println(“Synced”);
wizfi250.setDhcp();
Serial.println(“dhcp set”);
//wizfi250.sendATCommand(“AT=WLEAVE\t”, 1, 1);
Serial.println(“Trying to join”);
for(int i=0; i<10; i++)
{
if( wizfi250.join(“MIAN-WIFI”, “super secret”, “WPA2”) == RET_OK )
{
break;
}
}
Serial.println(“Wifi joined”);
cli = new WizFi250_TCP_Client(servAddr, 1122);
Serial.println(“connecting…”);
cli->connect();
while (!cli->getIsConnected())
delay(10);
Serial.println(“seding…”);
cli->send(“Hello world!”);
Serial.println(“sent…”);
}

void loop()
{

}[/code]

When I launch it and look at the serial, I get the following output:

wifi began
wifi reset

===== SPI Send =====
AT

==================

DBG>>>>Error : Timeout or Not Found Success String
Synced

<Send AT Command>
AT+WNET=1

No connection happens and no message is transmitted.

Hi

I think this problem occur because WizFi250 is not SPI mode.
Please refer to this document.

http://kaizen8501.blogspot.kr/2014/08/tutorial-for-using-wizfi250-evb-with.html

Thanks

Hi,

From what I’ve understood from the tutorial, I need to reset the board (by pressing the function button three times) and then connect it to the arduino and the board will switch into SPI mode. Is that correct? I’ve tried doing that and got the same result.
Also I’m using the WizFI250 shield (not the WizFI250-EVB) so I don’t have the exactly same button layout as in the tutorial, and I can’t connect the board directly to my computer and read what it’s saying.

Hi

Did you use it?


If yes? This is not product of WIZnet. It is made by SeeedStudio. So If you want to use it, you must use library of seeedstudio.
please refer to this url.
http://www.seeedstudio.com/wiki/File:Wizfi250.zip

That indeed explains a lot. Thanks!

Could you help me with the following problem:
When I used the library and client sample provided here:
seeedstudio.com/wiki/File:Wizfi250.zip
I got the shield to connect to my wifi (I saw it from another device when I did a network scan). However, my computer did not get a tcp connection from the board. Here is what the serial monitor showed(followed by a bunch more of [ERROR: INVALID INPUT}):

Join MIAN-WIFI
CMD: AT+MRESET

AT+MRESET
CMD: AT+WLEAVE

AT+WLEAVE
CMD: AT

AT
CMD: AT+WSET=0,MIAN-WIFI

AT+WSET=0,MIAN-WIFI
CMD: AT+WSEC=0,WPA2,password

AT+WSEC=0,WPA2,password
CMD: AT+WNET=1

AT+WNET=1
CMD: AT+WJOIN

AT+WJOIN
Successfully join MIAN-WIFI
CMD: AT+WSTAT

AT+WSTAT
AT+WSTAT
IF/SSID/IP-Addr/Gateway/MAC/TxPower(dBm)/RSSI(-dBm)
STA/MIAN-WIFI/192.168.0.184/192.168.0.1/00:08:DC:1C:D5:73/31/55
[OK]
AT+WSTAT
IF/SSID/IP-Addr/Gateway/MAC/TxPower(dBm)/RSSI(-dBm)
STA/MIAN-WIFI/192.168.0.184/192.168.0.1/00:08:DC:1C:D5:73/31/55
[OK]
IF/SSID/IP-Addr/Gateway/MAC/TxPower(dBm)/RSSI(-dBm)
[ERROR: INVALID INPUT]
STA/MIAN-WIFI/192.168.0.184/192.168.0.1/00:08:DC:1C:D5:73/31/55
[ERROR: INVALID INPUT]
[OK]
[ERROR: INVALID INPUT]
AT+WSTAT
IF/SSID/IP-Addr/Gateway/MAC/TxPower(dBm)/RSSI(-dBm)
STA/MIAN-WIFI/192.168.0.184/192.168.0.1/00:08:DC:1C:D5:73/31/55
[OK]
IF/SSID/IP-Addr/Gateway/MAC/TxPower(dBm)/RSSI(-dBm)
[ERROR: INVALID INPUT]
STA/MIAN-WIFI/192.168.0.184/192.168.0.1/00:08:DC:1C:D5:73/31/55
[ERROR: INVALID INPUT]
[OK]
[ERROR: INVALID INPUT]
IF/SSID/IP-Addr/Gateway/MAC/TxPower(dBm)/RSSI(-dBm)
[ERROR: INVALID INPUT]
[ERROR: INVALID INPUT]
[ERROR: INVALID INPUT]
STA/MIAN-WIFI/192.168.0.184/192.168.0.1/00:08:DC:1C:D5:73/31/55
[ERROR: INVALID INPUT]
[ERROR: INVALID INPUT]
[ERROR: INVALID INPUT]
[OK]
[ERROR: INVALID INPUT]
[ERROR: INVALID INPUT]
[ERROR: INVALID INPUT]
AT+WSTAT
IF/SSID/IP-Addr/Gateway/MAC/TxPower(dBm)/RSSI(-dBm)
STA/MIAN-WIFI/192.168.0.184/192.168.0.1/00:08:DC:1C:D5:73/31/55
[OK]
IF/SSID/IP-Addr/Gateway/MAC/TxPower(dBm)/RSSI(-dBm)
[ERROR: INVALID INPUT]
STA/MIAN-WIFI/192.168.0.184/192.168.0.1/00:08:DC:1C:D5:73/31/55
[ERROR: INVALID INPUT]
[OK]
[ERROR: INVALID INPUT]
IF/SSID/IP-Addr/Gateway/MAC/TxPower(dBm)/RSSI(-dBm)
[ERROR: INVALID INPUT]
[ERROR: INVALID INPUT]
[ERROR: INVALID INPUT]
STA/MIAN-WIFI/192.168.0.184/192.168.0.1/00:08:DC:1C:D5:73/31/55
[ERROR: INVALID INPUT]
[ERROR: INVALID INPUT]
[ERROR: INVALID INPUT]
[OK]
[ERROR: INVALID INPUT]
[ERROR: INVALID INPUT]
[ERROR: INVALID INPUT]
IF/SSID/IP-Addr/Gateway/MAC/TxPower(dBm)/RSSI(-dBm)
[ERROR: INVALID INPUT]
[ERROR: INVALID INPUT]
[ERROR: INVALID INPUT]
[ERROR: INVALID INPUT]
[ERROR: INVALID INPUT]
[ERROR: INVALID INPUT]
[ERROR: INVALID INPUT]
STA/MIAN-WIFI/192.168.0.184/192.168.0.1/00:08:DC:1C:D5:73/31/55
[ERROR: INVALID INPUT]
[ERROR: INVALID INPUT]

Here is the sample code:

#include <Arduino.h>
#include "WizFi250.h"

#define SSID      "MIAN-WIFI"
#define KEY       "password"
#define AUTH       "WPA2" 

 
#define  HOST_IP       "192.168.168.192"
#define  REMOTE_PORT    1122
#define LOCAL_PORT      1122
 
#define spi_CS  8
 
WizFi250 wizfi250(&Serial);
boolean returnValue=false;
void setup() {
 
//Serial1.begin(115200);
Serial.begin(115200);
pinMode(spi_CS,OUTPUT);
Serial.println("--------- WIZFI250 TEST --------");
// wait for initilization of Wizfi250
  delay(1000);
  Serial.println("Join " SSID );
  wizfi250.reset();
  delay(1000);
  wizfi250.sendCommand("AT+WLEAVE\r");
   delay(1000);
   if (!wizfi250.join(SSID, KEY, AUTH)) {
    Serial.println("Failed join " SSID);
     Serial.println("Please Restart");
  } else {
    
  Serial.println("Successfully join " SSID);
  wizfi250.sendCommand("AT+WSTAT\r");
  delay(5);
  char c;
  while(wizfi250.receive((uint8_t *)&c, 1, 100) > 0) {
    Serial.print((char)c);
  }
  delay(2000);  
  returnValue =wizfi250.connect(HOST_IP,REMOTE_PORT,LOCAL_PORT);
  if(returnValue)
   Serial.println("Now you can send data to Server or receive data from Server!");
  
}
}
unsigned int time_point = 0;

void loop() {
  if(wizfi250.available()) {
    Serial.print((char)wizfi250.read());
  }
   if(Serial.available()) {
    wizfi250.print((char)Serial.read());
   }
}

I tried using the tutorial for using the board with the Arduino Uno here: seeedstudio.com/wiki/Talk:Wifi_Shield_(Fi250
but I didn’t understand what “Blink” sketch they were talking about and how to upload it directly to the shield (I tried uploading the sample Blink sketch to the Uno with the shield connected and that yielded no results).

Hi

Unfortuanally, I don’t had been use library of Seeedstudio. So I can’t tell you right answer about your question.
I think you have better change UART pins of Fi250 using jumper pin in contrast with Arduino uart pin.

Copyright © 2017 WIZnet Co., Ltd. All Rights Reserved.