ESP32 boards

Moderators: Voyager, BertB, grovkillen, Stuntteam, LisaM

Message
Author
LisaM
Normal user
Posts: 513
Joined: 11 Apr 2017, 18:29

Re: ESP32 boards

#241 Post by LisaM » 25 Mar 2018, 16:30

Martinus wrote: 25 Mar 2018, 15:44
LisaM wrote: 25 Mar 2018, 15:41
Martinus wrote: 25 Mar 2018, 15:33
Noticed same here. DS sensor is working, but no data to Domoticz. Log does not reveal any clue.
Can you post the tail of your log? Let's say 20 lines?
The web log only shows this:

Code: Select all

2018-03-25 14:34:04 [debug] uPyEasy-uPyEasy: Utils: uPyEasy Name
2018-03-25 14:34:14 [debug] uPyEasy-uPyEasy: Pages: Authorize User!?
2018-03-25 14:34:14 [debug] uPyEasy-uPyEasy: Pages: Entering Devices Page
2018-03-25 14:34:14 [debug] uPyEasy-uPyEasy: Utils: uPyEasy Name
2018-03-25 14:34:14 [debug] uPyEasy-uPyEasy: Plugins: Read device test
2018-03-25 14:34:15 [debug] uPyEasy-uPyEasy: Plugin: ds18 read
2018-03-25 14:34:16 [debug] uPyEasy-uPyEasy: Plugins: Read device demo
2018-03-25 14:34:16 [debug] uPyEasy-uPyEasy: Plugin: switch read
2018-03-25 14:34:20 [debug] uPyEasy-uPyEasy: Pages: Authorize User!?
2018-03-25 14:34:20 [debug] uPyEasy-uPyEasy: Pages: Entering Advanced Page
2018-03-25 14:34:20 [debug] uPyEasy-uPyEasy: Pages: Display Advanced Page
2018-03-25 14:34:20 [debug] uPyEasy-uPyEasy: Utils: uPyEasy Name
2018-03-25 14:42:59 [debug] uPyEasy-uPyEasy: Pages: Authorize User!?
2018-03-25 14:43:00 [debug] uPyEasy-uPyEasy: Pages: Display Rules Page
2018-03-25 14:43:00 [debug] uPyEasy-uPyEasy: Utils: uPyEasy Name
2018-03-25 14:43:02 [debug] uPyEasy-uPyEasy: Pages: Authorize User!?
2018-03-25 14:43:03 [debug] uPyEasy-uPyEasy: Pages: Entering Tools Page
2018-03-25 14:43:03 [debug] uPyEasy-uPyEasy: 
2018-03-25 14:43:03 [debug] uPyEasy-uPyEasy: Pages: Display Tools Page
2018-03-25 14:43:03 [debug] uPyEasy-uPyEasy: Utils: uPyEasy Name
2018-03-25 14:43:05 [debug] uPyEasy-uPyEasy: Pages: Authorize User!?
2018-03-25 14:43:06 [debug] uPyEasy-uPyEasy: Pages: Entering Tools Page
2018-03-25 14:43:06 [debug] uPyEasy-uPyEasy: ucmd
2018-03-25 14:43:06 [debug] uPyEasy-uPyEasy: Pages: cmd: log
2018-03-25 14:43:06 [debug] uPyEasy-uPyEasy: Pages: Log command given
2018-03-25 14:43:06 [debug] uPyEasy-uPyEasy: Utils: uPyEasy Name
close
I have the same thing, the asyncio timing is NOT kicking off. Searching for the cause!

UPDATE 1: It is working on linux, there a sensor is read and kicked to domoticz every 10 seconds. Investigating why it doesn't work on a ESP32...

Code: Select all

2018-03-25 17:14:53 [debug] uPyEasy-Ubuntu: Plugin: test process
2018-03-25 17:14:53 [debug] uPyEasy-Ubuntu: Plugins: Scheduling Async processing plugin: Test
2018-03-25 17:14:54 [debug] uPyEasy-Ubuntu: Protocol Domoticz HTTP
2018-03-25 17:14:54 [debug] uPyEasy-Ubuntu: Protocol Domoticz HTTP: send SENSOR_TYPE_SWITCH
2018-03-25 17:14:54 [debug] uPyEasy-Ubuntu: Protocol Domoticz HTTP: SENSOR_TYPE_SWITCH
2018-03-25 17:14:54 [debug] uPyEasy-Ubuntu: Protocol Domoticz HTTP message: http://192.168.178.115:8000/json.htm?type=command&param=switchlight&idx=1245&switchcmd=On
2018-03-25 17:14:54 [debug] uPyEasy-Ubuntu: Protocol Domoticz HTTP response: {
   "status" : "OK",
   "title" : "SwitchLight"
}

Martinus

Re: ESP32 boards

#242 Post by Martinus » 25 Mar 2018, 16:37

Just did a fresh install of the latest firmware. Now it automatically connects to my neighbors Wifi printer (!).
It does not seem to listen to serial input. How to get it connect to my network again?

LisaM
Normal user
Posts: 513
Joined: 11 Apr 2017, 18:29

Re: ESP32 boards

#243 Post by LisaM » 25 Mar 2018, 16:47

Martinus wrote: 25 Mar 2018, 16:37 Just did a fresh install of the latest firmware. Now it automatically connects to my neighbors Wifi printer (!).
It does not seem to listen to serial input. How to get it connect to my network again?
Oops, :oops: , that's because in absence of the network config uPyEasy connects to the strongest open wifi network.
Just do a crtl-c so you end up on the REPL interface ( the '>>>') and do the setwifi command again. Reboot after that.

uPyEasy connects to the strongest open wifi network as part of an experiment i was conducting: if you make an open wifi network on your phone, uPyEasy connects to that one. Maybe that would make first time config easier.

Martinus

Re: ESP32 boards

#244 Post by Martinus » 25 Mar 2018, 17:15

Ok, i fixed it using crtl-c to get into repl again.

But wouldn't it be easier to launch an AP if no SSID is set, like we do with ESPEasy?

LisaM
Normal user
Posts: 513
Joined: 11 Apr 2017, 18:29

Re: ESP32 boards

#245 Post by LisaM » 25 Mar 2018, 17:17

Martinus wrote: 25 Mar 2018, 17:15 Ok, i fixed it using crtl-c to get into repl again.

But wouldn't it be easier to launch an AP if no SSID is set, like we do with ESPEasy?
In hindsight, that might very well be the case... :)

LisaM
Normal user
Posts: 513
Joined: 11 Apr 2017, 18:29

Re: ESP32 boards

#246 Post by LisaM » 25 Mar 2018, 17:23

LisaM wrote: 25 Mar 2018, 16:30
Martinus wrote: 25 Mar 2018, 15:44
LisaM wrote: 25 Mar 2018, 15:41
Can you post the tail of your log? Let's say 20 lines?
The web log only shows this:

