Call for ESP8266 owner

964 views
Skip to first unread message

Di Maio, Dario

unread,
Mar 12, 2015, 8:13:40 AM3/12/15
to sou...@googlegroups.com
Hi,

I'm speaking with Fulvio to find a way to support those module.

I need to understand if those support UDP Broadcast in send and receive, please share your experience and sketches.

Regards,
Dario.

dcarvetta

unread,
Mar 12, 2015, 9:27:26 AM3/12/15
to sou...@googlegroups.com
I have those devices, but no experience about that; just in case can arrange some hardware for trial run.

Di Maio, Dario

unread,
Mar 12, 2015, 9:35:36 AM3/12/15
to sou...@googlegroups.com
Hi Domenico,

please have a look for sketch/library that can send UDP Brodcast frames and have a try with that code. If those module allow proper operation in broadcast, we can support them in Souliss.

Regards,
Dario.

On Thu, Mar 12, 2015 at 2:27 PM, dcarvetta <dcar...@libero.it> wrote:
I have those devices, but no experience about that; just in case can arrange some hardware for trial run.

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/souliss/f6722a05-7529-4187-9820-09b311765f7d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

dcarvetta

unread,
Mar 12, 2015, 9:42:37 AM3/12/15
to sou...@googlegroups.com
Dear Dario,
this is an excellent task, but very honestly I don't know from where to start.
Pls provide me something about UDP Broadcast matter, then I will study that.

Di Maio, Dario

unread,
Mar 12, 2015, 9:53:13 AM3/12/15
to sou...@googlegroups.com
I've never used this module, we should start from a library or a list of AT commands, have you somenthing?

Dario.

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

dcarvetta

unread,
Mar 12, 2015, 9:54:40 AM3/12/15
to sou...@googlegroups.com
Ok, about AT commands I can find it.

penalve.sergio

unread,
Mar 12, 2015, 3:56:05 PM3/12/15
to sou...@googlegroups.com
Hi all, I can download a new firmware made in C under linux ubuntu, with pwm support and others librarys really impressive is a miniarduino with wifi and has 4mb memory according to the datasheet, I'm waiting for the esp-12 to see if I can do something more complex since the esp-01 has only 2 I/O available welded to the chip,wanted help I was thinking that could download an minicore of souliss (vNet.cpp and MaCaco.cpp) or just control it from another node,  but I do not know how the protocol between nodes works the mesage sendid between nodes  ??? ...
 
datasheet
 
I work with this tutorial cross-compiler under linux(control ws2812 led via wifi)
 
api C
 
Sldoss

Di Maio, Dario

unread,
Mar 12, 2015, 4:27:10 PM3/12/15
to sou...@googlegroups.com

Souliss won't work on different micros.

Dario.

From Mobile.

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

penalve.sergio

unread,
Mar 12, 2015, 5:40:35 PM3/12/15
to sou...@googlegroups.com
Ok Dario, and esp8266 module in SPI slave mode with support UDP / IP with arduino with souliss frame might work in theory?

Di Maio, Dario

unread,
Mar 12, 2015, 6:53:29 PM3/12/15
to sou...@googlegroups.com

Yes. But even in USART mode can work using a broadcasting communication method.

I need someone that can have a try.

Dario.

From Mobile.

Juan Pinto

unread,
Mar 12, 2015, 7:14:21 PM3/12/15
to sou...@googlegroups.com

penalve.sergio

unread,
Mar 12, 2015, 7:33:08 PM3/12/15
to sou...@googlegroups.com
Ok thanks Dario, ESP8266 APIs have support for USART and UDP :) I will try to make a library for esp8266(usart+udp) with basic test functions and use with arduino via usart :)..

Di Maio, Dario

unread,
Mar 13, 2015, 2:28:30 AM3/13/15
to sou...@googlegroups.com

I guess that library are yet out there, just use the existing library to send a receive broadcast.

This is enough to understand how to proceed.

Regards,
Dario.

From Mobile.

On 13 Mar 2015 00:33, "'penalve.sergio' via souliss" <sou...@googlegroups.com> wrote:
Ok thanks Dario, ESP8266 APIs have support for USART and UDP :) I will try to make a library for esp8266(usart+udp) with basic test functions and use with arduino via usart :)..

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

penalve.sergio

unread,
Mar 13, 2015, 9:06:04 AM3/13/15
to sou...@googlegroups.com
Dario, I found the library exists both USART and UDP in the SDK just have to compile and make serial communication functions will work on it ..
I want to do something similar to this wifi module RN-131-EK (usart+udp broadcasting)
 
Thanks Dario.

 

Di Maio, Dario

unread,
Mar 13, 2015, 9:07:55 AM3/13/15
to sou...@googlegroups.com
Gives update once you have tried, thanks.

Dario.

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

Darren Siepka

unread,
Mar 14, 2015, 7:34:57 PM3/14/15
to sou...@googlegroups.com
Whilst browsing on arduino.cc today I found this library, any use?

https://github.com/ekstrand/ESP8266wifi

Darren

Di Maio, Dario

unread,
Mar 15, 2015, 5:44:10 AM3/15/15
to sou...@googlegroups.com
Any library can be applicable, but I haven't any module with me to test.

I need that you try to run the library, and test the UDP Broadcast (I can help on the how to), reporting how much RAM and FLASH that library use.

We can even decide to get from the library only the code that we need.

Regards,
Dario.

dcarvetta

unread,
Mar 15, 2015, 6:43:03 AM3/15/15
to sou...@googlegroups.com
I have two modules, if you need to have a trial run, Regards.

Di Maio, Dario

unread,
Mar 15, 2015, 6:50:01 AM3/15/15
to sou...@googlegroups.com
Yes please,tell me if the following setup is feasible:
1) One node with SoftwareSerial connected to a USBtoSerial (like the one used to program Arduino Ethernet) and a WiFi module, this will be the receiver.
2) One node with WiFi module only.

On the node 2, build a code that send a message ("hello world") in broadcast, it should be enough to specify 255.255.255.255 as destination IP address.
On the node 1, build a code that printout on SoftwareSerial whatever it receives.

The result should be that your node 1 printout a lot of stuffs, and sometimes hello world.

Thanks,
Dario.

On Sun, Mar 15, 2015 at 11:43 AM, dcarvetta <dcar...@libero.it> wrote:
I have two modules, if you need to have a trial run, Regards.

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

Di Maio, Dario

unread,
Mar 27, 2015, 3:17:28 PM3/27/15
to sou...@googlegroups.com
Hi,

I've identified this library as one option to support the ESP8266 in Souliss. I haven't any module with me, someone can have a try for this library?

https://github.com/ssokol/esp8266

Regards,
Dario.

dcarvetta

unread,
Mar 27, 2015, 3:25:17 PM3/27/15
to sou...@googlegroups.com
I have two modules of those.

Fulvio Spelta

unread,
Mar 30, 2015, 8:13:23 AM3/30/15
to sou...@googlegroups.com
two modules and two boards are arriving from Olimex in order to build a dedicated lab for testing

Juan Pinto

unread,
Mar 30, 2015, 9:36:18 AM3/30/15
to sou...@googlegroups.com
I received today one ESP-12 module. I can do some test if you need :P

Regards

2015-03-30 14:13 GMT+02:00 Fulvio Spelta <fulvio...@gmail.com>:
> two modules and two boards are arriving from Olimex in order to build a dedicated lab for testing
>
> --
> You received this message because you are subscribed to a topic in the Google Groups "souliss" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/souliss/6q0Vj0PPPE8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to souliss+u...@googlegroups.com.
> To post to this group, send email to sou...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/souliss/94d07c4c-6db3-4fe8-a286-54a716efb3aa%40googlegroups.com.

Di Maio, Dario

unread,
Mar 30, 2015, 10:20:43 AM3/30/15
to sou...@googlegroups.com
Please start testing with this library and let me know,

Dario.

You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.

To post to this group, send email to sou...@googlegroups.com.

Juan Pinto

unread,
Mar 30, 2015, 1:27:13 PM3/30/15
to sou...@googlegroups.com
What kind of tests do you need?, I'll solder tonight or tomorrow.
 
Regards

Di Maio, Dario

unread,
Mar 30, 2015, 2:40:01 PM3/30/15
to sou...@googlegroups.com

Run that library and report the results.

Dario.

From Mobile.

Saverio Sbrana

unread,
Mar 30, 2015, 4:39:20 PM3/30/15
to sou...@googlegroups.com

Juan Pinto

unread,
Mar 30, 2015, 7:03:45 PM3/30/15
to sou...@googlegroups.com
I loaded on Arduino the file: https://github.com/ssokol/esp8266/blob/master/tester.ino



Added AltSoftSerial and connected to pins 8 and 9 like you can see here:


But now I don't know how to do next steps, No info is showed on Serial Monitor of Arduino, I tried with DEBUG_LEVEL 2 too and nothing. I don't find any serial.print line :(

Regars

Di Maio, Dario

unread,
Mar 31, 2015, 1:29:22 AM3/31/15
to sou...@googlegroups.com

Hi Juan,

It doesn't connect on your wifi?

Dario.

From Mobile.

Di Maio, Dario

unread,
Mar 31, 2015, 1:32:25 AM3/31/15
to sou...@googlegroups.com

Hi Saverio,

Running directly on the ESP is nice, but require too much effort and will cover a too small area compared to the AVRs.

I've not read in details, but as far as I know the ESP use Contiki as OS, and Souliss is written to run without an OS, so porting the code will require an high effort.

Dario.

From Mobile.

Fulvio Spelta

unread,
Mar 31, 2015, 2:13:02 AM3/31/15
to sou...@googlegroups.com
Dario you are right, it's too hard to port Souliss over ESP or other OS/CPU.

Just an idea in order to  open the environment to those that have the right know how to build such "nodes": is it feasible to write a simple library to send Action Messages, or other messages that you think they could have been better, in order to create a simple link from this kind of nodes and the Souliss framework?

This way the ESP hw could be used to build wireless sensors or actuators linked to standard nodes in order to integrate into the framework (ideally something like remote DigIn or DigOut).

Not to be realized by Dario (Dario should complete Friariello and other tasks) but if someone have time and know how, what's your comments ?
f

Di Maio, Dario

unread,
Mar 31, 2015, 2:25:11 AM3/31/15
to sou...@googlegroups.com

ActionMessage is just an UDP broadcast frame with few bytes as payload. If you have an ESP running by himself, send an action message is just a line of code.

You can easily build action message from a PC or any other device that support UDP.

I'm always available to support people in porting Souliss, but it will need to be written from sktrach as Antonino and Alessandro did for openHAB binding and SoulissApp.

Dario.

From Mobile.

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

Juan Pinto

unread,
Mar 31, 2015, 9:25:16 AM3/31/15
to sou...@googlegroups.com
Sorry, I don't have much time to it last night and I can't readed all the info. I don't know how I can connect to the Wifi or see any debug line. I'll read carefully the info and let you know. I think tester.ino isn't an example itself, just a way to test eeprom functions. We need a simple sketch to test it.
 
Regards

Juan Pinto

unread,
Mar 31, 2015, 6:01:02 PM3/31/15
to sou...@googlegroups.com
I readed again the readme on the library, but I don't know where to start, if anyone have a simple helloworld sketch with this library I can test it.

Sorry but I have problems to undestand some codes sometimes... :(

Regards
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+unsubscribe@googlegroups.com.

To post to this group, send email to sou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/souliss/be2d706b-73c4-4b8c-ab5c-f09920a4c60d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "souliss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/souliss/6q0Vj0PPPE8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to souliss+unsubscribe@googlegroups.com.

To post to this group, send email to sou...@googlegroups.com.

Di Maio, Dario

unread,
Apr 1, 2015, 1:30:25 AM4/1/15
to sou...@googlegroups.com

I will have a look and let you know.

From Mobile.

Di Maio, Dario

unread,
Apr 1, 2015, 1:31:10 AM4/1/15
to sou...@googlegroups.com

This maybe of interest, but have care on pointers that will not match
https://olimex.wordpress.com/2015/03/31/programming-esp8266-evb-with-arduino-ide/

Dario.

From Mobile.

Juan Pinto

unread,
Apr 1, 2015, 12:18:07 PM4/1/15
to sou...@googlegroups.com
This example looks more simple than the other library:
 
But this library works over ESP directly, right?
 
Regards?

Juan Pinto

unread,
Apr 1, 2015, 12:19:00 PM4/1/15
to sou...@googlegroups.com
Sorry, I mean: Regards, not "Regards?"  xDD

Fulvio Spelta

unread,
Apr 1, 2015, 1:06:47 PM4/1/15
to sou...@googlegroups.com
Hi Juan
reading this example I understood that this library is for the use of ESP inside the arduino environment like the eth library is for w5100 (the other example try to program the ESP directly).

To try this modify the sketch in lines 48 and 53 in order to setup your wifi ssid and password deleting the
eepromReadString(0, 48, ssid);
and inserting
ssid = "my wifi ssid";

then load the sketch and you should receive on your usb the debug print I hope "connected to wifi".

Then you can connect to the ip that should be printed on usb using putty (remember to specify IP and port 80) and you should see on the usb all the character that you send using putty.

Good luck
:-)
f

Fulvio Spelta

unread,
Apr 1, 2015, 1:10:57 PM4/1/15
to sou...@googlegroups.com
Sorry I forgot that last note:

from readme:
The library assumes that the ESP8266 is connected to the hardware Serial pins (or, in the case of a Mega, UART0).

So the ESP have to be connected to the arduino UART the schema you published isn't suitable for this example.

Hoping to have understood correctly.

I will perform tests with my olimex devices after Easter.
f

Juan Pinto

unread,
Apr 1, 2015, 3:26:10 PM4/1/15
to sou...@googlegroups.com
This last one means that ESP needs to be connected on pins 0 and 1 and we need a USB device connected on pins 8 and 9 via AltSoftSerial
 
Sorry, when I think that my english is going in a good way... :( xD

penalve.sergio

unread,
Apr 1, 2015, 5:26:35 PM4/1/15
to sou...@googlegroups.com
Hi I have some trouble with the esp-01 with AT comand but reflashing with actual firmware works very well with this library but bautrate is 115200 this is only probe

#include "ESP8266.h"
#include <AltSoftSerial.h>

AltSoftSerial debuger;

ESP8266 wifi
(WIFI_MODE_APSTA,115200);//modo3

bool cone=false;


int dataCallback(char *data)
{
 
//data callback
  debuger
.println(data);
}

void connectCallback(){

cone
=true;
}


void setup()
{
  debuger
.begin(9600);
  debuger
.println("Inicializacion ESP8266");
 
 
int ret;
  ret
= wifi.initializeWifi(&dataCallback,&connectCallback);
  ret
= wifi.connectWifi("ssid","contraseña");
 
bool ret1 = wifi.startServer(80,25000);//puerto y timeout
  wifi
.send("PROBANDO LOS esp8266");
 
 
 
  wifi
.enableBeacon("Mi_ESP");
 
}

void loop()
{
  wifi
.run();
 
}




Di Maio, Dario

unread,
Apr 2, 2015, 1:31:35 AM4/2/15
to sou...@googlegroups.com

All, please focus on the library that has been provided before, the sketch from Sergio is a good one for testing.

Let me know if the code and behavior is reliable over long (couple of days) time.

Regards,
Dario.

From Mobile.

dcarvetta

unread,
Apr 2, 2015, 7:40:59 AM4/2/15
to sou...@googlegroups.com
HI Dario, 
two things to ask you to make clear turn-around; pls double confirm, thanks.

1) What is the library to use to run the ESP8266 wifi board ? 

2) What is the sketch to run on the Arduino let say Mega, or Uno ?
 
