• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. Stoeffel
    3. Posts
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 23
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by Stoeffel

    • Problem with Values vrom xG18 after Evok Update

      I updated Evok today to the aktual version. After that I have the problem that the values of my xG18 dosen't get updated in evok (and fhem) in realtime. I get the correct values with <ip> /json/all or when i reload the webpage. All other values over UART get updated in time.
      I dosn't find any changes in evok.conf. But i tried with the newest from github with the same issue.

      Hardware M203 S/N722 with 1pc. xG18, xS11, xS51

      Kind regards
      Stefan

      posted in Official EVOK API
      S
      Stoeffel
    • RE: 1-wire occasionally stops working

      Hello Pavel

      I have a similar problem. I now made e workaround with a shell script that restart the 1-wire bus after a fixed time. It's not nice but it works for me.

      #!/bin/sh
      
      mbpoll -m tcp -a 0 127.0.0.1 -t 0 -0 -r 1001 1 && mbpoll -m tcp -a 0 127.0.0.1 $
      
      while sleep 120; do
      echo start mpoll 'date' 
      mbpoll -m tcp -a 0 127.0.0.1 -t 0 -0 -r 1001 1 && mbpoll -m tcp -a 0 127.0.0.1 $
      done
      
      

      Happy newyear
      Stefan

      posted in Other Peripherals
      S
      Stoeffel
    • RE: FHEM compatibility

      Hello Thomas

      Exemple with L503, xS51 and xG18. I also have some
      DS18B20 on the 1Wire Bus.
      Install Steps:

      • Check if everything is configured and works correct in evok
      • Check output of <IP_of_Neuron>/rest/all in your Browser
      • Install FHEM from the repository (https://fhem.de/#Installation)
      • Connect FHEM with your Neuron by typing: define <Name> Neuron <IP>:80
      • set attributes like in the picture (see on the bottom) below

      33af1b3e-7f12-4e72-9537-d3295fc93b6e-image.png

      After that all inputs and outputs get recogniced automatically.
      You will get a room named NeuronPin with all devices.

      Example (with some changed names):
      b4430f01-8ff0-46ad-bb4c-e75254958745-image.png

      Example of a analog input with a PT1000 Sensor for Temp. mesurment:
      46c55b40-b0fc-4e6c-bfc9-23234f3aea3d-image.png

      Example of a analog input with a Honywell PX3 pressure sensor:
      d38edfa9-8b54-40af-a144-2569bbdb9b9b-image.png

      I am developing a control system with FHEM for my distillery with a heat recoupling for the building heating of the residential house. When I'm finished, I'll be glad to present the project to you.

      posted in FHEM.de
      S
      Stoeffel
    • FHEM compatibility

      Fhem should now work properly with all Unipi versions (tested with L503 and M203) and the extensions xS11, xS51 and xG18.
      All inputs and outputs are correctly recognised and automatically created. The analogue inputs can be configured for resistance, voltage and current. The range can be set.
      Many thanks to Klaus from the FHEM forum for adapting the module.

      posted in FHEM.de
      S
      Stoeffel
    • RE: After installation of a xG18 extention I get a Server Error 500 for the Rest Json

      As promised, here is the feedback.
      The problem has definitely been solved.
      Many thanks for the help

      Kind regards
      Stefan

      posted in Official EVOK API
      S
      Stoeffel
    • RE: After installation of a xG18 extention I get a Server Error 500 for the Rest Json

      Hello Martin

      I hope I have solved the problem now. My Modbus and Json/Rest have been running error-free for 24 hours.
      I have done the following:

      • Update EVOK to 2.4.10
      • Deactivated the Modbus device in FHEM
      • The Modbus is now only addressed via the Neuron Device in FHEM.

      The access to the Modbus is realised with Fhem on the one hand via the Device Neuron and on the other hand via the Device Modbus. If both are installed, there will probably be conflicts which cause EVOK to crash. In any case, it was possible to get the system running again for a while by restarting EVOK.

      After deactivating the Modbus device in Fhem, I no longer had any error messages in EVOK. However, after 2 hours, the Modbus hung up again. Then I updated EVOK to 2.4.10 and rebooted everything. Since then, the system has been running error-free for 24 hours.
      I will get back a response to you in a week again.

      Kind regards Stefan

      posted in Official EVOK API
      S
      Stoeffel
    • RE: After installation of a xG18 extention I get a Server Error 500 for the Rest Json

      Hello Martin
      I checked again the evok.conf
      I have exactly the same settings as you.
      Here the output:

      user@sps:~ $ sudo /opt/evok/bin/python /opt/evok/lib/python2.7/site-packages/evok/evok.py
      [I 210721 21:36:07 config:73] eprom: UniPi Neuron L503 version: 1.0 serial: 0x62
      [I 210721 21:36:07 evok:1894] Starting using config file /etc/evok.conf
      /opt/evok/lib/python2.7/site-packages/evok/config.py:96: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
        self.definitions += [yaml.load(yfile)]
      [I 210721 21:36:07 config:97] YAML Definition loaded: xS10.yaml, type: 3, definition count 0
      [I 210721 21:36:08 config:97] YAML Definition loaded: xS30.yaml, type: 3, definition count 1
      [I 210721 21:36:08 config:97] YAML Definition loaded: IAQ.yaml, type: 3, definition count 2
      /opt/evok/lib/python2.7/site-packages/evok/config.py:103: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
        self.neuron_definition = yaml.load(yfile)
      [I 210721 21:36:08 config:104] YAML Definition loaded: /etc/hw_definitions/BuiltIn/L503.yaml, type: UniPiBuiltIn
      [I 210721 21:36:08 config:97] YAML Definition loaded: xS40.yaml, type: 3, definition count 3
      [I 210721 21:36:08 config:97] YAML Definition loaded: xG18.yaml, type: 3, definition count 4
      [I 210721 21:36:08 config:97] YAML Definition loaded: xS51.yaml, type: 3, definition count 5
      [I 210721 21:36:08 config:97] YAML Definition loaded: xS50.yaml, type: 3, definition count 6
      [I 210721 21:36:08 config:97] YAML Definition loaded: CUSTOM_MODBUS_DEVICE.yaml, type: 3, definition count 7
      [I 210721 21:36:08 config:97] YAML Definition loaded: xS11.yaml, type: 3, definition count 8
      [I 210721 21:36:08 config:97] YAML Definition loaded: evok-alias.yaml, type: 2, definition count 0
      [I 210721 21:36:08 evok:1964] HTTP server listening on port: 8080
      [I 210721 21:36:09 modbusclient_tornado:128] SPI client started
      [I 210721 21:36:09 modbusclient_rs485:347] UART client started
      [I 210721 21:36:09 neuron:334] Reading the UART board on Modbus address 2
      [I 210721 21:36:09 owclient:445] Entering OWW loop with PID 2074
      [I 210721 21:36:09 modbusclient_rs485:347] UART client started
      [I 210721 21:36:09 neuron:334] Reading the UART board on Modbus address 3
      [I 210721 21:36:09 modbusclient_rs485:347] UART client started
      [I 210721 21:36:09 neuron:334] Reading the UART board on Modbus address 4
      [I 210721 21:36:09 modbusclient_rs485:347] UART client started
      [I 210721 21:36:09 neuron:334] Reading the UART board on Modbus address 1
      [I 210721 21:36:09 neuron:215] Reading SPI boards
      [C 210721 21:36:09 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [D 210721 21:36:11 owclient:335] New sensor DS18B20 - 285076EB09000092
      [D 210721 21:36:11 owclient:335] New sensor DS18B20 - 2830A9D309000034
      [D 210721 21:36:11 owclient:335] New sensor DS18B20 - 283278D5090000C0
      [D 210721 21:36:11 owclient:335] New sensor DS18B20 - 28CA66EB09000090
      [D 210721 21:36:11 owclient:335] New sensor DS18B20 - 281EA6EA09000025
      [D 210721 21:36:11 owclient:335] New sensor DS18B20 - 2801BF790B0000F3
      [D 210721 21:36:11 owclient:335] New sensor DS18B20 - 2891EBEA090000EE
      [D 210721 21:36:11 owclient:335] New sensor DS18B20 - 28097AD30900005F
      [D 210721 21:36:11 owclient:335] New sensor DS18B20 - 28492EEB090000F4
      [D 210721 21:36:11 owclient:335] New sensor DS18B20 - 28D92ED409000097
      [D 210721 21:36:11 owclient:335] New sensor DS18B20 - 2885FFD3090000D1
      [D 210721 21:36:11 owclient:335] New sensor DS18B20 - 2895EBD40900006F
      [D 210721 21:36:11 owclient:335] New sensor DS18B20 - 289D6AD509000047
      [D 210721 21:36:11 owclient:335] New sensor DS18B20 - 28BD9ED309000041
      [D 210721 21:36:11 owclient:335] New sensor DS18B20 - 289391D40900000D
      [D 210721 21:36:11 owclient:335] New sensor DS18B20 - 284B90D309000023
      [D 210721 21:36:11 owclient:335] New sensor DS18B20 - 2877B5EB090000CD
      [D 210721 21:36:11 owclient:335] New sensor DS18B20 - 280FB2EB090000A5
      [C 210721 21:36:18 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [C 210721 21:36:19 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [C 210721 21:36:21 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [C 210721 21:36:21 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [C 210721 21:36:21 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [C 210721 21:36:21 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [E 210721 21:36:21 modbusclient_rs485:259]   Unrequested message: <modbusclient_rs485.AsyncErrorResponse object at 0x75f5b510>
      [D 210721 21:36:21 neuron:97] device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [C 210721 21:36:21 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [W 210721 21:36:21 sync:383] cleanup recv buffer before send: 
      [C 210721 21:36:22 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [W 210721 21:36:22 sync:383] cleanup recv buffer before send: 0x31
      [C 210721 21:36:22 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [W 210721 21:36:22 sync:383] cleanup recv buffer before send: 
      [C 210721 21:36:33 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [W 210721 21:36:33 sync:383] cleanup recv buffer before send: 0x0
      [C 210721 21:36:43 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [C 210721 21:36:45 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [C 210721 21:36:45 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [W 210721 21:36:45 sync:383] cleanup recv buffer before send: 
      [C 210721 21:36:46 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [I 210721 21:36:48 web:2064] 101 GET /ws (127.0.0.1) 6.56ms
      [D 210721 21:36:48 evok:162] New WebSocket client connected
      [C 210721 21:36:48 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [C 210721 21:36:48 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [W 210721 21:36:48 sync:383] cleanup recv buffer before send: 0x0
      [C 210721 21:36:48 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [C 210721 21:36:48 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [C 210721 21:36:48 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [C 210721 21:36:48 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [C 210721 21:36:48 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [C 210721 21:36:50 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [C 210721 21:36:51 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [C 210721 21:36:51 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [C 210721 21:36:51 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [W 210721 21:36:51 sync:383] cleanup recv buffer before send: 0x0
      [C 210721 21:36:53 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [W 210721 21:36:53 sync:383] cleanup recv buffer before send: 0x0
      [C 210721 21:36:53 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [C 210721 21:36:53 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [W 210721 21:36:53 sync:383] cleanup recv buffer before send: 0x80
      [C 210721 21:36:53 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [C 210721 21:36:54 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [W 210721 21:36:54 sync:383] cleanup recv buffer before send: 0x0
      [C 210721 21:37:05 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [W 210721 21:37:05 sync:383] cleanup recv buffer before send: 
      [C 210721 21:37:05 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [C 210721 21:37:06 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [W 210721 21:37:06 sync:383] cleanup recv buffer before send: 0x2
      [C 210721 21:37:14 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [W 210721 21:37:14 sync:383] cleanup recv buffer before send: 0x2
      [C 210721 21:37:22 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [C 210721 21:37:23 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [W 210721 21:37:23 sync:383] cleanup recv buffer before send: 
      [C 210721 21:37:35 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [W 210721 21:37:35 sync:383] cleanup recv buffer before send: 
      [C 210721 21:37:37 modbusclient_rs485:232] SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [W 210721 21:37:37 sync:383] cleanup recv buffer before send: 0x2
          Traceback (most recent call last):
            File "/opt/evok/local/lib/python2.7/site-packages/tornado/ioloop.py", line 605, in _run_callback
              ret = callback()
            File "/opt/evok/local/lib/python2.7/site-packages/tornado/stack_context.py", line 277, in null_wrapper
              return fn(*args, **kwargs)
            File "/opt/evok/lib/python2.7/site-packages/evok/modbusclient_rs485.py", line 162, in _sendAsyncRequest
              self.client._send(self.frame)
            File "/opt/evok/lib/python2.7/site-packages/evok/modbusclient_rs485.py", line 263, in _send
              super(AsyncModbusSerialClient, self)._send(request)
            File "/opt/evok/local/lib/python2.7/site-packages/pymodbus/client/sync.py", line 381, in _send
              result = self.socket.read(waitingbytes)
            File "/opt/evok/local/lib/python2.7/site-packages/serial/serialposix.py", line 596, in read
              'device reports readiness to read but returned no data '
          SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
      [E 210721 21:39:38 web:1591] Uncaught exception GET /rest/all (127.0.0.1)
          HTTPServerRequest(protocol='http', host='192.168.1.70:80', method='GET', uri='/rest/all', version='HTTP/1.0', remote_ip='127.0.0.1', headers={'Sec-Gpc': '1', 'Accept-Language': 'de-CH', 'Accept-Encoding': 'gzip, deflate', 'Host': '192.168.1.70:80', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0', 'Connection': 'close', 'Upgrade-Insecure-Requests': '1'})
          Traceback (most recent call last):
            File "/opt/evok/local/lib/python2.7/site-packages/tornado/web.py", line 1510, in _execute
              result = method(*self.path_args, **self.path_kwargs)
            File "/opt/evok/lib/python2.7/site-packages/evok/evok.py", line 1591, in get
              result += map(lambda dev: dev.full(), Devices.by_int(UNIT_REGISTER))
            File "/opt/evok/lib/python2.7/site-packages/evok/evok.py", line 1591, in <lambda>
              result += map(lambda dev: dev.full(), Devices.by_int(UNIT_REGISTER))
            File "/opt/evok/lib/python2.7/site-packages/evok/neuron.py", line 1655, in full
              'value': (self.regvalue()),
            File "/opt/evok/lib/python2.7/site-packages/evok/neuron.py", line 1593, in <lambda>
              self.regvalue = lambda: (self.arm.neuron.modbus_cache_map.get_register(1, self.valreg, unit=self.arm.modbus_address, is_input=_is_iput)[0] * self.factor) + self.offset
            File "/opt/evok/lib/python2.7/site-packages/evok/neuron.py", line 55, in get_register
              raise Exception('No cached value of register %d on unit %d - read error' % (counter, unit))
          Exception: No cached value of register 8 on unit 1 - read error
      [E 210721 21:39:38 web:2064] 500 GET /rest/all (127.0.0.1) 44.95ms
      [E 210721 21:39:42 web:1591] Uncaught exception GET /rest/all (::1)
          HTTPServerRequest(protocol='http', host='192.168.1.70:80', method='GET', uri='/rest/all', version='HTTP/1.0', remote_ip='::1', headers={'Sec-Gpc': '1', 'Accept-Language': 'de-CH', 'Accept-Encoding': 'gzip, deflate', 'Host': '192.168.1.70:80', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0', 'Connection': 'close', 'Upgrade-Insecure-Requests': '1'})
          Traceback (most recent call last):
            File "/opt/evok/local/lib/python2.7/site-packages/tornado/web.py", line 1510, in _execute
              result = method(*self.path_args, **self.path_kwargs)
            File "/opt/evok/lib/python2.7/site-packages/evok/evok.py", line 1591, in get
              result += map(lambda dev: dev.full(), Devices.by_int(UNIT_REGISTER))
            File "/opt/evok/lib/python2.7/site-packages/evok/evok.py", line 1591, in <lambda>
              result += map(lambda dev: dev.full(), Devices.by_int(UNIT_REGISTER))
            File "/opt/evok/lib/python2.7/site-packages/evok/neuron.py", line 1655, in full
              'value': (self.regvalue()),
            File "/opt/evok/lib/python2.7/site-packages/evok/neuron.py", line 1593, in <lambda>
              self.regvalue = lambda: (self.arm.neuron.modbus_cache_map.get_register(1, self.valreg, unit=self.arm.modbus_address, is_input=_is_iput)[0] * self.factor) + self.offset
            File "/opt/evok/lib/python2.7/site-packages/evok/neuron.py", line 55, in get_register
              raise Exception('No cached value of register %d on unit %d - read error' % (counter, unit))
          Exception: No cached value of register 8 on unit 1 - read error
      [E 210721 21:39:42 web:2064] 500 GET /rest/all (::1) 15.39ms
      [E 210721 21:39:50 web:1591] Uncaught exception GET /json/all (127.0.0.1)
          HTTPServerRequest(protocol='http', host='192.168.1.70:80', method='GET', uri='/json/all', version='HTTP/1.0', remote_ip='127.0.0.1', headers={'Sec-Gpc': '1', 'Accept-Language': 'de-CH', 'Accept-Encoding': 'gzip, deflate', 'Host': '192.168.1.70:80', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0', 'Connection': 'close', 'Upgrade-Insecure-Requests': '1'})
          Traceback (most recent call last):
            File "/opt/evok/local/lib/python2.7/site-packages/tornado/web.py", line 1512, in _execute
              result = yield result
            File "/opt/evok/local/lib/python2.7/site-packages/tornado/gen.py", line 1055, in run
              value = future.result()
            File "/opt/evok/local/lib/python2.7/site-packages/tornado/concurrent.py", line 238, in result
              raise_exc_info(self._exc_info)
            File "/opt/evok/local/lib/python2.7/site-packages/tornado/gen.py", line 307, in wrapper
              yielded = next(result)
            File "/opt/evok/local/lib/python2.7/site-packages/tornado_json/schema.py", line 160, in _wrapper
              output = rh_method(self, *args, **kwargs)
            File "/opt/evok/lib/python2.7/site-packages/evok/evok.py", line 1540, in get
              result += map(lambda dev: dev.full(), Devices.by_int(UNIT_REGISTER))
            File "/opt/evok/lib/python2.7/site-packages/evok/evok.py", line 1540, in <lambda>
              result += map(lambda dev: dev.full(), Devices.by_int(UNIT_REGISTER))
            File "/opt/evok/lib/python2.7/site-packages/evok/neuron.py", line 1655, in full
              'value': (self.regvalue()),
            File "/opt/evok/lib/python2.7/site-packages/evok/neuron.py", line 1593, in <lambda>
              self.regvalue = lambda: (self.arm.neuron.modbus_cache_map.get_register(1, self.valreg, unit=self.arm.modbus_address, is_input=_is_iput)[0] * self.factor) + self.offset
            File "/opt/evok/lib/python2.7/site-packages/evok/neuron.py", line 55, in get_register
              raise Exception('No cached value of register %d on unit %d - read error' % (counter, unit))
          Exception: No cached value of register 8 on unit 1 - read error
      [E 210721 21:39:50 web:2064] 500 GET /json/all (127.0.0.1) 23.83ms
      
      
      posted in Official EVOK API
      S
      Stoeffel
    • RE: After installation of a xG18 extention I get a Server Error 500 for the Rest Json

      Hello Martin

      I updated to 2.4.8. I can't see any difference. The problem is the same.

      <IP>/json/all:

      2f4a960f-7b3e-4de9-b5b1-7db1a947c097-grafik.png

      Also Modbus stops working after 1-5min. (Rx Tx stop blinking)

      <IP>/rest/all works properly.

      Greetings Stefan

      posted in Official EVOK API
      S
      Stoeffel
    • RE: After installation of a xG18 extention I get a Server Error 500 for the Rest Json

      Hello Martin
      I have some more information for you.
      I have now connected another xG18 to my M203. I can reproduce the problem there exactly the same as with the L503 in the post above. Possibly the problem is with all Neurons versions the same.
      My xG18 are V1.0

      I also have the feeling that the Evok frontend is updated much more slowly with connected xG18 and sometimes hangs. However, the inputs and outputs work perfectly.

      I have also updated the NGINX server from the bulleye repository to version 1.18 because I had read a report in the forum with similar log entries as errors, which are patched from V.1.17 onwards. Unfortunately, this was not the solution.

      Kind regards
      Stefan

      posted in Official EVOK API
      S
      Stoeffel
    • RE: After installation of a xG18 extention I get a Server Error 500 for the Rest Json

      Hello Martin

      Here's what I did:

      • Downloaded your image and copied it to a new SD card.

      • Set network parameters.

      • Logged in via ssh and executed the following:
        sudo apt-get update && sudo apt-get upgrade
        sudo apt-get install evok

      check if evok frontend is running --> okay
      check if <IP>/json/all is running --> okay

      • Configure xG18 in evok.conf (version above)

      • restart evok

      check if evok frontend is running --> okay
      check if <IP>/json/all is running --> Server Error 500
      801cd975-8cf0-4e25-91b0-95b632091116-grafik.png

      If its easier I can open a Open VPN vor you to the Neuron for debugging.
      I have been trying to solve the problem for more than a year now, and I bought the 4 xG18s specifically to avoid the problems with the owfs. I would be happy if we could solve the problem. By the way, I've informed and work together with klaus from fhem forum that the xG18 extensions are correctly recognised in FHEM. That's done now.

      Thanks Stefan

      posted in Official EVOK API
      S
      Stoeffel
    • RE: After installation of a xG18 extention I get a Server Error 500 for the Rest Json

      Hello Martin
      Thanks for your reply.
      And <IP_Neuron>/josn/all shows correct values? Or Server Error 500?
      In the Webfrontend of evok I have also correct values.

      Stefan

      posted in Official EVOK API
      S
      Stoeffel
    • RE: After installation of a xG18 extention I get a Server Error 500 for the Rest Json

      I was able to narrow down the problem further and I think the following error messages in the nginx.log are triggered when the server error 500 occurs:

      xy@sps:/var/log/nginx $ cat error.log
      2021/07/01 23:05:44 [alert] 1321#1321: *1 open socket #12 left in connection 2
      2021/07/01 23:05:44 [alert] 1321#1321: *2 open socket #13 left in connection 3
      2021/07/01 23:05:44 [alert] 1321#1321: *3 open socket #14 left in connection 4
      2021/07/01 23:05:44 [alert] 1321#1321: *4 open socket #15 left in connection 5
      2021/07/01 23:05:44 [alert] 1321#1321: aborting
      
      

      As soon as I comment out the xG18 in the evok.conf, the error messages are gone and the server runs perfectly.

      posted in Official EVOK API
      S
      Stoeffel
    • RE: After installation of a xG18 extention I get a Server Error 500 for the Rest Json

      Hello Martin
      Can we please look at my issue with the Server Error 500 again.
      When restart evok by "sudo service evok restart" the rest API works properly.
      After app. 7s it hangs with Server error 500 as discribed above.
      In the meantime I am on evok 2.4.6.
      Here are the log Files:
      nginx error.log

      xy@sps:/var/log/nginx $ cat error.log
      2021/06/30 21:02:10 [error] 1334#1334: *585 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.7, server: _, request: "GET /ws HTTP/1.1", upstream: "http://127.0.0.1:8080/ws", host: "192.168.1.70"
      2021/06/30 21:02:10 [error] 1334#1334: *585 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.7, server: _, request: "GET /ws HTTP/1.1", upstream: "http://[::1]:8080/ws", host: "192.168.1.70"
      2021/06/30 21:04:46 [error] 1335#1335: *592 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.70, server: _, request: "GET /ws HTTP/1.1", upstream: "http://127.0.0.1:8080/ws", host: "192.168.1.70"
      2021/06/30 21:04:46 [error] 1335#1335: *592 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.70, server: _, request: "GET /ws HTTP/1.1", upstream: "http://[::1]:8080/ws", host: "192.168.1.70"
      

      I can't input full .log content because I got a spam filter warning.

      evok.log after restart:

      xy@sps:/var/log $ cat evok.log
      2021-06-30 22:23:44,588 - evok - INFO - Starting using config file /etc/evok.conf
      2021-06-30 22:23:44,674 - evok - INFO - YAML Definition loaded: xS10.yaml, type: 3, definition count 0
      2021-06-30 22:23:44,761 - evok - INFO - YAML Definition loaded: xS30.yaml, type: 3, definition count 1
      2021-06-30 22:23:44,874 - evok - INFO - YAML Definition loaded: IAQ.yaml, type: 3, definition count 2
      2021-06-30 22:23:45,183 - evok - INFO - YAML Definition loaded: /etc/hw_definitions/BuiltIn/L503.yaml, type: UniPiBuiltIn
      2021-06-30 22:23:45,276 - evok - INFO - YAML Definition loaded: xS40.yaml, type: 3, definition count 3
      2021-06-30 22:23:45,322 - evok - INFO - YAML Definition loaded: xG18.yaml, type: 3, definition count 4
      2021-06-30 22:23:45,431 - evok - INFO - YAML Definition loaded: xS51.yaml, type: 3, definition count 5
      2021-06-30 22:23:45,539 - evok - INFO - YAML Definition loaded: xS50.yaml, type: 3, definition count 6
      2021-06-30 22:23:45,577 - evok - INFO - YAML Definition loaded: CUSTOM_MODBUS_DEVICE.yaml, type: 3, definition count 7
      2021-06-30 22:23:45,660 - evok - INFO - YAML Definition loaded: xS11.yaml, type: 3, definition count 8
      2021-06-30 22:23:45,673 - evok - INFO - YAML Definition loaded: evok-alias.yaml, type: 2, definition count 0
      2021-06-30 22:23:45,722 - evok - INFO - HTTP server listening on port: 8080
      2021-06-30 22:23:45,761 - evok - INFO - SPI client started
      2021-06-30 22:23:45,767 - evok - INFO - Reading the UART board on Modbus address 2
      2021-06-30 22:23:45,770 - evok - INFO - Entering OWW loop with PID 8238
      2021-06-30 22:23:45,771 - evok - INFO - Reading the UART board on Modbus address 4
      2021-06-30 22:23:45,773 - evok - INFO - Reading the UART board on Modbus address 8
      2021-06-30 22:23:45,776 - evok - INFO - Reading the UART board on Modbus address 1
      2021-06-30 22:23:45,779 - evok - INFO - Reading SPI boards
      2021-06-30 22:23:45,824 - evok - INFO - Alias loaded: <neuron.Relay object at 0x75fa0050> al_lights_kitchen
      2021-06-30 22:23:45,826 - evok - INFO - Alias loaded: <neuron.Relay object at 0x75fa5490> al_lights_bedroom
      2021-06-30 22:23:46,440 - evok - DEBUG - New WebSocket client connected
      2021-06-30 22:23:47,221 - evok - DEBUG - New sensor DS18B20 - 285076EB09000092
      2021-06-30 22:23:47,229 - evok - DEBUG - New sensor DS18B20 - 2830A9D309000034
      2021-06-30 22:23:47,238 - evok - DEBUG - New sensor DS18B20 - 283278D5090000C0
      2021-06-30 22:23:47,244 - evok - DEBUG - New sensor DS18B20 - 28CA66EB09000090
      2021-06-30 22:23:47,252 - evok - DEBUG - New sensor DS18B20 - 281EA6EA09000025
      2021-06-30 22:23:47,259 - evok - DEBUG - New sensor DS18B20 - 2891EBEA090000EE
      2021-06-30 22:23:47,266 - evok - DEBUG - New sensor DS18B20 - 28097AD30900005F
      2021-06-30 22:23:47,273 - evok - DEBUG - New sensor DS18B20 - 28D92ED409000097
      2021-06-30 22:23:47,283 - evok - DEBUG - New sensor DS18B20 - 2885FFD3090000D1
      2021-06-30 22:23:47,288 - evok - DEBUG - New sensor DS18B20 - 289D6AD509000047
      2021-06-30 22:23:47,297 - evok - DEBUG - New sensor DS18B20 - 28BD9ED309000041
      2021-06-30 22:23:47,305 - evok - DEBUG - New sensor DS18B20 - 2877B5EB090000CD
      2021-06-30 22:23:47,309 - evok - DEBUG - New sensor DS18B20 - 280FB2EB090000A5
      2021-06-30 22:24:00,858 - evok - INFO - Alias loaded: <neuron.Relay object at 0x75fa0050> al_lights_kitchen
      2021-06-30 22:24:00,859 - evok - INFO - Alias loaded: <neuron.Relay object at 0x75fa5490> al_lights_bedroom
      2021-06-30 22:24:03,870 - evok - INFO - Alias loaded: <neuron.Relay object at 0x75fa0050> al_lights_kitchen
      2021-06-30 22:24:03,872 - evok - INFO - Alias loaded: <neuron.Relay object at 0x75fa5490> al_lights_bedroom
      2021-06-30 22:24:08,379 - evok - INFO - Alias loaded: <neuron.Relay object at 0x75fa0050> al_lights_kitchen
      2021-06-30 22:24:08,380 - evok - INFO - Alias loaded: <neuron.Relay object at 0x75fa5490> al_lights_bedroom
      2021-06-30 22:24:11,390 - evok - INFO - Alias loaded: <neuron.Relay object at 0x75fa0050> al_lights_kitchen
      2021-06-30 22:24:11,391 - evok - INFO - Alias loaded: <neuron.Relay object at 0x75fa5490> al_lights_bedroom
      2021-06-30 22:24:48,425 - evok - DEBUG - New WebSocket client connected
      2021-06-30 22:24:49,543 - evok - DEBUG - New WebSocket client connected
      2021-06-30 22:32:18,525 - evok - INFO - Shutting down
      2021-06-30 22:32:19,819 - evok - INFO - Starting using config file /etc/evok.conf
      2021-06-30 22:32:19,904 - evok - INFO - YAML Definition loaded: xS10.yaml, type: 3, definition count 0
      2021-06-30 22:32:19,992 - evok - INFO - YAML Definition loaded: xS30.yaml, type: 3, definition count 1
      2021-06-30 22:32:20,105 - evok - INFO - YAML Definition loaded: IAQ.yaml, type: 3, definition count 2
      2021-06-30 22:32:20,414 - evok - INFO - YAML Definition loaded: /etc/hw_definitions/BuiltIn/L503.yaml, type: UniPiBuiltIn
      2021-06-30 22:32:20,506 - evok - INFO - YAML Definition loaded: xS40.yaml, type: 3, definition count 3
      2021-06-30 22:32:20,553 - evok - INFO - YAML Definition loaded: xG18.yaml, type: 3, definition count 4
      2021-06-30 22:32:20,661 - evok - INFO - YAML Definition loaded: xS51.yaml, type: 3, definition count 5
      2021-06-30 22:32:20,770 - evok - INFO - YAML Definition loaded: xS50.yaml, type: 3, definition count 6
      2021-06-30 22:32:20,808 - evok - INFO - YAML Definition loaded: CUSTOM_MODBUS_DEVICE.yaml, type: 3, definition count 7
      2021-06-30 22:32:20,892 - evok - INFO - YAML Definition loaded: xS11.yaml, type: 3, definition count 8
      2021-06-30 22:32:20,905 - evok - INFO - YAML Definition loaded: evok-alias.yaml, type: 2, definition count 0
      2021-06-30 22:32:20,953 - evok - INFO - HTTP server listening on port: 8080
      2021-06-30 22:32:20,992 - evok - INFO - SPI client started
      2021-06-30 22:32:20,998 - evok - INFO - Reading the UART board on Modbus address 2
      2021-06-30 22:32:21,001 - evok - INFO - Entering OWW loop with PID 9135
      2021-06-30 22:32:21,002 - evok - INFO - Reading the UART board on Modbus address 4
      2021-06-30 22:32:21,004 - evok - INFO - Reading the UART board on Modbus address 8
      2021-06-30 22:32:21,007 - evok - INFO - Reading the UART board on Modbus address 1
      2021-06-30 22:32:21,010 - evok - INFO - Reading SPI boards
      2021-06-30 22:32:21,054 - evok - INFO - Alias loaded: <neuron.Relay object at 0x76463f10> al_lights_kitchen
      2021-06-30 22:32:21,056 - evok - INFO - Alias loaded: <neuron.Relay object at 0x75f052d0> al_lights_bedroom
      2021-06-30 22:32:39,082 - evok - INFO - Alias loaded: <neuron.Relay object at 0x76463f10> al_lights_kitchen
      2021-06-30 22:32:39,084 - evok - INFO - Alias loaded: <neuron.Relay object at 0x75f052d0> al_lights_bedroom
      2021-06-30 22:32:42,096 - evok - INFO - Alias loaded: <neuron.Relay object at 0x76463f10> al_lights_kitchen
      2021-06-30 22:32:42,097 - evok - INFO - Alias loaded: <neuron.Relay object at 0x75f052d0> al_lights_bedroom
      
      

      By the way, can I configure the value reading speed (and refresh time in evok) of the 1Wire Sensors connected to the xG18 devices?

      Thank you
      Stefan

      posted in Official EVOK API
      S
      Stoeffel
    • RE: After installation of a xG18 extention I get a Server Error 500 for the Rest Json

      Hello Martin
      Do you need further information? I have a second installation with a new M203. If it helps I can try to repeat the issue there again.

      Kind regards Stefan

      posted in Official EVOK API
      S
      Stoeffel
    • RE: After installation of a xG18 extention I get a Server Error 500 for the Rest Json

      Hello Martin

      Thanks for reply. I made following steps after a sudo apt-get update and upgrade to find the problem:

      sudo apt-get remove --purge evok && sudo apt-get install evok
      

      ... after that, the json Server runs well, but after uncomment the three Mandatory lines for my xG18 Extension and after a "sudo service evok restart"
      the Server Quit with Error 500. I can reproduce this every time.

      dpkg -l | grep evok

      any@anysps:~ $ dpkg -l | grep evok
      ii  evok                            2.3.8~stretch                     armhf        UniPi API based on the Tornado webserver
      
      
      

      cat /etc/evok.conf:

      
      
      #!!! Do not use '#' for comments !!!
      
      [MAIN]						; !!! ALL MAIN SECTION OPTIONS ARE MANDATORY !!!
      config_version = 2.5				; Configuration file version, DO NOT CHANGE!
      use_schema_verification = False			; Enabling this will deny any requests that do not match the JSON Schema; NOTE THAT THIS RESULTS IN A SIGNIFICANT INCREASE IN LATENCY AND SHOULD NOT BE USED EXCEPT FOR TESTING
      log_level = ERROR   				; Minimum severity of messages to be logged; one of INFO, DEBUG, WARNING, ERROR, CRITICAL
      log_file = /var/log/evok.log			; Log file to use; will be cleared on boot
      port = 8080					; !!! Internal API port - only change if you are certain you know what you are doing; FOR OUR WEB INTERFACE THE PORT SHOULD BE CHANGED IN "/etc/evok-nginx.conf" INSTEAD !!!
      webhook_enabled = False				; Enables webhook notification - see e.g. https://sendgrid.com/blog/whats-webhook/
      webhook_address = http://127.0.0.1:80   	; Put your server endpoint address here (e.g. http://123.123.123.123:/wh )
      webhook_device_mask = ["input","wd"]		; List of device types to notify on (written as a JSON list) - adding AI will generate a large amount of messages!
      webhook_complex_events = False			; EVOK will send POST requests with the same data as WebSocket, rather than an empty GET request
      soap_server_enabled = False			; Enables the simple SOAP server; use only if you need the functionality
      soap_server_port = 8081				; !!! IF SOAP SERVER IS ENABLED, THIS PORT NEEDS TO BE UNIQUE (i.e. different from the port setting above) !!!
      force_immediate_state_changes = False		; Outputs will return the value they are set to, rather than the value that the device is currently aware of
      websocket_all_filtered = False			; 'All' WebSocket requests will be subject to the filtering set by 'filter'
      
      [NEURON_1]
      global_id = 1					; Mandatory, REQUIRED TO BE UNIQUE
      allow_register_access = False 			; Optional, False default
      scan_frequency = 10				; Optional, 10 default, scanning frequency in [Hz]
      scan_enabled = True 				; Optional, True default
      
      ; Below you can find examples for connecting devices over UART; first example is a Neuron extension while the second is a custom third-party device
      ; Devices sharing a port use the port settings of the first device on that port (baud rate, parity, stop bits)
      ; !!! Note that device_name has to match a filename in the /etc/hw_definitions directory !!! See /etc/hw_definitions/CUSTOM_MODBUS_DEVICE.yaml for an example
      
      ;[EXTENSION_1]
      ;global_id = 2					; Mandatory, REQUIRED TO BE UNIQUE
      ;device_name = xS10				; Mandatory, must match name of .yaml modbus map file in /etc/hw_definitions
      ;modbus_uart_port = /dev/extcomm/0/0 		; Mandatory
      ;neuron_uart_circuit = 1_01			; Optional, allows associating extensions with specific Neuron UART-over-Modbus ports (not possible for non-Modbus UART ports, e.g. /dev/ttyUSB0 or /dev/ttyS0)
      ;allow_register_access = True 			; Optional, False default, is mandatory with third-party devices
      ;address = 1					; Optional, 1 default
      ;scan_frequency = 10 				; Optional, 10 default, scanning frequency in [Hz]
      ;scan_enabled = True 				; Optional, True default
      ; Note that the following settings will be inherited by other devices sharing the same port, i.e. /dev/extcomm/0/0
      ;baud_rate = 19200				; Optional, NEEDS UNIPI IMAGE TO WORK WITH UNIPI SERIAL PORTS! USE API TO CONFIGURE UART MANUALLY IF USING STANDARD RASPBIAN
      ;parity = N					; Optional, NEEDS UNIPI IMAGE TO WORK WITH UNIPI SERIAL PORTS! USE API TO CONFIGURE UART MANUALLY IF USING STANDARD RASPBIAN
      ;stop_bits = 1					; Optional, NEEDS UNIPI IMAGE TO WORK WITH UNIPI SERIAL PORTS! USE API TO CONFIGURE UART MANUALLY IF USING STANDARD RASPBIAN
      
      [EXTENSION_xG18_1]
      global_id = 2                                  ; Mandatory, REQUIRED TO BE UNIQUE
      device_name = xG18                             ; Mandatory, must match name of .yaml modbus map file in /etc/hw_definitions
      modbus_uart_port = /dev/extcomm/0/0            ; Mandatory
      ;neuron_uart_circuit = 1_01                     ; Optional, allows associating extensions with specific Neuron UART-over-Modbus ports (not possible for non-Modbus UART ports, e.g. /dev/$
      ;allow_register_access = True                   ; Optional, False default, is mandatory with third-party devices
      ;address = 1                                    ; Optional, 1 default
      ;scan_frequency = 10                            ; Optional, 10 default, scanning frequency in [Hz]
      ;scan_enabled = True                            ; Optional, True default
      ; Note that the following settings will be inherited by other devices sharing the same port, i.e. /dev/extcomm/0/0
      ;baud_rate = 19200                              ; Optional, NEEDS UNIPI IMAGE TO WORK WITH UNIPI SERIAL PORTS! USE API TO CONFIGURE UART MANUALLY IF USING STANDARD RASPBIAN
      ;parity = N                                     ; Optional, NEEDS UNIPI IMAGE TO WORK WITH UNIPI SERIAL PORTS! USE API TO CONFIGURE UART MANUALLY IF USING STANDARD RASPBIAN
      ;stop_bits = 1                                  ; Optional, NEEDS UNIPI IMAGE TO WORK WITH UNIPI SERIAL PORTS! USE API TO CONFIGURE UART MANUALLY IF USING STANDARD RASPBIAN
      
      
      ;[EXTENSION_2]
      ;global_id = 3					; Mandatory, REQUIRED TO BE UNIQUE
      ;device_name = CUSTOM MODBUS DEVICE		; Mandatory, must match name of .yaml modbus map file in /etc/hw_definitions
      ;modbus_uart_port = /dev/extcomm/0/0 		; Mandatory
      ;neuron_uart_circuit = 1_01			; Optional, allows associating extensions with specific Neuron UART-over-Modbus ports (not possible for non-Modbus UART ports, e.g. /dev/ttyUSB0 or /dev/ttyS0)
      ;allow_register_access = True 			; Mandatory with third-party devices
      ;address = 1 					; Optional, 15 default
      ;scan_frequency = 2 				; Optional, 1 default, scanning frequency in [Hz]
      ;scan_enabled = True 				; Optional, True default
      
      [OWBUS_1]
      owbus = /dev/i2c-1                      	; Mandatory, scanned bus (--i2c=/dev/i2c-1:ALL or localhost:2122 or 'u' for USB dongle)
      interval = 3          				; Mandatory, [s] length of sensor reading
      scan_interval = 300    				; Mandatory, [s] How often the scanning is done
      
      ; See below for 1Wire extension module configuration
      ; Example for the 1W-4R/4DI extension module, 1W-8R is almost the same, only with inputs instead of relays
      ;
      ; - Map a new 1Wire sensor with the appropriate address, type and interval
      ; - The syntax can be either SENSOR or 1WDEVICE
      ; - Setting the correct reading interval is crucial to achieve ideal performance; the default interval is 15s
      ;
      ;[1WDEVICE_2]
      ;bus = 1
      ;address = 29F39A17000000BC
      ;type = DS2408
      ;interval = 1
      ;
      ;[1WRELAY_10]
      ;sensor = 2
      ;pin = 0
      ;
      ;[1WRELAY_11]
      ;sensor = 2
      ;pin = 1
      ;
      ;[1WRELAY_12]
      ;sensor = 2
      ;pin = 2
      ;
      ;[1WRELAY_13]
      ;sensor = 2
      ;pin = 3
      ;
      ;[1WINPUT_20]
      ;sensor = 2
      ;pin = 4
      ;
      ;[1WINPUT_21]
      ;sensor = 2
      ;pin = 5
      ;
      ;[1WINPUT_22]
      ;sensor = 2
      ;pin = 6
      ;
      ;[1WINPUT_23]
      ;sensor = 2
      ;pin = 7
      
      
      posted in Official EVOK API
      S
      Stoeffel
    • After installation of a xG18 extention I get a Server Error 500 for the Rest Json

      After installation of a xG18 extention I get a Server Error 500 for the Rest Json.
      With a fresh install of EVOK everithing runs fine. Then I installed a xG18 module and made the configuration in the /etc/evok.conf as follow:

      [EXTENSION_xG18_1]
      global_id = 2                                  ; Mandatory, REQUIRED TO BE UNIQUE
      device_name = xG18                             ; Mandatory, must match name of .yaml modbus map file in /etc/hw_definitions
      modbus_uart_port = /dev/extcomm/0/0            ; Mandatory
      ;neuron_uart_circuit = 1_01                     ; Optional, allows associating extensions with specific Neuron UART-over-Modbus ports (not possible for non-Modbus $
      ;allow_register_access = True                   ; Optional, False default, is mandatory with third-party devices
      ;address = 1                                    ; Optional, 1 default
      ;scan_frequency = 10                            ; Optional, 10 default, scanning frequency in [Hz]
      ;scan_enabled = True                            ; Optional, True default
      ; Note that the following settings will be inherited by other devices sharing the same port, i.e. /dev/extcomm/0/0
      ;baud_rate = 19200                              ; Optional, NEEDS UNIPI IMAGE TO WORK WITH UNIPI SERIAL PORTS! USE API TO CONFIGURE UART MANUALLY IF USING STANDARD$
      ;parity = N                                     ; Optional, NEEDS UNIPI IMAGE TO WORK WITH UNIPI SERIAL PORTS! USE API TO CONFIGURE UART MANUALLY IF USING STANDARD$
      ;stop_bits = 1                                  ; Optional, NEEDS UNIPI IMAGE TO WORK WITH UNIPI SERIAL PORTS! USE API TO CONFIGURE UART MANUALLY IF USING STANDARD$
      

      After that the Extension appear in the EVOK Webfrontend. But when I made a
      http://myunipi/json/all
      I get a:
      c9e1c0bb-e402-4ee6-bd1f-2d409730390e-grafik.png

      Do you have any Idea why? When I uncomment the xG18 section the Server Error disapeer.

      posted in Official EVOK API
      S
      Stoeffel
    • RE: Extension xG18 on a Neuron failed, missing xG18.yaml?

      So. Now I solved the problem:
      After a

      sudo apt-get remove --purge evok && sudo apt-get update && sudo apt-get upgrade && sudo apt-get install evok
      
      

      and with this new configuration in the evok.conf I got it:

      [EXTENSION_1]
      global_id = 2                                   ; Mandatory, REQUIRED TO BE UNIQUE
      device_name = xG18                                 ; Mandatory
      modbus_uart_port = /dev/extcomm/0/0            ; Mandatory
      ;neuron_uart_circuit = 1_01                   ; Optional
      allow_register_access = True               ; Optional
      address = 1                                           ; Optional, 
      scan_frequency = 10                            ; Optional, 
      scan_enabled = True                            ; Optional, 
      ;baud_rate = 19200                              ; Optional
      ;parity = N                                             ; Optional,
      ;stop_bits = 1                                        ; Optional
      
      posted in Official EVOK API
      S
      Stoeffel
    • RE: Extension xG18 on a Neuron failed, missing xG18.yaml?

      Hello Martin

      I'm a little further along.
      The extension is now recognized in the EVOK frontend.
      06b42ee6-6f5d-4c04-b3b0-297a0c0cba23-grafik.png
      But I don't have any Inputs on EVOK in the section:
      ef502caf-a79f-44c2-804f-2413bb6620c7-grafik.png
      Also the tx/rx led's do not blink.
      I tried with several settings, but nothing works already until now.

      posted in Official EVOK API
      S
      Stoeffel
    • RE: Extension xG18 on a Neuron failed, missing xG18.yaml?

      Thank you very much Martin
      Update to evok 2.3.0 is done now. The xG18.yaml is now under /etc/hwdefinitions/
      The xG18 extension is connected. The RS485 bus also A-A and B-B. I made all settings via the DIP switches and configured the evok.conf. (as already described above ). Unfortunately I have no connection and the rx tx LED's are not flashing. Do I still have to configure the Modbus on the unipi?
      Greetings Stefan

      posted in Official EVOK API
      S
      Stoeffel
    • RE: Extension xG18 on a Neuron failed, missing xG18.yaml?

      Hello @Martin-Kudláček
      Thanks for your information. Then I will be patient a little longer.
      I would like to ask you if adding the ID's of the 1 Wire temperature sensors to evok.conf has any performance advantages.
      I have been trying to work on my distillery control for some time now. I have 18 pc. DS18B20 sensors on the 1 Wire bus. The update time of the sensors is sometimes not fast enough or not reliable. With a script I do a reset of the 1Wire bus every 2 minutes.

      #!/bin/sh
      while sleep 120; do
      echo start mpoll 'date' 
      mbpoll -m tcp -a 0 127.0.0.1 -t 0 -0 -r 1001 1 && mbpoll -m tcp -a 0 127.0.0.1 -t 0 -0 -r 1001 0
      done
      
      

      So the bus now runs reliably, but it cannot be a permanent solution. So I thought I would switch to the Modbus and use the DS1820 with the xG18 extension. I hope we have a reliable solution.

      7b8ab249-6ca8-4606-8970-f882991e5b44-grafik.png

      posted in Official EVOK API
      S
      Stoeffel