Asystent AI
Volcano EC vts z wy...
 
Powiadomienia
Wyczyść wszystko

Volcano EC vts z wyjściem RS485 ModBUS RTU jakiś pomysł na podłączone do OH

145 Wpisów
4 Użytkownicy
0 Reactions
17 K Wyświetleń
(@szpila86)
Wpisów: 367
Weteran Patron Strony Donator 2K22, Donator 2K23, Donator 2K24
Autor tematu
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@alien

To w takim razie dlaczego u mnie nic nie ma, a fizyczne w folderach znalazłem oraz tem mam wrzucone do addons.

(/share/CACHEDEV1_DATA/.qpkg/OpenHab/addons)

openhab> bundle:list | grep Modbus
openhab> bundle:list
START LEVEL 100 , List Threshold: 50
ID │ State │ Lvl │ Version │ Name
───────────────────────────────────────────────────────────────────────────────
19 │ Active │ 80 │ 5.3.1.201602281253 │ OSGi JAX-RS Connector
20 │ Active │ 80 │ 2.8.2.v20180104-1110 │ Gson: Google Json Library fo
21 │ Active │ 80 │ 18.0.0 │ Guava: Google Core Libraries
22 │ Active │ 80 │ 27.1.0.jre │ Guava: Google Core Libraries
23 │ Active │ 80 │ 1.0.1 │ Guava InternalFutureFailureA
24 │ Active │ 80 │ 3.0.0.v201312141243 │ Google Guice (No AOP)
25 │ Active │ 80 │ 4.8.35.v20190528-1517 │ ClassGraph
26 │ Active │ 80 │ 3.18.1.GA │ Javassist
29 │ Active │ 80 │ 3.5.5 │ JmDNS
31 │ Active │ 80 │ 1.0.0 │ Units of Measurement API
33 │ Active │ 80 │ 1.1.0.Final │ Bean Validation API
35 │ Active │ 80 │ 2.0.1 │ javax.ws.rs-api
36 │ Active │ 80 │ 2.9.2 │ Joda-Time
37 │ Active │ 80 │ 0.5.8 │ Jollyday
38 │ Active │ 80 │ 3.2.0.v201101311130 │ ANTLR Runtime
40 │ Active │ 80 │ 1.1 │ Commons Exec
41 │ Active │ 80 │ 2.2.0 │ Commons IO
42 │ Active │ 80 │ 2.6 │ Commons Lang
51 │ Active │ 80 │ 4.2.7 │ Apache Karaf :: OSGi Service
66 │ Active │ 80 │ 1.4.7.1 │ Apache ServiceMix :: Bundles
69 │ Active │ 80 │ 4.14.0 │ Apache XBean OSGI Bundle Uti
70 │ Active │ 80 │ 4.14.0 │ Apache XBean :: Classpath Re
71 │ Active │ 80 │ 2.12.0.v20160420-0247 │ EMF Common
72 │ Active │ 80 │ 2.12.0.v20160420-0247 │ EMF Ecore
73 │ Active │ 80 │ 2.11.0.v20160420-0247 │ EMF Change Model
74 │ Active │ 80 │ 2.12.0.v20160420-0247 │ EMF XML/XMI Persistence
75 │ Active │ 80 │ 3.10.400.v20190516-1504 │ Common Eclipse Runtime
104 │ Active │ 80 │ 0.8.0.v20190822-0801 │ org.eclipse.lsp4j
105 │ Active │ 80 │ 0.8.0.v20190822-0801 │ org.eclipse.lsp4j.jsonrpc
106 │ Active │ 80 │ 2.19.0.v20190902-0728 │ Xtend Runtime Library
107 │ Active │ 80 │ 2.19.0.v20190902-0728 │ Xtend Macro Interfaces
108 │ Active │ 80 │ 2.19.0.v20190902-0737 │ Xtext
109 │ Active │ 80 │ 2.19.0.v20190902-0952 │ Xtext Common Types
110 │ Active │ 80 │ 2.19.0.v20190902-0737 │ Xtext IDE Core
111 │ Active │ 80 │ 2.19.0.v20190902-0737 │ Xtext Utility
112 │ Active │ 80 │ 2.19.0.v20190902-0952 │ Xbase Model
113 │ Active │ 80 │ 2.19.0.v20190902-0952 │ Xbase Generic IDE Services
114 │ Active │ 80 │ 2.19.0.v20190902-0728 │ Xbase Runtime Library
129 │ Active │ 80 │ 1.9.6 │ MIME streaming extension
131 │ Active │ 80 │ 7.1.0 │ org.objectweb.asm.commons
132 │ Active │ 80 │ 7.1.0 │ org.objectweb.asm.tree
133 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: C
134 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: A
135 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: O
136 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: B
137 │ Active │ 90 │ 2.5.0 │ openHAB Core :: Bundles :: B
138 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: C
139 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: C
140 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: C
141 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: C
142 │ Active │ 75 │ 2.5.0 │ openHAB Core :: Bundles :: C
143 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: E
144 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: ID
145 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: C
146 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: C
147 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: H
149 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: M
150 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: N
151 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: R
152 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: A
153 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: R
154 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: R
155 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: R
156 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: S
157 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: S
158 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: V
159 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: m
160 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: K
161 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: M
162 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: M
163 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: M
164 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: M
165 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: L
166 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: M
167 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: M
168 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: M
169 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: M
170 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: M
171 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: M
172 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: M
173 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: M
174 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: M
175 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: M
176 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: M
177 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: M
178 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: M
179 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: M
180 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: M
181 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: P
182 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: S
183 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: S
184 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: J
185 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: T
186 │ Active │ 75 │ 2.5.0 │ openHAB Core :: Bundles :: T
187 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: T
188 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: UI
189 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: U
190 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: V
191 │ Active │ 80 │ 2.5.6 │ openHAB UI :: Bundles :: Das
200 │ Active │ 80 │ 1.4.0 │ ThreeTen-Extra
201 │ Active │ 80 │ 1.0.3 │ Units of Measurement Common
202 │ Active │ 80 │ 1.0.10 │ Units of Measurement Impleme
203 │ Active │ 80 │ 2.5.10 │ openHAB Add-ons :: Bundles :
204 │ Active │ 80 │ 2.5.10 │ openHAB Add-ons :: Bundles :
205 │ Active │ 80 │ 2.5.10 │ openHAB UI :: Bundles :: Bas
206 │ Active │ 80 │ 2.5.10 │ openHAB UI :: Bundles :: HAB
207 │ Active │ 80 │ 2.5.10 │ openHAB UI :: Bundles :: Hom
208 │ Active │ 80 │ 2.5.10 │ openHAB UI :: Bundles :: Ico
209 │ Active │ 80 │ 2.5.10 │ openHAB UI :: Bundles :: Pap
234 │ Active │ 80 │ 1.9.2 │ Jackson JSON processor
235 │ Active │ 80 │ 1.9.2 │ Data mapper for Jackson JSON
236 │ Active │ 80 │ 1.6.0 │ Commons Codec
237 │ Active │ 80 │ 4.2.3 │ Apache HttpClient OSGi bundle
238 │ Active │ 80 │ 4.2.3 │ Apache HttpCore OSGi bundle
239 │ Active │ 80 │ 3.1.0.7 │ Apache ServiceMix :: Bundles
240 │ Active │ 80 │ 1.14.0 │ openHAB Weather Binding
241 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: 1
242 │ Active │ 80 │ 3.15.0.OH2 │ nrjavaserial
243 │ Active │ 80 │ 3.3.0 │ Commons Net
244 │ Active │ 80 │ 1.14.0 │ openHAB Fatek PLC Binding
245 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: C
246 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: C
247 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: C
248 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: S
249 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: S
250 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: S
251 │ Active │ 80 │ 3.0.0 │ Java Fatek PLC client library
253 │ Active │ 80 │ 1.14.0 │ openHAB mySQL Persistence bu
254 │ Active │ 80 │ 1.14.0 │ openHAB InfluxDB Persistence
261 │ Active │ 80 │ 2.5.2 │ JUPnP Library
262 │ Active │ 80 │ 2.5.10 │ openHAB Add-ons :: Bundles :
263 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: C
264 │ Active │ 80 │ 2.5.0 │ openHAB Core :: Bundles :: U
270 │ Active │ 80 │ 1.14.0 │ openHAB Expire Binding
272 │ Installed │ 80 │ 2.5.6 │ openHAB Add-ons :: Bundles :
>.... > 240 x Active x 80 x 1.14.0 x openHAB Weather Binding
> 241 x Active x 80 x 2.5.0 x openHAB Core :: Bundles :: 1
> 242 x Active x 80 x 3.15.0.OH2 x nrjavaserial
> 243 x Active x 80 x 3.3.0 x Commons Net
> 244 x Active x 80 x 1.14.0 x openHAB Fatek PLC Binding
> 245 x Active x 80 x 2.5.0 x openHAB Core :: Bundles :: C
> 246 x Active x 80 x 2.5.0 x openHAB Core :: Bundles :: C
> 247 x Active x 80 x 2.5.0 x openHAB Core :: Bundles :: C
> 248 x Active x 80 x 2.5.0 x openHAB Core :: Bundles :: S
> 249 x Active x 80 x 2.5.0 x openHAB Core :: Bundles :: S
> 250 x Active x 80 x 2.5.0 x openHAB Core :: Bundles :: S
> 251 x Active x 80 x 3.0.0 x Java Fatek PLC client library
> 253 x Active x 80 x 1.14.0 x openHAB mySQL Persistence bu
> 254 x Active x 80 x 1.14.0 x openHAB InfluxDB Persistence
> 261 x Active x 80 x 2.5.2 x JUPnP Library
> 262 x Active x 80 x 2.5.10 x openHAB Add-ons :: Bundles :
> 263 x Active x 80 x 2.5.0 x openHAB Core :: Bundles :: C
> 264 x Active x 80 x 2.5.0 x openHAB Core :: Bundles :: U
> 270 x Active x 80 x 1.14.0 x openHAB Expire Binding
> 272 x Installed x 80 x 2.5.6 x openHAB Add-ons :: Bundles :
> openhab>
redir>
openhab>

 


 
Dodane : 16/01/2021 1:55 am
(@kamikac)
Wpisów: 225
Pomocny
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@szpila86 A zrobiłeś restart openHABa?


 
Dodane : 16/01/2021 2:24 am
(@ldywicki)
Wpisów: 78
Kontrybutor
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Wydaje mi się że linie w twoim poście są przycięte. W tym przypadku lepiej spróbować zrobić "la -l|grep -i modbus" bądź "la -s|grep -i modbus". Pierwsze wypisze adresy modułów (coś al'a mvn:org.openhab.addons.bundles/openhab-modbus-binding/2.5.11) a drugie identyfikatory systemowe (coś al'a org.openhab.addons.modbus).

