Send ASCII characters via serial port

This is a discussion on Send ASCII characters via serial port within the C++ Programming forums, part of the General Programming Boards category; I would like to send ascii characters to a serial port LCD-display using C++ in a console application. How is ...

  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    11

    Send ASCII characters via serial port

    I would like to send ascii characters to a serial port LCD-display using C++ in a console application. How is this done in the simplest way possible?

    The best thing for me is if there is some free code to use in my application.

    OS: XP, VC++6

    Thanks,
    Kristian
    Last edited by xkrja; 09-14-2006 at 01:48 PM.

  2. #2
    Registered User
    Join Date
    Aug 2003
    Posts
    1,205
    STL Util a small headers-only library with various utility functions. Mainly for fun but feedback is welcome.

  3. #3
    Registered User
    Join Date
    Jan 2006
    Posts
    6

    Smile

    Hello,
    Are you still working on finding a solution? Personally, I am using a class that comes from "Serial Communications Developer's Guide" by Mark Nelson. I'll email you in private some files.

    The main method syntax is:
    m_ port = new Win32Port("COM2", 19200);
    status= m_port->read(buffer, qty_chars);
    status=m_port->write( buffer, qty_chars);
    Frank

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Serial Port Issues (again!)
    By HalNineThousand in forum Linux Programming
    Replies: 6
    Last Post: 04-09-2008, 08:26 PM
  2. HELP with storing serial port data into txt file
    By inmaterichard in forum C Programming
    Replies: 2
    Last Post: 04-02-2008, 02:20 AM
  3. need guidance to connect to serial port
    By gnychis in forum Linux Programming
    Replies: 1
    Last Post: 06-02-2005, 10:10 AM
  4. my serial port data reading program isn't working
    By gnychis in forum C Programming
    Replies: 5
    Last Post: 06-02-2005, 08:40 AM
  5. serial port still wont work
    By alcoholic in forum C++ Programming
    Replies: 6
    Last Post: 10-31-2001, 11:51 AM

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