uPyEasy v0.3.0 released

Moderators: BertB, Voyager, Stuntteam, Martinus, LisaM

Message
Author
AndrewJ
Normal user
Posts: 216
Joined: 14 Feb 2017, 12:38

Re: uPyEasy v0.3.0 released

#11 Post by AndrewJ » 11 May 2018, 21:03

LisaM wrote:
10 May 2018, 17:17

I have the same one.
With the micro-usb connector below the two buttons, press and hold the right button (the one with K2 written on the board). While you hold the K2 button, the leds cycle: only red on, only green on, red and green on, etc. Wait until both red and green leds are on, then let go of K2. The blue led should be going on and off marking the erasure of the stm32 flash area (not firmware!), while red and green are on. After a minute or so, the blue light goes off and the green on. Then press and hold the reset button (K2) again until only the green led is on and let go of K2.

Efficient, but complicated i have to admit...

Ps. if you want to see what has been changed after a git pull: git log -5 (5 last log entries)

Cheers,

Lisa
I'm beginning to think that both my boards may be faulty. With one board, pressing and holding K2 gives a constant red LED which does not change. On the other board, no LED is lit while pressing K2.
I had to repair both boards a while back because the USB cable had strained the micro USB sockets and made the connection erratic. It may be that some part of the connection is still not good.
Another thought - do you know of a way to download a "blank" file to STM32, similar to make erase on ESP32? I've tried googling but not found anything.

Cheers
Andrew

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

Re: uPyEasy v0.3.0 released

#12 Post by LisaM » 11 May 2018, 21:18

AndrewJ wrote:
11 May 2018, 21:03
Another thought - do you know of a way to download a "blank" file to STM32, similar to make erase on ESP32? I've tried googling but not found anything.
dfu-util -s :mass-erase:force -a 0 -d 0483:df11 -D upyeasy_v030_20180506_test_stm32-pybv3_1024.dfu

That should do the trick: first it will erase the STM32F405 and then flash the new firmware.

Cheers,

Lisa

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

Re: uPyEasy v0.3.0 released

#13 Post by AndrewJ » 11 May 2018, 21:49

LisaM wrote:
11 May 2018, 21:18
AndrewJ wrote:
11 May 2018, 21:03
Another thought - do you know of a way to download a "blank" file to STM32, similar to make erase on ESP32? I've tried googling but not found anything.
dfu-util -s :mass-erase:force -a 0 -d 0483:df11 -D upyeasy_v030_20180506_test_stm32-pybv3_1024.dfu

That should do the trick: first it will erase the STM32F405 and then flash the new firmware.

Cheers,

Lisa
Hi Lisa
Thanks for the quick reply. I'll try that - probably tomorrow or Sunday.
Andrew

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

Re: uPyEasy v0.3.0 released

#14 Post by LisaM » 12 May 2018, 02:56

You will be probably one of the first to try out the new REST interface, it will mark a departure from ESPEasy's web-based UI. ESPEasy does have way more plugins, but uPyEasy has a much better and modern architecture which is now benefiting us for switching to the REST client-server setup.
If you look at the pages.py file, you'll see some significant changes already including two new DELETE rest api's already active... ;)
The client side for controller/device delete's is now different to, which you can see at controllers.html en devices.html
Going bootstrap is the next step...

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

Re: uPyEasy v0.3.0 released

#15 Post by AndrewJ » 17 May 2018, 19:21

LisaM wrote:
12 May 2018, 02:56
You will be probably one of the first to try out the new REST interface, it will mark a departure from ESPEasy's web-based UI. ESPEasy does have way more plugins, but uPyEasy has a much better and modern architecture which is now benefiting us for switching to the REST client-server setup.
If you look at the pages.py file, you'll see some significant changes already including two new DELETE rest api's already active... ;)
The client side for controller/device delete's is now different to, which you can see at controllers.html en devices.html
Going bootstrap is the next step...
Hi Lisa
I've come back onto this today after a break as my mum died recently.
I found the latest update on Github (cf2bca9) and updated it to my local repo (the new filesystem). Did sudo make ..... deploy for stm32 (Ali pyboard clone). First time I hadn't erased the flash so I went back and did that (I think I've got the hang of that now).
But when I do import upyeasy, upyeasy.main(loglevel=0) I get this...