Druga kwestia - od momentu w którym wrzucisz KAR/JAR do katalogu addons trzeba chwilę poczekać aż zostanie on przetworzony. Dla KAR to opóźnienie jest całkiem duże.


 
Dodane : 16/01/2021 2:30 am
(@szpila86)
Wpisów: 367
Weteran Patron Strony Donator 2K22, Donator 2K23, Donator 2K24
Autor tematu
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Tak restart robiłem.

la -l | grep -i modbus
272 x Installed x 80 x 2.5.6 x file:/share/CACHEDEV1_DATA/.qpkg/OpenHab/addons/org.openhab.binding.modbus-2.5.6.jar

potem bundle:uninstall 272

i już nic nie wyszukuje za to fizycznie załączam zrzut ekranu

 ohm

 
Dodane : 16/01/2021 10:08 am
(@alien)
Wpisów: 98
Pomocny
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

To tmp wykasuj ręcznie.


 
Dodane : 16/01/2021 10:34 am
(@szpila86)
Wpisów: 367
Weteran Patron Strony Donator 2K22, Donator 2K23, Donator 2K24
Autor tematu
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@alien

W tmp nie ma nic

ściągnąłem modbus2.5.6 i dałem do addons niby go zainstalowało 

openhab> la -s | grep -i modbus
273 x Installed x 80 x 2.5.6 x org.openhab.binding.modbus
openhab> la -l | grep -i modbus
273 x Installed x 80 x 2.5.6 x file:/share/CACHEDEV1_DATA/.qpkg/OpenHab/addons/org.openhab.binding.modbus-2.5.6.jar