3) What is the schematic to use ?

I have two of those modules, so that I can do some trial runs.
Thanks!!

php

unread,
Apr 2, 2015, 7:43:39 AM4/2/15
to sou...@googlegroups.com
Hi,
Please have a look, this is an arduino ide integrating the ESP8266 module:
Best,
Php

penalve.sergio

unread,
Apr 2, 2015, 5:28:47 PM4/2/15
to sou...@googlegroups.com
Hi I use this https://github.com/ssokol/esp8266 recomended by Dario because have suport for UDP packet I don't probe because I have a mess with two esp-01 using im very confused jeje

1) PC->usb-rs232->arduino1-->esp-01

(router_dlink)->dhcp

2) arduino_mega->esp-01 ->transmision protocol UDP broadcast 252.255.255.255 with some text to (1)

is the way or not ?
Sldos...

Juan Pinto

unread,
Apr 2, 2015, 8:17:37 PM4/2/15
to sou...@googlegroups.com

Anyone has tried this wiring? I cannot initiate the module, I connected now the esp module to the pins 0 and 1 and with another usbttl to view data connected on pins 8 and 9.

On Pedro's sketch I added my ssid and pass but I not see any new device on my network and I tried too with the tester sketch from the library suggested by Dario and I get and error on the module initialization.  To set the ssid and pass on this sketch it's better with strcpy function.

Regards

Di Maio, Dario

unread,
Apr 3, 2015, 2:21:52 AM4/3/15
to sou...@googlegroups.com

Use the library that has linked Sergio.

The connection is just cross TX and RX and then 3.3V and GND.

Dario.

From Mobile.

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

Di Maio, Dario

unread,
Apr 3, 2015, 2:22:34 AM4/3/15
to sou...@googlegroups.com

Thanks, but we will not run Souliss directly on that module.

Dario.

From Mobile.

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

bonanno51

unread,
Apr 3, 2015, 2:48:02 AM4/3/15
to sou...@googlegroups.com
For the RX and TX use a level translator. The ESP8266 IS NOT 5V tolerant.

Di Maio, Dario

unread,
Apr 3, 2015, 2:49:30 AM4/3/15
to sou...@googlegroups.com

The module doesn't include any mosfet for conversion by itself?

I've not seen any schematic right now.

Dario.

From Mobile.

On 3 Apr 2015 08:48, "bonanno51" <bona...@gmail.com> wrote:
For the RX and TX use a level translator. The ESP8266 IS NOT 5V tolerant.

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

bonanno51

unread,
Apr 3, 2015, 3:57:26 AM4/3/15
to sou...@googlegroups.com
Specifications on this link https://nurdspace.nl/ESP8266 for the esp-01 , esp-03 and Others.

Di Maio, Dario

unread,
Apr 3, 2015, 7:23:40 AM4/3/15
to sou...@googlegroups.com
Looking at the schematics I can see 6 pins connected on the header, rather the PCB shows just four of them.

In any case, you are right, in the schematics there is no voltage translation.

Dario.

penalve.sergio

unread,
Apr 3, 2015, 3:36:54 PM4/3/15
to sou...@googlegroups.com

I use the esp-01 with usb-rs232 it work very well using AT comand using terminal (115200-8N1)without voltage translator only not conect GPIO0 to gnd bacause it for reflashing esp-01





regards.

Juan Pinto

unread,
Apr 3, 2015, 3:43:37 PM4/3/15
to sou...@googlegroups.com

I have this one : 

I readed on some forums that we need to power externally the module because it drain 200mA max:

@Sergio Can you post a link or explain how-to upgrade the firmware.

I'll keep testing, I like this module for many purposes.

Regards

Fulvio Spelta

unread,
Apr 4, 2015, 8:28:55 PM4/4/15
to sou...@googlegroups.com
Hi all,
I set up e test environment using a PC, and ftdi adapter (warning a 3,3V FTDI).
The connection are very simple only 4 wire (Vcc -3,3V, GND, TX, RX)

Then using putty I've found a sequence fo command in order to set up the ESP8266 to send and receive broadcast UDP data (for test purpose I've used port 8888):

AT commands sequence (comments are for documentation and have not to be sent to ESP8266). Pay attention that the commands have to be issued exactly as in the post (uppercase and without spaces)

// Reset
AT+RST

//Join the wifi network (AP)
AT+CWJAP="yourssid","yourpassword"

//Optionally you can get your IP for ping test purpose
AT+CISFR

//Set ESP in multiconnection mode
AT+CIPMUX=1

//Start outgoing connection for sending data (our goal is broadcast so i've used a .255 address
AT+CIPSTART=0,"UDP","192.168.10.255",8888

//Start a server for listening about incoming data
AT+CIPSERVER=1,8888

//Send some data (receprion verified using packesender on a pc in the net
AT+CIPSEND=0,5
> 12345
SEND OK

//Received some data sent using packetsender on a pc in the net
+IPD,1,10:1234567890
OK

+IPD,1,10:1234567890
OK

The entire sequence from putty
AT+RST


OK


 ets
Jan  8 2013,rst cause:4, boot mode:(3,7)


wdt reset
load
0x40100000, len 24444, room 16
tail
12
chksum
0xe0
ho
0 tail 12 room 4
load
0x3ffe8000, len 3168, room 12
tail
4
chksum
0x93
load
0x3ffe8c60, len 4956, room 4
tail
8
chksum
0xbd
csum
0xbd


ready
AT
+CWJAP="<ssid>","<password>"


OK
AT
+CIPMUX=1


OK
AT
+CIPSTART=0,"UDP","192.168.10.255",8888


OK
AT
+CIPSERVER=1,8888


OK
Link


+IPD,1,10:1234567890
OK


+IPD,1,10:1234567890
OK
AT+CIPSEND=0,5
> 12345
SEND OK


Good Easter
f


Di Maio, Dario

unread,
Apr 5, 2015, 3:43:00 AM4/5/15
to sou...@googlegroups.com

Hi Fulvio,

great job!

I hope that those commands and their syntax is consistent within modules from different suppliers.

@ ESP owners, please test the commands as Fulvio explained and report if your module is accepting those ones.

Thanks,
Dario.

From Mobile.

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

Di Maio, Dario

unread,
Apr 5, 2015, 3:48:42 AM4/5/15
to sou...@googlegroups.com

Fulvio I need one more test, in this case you should build from PacketSender a binary frame instead of an ASCII one.
You can just use the same 12345789 payload (converted as per ASCII table), but in the middle you should place the ASCII char 10 and 13.

The 10 and 13 are line end and carrier return, those are always used at end of line into an ASCII frame, but a binary one can always include those every where.
The goal is to understand if the firmware of the wifi midule use those as frame stop.

Same test even while sending is required.

Thanks,
Dario.

From Mobile.

On 5 Apr 2015 02:28, "Fulvio Spelta" <fulvio...@gmail.com> wrote:

Juan Pinto

unread,
Apr 5, 2015, 1:42:46 PM4/5/15
to sou...@googlegroups.com
I see on Serial port at 9600 this:

#Y6▒▒y▒a$t▒8$(▒h▒r,▒▒,<$zK▒▒8$$
[Vendor:www.ai-thinker.com Version:0.9.2.4]

ready

But no response when I send AT commands, I followed this guide to wiring:
ndhttp://forum.hobbycomponents.com/viewtopic.php?f=74&t=1777
On my module I need to connect to VCC and GND some pins to accept AT commands.

Regards
> You received this message because you are subscribed to a topic in the
> Google Groups "souliss" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/souliss/6q0Vj0PPPE8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> souliss+u...@googlegroups.com.
> To post to this group, send email to sou...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/souliss/CAKGhMPJvsL8Xs7KYANn%3D2_7vSseekscaHEA1aAB6ec67Kzt%3Daw%40mail.gmail.com.

Fulvio Spelta

unread,
Apr 5, 2015, 2:54:28 PM4/5/15
to sou...@googlegroups.com
Juan try others baudrate increasing till 115200. 
f

Juan Pinto

unread,
Apr 5, 2015, 3:35:10 PM4/5/15
to sou...@googlegroups.com
At 115 I see strange characters only.

2015-04-05 20:54 GMT+02:00 Fulvio Spelta <fulvio...@gmail.com>:
> Juan try others baudrate increasing till 115200.
> f
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "souliss" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/souliss/6q0Vj0PPPE8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> souliss+u...@googlegroups.com.
> To post to this group, send email to sou...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/souliss/a7f8d92c-70da-4bb0-9e6e-79bd7cfbe9c4%40googlegroups.com.

Darren Siepka

unread,
Apr 5, 2015, 6:48:06 PM4/5/15
to sou...@googlegroups.com

I saw these dev boards on eBay , are they suitable for testing purposes?

151627250675

Darren

Di Maio, Dario

unread,
Apr 6, 2015, 12:18:49 AM4/6/15
to sou...@googlegroups.com

Can you add a direct link?

Dario.

From Mobile.

You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.

To post to this group, send email to sou...@googlegroups.com.

Darren Siepka

unread,
Apr 6, 2015, 2:52:29 AM4/6/15
to sou...@googlegroups.com

Direct link to supplier site

http://www.widgethub.co.uk/products.php?catagory=3&product=109

Also will souliss library even run on them?
Darren

Di Maio, Dario

unread,
Apr 6, 2015, 2:55:37 AM4/6/15
to sou...@googlegroups.com

Is a working in progress, but those are supposed to run properly.

You need a porting of the Arduino core for that AVR microcontroller, but I'm quite sure that is available.

Dario.

From Mobile.

Darren Siepka

unread,
Apr 6, 2015, 3:00:15 AM4/6/15
to sou...@googlegroups.com

Hi
I understand a fork of the ide is done and working.
The atxmegas have very good battery use characteristics such as low power, low voltage etc as well as high performance.

Darren

Di Maio, Dario

unread,
Apr 6, 2015, 3:10:16 AM4/6/15
to sou...@googlegroups.com

Yep, so there should be no problem.

That board is sold at a very competitive price.

Dario.

From Mobile.

Juan Pinto

unread,
Apr 6, 2015, 1:15:35 PM4/6/15
to sou...@googlegroups.com
Ok, I solved the problem to comunicate with ESP12 module, just select
CRLF option on Serial Monitor of Arduino.
Now I send AT+RST and reset ok, but when I put AT+CWJAP="ssid","pass"
I get "ERROR" on Serial Monitor.

Regards
> https://groups.google.com/d/msgid/souliss/CAKGhMP%2B05_RiLKmL42S%3DKHBy5%3DLPBMd%3DkGefFbmJasTtUkaaXA%40mail.gmail.com.

Juan Pinto

unread,
Apr 6, 2015, 1:42:23 PM4/6/15
to sou...@googlegroups.com
Sorry by the double post, Now I connected to the wifi, and have a valid IP, just use AT+CWMODE=1  before AT+CWJAP.

I tryed to follow the Fluvio's steps, but I missed something, on the line: AT+CIPSTART=0,"UDP","192.168.10.255",8888  I need to change to 192.168.1.255 if my network is configured on 192.168.1.x range, right?

Can you explain how to get packets on Packetsender, I installed and I see how to send packet, but I don't know how to receive.

When I do: AT+CIPSEND=0,5 I get > then I write 12345 and then returns:
wrong syntax

ERROR

SEND OK

After this I maded an AT+RST and when I try now the AT+CIPSTART cmd I get Linktyp ERROR.

I'll keep trying :)

Regards
>>>>>>> > To post to this group, send email to sou...@googlegroups.com.
>>>>>>> > To view this discussion on the web visit
>>>>>>> >
>>>>>>> > https://groups.google.com/d/msgid/souliss/a7f8d92c-70da-4bb0-9e6e-79bd7cfbe9c4%40googlegroups.com.
>>>>>>> >
>>>>>>> > For more options, visit https://groups.google.com/d/optout.
>>>>>>>
>>>>>>> --
>>>>>>> You received this message because you are subscribed to a topic in
>>>>>>> the Google Groups "souliss" group.
>>>>>>> To unsubscribe from this topic, visit
>>>>>>> https://groups.google.com/d/topic/souliss/6q0Vj0PPPE8/unsubscribe.
>>>>>>> To unsubscribe from this group and all its topics, send an email to
>>>>>>> To post to this group, send email to sou...@googlegroups.com.
>>>>>>> To view this discussion on the web visit
>>>>>>> https://groups.google.com/d/msgid/souliss/CAN5yH6ET3LnvL8c3QFvTxZbjrOi4vtwe%3DTguLpGGrzRpwtvUMQ%40mail.gmail.com.
>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "souliss" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>>> To post to this group, send email to sou...@googlegroups.com.
>>>>>> To view this discussion on the web visit
>>>>>> https://groups.google.com/d/msgid/souliss/CABxHo%2Bx%3DjzFxvK%3DuBb75B86gkqowRRsJxcG5ibTysaAQr4AokQ%40mail.gmail.com.
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to a topic in the
>>>>> Google Groups "souliss" group.
>>>>> To unsubscribe from this topic, visit
>>>>> https://groups.google.com/d/topic/souliss/6q0Vj0PPPE8/unsubscribe.
>>>>> To unsubscribe from this group and all its topics, send an email to
>>>>> To post to this group, send email to sou...@googlegroups.com.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/souliss/CAKGhMPJiPxv131zS_uJ3%2BVADJ5N3z7FBd-bDj%3DDbG3zfOSXgjA%40mail.gmail.com.
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "souliss" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> To post to this group, send email to sou...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/souliss/CABxHo%2BwoJm%2BY3SeOg%3D69%3Deip5obR_P1-wtoLJRsSMtwBgE_dqw%40mail.gmail.com.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "souliss" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/souliss/6q0Vj0PPPE8/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> To post to this group, send email to sou...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/souliss/CAKGhMPJDtMSaRgYuMhW1jwjmjxY%2B4BBxVaP84K4S62LyNzAp9g%40mail.gmail.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "souliss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> To post to this group, send email to sou...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/souliss/CABxHo%2BwWrgotdUaO6e_MS%2B-1ykkOkb8EuzNk82CszeGpD-YncQ%40mail.gmail.com.
>> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "souliss" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/souliss/6q0Vj0PPPE8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to

Fulvio Spelta

unread,
Apr 7, 2015, 8:37:23 AM4/7/15
to sou...@googlegroups.com
Hi Juan, let's try:-)

 
Sorry by the double post, Now I connected to the wifi, and have a valid IP, just use AT+CWMODE=1  before AT+CWJAP.
 I don't know,I've tried the sequence as posted, may be a difference in firmware. We'll try it again.

I tryed to follow the Fluvio's steps, but I missed something, on the line: AT+CIPSTART=0,"UDP","192.168.10.255",8888  I need to change to 192.168.1.255 if my network is configured on 192.168.1.x range, right?
The broadcast will be obtained sending to the '255' address of your network.
So if your network is 192.168.1.x with subnet mask 255.255.255.0 it is correct to send the packet to 192.168.1.255.
 
Can you explain how to get packets on Packetsender, I installed and I see how to send packet, but I don't know how to receive.
At first enable the udp server on the port you'd like to use (8888 in my example).
In the setting panel set the flag and the port then click un the "udp server" button till it tells "UDP:8888" as in the picture:

then you'll see the traffic in the traffic log panel (sorry the example is on port 230):


When I do: AT+CIPSEND=0,5 I get > then I write 12345 and then returns:
wrong syntax

ERROR

SEND OK
You have to follow strictly the sequence:
 AT+CIPSEND=0,5 (asked the ESP to send 5 character)

ESP will prompt you with
>

you have to type only 12345, the ESP will respond with
SEND OK

and you should find the packet in the PS traffic panel. Be sure that you haven't firewall or other system that can block broadcast reception.
You can use wireshark for a more detailed check.

Let us know and good luck.
f

Juan Pinto

unread,
Apr 7, 2015, 12:05:13 PM4/7/15
to sou...@googlegroups.com
Ty so much Fulvio =), This noobs explanation was what I needed :P
 
I think my module is set by default on CWMODE=0 (None) And I Need to change that to 2 or 3.
AT+CWMODE wifi mode wifi AT+CWMODE=<mode> AT+CWMODE? AT+CWMODE=? 1= Sta, 2= AP, 3=both
 
I'll try this night.
 
Regards

Juan Pinto

unread,
Apr 7, 2015, 5:25:42 PM4/7/15
to sou...@googlegroups.com
Ok, now I can send packets from ESP, I receive: 
wrong syntax
ERROR
SEND OK

And on PacketSender I see the packet and the Data, 

I tried sending from PacketSender to ESP's IP and Port 8888, I get the ASCII value ok.

Here two screenshots:




So, I can do tests now!!, I will investigate :)

Regards
Message has been deleted

Fulvio Spelta

unread,
Apr 7, 2015, 6:21:09 PM4/7/15
to sou...@googlegroups.com
There's a sequence that I can't understand:
in terminal hardcopy you can see that after sending the 5 character the string 1234567890 is received:
+IPD=1,10:1234567890

but in the packetsender traffic log there isn't this packet. You can find only the 12345 and the following 123456789 packet.

I can't understand who has sent the 1234567890 packet and are strange the "wrong syntax" messages too.
Regards
f


Fulvio Spelta

unread,
Apr 7, 2015, 7:08:36 PM4/7/15
to sou...@googlegroups.com
Hi Dario, attached the log about the test you asked for.
As you can see, the binary strings with \r\n and other binary data are received correctly.


putty.log

Juan Pinto

unread,
Apr 7, 2015, 7:18:59 PM4/7/15
to sou...@googlegroups.com
Sorry, you're right, the first +IPD is my fault, I writed it on terminal this, the other 2 are sended from Packet Sender. 

So, only take care of the first "wrong syntax", anyway as you can see the packet is received.

Regards

Juan Pinto

unread,
Apr 7, 2015, 7:36:46 PM4/7/15
to sou...@googlegroups.com
Again, sorry by the double post, the wrong syntax error it's because the Arduino's Serial Monitor sends /r/n too, here a screenshot, 

If you see when I use AT+CIPSEND=1,5 the packet is sended from port 8888 but if I use AT+CIPSEND=0,5 the port is 47931... :S

Regards

Fulvio Spelta

unread,
Apr 7, 2015, 8:26:42 PM4/7/15
to sou...@googlegroups.com
If you see when I use AT+CIPSEND=1,5 the packet is sended from port 8888 but if I use AT+CIPSEND=0,5 the port is 47931... :S

It's correct because you are using 2 different channels.
When you use "=1" than you are using the channel that you've created on port source 8888  and when you use "=0" you are using a channel that have 8888 as destination port but source is free so the ESP choose a random port as source port.

In UDP/TCP communication there are alway 2 socket: the source and the destination and the data transfer is performed through this sockets.

Usually you can ignore the source socket, eg in http browsing you have to connect to socket 80 of the server but what socket you are using on the client has no effect. The role of the source socket is defined by the protocol you are using.

Regards

Fulvio Spelta

unread,
Apr 7, 2015, 8:39:31 PM4/7/15
to sou...@googlegroups.com
My firmware doesn't permit the AT+CIPSEND=1 (without a previous AT+CIPSTART) so in my case i always send data from a random source port.

Could you post the entire sequence of AT commands. This differences seems a bit strange.
Regards

my test:
AT+CIPSERVER=1,8888


OK
AT
+CIPSEND=1,10
link
is not

AT
+CIPSTART=0,"UDP","192.168.10.255",8888



OK
AT
+CIPSEND=1,10
link
is not
AT
+CIPSEND=1,10
link
is not
AT
+CIPSEND=0,10
> 1234567890
SEND OK


if I use a double START vs the same address the fw hangs (commands issued immediatly following the previous posted):
AT+CIPSTART=1,"UDP","192.168.10.255",8888


OK
AT
+CIPSEND=1,10
busy345678901234567890
busy
busy
busy
busyST




Di Maio, Dario

unread,
Apr 8, 2015, 2:28:58 AM4/8/15
to sou...@googlegroups.com

Hi Fulvio,

I've to admin that ESP firmware developers did a good job.

I've no more excuses, I have to complete the code for vNet :)

Thanks,
Dario.

From Mobile.

Darren Siepka

unread,
Apr 9, 2015, 6:08:57 AM4/9/15
to sou...@googlegroups.com

My two esp01 arrived this morning, bit late to help with testing sorry :-( ,
But , wow they are tiny, with a micro and the tiny 12864 oleds I got in they will make fantastic WiFi thermostats. The esp01 is almost half the size or nrlf wireless board and only the size of the jack on the wired network boards!
Darren

Time to go Friariello upgrade!

--
You received this message because you are subscribed to a topic in the Google Groups "souliss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/souliss/6q0Vj0PPPE8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to souliss+u...@googlegroups.com.

To post to this group, send email to sou...@googlegroups.com.

Di Maio, Dario

unread,
Apr 9, 2015, 6:50:24 AM4/9/15
to sou...@googlegroups.com
Hi Darren,

could you please post some pictures with an ESP near an nRF?

Actually I'm still developing the code for Friariello with support for ESP, but it will be ready within this week. Please follow the Fulvio's instruction to get a minimal IP broadcasting settings, this will help us to understand if all the modules has been shipped with the same firmware.

My worry is that every vendor load a different one, and this may break the compatibility with upper library.

Let me know.

Thanks,
Dario.

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.

To post to this group, send email to sou...@googlegroups.com.

Darren Siepka

unread,
Apr 9, 2015, 7:12:40 AM4/9/15
to sou...@googlegroups.com

From top
Mini enc28j60
Enc28j60 with onboard 3.3v reg
Short range nrf
Esp01
Long range nrf

In the other picture the short range nrf is mounted on its 3.3v piggy board
The esp01 also fits on the piggy board but I will have to check its pinnout.

The mini boards, and display all run on 3.3v so make a good combo with the esp01
See pic 3 for them

Just for fun in 4th pic , esp01 next to an uno and mega2560
Darren

IMG_20150409_120256682.jpg
IMG_20150409_120218871.jpg
IMG_20150409_120946006.jpg
IMG_20150409_121119894.jpg

Di Maio, Dario

unread,
Apr 9, 2015, 7:26:08 AM4/9/15
to sou...@googlegroups.com
I rember that nRF impressed me for the small size, but the ESP is really small. Nice.

Dario.

Darren Siepka

unread,
Apr 9, 2015, 7:45:10 AM4/9/15
to sou...@googlegroups.com

And I think it is the esp05 which has an external antenna is even smaller still only 15mm x 15mm!
Darren

penalve.sergio

unread,
Apr 9, 2015, 9:46:55 AM4/9/15
to sou...@googlegroups.com
Hi to all I try to broadcast in mode 3 AP(acces point) and work 
 
esp-01(AP) ---dhcp-->pc
 

I have some trouble with len of data :( this is the code test
 
 
#include "SoftwareSerial.h"
SoftwareSerial debug(8,9);
  int del=5000 ;
 
 
char *esp_at(char *at_cmd){
  int  i=0;
  char cad[300]="\0";
  char c;
   
  Serial.write("AT\r\n");
  delay(del);
 
 if (Serial.available()){
 
  Serial.write(at_cmd);
  delay(del);
  while(Serial.available()>0)
  {
  c=Serial.read();
  cad[i]=c;
  i++;
  }
 
 }
 
 return(cad);
 cad[0]='\0';
}

void setup()
{
  debug.begin(9600);
  Serial.begin(115200);
 
 
  //stand alone
  /*
  debug.print(esp_at("AT+CWMODE=1\r\n")); 
  delay(del);
  debug.print(esp_at("AT+CWJAP=\"ssid\",\"pass\"\r\n")); 
  delay(del);
  /*debug.print(esp_at("AT+CIFSR\r\n")); 
  delay(del);*/
  /*
  debug.print(esp_at("AT+CIPMUX=0\r\n")); 
  delay(del);
  debug.print(esp_at("AT+CIPSTART=0,\"UDP\",\"192.168.4.255\",8888\r\n")); 
  delay(del);
  debug.print(esp_at("AT+CIPMODE=0\r\n")); 
  delay(del); 
  debug.print(esp_at("AT+CIPSEND=0,9\r\n")); 
  delay(del);
  debug.print(esp_at("123456789\r\n")); 
  delay(del);
    */
  
  //AP
  debug.print(esp_at("AT+CWMODE=3\r\n")); 
  delay(del);
  debug.print(esp_at("AT+CWSAP=\"ESP\",\"hola\",11,0\r\n")); 
  delay(del);
  debug.print(esp_at("AT+CWDHCP=0,0\r\n")); 
  delay(del);
  debug.print(esp_at("AT+CIPMUX=1\r\n")); 
  delay(del);
  debug.print(esp_at("AT+CIPSTART=1,\"UDP\",\"192.168.4.255\",8888\r\n")); 
  delay(del);
 /* debug.print(esp_at("AT+CIPMODE=0\r\n")); 
  delay(del);*/ 
  debug.print(esp_at("AT+CIPSEND=1,9\r\n")); 
  delay(del);
  debug.print(esp_at("123456789\r\n")); 
  delay(del);
 
   
}

void loop(){
 
  
}

 

Juan Pinto

unread,
Apr 9, 2015, 11:47:07 AM4/9/15
to sou...@googlegroups.com
Here you can see a table with the different ESP modules, mine is ESP12 16mm x 24mm, but with the shield it's a little bigger:
 
Regards.

Darren Siepka

unread,
Apr 9, 2015, 12:51:25 PM4/9/15
to sou...@googlegroups.com

It would be interesting to see what the range/performance of the different versions varies like .
I think mounting the esp09 might be tricky on some perfboard or a plugboard for testing he he

Di Maio, Dario

unread,
Apr 10, 2015, 6:49:33 PM4/10/15
to sou...@googlegroups.com
Hi Fulvio,

the branch friariello-esp8266 has been completed, it compiles and need to be deeply evaluated and tested. I would ask you to have a look in the code and try it with your wifi modules. The code is available here (https://github.com/souliss/souliss/tree/friariello-esp8266) and the example no.07 in the ethernet folder has been modified to support the esp8266.

Please consider the following, the gateway node shall be based on a Wiznet device and the ESP8266 node can only be a peer. You need a friariello based gateway with support for Media3 (IP Broadcast) for that reason, the best is to setup two nodes that aren't in your current home setup.

If you haven't an additional wiznet shield, you can reprogram one DINo acting as bridge, programming it as a friariello gateway. Your setup will have two gateways, the actual one and the friariello one. The friariello gateway will be seen as peer by the actual gateway and you will not lose any functionality.

Regards,
Dario.

Juan Pinto

unread,
Apr 10, 2015, 9:52:06 PM4/10/15
to sou...@googlegroups.com
I haven't a W5100 :( I will buy one... am using ENC28J60 for a long
time and I think its time to spend 5$ on a W5100... xDD

Ty very much for your work Dario! If you need test with ENC just tell me :P

Regards
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "souliss" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/souliss/6q0Vj0PPPE8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> souliss+u...@googlegroups.com.
> To post to this group, send email to sou...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/souliss/CAKGhMP%2BxY9K2iyfCnrjJ2Pdqk3tK_Y3gyvyQGevpzy43umOgiQ%40mail.gmail.com.

Di Maio, Dario

unread,
Apr 11, 2015, 3:38:17 AM4/11/15
to sou...@googlegroups.com

Hi Juan,

Also the ENC will be supported in this configuration, but actually Friariello has never been tested with ENC and that's why at this step we should start with W5100.

If you can test the ENC with friariello, open a topic and I will describe you the required test.

Thanks,
Dario.

From Mobile.

You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.

To post to this group, send email to sou...@googlegroups.com.

Juan Pinto

unread,
Apr 11, 2015, 10:24:41 AM4/11/15
to sou...@googlegroups.com

Ok I've one more enc, Ill build another gateway with friariello for this tests. I don't update to friariello my main gateway until it's tested, I use Souliss everyday at home now :)

Regards

dcarvetta

unread,
Apr 11, 2015, 12:13:21 PM4/11/15
to sou...@googlegroups.com
Hi Dario,
I have right now, as spare parts, a gateway node based on a Wiznet 5100 device and two ESP-01 (ESP8266) devices.
I understood that the gateway must be friariello based with support for Media3 (IP Broadcast); but I didn't understand how to build a peer.
Describe me the testing setup, if I can do something like that.

Fulvio Spelta

unread,
Apr 11, 2015, 12:17:31 PM4/11/15
to sou...@googlegroups.com
Hi Dario (and all),
about the test you asked me: find the ip address of the message sender when the ESP is listening, following some exemples:

Test 1 - Using AT server command

Inizialize and connect to the wifi:
----------------------------------------------------------------------
AT+CWJAP="<ssid>","<password>"


OK
AT+CIFSR

192.168.10.137
----------------------------------------------------------------------

Start multiconnection and server mode:
----------------------------------------------------------------------
AT+CIPMUX=1


OK
AT+CIPSERVER=1,8888


OK
Link
----------------------------------------------------------------------

Now I've sent messages direct to ESP IP address from 2 different pc using packetsender,
as you can see the command AT+STATUS return the sender's IP address and port:
----------------------------------------------------------------------
+IPD,0,27:Invio UDP da 192.168.10.110
OK
AT+CIPSTATUS

STATUS:3
+CIPSTATUS:0,"UDP","192.168.10.110",8888,1

OK

+IPD,0,26:Invio UDP da 192.168.10.50
OK
AT+CIPSTATUS

STATUS:3
+CIPSTATUS:0,"UDP","192.168.10.50",230,1

OK
----------------------------------------------------------------------

I've repeated the test sending the messages to broadcast,
and I've sent an answer using AT+SEND to the receiving channel
the result was that the answers were correctly received by the senders:
----------------------------------------------------------------------
+IPD,0,39:Invio UDP da 192.168.10.50 to BroadCast
OK
AT+CIPSTATUS

STATUS:3
+CIPSTATUS:0,"UDP","192.168.10.50",230,1

OK
AT+CIPSEND=0,6

> GRAZIE
SEND OK

+IPD,0,41:Invio UDP da 192.168.10.110 VIA BROADCAST
OK
AT+CIPSTATUS

STATUS:3
+CIPSTATUS:0,"UDP","192.168.10.110",8888,1

OK
AT+CIPSEND=0,6

> GRAZIE
SEND OK
----------------------------------------------------------------------

So you can retreive the sender address using the AT+STATUS
and you can send back data using the AT+SEND command over the same channel you have received the data.

To use this technique its mandatory that no other message has to be received before sending the answer otherwise data will be sent to the wrong IP.

To be sure to send data to the intended IP I think that should be better to use the AT+START command, Ill try and post a test.
f

Fulvio Spelta

unread,
Apr 11, 2015, 12:45:57 PM4/11/15
to sou...@googlegroups.com
More on answering to the sender. The log (i omit the WiFi join and server start because they are the same as the previous post):
----------------------------------------------------------------------
+IPD,0,41:Invio UDP da 192.168.10.110 VIA BROADCAST
OK
AT+CIPSTATUS

STATUS:3
+CIPSTATUS:0,"UDP","192.168.10.110",8888,1

OK
AT+CIPSTART=0,"UDP","192.168.10.110",8888

ALREAY CONNECT

+IPD,0,39:Invio UDP da 192.168.10.50 to BroadCast
OK
AT+CIPSTATUS

STATUS:3
+CIPSTATUS:0,"UDP","192.168.10.50",230,1

OK
AT+CIPSTART=0,"UDP","192.168.10.110",8888

ALREAY CONNECT
AT+CIPSEND=0,6

> GRAZIE
SEND OK
----------------------------------------------------------------------

This test show that the channel where the data were received is automatically linked to the sender of the last message infact the command AT+CIPSTART on channel 0 always returns an error and the data that i sent in the test was received from the .50 pc that was the last sender even if i've issued a AT+CIPSTART command versus .110.

Using AT+CIPSTART on other channel (commands issued following the previous ones):
----------------------------------------------------------------------
AT+CIPSTART=1,"UDP","192.168.10.110",8888


OK
AT+CIPSEND=0,6

> GRAZIE
SEND OK
AT+CIPSEND=1,6

> GRAZIE
SEND OK
----------------------------------------------------------------------

the GRAZIE message was received from the .110 pc.
f

Di Maio, Dario

unread,
Apr 11, 2015, 2:04:49 PM4/11/15
to sou...@googlegroups.com

Hi Domenico,

is still an earlier development stage, so for now you can only repeat the test as Fulvio did, this to ensure compatibility of your firware with that AT command set.

Regards,
Dario.

From Mobile.

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

Di Maio, Dario

unread,
Apr 11, 2015, 2:11:21 PM4/11/15
to sou...@googlegroups.com

Fulvio, your test shows that we may be able to use the esp based nodes even as a gateway.

Please check the following sentence:
1) esp start listening on 230 on sock0
2) esp open a write channel on 230 sock1
3) incoming message goes at vNet/MaCaco, at this level we can understand if is an user interface. If so, we get from the module the IP address
4) for each user interface we open a new write socket.