Code: Select all

2018-05-17 18:08:52 [debug] uPyEasy: GC MEM Free: 31,664
2018-05-17 18:08:54 [debug] uPyEasy: Init: Create dxpin Record
2018-05-17 18:08:54 [debug] uPyEasy: GC MEM Free: 31,664
2018-05-17 18:08:55 [debug] uPyEasy: Init: Create dxmap Record
2018-05-17 18:08:55 [debug] uPyEasy: GC MEM Free: 31,712
2018-05-17 18:08:55 [debug] uPyEasy: Hal: dxmaps_init
2018-05-17 18:08:55 [debug] uPyEasy: GC MEM Free: 31,456
2018-05-17 18:08:55 [debug] uPyEasy: Hal: dxmaps_init pyboard
2018-05-17 18:08:55 [debug] uPyEasy: GC MEM Free: 31,456
2018-05-17 18:08:55 [debug] uPyEasy: Hal: board info
2018-05-17 18:08:55 [debug] uPyEasy: GC MEM Free: 31,472
2018-05-17 18:08:55 [debug] uPyEasy: Hal: board pyboard
2018-05-17 18:08:55 [debug] uPyEasy: GC MEM Free: 31,456
2018-05-17 18:08:55 [debug] uPyEasy: STM32: init_pindb
2018-05-17 18:08:55 [debug] uPyEasy: GC MEM Free: 30,752
2018-05-17 18:08:56 [debug] uPyEasy: Init: Create advanced Record
2018-05-17 18:08:56 [debug] uPyEasy: GC MEM Free: 31,376
2018-05-17 18:08:57 [debug] uPyEasy: Hal: Init
2018-05-17 18:08:57 [debug] uPyEasy: GC MEM Free: 31,312
2018-05-17 18:08:57 [debug] uPyEasy: Hal: init, network record present
2018-05-17 18:08:57 [debug] uPyEasy: GC MEM Free: 31,040
2018-05-17 18:08:57 [debug] uPyEasy: Hal: pyboard
2018-05-17 18:08:57 [debug] uPyEasy: GC MEM Free: 31,072
2018-05-17 18:08:57 [debug] uPyEasy: Hal: board info
2018-05-17 18:08:57 [debug] uPyEasy: GC MEM Free: 31,072
2018-05-17 18:08:57 [debug] uPyEasy: Hal: board pyboard
2018-05-17 18:08:57 [debug] uPyEasy: GC MEM Free: 31,056
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: [Errno 113] EHOSTUNREACH
2018-05-17 18:08:57 [warning] uPyEasy: Hal: pyboard, spi is empty: trying default!
2018-05-17 18:08:57 [warning] uPyEasy: GC MEM Free: 30,928

At the end it just freezes.

I also tried import upyeasy, upyeasy.main() and got...

Code: Select all

>> 
>>> import upyeasy
>>> 
>>> dir()
['machine', 'upyeasy', '__name__', 'pyb']
>>> upyeasy.main()
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: [Errno 113] EHOSTUNREACH
2018-05-17 18:17:40 [warning] uPyEasy: Hal: pyboard, spi is empty: trying default!

and again it got stuck.
I'm baffled - have you any ideas what might be wrong please?
Cheers
Andrew

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

Re: uPyEasy v0.3.0 released

#16 Post by LisaM » 19 May 2018, 14:42

AndrewJ wrote:
17 May 2018, 19:21

Code: Select all

>> 
>>> import upyeasy
>>> 
>>> dir()
['machine', 'upyeasy', '__name__', 'pyb']
>>> upyeasy.main()
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: [Errno 113] EHOSTUNREACH
2018-05-17 18:17:40 [warning] uPyEasy: Hal: pyboard, spi is empty: trying default!

and again it got stuck.
I'm baffled - have you any ideas what might be wrong please?
Cheers
Andrew
Hi Andrew,

If you haven't done

Code: Select all