Code: Select all

2018-03-25 14:34:04 [debug] uPyEasy-uPyEasy: Utils: uPyEasy Name
2018-03-25 14:34:14 [debug] uPyEasy-uPyEasy: Pages: Authorize User!?
2018-03-25 14:34:14 [debug] uPyEasy-uPyEasy: Pages: Entering Devices Page
2018-03-25 14:34:14 [debug] uPyEasy-uPyEasy: Utils: uPyEasy Name
2018-03-25 14:34:14 [debug] uPyEasy-uPyEasy: Plugins: Read device test
2018-03-25 14:34:15 [debug] uPyEasy-uPyEasy: Plugin: ds18 read
2018-03-25 14:34:16 [debug] uPyEasy-uPyEasy: Plugins: Read device demo
2018-03-25 14:34:16 [debug] uPyEasy-uPyEasy: Plugin: switch read
2018-03-25 14:34:20 [debug] uPyEasy-uPyEasy: Pages: Authorize User!?
2018-03-25 14:34:20 [debug] uPyEasy-uPyEasy: Pages: Entering Advanced Page
2018-03-25 14:34:20 [debug] uPyEasy-uPyEasy: Pages: Display Advanced Page
2018-03-25 14:34:20 [debug] uPyEasy-uPyEasy: Utils: uPyEasy Name
2018-03-25 14:42:59 [debug] uPyEasy-uPyEasy: Pages: Authorize User!?
2018-03-25 14:43:00 [debug] uPyEasy-uPyEasy: Pages: Display Rules Page
2018-03-25 14:43:00 [debug] uPyEasy-uPyEasy: Utils: uPyEasy Name
2018-03-25 14:43:02 [debug] uPyEasy-uPyEasy: Pages: Authorize User!?
2018-03-25 14:43:03 [debug] uPyEasy-uPyEasy: Pages: Entering Tools Page
2018-03-25 14:43:03 [debug] uPyEasy-uPyEasy: 
2018-03-25 14:43:03 [debug] uPyEasy-uPyEasy: Pages: Display Tools Page
2018-03-25 14:43:03 [debug] uPyEasy-uPyEasy: Utils: uPyEasy Name
2018-03-25 14:43:05 [debug] uPyEasy-uPyEasy: Pages: Authorize User!?
2018-03-25 14:43:06 [debug] uPyEasy-uPyEasy: Pages: Entering Tools Page
2018-03-25 14:43:06 [debug] uPyEasy-uPyEasy: ucmd
2018-03-25 14:43:06 [debug] uPyEasy-uPyEasy: Pages: cmd: log
2018-03-25 14:43:06 [debug] uPyEasy-uPyEasy: Pages: Log command given
2018-03-25 14:43:06 [debug] uPyEasy-uPyEasy: Utils: uPyEasy Name
close
I have the same thing, the asyncio timing is NOT kicking off. Searching for the cause!

UPDATE 1: It is working on linux, there a sensor is read and kicked to domoticz every 10 seconds. Investigating why it doesn't work on a ESP32...

Code: Select all

2018-03-25 17:14:53 [debug] uPyEasy-Ubuntu: Plugin: test process
2018-03-25 17:14:53 [debug] uPyEasy-Ubuntu: Plugins: Scheduling Async processing plugin: Test
2018-03-25 17:14:54 [debug] uPyEasy-Ubuntu: Protocol Domoticz HTTP
2018-03-25 17:14:54 [debug] uPyEasy-Ubuntu: Protocol Domoticz HTTP: send SENSOR_TYPE_SWITCH
2018-03-25 17:14:54 [debug] uPyEasy-Ubuntu: Protocol Domoticz HTTP: SENSOR_TYPE_SWITCH
2018-03-25 17:14:54 [debug] uPyEasy-Ubuntu: Protocol Domoticz HTTP message: http://192.168.178.115:8000/json.htm?type=command&param=switchlight&idx=1245&switchcmd=On
2018-03-25 17:14:54 [debug] uPyEasy-Ubuntu: Protocol Domoticz HTTP response: {
   "status" : "OK",
   "title" : "SwitchLight"
}
UPDATE2: I suspect this has something to do with the problem:

Code: Select all

2000-01-01 00:00:16 [debug] uPyEasy-ESP32-DOIT: Hal: StartTime: 575307160
2018-03-25 15:32:40 [debug] uPyEasy-ESP32-DOIT: Set time: 2018-03-25T15:32:40
The async loops for plugins and protocols are scheduled to start one seconds later then 2000-01-01, but... due to the ntp time switch this moment never materilizes because the main async loop is started later then that moment. Testing if this is true.

UPDATE3: Nope, didn't work.... :cry:

BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: ESP32 boards

#247 Post by BertB » 25 Mar 2018, 18:34

What version is uploaded last? What time was that?
Just installed a version, say 10 minutes back.
It had the boot.py stuff on board :-)

