• D
    Dan M

    ok i just found it. I did not see event detectors when I went to edit the data point. I had to click on the 3 vertical bullets on the right hand side of the list of points, and click event detectors.
    Suggest to put an event detectors tab when editing a data point if possible.
    Thanks.

    posted in Mango Automation read more
  • D
    Dan M

    Using latest version of Mango Enterprise. Does the Event Detectors button not supposed to work under Admin Home? Its there, but doesn't work as a link..

    posted in Mango Automation read more
  • D
    Dan M

    I'm looking to see if I can port my previous project from Mango 2.8 to the current version. I have a custom dashboard that is quite customized and would prefer to keep using it. Using the admin-template, I've gotten it ported over but css is being forced into the <head> even though I've removed the cssInjector from app.js. Is there any way to disable this?

    posted in User help read more
  • D
    Dan M

    Is there a way to restart the mango server from a script (like a RuntimeManager.restartInstance command)? I've been playing around with Mango (2.8.6 version) on a raspberry pi 3 and after a while, memory goes down. Once the JVM shows around 160MB free memory left, it will occasionally crash requiring a hard reboot. Is there a cheap and easy fix for now to just do a server restart? Not the ideal or finish solution, but will work for the time being..

    posted in Mango Automation read more
  • D
    Dan M

    @phildunlap said in Scripting to reset serial (MODBUS) data source:

    RuntimeManager.sleep(200)

    @phildunlap I tried to use the sleep code for something else but I get this:

    TypeError: { dataSourceEnabled(xid): boolean, enableDataSource(xid): -1 0 1, disableDataSource(xid): -1 0 1, dataPointEnabled(xid): boolean, enableDataPoint(xid): -1 0 1, disableDataPoint(xid): -1 0 1, } has no such function "Sleep" in at line number 3
    at line:

    is RuntimeManager.sleep(XXXX) a valid function? I've seen it posted elsewhere but its not working for me..

    posted in Scripting general Discussion read more
  • D
    Dan M

    I made a script data source to do this..

    if(RuntimeManager.isDataSourceEnabled('DS_Modbus') === true)
    {
        if (--Condition that occurs that means you need to reset, i.e slave monitor shows datasource is offline--)
        {
             RuntimeManager.disableDataSource('DS_Modbus');  // disable DataSource 
             while (RuntimeManager.isDataSourceEnabled('DS_Modbus') === true) {}    //loops until DataSource is disabled since it might take a few seconds to disable depending on your timeouts, etc..
             RuntimeManager.enableDataSource('DS_Modbus');    // re-enable DataSource  
            }
    }
    

    posted in Scripting general Discussion read more
  • D
    Dan M

    Thanks, that's what I was going to try this weekend.

    posted in Hardware read more
  • D
    Dan M

    Yes, I have 6 devices, 6 different ID's. Runs exactly as I want it for a few hours so I think the settings are correct in terms of parity.
    Unfortunately, I can only work on it every couple weekends so its hard to debug, especially when it fails after a couple hours, so I can't see it right away!
    I'm going to next try lowering the baud rate, possibly try to disconnect an isolator and thermostat one at a time to see if it will run longer, potentially being the isolator. I tried to disable individual units in Mango and see what happens but couldn't isolate the problem. I also replaced all the thermostats from Temco Control units to Isquared iStat6 units, so do not think the thermostat itself is the cause, unless the iStat6 firmware has an issue. Both Temco and iStat6 units used the ControlCore firmware. By the way, before switching to Mango, I used ControlCore software and was seeing similar communication issues as I see now..

    Reading the modbus logs, I see hex data coming in, and all of the sudden it stops. I don't see garbage data coming in or anything, just as if the istat stops sending data. When this happens, nothing can send data over the network (i think a driver stays enabled maybe?). I see voltages on the bus of 4 volts and 0 volts. When it communicates, it is typically in the 1-3 volt range.

    posted in Hardware read more
  • D
    Dan M

    Sorry I misspoke. I meant it sends data, data takes, and then a few seconds later the network stops working.

    I've since changed the RS485 converter to a USB/RS485 converter (was an RS232/RS485 converter previously). I get drastically less CRC errors now, maybe 1 or 2 every ten minutes, but the network again stops working after a minute or an hour. Does not seem related to writing to the network, it just stops.

    I think one of the units just stops transmitting and its driver stays enabled, though it is just a guess at this point. Restarting all the units fixes the problem for a little while. Wondering if a unit is messing up, or maybe an isolator. Just trying to get another set of eyes because I'm at a loss right now.

    posted in Hardware read more