Graphic spikes when bOS makes a backup

Avatar
  • updated
  • Under review

Hey clickers,

I'm having a weird problem again, Our client demanded graphics for every meter (C/H water, electricity and for the whole building ventilation system) and i noticed that when we did a backup of the bOS configuration or the server did a restart, we got weird spikes in graphics that sometimes where lower values and some were higher values. The water and electricity info is collected and readout by Anybus mbus to modbus and the ventilation values are collected with usb modbus dongle. Pic below has a week view but actually the value rises again after the server get the correct value again from Anybus.

Lower value spike, goes back to normal after 15min.

Higher value spike, goes back to normal after 15min

The thing is that I've been watching the raw logs from Anybus and these spikes don't come from Anybus... And when i look at the database files I see that right after the bOS server comes up it writes a unknown value and 15minutes(thats the update time of Anybus) later it will update it to the correct one. How to get rid of them spikes and where to they come from? And as you see from the picture the spikes are random not every meter is affected by it. I now have corrected the value spikes manually.

Avatar
ComfortClick Support
  • Under review

Hello,

thank you for reporting this issue. We will look into this problem and try to see what's causing the issue and try to resolve it as soon as possible. Thank you for your detailed report and provided print screens as it will definitely make our job easier.

Best regards.

Avatar
Jürgen Jürgenson

Update: So it happened again, this time i haven't done any backups, the server has been online(no restarts) and its the only meter that did this. We also tested the water flow and the meter is not counting backwards.

Pic from the graphic db: yesterday 18.03.19 it counted backwards. 

Pic from the water meter: 

Pic from Anybus: Sees the correct value

I don't know what's causing it.

Avatar
ComfortClick Support

Hello,

could we schedule a teamviewer session and check this issue and see what may be causing it?

Best regards.

Avatar
Jürgen Jürgenson

Yes we can, but as this server(Running on a NUC) is temporary right now, we don't have a monitor on it so the resolution is small.  Still waiting for the server to arrive. 

As a update we had another spike last night. For apartment 36 hot water meter.

Avatar
Jürgen Jürgenson

Hey,

So on friday we changed the server.  

Now i noticed this error  "Debug : 25/03/2019 12:04:24 : Devices\ANYBUS MAJA 4 : Exception : Debug : Package error 15: Unknown error code: 255"

Any idea what is this? 

Problem is that some graphics wont update its value, even though Anybus sees the correct value. And even when i manually read and write values it wont update graphic. I have rechecked the input value linking etc, everything seems to be correct. So far affected graphics are only for water meters and for 4 apartments, electricity and heating seem to update fine. 

Edit: Turns out i was wrong. Graphics will update when i manually update them with a higher value. Its wont update for some reason when the value is same but date is different. 

Avatar
ComfortClick Support

Hello,

did you also try removing the graph completely and make a new one and see if we get the values?

Best regards.

Avatar
Jürgen Jürgenson

No im slowly giving up on making the graphics work. I now noticed that some electricity values are also incorrect in bOS, but they are correct in anybus. When meter has a value 280441kwh and anybus sees the same value then bOS is giving me 278921 and this value is not updating anymore for few days( mby since the server change). Now i know it used to work just fine because we have checked these values many times now. I tried to do a server repair but that didnt help. 
From the picture you can see that upper left is from Anybus, middle is bOS and on the right is modbus master simulator that i used to get the right values. Ive rechecked all the settings although i havent changed a thing.

Avatar
Jürgen Jürgenson

Are these settings even correct?  

Its weird that apartment el. meters are showing correct values, same as anybus sees them, and they are on the same gateway, but some common building meters are displaying out dated values. I didn't have this problem before we changed the server I compared the meter values 3 times for the whole building and everything was correct.


And bOS repair didn't fix this issue. Note that anybus gives a register number 20(integer) for the correct value, but i had to  set it as reg nr 25(float) for bOS. 

Avatar
Jürgen Jürgenson

Hey,

Big thanks to Comfortclicks support, thanks to them we got meter values fixed. Problem was with the low word first setting that i had overlooked, it thought i tested it but yeah... i'm no modbus master so i learn new things every day. Its really weird to me that i got realistic values even tho i had wrong settings, so if the meter value was high then the modbus returned lower values, when the meter value was low it displayed correct values.

I now cleared some graphics and will check if these spikes return or not.

Avatar
Jürgen Jürgenson

So far there have been no new spikes in graphics, I corrected some more errors I have made in my config for water meters too. And when i did a backup all seemed fine after it. Haven't tested server restart or reload yet.

Best regards