First attempt to install EasyESP

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
chrille
Normal user
Posts: 88
Joined: 26 Aug 2015, 15:11
Location: Horsens, Denmark

First attempt to install EasyESP

#1 Post by chrille » 31 Aug 2015, 13:13

Hi,
First of all - thank you very much for starting this project. Even at the current stage it looks like a really useful piece of software. I did my first install today. Code is R16 build on Mac using the ESP8266 Arduino staging release from august 10. Software was flashed using Raspberry Pi/Linux. So far my experience has been

- EasyESP did not show up as a wireless AP
- I did however connect to my wifi and after finding the IP in my router's ARP table I could connect
- The serial terminal logs, but does not accept any commands. This is a bit strange since it's the exact same physical setup as I use for flashing so TX/RX is known to be working
- In the GUI, under config, there's an option called "Fixed IP octet" right before the fields to configure IP/netmask/gateway - what is this?
- When adding a device, the "formula" field contained garbage. This is probably leftover from another software that had been running on the module
- Syslog messages does not work - I see entries like

Aug 31 11:25:24 <hostname> �#001#030�4�j#032>027�#000#000#000#000�� @
Aug 31 11:25:53 <hostname> �#001#030�4�j#032>027�#000nectFai

Have the software been tested using the staging version of Arduino (based on SDK 1.3) or only tested on the release (SDK 1.2)

(edit: Added on syslog not working)

Regards
Jan
Jan Chrillesen, Denmark

Martinus

Re: First attempt to install EasyESP

#2 Post by Martinus » 31 Aug 2015, 14:51

chrille wrote:EasyESP did not show up as a wireless AP
Does it show up during boot now for approx 1 minute?
chrille wrote:The serial terminal logs, but does not accept any commands. This is a bit strange since it's the exact same physical setup as I use for flashing so TX/RX is known to be working
This could be an issue with line break settings. I use "Both NL & CR"
chrille wrote:In the GUI, under config, there's an option called "Fixed IP octet" right before the fields to configure IP/netmask/gateway - what is this?
This is something that may be removed from the system. But it works like this:
The ESP gets the IP/DNS/GW from DHCP server on your network. After that, the last octet of the IP is changed to this fixed ip Octet. This way you can use DHCP for subnet/gw/dns and still have a static IP address.
chrille wrote:When adding a device, the "formula" field contained garbage. This is probably leftover from another software that had been running on the module
The system should do a factory reset on version change so this should not happen.
But i just checked the code on this and the formula part has a bug. Will be fixed in the next release.
chrille wrote:Syslog messages does not work
Just checked here, looks normal. But this may be dependent on the type of syslog server. What syslog server are you using?
chrille wrote:Have the software been tested using the staging version of Arduino (based on SDK 1.3) or only tested on the release (SDK 1.2)
Current development is done on staging release (1.6.5-1044, august 10th) based on SDK 1.3

chrille
Normal user
Posts: 88
Joined: 26 Aug 2015, 15:11
Location: Horsens, Denmark

Re: First attempt to install EasyESP

#3 Post by chrille » 31 Aug 2015, 20:04

Martinus wrote:Does it show up during boot now for approx 1 minute?
tried to reboot, and also tried reset and reboot. But it did not show up. Eventually, after more reboots it suddenly went into AP mode.
Is it supposed to always enter AP mode upon startup, or only if connection to the normal wifi network fails?
This could be an issue with line break settings. I use "Both NL & CR"
Correct. On Windows CR/LF seems to be default behaviour, while Mac and Unix/Linux only uses \n. This is the same issue we see with the AT software from Espressif. Would you consider changing this?
This is something that may be removed from the system. But it works like this:
The ESP gets the IP/DNS/GW from DHCP server on your network. After that, the last octet of the IP is changed to this fixed ip Octet. This way you can use DHCP for subnet/gw/dns and still have a static IP address.
If I understand this correct, it's a combination of DHCP and static IP, where all IP information is provided by the DHCP server, but the last octet is overwritten by a static value. Correct? Personally I find it a bit confusing, and think you should either rely in the DHCP server a static IP, or configure manually
The system should do a factory reset on version change so this should not happen.
But i just checked the code on this and the formula part has a bug. Will be fixed in the next release.
Thank you
chrille wrote:Just checked here, looks normal. But this may be dependent on the type of syslog server. What syslog server are you using?
I am using rsyslogd on Ubuntu/ARMv7 (Beaglebone black)

Now I see a mix of correct syslog and garbage

Code: Select all

Aug 31 17:14:39 ESP Unit: 0 : Uptime 3 ConnectFailures 0 FreeMem 29424
Aug 31 17:14:39 ESP Unit: 0 : UDP  : Send Sysinfo message
Aug 31 17:14:39 <hostname> �#001#030�4�j#032>027000nectFai
Aug 31 17:14:39 ESP Unit: 0 : {"idx":123,"nvalue":0,"svalue":"0.00"}
Aug 31 17:15:09 ESP Unit: 0 : Uptime 3 ConnectFailures 1 FreeMem 29960
Aug 31 17:15:09 ESP Unit: 0 : UDP  : Send Sysinfo message
Aug 31 17:15:09 <hostname> �#001#030�4�j#032>027000nectFai
Aug 31 17:15:09 ESP Unit: 0 : {"idx":123,"nvalue":0,"svalue":"0.00"}
I might try to do a tcpdump/capture later and try to figure out what's going on
Jan Chrillesen, Denmark

rtenklooster
Normal user
Posts: 320
Joined: 15 Apr 2015, 14:17

Re: First attempt to install EasyESP

#4 Post by rtenklooster » 31 Aug 2015, 20:43

Is your esp module powered the right way? I also got some garbage when it did not got enough current. I use at least 5v 500mAh PSU

Edit; i don't think this is your problem because mine rebooted a lot of time. Sorry for the misinformation :oops:
Richard - Groningen (NL) - Image

ILoveIOT
Normal user
Posts: 44
Joined: 01 Nov 2015, 10:54

Re: First attempt to install EasyESP

#5 Post by ILoveIOT » 07 Jan 2017, 04:02

I got also the wrong syslog message's, just found out that the syslog UDP port: has to be 0

Jan 7 04:00:49 192.168.50.194 ÿ#001\Ï#0234SÀ¨2Â#001“#000Brievenbus#000#000#000#000#000#000#000#000#000#000#000#000#000#000#000#001#000#000#000 :ÿ?¼)ÿ?Ô#000#000#000Ô#000#000#000#014#002#020@@#000#000#000¼Uÿ?ôIÿ?h#006#020@

Now its working fine, normal you put in "syslog" UDP port: 514, but if I leave it on 0, all the wrong messages are away, and the right ones are there.

Post Reply

Who is online

Users browsing this forum: No registered users and 28 guests