connecting to a serial device?

This is a discussion on connecting to a serial device? within the Networking/Device Communication forums, part of the General Programming Boards category; urgend help needed here. I must programm an application that connects to a serial device (on openbsd this is /dev/utty0) ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,451
    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.
    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. 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

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