Results 1 to 3 of 3

Thread: How to communicate with a "non-com-port" device?

  1. #1
    Join Date
    Mar 2015
    Posts
    7
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Windows

    Default How to communicate with a "non-com-port" device?

    If the connected device with a chip which is RS-232 based communication control can not be detected as a com port and is only recognized as a Universal Serial Bus Controller, Are there any library in QT that could do the identical jobs as QSerialPort?

    [QextPortInfo? QextSerialEnumerator? QextSerialPort? ]

    This device can not be found by the example "enumerator", but the driver has been updated to the latest version.

    In addition, if the device is USB3.0 and is not RS-232 base communication control, which library is the better candidate?
    Last edited by leisha; 24th March 2015 at 16:26. Reason: updated contents

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,533
    Thanks
    13
    Thanked 1,576 Times in 1,505 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How to communicate with a "non-com-port" device?

    Quote Originally Posted by leisha View Post
    If the connected device with a chip which is RS-232 based communication control can not be detected as a com port
    If Windows (I assume) does not present the device as a new COM port then it is not designed to be accessed as a simple serial port.

    You will need to know the technical details of the USB interface it does present (HID or something else) and then either use the Windows API or a library like libusb to get at it.

  3. The following user says thank you to ChrisW67 for this useful post:

    leisha (25th March 2015)

  4. #3
    Join Date
    Mar 2015
    Posts
    7
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: How to communicate with a "non-com-port" device?

    Thank you so much for pointing out two ways to me. My OS is windows 8.1. I will modify code for detecting device with Windows API or libusb/libusb-win32 this weekend and try next week. Hope I can have positive result.

Similar Threads

  1. Replies: 2
    Last Post: 23rd March 2015, 11:43
  2. Replies: 3
    Last Post: 16th March 2015, 07:31
  3. Replies: 0
    Last Post: 14th April 2014, 14:58
  4. Error Message "Paint device returned engine == 0, type:1"
    By yuzhouzhiwai in forum Qt Programming
    Replies: 5
    Last Post: 30th April 2012, 09:33
  5. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 19:05

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.