Thread: doubt about multiple communication

  1. #1
    Registered User
    Join Date
    Apr 2011

    doubt about multiple communication

    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 int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    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.

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, 02:57 PM
  4. C++ and PHP communication
    By Korhedron in forum Game Programming
    Replies: 4
    Last Post: 01-12-2004, 06:37 AM
  5. Replies: 1
    Last Post: 05-01-2003, 02:52 PM