First created a BME280. That went fine.
Then I wanted to create a DS18B20 and, right after the submit the browser told me that the connection got re inititialized.
stack: 2032 out of 15360
GC: total: 96000, used: 73984, free: 22016
No. of 1-blocks: 1253, 2-blocks: 153, max blk sz: 902, max free sz: 128
575313997.268 <HTTPRequest object at 3ffba410> <StreamWriter <socket>> "GET /dev ice_setting?id=0"
2018-03-25 17:26:39 [debug] uPyEasy-uPyEasy: Pages: Authorize User!?
2018-03-25 17:26:39 [debug] uPyEasy-uPyEasy: Pages: Entering Device Settings Pag e
2018-03-25 17:26:40 [debug] uPyEasy-uPyEasy: Pages: GET
2018-03-25 17:26:40 [debug] uPyEasy-uPyEasy: id
2018-03-25 17:26:40 [debug] uPyEasy-uPyEasy: 0
2018-03-25 17:26:40 [debug] uPyEasy-uPyEasy: Pages: id: 0
2018-03-25 17:26:40 [debug] uPyEasy-uPyEasy: Pages: New Device, choose plugin
2018-03-25 17:26:40 [debug] uPyEasy-uPyEasy: Utils: uPyEasy Name
stack: 2032 out of 15360
GC: total: 96000, used: 80368, free: 15632
No. of 1-blocks: 1297, 2-blocks: 162, max blk sz: 902, max free sz: 238
575313997.268 <HTTPRequest object at 3ffc0d50> <StreamWriter <socket>> "GET /sta tic/upyeasy.css"
stack: 2032 out of 15360
GC: total: 96000, used: 81920, free: 14080
No. of 1-blocks: 1342, 2-blocks: 169, max blk sz: 902, max free sz: 238
575313997.268 <HTTPRequest object at 3ffc4e00> <StreamWriter <socket>> "GET /sta tic/upyeasy.js"
static/upyeasy.css
static/upyeasy.js
stack: 2032 out of 15360
GC: total: 96000, used: 92864, free: 3136
No. of 1-blocks: 1520, 2-blocks: 191, max blk sz: 902, max free sz: 195
575313997.268 <HTTPRequest object at 3ffc9ca0> <StreamWriter <socket>> "POST /de vice_setting?id=0"
2018-03-25 17:26:47 [debug] uPyEasy-uPyEasy: Pages: Authorize User!?
2018-03-25 17:26:47 [debug] uPyEasy-uPyEasy: Pages: Entering Device Settings Pag e
2018-03-25 17:26:47 [debug] uPyEasy-uPyEasy: Pages: POST
2018-03-25 17:26:47 [debug] uPyEasy-uPyEasy: id
2018-03-25 17:26:47 [debug] uPyEasy-uPyEasy: 0
2018-03-25 17:26:47 [debug] uPyEasy-uPyEasy: New Plugin: 4
2018-03-25 17:26:47 [debug] uPyEasy-uPyEasy: Pages: Create Device
2018-03-25 17:26:47 [debug] uPyEasy-uPyEasy: Pages: New Device and plugin choose n: 4
2018-03-25 17:26:48 [debug] uPyEasy-uPyEasy: Utils: uPyEasy Name
2018-03-25 17:26:49 [debug] uPyEasy-uPyEasy: Plugins: Init device: dummy with pl ugin: 4
2018-03-25 17:26:49 [debug] uPyEasy-uPyEasy: Protocols: GetQueue controller 192. 168.0.243-Domoticz HTTP-1
2018-03-25 17:26:49 [debug] uPyEasy-uPyEasy: Plugin: ds18 contruction
2018-03-25 17:26:49 [debug] uPyEasy-uPyEasy: Plugin: ds18 contruction
2018-03-25 17:26:49 [debug] uPyEasy-uPyEasy: Plugins: Init device: dummy ,instan tiate plugin: DS18B20
2018-03-25 17:26:49 [debug] uPyEasy-uPyEasy: Utils: uPyEasy Name
2018-03-25 17:26:50 [debug] uPyEasy-uPyEasy: Plugin: ds18 init
2018-03-25 17:26:50 [debug] uPyEasy-uPyEasy: Plugins: Read device store: dummy
2018-03-25 17:26:50 [debug] uPyEasy-uPyEasy: Plugin: ds18 init, pin used:
2018-03-25 17:26:50 [debug] uPyEasy-uPyEasy: Hal: pin =
575313997.268 <HTTPRequest object at 3ffc9ca0> <StreamWriter <socket>> Attribute Error("'NoneType' object has no attribute 'init'",)
Traceback (most recent call last):
File "picoweb/__init__.py", line 186, in _handle
File "upyeasy/pages.py", line 1249, in devicesettingpage
File "upyeasy/plugin.py", line 118, in initdevice
File "upyeasy/plugins/ds18.py", line 88, in init
File "onewire.py", line 17, in __init__
AttributeError: 'NoneType' object has no attribute 'init'
After reboot (reset button) the browser continued in the DS18B20 config page and I could complete the setup.

karl222
Normal user
Posts: 90
Joined: 23 Aug 2017, 17:18
Location: Vienna

Re: ESP32 boards

#248 Post by karl222 » 25 Mar 2018, 20:28

Can you pls post your steps to success ;)

BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: ESP32 boards

#249 Post by BertB » 25 Mar 2018, 21:41

What can I say. It looks good, but there are no updates.
Probable has something to do with beta testing ;-)

karl222
Normal user
Posts: 90
Joined: 23 Aug 2017, 17:18
Location: Vienna

Re: ESP32 boards

#250 Post by karl222 » 25 Mar 2018, 21:48

Yeah, I have a running esp32!!!!! :D :D :D
Here are the steps that got my esp32 up and running:

press RST button before plugging in usb
Cmd window:
esptool.py --port COM4 erase_flash

esp32>esptool.py --port COM4 write_flash --compress 0x1000 upyeasy_v021_20180325_test_esp32_4096.bin

putty:
import upyeasy
upyeasy.main()
upyeasy.setwifi('xxx', 'yyy')

Thanks to all and Special thanks to Lisa!!!!!!

regards
Karl

karl222
Normal user
Posts: 90
Joined: 23 Aug 2017, 17:18
Location: Vienna

Re: ESP32 boards

#251 Post by karl222 » 25 Mar 2018, 21:55

It is not possible to set IP Settings in Config tab. Can this somehow be changed.

regards
karl

AndrewJ
Normal user
Posts: 229
Joined: 14 Feb 2017, 12:38

Re: ESP32 boards

#252 Post by AndrewJ » 25 Mar 2018, 22:10

Hi Karl,
Great news! :D
Out of interest, which ESP32 model is it you are using there?

I agree with you, special thanks to LisaM for all her hard work on this! :D

Andrew

LisaM
Normal user
Posts: 513
Joined: 11 Apr 2017, 18:29

Re: ESP32 boards

#253 Post by LisaM » 25 Mar 2018, 23:30

karl222 wrote: 25 Mar 2018, 21:55 It is not possible to set IP Settings in Config tab. Can this somehow be changed.

regards
karl
Hmmm, checking...

@karl: can you verify the correct values are written in the config?
To verify:
- Goto webgui
- tools
- filesystem - files
- click on config
- click on network
- click the edit button
"ssid": and "key": should have the right values!

After changing the ssid values, a reboot is necessary.

I'm also busy with finding out why on all platforms async is work, except for the esp32... :x

karl222
Normal user
Posts: 90
Joined: 23 Aug 2017, 17:18
Location: Vienna

Re: ESP32 boards

#254 Post by karl222 » 26 Mar 2018, 06:34

Hi
Ssid and pw do have the right values, but i can’t enter values in ip settings field, they are greyed out...

karl222
Normal user
Posts: 90
Joined: 23 Aug 2017, 17:18
Location: Vienna

Re: ESP32 boards

#255 Post by karl222 » 26 Mar 2018, 08:28

AndrewJ wrote: 25 Mar 2018, 22:10 Hi Karl,
Great news! :D
Out of interest, which ESP32 model is it you are using there?

I agree with you, special thanks to LisaM for all her hard work on this! :D

Andrew
it is running on a NODEMCU ESP-32S V1 but i haven’t checked the other one yet.

regards
karl

LisaM
Normal user
Posts: 513
Joined: 11 Apr 2017, 18:29

Re: ESP32 boards

#256 Post by LisaM » 26 Mar 2018, 09:50

karl222 wrote: 26 Mar 2018, 06:34 Hi
Ssid and pw do have the right values, but i can’t enter values in ip settings field, they are greyed out...
So far, when using wifi uPyEasy is using dhcp to get the ip-address. Do you have a need to specify a specific ip-address?

