Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Solved Qt::opcua Rpi

    General and Desktop
    1
    2
    117
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mateczek last edited by

      I wrote small program to display opcua items value on gauge. When I run my program on windows program generate warning as below, but it work.

      qt.opcua.plugins.open62541.sdk.client: "Received a ServiceFault response"
      qt.opcua.plugins.open62541.sdk.client: "The ServiceResult has the StatusCode BadTooManyPublishRequests"
      qt.opcua.plugins.open62541.sdk.client: "Too many publishrequest, reduce outStandingPublishRequests to 3"
      

      When i try run my program on RPI. This program generate warnings (decrement only to 5) and disconnect from server. Log from Rpi:

      qt.opcua.plugins.open62541.sdk.client: "Received a ServiceFault response"
      qt.opcua.plugins.open62541.sdk.client: "The ServiceResult has the StatusCode BadTooManyPublishRequests"
      qt.opcua.plugins.open62541.sdk.client: "Too many publishrequest, reduce outStandingPublishRequests to 5"
      qt.opcua.plugins.open62541.sdk.client: "Received a ServiceFault response"
      qt.opcua.plugins.open62541.sdk.client: "The ServiceResult has the StatusCode BadSessionClosed"
      qt.opcua.plugins.open62541.sdk.client: "Received Publish Response with code BadSessionClosed"
      

      Al source code my program on GitHub: https://github.com/mateczek/opcuaTestGauge
      Presentation of the program's work and the warnings : https://youtu.be/ilIMhMplKds
      Console log from RPI run test: https://github.com/mateczek/opcuaTestGauge/blob/main/log.rpi.txt

      In my program I monitor opcuaNode as below

      //from file nd_machine.cpp....
      //monitor node enable
      nodePrecentFill->enableMonitoring(QOpcUa::NodeAttribute::Value,QOpcUaMonitoringParameters());
      
      //cath opcuaNode value change 
      connect(nodePrecentFill,SIGNAL(dataChangeOccurred(QOpcUa::NodeAttribute,QVariant )),this,SLOT(opcDataUpdateVall(QOpcUa::NodeAttribute,QVariant)));
      

      Pss. I native build Qt 6.1.2 directly on RPI
      Thank you in advance for all suggestions

      1 Reply Last reply Reply Quote 0
      • M
        mateczek last edited by

        data, time, and timezone must be the same on RPI and kepware OPC server :P.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post