Logic Machine Forum
[OLD] LogicMachine firmware 2019.10 - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: Announcements (https://forum.logicmachine.net/forumdisplay.php?fid=7)
+--- Forum: Software updates (https://forum.logicmachine.net/forumdisplay.php?fid=13)
+--- Thread: [OLD] LogicMachine firmware 2019.10 (/showthread.php?tid=2313)

Pages: 1 2 3 4 5


RE: [PRE-RELEASE 1] LogicMachine firmware 2019.10 - admin - 25.11.2019

This means that connection is working fine.
Next add some logging to group event callback:
Code:
function publishvalue(event)
    -- message from us or client is not connected
    if event.sender == 'mq' or not mclientfd then
      return
    end

    local addr = event.dst
    local dpt = datatypes[ addr ]
    local topic = object_to_mqtt[ addr ]

    -- unknown object
    if not dpt or not topic then
      return
    end

    local value = busdatatype.decode(event.datahex, dpt)
    if value ~= nil then
      if type(value) == 'boolean' then
        value = value and 1 or 0
      end

      log('publish', mclient:publish(topic, tostring(value)) )
    else
      log('failed to decode data', event.datahex, dpt)
    end
  end



RE: [PRE-RELEASE 1] LogicMachine firmware 2019.10 - DGrandes - 25.11.2019

(25.11.2019, 07:35)admin Wrote: This means that connection is working fine.
Next add some logging to group event callback:
Code:
  function publishvalue(event)
    -- message from us or client is not connected
    if event.sender == 'mq' or not mclientfd then
      return
    end

    local addr = event.dst
    local dpt = datatypes[ addr ]
    local topic = object_to_mqtt[ addr ]

    -- unknown object
    if not dpt or not topic then
      return
    end

    local value = busdatatype.decode(event.datahex, dpt)
    if value ~= nil then
      if type(value) == 'boolean' then
        value = value and 1 or 0
      end

      log('publish', mclient:publish(topic, tostring(value)) )
    else
      log('failed to decode data', event.datahex, dpt)
    end
  end

Hi,

Don´t log anything when I change value of 37/3/1 and in the script i have:

Code:
object_to_mqtt = {
    ['37/3/1'] = 'SEND1',
    ['37/3/2'] = 'SEND2',  --SEND 1 and SEND 2 are object to mqtt commands
  }



RE: [PRE-RELEASE 1] LogicMachine firmware 2019.10 - admin - 25.11.2019

Check if you get event data at all:
Code:
function publishvalue(event)
  log(event, datatypes[ event.dst ], object_to_mqtt[ event.dst ])



RE: [PRE-RELEASE 1] LogicMachine firmware 2019.10 - DGrandes - 25.11.2019

(25.11.2019, 09:05)DGrandes Wrote:
(25.11.2019, 07:35)admin Wrote: This means that connection is working fine.
Next add some logging to group event callback:
Code:
  function publishvalue(event)
    -- message from us or client is not connected
    if event.sender == 'mq' or not mclientfd then
      return
    end

    local addr = event.dst
    local dpt = datatypes[ addr ]
    local topic = object_to_mqtt[ addr ]

    -- unknown object
    if not dpt or not topic then
      return
    end

    local value = busdatatype.decode(event.datahex, dpt)
    if value ~= nil then
      if type(value) == 'boolean' then
        value = value and 1 or 0
      end

      log('publish', mclient:publish(topic, tostring(value)) )
    else
      log('failed to decode data', event.datahex, dpt)
    end
  end

Hi,

Don´t log anything when I change value of 37/3/1 and in the script i have:

Code:
object_to_mqtt = {
    ['37/3/1'] = 'SEND1',
    ['37/3/2'] = 'SEND2',  --SEND 1 and SEND 2 are object to mqtt commands
  }

I don´t get event data from "object_to_mqtt" objects but I get from other objects in my LM.
I have another question:
I´ve installed 2 MQTT packages from last Logic Machine Firmware but I don´t see new packages from this firmware, aren´t necessary?

   


RE: [PRE-RELEASE 1] LogicMachine firmware 2019.10 - admin - 25.11.2019

MQTT packages are included by default, no need to install anything manually. Do you get anything in the error log? Can you send backup from your device via PM so we can check locally?


RE: [PRE-RELEASE 1] LogicMachine firmware 2019.10 - DGrandes - 25.11.2019

(25.11.2019, 10:01)DGrandes Wrote:
(25.11.2019, 09:05)DGrandes Wrote:
(25.11.2019, 07:35)admin Wrote: This means that connection is working fine.
Next add some logging to group event callback:
Code:
  function publishvalue(event)
    -- message from us or client is not connected
    if event.sender == 'mq' or not mclientfd then
      return
    end

    local addr = event.dst
    local dpt = datatypes[ addr ]
    local topic = object_to_mqtt[ addr ]

    -- unknown object
    if not dpt or not topic then
      return
    end

    local value = busdatatype.decode(event.datahex, dpt)
    if value ~= nil then
      if type(value) == 'boolean' then
        value = value and 1 or 0
      end

      log('publish', mclient:publish(topic, tostring(value)) )
    else
      log('failed to decode data', event.datahex, dpt)
    end
  end

Hi,

Don´t log anything when I change value of 37/3/1 and in the script i have:

Code:
object_to_mqtt = {
    ['37/3/1'] = 'SEND1',
    ['37/3/2'] = 'SEND2',  --SEND 1 and SEND 2 are object to mqtt commands
  }

I don´t get event data from "object_to_mqtt" objects but I get from other objects in my LM.
I have another question:
I´ve installed 2 MQTT packages from last Logic Machine Firmware but I don´t see new packages from this firmware, aren´t necessary?
But mqtt server is internal on my network. 
Nothing in error log
Anydesk maybe to show my LM?


RE: [PRE-RELEASE 1] LogicMachine firmware 2019.10 - admin - 25.11.2019

This is probably not connected with MQTT server. You can also provide access via TeamViewer or port forward ports 22 and 80 to your LM.


RE: [PRE-RELEASE 1] LogicMachine firmware 2019.10 - DGrandes - 25.11.2019

(25.11.2019, 10:21)admin Wrote: This is probably not connected with MQTT server. You can also provide access via TeamViewer or port forward ports 22 and 80 to your LM.

I send you Teamviewer acces by mp


RE: [PRE-RELEASE 1] LogicMachine firmware 2019.10 - admin - 25.11.2019

Thanks, the issue was with resident script having 1 second sleep time (it should be 0). This causes the handler to get only 1 bus message per second.


RE: [PRE-RELEASE 1] LogicMachine firmware 2019.10 - DGrandes - 25.11.2019

(25.11.2019, 10:56)admin Wrote: Thanks, the issue was with resident script having 1 second sleep time (it should be 0). This causes the handler to get only 1 bus message per second.

Thanks!


RE: [PRE-RELEASE 1] LogicMachine firmware 2019.10 - gjniewenhuijse - 09.12.2019

I have a LM5P2-KC (right side of the device sticker).

But when i choose system - upgrade firmware is said: LM5 Lite + ext (i.MX6) ???

What firmware do i need to upgrade my device?


RE: [PRE-RELEASE 1] LogicMachine firmware 2019.10 - Daniel - 09.12.2019

LM5 Power with extensions


RE: [PRE-RELEASE 1] LogicMachine firmware 2019.10 - MichelDeLigne - 10.12.2019

Hi,
Does Mosaic3 work in the cloud with the release RC1?
Thx!


RE: [PRE-RELEASE 1] LogicMachine firmware 2019.10 - Daniel - 10.12.2019

yes it works


RE: [PRE-RELEASE 1] LogicMachine firmware 2019.10 - alexll - 13.12.2019

Is there any ETA for the final release?


RE: [PRE-RELEASE 1] LogicMachine firmware 2019.10 - admin - 16.12.2019

Not yet, RC2 is planned for early next year


RE: [PRE-RELEASE 1] LogicMachine firmware 2019.10 - andeug - 29.12.2019

(16.12.2019, 09:39)admin Wrote: Not yet, RC2 is planned for early next year

For the sake of releasing approved quality SW upgrades, I would strongly recommend to OpenRB to test the packages on all your HW products. 
For example, I own a LM4 and I have used the image file from this link and the result was that my LM4 has stayed on the same version. Below is a capture after the upgrade:

   
   
   

Also, don't forget to change the copyright year, as we will soon be in 2020!


RE: [PRE-RELEASE 1] LogicMachine firmware 2019.10 - admin - 30.12.2019

Are you sure your SD card is not in read-only state? This would explain why upgrade did not work.


RE: [PRE-RELEASE 1] LogicMachine firmware 2019.10 - andeug - 30.12.2019

I am using the same upgrade method as below, via the System config / System / Upgrade firmware.
I am not sure about which SD card you are mentioning - how can I check its state on a LM4 module?


RE: [PRE-RELEASE 1] LogicMachine firmware 2019.10 - Daniel - 30.12.2019

Open system logs and paste what is there. Use separate thread for this discussion.