karl222
Normal user
Posts: 90
Joined: 23 Aug 2017, 17:18
Location: Vienna

Re: ESP32 boards

#257 Post by karl222 » 26 Mar 2018, 10:05

Generally yes, i do most of stuff with fixed ip but i can do it via fixing on router level as well...

Regards
Karl

AndrewJ
Normal user
Posts: 229
Joined: 14 Feb 2017, 12:38

Re: ESP32 boards

#258 Post by AndrewJ » 26 Mar 2018, 18:36

LisaM wrote: 26 Mar 2018, 09:50
karl222 wrote: 26 Mar 2018, 06:34 Hi
Ssid and pw do have the right values, but i can’t enter values in ip settings field, they are greyed out...
So far, when using wifi uPyEasy is using dhcp to get the ip-address. Do you have a need to specify a specific ip-address?
Hi Lisa,
Just chipping in here if I may. In my case I would like to specify a fixed IP-address within the ESP32, please, as my wireless router only allows a limited number of fixed addresses in its table. :cry:
Cheers
Andrew

LisaM
Normal user
Posts: 513
Joined: 11 Apr 2017, 18:29

Re: ESP32 boards

#259 Post by LisaM » 26 Mar 2018, 22:26

V0.2.2 released, firmware can be found in the release section.

Issues solved:
- Async ESP32 not working (work-around implemented: devices should be sending data to domoticz now)

Features added:
- Fixed IP Address possible for ESP32

BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: ESP32 boards

#260 Post by BertB » 26 Mar 2018, 23:12

LisaM wrote: 26 Mar 2018, 22:26 V0.2.2 released, firmware can be found in the release section.

Issues solved:
- Async ESP32 not working (work-around implemented: devices should be sending data to domoticz now)

Features added:
- Fixed IP Address possible for ESP32
yep, it works :D
But there still is something funny going on.
When I first create a BME280 device and then a Dallas device, right after the selection of the dallas and clicking submit, the WEB connection with the ESP is broken and a have to reset the ESP board.
After that, I can continue setting up the dallas device.

BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: ESP32 boards

#261 Post by BertB » 26 Mar 2018, 23:34

Update:
The Dallas show up correctly in Domoticz.
The BME has two devices in Domoticz, one for temp and one for weather.
Neither one sohwas values, but 'last seen' is correct.

LisaM
Normal user
Posts: 513
Joined: 11 Apr 2017, 18:29

Re: ESP32 boards

#262 Post by LisaM » 27 Mar 2018, 00:07

BertB wrote: 26 Mar 2018, 23:34 Update:
The Dallas show up correctly in Domoticz.
The BME has two devices in Domoticz, one for temp and one for weather.
Neither one sohwas values, but 'last seen' is correct.
BME should be one device:
1244 VirtualSwitches 1452C 1 uPyEasy Test Temp_Hum_Baro Temp + Humidity + Baro THB1 - BTHR918, BTHGN129 0, 25.9326.24707;0;1014.779;0

AndrewJ
Normal user
Posts: 229
Joined: 14 Feb 2017, 12:38

Re: ESP32 boards

#263 Post by AndrewJ » 27 Mar 2018, 16:34

LisaM wrote: 26 Mar 2018, 22:26 V0.2.2 released, firmware can be found in the release section.

Issues solved:
- Async ESP32 not working (work-around implemented: devices should be sending data to domoticz now)

Features added:
- Fixed IP Address possible for ESP32
Hi Lisa,
Thanks for all your hard work on this! :)
I just tried the latest (20180326) binaries for ESP32 on my Lolin32 Lite board. Getting closer but still some issues.