ale z ui nadal nie mogę go zainstalować


 
Dodane : 16/01/2021 10:37 am
(@szpila86)
Wpisów: 367
Weteran Patron Strony Donator 2K22, Donator 2K23, Donator 2K24
Autor tematu
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Odinstalowałem OH256 i teraz instaluję2.5.10

Modbus się zainstalował teraz muszę przywrócić resztę :/


 
Dodane : 16/01/2021 11:37 am
(@alien)
Wpisów: 98
Pomocny
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Ok :), to co załączyłeś na zrzucie ekranu to tmp był, jak już zainstalowałeś w addons to nie instalujesz w Paper UI, bo jest zainstalowany.


 
Dodane : 16/01/2021 12:00 pm
(@szpila86)
Wpisów: 367
Weteran Patron Strony Donator 2K22, Donator 2K23, Donator 2K24
Autor tematu
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@alien

I tu właśnie nie - dałem do addons a w ui nadal był jako niezainstalowany

Nie widzę na szybko jakiejś różnicy w OH po aktualizacji.

No paza tym że polecenie przestało mi działać

 Switch item=BrGaraz mappings=[ON="Klik"] //M199
Switch item=BrWjazd mappings=[ON="Klik"] //Y26

I z przycisku chwilowego nici chyba będę musiał na regułach to zrobić....