upyeasy.setnet(1,'A3','A4','<SOC IP ADDRESS>', '<GATEWAY IP ADDRESS>', '255.255.255.0', '<DNS SVR IP ADDRESS>')
then uPyEasy on STM32 will try to use DHCP to get an ip-address. However sometimes it just waits forever to get one and it never does end.

If you haven't used the setnet command, please try to use that. Just do a ctrl-c before this point and enter the setnet command.

It also might be a wiring problem, please check if some wires are not connected anymore.

Cheers,

Lsia

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

Re: uPyEasy v0.3.0 released

#17 Post by AndrewJ » 19 May 2018, 19:24

LisaM wrote:
19 May 2018, 14:42

Hi Andrew,

If you haven't done

Code: Select all

upyeasy.setnet(1,'A3','A4','<SOC IP ADDRESS>', '<GATEWAY IP ADDRESS>', '255.255.255.0', '<DNS SVR IP ADDRESS>')
then uPyEasy on STM32 will try to use DHCP to get an ip-address. However sometimes it just waits forever to get one and it never does end.

If you haven't used the setnet command, please try to use that. Just do a ctrl-c before this point and enter the setnet command.

It also might be a wiring problem, please check if some wires are not connected anymore.

Cheers,

Lsia
Thanks Lisa. I hadn't previously done upyeasy.setnet... so I did that this time and it went further, but eventually got stuck again. Here is the log...

Code: Select all

>>> upyeasy.setnet(1,'A3','A4','102.168.1.78', '192.168.1.1', '255.255.255.0', '192.168.1.1'                                                                    ... )                                                                                                                                                           >>>                                                                                                                                                             >>>                                                                                                                                                             >>> upyeasy.main(loglevel=0)                                                                                                                                    loaded sink console                                                                                                                                             2018-05-19T17.0000002d:51:45.004 [debug] uPyEasy: Init: Init constructor                                                                                        2018-05-19T17.0000002d:51:45.004 [debug] uPyEasy: GC MEM Free: 30,944                                                                                           2018-05-19T17.0000002d:51:45.004 [debug] uPyEasy: Init: Entering init                                                                                           2018-05-19T17.0000002d:51:45.004 [debug] uPyEasy: GC MEM Free: 30,832                                                                                           2018-05-19 17:51:45 [debug] uPyEasy: Init: Create directory config                                                                                              2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,736                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: Create directory config exception: OSError(17,)                                                                      2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,544                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: Create directory plugins                                                                                             2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,656                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: Create directory plugins exception: OSError(17,)                                                                     2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,544                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: Create directory protocols                                                                                           2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,640                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: Create directory protocols exception: OSError(17,)                                                                   2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,544                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: Create directory scripts                                                                                             2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,656                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: Create directory scripts exception: OSError(17,)                                                                     2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,544                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: Create directory rules                                                                                               2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,656                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: Create directory rules exception: OSError(17,)                                                                       2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,544                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: config Table                                                                                                         2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,656                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: network Table                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,656                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: protocol Table                                                                                                       2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,656                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: controller Table                                                                                                     2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,656                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: hardware Table                                                                                                       2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,656                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: dxpin Table                                                                                                          2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,656                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: dxmap Table                                                                                                          2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,656                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: plugin Table                                                                                                         2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,656                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: pluginstore Table                                                                                                    2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,656                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: device Table                                                                                                         2018-05-19 17:51:46 [debug] uPyEasy: GC MEM Free: 30,656                                                                                                        2018-05-19 17:51:46 [debug] uPyEasy: Init: service Table                                                                                                        2018-05-19 17:51:46 [debug] uPyEasy: GC MEM Free: 30,656                                                                                                        2018-05-19 17:51:46 [debug] uPyEasy: Init: notification Table                                                                                                   2018-05-19 17:51:46 [debug] uPyEasy: GC MEM Free: 30,656                                                                                                        2018-05-19 17:51:46 [debug] uPyEasy: Init: advanced Table                                                                                                       2018-05-19 17:51:46 [debug] uPyEasy: GC MEM Free: 30,656                                                                                                        2018-05-19 17:51:46 [debug] uPyEasy: Init: script Table                                                                                                         2018-05-19 17:51:46 [debug] uPyEasy: GC MEM Free: 30,656                                                                                                        2018-05-19 17:51:46 [debug] uPyEasy: Init: rule Table                                                                                                           2018-05-19 17:51:46 [debug] uPyEasy: GC MEM Free: 30,640                                                                                                        2018-05-19 17:51:46 [debug] uPyEasy: Hal: Init                                                                                                                  2018-05-19 17:51:46 [debug] uPyEasy: GC MEM Free: 27,424                   
I've checked the wiring and it looks ok to me.
Can you offer any more suggestions to debug this, please?
Cheers,
Andrew.

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