2048.bin:
Working with only the BME280 and DomoticzMQTT, can see Async processes running, values being updated - all good.
BUT, when I tried to add DS18B20, after clicking Submit to select DS18B20 the bottom two thirds of the screen was the one for BME280 (I2C address, three value settings (Temp, Press, Hum)!
I tried 'Submit' at the bottom anyway...
The main Devices page showed the "real" BME280, plus a device with three values (Temperature, Pressue, Humidity)! (It's a mutant!! :o )

4096.bin:
Similar to above. OK with Domoticz and BME280, Async process running, values being updated, all good.
This time when I tried to add DS18B20, it crashed as soon as I clicked 'Submit' to select it. See log below.

Code: Select all

2018-03-27 15:06:20 [debug] uPyEasy-uPyEasy: Pages: Entering Device Settings Page
2018-03-27 15:06:20 [debug] uPyEasy-uPyEasy: Pages: POST
2018-03-27 15:06:20 [debug] uPyEasy-uPyEasy: id
2018-03-27 15:06:20 [debug] uPyEasy-uPyEasy: 0
2018-03-27 15:06:20 [debug] uPyEasy-uPyEasy: New Plugin: 4
2018-03-27 15:06:20 [debug] uPyEasy-uPyEasy: Pages: Create Device
2018-03-27 15:06:20 [debug] uPyEasy-uPyEasy: Pages: New Device and plugin choosen: 4
2018-03-27 15:06:21 [debug] uPyEasy-uPyEasy: Utils: uPyEasy Name
2018-03-27 15:06:22 [debug] uPyEasy-uPyEasy: Plugins: Init device: dummy with plugin: 4
2018-03-27 15:06:22 [debug] uPyEasy-uPyEasy: Protocols: GetQueue controller 192.168.1.12-Domoticz MQTT-1
2018-03-27 15:06:22 [debug] uPyEasy-uPyEasy: Plugin: ds18 contruction
2018-03-27 15:06:23 [debug] uPyEasy-uPyEasy: Plugin: ds18 contruction
2018-03-27 15:06:23 [debug] uPyEasy-uPyEasy: Plugins: Init device: dummy ,instantiate plugin: DS18B20
2018-03-27 15:06:23 [debug] uPyEasy-uPyEasy: Utils: uPyEasy Name
2018-03-27 15:06:23 [debug] uPyEasy-uPyEasy: Plugin: ds18 init
2018-03-27 15:06:23 [debug] uPyEasy-uPyEasy: Plugins: Read device store: dummy
2018-03-27 15:06:23 [debug] uPyEasy-uPyEasy: Plugin: ds18 init, pin used: 
2018-03-27 15:06:23 [debug] uPyEasy-uPyEasy: Hal: pin = 
Traceback (most recent call last):
  File "boot.py", line 3, in <module>
  File "upyeasy/__init__.py", line 65, in main
  File "picoweb/__init__.py", line 298, in run
  File "uasyncio/core.py", line 146, in run_forever
  File "uasyncio/core.py", line 101, in run_forever
  File "picoweb/__init__.py", line 210, in _handle
  File "picoweb/__init__.py", line 210, in _handle
AttributeError: 'Log' object has no attribute 'exc'
OSError: [Errno 2] ENOENT
MicroPython v1.9.3-479-gb63cc1e-dirty on 2018-03-26; ESP32 module with ESP32
Type "help()" for more information.
>>> 
Hope this helps to hunt down the problem.
So it looks like Async processes are fixed now, but an issue with DS18B20.
I really appreciate all the work you are doing on this. If there's any more information you'd like, let me know. Can I help in any way with debugging?

Cheers
Andrew

Martinus

Re: ESP32 boards

#264 Post by Martinus » 27 Mar 2018, 16:59

With the latest firmware, the Dallas sensor is working towards Domoticz and has been running for several hours.

One strange thing however:

This module has previously been used to check Dallas on ESPEasy32 and it has two dallas sensors attached (same pin).
uPyEasy has only 1 device configured but it seems to read both sensors anyway and it sends them both to Domoticz using the same IDX.

LisaM
Normal user
Posts: 513
Joined: 11 Apr 2017, 18:29

Re: ESP32 boards

#265 Post by LisaM » 27 Mar 2018, 17:17

Martinus wrote: 27 Mar 2018, 16:59 With the latest firmware, the Dallas sensor is working towards Domoticz and has been running for several hours.

One strange thing however:

This module has previously been used to check Dallas on ESPEasy32 and it has two dallas sensors attached (same pin).
uPyEasy has only 1 device configured but it seems to read both sensors anyway and it sends them both to Domoticz using the same IDX.
The ds18b20 plugin was a rush job to get it working, it was never intended to read two dallas sensors. I'm amazed it can actually do that... ;)
It definitely needs some improvements...

BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: ESP32 boards

#266 Post by BertB » 27 Mar 2018, 19:49

LisaM wrote: 27 Mar 2018, 00:07
BertB wrote: 26 Mar 2018, 23:34 Update:
The Dallas show up correctly in Domoticz.
The BME has two devices in Domoticz, one for temp and one for weather.
Neither one sohwas values, but 'last seen' is correct.
BME should be one device:
1244 VirtualSwitches 1452C 1 uPyEasy Test Temp_Hum_Baro Temp + Humidity + Baro THB1 - BTHR918, BTHGN129 0, 25.9326.24707;0;1014.779;0
I created a dummy device in Domotic, type: TEMP+HUM+BARO
upyeasy1 Ja Dummy (Does nothing, use for virtual switches only) Maak virtuele sensoren

And it appears like this in the devices list:
361 upyeasy1 141B9 1 UPYEASy Temp + Humidity + Baro THB1 - BTHR918, BTHGN129 0, 18.045.31738;0;1005.792;0
Attachments
UPYEASY2.PNG
UPYEASY2.PNG (9.07 KiB) Viewed 39627 times
UPYEASY1.PNG
UPYEASY1.PNG (7.32 KiB) Viewed 39629 times

LisaM
Normal user
Posts: 513
Joined: 11 Apr 2017, 18:29

Re: ESP32 boards

#267 Post by LisaM » 27 Mar 2018, 20:01

Looks like a Domoticz bug... The values are there...
bme1.JPG
bme1.JPG (17.83 KiB) Viewed 39625 times
bme2.JPG
bme2.JPG (18.53 KiB) Viewed 39625 times

AndrewJ
Normal user
Posts: 229
Joined: 14 Feb 2017, 12:38

Re: ESP32 boards

#268 Post by AndrewJ » 27 Mar 2018, 21:38

LisaM wrote: 26 Mar 2018, 22:26 V0.2.2 released, firmware can be found in the release section.

Issues solved:
- Async ESP32 not working (work-around implemented: devices should be sending data to domoticz now)

Features added:
- Fixed IP Address possible for ESP32
Update:
I forgot to mention before, the Fixed IP Address is working for me. Thanks! :D :D
Andrew

BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: ESP32 boards

#269 Post by BertB » 27 Mar 2018, 22:08

LisaM wrote: 27 Mar 2018, 20:01 Looks like a Domoticz bug... The values are there...
bme1.JPG

bme2.JPG
Probably not.
This is with the BME on a ESPEasy:
364 ESP16 141BC 1 BME1 Temp + Humidity + Baro THB1 - BTHR918, BTHGN129 22.0 C, 37 %, 1005 hPa

It looks like the string has a different format then.
Attachments
ESPEASY2.PNG
ESPEASY2.PNG (11.02 KiB) Viewed 39612 times
ESPEASY1.PNG
ESPEASY1.PNG (12.05 KiB) Viewed 39612 times

LisaM
Normal user
Posts: 513
Joined: 11 Apr 2017, 18:29

Re: ESP32 boards

#270 Post by LisaM » 27 Mar 2018, 22:22

BertB wrote: 27 Mar 2018, 22:08
LisaM wrote: 27 Mar 2018, 20:01 Looks like a Domoticz bug... The values are there...
bme1.JPG

bme2.JPG
Probably not.
This is with the BME on a ESPEasy:
364 ESP16 141BC 1 BME1 Temp + Humidity + Baro THB1 - BTHR918, BTHGN129 22.0 C, 37 %, 1005 hPa

It looks like the string has a different format then.
Owwwww, then it must be a uPyEasy domoticz http controller bug! I'll check this out...

BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: ESP32 boards

#271 Post by BertB » 09 May 2018, 11:54

Hi,
With the latest release, after installation and restart, I get:

Code: Select all

rst:0x10 (RTCWDT_RTC_RESET),boot:0x3e (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:4464
ho 0 tail 12 room 4
load:0x40078000,len:0
load:0x40078000,len:11816
entry 0x4007a9fc
I (467) cpu_start: Pro cpu up.
I (467) cpu_start: Single core mode
I (468) heap_init: Initializing. RAM available for dynamic allocation:
I (471) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (477) heap_init: At 3FFC4E98 len 0001B168 (108 KiB): DRAM
I (483) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (490) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (496) heap_init: At 4008DE34 len 000121CC (72 KiB): IRAM
I (502) cpu_start: Pro cpu start user code
I (73) cpu_start: Starting scheduler on PRO CPU.
I (140) modsocket: Initializing
Traceback (most recent call last):
  File "ulog.py", line 110, in do_log
  File "syslog_sink.py", line 78, in log
  File "usyslog.py", line 60, in error
  File "usyslog.py", line 82, in log
OSError: 118
2000-01-01 00:00:02 [error] uPyEasy: Hal: esp32, ssid empty
Traceback (most recent call last):
  File "ulog.py", line 110, in do_log
  File "syslog_sink.py", line 76, in log
  File "usyslog.py", line 72, in warning
  File "usyslog.py", line 82, in log
OSError: 118
2000-01-01 00:00:02 [warning] uPyEasy: Hal: init esp32 network: AP mode
I (2890) wifi: wifi firmware version: ebd3e5d
I (2890) wifi: config NVS flash: enabled
I (2890) wifi: config nano formating: disabled
I (2900) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (2910) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (2920) wifi: Init dynamic tx buffer num: 32
I (2920) wifi: Init data frame dynamic rx buffer num: 64
I (2930) wifi: Init management frame dynamic rx buffer num: 64
I (2930) wifi: wifi driver task: 3ffd0f0c, prio:23, stack:4096
I (2940) wifi: Init static rx buffer num: 10
I (2940) wifi: Init dynamic rx buffer num: 0
I (2940) wifi: wifi power manager task: 0x3ffd5b5c prio: 21 stack: 2560
I (3000) phy: phy_version: 383.0, 79a622c, Jan 30 2018, 15:38:06, 0, 0
I (3000) wifi: mode : null
I (3010) wifi: mode : softAP (30:ae:a4:22:e8:1d)
I (3010) network: event 13
I (3120) network: event 14
I (3120) network: event 13
2000-01-01 00:00:04 [info] uPyEasy-uPyEasy: Main: uPyEasy running in Access Point mode
2000-01-01 00:00:04 [info] uPyEasy-uPyEasy: Main: uPyEasy Main Async Loop on IP adress: 0.0.0.0:80
After that, no communication possible.

BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: ESP32 boards

#272 Post by BertB » 09 May 2018, 12:13

The above happens with two versions of the ESP32 board, with both the 4096 and the 2048 version.

With a third board, I got:

D:\Program Files\Python\Python36>python esptool-master\esptool.py --port COM5 write_flash --compress 0x1000 D:\Tools\uPython\upyeasy-esp32\upyeasy_v030_20180506_test_esp32_2048.bin
esptool.py v2.3-dev
Connecting....
Detecting chip type... ESP32
Chip is ESP32D0WDQ6 (revision 1)
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Flash params set to 0x0220
Compressed 1278000 bytes to 728894...
Writing at 0x0007d000... (71 %)
A fatal error occurred: Failed to write compressed data to flash after seq 31 (result was C100)

BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: ESP32 boards

#273 Post by BertB » 09 May 2018, 12:16

After a second attempt with one of the boards, with the 2048 version, I got:

Code: Select all

rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:4464
ho 0 tail 12 room 4
load:0x40078000,len:0
load:0x40078000,len:11816
entry 0x4007a9fc
I (465) cpu_start: Pro cpu up.
I (465) cpu_start: Single core mode
I (466) heap_init: Initializing. RAM available for dynamic allocation:
I (469) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (475) heap_init: At 3FFC4E98 len 0001B168 (108 KiB): DRAM
I (481) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (488) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (494) heap_init: At 4008DE34 len 000121CC (72 KiB): IRAM
I (500) cpu_start: Pro cpu start user code
I (71) cpu_start: Starting scheduler on PRO CPU.
I (140) modsocket: Initializing
Traceback (most recent call last):
  File "boot.py", line 3, in <module>
  File "upyeasy/__init__.py", line 46, in main
  File "upyeasy/init.py", line 206, in init
  File "upyeasy/db.py", line 593, in getrow
  File "upyeasy/db.py", line 591, in getrow
  File "filedb.py", line 111, in get
  File "filedb.py", line 111, in get
ValueError: syntax error in JSON
OSError: [Errno 2] ENOENT
MicroPython v1.9.3-549-gbe9277b-dirty on 2018-05-06; ESP32 module with ESP32
Type "help()" for more information.
>>> upyeasy.setwifi('xxxxxx','yyyyyyyyy')
cache deleted: _config
>>> import machine
>>> machine.reset()
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (|▒?22@P▒?s▒?▒▒?▒▒?22@3)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (|▒?22@P▒?s▒?▒▒?▒▒?22@3)
? Exception w22@3Guru Meditation Error: Core  0 panic'ed (|▒?22@P▒?s▒?▒▒?▒▒?22@3                                                                    )
? Exception w22@3Guru Meditation Error: Core  0 panic'ed #|▒?22@P▒?s▒?▒▒?▒▒?22@3                                                                    ? Exception w22@3Guru Meditation Error: Core  0 panic'ed #|▒?22@P▒?s▒?▒▒?▒▒?22@3                                                                    ? Exception w22@3Guru Meditation Error: Core  0 panic'ed #|▒?22@P▒?s▒?▒▒?▒▒?22@3                                                                    ? Exception w22@3Guru Meditation Error: Core  0 panic'ed #|▒?22@P▒?s▒?▒▒?▒▒?22@3                                                                    ? Exception w22@3Guru Meditation Error: Core  0 panic'ed #|▒?22@P▒?s▒?▒▒?▒▒?22@3                                                                    ? Exception w22@3Guru Meditation Error: Core  0 panic'ed #|▒?22@P▒?s▒?▒▒?▒▒?22@3                                                                    ? Exception w22@3Guru Meditation Error: Core  0 panic'ed #|▒?22@P▒?s▒?▒▒?▒▒?22@3                                                                    ? Exception w22@3Guru Meditation Error: Core  0 panic'ed #|▒?22@P▒?s▒?▒▒?▒▒?22@3                                                                    ? Exception w22@3Guru Meditation Error: Core  0 panic'ed #|▒?22@P▒?s▒?▒▒?▒▒?22@3                                                                    ? Exception w22@3Guru Meditation Error: Core  0 panic'ed #|▒?22@P▒?s▒?▒▒?▒▒?22@3                                                                    ? Exception w22@3Guru Meditation Error: Core  0 panic'ed #|▒?22@P▒?s▒?▒▒?▒▒?22@3                                                                    ? Exception w22@3Guru Meditation Error: Core  0 panic'ed #|▒?22@P▒?s▒?▒▒?▒▒?22@3                                                                    ? Exception w22@3Guru Meditation Error: Core  0 panic'ed #Guru Meditation Error:                                                                     Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru Meditation Erro                                                                    r: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru Meditation Er                                                                    ror: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru Meditation                                                                     Error: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru Meditatio                                                                    n Error: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru Meditat                                                                    ion Error: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru Medit                                                                    ation Error: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru Med                                                                    itation Error: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru M                                                                    editation Error: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru                                                                     Meditation Error: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Gu                                                                    ru Meditation Error: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #                                                                    Guru Meditation Error: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed                                                                     #Guru Meditation Error: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'                                                                    ed #Guru Meditation Error: Core  0 panic'ed #Guru Meditation Error: Core  0 pani                                                                    c'ed #▒▒?22@3Guru Meditation Error: Core  0 panic'ed #Guru Meditation Error: Cor                                                                    e  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru Meditation Error: C                                                                    ore  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru Meditation Error:                                                                     Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru Meditation Erro                                                                    r: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru Meditation Er                                                                    ror: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru Meditation                                                                     Error: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru Meditatio                                                                    n Error: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru Meditat                                                                    ion Error: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru Medit                                                                    ation Error: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru Med                                                                    itation Error: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru M                                                                    editation Error: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru                                                                     Meditation Error: Core  0 panic'ed #▒▒?22@3Guru Meditation Error: Core  0 panic                                                                    'ed #▒▒?22@3Guru Meditation Error: Core  0 panic'ed #Guru Meditation Error: Core                                                                      0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Unknown reasonGuru Medita                                                                    tion Error: Core  0 panic'ed #Unknown reasonGuru Meditation Error: Core  0 panic                                                                    'ed #Unknown reasonGuru Meditation Error: Core  0 panic'ed #▒@pT▒?? Exception w2                                                                    2@3ets Jun  8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:4464
ho 0 tail 12 room 4
load:0x40078000,len:0
load:0x40078000,len:11816
entry 0x4007a9fc
I (466) cpu_start: Pro cpu up.
I (466) cpu_start: Single core mode
I (466) heap_init: Initializing. RAM available for dynamic allocation:
I (470) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (476) heap_init: At 3FFC4E98 len 0001B168 (108 KiB): DRAM
I (482) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (488) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (495) heap_init: At 4008DE34 len 000121CC (72 KiB): IRAM
I (501) cpu_start: Pro cpu start user code
I (71) cpu_start: Starting scheduler on PRO CPU.
I (140) modsocket: Initializing
Traceback (most recent call last):
  File "boot.py", line 3, in <module>
  File "upyeasy/__init__.py", line 46, in main
  File "upyeasy/init.py", line 206, in init
  File "upyeasy/db.py", line 593, in getrow
  File "upyeasy/db.py", line 591, in getrow
  File "filedb.py", line 111, in get
  File "filedb.py", line 111, in get
ValueError: syntax error in JSON
OSError: [Errno 2] ENOENT
MicroPython v1.9.3-549-gbe9277b-dirty on 2018-05-06; ESP32 module with ESP32
Type "help()" for more information.
>>>

LisaM
Normal user
Posts: 513
Joined: 11 Apr 2017, 18:29

Re: ESP32 boards

#274 Post by LisaM » 09 May 2018, 17:50

Hi Bert,

There have been database changes, can you erase the esp32, reflash and then try again? If you have settings in the database you want to remember, save/write/note it down first.

Cheers,

Lisa

BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: ESP32 boards

#275 Post by BertB » 09 May 2018, 19:53

LisaM wrote: 09 May 2018, 17:50 Hi Bert,

There have been database changes, can you erase the esp32, reflash and then try again? If you have settings in the database you want to remember, save/write/note it down first.

Cheers,

Lisa
Hi Lisa,
I did this esptool.py --port COM5 erase_flash as my first action on all boards.

LisaM
Normal user
Posts: 513
Joined: 11 Apr 2017, 18:29

Re: ESP32 boards

#276 Post by LisaM » 16 May 2018, 20:59

Hi Bert,

This might be due to a to long build version in the config table, if have shortened it and put a new firmware version in the release section.
Can you erase/flash the esp32 again?

Cheers,

Lisa

BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: ESP32 boards

#277 Post by BertB » 17 May 2018, 20:09

Hi Lisa,

This happends after loading the 4096 version. It stops right after the 80.

Code: Select all

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
Falling back to built-in command interpreter.
OK
>ets Jun  8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:4464
ho 0 tail 12 room 4
load:0x40078000,len:0
load:0x40078000,len:11816
entry 0x4007a9fc
I (466) cpu_start: Pro cpu up.
I (466) cpu_start: Single core mode
I (467) heap_init: Initializing. RAM available for dynamic allocation:
I (470) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (476) heap_init: At 3FFC4E98 len 0001B168 (108 KiB): DRAM
I (482) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (489) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (495) heap_init: At 4008DE34 len 000121CC (72 KiB): IRAM
I (501) cpu_start: Pro cpu start user code
I (72) cpu_start: Starting scheduler on PRO CPU.
I (140) modsocket: Initializing
Traceback (most recent call last):
  File "ulog.py", line 110, in do_log
  File "syslog_sink.py", line 78, in log
  File "usyslog.py", line 60, in error
  File "usyslog.py", line 82, in log
OSError: 118
2000-01-01 00:00:02 [error] uPyEasy: Hal: esp32, ssid empty
Traceback (most recent call last):
  File "ulog.py", line 110, in do_log
  File "syslog_sink.py", line 76, in log
  File "usyslog.py", line 72, in warning
  File "usyslog.py", line 82, in log
OSError: 118
2000-01-01 00:00:02 [warning] uPyEasy: Hal: init esp32 network: AP mode
I (2990) wifi: wifi firmware version: ebd3e5d
I (2990) wifi: config NVS flash: enabled
I (2990) wifi: config nano formating: disabled
I (2990) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFU                                                                          SE
I (3000) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFU                                                                          SE
I (3020) wifi: Init dynamic tx buffer num: 32
I (3020) wifi: Init data frame dynamic rx buffer num: 64
I (3020) wifi: Init management frame dynamic rx buffer num: 64
I (3030) wifi: wifi driver task: 3ffd0f0c, prio:23, stack:4096
I (3030) wifi: Init static rx buffer num: 10
I (3040) wifi: Init dynamic rx buffer num: 0
I (3040) wifi: wifi power manager task: 0x3ffd5b5c prio: 21 stack: 2560
I (3100) phy: phy_version: 383.0, 79a622c, Jan 30 2018, 15:38:06, 0, 0
I (3110) wifi: mode : null
I (3110) wifi: mode : softAP (30:ae:a4:0d:6a:bd)
I (3110) network: event 13
I (3220) network: event 14
I (3230) network: event 13
2000-01-01 00:00:05 [info] uPyEasy-uPyEasy: Main: uPyEasy running in Access Point mode
2000-01-01 00:00:05 [info] uPyEasy-uPyEasy: Main: uPyEasy Main Async Loop on IP adress: 0.0.0.0:                                                                          80
80

BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: ESP32 boards

#278 Post by BertB » 17 May 2018, 20:24

Okay.
When I after the 80 enter ctrl C, I get:

Code: Select all

Traceback (most recent call last):
  File "boot.py", line 3, in <module>
  File "upyeasy/__init__.py", line 85, in main
  File "upyeasy/__init__.py", line 83, in main
  File "picoweb/__init__.py", line 311, in run
  File "uasyncio/core.py", line 77, in run_forever
  File "uasyncio/__init__.py", line 69, in wait
KeyboardInterrupt:
OSError: [Errno 2] ENOENT
MicroPython v1.9.3-549-gbe9277b-dirty on 2018-05-16; ESP32 module with ESP32
Type "help()" for more information.
>>>
>>>
>>>
Afther that, I could enter the setwifi, the import machine and the machine.reset()

Thereafter I got:

Code: Select all

>>> upyeasy.setwifi('wifiSSID','wifi password')
cache deleted: _config
>>> import machine
>>> machine.reset()
I (139119) network: event 3
I (139119) wifi: flush txq
I (139119) wifi: stop sw txq
I (139119) wifi: lmac stop hw txq
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (IllegalInstruction)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (|▒?22@P▒?s▒?▒▒?▒▒?22@3)
. Exception was unhandled.
Guru Meditation Error: Core  0 panic'ed (|▒?22@P▒?s▒?▒▒?▒▒?22@3)
? Exception w22@3Guru Meditation Error: Core  0 panic'ed (|▒?22@P▒?s▒?▒▒?▒▒?22@3                                     )
? Exception w22@3Guru Meditation Error: Core  0 panic'ed #|▒?22@P▒?s▒?▒▒?▒▒?22@3                                     ? Exception w22@3Guru Meditation Error: Core  0 panic'ed #|▒?22@P▒?s▒?▒▒?▒▒?22@3                                     ? Exception w22@3Guru Meditation Error: Core  0 panic'ed #|▒?22@P▒?s▒?▒▒?▒▒?22@3                                     ? Exception w22@3Guru Meditation Error: Core  0 panic'ed #|▒?22@P▒?s▒?▒▒?▒▒?22@3                                     ? Exception w22@3Guru Meditation Error: Core  0 panic'ed #|▒?22@P▒?s▒?▒▒?▒▒?22@3                                     ? Exception w22@3Guru Meditation Error: Core  0 panic'ed #|▒?22@P▒?s▒?▒▒?▒▒?22@3                                     ? Exception w22@3Guru Meditation Error: Core  0 panic'ed #|▒?22@P▒?s▒?▒▒?▒▒?22@3                                     ? Exception w22@3Guru Meditation Error: Core  0 panic'ed #|▒?22@P▒?s▒?▒▒?▒▒?22@3                                     ? Exception w22@3Guru Meditation Error: Core  0 panic'ed #|▒?22@P▒?s▒?▒▒?▒▒?22@3                                     ? Exception w22@3Guru Meditation Error: Core  0 panic'ed #|▒?22@P▒?s▒?▒▒?▒▒?22@3                                     ? Exception w22@3Guru Meditation Error: Core  0 panic'ed #|▒?22@P▒?s▒?▒▒?▒▒?22@3                                     ? Exception w22@3Guru Meditation Error: Core  0 panic'ed #|▒?22@P▒?s▒?▒▒?▒▒?22@3                                     ? Exception w22@3Guru Meditation Error: Core  0 panic'ed #Guru Meditation Error:                                      Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru Meditation Erro                                     r: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru Meditation Er                                     ror: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru Meditation                                      Error: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru Meditatio                                     n Error: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru Meditat                                     ion Error: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru Medit                                     ation Error: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru Med                                     itation Error: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru M                                     editation Error: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru                                      Meditation Error: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Gu                                     ru Meditation Error: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #                                     Guru Meditation Error: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed                                      #Guru Meditation Error: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'                                     ed #Guru Meditation Error: Core  0 panic'ed #Guru Meditation Error: Core  0 pani                                     c'ed #▒▒?22@3Guru Meditation Error: Core  0 panic'ed #Guru Meditation Error: Cor                                     e  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru Meditation Error: C                                     ore  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru Meditation Error:                                      Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru Meditation Erro                                     r: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru Meditation Er                                     ror: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru Meditation                                      Error: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru Meditatio                                     n Error: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru Meditat                                     ion Error: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru Medit                                     ation Error: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru Med                                     itation Error: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru M                                     editation Error: Core  0 panic'ed #Guru Meditation Error: Core  0 panic'ed #Guru                                      Meditation Error: Core  0 panic'ed #▒▒?22@3Guru Meditation Error: Core  0 panic                                     'ed #▒▒?22@3Guru Meditation Error: Core  0 panic'ed #Guru Meditation Error: Core                                       0 panic'ed #ets Jun  8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:4464
ho 0 tail 12 room 4
load:0x40078000,len:0
load:0x40078000,len:11816
entry 0x4007a9fc
I (466) cpu_start: Pro cpu up.
I (466) cpu_start: Single core mode
I (466) heap_init: Initializing. RAM available for dynamic allocation:
I (470) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (476) heap_init: At 3FFC4E98 len 0001B168 (108 KiB): DRAM
I (482) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (488) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (495) heap_init: At 4008DE34 len 000121CC (72 KiB): IRAM
I (501) cpu_start: Pro cpu start user code
I (71) cpu_start: Starting scheduler on PRO CPU.
I (139) modsocket: Initializing
I (2829) wifi: wifi firmware version: ebd3e5d
I (2829) wifi: config NVS flash: enabled
I (2829) wifi: config nano formating: disabled
I (2829) system_api: Base MAC address is not set, read default base MAC address                                      from BLK0 of EFUSE
I (2839) system_api: Base MAC address is not set, read default base MAC address                                      from BLK0 of EFUSE
I (2849) wifi: Init dynamic tx buffer num: 32
I (2849) wifi: Init data frame dynamic rx buffer num: 64
I (2859) wifi: Init management frame dynamic rx buffer num: 64
I (2859) wifi: wifi driver task: 3ffd0f0c, prio:23, stack:4096
I (2869) wifi: Init static rx buffer num: 10
I (2869) wifi: Init dynamic rx buffer num: 0
I (2879) wifi: wifi power manager task: 0x3ffd5b5c prio: 21 stack: 2560
I (2939) phy: phy_version: 383.0, 79a622c, Jan 30 2018, 15:38:06, 0, 0
I (2939) wifi: mode : null
I (2939) wifi: mode : sta (30:ae:a4:0d:6a:bc)
I (2949) wifi: STA_START
I (3799) wifi: n:7 1, o:1 0, ap:255 255, sta:7 1, prof:1
I (4349) wifi: state: init -> auth (b0)
I (4419) wifi: state: auth -> assoc (0)
I (4429) wifi: state: assoc -> run (10)
I (4439) wifi: connected with yyyyyy, channel 7
I (4449) network: event 4
I (5149) event: sta ip: xxxx, mask: xxxxxxx, gw: xxxxxxxxx
I (5149) network: GOT_IP
I (7429) wifi: pm start, type:0

2018-05-17 19:20:47 [info] uPyEasy-uPyEasy: Main: uPyEasy running in Station mod                                     e
2018-05-17 19:20:47 [info] uPyEasy-uPyEasy: Main: uPyEasy Main Async Loop on IP                                      adress: xxxxxxxxx:80

Now, something seems to be alive ...

Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests