Thread: beginner question about interfacing with a rs232 device.

  1. #1
    Registered User
    Join Date
    Aug 2011
    Posts
    1

    beginner question about interfacing with a rs232 device.

    I'm a total beginner in c++ and i want for my learning curve to write a little program to interface with an old tablet ( like wacom ) from my com2 port.

    i only need to read data from it, i alrready know the protocol. It sends 5 bytes, 1 is statuts and the other 4 are positions coordinates.
    basically i just want to write a little program that outputs : statuts = no pen/ pen near/ pen touching ( that s the only 3 status available ).
    x= x coordinate
    y= y coordinate

    i already basically figured out how to achieve this but my problem is that i have no clue about how setting up my program to recieve the data from the port. Is there a free simple serial library that i can use, just to open com2, set 19200 8,n,1 and then go to my main function ?

    thanks for any help.

  2. #2
    Registered User
    Join Date
    Aug 2010
    Location
    Poland
    Posts
    733

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple RS232 Question
    By ricky1981 in forum C++ Programming
    Replies: 11
    Last Post: 06-13-2011, 12:13 PM
  2. RS232 Pin Out question
    By WaterNut in forum Tech Board
    Replies: 2
    Last Post: 01-23-2007, 11:05 PM
  3. Interfacing a Simple Assembled Hardware device with the PC using C/C++
    By georgen in forum Networking/Device Communication
    Replies: 5
    Last Post: 02-28-2005, 01:52 AM
  4. Replies: 4
    Last Post: 06-30-2004, 03:11 PM
  5. help with image dll interfacing vb
    By brenton in forum Windows Programming
    Replies: 7
    Last Post: 10-26-2003, 06:28 AM