Results 1 to 8 of 8

Thread: serial port same local machine

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: serial port same local machine

    COM ports don't have any automagic. If You want write some data to COM port and read this same data from this same port You must use loopback connector on this port ie. like this.

  2. The following user says thank you to Lesiok for this useful post:

    adamatic (2nd February 2009)

  3. #2
    Join Date
    Jan 2009
    Posts
    54
    Thanks
    9
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: serial port same local machine

    Yes, of course I did the loopback but i dont know if i have to configure and open the COM1 port in both programmes. I have tried both things but if it is opened in one program and then i configure the same port in another program to send datas to the other is telling that the port is close althoug i didnt close it.

    I dont know well which is the process.

  4. #3
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: serial port same local machine

    Of course You must open COM port in both programs in shared mode. Another solution is to use some application creating virtual ports makes connections betwen them. Than You can use in one program ie. COM5 and in second COM6.

Similar Threads

  1. serial port programming
    By sujatashooter in forum Qt Programming
    Replies: 1
    Last Post: 29th November 2008, 15:51
  2. accessing serial port without CONFIG += console
    By bnilsson in forum Qt Programming
    Replies: 2
    Last Post: 21st July 2008, 21:47
  3. forcing local port number from TcpSocket?
    By nbkhwjm in forum Newbie
    Replies: 6
    Last Post: 8th January 2008, 18:28
  4. First attempt to display serial port data on GUI
    By ShaChris23 in forum Newbie
    Replies: 12
    Last Post: 4th May 2007, 09:14
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

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.