OK brakowało Expire Binding 😉

Zabieram się do Modbus może choć uda mi się połączyć


 
Dodane : 16/01/2021 12:09 pm
(@szpila86)
Wpisów: 367
Weteran Patron Strony Donator 2K22, Donator 2K23, Donator 2K24
Autor tematu
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Jeśli dobrze rozumiem to nie ma pliku modbus.cfg w OH2?

Konfigurację robi się w things? Bridge modbus:tcp:localhostTCP [ host="192.168.86.7", port=502, id=3 ]?

Jak w takim razie zrobić odczyt i zapis dla Turning ON/OFF DEC16 / HEX0x0016

Dec 16 - Turning ON/OFF
– an output to turn the device on and off (simulation of pressing the power button). Acceptable
values for the variable:
Register value Mode
0 OFF
1 ON

 

things tak powinien wyglądać?

Bridge modbus:tcp:localhostTCP [ host="192.168.86.7", port=502, id=3 ] {

Bridge poller coils [ start=16, length=1, refresh=500, type="input" ] {
Thing data index5 [ readStart="1", readValueType="bit" ]

}} Items Contact VoPower "Stan [%d]" { channel="modbus:data:localhostTCPex2:coils:index5:contact" }

Błędny na w/w

12:29:51.340 [WARN ] [ort.modbus.internal.ModbusManagerImpl] - Try 1 out of 3 failed when executing request (ModbusReadRequestBlueprint@fb87fc7[slaveId=3,functionCode=READ_INPUT_REGISTERS,start=16,length=1,maxTries=3]). Will try again soon. Error was I/O error, so reseting the connection. Error details: net.wimpi.modbus.ModbusIOException I/O exception: ModbusIOException Premature end of stream (Header truncated). [operation ID 6035ec57-34d6-4b15-8b31-47754b45f92c]
12:29:51.405 [WARN ] [ort.modbus.internal.ModbusManagerImpl] - Try 2 out of 3 failed when executing request (ModbusReadRequestBlueprint@fb87fc7[slaveId=3,functionCode=READ_INPUT_REGISTERS,start=16,length=1,maxTries=3]). Will try again soon. Error was I/O error, so reseting the connection. Error details: net.wimpi.modbus.ModbusIOException I/O exception: ModbusIOException Premature end of stream (Header truncated). [operation ID 6035ec57-34d6-4b15-8b31-47754b45f92c]
12:29:51.469 [ERROR] [ort.modbus.internal.ModbusManagerImpl] - Last try 3 failed when executing request (ModbusReadRequestBlueprint@fb87fc7[slaveId=3,functionCode=READ_INPUT_REGISTERS,start=16,length=1,maxTries=3]). Aborting. Error was I/O error, so reseting the connection. Error details: net.wimpi.modbus.ModbusIOException I/O exception: ModbusIOException Premature end of stream (Header truncated). [operation ID 6035ec57-34d6-4b15-8b31-47754b45f92c]

 


 
Dodane : 16/01/2021 1:13 pm
(@kamikac)
Wpisów: 225
Pomocny
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@szpila86 Masz gdzieś całą dokumentację? Nie wiem, czy to ma być input czy coil (w nazwie wpisałeś coil a typ input). Skoro spodziewasz się urządzenia włącz/wyłącz to ja bym zastosował switch a nie contact. Nie zgadza się nazwa urządzenia w items ze zdefiniowaną w things (localhostTCP vs localhostTCPex22). Skoro poller masz od adresu 16 to readStart nie może być 1. I dlaczego niby w dokumentacji DEC 16 = HEX 16?

