GL-S200 Script Failing - demo_user_action_trigger

When I try to run the script "demo_user_action_trigger" I am getting the following error:

root@GL-S200:/usr/bin# ./demo_user_action_trigger
./demo_user_action_trigger:9: module 'glog' not found:
no field package.preload['glog']
no file '/usr/local/share/lua/5.3/glog.lua'
no file '/usr/local/share/lua/5.3/glog/init.lua'
no file '/usr/local/lib/lua/5.3/glog.lua'
no file '/usr/local/lib/lua/5.3/glog/init.lua'
no file './glog.lua'
no file './glog/init.lua'
no file '/usr/local/lib/lua/5.3/glog.so'
no file '/usr/local/lib/lua/5.3/loadall.so'
no file './glog.so'
root@GL-S200:/usr/bin#

I did find "glog.so" in the /usr/lib/lua directory, but even copying that version into one of the directories above generates a "Segmentation Fault".

Seems like the correct glog.so was not included in the build?

@Barry do you have any ideas?

Hi @Humancell ,

You could modify the script manually to fix this for now.

@@ -9,1 +9,1 @@
- local log = require "glog"
+ local log = require "eco.log"
@@ -14,1 +14,1 @@
- log.level(log.LOG_INFO)
+ -- log.level(log.LOG_INFO)
  1. Change 'glog' to 'eco.log' in line 9 of the script.
  2. Comment the line 14.

After that, you could test knob with this script like:

Also we will update the workaround to our new firmware in the future. :grinning:

Hello,

Thank you for this ... that worked!

BUT ... my Button Press is not working? No matter what I do I do not ever get a button press event.

Also, the turning of the knob is not very responsive or predictable? It seems to be very random on the events. Sometimes it takes 3-4 clicks before the event triggers? Is this on purpose or written in the code this way?

Hello @Barry ,

I have tested several Thread Development Boards ... they are all running the v2.1.1 FTD firmware ... and none of them work on the button press. Only the turning. Is this also a bug? :frowning:

Oops, it did have bug with v2.1.1 FTD like you said. :no_mouth:
But it is fine with v1.2.2, do you have jlink to flash the v1.2.2 firmware? And could you temporarily use v1.2.2 to do your test? We need some time to fix it.
GL-Dev-Board-Thread-FTD-JLINK-UPGRADE-v1.2.2.zip (477.5 KB)