@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