Wifi Uart 1.0 & Grove shield

Grove is a modulated, ready-to-use tool set.
Much like Lego, it takes a building block approach to assembling electronics.

Moderators: violet, jeremy882, crail.lyu969

Post Reply
michele.donna76
Pre-kindergarten
Pre-kindergarten
Posts: 3
Joined: Fri Sep 07, 2018 9:58 pm

Wifi Uart 1.0 & Grove shield

Post by michele.donna76 » Fri Sep 07, 2018 10:01 pm

hello

am trying to setup the Grove Wifi Uart module with an Arduino Uno + Grove shield without success. I tried all the code mentioned in this post viewtopic.php?f=17&t=7737&p=26752&hilit ... 6ca#p26752

The wifi module red light never turns on (except if I press it for a while for entering uart mode). I tried both connecting to the uart port and the D1-4 connectors.

can you please let me know how to fix this issue?

thanks

bobgardner
Pre-kindergarten
Pre-kindergarten
Posts: 18
Joined: Sun Jun 03, 2018 12:22 pm

Re: Wifi Uart 1.0 & Grove shield

Post by bobgardner » Sat Sep 08, 2018 1:18 am

I assume the uno serial port goes to your pc and a software uart goes to the wifi. I also assume you want to run a terminal program on the uno that sends your typed AT commands and the required CRLF. Once you can type AT crlf and see OK you are OnTheWay. What speed are you using with the two uarts? 9600? 38400? 115200?

michele.donna76
Pre-kindergarten
Pre-kindergarten
Posts: 3
Joined: Fri Sep 07, 2018 9:58 pm

Re: Wifi Uart 1.0 & Grove shield

Post by michele.donna76 » Sun Sep 09, 2018 1:04 am

baud rate is set to 115200, i was able to get some garbage characters and run some AT commands, getting back some text full of mistakes like this

AZ+RST


OK
WIFI DI⸮⸮⸮ʪ⸮(UH⸮
ets J`n 8 2013,r.⸮⸮͕⸮bAT+C-"WIFI CONNFCTED
WIFI GOT IP

OK
IP address...
AT+CHFSR

+CIFSR:APIP,"192/168.4.1"
+CIFSR:APMAC,#62:01:94:03977:⸮%⸮rI1

I see the esp chip is connected to the router though.

PS : is there a way to program directly the ESP even while connected to an Arduino ? I found some examples but all use ESP8266 natively

bobgardner
Pre-kindergarten
Pre-kindergarten
Posts: 18
Joined: Sun Jun 03, 2018 12:22 pm

Re: Wifi Uart 1.0 & Grove shield

Post by bobgardner » Sun Sep 09, 2018 6:42 am

When you send the reset command, the 8266 send out 3 or 4 lines of schtuff at a nonstandard baudrate for some reason. I know no one uses the AT commands, but if you project is simple, they might be good enough. Can you describe what your project does?

michele.donna76
Pre-kindergarten
Pre-kindergarten
Posts: 3
Joined: Fri Sep 07, 2018 9:58 pm

Re: Wifi Uart 1.0 & Grove shield

Post by michele.donna76 » Tue Sep 11, 2018 12:05 am

the idea is to send some sensors data to AWS IoT.

So far I was only able to use AT commands using the Serial libraries, is there any other standard ESP8266 librbary can use to avoid using at commands?

bobgardner
Pre-kindergarten
Pre-kindergarten
Posts: 18
Joined: Sun Jun 03, 2018 12:22 pm

Re: Wifi Uart 1.0 & Grove shield

Post by bobgardner » Tue Sep 11, 2018 4:00 am

Have an idea of how many bytes from the sensor and how often you need to send? The wifi uart docs dont say how big a payload you can send in a udp packet for example. It would be about 1400 bytes on ethenet. Thats the Max Transmission Unit MTU. I've read msgs on the esp8266 forums that the esp program loops every 20ms. Maybe someone can post a link to this spec? If you had a micro with two hardware uarts that could run at 230400 or 460800 bps, you could read in 460 bytes from the wifi chip in a ms, every 20ms, about 23K bytes per sec. The computer I'm using is sold by an indie guy on tindie called leonerd. Board has a mega328pb with 2 hw uarts, 20MHz resonator. If you dont use the AT commands I guess what everyone else does is compile a c program that looks like an arduino sketch, but they have the arduino ide configured to run the 8266 compiler instead of the avr compiler. How they do this is beyond my understanding. The guy that figured this out is as far above me as I am to the ant. I'd still like a nice uptodate doc file on the at commands. I'll let someone else explain how to run the 8266 compiler.

Post Reply