This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

[OLD] LogicMachine firmware 2020.07
#61
@Thomas, thanks for letting us know
#62
i. I have an old MX LM reactor v2 and cannot get i updated firmware. It looks like everything goes allright and it reboots as it should but I still get the old firmware when I see on the firmware page. 
I also sometimes see that the LM hangs and I have to restart it as scripts doesnt run as excpected. I have about 100 trends running but at the same time lost about 90 of them
what can be wrong?
The logs then doesnt show clock etc when I look on it in trends window.
Here are some screen shots
  
#63
SD card is most likely in read only mode.
------------------------------
Ctrl+F5
#64
(29.12.2020, 10:17)Daniel. Wrote: SD card is most likely in read only mode.
The card has been changed once and updated til 2018 firmware but cannot upgrade from here. Can i test the sd card somehow? Can it suddenly be changed to read only from lm?
#65
I got a new SD card, and used the reflash sd card link( https://openrb.com/reflash-logicmachine3...-software/ )
Now I got the Logic machine up to 2020 versionSmile Thanks for the help Daniel
#66
Hi,

Thanks for this update: it's always promising to see new features emerging  Wink.
I noticed that since I upgraded to this version, the "scene.tagset" function (available through the genohm-scada library) is now broken. The error is also present when using the tagenable and tagdisable function. The error I get is "bad argument #1 to 'ipairs' (table expected, got string).

I've tried specifying the tagname as a table to no avail: scene.tagset({'tagname'},true) instead of scene.tagset('tagname',true).

It seems like my scenes are all still there as they were before the update, tags and all.

Any idea on how I could solve this?

Thanks in advance!
#67
@cedricdw, thanks for letting us know, this will be fixed in the next FW
#68
After changing sd card and updating all trend data is lost? Some trends seems corrupt. And some seems to be without data.
#69
I have two LM4 where I have to replace the read-only SD card.
I would like to take the opportunity to update the firmware. The current firmware is 20160714.
I would first replace the SD card with the current firmware and then do the update. Can I update directly to 2020.07 or should I do the updates in chronological order?
#70
I have replaced my older internal MicroSD card with a SanDisk Industrial SLC 32GB purchased from Mouser. Highly recommended, in case that you don't want to end up in replacing again the MicroSD card after few years due to system corruption.

In case that you don't manage to replace yourself the card, just send the Logic Machine to OpenRB and they will replace the MicroSD for you.

Attached Files Thumbnail(s)
   
#71
Good card but rather expensive and 32GB is not needed for LM. Even 1GB should be fine, just look for cards marked for industrial use. Pseudo-SLC and ultra MLC are fine as well. LM software is optimized to have a minimal amount of writes to the card so real SLC is not needed in most cases.
#72
(03.07.2020, 06:45)admin Wrote: Another notable feature is that LM now has built-in OpenVPN client and MQTT broker. OpenVPN can be configured from System Config, for MQTT broker you need install configuration app from the store.

Hi, I have activated the MQTT broker with the app (anonymous connections without encryption), trying to connect with MQTT explorer but  it always returns a 'Disconnected from server' message.
I also tried to connect to 127.0.0.1 as a client with a resident script but 

mclient = require('mosquitto').new()
mclient.ON_LOG = log

mclient.ON_CONNECT = function(res, ...)
log('mqtt connect status', res, ...)

  shows nothing in the log

Regards Johan
#73
Check if you have mosquitto in the process list
#74
Yes it is in the process list
#75
(04.01.2021, 21:04)cedricdw Wrote: Hi,

Thanks for this update: it's always promising to see new features emerging  Wink.
I noticed that since I upgraded to this version, the "scene.tagset" function (available through the genohm-scada library) is now broken. The error is also present when using the tagenable and tagdisable function. The error I get is "bad argument #1 to 'ipairs' (table expected, got string).

I've tried specifying the tagname as a table to no avail: scene.tagset({'tagname'},true) instead of scene.tagset('tagname',true).

It seems like my scenes are all still there as they were before the update, tags and all.

Any idea on how I could solve this?

Thanks in advance!

Hi, can I use this code as a workaround?

function ecl_enable_all_scenes_workaround(ai)
  -- ai must be 0 - inactivate 1 - activate
  db:update('scenes', {
    active = ai
})
end
LM5Lp, firmware: 2018.08.22 and 2021.12.15, FlashSYS v2, ARMv7 Processor rev 5 (v7l), kernel 4.4.151 and 4.4.259
#76
(25.01.2021, 18:07)Thomas Wrote:
(04.01.2021, 21:04)cedricdw Wrote: Hi,

Thanks for this update: it's always promising to see new features emerging  Wink.
I noticed that since I upgraded to this version, the "scene.tagset" function (available through the genohm-scada library) is now broken. The error is also present when using the tagenable and tagdisable function. The error I get is "bad argument #1 to 'ipairs' (table expected, got string).

I've tried specifying the tagname as a table to no avail: scene.tagset({'tagname'},true) instead of scene.tagset('tagname',true).

It seems like my scenes are all still there as they were before the update, tags and all.

Any idea on how I could solve this?

Thanks in advance!

Hi, can I use this code as a workaround?

function ecl_enable_all_scenes_workaround(ai)
  -- ai must be 0 - inactivate 1 - activate
  db:update('scenes', {
    active = ai
})
end
After one day it looks OK.
LM5Lp, firmware: 2018.08.22 and 2021.12.15, FlashSYS v2, ARMv7 Processor rev 5 (v7l), kernel 4.4.151 and 4.4.259
#77
In newer firmwares scenes.reload() call is needed for the scenes daemon to reload updated data.
#78
(25.01.2021, 09:57)johanax Wrote: Yes it is in the process list

I don't see any error or log messages, any hint on how to troubleshoot would be very much appreciated.

Regards Johan
#79
Post full listing of your test script.
#80
Just enable MQTT without encryption in the app and set MQTT explorer like this. If it won't connect then most likely it is firewall.
   
------------------------------
Ctrl+F5


Forum Jump: