You’ll have to give us a bit more to work with. Your Things configuration?
Hi
I was told that latest version has this bug in github open issues.
Also I am not able to access basic UI in latest version. It says 404.
Can you provide as sample to configure Items , things, channels for modubus slave
Who told you about latest version of what, and what bug?
Please identify what version you are talking about.
The Modbus binding will not have anything to do with that.
Nope. I know nothing about your slave. I would know a little bit if you shared the configuration that you already made that nearly worked. But you didn’t.
Thanks for assistance
I took some configuration and now modbus data is working
I am using openHAB 2.4.0 Release Build
Atleast now everything is green now.
// Modbus to Smart-House
Bridge modbus:tcp:SH2WEB [ host=“192.168.1.3”, port=502, id=1 ] {
// smart-house (Fx) Sovrum 4 (Kontor) - Ljusfunktion Tak_Status
Bridge poller P1 [ start=4000, length=1, refresh=1000, type=“holding” ] {
Thing data D1 [ readStart=“0”, readValueType=“uint16”, writeStart=“0”, writeValueType=“uint16”, writeType=“holding” ]
}
}
But still I am not bale to see the values read or project them on UI .
Can you let me know what are the steps to follow now to see the values coming from slave simulator ?
Also I am not able to access basic UI and I get 404 error page and it is not visible in Dashboard.
There are no items link avaialble
If you have any working example to share Things, Channels ,Items for Modnus
Yes, you would. float32 datatype uses two 16-bit Modbus registers, but your poller Thing is only configured to fetch one register.
Can we keep to one thread?
Maybe it needs installing. Have you got ClassicUI?
I will be now using this thread for further comminication.
I did not see any Classical UI on Openahab Web page
My requirement is to see the live data read from modbus slave on UI. What is the Control Option available on UI?
All the items are correctly loaded and showing on Control Tab where on item shoes lastreadSuccess
Now I have changed the things to read 32 float data
Two register:
4000-4001
Bridge modbus:tcp:SH2WEB [ host=“192.168.1.3”, port=502, id=1 ] {
// smart-house (Fx) Sovrum 4 (Kontor) - Ljusfunktion Tak_Status
Bridge poller P1 [ start=4000, length=2, refresh=1000, type=“holding” ] {
Thing data D1 [ readStart=“4000”, readValueType=“float32”, writeStart=“0”, writeValueType=“uint16”, writeType=“holding” ]
Thing data D2 [ readStart=“4001”, readValueType=“float32”, writeStart=“0”, writeValueType=“uint16”, writeType=“holding” ]
}
But Again I am getting configuration error
2019-09-22 10:54:42.495 [ERROR] [rt.modbus.internal.ModbusManagerImpl] - Last try 3 failed when executing request (ModbusPollerThingHandlerImpl.ModbusPollerReadRequest@107871[slaveId=1,functionCode=READ_MULTIPLE_REGISTERS,start=4000,length=2,maxTries=3]). Aborting. Error was: net.wimpi.modbus.ModbusSlaveException Error Code = 2 [operation ID b56f425b-5e1f-4d4f-956d-c151b56c260d]
2019-09-22 10:54:42.498 [ERROR] [ernal.handler.ModbusDataThingHandler] - Thing modbus:data:SH2WEB:P1:D1 ‘Modbus data’ had ModbusSlaveErrorResponseExceptionImpl error on read: ModbusSlaveErrorResponseException(error=2)
It is working now for following configuuration:
// Modbus to Smart-House
Bridge modbus:tcp:SH2WEB [ host=“192.168.1.3”, port=502, id=1 ] {
// smart-house (Fx) Sovrum 4 (Kontor) - Ljusfunktion Tak_Status
Bridge poller P1 [ start=4000, length=1, refresh=1000, type=“holding” ] {
Thing data D1 [ readStart=“4000”, readValueType=“uint16”, writeStart=“0”, writeValueType=“uint16”, writeType=“holding” ]
Thing data D2 [ readStart=“4001”, readValueType=“uint16”, writeStart=“0”, writeValueType=“uint16”, writeType=“holding” ]
}
}
But for D2 it is showing error message even though data is coming in correct manner
Modbus data OFFLINE - CONFIGURATION_ERROR
Modbus data
modbus:data:SH2WEB:P1:D2
Data data is showing on Control Tab but I want specific UI to show case all devices live data
Yes, your poller Thing is still only configured to fetch one register from your slave.
If you want it to fetch a second register from your slave as well, you would need length=2
If your slave is returning two registers in response to a request for only one, it is broken.
I want to show live data feed on UI so what is the best possible options available
Please find the attached snapshot which shows data on control tab
As in when I do change length =2 every thing shows communication error with errorStatus code =2
What this errorStatus code =2 signify
You’d probably want to install BasicUI, and use a sitemap to control what it displays.
Modbus Exception Code 02 means that your slave has rejected the request because it doesn’t like the addresses it has been asked to supply.
Perhaps your slave is configured to only send one register.
Please let me know how to steps/install basic UI and use sitemap
openHAB Modbus binding supports Modbus-TCP. It neither knows nor cares what medium you use to transport TCP.
I was primarily asking to run openhab with Wifi enabled on Raspberry pi instead of Ethernet.
So when I installed openhabian , one of the steps mentioned was to use ethernet . But post successful installation , can i run openhab using Wifi Access Point or etherent is required to run openhab on Rasberry Pi
Maybe this helps
Top tip; provide a little feedback when getting extended free advice, has any of it addressed your questions? Don’t be a black hole. Something as simple as “that worked” is really quite helpful for other people in the same situation as you, who might use search features to help themselves, and end up reading this post.
@Mohit_Sharma
And please use code fense. It´s almost impossible to read manual text configuration files (like thing file) wihtout code fense.