• 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
  • D
    Dan M

    Any one know what these exceptions mean? My system runs fine for minutes or hours, and when I sometimes when writing to one of the slaves, the whole network crashes (but the device is able to get that data and successfully writes it to its register), All the devices have to be rebooted, but not the mango master, to communicate again.

    All my slaves are Isquare Istat6 thermostats. I have 6 units, each in a separate building, Each building has a BB-Electronics Optoisolator/Repeater (485OPDR-HS / line bias on units disabled on the network side, enabled on the side connected to the istat). I have line bias in the system running Mango (470 ohm resistors to 5v and ground), and 120 ohm termination resistors at each end. Line length is about 300 meters. Twisted pair with ground.

    Cannot figure out why the network stops working. When it does, the light that blinks when receiving data on the RS485/RS232 converter stops blinking and just stays on. Converter is a CommFront RS232/RS485 optoisolated converter.

    What do the exception codes mean? Anyone have ideas on this issue? I've spent weeks trying to figure this out and I'll get it working for an entire day, but the next morning, I write to a slave and the network dies. This is killing me!

    Any info would be greatly appreciated!!

    posted in Hardware read more
  • D
    Dan M

    @Jared-Wiltshire said in JSON Store not updating from script into HTML:

    ="ou

    Awesome, works. Just had to up the interval as my script/getSQL interval was 5 seconds and caused some conflict.

    posted in Dashboard Designer & Custom AngularJS Pages read more