Results 1 to 2 of 2

Thread: USB communication

  1. #1
    Join Date
    Oct 2007
    Posts
    13
    Thanks
    1
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Question USB communication

    Hi all,

    My OS: Win32 (win xp)
    I want to create a project for transfer files between two PCs by USB cable, so Can I do that by using Qt?

    I did some researches about this matter,and I found QextSerialPort, but I'm not sure if it suitable for my project !

    can you help me, please?

  2. #2
    Join Date
    Jan 2008
    Location
    Silicon valley
    Posts
    15
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: USB communication

    Quote Originally Posted by M. Bashir View Post
    My OS: Win32 (win xp)
    I want to create a project for transfer files between two PCs by USB cable, so Can I do that by using Qt?
    This is not possible unless you have a special cable (commonly called "USB link adapter"), which has USB devices in the middle. Although USB standard allows the same device to be both host controller and device at the same time, a USB controller on your PC does not support this feature. And if you have such cable, you do not need any project to transfer the files, since everything (including drivers) is on the provided CD.

    Another problem is API; so far I haven't seen any single library to access USB portably from userspace (kernel drivers are outside the scope), thus no Qt class wrapped around it. Obviously QextSerialPort will not work with USB bus.

    And yet another problem is that USB programming itself is not simple if you go deep enough. There are devices, device classes, descriptors, control descriptor, states, different types of transfers, etc. In short, this is not an easy task.

Similar Threads

  1. Data communication between multiple computers
    By AlbertGoodwill in forum Newbie
    Replies: 2
    Last Post: 8th October 2007, 13:44
  2. serial communication programming
    By jagadish in forum Qt Programming
    Replies: 1
    Last Post: 30th August 2007, 07:47
  3. C++ Library for serial communication
    By dec0ding in forum General Programming
    Replies: 7
    Last Post: 8th July 2007, 18:18
  4. How to transfer file through serial communication
    By shamik in forum Qt Programming
    Replies: 29
    Last Post: 29th May 2007, 10:22
  5. Inter Process Communication
    By yellowmat in forum Qt Programming
    Replies: 3
    Last Post: 20th July 2006, 11:44

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.