Forum Home › Forums › Development and Integration › Realtime DB access and indication
Tagged: ModDBExport
- This topic has 9 replies, 3 voices, and was last updated 4 years ago by Mikhail.
-
AuthorPosts
-
April 2, 2020 at 12:30 pm #6675RolandParticipant
Hello,
We are encountered some issues regarding to realtime data acquisition and display using KpMqtt. Our plan is to receive data through an MQTT broker from many sensors at the same time, using postgresql database. Once a new data is received, the ModDBExport.log file receives a new entry:
Unable to enqueue current data. The maximum size of the queue 100 is exceeded
Can you help me how to proceed with this?
My next question is that is it possible somehow to show realtime data on a chart contionously, without refreshing the webpage? Like shifting a window on the actual data from the previous 1 minute? Or it is possible to have such only in 1 minute intervals?
In general, is there a simply solution how to handle realtime data?
We are trying to build up a system based on Rapid SCADA to design a mass ventilator system for treatment of group illnesses, specifically to COVID19.
April 2, 2020 at 3:27 pm #6677MikhailModeratorHello Roland,
Unable to enqueue current data. The maximum size of the queue 100 is exceeded
2 main possible reasons:
1. Query is too slow comparing with the amount of incoming data
2. There is a database error.You should analyze the log ModDBExport.log written by the DB export module. You could provide the log here.
April 2, 2020 at 3:29 pm #6678MikhailModeratorshow realtime data on a chart contionously, without refreshing the webpage?
We work on it now. Coming soon ))
You can contact us by email to get early version for testing.We are trying to build up a system based on Rapid SCADA to design a mass ventilator system for treatment of group illnesses, specifically to COVID19.
Wow
April 2, 2020 at 3:31 pm #6679MikhailModeratorTo get quick results with export data to PostgreSQL, it would be useful to involve our team in the project. We can help to fix the export process, and upgrade the export module if necessary depending on the requirements.
April 2, 2020 at 3:52 pm #6680RolandParticipantThank for the answers. Please find here the corresponding lines from the ModDBExport.log :
——————————————————————————–
2020-04-02 17:45:13 Start ModDBExport module
2020-04-02 17:45:13 Error initializing data source PostgreSQL – localhost: Could not load type of field ‘Npgsql.NpgsqlConnection:CertificateSelectionCallback’ (9) due to: Could not resolve type with token 01000058 from typeref (expected class ‘Mono.Security.Protocol.Tls.CertificateSelectionCallback’ in assembly ‘Mono.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756’) assembly:Mono.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756 type:Mono.Security.Protocol.Tls.CertificateSelectionCallback member:(null)April 2, 2020 at 4:33 pm #6681greenfoxxParticipantCould you provide versions ScadaServer, ModDBExport and PostgresSQL?
April 2, 2020 at 6:23 pm #6682RolandParticipantI am using the scada_5.8.0_mono_en package, that I downloaded from here: https://rapidscada.org/download-all-files/download-rapid-scada/
I am using Ubuntu 19.10
April 3, 2020 at 9:17 am #6684MikhailModeratorTry the following:
1. Download Mono.Security.dll.zip.
2. Put the DLL into /opt/scada/ScadaServer/Mod
3. Restart the Server daemonApril 3, 2020 at 9:46 am #6685RolandParticipantI downloaded and copied there, then restarted my PC.
Now I got the following in ModDBExport.log:
Error connecting to DB PostgreSQL – localhost: Could not load type of field ‘System.Net.Security.SslStream:provider’ (0) due to: Could not resolve type with token 01000030 from typeref (expected class ‘Mono.Security.Interface.MonoTlsProvider’ in assembly ‘Mono.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756’) assembly:Mono.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756 type:Mono.Security.Interface.MonoTlsProvider member:(null)
April 3, 2020 at 12:22 pm #6686MikhailModeratorThen vice versa, delete /opt/scada/ScadaServer/Mod/Mono.Security.dll and restart the Server daemon.
-
AuthorPosts
- You must be logged in to reply to this topic.