• terrypacker

    You could use meta data points to compute the delta. This would mean you will have 2 data points for every consumption you want to track. The real data coming in and the processed data that you can chart. I'm not sure of your proficiency with meta data points but the basic idea is:

    1. Setup meta point to have your consumption raw data as a context point that updates the context
    2. Create a script that will compute the delta the way you want it, you can access previous values by sample number by using the lastValue(...) style methods on the context points. This way you could get the previous value for your raw data by using lastValue(1) or lastValue(1,true) where the second variation will use cached values which may be what you want depending on your logging settings.
    3. Just return the computed delta.

    Would that sort of concept work?

    posted in User help read more
  • terrypacker

    I'll make a git issue to review that timeout code. As for Mango 4.0 it will be a paid upgrade but is still months out with no firm release date.

    posted in Mango feedback read more
  • terrypacker

    @MattFox the Override Timing settings were removed, they never did work quite right. It looks like it was removed from the help in the development branch of Mango so in 4.0 that won't be there. As for the timeout, I quickly traced the Modbus4J code and it looks like it should work. Are you sure you are using the correct units. The value should be in ms.

    posted in Mango feedback read more
  • terrypacker

    @Nurr I just tested this on the latest development branch of Mango and this is fixed. So this will be fixed in the Mango 4.0 release. You didn't specify the version of Mango or how you did the deletes (legacy UI, new UI, REST call from custom page etc.) so I only tested it from the new UI in our development branch but in Mango 4.0 there is only 1 place this can happen now so I am confident it is fixed.

    posted in Mango feedback read more
  • terrypacker

    @Vihangi I'm not 100% confident in that test class you are trying to use as I've not ever run it up. Seems like you shouldn't be starting a discovery on both slave and master at the same time.

    Here is a more verbose way to achieve the same thing using BACnet/IP. Once you understand what this is doing you should be able to break it into 2 programs and use on separate machines with BACnet MSTP.

    The idea for this example is to be able to discover another device using the an TCP/IP socket bridge that relays the messages to the other device. In your MSTP code you would remove the bridge and start the local devices using an MSTP Master and the other as the Slave.

    https://github.com/infiniteautomation/BACnet4J-samples/blob/master/src/test/java/com/infiniteautomation/bacnet4j/npdu/ip/BacnetIpListenerDiscoveryExample.java

    posted in BACnet4J general discussion read more
  • terrypacker

    @Tepes I can't think of anything in Mango that would cause this besides the text renderer. The more I think about this the more I believe that your device is sending the value as one of the DNP3 Integer data types, Mango then would use our Numeric data type for any Analog Input or Analog Output thus converting the value to <integer value>.0 when it is saved into Mango.

    The Wireshark capture will be the best way to confirm what is really happening.

    posted in User help read more
  • terrypacker

    @Tepes I am fairly confident we implemented support for all the different data types in DNP3 for that release but it is possible there is a type we were unable to test and there could be a bug. Would it be possible to get a Wireshark capture of a few polls of Mango? If so I can triple check our code or it may be that the device is actually sending an integer data type.

    posted in User help read more
  • terrypacker

    @Vihangi I see you are using snippets from this code:

    https://github.com/infiniteautomation/BACnet4J/blob/master/src/test/java/com/serotonin/bacnet4j/adhoc/rs485/PortTest.java

    I haven't actually run up that test in some time but I would check your serial port settings to make sure they match on each device you are running the code on.

    posted in BACnet4J general discussion read more
  • terrypacker

    @Tepes I've done some work recently on a new DNP3 module with better support for floating point values. The module is still in development but a pre-release is available for Mango 3.7 you can download it here or change your release channel to development in Mango's System Settings.

    https://store.infiniteautomation.com/module/dnp3

    posted in User help read more
  • terrypacker

    @jcaballeroa I took a look in the code and found a bug, this will be fixed in Mango 4.0. Apologies for the trouble and thanks for pointing this out.

    As for your original question besides manually you could do this with a script but it would require accessing the underlying java classes as there are no script utilities that I am aware of to save a data source.

    posted in Mango feedback read more