@cleve
Hello Cleve
Thanks for reply.
sudo apt-get -o Dpkg::Options::="--force-confmiss" install --reinstall evok-unipi-data
Did what it was supposed to do.
Thank a lot for your help.
@cleve
Hello Cleve
Thanks for reply.
sudo apt-get -o Dpkg::Options::="--force-confmiss" install --reinstall evok-unipi-data
Did what it was supposed to do.
Thank a lot for your help.
Problem:
EVOK 3.0.6 installed on UniPiOS 12.20251103.1
/etc/evok/hw_definitions/ is empty (except Iris modules)
Missing: 00.yaml, 08.yaml, xG18.yaml, xS11.yaml, xS51.yaml
evok-unipi-data shows status [residual-config]
Hardware: Neuron M203 with extensions xG18, xS11, xS51
What I tried:
apt install evok-unipi-data-full → only installs Iris modules (IM203, IM204, etc.)
apt install evok-unipi-data → after purge/reinstall still empty
Error in EVOK logs:
ERROR:evok:'readboards: Unsupported device model 00! (check HW definitions)'
ERROR:evok:'readboards: Unsupported device model 08! (check HW definitions)'
ERROR:evok:'readboards: Unsupported device model xG18! (check HW definitions)'
ERROR:evok:'readboards: Unsupported device model xS11! (check HW definitions)'
ERROR:evok:'readboards: Unsupported device model xS51! (check HW definitions)'
Are the same like in Evok 2.5. Can i copy them to Evok 3
Kind regards
Stefan
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
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
Hello Thomas
Exemple with L503, xS51 and xG18. I also have some
DS18B20 on the 1Wire Bus.
Install Steps:

After that all inputs and outputs get recogniced automatically.
You will get a room named NeuronPin with all devices.
Example (with some changed names):

Example of a analog input with a PT1000 Sensor for Temp. mesurment:

Example of a analog input with a Honywell PX3 pressure sensor:

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.
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.
As promised, here is the feedback.
The problem has definitely been solved.
Many thanks for the help
Kind regards
Stefan
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:
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
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
Hello Martin
I updated to 2.4.8. I can't see any difference. The problem is the same.
<IP>/json/all:

Also Modbus stops working after 1-5min. (Rx Tx stop blinking)
<IP>/rest/all works properly.
Greetings Stefan
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
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

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
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
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.
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
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
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
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:

Do you have any Idea why? When I uncomment the xG18 section the Server Error disapeer.
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
Hello Martin
I'm a little further along.
The extension is now recognized in the EVOK frontend.

But I don't have any Inputs on EVOK in the section:

Also the tx/rx led's do not blink.
I tried with several settings, but nothing works already until now.