• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. tomas_hora
    3. Best
    T
    • Profile
    • Following 0
    • Followers 9
    • Topics 1
    • Posts 733
    • Best 25
    • Controversial 0
    • Groups 2

    Best posts made by tomas_hora

    • RE: Can't connect to Neuron_M10x_DI_2.XX

      @seb There is a bug in the HW description of the M10x. Please download this file0_1495698539968_UniPiTechnology.Neuron_M10x.1.hw rename it to UniPiTechnology.Neuron_M10x.1.hw and replace it with the one in your instalation sub-folder \HwLibrary\PlatformIO (eg. C:\Program Files (x86)\Mervis\IDE 2.0.10 (52674)\HwLibrary\PlatformIO)

      Then restart the IDE, delete the M10x from the TCP Modbus Channel and add it again, it should work well.

      Sorry for the inconveniences.

      posted in Mervis
      T
      tomas_hora
    • RE: UNIPISPI spi0.0: SPI transfer failed

      @PhilesG Would you please try to update the our kernel modules to the latest version? You can do this by apt update && apt install unipi-kernel-modules or by rewriting the whole OS by a new one from https://kb.unipi.technology/en:files:software:os-images:00-start#axon_generation_os using this guide https://kb.unipi.technology/en:sw:01-mervis:running-on-axon-hidden#flashing_the_os

      posted in Axon series
      T
      tomas_hora
    • RE: Neuron - Addressing GPIO from C++

      Hi,

      the Neuron does not use the GPIOs of RPi for the I/Os. Instead there are 1-3 ARM processors (depending on the S/M/L Neuron version) for each group which communicate with the RPi using SPI, where a kind of Modbus protocol is used.

      We are working on the Evok to be finalized and debloated images. Right now there is a pretty simple possibility of using the TCP modbus server (available at localhost:502) which is included in the Mervis img, map of the register is available at http://downloads.unipi.technology

      So the easiest way for you might be to get a C++ library for TCP Modbus and get the advantage of the Modbus interface.

      Do not forget to stop and disable unneeded seriveces which are included in the Mervis OS:

      systemctl stop sharkrt
      systemctl stop configtool
      systemctl disable sharkrt
      systemctl disable configtool
      
      posted in Official API - Evok
      T
      tomas_hora
    • RE: Compilation problem

      @msoenen The issue is that you deleted the definition of the L203 device on the Modbus channel (if you double click on it, you will see that its empty). Delete it and insert a it again. Make sure to set the autogen on the device since you are in full mode (simple mode does that for you).

      posted in Mervis
      T
      tomas_hora
    • RE: Image with Node-RED for Patron with Debian 12 (Bookworm)

      Hi,

      the links to download beta version of the Node-Red image based on Debian 12 is here https://evok.readthedocs.io/en/latest/installation/#installing-beta-os-image

      posted in Node-RED
      T
      tomas_hora
    • RE: Neuron - Addressing GPIO from C++

      @Boy-Lenssen I am sorry for that but we had to move on from the RPi GPIOs forward to allow better scalability and variability of our products.

      Mervis is basically if this than that platform that runs in loop... Not a realtime solution but suitable for most automation applications.

      posted in Official API - Evok
      T
      tomas_hora
    • RE: Digital input not working

      @Boy-Lenssen You need a power supply (5-24V) as on the picture in the documentation negative pole (-) goes directly to DIGND. The positive pole(+) goes through the device (in your case the magnetic contact) to the DIX.Y. So one cable of the mag. contact goes to power supply and the other to Di.

      posted in Neuron Series
      T
      tomas_hora
    • RE: Compilation problem

      @msoenen Only the device on the Modbus TCP channel, not the whole PLC.

      The proxy configuration looks good. Did you upload the configuration (right click on PLC - PLC operation - PLC setup)? If you are connected to the PLC via the LAN and start the debug mode, check the Proxy information in the System Status.

      posted in Mervis
      T
      tomas_hora
    • RE: Neuron - Addressing GPIO from C++

      @Boy-Lenssen All the I/Os (except 1Wire) are acessible using the TCP Modbus protocol, the map of each register/coil can be found here

      Since it does not uses GPIOs of RPi, you do not need to set any pullups. Just use the registers/coils to set and read the states of IOs. You will need to poll the registers/coils periodically to catch the state of the I/O.

      I suggest you to take a look at some C++ ModBus TCP library that supports client mode.

      You can also use the Websockets, or HTTP REST api that evok provides (it is using the underlaying TCP Modbus): https://github.com/UniPiTechnology/evok#testing-latest-git-versions

      posted in Official API - Evok
      T
      tomas_hora
    • RE: protect to prevent damage to the Neuron?

      Hello @Boy-Lenssen ,

      • list itemDIs are a galvanically isolated so unless the voltage and current will stay in the limits, you should be OK
      • Digital outputs & analog inputs and outputs are coupled together to common ground. So a there could be a risk of potential damage to these components when you are off the limits.

      But do not worry the device is designed to provide maximum reliability when installed in the standard installation environment. And yes, replacing the device in case something goes wrong is the easiest and cheapest solution.

      posted in Neuron Series
      T
      tomas_hora
    • RE: FUPLA Blocks

      Hello,

      you have to create your own library. In general it is best to create an empty project just for your own libraries. Then just create a new librry project and your FB within it. By compiling the project a .slb file will be created in the library_project_name folder within your project. This file should be copied to the C:/Program files/Mervix (xxx)/Library

      posted in Mervis
      T
      tomas_hora
    • RE: Neuron - Addressing GPIO from C++

      @Boy-Lenssen You can use the Mervis which already includes teh TCP Modbus. Or the standard Raspbian and install it on your own from github https://github.com/UniPiTechnology/neuron_tcp_modbus_overlay

      And yes, than you would need to run Android Things on a different RPi.

      posted in Official API - Evok
      T
      tomas_hora
    • RE: Example application neuron - evok for home automation

      @Martijn-Hemeryck Check the documentation of evok https://evok-2.api-docs.io/1.02 but since it is only an API, I cannot give you any hints on how to start with the logic application.

      Direct switches are described in the documentation of Neurons at downloads: https://files.unipi.technology/s/public But if you want to control this login in the software, then go ahead. But expect the delay caused by the ModbusTCP <---evok---> webservices delay. But there are topics in this forum how to get evok faster a bit to poll the Modbus faster than the default poll rate to be able to catch fast pulses to the DIs

      posted in Neuron Series
      T
      tomas_hora
    • RE: Neuron - Addressing GPIO from C++

      @Boy-Lenssen You are welcome :) I am glad I helped a bit...

      posted in Official API - Evok
      T
      tomas_hora
    • RE: History log and SD card lifetime

      Hello everyone,

      we suggest using SLC or pSLC cards. The differences are explained in this article https://www.unipi.technology/key_feature/what-are-the-differences-between-memory-card-types-and-why-is-it-important-to-know-them-371

      Additionally, check the new upcoming Mervis IDE which features an option to configure the period of writing the nvram file (variables used at startup of Mervis RT) to the storage. If your application handles monitoring, you can set the period to 1minute and significantly reduce the amount of data written to the card.

      posted in Neuron Series
      T
      tomas_hora
    • RE: Neuron - Addressing GPIO from C++

      @Boy-Lenssen :) You got it all right. Evok and the TCP Modbus server are opensourse solutions for people who want to do their own implementation.

      Mervis makes UniPi all in one PLC system including scada, HMI designer and database.

      posted in Official API - Evok
      T
      tomas_hora
    • RE: Neuron - Addressing GPIO from C++

      @Boy-Lenssen You should be OK.

      posted in Official API - Evok
      T
      tomas_hora
    • RE: reading relay state via WebSocket

      @Boy-Lenssen Please try using cmd "get_state". Haven't tried but might work :)

      Also see: https://github.com/UniPiTechnology/evok/pull/9 which is adding a support to get state of all devices. In the release, it will be done in similar way or maybe different command.

      posted in Official API - Evok
      T
      tomas_hora
    • RE: EVOK: wget/POST api only works when control panel is open in browser

      @tomas_hora The issue should be fixed in one of the latest commits. Please check and let me know.

      posted in Official API - Evok
      T
      tomas_hora
    • RE: How to connect UNICA and Unipi

      @M4kr There are two parts that need to be uncommented. The definition of DS2438 claass and also enabling it in the code

      Reload evok and you should see the address of the sensor listed in the output of evok when runnin on hand: https://github.com/UniPiTechnology/evok#debugging (not in the WEB interface)

      Than you can create a new sensor in the evok.conf

      posted in Official API - Evok
      T
      tomas_hora