Raspberry Pi with usb-rs485 and modbus device

Moderator: leecollings

Post Reply
2jRaspberry
Posts: 2
Joined: Thursday 10 September 2015 10:49
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Raspberry Pi with usb-rs485 and modbus device

Post by 2jRaspberry »

Hi,
Is possible configure a dummy device with modbus switches and modbus power meter
with pymodbus based script with a similar http://openenergymonitor.org/emon/sites ... on.py_.txt
and usb-rs485 CH340 chip '/dev/ttyUSB0' ?
Thanks
pj-r
Posts: 140
Joined: Wednesday 17 December 2014 17:30
Target OS: Linux
Domoticz version: V3.8650
Location: Jyväskylä, Finland
Contact:

Re: Raspberry Pi with usb-rs485 and modbus device

Post by pj-r »

Its possible. Take a look at JSON API of domoticz.
LXC(x64 Ubuntu Xenial), RFXtrx433E, MySensors
Elektrotek
Posts: 12
Joined: Sunday 26 July 2015 16:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Raspberry Pi with usb-rs485 and modbus device

Post by Elektrotek »

pj-r wrote:Its possible. Take a look at JSON API of domoticz.
Any application example on that?
I want to control and read a RS485-connected machine too, by representing it as a domoticz virtual device, via that usb-rs485 converter.
Greetings,
Elektrotek.
2jRaspberry
Posts: 2
Joined: Thursday 10 September 2015 10:49
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Raspberry Pi with usb-rs485 and modbus device

Post by 2jRaspberry »

To Elektrotek

Sorry, I don't have permission for private messages.
I don't found a way through this topic
maciekelga
Posts: 10
Joined: Monday 04 January 2016 8:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Poland Gdańsk
Contact:

Re: Raspberry Pi with usb-rs485 and modbus device

Post by maciekelga »

Hi,
I also looking for how to control device trought RS-485 ModBus.
How is possible to send from dummy switch from Domoticz information with ModBus string: 0x01 0x05 0x00 0x00 0xFF 0x00 0x8C 0x3A
This string define press switch button which should be send to my home automation.

I want to control my device via usb-rs-485 converter.
maciekelga
Posts: 10
Joined: Monday 04 January 2016 8:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Poland Gdańsk
Contact:

Re: Raspberry Pi with usb-rs485 and modbus device

Post by maciekelga »

Any answer?

LG G2 mini
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest