• hussam

    sorry,have resolved ,it is browser compatibility problem

    posted in Announcements read more
  • hussam

    I download the new version 3.0 to test,but is not be started right,it stoped on
    INFO 2017-05-08T10:17:38,942 (org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.registerHandler:362) - Mapped URL path [/sqlConsole.shtm] onto handler of type [class com.serotonin.m2m2.web.mvc.UrlHandlerController]
    INFO 2017-05-08T10:17:38,942 (org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.registerHandler:362) - Mapped URL path [/globalScripts.shtm] onto handler of type [class com.serotonin.m2m2.web.mvc.UrlHandlerController]

    have anyone else found this?

    posted in Announcements read more
  • hussam

    you just want to read data from Redis,or you want store and read on redis;if you want store,you need to solve the key-Unique issue,redis is key-value struct,if you just want to read,it 's simple,you can see the redis official demo.

    posted in How-To read more
  • hussam

    quality field means in pointvalues database table direct indicate one point is good or bad in a exact timestamt.
    in ALL loggingType, if one timestamt no value,this can indicate it communication error.
    in on_change type,we can use use "No Change" or "No Update" event detectors to indicate it communication error.

    but when query pointvalue in api,chart,report ,just query data from pointvalue table,we don't join the event detectors to indicate one point is bad or good in a exact timestamt.

    posted in Mango Automation general Discussion read more
  • hussam

    In on_change loggingType , we can't differentiate one datapoint is communication error or is really have value just because value not change,this will impact datapointvalue query in chart, report and other place,especially in chart,if one point communication error on a peroid time then recovered, the chart line display straight line.

    if add one quality field,it would avoid this issue.

    posted in Mango Automation general Discussion read more
  • hussam

    update rate must be >timeout*(retries+1),and max read bit count=16*register. just fyi

    posted in User help read more
  • hussam

    Mango have already provided the datasource event to watchdog itself, you can use the datasource events.

    posted in Mango Automation general Discussion read more
  • hussam

    1:stop the mango.
    2:update you database use SQL.
    3:start again.

    posted in How-To read more
  • hussam

    It seems like, datapoint value's timestamp change every datasoure poll even if it's value don't change,so the last point update's time = datasource last poll time.

    posted in How-To read more
  • hussam

    I have more than 50 modbus datasource at one server,"updatePeriodType":"MINUTES", "updatePeriods":5, so, at the * */5 * * * ?, cpu utilization 100% instantaneous.

    so,if you have many datasource,avoid trigger them at same time point(same updatePeriodType and same updatePeriods),you can balance them to different time point.

    posted in Mango Automation general Discussion read more
  • hussam

    Actually,This situation don't happen,which datasource moudule you used?

    posted in User help read more
  • hussam

    I am sure the Quantize checkbox is useful in modbus, my logging type is ON_CHANGE, please test in ON_CHANGE condition

    posted in User help read more
  • hussam

    This is a Alternate Method,you can set a datasource's cron string replace interval logging type,you can Define a Quantize cron yourself.

    posted in User help read more
  • hussam

    Modbus4j is a jar lib which be used by modbus module, and the modbus run base one mango, 2.5.2 also is ok,but Modbus4j can't run alone bucause it need some jar.
    and the serial com name, if you have windows system,you can find some serial com like com1,com2, this is a string value.

    posted in Modbus4J general discussion read more
  • hussam

    you run on a linux system. please confirm the serial com name is "/dev/ttyM0"? right?
    and this should be a jssc environment problem,pleause comfirm if you lose some jar lib

    posted in Modbus4J general discussion read more
  • hussam

    4th question:if you get a ip address, you should use the modbus tcp/ip,not the modbus rtu(it base one serial com).
    3rd question: you should put the serial com name(seem like com1,com2 it is a string value).

    about the Native lib Version = RXTX-2.1-7 error? please update to the newest mango, it have moved to jssc replace rxtx.

    finally, acutally,if you use the mango 2.5.2 version,it have two module ,modbas serial and modbus tcp, it can easy connect to Schneider Power Logic electrical device.

    posted in Modbus4J general discussion read more
  • hussam

    I am trying the HAproxy solution,if it is success ,i will share the functon.

    posted in Stories read more
  • hussam

    I have running a scada system base of mango(to be exactly is mango+scadabr), it have 27 thousand points, more than 60 modbus Serial datasources, the serial com is virtual com use Ethernet connector which listening a tcp port from gprs, 3g,4g ,Ethernet .
    I use mysql database, datasource update period is 5 mintue, every day generate more 7 million pointvalues, so i have to partition pointvalues table based on Column(ts),but now the pointvalues have 1.5 billion values.
    the values is growing day by day,so we have a idear,if we can build a mango cluster, every server have 10 thousand points, 10 server we can have 100 thousand points, the mango cluster have one unify web front,we cory the session between 10 server,use haproxy shunt post to different server according to some rules(for example url parameter). for the end user,he don't feel the different.

    posted in Stories read more
  • hussam

    you use the meta datasource or scripting datasource? if logging every 5 minute,and read this point every 1 minute, just wasting resource,the value don't change, you can change you reading period to 5 minute,then ,will be avoid nan.

    posted in Scripting general Discussion read more
  • hussam

    a typical error is one datapoint which in context var list be disabled, or be delete in other place,this datapoint var will occur ReferenceError: "p1" is not defined, and the next script will not execute.

    I have tryed to use typeof p1 !=undefined or p1!=null to check first , but it seem like don't work.

    posted in Scripting general Discussion read more