Is it possible to read and log data in smaller intervals than 1 second?
Posts made by Dominic.Irl
-
Millisecond Logging
-
RE: Modbus TCP/IP error message
Hi Joel,
It's more trial and error shifting Mango onto cloud based server at the moment. The two different errors were coming up when trying two different ports for comms. I have port forwarding set up on my router for two devices. I was just wondering why one port got one error and the other port the other error. I have yet to establish communication with the Modbus devices but this is a network issue - nothing to do with Mango as I have found out.
Rgds,
Dominic -
Modbus TCP/IP error message
Could someone enlighten me as to what the following two error messages may mean when polling a modbus TCP/IP data register?
1.Gateway path unavailable
2.com.serotonin.modbus4j.exception.ModbusTransportException: java.net.SocketTimeoutException: connect timed outThanks in advance,
Dominic.IRL -
RE: MYSQLD.EXE has encountered an issue - Mango instance not starting.
I seem to have overcome this issue by going to
(start>run>services.msc) and starting the MYSQL instance.All seems to be going fine now.
-
MYSQLD.EXE has encountered an issue - Mango instance not starting.
I am encountering an issue with SQL upon initializing Mango. It seems that there is an issue with my " MySQLd.exe and it needs to close". After Mango "initializes " it gives me the following message.
"System exception!
The server has experienced an exception processing your last request. The exception has been logged, and system administrators will be notified of this problem. You may continue to use the site. We apologize for the inconvenience"
Here is an example of the report generated from Mango:::
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:973) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:863) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:769) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1667) at com.serotonin.web.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:37) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650) at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:83) at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:300) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:583) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1125) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1059) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) at org.eclipse.jetty.server.Server.handle(Server.java:485) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:290) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:248) at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:606) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:535) at java.lang.Thread.run(Unknown Source) Caused by: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:80) at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:630) at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:695) at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:727) at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:737) at com.serotonin.db.spring.ExtendedJdbcTemplate.queryForObject(ExtendedJdbcTemplate.java:39) at com.serotonin.db.DaoUtils.queryForObject(DaoUtils.java:332) at com.serotonin.m2m2.db.dao.UserDao.getUser(UserDao.java:42) at com.serotonin.m2m2.web.mvc.controller.LoginController.onSubmit(LoginController.java:88) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:215) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:749) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:689) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:83) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:938) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:870) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:961) ... 29 more Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. at sun.reflect.GeneratedConstructorAccessor33.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at com.mysql.jdbc.Util.handleNewInstance(Util.java:411) at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1121) at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:357) at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2482) at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2519) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2304) at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:834) at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47) at sun.reflect.GeneratedConstructorAccessor35.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at com.mysql.jdbc.Util.handleNewInstance(Util.java:411) at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:416) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:346) at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38) at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582) at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1188) at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044) at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111) at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77) ... 50 more Caused by: java.net.ConnectException: Connection refused: connect at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) at java.net.AbstractPlainSocketImpl.connect(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.<init>(Unknown Source) at java.net.Socket.<init>(Unknown Source) at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:259) at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:307) ... 68 more REQUEST URL http://localhost:8080/exception/error.jsp
There have been no changes made to the Mango instance and am curious as to what may be the cause of all this.
Any help is muchly appreciated.
Regards,
DominicIrl
-
RE: VPS/'Cloud' hosting
Hi Jeremy,
I intend trying to get this up and running in the following weeks. I will keep you posted on how it goes.
Regards,
Dominic -
RE: CSV Report Format
That sounds very promising Joel.
I will be keeping my eye out for that module as it sounds pretty much exactly what I am after. -
CSV Report Format
Does anybody know if it is possible to alter the layout of the CSV file that is e-mailed in the reports?
Specifically I wish to include graphs in the CSV file.
Thanks in advance,
Dominic
-
RE: Public Dashboard requiring log in.
All up and running,
Thanks for the input Joel!
P.S. How do I mark post as SOLVED?
-
RE: Public Dashboard requiring log in.
Perfect. We will give this a shot and let you know how we get on.
Thanks for the quick replies.
Dominic
-
RE: Public Dashboard requiring log in.
Ah ok, Creating the guest user will not be an issue but could you advise on where to begin with the java script. I will need to relate this to my developer.
Rgds,
Dominic -
RE: Public Dashboard requiring log in.
The URL I am pointing to is
http://192.168.0.44:8080/public-dashboards/index.htmI wonder is it anything to do with the way we are using websockets for the gauges, datapoint configurations for the charts and REST API for the datapoints in tables? Would there be a conflict occurring in there?
Rgds,
Dominic -
Public Dashboard requiring log in.
Utilising the REST API & with the data stored in the modules public folder I am getting the following message when accessing the url while not being logged in to MANGO :
"The page @ 192.168.xx.xx:xxxx says Unauthorized User not Logged In."
I can only gain access when I log into MANGO and reattempt to reach the page.
According to the wiki/documentation a public dashboard should not require a log-in.
Has anybody any thoughts on this?
Dominic
-
RE: Upgraded H2 to SQL - ran succesfully but now "server errors" occuring
Hi Joel,
It is version 2.5.0.
I have figured it out. I had public-dashboards open with the data points being visualised via the API to a local web page. The data points that were being utilised on the page were the points that were giving me an error when I went to amend them. Simply closing the open web page allowed me to edit the data points without error.Dominic
-
Upgraded H2 to SQL - ran succesfully but now "server errors" occuring
My install was running a little sluggishly recently so I decided on a few improvements. I allocated more heap space to java and I have just upgraded the database to MYSQL from H2. The improvement in all around speed is amazing!!
Everything seemed to have run smoothly. I can query the database and see data-points created etc.However when toggling a data point on/off I am receiving "server error has occurred" warnings. Making changes to the data-point settings is bringing up the same error.
ERROR 2015-04-22 16:39:28,718 (com.serotonin.m2m2.web.dwr.util.ExceptionDetectionFilter.doFilter:38) - DWR invocation exception java.lang.NullPointerException at com.serotonin.m2m2.web.mvc.rest.v1.model.pointValue.PointValueTimeModel.<init>(PointValueTimeModel.java:54) at com.serotonin.m2m2.web.mvc.rest.v1.publisher.pointValue.PointValueWebSocketPublisher.pointTerminated(PointValueWebSocketPublisher.java:149) at com.serotonin.m2m2.rt.RuntimeManager.stopDataPoint(RuntimeManager.java:430) at com.serotonin.m2m2.rt.RuntimeManager.saveDataPoint(RuntimeManager.java:339) at com.serotonin.m2m2.web.dwr.DataPointDwr.toggle(DataPointDwr.java:89) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.directwebremoting.impl.ExecuteAjaxFilter.doFilter(ExecuteAjaxFilter.java:34) at org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:428) at com.serotonin.m2m2.web.dwr.util.TranslationsFilter.doFilter(TranslationsFilter.java:37) at org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:428) at com.serotonin.m2m2.web.dwr.util.ExceptionDetectionFilter.doFilter(ExceptionDetectionFilter.java:26) at org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:428) at com.serotonin.m2m2.web.dwr.util.DwrPermissionFilter.doFilter(DwrPermissionFilter.java:38) at org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:428) at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:431) at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:283) at org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandler.java:52) at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:101) at org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:146) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:769) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1667) at org.eclipse.jetty.servlets.UserAgentFilter.doFilter(UserAgentFilter.java:83) at org.eclipse.jetty.servlets.GzipFilter.doFilter(GzipFilter.java:300) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:583) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1125) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1059) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) at org.eclipse.jetty.server.Server.handle(Server.java:485) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:290) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:248) at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:606) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:535) at java.lang.Thread.run(Unknown Source) ERROR 2015-04-22 16:40:27,815 (org.springframework.web.socket.handler.LoggingWebSocketHandlerDecorator.handleTransportError:61) - Transport error for WebSocket session id=1e12a4 java.net.SocketTimeoutException: Timeout on Read at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onReadTimeout(AbstractWebSocketConnection.java:526) at org.eclipse.jetty.io.AbstractConnection.onFillInterestedFailed(AbstractConnection.java:173) at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onFillInterestedFailed(AbstractWebSocketConnection.java:496) at org.eclipse.jetty.io.AbstractConnection$ReadCallback$1.run(AbstractConnection.java:582) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:606) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:535) at java.lang.Thread.run(Unknown Source) ERROR 2015-04-22 16:40:28,239 (org.springframework.web.socket.handler.LoggingWebSocketHandlerDecorator.handleTransportError:61) - Transport error for WebSocket session id=161de66 java.net.SocketTimeoutException: Timeout on Read at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onReadTimeout(AbstractWebSocketConnection.java:526) at org.eclipse.jetty.io.AbstractConnection.onFillInterestedFailed(AbstractConnection.java:173) at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onFillInterestedFailed(AbstractWebSocketConnection.java:496) at org.eclipse.jetty.io.AbstractConnection$ReadCallback$1.run(AbstractConnection.java:582) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:606) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:535) at java.lang.Thread.run(Unknown Source) ERROR 2015-04-22 16:40:28,411 (org.springframework.web.socket.handler.LoggingWebSocketHandlerDecorator.handleTransportError:61) - Transport error for WebSocket session id=b59ed5 java.net.SocketTimeoutException: Timeout on Read at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onReadTimeout(AbstractWebSocketConnection.java:526) at org.eclipse.jetty.io.AbstractConnection.onFillInterestedFailed(AbstractConnection.java:173) at org.eclipse.jetty.websocket.common.io.AbstractWebSocketConnection.onFillInterestedFailed(AbstractWebSocketConnection.java:496) at org.eclipse.jetty.io.AbstractConnection$ReadCallback$1.run(AbstractConnection.java:582) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:606) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:535) at java.lang.Thread.run(Unknown Source)
After going for a quick coffee break, I came back and could toggle on/off, save data-point changes!! It seemed to have resolved itself.
Any insight into what is happening here would be greatly appreciated.
Thanks in advance,
Dominic
-
Has anybody used TCP/IP module?
I am wondering if anybody has successfully utilised the TCP/IP module. Specifically what I am trying to do is retrieve data from a Linux machine by opening up a socket via ser2net or Sredird ( I want to access data coming in from the serial port ). I hope to implement this in the coming days and was enquiring as to whether anybody has this done already.
Regards,
Dominic -
RE: SMA Cluster Controller
Hi Jeremy,
You are a star!!
You are right, it is poorly explained in the SMA manual - regardless you saved the day!Thanks,
D
-
SMA Cluster Controller
I am trying to communicate via the SMA cluster controller to additional inverters in the network.
I can communicate with the cluster controller directly no problem.
My issue is with ascertaining the unit ID's of the other inverters. I am unsure if this a Mango query or a query for SMA.
I have strangely enough found one of the inverters @ slave ID 255. I thought the range was 0-240!!Are there any trick to polling the slaves to find them?
Any insight into this would be greatly appreciated.
Thanks in advance
-
RE: SMA Cluster Controller
I am trying to communicate via the SMA cluster controller to additional inverters in the network.
I can communicate with the cluster controller directly no problem.
My issue is with ascertaining the unit ID's of the other inverters. I am unsure if this a Mango query or a query for SMA.
I have strangely enough found one of the inverters @ slave ID 255. I thought the range was 0-240!!Are there any trick to polling the slaves to find them?
Any insight into this would be greatly appreciated.
Thanks in advance