[RELEASED] Python plugin: Modbus RTU / ASCII / TCP/IP Topic is solved

Python and python framework
Sprokkie
Posts: 3
Joined: Friday 22 June 2018 10:05
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: [RELEASED] Python plugin: Modbus RTU / ASCII / TCP/IP

Post by Sprokkie » Sunday 24 June 2018 20:29

i have jessie beacause my apple homekit plugin did not wok on strech.
got it working now, afraid to update to strech.

can i have second raspberry run the modbus software and then send the data to domoticz running on jessie ?

User avatar
gizmocuz
Posts: 8677
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi
Domoticz version: beta
Location: Top of the world
Contact:

Re: [RELEASED] Python plugin: Modbus RTU / ASCII / TCP/IP

Post by gizmocuz » Monday 25 June 2018 7:32

You should be able to get your apple homekit to run on stretch, else they should update their library.
You do not want to stay on that old system forever....
Quality outlives Quantity!

Sprokkie
Posts: 3
Joined: Friday 22 June 2018 10:05
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: [RELEASED] Python plugin: Modbus RTU / ASCII / TCP/IP

Post by Sprokkie » Monday 25 June 2018 8:54

its the software bridge that runs on the pi.
I tried an install on strech that didn'r work....
The apple is up to date.

but what about the -U optopn for th einstall command, that is the problem i ran in to.
Or is that also jessie related ?

malp
Posts: 3
Joined: Thursday 11 January 2018 9:36
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: [RELEASED] Python plugin: Modbus RTU / ASCII / TCP/IP

Post by malp » Tuesday 21 August 2018 23:07

dear ...
I have synology and domoticz (Python support) there. Python is installed.
I added the modbus device in the hardware, but I see the following issues (looks like the same like some people before) in the log:

2018-08-21 23:33:38.790 Status: (Modbus-1) Started.
2018-08-21 23:33:38.884 Error: (Modbus) failed to load 'plugin.py', Python Path used was '/usr/local/domoticz/var/plugins/modbus-read/:/volume1/@appstore/py3k/usr/local/lib/python35.zip:/volume1/@appstore/py3k/usr/local/lib/python3.5/:/volume1/@appstore/py3k/usr/local/lib/python3.5/plat-linux:/volume1/@appstore/py3k/usr/local/lib/python3.5/lib-dynload'.
2018-08-21 23:33:38.885 Error: (Modbus-1) Module Import failed, exception: 'ImportError'
2018-08-21 23:33:38.885 Error: (Modbus-1) Module Import failed: ' Name: pymodbus'
2018-08-21 23:33:38.885 Error: (Modbus-1) Error Line details not available.
2018-08-21 23:35:00.924 Error: Modbus-1 hardware (5) thread seems to have ended unexpectedly
pymodbus and pymodbusTCP are installed:

Solution:
I added the following in the script:
sys.path.append('/usr/lib/python2.7/site-packages')
sys.path.append('/usr/local/lib/python2.7/site-packages')
sys.path.append('/usr/local/lib/python3.5/dist-packages')

just specified the path where serial, pymodbus etc are located (in my case)

On windows it works without issues.

rusu3
Posts: 1
Joined: Sunday 26 August 2018 17:55
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: [RELEASED] Python plugin: Modbus RTU / ASCII / TCP/IP

Post by rusu3 » Monday 27 August 2018 19:30

Hello everyone :)

I em new in domoticz i have installation on rpi2. I was able to install this modbus read and write plugin. I want to connect by this write plugin to a zamel rxm-01. this is a modbus rtu/asci converter to closed Zamel system.To switch on my device i need to send "on " command 01 05 00 00 FF 00 8C 3A I don,t know how to connect switch in domoticz with that plugin. I will be gratefull for any help.
Zrzutekranuz2018-08-2719-25-16.png
Zrzutekranuz2018-08-2719-25-16.png (130.55 KiB) Viewed 223 times

Domoticx
Posts: 73
Joined: Sunday 07 January 2018 22:19
Target OS: Raspberry Pi
Domoticz version: 3.8153
Location: Deventer / The Netherlands
Contact:

Re: [RELEASED] Python plugin: Modbus RTU / ASCII / TCP/IP

Post by Domoticx » Saturday 08 September 2018 20:34

@rusu3

To break down the command: 01 05 00 00 FF 00 8C 3A

SLAVE ID: 01
FUNCTION: 05 (write single coil)
REGISTER: 0 (00 00)
DATA: FF 00 (DEC = 65280)
CHECkSUM: info (8C 3A)
My Domoticz plugins:
- Modbus RS485 RTU/ASCII/TCP

Maatwerk in: Domotica - Automatisering - Elektronica - 3D printing - Software ontwikkeling
Website / Webshop / Knowledge Center / Facebook (like de pagina en blijf op de hoogte!)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest