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. ReadyRead not triggered when only one byte is written to the other end
Forum Update on Monday, May 27th 2025

ReadyRead not triggered when only one byte is written to the other end

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 205 Views
  • 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.
  • D Offline
    D Offline
    DiaaQTdev
    wrote on last edited by DiaaQTdev
    #1

    Hi All,
    i have many issues with QT serial port, i am writing only one byte to the other end( a pic microcontroller) and i programmed it so it writes back what it received. However, when i only write one byte i don't have any response from the microcontroller(ReadyRead not triggered) but if i write more than 2 bytes i receive back one of the bytes. and if it is more than 2 bytes i receive one good byte and the rest is garbage values but also i don't receive the same number of bytes i have sent... Do you please have any suggestions how to proceed and what is the issue
    (FYI: not for sure a microcontroller issue, i have done the same thing with realterm and i am receiving the same bytes and the same number of bytes...)

    thank you in advance for any suggestions..

    VRoninV 1 Reply Last reply
    0
    • D DiaaQTdev

      Hi All,
      i have many issues with QT serial port, i am writing only one byte to the other end( a pic microcontroller) and i programmed it so it writes back what it received. However, when i only write one byte i don't have any response from the microcontroller(ReadyRead not triggered) but if i write more than 2 bytes i receive back one of the bytes. and if it is more than 2 bytes i receive one good byte and the rest is garbage values but also i don't receive the same number of bytes i have sent... Do you please have any suggestions how to proceed and what is the issue
      (FYI: not for sure a microcontroller issue, i have done the same thing with realterm and i am receiving the same bytes and the same number of bytes...)

      thank you in advance for any suggestions..

      VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      @DiaaQTdev said in ReadyRead not triggered when only one byte is written to the other end:

      and i programmed it so it writes back what it received.

      Can you show your code?

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      2

      • Login

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