Can I have multiple socket on different IP address but same destination port?

Regards,
Dario.

From Mobile.

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.

Fulvio Spelta

unread,
Apr 11, 2015, 6:49:39 PM4/11/15
to sou...@googlegroups.com

Please check the following sentence:

1) esp start listening on 230 on sock0 (I've used 8888 because of interference from production souliss)

AT+CWJAP="<ssid>","<password>"

OK
AT+CIPMUX=1

OK
AT+CIPSERVER=1,8888

OK
 

2) esp open a write channel on 230 sock1

AT+CIPSTART=1,"UDP","192.168.10.255",8888

OK
Link

3) incoming message goes at vNet/MaCaco, at this level we can understand if is an user interface. If so, we get from the module the IP address

+IPD,0,35:UDP FROM 192.168.10.110 - INTERFACE
OK

4) for each user interface we open a new write socket.

AT+CIPSTART=2,"UDP","192.168.10.110",8888

OK

5) sending data on each interface
AT+CIPSEND=2,4
> CIAO
SEND OK
AT+CIPSEND=1,4
> CALL
SEND OK
AT+CIPCLOSE=2

OK

the messages:

note that source socket differs from direct and broadcast message.

Can I have multiple socket on different IP address but same destination port

In the test we used 2 connection with different IP and same destination port but I think that coud be errors using mora connection at same time:
AT+CWJAP="<ssid>","password"

OK
AT+CIPMUX=1

OK
AT+CIPSTART=1,"UDP","192.168.10.255",8888

OK
AT+CIPSTART=2,"UDP","192.168.10.110",8888

OK
AT+CIPSTART=3,"UDP","192.168.10.50",8888

OK
AT+CIPSEND=2,5
> CIAOO
SEND OK
AT+CIPSEND=3,5
> 1234567
as you can see the last send hangs.
 

Fulvio Spelta

unread,
Apr 11, 2015, 6:52:51 PM4/11/15
to sou...@googlegroups.com
It hangs even using different port for each connection:
AT+CWJAP="<ssid>","<password>"

OK
AT+CIPMUX=1

OK
AT+CIPSTART=1,"UDP","192.168.10.255",8888

OK
AT+CIPSTART=2,"UDP","192.168.10.110",8889

OK
AT+CIPSTART=3,"UDP","192.168.10.50",8887

OK
AT+CIPSEND=2,4
> CIAO
SEND OK
AT+CIPSEND=3,4
> 123445566

Fulvio Spelta

unread,
Apr 11, 2015, 6:56:24 PM4/11/15
to sou...@googlegroups.com
It seems that closing the connection after sending data works:
AT+CWJAP="<ssid>","password"

OK
AT+CIPMUX=1

OK
AT+CIPSTART=1,"UDP","192.168.10.255",8888

OK
AT+CIPSEND=1,4
> CIAO
SEND OK
AT+CIPCLOSE=1

OK
Unlink
AT+CIPSTART=1,"UDP","192.168.10.110",8888

OK
AT+CIPSEND=1,4
> CAOO
SEND OK
AT+CIPCLOSE=1

OK
Unlink
AT+CIPSTART=1,"UDP","192.168.10.50",8888

OK
AT+CIPSEND=1,4
> CIAO
SEND OK
AT+CIPCLOSE=1

OK
Unlink

It is loading more messages.
0 new messages