Re: uPyEasy v0.3.0 released

#18 Post by AndrewJ » 19 May 2018, 22:14

AndrewJ wrote:
19 May 2018, 19:24
LisaM wrote:
19 May 2018, 14:42

Hi Andrew,

If you haven't done

Code: Select all

upyeasy.setnet(1,'A3','A4','<SOC IP ADDRESS>', '<GATEWAY IP ADDRESS>', '255.255.255.0', '<DNS SVR IP ADDRESS>')
then uPyEasy on STM32 will try to use DHCP to get an ip-address. However sometimes it just waits forever to get one and it never does end.

If you haven't used the setnet command, please try to use that. Just do a ctrl-c before this point and enter the setnet command.

It also might be a wiring problem, please check if some wires are not connected anymore.

Cheers,

Lsia
Thanks Lisa. I hadn't previously done upyeasy.setnet... so I did that this time and it went further, but eventually got stuck again. Here is the log...

Code: Select all

>>> upyeasy.setnet(1,'A3','A4','102.168.1.78', '192.168.1.1', '255.255.255.0', '192.168.1.1'                                                                    ... )                                                                                                                                                           >>>                                                                                                                                                             >>>                                                                                                                                                             >>> upyeasy.main(loglevel=0)                                                                                                                                    loaded sink console                                                                                                                                             2018-05-19T17.0000002d:51:45.004 [debug] uPyEasy: Init: Init constructor                                                                                        2018-05-19T17.0000002d:51:45.004 [debug] uPyEasy: GC MEM Free: 30,944                                                                                           2018-05-19T17.0000002d:51:45.004 [debug] uPyEasy: Init: Entering init                                                                                           2018-05-19T17.0000002d:51:45.004 [debug] uPyEasy: GC MEM Free: 30,832                                                                                           2018-05-19 17:51:45 [debug] uPyEasy: Init: Create directory config                                                                                              2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,736                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: Create directory config exception: OSError(17,)                                                                      2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,544                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: Create directory plugins                                                                                             2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,656                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: Create directory plugins exception: OSError(17,)                                                                     2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,544                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: Create directory protocols                                                                                           2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,640                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: Create directory protocols exception: OSError(17,)                                                                   2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,544                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: Create directory scripts                                                                                             2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,656                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: Create directory scripts exception: OSError(17,)                                                                     2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,544                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: Create directory rules                                                                                               2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,656                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: Create directory rules exception: OSError(17,)                                                                       2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,544                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: config Table                                                                                                         2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,656                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: network Table                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,656                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: protocol Table                                                                                                       2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,656                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: controller Table                                                                                                     2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,656                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: hardware Table                                                                                                       2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,656                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: dxpin Table                                                                                                          2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,656                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: dxmap Table                                                                                                          2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,656                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: plugin Table                                                                                                         2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,656                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: pluginstore Table                                                                                                    2018-05-19 17:51:45 [debug] uPyEasy: GC MEM Free: 30,656                                                                                                        2018-05-19 17:51:45 [debug] uPyEasy: Init: device Table                                                                                                         2018-05-19 17:51:46 [debug] uPyEasy: GC MEM Free: 30,656                                                                                                        2018-05-19 17:51:46 [debug] uPyEasy: Init: service Table                                                                                                        2018-05-19 17:51:46 [debug] uPyEasy: GC MEM Free: 30,656                                                                                                        2018-05-19 17:51:46 [debug] uPyEasy: Init: notification Table                                                                                                   2018-05-19 17:51:46 [debug] uPyEasy: GC MEM Free: 30,656                                                                                                        2018-05-19 17:51:46 [debug] uPyEasy: Init: advanced Table                                                                                                       2018-05-19 17:51:46 [debug] uPyEasy: GC MEM Free: 30,656                                                                                                        2018-05-19 17:51:46 [debug] uPyEasy: Init: script Table                                                                                                         2018-05-19 17:51:46 [debug] uPyEasy: GC MEM Free: 30,656                                                                                                        2018-05-19 17:51:46 [debug] uPyEasy: Init: rule Table                                                                                                           2018-05-19 17:51:46 [debug] uPyEasy: GC MEM Free: 30,640                                                                                                        2018-05-19 17:51:46 [debug] uPyEasy: Hal: Init                                                                                                                  2018-05-19 17:51:46 [debug] uPyEasy: GC MEM Free: 27,424                   
I've checked the wiring and it looks ok to me.
Can you offer any more suggestions to debug this, please?
Cheers,
Andrew.
Oh dear, I should have checked wiring better first time! :oops:
It turned out that one of the Dupont wire connections between the STM32 board and the Wiznet 5500 was slightly loose. When I replaced it with a new one, and tried again from the start (right back to erasing flash then doing make.....deploy) -- it's working, and I can connect with my browser!! :D
No sensors connected at present, I'll test further.

Cheers
Andrew
(I'm using cf3bca9 from Github).

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

Re: uPyEasy v0.3.0 released

#19 Post by AndrewJ » 20 May 2018, 20:52

it's working, and I can connect with my browser!! :D
No sensors connected at present, I'll test further.

Cheers
Andrew
(I'm using cf3bca9 from Github).
Hi Lisa,
If I go to the Controllers screen in the browser, and try to Add a controller, the screen just stays blank, with no list of controllers to select from. (I can still get to other screens if I click on their tab). Here is the log - nothing that seems very helpful!

Code: Select all

>>> import upyeasy
>>> upyeasy.main()
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: [Errno 113] EHOSTUNREACH
2018-05-20 19:37:25 [warning] uPyEasy: Hal: pyboard, spi is empty: trying default!
2018-05-20 19:37:37 [info] uPyEasy-STM32_2: Main: uPyEasy running in Ethernet mode
2018-05-20 19:37:37 [info] uPyEasy-STM32_2: Main: uPyEasy Main Async Loop on IP adress: 192.168.1.5:80
2018-05-20 19:37:53 [info] uPyEasy-STM32_2: 580160236.358 <HTTPRequest object at 20011f70> <StreamWriter <socket state=2 timeout=0 incoming=20004192 off=16>> "GET /"
2018-05-20 19:37:53 [info] uPyEasy-STM32_2: 580160236.358 <HTTPRequest object at 20019250> <StreamWriter <socket state=2 timeout=0 incoming=20003f34 off=33>> "GET /static/upyeasy.js"
2018-05-20 19:37:53 [info] uPyEasy-STM32_2: 580160236.358 <HTTPRequest object at 20019b70> <StreamWriter <socket state=2 timeout=0 incoming=20004192 off=34>> "GET /static/upyeasy.css"
2018-05-20 19:38:05 [info] uPyEasy-STM32_2: 580160236.358 <HTTPRequest object at 20008340> <StreamWriter <socket state=2 timeout=0 incoming=20004192 off=22>> "GET /config"
2018-05-20 19:38:06 [info] uPyEasy-STM32_2: 580160236.358 <HTTPRequest object at 20014fe0> <StreamWriter <socket state=2 timeout=0 incoming=20004192 off=34>> "GET /static/upyeasy.css"
2018-05-20 19:38:06 [info] uPyEasy-STM32_2: 580160236.358 <HTTPRequest object at 2001a610> <StreamWriter <socket state=2 timeout=0 incoming=20003f34 off=33>> "GET /static/upyeasy.js"
2018-05-20 19:38:15 [info] uPyEasy-STM32_2: 580160331.726 <HTTPRequest object at 200136f0> <StreamWriter <socket state=2 timeout=0 incoming=20003f34 off=27>> "GET /controllers"
2018-05-20 19:38:15 [info] uPyEasy-STM32_2: 580160331.726 <HTTPRequest object at 200180c0> <StreamWriter <socket state=2 timeout=0 incoming=20003f34 off=34>> "GET /static/upyeasy.css"
2018-05-20 19:38:15 [info] uPyEasy-STM32_2: 580160331.726 <HTTPRequest object at 20019930> <StreamWriter <socket state=2 timeout=0 incoming=20004192 off=33>> "GET /static/upyeasy.js"
2018-05-20 19:38:40 [info] uPyEasy-STM32_2: 580160331.726 <HTTPRequest object at 20017270> <StreamWriter <socket state=2 timeout=0 incoming=20004192 off=39>> "GET /controller_setting?id=0"
2018-05-20 19:38:40 [info] uPyEasy-STM32_2: 580160331.726 <HTTPRequest object at 20019530> <StreamWriter <socket state=2 timeout=0 incoming=20004192 off=34>> "GET /static/upyeasy.css"
2018-05-20 19:38:40 [info] uPyEasy-STM32_2: 580160331.726 <HTTPRequest object at 20019d60> <StreamWriter <socket state=2 timeout=0 incoming=20003f34 off=33>> "GET /static/upyeasy.js"

Tried again with loglevel=0 ....

Code: Select all

  (some lines lost)
2018-05-20 19:44:08 [debug] uPyEasy: Hal: pyboard
2018-05-20 19:44:08 [debug] uPyEasy: GC MEM Free: 29,088
2018-05-20 19:44:08 [debug] uPyEasy: Hal: board info
2018-05-20 19:44:08 [debug] uPyEasy: GC MEM Free: 29,088
2018-05-20 19:44:08 [debug] uPyEasy: Hal: board pyboard
2018-05-20 19:44:08 [debug] uPyEasy: GC MEM Free: 29,072
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: [Errno 113] EHOSTUNREACH
2018-05-20 19:44:08 [warning] uPyEasy: Hal: pyboard, spi is empty: trying default!
2018-05-20 19:44:08 [warning] uPyEasy: GC MEM Free: 28,944
2018-05-20 19:44:18 [debug] uPyEasy: Hal: pyboard, ip: 192.168.1.5
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 28,880
2018-05-20 19:44:18 [debug] uPyEasy: Hal: nic present
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 28,928
2018-05-20 19:44:18 [debug] uPyEasy: Protocols: Load
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 29,264
2018-05-20 19:44:18 [debug] uPyEasy: Protocols: Init protocol records
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 28,784
2018-05-20 19:44:18 [debug] uPyEasy: Protocols: Protocol record found: Domoticz HTTP
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 28,016
2018-05-20 19:44:18 [debug] uPyEasy: Protocols: Protocol record found: OpenHab MQTT
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 28,016
2018-05-20 19:44:18 [debug] uPyEasy: Protocols: Protocol record found: Domoticz MQTT
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 28,016
2018-05-20 19:44:18 [debug] uPyEasy: Plugins: Load
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 28,944
2018-05-20 19:44:18 [debug] uPyEasy: Plugins: Init plugin records
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 28,656
2018-05-20 19:44:18 [debug] uPyEasy: Plugins: Plugin record found: SSD1306
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 27,280
2018-05-20 19:44:18 [debug] uPyEasy: Plugins: Plugin record found: Switch
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 27,280
2018-05-20 19:44:18 [debug] uPyEasy: Plugins: Plugin record found: DS18B20
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 27,280
2018-05-20 19:44:18 [debug] uPyEasy: Plugins: Plugin record found: Test
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 27,280
2018-05-20 19:44:18 [debug] uPyEasy: Plugins: Plugin record found: BME280
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 27,280
2018-05-20 19:44:18 [debug] uPyEasy: Scripts: Load
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 28,688
2018-05-20 19:44:18 [debug] uPyEasy: Scripts: Init
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 28,592
2018-05-20 19:44:18 [debug] uPyEasy: Plugins: GetQueue
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 28,576
2018-05-20 19:44:18 [debug] uPyEasy: Scripts: init scripts records
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 28,304
2018-05-20 19:44:18 [debug] uPyEasy: Scripts: init rules records
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 28,240
2018-05-20 19:44:18 [debug] uPyEasy: Utils: Sys hostname
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 27,968
2018-05-20 19:44:18 [debug] uPyEasy: Utils: uPyEasy Name
2018-05-20 19:44:18 [debug] uPyEasy: GC MEM Free: 28,384
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: Set syslog hostname 0.0.0.0
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: GC MEM Free: 28,160
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: reloaded sink syslog
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: GC MEM Free: 27,584
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: Hal: Entering SetTime
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: GC MEM Free: 28,448
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: Hal: Entering GetNtpTime
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: GC MEM Free: 28,288
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: Hal: network Table
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: GC MEM Free: 28,304
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: Hal: Using NTP Hostname: pool.ntp.org
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: GC MEM Free: 27,808
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: Hal: TimeZome offset: 60
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: GC MEM Free: 27,840
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: Hal: Received UTC NTP Time: 580157059
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: GC MEM Free: 27,488
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: Hal: Timezone corrected NTP Time: 580160659
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: GC MEM Free: 27,488
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: Hal: DST corrected NTP Time: 580160659
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: GC MEM Free: 27,488
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: Hal: Received NTP Time: 580160659
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: GC MEM Free: 28,336
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: Hal: StartTime: 580160659
2018-05-20 19:44:18 [debug] uPyEasy-STM32_2: GC MEM Free: 28,368
2018-05-20 19:44:19 [info] uPyEasy-STM32_2: Main: uPyEasy running in Ethernet mode
2018-05-20 19:44:19 [info] uPyEasy-STM32_2: GC MEM Free: 24,896
2018-05-20 19:44:19 [debug] uPyEasy-STM32_2: Hal: get_ip_address pyboard, ip: 192.168.1.5
2018-05-20 19:44:19 [debug] uPyEasy-STM32_2: GC MEM Free: 24,720
2018-05-20 19:44:19 [debug] uPyEasy-STM32_2: Main: Schedule async loops
2018-05-20 19:44:19 [debug] uPyEasy-STM32_2: GC MEM Free: 24,880
2018-05-20 19:44:19 [info] uPyEasy-STM32_2: Main: uPyEasy Main Async Loop on IP adress: 192.168.1.5:80
2018-05-20 19:44:19 [info] uPyEasy-STM32_2: GC MEM Free: 24,224
2018-05-20 19:44:19 [debug] uPyEasy-STM32_2: Protocols: Async processing protocols
2018-05-20 19:44:19 [debug] uPyEasy-STM32_2: GC MEM Free: 24,048
2018-05-20 19:44:19 [debug] uPyEasy-STM32_2: Plugins: Async processing plugins
2018-05-20 19:44:19 [debug] uPyEasy-STM32_2: GC MEM Free: 23,248
2018-05-20 19:44:19 [debug] uPyEasy-STM32_2: Scripts: Async processing scripts/rules
2018-05-20 19:44:19 [debug] uPyEasy-STM32_2: GC MEM Free: 22,016

Then when I try to add a controller....

Code: Select all

2018-05-20 19:47:34 [debug] uPyEasy-STM32_2: Scripts: Async processing scripts/rules
2018-05-20 19:47:34 [debug] uPyEasy-STM32_2: GC MEM Free: 22,048
2018-05-20 19:47:49 [info] uPyEasy-STM32_2: 580160903.930 <HTTPRequest object at 2000d670> <StreamWriter <socket state=2 timeout=0 incoming=20004192 off=16>> "GET /"
2018-05-20 19:47:49 [info] uPyEasy-STM32_2: GC MEM Free: 20,960
2018-05-20 19:47:49 [debug] uPyEasy-STM32_2: Pages: Authorized User?
2018-05-20 19:47:49 [debug] uPyEasy-STM32_2: GC MEM Free: 20,256
2018-05-20 19:47:49 [debug] uPyEasy-STM32_2: Pages GET: Entering Home Page
2018-05-20 19:47:49 [debug] uPyEasy-STM32_2: GC MEM Free: 20,256
2018-05-20 19:47:49 [debug] uPyEasy-STM32_2: Pages: Home Page Station mode
2018-05-20 19:47:49 [debug] uPyEasy-STM32_2: GC MEM Free: 20,048
2018-05-20 19:47:49 [debug] uPyEasy-STM32_2: Utils: uPyEasy Name
2018-05-20 19:47:49 [debug] uPyEasy-STM32_2: GC MEM Free: 20,032
2018-05-20 19:47:49 [debug] uPyEasy-STM32_2: Utils: Unit Number
2018-05-20 19:47:49 [debug] uPyEasy-STM32_2: GC MEM Free: 19,920
2018-05-20 19:47:49 [debug] uPyEasy-STM32_2: Hal: Getting local time in seconds
2018-05-20 19:47:49 [debug] uPyEasy-STM32_2: GC MEM Free: 19,808
2018-05-20 19:47:49 [debug] uPyEasy-STM32_2: Hal: get_ip_address pyboard, ip: 192.168.1.5
2018-05-20 19:47:49 [debug] uPyEasy-STM32_2: GC MEM Free: 19,632
2018-05-20 19:47:49 [debug] uPyEasy-STM32_2: Pages: Home Page Data collected
2018-05-20 19:47:49 [debug] uPyEasy-STM32_2: GC MEM Free: 19,776
2018-05-20 19:47:49 [info] uPyEasy-STM32_2: 580160903.930 <HTTPRequest object at 20018dc0> <StreamWriter <socket state=2 timeout=0 incoming=20004192 off=34>> "GET /static/upyeasy.css"
2018-05-20 19:47:49 [info] uPyEasy-STM32_2: GC MEM Free: 19,632
2018-05-20 19:47:49 [info] uPyEasy-STM32_2: 580160903.930 <HTTPRequest object at 20010670> <StreamWriter <socket state=2 timeout=0 incoming=20003f34 off=33>> "GET /static/upyeasy.js"
2018-05-20 19:47:49 [info] uPyEasy-STM32_2: GC MEM Free: 19,104
2018-05-20 19:48:01 [info] uPyEasy-STM32_2: 580160903.930 <HTTPRequest object at 2000f4a0> <StreamWriter <socket state=2 timeout=0 incoming=20003f34 off=27>> "GET /controllers"
2018-05-20 19:48:01 [info] uPyEasy-STM32_2: GC MEM Free: 19,072
2018-05-20 19:48:01 [debug] uPyEasy-STM32_2: Pages: Authorized User?
2018-05-20 19:48:01 [debug] uPyEasy-STM32_2: GC MEM Free: 18,464
2018-05-20 19:48:01 [debug] uPyEasy-STM32_2: Pages: Entering Controllers Page
2018-05-20 19:48:01 [debug] uPyEasy-STM32_2: GC MEM Free: 18,448
2018-05-20 19:48:01 [debug] uPyEasy-STM32_2: Utils: uPyEasy Name
2018-05-20 19:48:01 [debug] uPyEasy-STM32_2: GC MEM Free: 18,448
2018-05-20 19:48:01 [info] uPyEasy-STM32_2: 580160903.930 <HTTPRequest object at 20018cb0> <StreamWriter <socket state=2 timeout=0 incoming=20003f34 off=34>> "GET /static/upyeasy.css"
2018-05-20 19:48:01 [info] uPyEasy-STM32_2: GC MEM Free: 18,496
2018-05-20 19:48:01 [info] uPyEasy-STM32_2: 580160903.930 <HTTPRequest object at 20010c10> <StreamWriter <socket state=2 timeout=0 incoming=20004192 off=33>> "GET /static/upyeasy.js"
2018-05-20 19:48:01 [info] uPyEasy-STM32_2: GC MEM Free: 17,968

Can you see what is going wrong :?:
Cheers
Andrew

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests