• Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. Dan M
    3. Posts

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website
    D
    • Profile
    • Following 0
    • Followers 0
    • Topics 12
    • Posts 23
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by Dan M

    • Mango install script issue

      Tried installing mango 4 to play with it a bit on linux. Found a couple potential issues. When running the script, it stopped and said:

      install-mango.sh: 144: cannot create /opt/mango/overrides/properties/env.properties: Directory nonexistent
      

      Had to add mkdir overrides and mkdir properties to the install script for it to finish..

      Mango configured to use latest MySQL. After setting it up, mango went into a restart loop. Found this in the log:

      Caused by: java.sql.SQLException: The server time zone value 'EDT' is unrecognized or represents more than one time zone. You must configure either the server or JDBC>
      

      To fix, I had to add "?serverTimezone=UTC" to the env.properties

      db.url=jdbc:mysql://localhost/mango?useSSL=false&serverTimezone=UTC
      
      posted in Mango General
      D
      Dan M
    • RE: Event Detectors

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

      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 General
      D
      Dan M
    • md-theme-provider injecting itself without cssInjector in app.js

      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
      D
      Dan M
    • Script to restart mango

      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 General
      D
      Dan M
    • RE: Scripting to reset serial (MODBUS) data source

      @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
      D
      Dan M
    • RE: Scripting to reset serial (MODBUS) data source

      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
      D
      Dan M
    • RE: RS485 issues and Exception from modbus master: Function code: 0x3f and 0x7f

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

      posted in Hardware
      D
      Dan M
    • RE: RS485 issues and Exception from modbus master: Function code: 0x3f and 0x7f

      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
      D
      Dan M
    • RE: RS485 issues and Exception from modbus master: Function code: 0x3f and 0x7f

      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
      D
      Dan M
    • RS485 issues and Exception from modbus master: Function code: 0x3f and 0x7f

      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
      D
      Dan M
    • RE: JSON Store not updating from script into HTML

      @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
      D
      Dan M
    • JSON Store not updating from script into HTML

      I have an issue where I'm using the JSON store to save scheduling data. The HTML uses the <ma-json-store> function to get the data and show it. I also have a scripting data source that gets the actual SQL from the json store to modify it and sets other data source variables.

      Everything works well except if the script changes the data, the HTML does not update in real-time. It requires a refresh of the page to get the changed data.

      Is there any way to fix this, or perhaps have it refresh the JSON store (via a controller in app.js)? I tried to do the latter but had trouble reading the SQL/JSON data directly from the SQL via app.js, just couldn't figure out the coding... Self taught coder that no so good.

      Any ideas appreciated!

      posted in Dashboard Designer & Custom AngularJS Pages
      D
      Dan M
    • RE: LoginPageTemplate help, logging in goes to mango not dashboard

      So I managed to figure something out, hopefully it won't mess with other stuff.. I modified maMaterialDashboards and removed Md-pickers, which was what was causing my problem.
      Is there a way to just bypass all this and not call maMaterialDashboards? It won't load with just calling maDashboards in my app.js. I want to still be able to use mdAdmin if needed..

      /**
       * @copyright 2016 {@link http://infiniteautomation.com|Infinite Automation Systems, Inc.} All rights reserved.
       * @author Jared Wiltshire
       */
      
      define(['angular',
              './maDashboards',
              'angular-material-data-table'], function(angular, maDashboards) {
      'use strict';
      
      return angular.module('maMaterialDashboards', ['maDashboards', 'md.data.table']);
      
      }); // define
      
      
      posted in User help
      D
      Dan M
    • RE: LoginPageTemplate help, logging in goes to mango not dashboard

      thanks @Jared-Wiltshire . that fixed that issue..
      another problem now, is there a way to make the loginpagetemplate work with bootstrap 3? The page comes up but uses angular material for formatting and not working right with bootstrap. I tried to just load maDashboards rather than maMaterialDashboards but doesn't work.. Spent [too] much time getting my bootstrap page working right and rather not have to redo it with angular material.

      FYI, the loginpagetemplate in the dashboard example (app.js) doesnt match the actual template. The example only has maDashboards rather than maMaterialDashboards.

      Thanks.

      posted in User help
      D
      Dan M
    • LoginPageTemplate help, logging in goes to mango not dashboard

      Trying to play with the LoginPageTemplate. I did what the instructions say, but if I try to login under /user-dashboards/loginPageTemplate, it directs me to the main mango page. ( http://localhost:8082/data_point_details.shtm), rather than the user-dashboards/loginPageTemplate/home. Although if I am already logged into mango, it will show to correct home.html (that shows 'you are logged in as XXX' and link to page 1)
      Did I miss a step? I'm trying to make a custom dashboard with its own login, but can't get this to work right. Using Mango 2.8.4 with dashboards 3.4

      posted in User help
      D
      Dan M
    • RE: Set-point-value and show-button=false not working

      Im using v3.4. It was working in v3.2 though.

      posted in User help
      D
      Dan M