Hi, I've installed domoticz and required pymodbus modules on Windows 10. After coping with the known lib problems I had to correct some statements in the plugin module as "Frame" was not recognised and resulted in errors. Upon correction into "frame" the plugin operated and started logging. Is this a known issue?
My intention is to replace the EW-11 stick and app as it does not operate very relliable over here - i.e. losing its Wifi connection more than often.
Setup is a Waveshare RS485 to ETH and a SPRSUN CGK050-3L. Are all parameters covered by the plugin for this unit as well?
I'm still completing the setup and will create a RJ45 to Waveshare connection cable (power+RS485). I've configures the Waveshare as TCP server Modbus RTU. Apart from connecting RS485 are there any other settings I should take care of?
SPRSUN Modbus plugin
Moderator: leecollings
-
- Posts: 5
- Joined: Wednesday 27 November 2024 11:03
- Target OS: Windows
- Domoticz version:
- Contact:
Re: SPRSUN Modbus plugin
In addition to previous post. I've uninstalled python, pymodbus and removed the plugin. Re-install of python 3.9.2 (32 bits) and pymodbus and copying the plugin in the correct directory results in next error:
2024-11-30 11:28:36.264 Error: SPRSUN: (SPRSUN) failed to load 'plugin.py', Python Path used was 'C:\Program Files (x86)\Domoticz\plugins\SPRSUN-Modbus-master\;C:\Program Files (x86)\Python39-32\python39.zip;C:\Program Files (x86)\Python39-32\Lib\;C:\Program Files (x86)\Python39-32\DLLs\;C:\Program Files (x86)\Domoticz;C:\Program Files (x86)\Python39-32;C:\Program Files (x86)\Python39-32\lib\site-packages'.
2024-11-30 11:28:36.264 Error: SPRSUN: Traceback (most recent call last):
2024-11-30 11:28:36.264 Error: SPRSUN: File "C:\Program Files (x86)\Domoticz\plugins\SPRSUN-Modbus-master\plugin.py", line 43, in <module>
2024-11-30 11:28:36.264 Error: SPRSUN: from pymodbus import ExceptionResponse,Framer,ModbusException,pymodbus_apply_logging_config
2024-11-30 11:28:36.264 Error: SPRSUN: ImportError: cannot import name 'Framer' from 'pymodbus' (C:\Program Files (x86)\Python39-32\lib\site-packages\pymodbus\__init__.py)
Any suggestion would be helpful please...
2024-11-30 11:28:36.264 Error: SPRSUN: (SPRSUN) failed to load 'plugin.py', Python Path used was 'C:\Program Files (x86)\Domoticz\plugins\SPRSUN-Modbus-master\;C:\Program Files (x86)\Python39-32\python39.zip;C:\Program Files (x86)\Python39-32\Lib\;C:\Program Files (x86)\Python39-32\DLLs\;C:\Program Files (x86)\Domoticz;C:\Program Files (x86)\Python39-32;C:\Program Files (x86)\Python39-32\lib\site-packages'.
2024-11-30 11:28:36.264 Error: SPRSUN: Traceback (most recent call last):
2024-11-30 11:28:36.264 Error: SPRSUN: File "C:\Program Files (x86)\Domoticz\plugins\SPRSUN-Modbus-master\plugin.py", line 43, in <module>
2024-11-30 11:28:36.264 Error: SPRSUN: from pymodbus import ExceptionResponse,Framer,ModbusException,pymodbus_apply_logging_config
2024-11-30 11:28:36.264 Error: SPRSUN: ImportError: cannot import name 'Framer' from 'pymodbus' (C:\Program Files (x86)\Python39-32\lib\site-packages\pymodbus\__init__.py)
Any suggestion would be helpful please...
-
- Posts: 5
- Joined: Wednesday 27 November 2024 11:03
- Target OS: Windows
- Domoticz version:
- Contact:
Re: SPRSUN Modbus plugin
Finally got the plugin running. I'd like to share the settings for a W10 setup using a Waveshare RS485 ETH.
Steps:
Install 32bits version of python (3.9.13) use the advanced option and assure paths are set ok.
Install pymodbus version 3.6.2 using instructions earlier described in this topic.
Do Not Use the newest version 3.7.4 as error messages shown are confusing. See my former post - earlier one is referred to a section how to install pymodbus in windows to avoid problems with path problems. That didnot help.
Configure the WaveShare by logging in on its homepage and use shown settings.
Next post will show the VirCom settings.
Steps:
Install 32bits version of python (3.9.13) use the advanced option and assure paths are set ok.
Install pymodbus version 3.6.2 using instructions earlier described in this topic.
Do Not Use the newest version 3.7.4 as error messages shown are confusing. See my former post - earlier one is referred to a section how to install pymodbus in windows to avoid problems with path problems. That didnot help.
Configure the WaveShare by logging in on its homepage and use shown settings.
Next post will show the VirCom settings.
- Attachments
-
- D2.png (109.98 KiB) Viewed 136 times
-
- D6.png (87.61 KiB) Viewed 136 times
-
- Posts: 5
- Joined: Wednesday 27 November 2024 11:03
- Target OS: Windows
- Domoticz version:
- Contact:
Re: SPRSUN Modbus plugin
The WaveShare RS485 ETH uses the tool VirCom for configuration. Next snapshots show settings applied. Note it is configured as a TCP client.
- Attachments
-
- D5.png (260.03 KiB) Viewed 138 times
-
- D4.png (215.54 KiB) Viewed 138 times
-
- D3.png (142.78 KiB) Viewed 138 times
-
- Posts: 5
- Joined: Wednesday 27 November 2024 11:03
- Target OS: Windows
- Domoticz version:
- Contact:
Re: SPRSUN Modbus plugin
And the last one, didn't fit into one post. Hopefully this helps, good luck
- Attachments
-
- D6.png (87.61 KiB) Viewed 138 times
Who is online
Users browsing this forum: No registered users and 0 guests