Forum >WiFi shield v2.2 "AT Command error"on wizard
WiFi shield v2.2 "AT Command error"on wizard

I am following the tutorial you have here [url=http://www.dfrobot.com/wiki/index.php/WiFi_Shield_V2.2_For_Arduino_(SKU:TEL0047)]http://www.dfrobot.com/wiki/index.php/WiFi_Shield_V2.2_For_Arduino_(SKU:TEL0047)[/url]
I have a Arduino DUE board, put the WIFI shield on it, run the program, set my serial the baud rate to 115200 and run the WIZSmartscript When I hit "Find WiFi and set command mode", in the box below instead of getting the wifi module I get "AT Command Error". And in a serial monitor ,I enter the "at" to send,but there is no reply. Any ideas why it's doing that instead of finding the module? Thanks again and sorry for the trouble .
I have a Arduino DUE board, put the WIFI shield on it, run the program, set my serial the baud rate to 115200 and run the WIZSmartscript When I hit "Find WiFi and set command mode", in the box below instead of getting the wifi module I get "AT Command Error". And in a serial monitor ,I enter the "at" to send,but there is no reply. Any ideas why it's doing that instead of finding the module? Thanks again and sorry for the trouble .
2013-05-07 21:49:12 Hi longtao,
I was checking that command you sent <AT+XEHT> and it looks like you should be able to do software data/ttl trigger mode.
have you tried <AT+XEHT=2,1,1,3> ? you should probably save this settings on your default profile afterwards, so that when you reboot or re power the wifi module, this setting is not lost.
Best,
Jose
Jose
I was checking that command you sent <AT+XEHT> and it looks like you should be able to do software data/ttl trigger mode.
have you tried <AT+XEHT=2,1,1,3> ? you should probably save this settings on your default profile afterwards, so that when you reboot or re power the wifi module, this setting is not lost.
Best,
Jose

2013-05-04 04:42:15 Hello Jose
Thank for your reply.After successful configuration of the module,indicator LEDs(marked "STW" and "ASSOC")turn on.We send sequence “+++”,followed by a one-second gap where no characters are received on the serial port.Then the LED(marked "STW" ) turn off.But it dose not work in command mode,because we send "ATO" in a serial monitor,it return "ATO".I don't know what is the reason.
Best,
longtao
longtao
Thank for your reply.After successful configuration of the module,indicator LEDs(marked "STW" and "ASSOC")turn on.We send sequence “+++”,followed by a one-second gap where no characters are received on the serial port.Then the LED(marked "STW" ) turn off.But it dose not work in command mode,because we send "ATO" in a serial monitor,it return "ATO".I don't know what is the reason.
Best,
longtao

2013-05-04 00:14:11
Hi Longtao,
From a little previous experience, I can tell that often the data mode is auto triggered after successful configuration of the module, so you might not even need to enable it manually. Anyhow it is wise to stay safe and just do it.
I'd suggest you interface the GPIO29 button on your own circuit, probably with some wires and attach it to an Arduino pin, but this board's trigger is only hardware, not software. This method is not supported.
So you won't be able to do so unless I missed something from the datasheet. Some firmware/hardware usually has a software trigger but this seems not to be the case, sorry.
Jose
Hi Longtao,
From a little previous experience, I can tell that often the data mode is auto triggered after successful configuration of the module, so you might not even need to enable it manually. Anyhow it is wise to stay safe and just do it.
I'd suggest you interface the GPIO29 button on your own circuit, probably with some wires and attach it to an Arduino pin, but this board's trigger is only hardware, not software. This method is not supported.
So you won't be able to do so unless I missed something from the datasheet. Some firmware/hardware usually has a software trigger but this seems not to be the case, sorry.

2013-05-03 23:03:51 Hello Jose
Wifi shield v2.2 is not compatible with with DUE.To solve the problem, we design a circuit with MAX232 , it success.But I have new problem. I want change between data mode and command mode just using the command, without keys.I know applying the <AT+XEHT> command (Enable Hardware Trigger), we can change between data mode and command mode using GPIO 29. How can I do?
Best,
longtao
longtao
Wifi shield v2.2 is not compatible with with DUE.To solve the problem, we design a circuit with MAX232 , it success.But I have new problem. I want change between data mode and command mode just using the command, without keys.I know applying the <AT+XEHT> command (Enable Hardware Trigger), we can change between data mode and command mode using GPIO 29. How can I do?
Best,
longtao

2013-05-02 23:47:31 Hello Longtao,
Can you try the configuration with Arduino UNO first like in the wiki?
Alternatively you could directly connect with the USB to serial module to send the AT commands. I am afraid Arduino DUE serial port configurations works differently. And the shield will require a 5V connection for communicating. So this board (wifi shield v2.2) is not compatible with with DUE.
links:
[url=https://www.dfrobot.com/wiki/index.php/WiFi_Shield_V2.2_For_Arduino_(SKU:TEL0047)]https://www.dfrobot.com/wiki/index.php/WiFi_Shield_V2.2_For_Arduino_(SKU:TEL0047)[/url]
Best,
Jose
Jose
Can you try the configuration with Arduino UNO first like in the wiki?
Alternatively you could directly connect with the USB to serial module to send the AT commands. I am afraid Arduino DUE serial port configurations works differently. And the shield will require a 5V connection for communicating. So this board (wifi shield v2.2) is not compatible with with DUE.
links:
[url=https://www.dfrobot.com/wiki/index.php/WiFi_Shield_V2.2_For_Arduino_(SKU:TEL0047)]https://www.dfrobot.com/wiki/index.php/WiFi_Shield_V2.2_For_Arduino_(SKU:TEL0047)[/url]
Best,
Jose
