doubt about multiple communication

This is a discussion on doubt about multiple communication within the Networking/Device Communication forums, part of the General Programming Boards category; Hi, I am developing a program to control two devices 1)through RS232 interface 2)through USB port I had a doubt ...

  1. #1
    Registered User
    Join Date
    Apr 2011
    Posts
    7

    doubt about multiple communication

    Hi,
    I am developing a program to control two devices
    1)through RS232 interface
    2)through USB port

    I had a doubt can i call a function to pass values to RS232 connected device and keeping the USB device idle in the same program without using threads...

    Idle in the sense i am not accessing the USB device while the function for RS232 is called...but both devices are initialized...

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,451
    So which OS/Compiler are you using?

    Do you have a specific problem with keeping the USB "idle"?

    For most other things (eg, network sockets), any "keep-alive" protocol is typically handled by the driver.
    As a user-land process, it just opens the connection, uses it when it needs to, then closes it again.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. PHP to C++ Communication
    By Dae in forum C++ Programming
    Replies: 3
    Last Post: 07-27-2009, 09:48 AM
  2. MFC: Multiple clicks shows multiple bitmaps - how?
    By BrianK in forum Windows Programming
    Replies: 0
    Last Post: 06-20-2004, 07:25 PM
  3. multiple inputs of multiple types
    By frontz in forum C Programming
    Replies: 8
    Last Post: 01-19-2004, 01:57 PM
  4. C++ and PHP communication
    By Korhedron in forum Game Programming
    Replies: 4
    Last Post: 01-12-2004, 05:37 AM
  5. Replies: 1
    Last Post: 05-01-2003, 02:52 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21