Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. how to correctly use QModbusTCPClient
Forum Updated to NodeBB v4.3 + New Features

how to correctly use QModbusTCPClient

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 210 Views 1 Watching
  • 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 Offline
    M Offline
    MaximB
    wrote on last edited by MaximB
    #1

    Hi,

    I am trying to get GPS data via Modbus Server. There is no problem getting the data, because I tried with Modbus Master and it worked fine.

    I am struggling with incorporating this into my code however. In my code I also run a opcua server to get data from the vehicle which this device is going to be installed.

    I have this setup now, by my app keeps crashing (I think due to stackoverflow).

    The code is a bit intertwined with mqtt code because I want to send the data with mqtt aswell later.

    this is the application ouput I get when the app crashes:

    08:51:45: Starting /home/qt-apps/applications/myQtApplication on ecomatDisplay...
    QML debugging is enabled. Only use this in a safe environment.
    qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
    
    Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland.
    
    08:51:45: /home/qt-apps/applications/myQtApplication on ecomatDisplay exited with code 255
    

    Anybody that can help?

    1 Reply Last reply
    0
    • M MaximB marked this topic as a regular topic on
    • artwawA Offline
      artwawA Offline
      artwaw
      wrote on last edited by
      #2

      https://doc.qt.io/qt-6/linux-requirements.html
      Looks like you're missing on some of the packages from your linux distro.

      For more information please re-read.

      Kind Regards,
      Artur

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved