Thread: connecting to a serial device?

  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    9

    Question connecting to a serial device?

    urgend help needed here.

    I must programm an application that connects to a serial device (on openbsd this is /dev/utty0) the device itself will offer a vt100 compatible terminal.

    how can I open the device and read/write to it.

    currently I just open() it and try to read() characters but that does not work...


    any hints or ideas?

    thanks in advance!

    regards
    /christian

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Post what you tried to do
    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. Reading from serial device
    By chris24300 in forum Linux Programming
    Replies: 3
    Last Post: 06-16-2009, 01:53 PM
  2. Reading from a serial device
    By chris24300 in forum C Programming
    Replies: 2
    Last Post: 06-16-2009, 01:05 PM
  3. Talking to device over Serial: Write works, Read doesn't
    By theBishop in forum C Programming
    Replies: 2
    Last Post: 07-09-2008, 01:40 PM
  4. Replies: 4
    Last Post: 06-30-2004, 03:11 PM
  5. How to get device serial no/ID in C?
    By zahid in forum C Programming
    Replies: 5
    Last Post: 07-12-2002, 08:11 PM