Spróbuj tak:

Bridge modbus:tcp:localhostTCP [ host="192.168.86.7", port=502, id=3 ] {
Bridge poller coils [ start=16, length=1, refresh=500, type="input" ] {
Thing data index5 [ readStart="16", readValueType="bit" ]

}} Items Switch VoPower "Stan [%s]" { channel="modbus:data:localhostTCP:coils:index5:switch" }

 
Dodane : 16/01/2021 4:34 pm
(@szpila86)
Wpisów: 367
Weteran Patron Strony Donator 2K22, Donator 2K23, Donator 2K24
Autor tematu
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@kamikac

fakt namieszałem ;/ ale już chyba za mocno kombinowałem.....

Dokumentacje podał kolega Alien https://vtsgroup.com/files/document-files/3237/WING_VOLCANO_HMI_BMS_manual.pdf

 

Wynik powyższego kodu

16:00:11.461 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'VoPower' received command ON
16:00:11.466 [INFO ] [arthome.event.ItemStatePredictedEvent] - VoPower predicted to become NULL
16:00:11.942 [ERROR] [ling.ModbusSlaveConnectionFactoryImpl] - connect try 1/1 error: Connection refused (Connection refused). Connection TCPMasterConnection@34b38544[socket=Socket[unconnected]]. Endpoint ModbusTCPSlaveEndpoint@2448ad63[address=192.168.86.7,port=502]
16:00:11.943 [ERROR] [ling.ModbusSlaveConnectionFactoryImpl] - re-connect reached max tries 1, throwing last error: Connection refused (Connection refused). Connection TCPMasterConnection@34b38544[socket=Socket[unconnected]]. Endpoint ModbusTCPSlaveEndpoint@2448ad63[address=192.168.86.7,port=502]
16:00:11.944 [ERROR] [ling.ModbusSlaveConnectionFactoryImpl] - Error connecting connection TCPMasterConnection@34b38544[socket=Socket[unconnected]] for endpoint ModbusTCPSlaveEndpoint@2448ad63[address=192.168.86.7,port=502]: Connection refused (Connection refused)
16:00:11.945 [WARN ] [ort.modbus.internal.ModbusManagerImpl] - Could not connect to endpoint ModbusTCPSlaveEndpoint@2448ad63[address=192.168.86.7,port=502] -- aborting request ModbusReadRequestBlueprint@1feb6c35[slaveId=3,functionCode=READ_INPUT_REGISTERS,start=16,length=1,maxTries=3] [operation ID d6d3a52e-3e7e-47fb-a6dd-b16bb1e33e39]
16:00:11.946 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'modbus:poller:localhostTCP:coils' changed from OFFLINE (COMMUNICATION_ERROR): Error with read: org.openhab.io.transport.modbus.internal.ModbusSlaveIOExceptionImpl: Modbus IO Error with cause=ModbusIOException, EOF=false, message='I/O exception: ModbusIOException Premature end of stream (Header truncated).', cause2=null to OFFLINE (COMMUNICATION_ERROR): Error with read: org.openhab.io.transport.modbus.exception.ModbusConnectionException: Error connecting to endpoint ModbusTCPSlaveEndpoint@2448ad63[address=192.168.86.7,port=502]
16:00:12.448 [ERROR] [ling.ModbusSlaveConnectionFactoryImpl] - connect try 1/1 error: Connection refused (Connection refused). Connection TCPMasterConnection@22b5597d[socket=Socket[unconnected]]. Endpoint ModbusTCPSlaveEndpoint@2448ad63[address=192.168.86.7,port=502]
16:00:12.449 [ERROR] [ling.ModbusSlaveConnectionFactoryImpl] - re-connect reached max tries 1, throwing last error: Connection refused (Connection refused). Connection TCPMasterConnection@22b5597d[socket=Socket[unconnected]]. Endpoint ModbusTCPSlaveEndpoint@2448ad63[address=192.168.86.7,port=502]
16:00:12.450 [ERROR] [ling.ModbusSlaveConnectionFactoryImpl] - Error connecting connection TCPMasterConnection@22b5597d[socket=Socket[unconnected]] for endpoint ModbusTCPSlaveEndpoint@2448ad63[address=192.168.86.7,port=502]: Connection refused (Connection refused)
16:00:12.451 [WARN ] [ort.modbus.internal.ModbusManagerImpl] - Could not connect to endpoint ModbusTCPSlaveEndpoint@2448ad63[address=192.168.86.7,port=502] -- aborting request ModbusReadRequestBlueprint@1feb6c35[slaveId=3,functionCode=READ_INPUT_REGISTERS,start=16,length=1,maxTries=3] [operation ID 5629be7b-cb77-4255-bacf-3a65f2dbed33]
 ethmo

 
Dodane : 16/01/2021 4:54 pm
(@alien)
Wpisów: 98
Pomocny
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Dlaczego nie korzystasz z PaperUI skonfiguruj tam bridge i poller unikniesz błędów. 
Moduł po stronie TCP powinien być jako server (slave) nie client, wtedy zniknie to przekierowanie portów. Sprawdź jeszcze parametry transmisji po stronie RS485


 
Dodane : 16/01/2021 8:44 pm
(@szpila86)
Wpisów: 367
Weteran Patron Strony Donator 2K22, Donator 2K23, Donator 2K24
Autor tematu
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

zmieniłem adres modbus na 04

prędkość 19200

parity none

poprawiłem w konfiguracji

w PaperUI nigdy nic nie robiłem od początku całość rzeźbiłem w notatniku

mboh
 
Bridge modbus:tcp:localhostTCP [ host="192.168.86.7", port=502, id=4 ] {

Bridge poller coils [ start=16, length=1, refresh=500, type="input" ] {
Thing data index5 [ readStart="16", readValueType="bit" ]

}}

 
Dodane : 16/01/2021 9:48 pm
(@alien)
Wpisów: 98
Pomocny
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@szpila86

ID nie ma znaczenia, po stronie RS 485 musisz tylko inne adresy mieć ustawione konwertera i sterownika, modbus powinien być even,8,1 a nie none,8,1.
Masz zakładke operate via com i tam ustawiasz parametry transmisji  RS485 sterownik Volcano EC -> konwerter
wywal jeszcze User, pass to powinno być po stronie operate via com.


 
Dodane : 16/01/2021 11:29 pm
(@kamikac)
Wpisów: 225
Pomocny
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

Przejrzałem instrukcję i widzę, że odczytywać należy rejestry holding, więc trzeba zmienić z input na holding oraz port masz w aplikacji od bramki ustawiony na 500 a na 502 masz port http, czyli:

Bridge modbus:tcp:localhostTCP [ host="192.168.86.7", port=500, id=3 ] {
Bridge poller holding [ start=16, length=1, refresh=500, type="holding" ] {
Thing data index5 [ readStart="16", readValueType="int16" ]

}} Items String VoPower "Stan [%d]" { channel="modbus:data:localhostTCP:holding:index5:number" }

Jaki masz dokładnie typ bramki? Nie do końca rozumiem konfigurację bramki, może instrukcja coś mi rozjaśni.


 
Dodane : 17/01/2021 1:32 am
(@szpila86)
Wpisów: 367
Weteran Patron Strony Donator 2K22, Donator 2K23, Donator 2K24
Autor tematu
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@alien

Tak ale ID ma znaczenie dla dwóch PLC.

Zakładka ma racje bytu z tego co widzę dopiero przy konwerterze na USB bo na ETH nic nie wyświetla poza możliwością wyboru portu com.

Na sterowniku domyślnie jest none a liczby bitów danych i stopu chyba nie mam w menu do konfiguracji.

Jeśli wywalę to stracę łączność 


 
Dodane : 17/01/2021 1:40 am
(@kamikac)
Wpisów: 225
Pomocny
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

ID musi się zgadzać, urządzenie nie odpowie na błędnie zaadresowaną ramkę.

Według instrukcji można ustawić prędkość, 9600 jest domyślnie.


 
Dodane : 17/01/2021 2:07 am
(@szpila86)
Wpisów: 367
Weteran Patron Strony Donator 2K22, Donator 2K23, Donator 2K24
Autor tematu
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@kamikac

konwerter https://www.waveshare.com/rs485-to-eth-for-eu.htm

po twoich sugestiach

08:06:23.627 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'modbus:tcp:localhostTCP' changed from OFFLINE to ONLINE
08:06:23.631 [WARN ] [ort.modbus.internal.ModbusManagerImpl] - Could not connect to endpoint ModbusTCPSlaveEndpoint@19726288[address=192.168.86.7,port=500] -- aborting request ModbusReadRequestBlueprint@5b85f469[slaveId=4,functionCode=READ_MULTIPLE_REGISTERS,start=16,length=1,maxTries=3] [operation ID 9851bc3a-d0ec-4da3-8333-916b21189ef9]
08:06:23.632 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'modbus:poller:localhostTCP:holding' changed from OFFLINE to ONLINE
08:06:23.634 [INFO ] [smarthome.event.ThingUpdatedEvent ] - Thing 'modbus:tcp:localhostTCP' has been updated.
08:06:23.636 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'modbus:data:localhostTCP:holding:index5' changed from OFFLINE (BRIDGE_OFFLINE): No online bridge to ONLINE
08:06:23.637 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'modbus:poller:localhostTCP:holding' changed from ONLINE to OFFLINE
08:06:23.638 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'modbus:poller:localhostTCP:holding' changed from OFFLINE to ONLINE
08:06:23.640 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'modbus:data:localhostTCP:holding:index5' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Error (ModbusConnectionException) with read. Request: ModbusReadRequestBlueprint@5b85f469[slaveId=4,functionCode=READ_MULTIPLE_REGISTERS,start=16,length=1,maxTries=3]. Description: ModbusConnectionException(Error connecting to endpoint=ModbusTCPSlaveEndpoint@19726288[address=192.168.86.7,port=500]). Message: Error connecting to endpoint ModbusTCPSlaveEndpoint@19726288[address=192.168.86.7,port=500]
08:06:23.642 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'modbus:poller:localhostTCP:holding' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Error with read: org.openhab.io.transport.modbus.exception.ModbusConnectionException: Error connecting to endpoint ModbusTCPSlaveEndpoint@19726288[address=192.168.86.7,port=500]
08:06:23.643 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'modbus:data:localhostTCP:holding:index5' changed from OFFLINE (COMMUNICATION_ERROR): Error (ModbusConnectionException) with read. Request: ModbusReadRequestBlueprint@5b85f469[slaveId=4,functionCode=READ_MULTIPLE_REGISTERS,start=16,length=1,maxTries=3]. Description: ModbusConnectionException(Error connecting to endpoint=ModbusTCPSlaveEndpoint@19726288[address=192.168.86.7,port=500]). Message: Error connecting to endpoint ModbusTCPSlaveEndpoint@19726288[address=192.168.86.7,port=500] to OFFLINE (BRIDGE_OFFLINE): No online bridge
08:06:24.136 [ERROR] [ling.ModbusSlaveConnectionFactoryImpl] - connect try 1/1 error: Connection refused (Connection refused). Connection TCPMasterConnection@5b5f0e30[socket=Socket[unconnected]]. Endpoint ModbusTCPSlaveEndpoint@19726288[address=192.168.86.7,port=500]
08:06:24.137 [ERROR] [ling.ModbusSlaveConnectionFactoryImpl] - re-connect reached max tries 1, throwing last error: Connection refused (Connection refused). Connection TCPMasterConnection@5b5f0e30[socket=Socket[unconnected]]. Endpoint ModbusTCPSlaveEndpoint@19726288[address=192.168.86.7,port=500]
08:06:24.138 [ERROR] [ling.ModbusSlaveConnectionFactoryImpl] - Error connecting connection TCPMasterConnection@5b5f0e30[socket=Socket[unconnected]] for endpoint ModbusTCPSlaveEndpoint@19726288[address=192.168.86.7,port=500]: Connection refused (Connection refused)
08:06:24.140 [WARN ] [ort.modbus.internal.ModbusManagerImpl] - Could not connect to endpoint ModbusTCPSlaveEndpoint@19726288[address=192.168.86.7,port=500] -- aborting request ModbusReadRequestBlueprint@5b85f469[slaveId=4,functionCode=READ_MULTIPLE_REGISTERS,start=16,length=1,maxTries=3] [operation ID 5ef80f07-3b5a-4988-8fff-46e611bd5962]
08:06:24.643 [ERROR] [ling.ModbusSlaveConnectionFactoryImpl] - connect try 1/1 error: Connection refused (Connection refused). Connection TCPMasterConnection@2c407c38[socket=Socket[unconnected]]. Endpoint ModbusTCPSlaveEndpoint@19726288[address=192.168.86.7,port=500]
08:06:24.644 [ERROR] [ling.ModbusSlaveConnectionFactoryImpl] - re-connect reached max tries 1, throwing last error: Connection refused (Connection refused). Connection TCPMasterConnection@2c407c38[socket=Socket[unconnected]]. Endpoint ModbusTCPSlaveEndpoint@19726288[address=192.168.86.7,port=500]
08:06:24.645 [ERROR] [ling.ModbusSlaveConnectionFactoryImpl] - Error connecting connection TCPMasterConnection@2c407c38[socket=Socket[unconnected]] for endpoint ModbusTCPSlaveEndpoint@19726288[address=192.168.86.7,port=500]: Connection refused (Connection refused)

 
Dodane : 17/01/2021 9:12 am
(@kamikac)
Wpisów: 225
Pomocny
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

@szpila86 Według wiki ten konwerter nie obsługuje MODBUS. Dalej to już tylko moje przypuszczenia:

I jeszcze pytanie. Masz konwerter USB na RS485. Rozumiem, że masz też dociągniętą skrętkę do konwertera TCP na RS485. Nie byłoby najprościej puścić ten MODBUS z przejściówki USB na RS485 skrętką prosto do VOLCANO i zrezygnować z TCP na RS485? U mnie rekuperator jest podłączony skrętką kilkunastometrową po MODBUS i śmiga.


 
Dodane : 17/01/2021 3:31 pm
Strona 3 / 8
Udostępnij: