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. QSerialPort::pinoutSignals() not working
Forum Updated to NodeBB v4.3 + New Features

QSerialPort::pinoutSignals() not working

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

    Hii,
    I am using QSerialPort class for RS-232 Windows based application. When I am trying to read RS-232 pinout details using QSerialPort::pinoutSignals() function after setting RTS to high, values are not changing for DataCarrierDetectSignal,DataSetReadySignal and ClearToSendSignal enums.But it is giving correct value for QSerialPort::DataCarrierDetectSignal value. Is it an implementation problem, or I am something wrong?

    //QSerialPort::DataCarrierDetectSignal
    if(port->pinoutSignals() & QSerialPort::DataCarrierDetectSignal){
    LOG_DEBUG("QSerialPort::DataCarrierDetectSignal is TRUE");
    }
    else {
    LOG_DEBUG("QSerialPort::DataCarrierDetectSignal is FALSE");
    }

    //QSerialPort::RingIndicatorSignal
    if(port->pinoutSignals() & QSerialPort::RingIndicatorSignal){
    LOG_DEBUG("QSerialPort::RingIndicatorSignal is TRUE");
    }
    else {
    LOG_DEBUG("QSerialPort::RingIndicatorSignal is FALSE");
    }

    //QSerialPort::DataSetReadySignal
    if(port->pinoutSignals() & QSerialPort::DataSetReadySignal){
    LOG_DEBUG("QSerialPort::DataSetReadySignal is TRUE");
    }
    else {
    LOG_DEBUG("QSerialPort::DataSetReadySignal is FALSE");
    }

    //QSerialPort::ClearToSendSignal
    if(port->pinoutSignals() & QSerialPort::ClearToSendSignal){
    LOG_DEBUG("QSerialPort::ClearToSendSignal is TRUE");
    }
    else {
    LOG_DEBUG("QSerialPort::ClearToSendSignal is FALSE");
    }

    1 Reply Last reply
    0
    • Kent-DorfmanK Offline
      Kent-DorfmanK Offline
      Kent-Dorfman
      wrote on last edited by
      #2

      Can you demonstrate that you know what those signals are and who is repsonsible for asserting them...and do you undertstand the difference between a DTE-DTE vs DTE-DCE connection? Would you expect those signals to be "asserted", and under what circumstances?

      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