openhab / openhab1-addons

Add-ons for openHAB 1.x
Eclipse Public License 2.0
3.43k stars 1.69k forks source link

Review Modbus-Binding #169

Closed openhab-bot closed 10 years ago

openhab-bot commented 10 years ago

From teichsta on December 04, 2012 23:40:24

Review the Modbus-Binding.

Doku is available here: http://code.google.com/p/openhab/wiki/ModbusTcpBinding Code is available here: http://code.google.com/r/dbkrasn-khome/source/browse#hg/bundles/binding/org.openhab.binding.modbus.tcp.master

Original issue: http://code.google.com/p/openhab/issues/detail?id=169

openhab-bot commented 10 years ago

From teichsta on December 04, 2012 14:41:37

i am wondering about the name iof the binding.

Why didn't you simply choose binding.modbus? Is there more to come?

openhab-bot commented 10 years ago

From teichsta on December 04, 2012 14:41:56

Summary: Review Modbus-Binding (was: Modbus-Binding)

openhab-bot commented 10 years ago

From dbkr...@gmail.com on December 04, 2012 22:05:54

I have no plans for other Modbus bindings at the moment - I believe tcp master is of the most demand. On the naming. Modbus device can act as master or slave, that's why there is "master" suffix. If one would like to create a slave impl it will fit existing naming. Also there are other flavors of Modbus protocol implementation like RTU and ASCII. Potential implementations will fit this naming too.

openhab-bot commented 10 years ago

From teichsta on December 05, 2012 13:23:59

ok!

Here are some review comments:

general

ModbusBindingProvider

ModbusBinding

ModbusPoll

modbuspoll.xml

openhab-bot commented 10 years ago

From teichsta on December 05, 2012 13:25:53

how does the org.openhab.binding.khome.sensors bundle fits into the picture?

openhab-bot commented 10 years ago

From dbkr...@gmail.com on December 05, 2012 21:31:05

org.openhab.binding.khome.**sensors is my persomal experimental code and is unrelated to Modbus binding

openhab-bot commented 10 years ago

From teichsta on December 06, 2012 01:20:29

ok, good to know ...

openhab-bot commented 10 years ago

From teichsta on December 11, 2012 02:04:55

could you manage to finish the binding until Friday (14.12) ?

openhab-bot commented 10 years ago

From dbkr...@gmail.com on December 11, 2012 08:33:46

yes, it's done, now doing some testing on my home system

openhab-bot commented 10 years ago

From dbkr...@gmail.com on December 13, 2012 03:38:55

done, code committed. Please note that "modbustcpmaster" tags in openhab.cfg and items file became "modbus". Wike page updated accordingly

openhab-bot commented 10 years ago

From teichsta on December 16, 2012 05:37:30

could you give me the default configuration input for the openhab_default.cfg?

Thanks in advance, Thomas E.-E.

openhab-bot commented 10 years ago

From dbkr...@gmail.com on December 16, 2012 06:05:34

Something like this?

modbus:slave.host=127.0.0.1

modbus:slave.length=1

modbus:slave.type=coil

openhab-bot commented 10 years ago

From teichsta on December 16, 2012 06:08:57

yes, if you would add some explanation for each param :-) (see the given params as example)!

What is about "port, start, id"

openhab-bot commented 10 years ago

From teichsta on December 16, 2012 07:39:43

Added the documentation by myself!

Merged modbus-binding to default branch (see http://code.google.com/p/openhab/source/detail?r=05234f6e95c1d99cac11f04ef0676a0b3257a2d1 )

Status: Implemented