[Q] carbon, IO kit and serial port programming

Ask a Question related to Mac Programming, Design and Development.

  1. #1

    Default [Q] carbon, IO kit and serial port programming

    i'm looking for some OSX code that talks to a serial port.

    I've found some Apple sample code but that's for a modem and I wondered
    anyone could point me to some code that doesn't need modifying.

    Any help is greatly appreciated,


    tom
    tom Guest

  2. Similar Questions and Discussions

    1. Serial Port communication
      A Flex capabilities question...really could be what i'm looking :) really glad when my MD5 search came up with one result, tick one on the...
    2. Serial Port Problems
      I'm trying to send data over the serial port using PHP and Serproxy. I downloaded Serproxy from http://www.lspace.nildram.co.uk/freeware.html. From...
    3. pb with serial port
      Hello, I have a program that run under Sun. It sends on the serial port this kind of sequence: 02 00 0A 30 30 33 ... On the serial port, i...
    4. Serial Port and PHP Login
      Hello All, I have asked before about serial port programing with PHP and have gotten great advice and now I am stuck again. Okay here is my...
    5. Serial port programming
      Hallo, this is my first mail to the list. Here i have a program which communicates with the modem (/dev/ttyS0) and gets the output 'OK' on to the...
  3. #2

    Default Re: [Q] carbon, IO kit and serial port programming

    tom wrote:
    >i'm looking for some OSX code that talks to a serial port.
    You could always drop down to pure Posix and treat it like a file.
    The usual open/close/read/write will work, with some extras like 'fcntl'
    and 'termios'. Check the man pages, or get a Posix programming
    book from the library.


    Mike Guest

  4. #3

    Default Re: [Q] carbon, IO kit and serial port programming

    In article <bihc4v$ni4$1@bob.news.rcn.net>, Mike <mghall@enteract.com>
    wrote:
    > tom wrote:
    >
    > >i'm looking for some OSX code that talks to a serial port.
    >
    > You could always drop down to pure Posix and treat it like a file.
    > The usual open/close/read/write will work, with some extras like 'fcntl'
    > and 'termios'. Check the man pages, or get a Posix programming
    > book from the library.
    And make sure you follow the directions in Apple's documentation about
    not hard coding /dev/tty names into your program, but instead use the
    approved system calls to look them up at run-time.
    David Phillip Oster Guest

  5. #4

    Default Re: [Q] carbon, IO kit and serial port programming

    In article <jpdjajadiningrat-A4BD02.00594127082003@reader1.tiscali.nl>,
    tom <jpdjajadiningrat@yahoo.com> wrote:
    > i'm looking for some OSX code that talks to a serial port.
    >
    > I've found some Apple sample code but that's for a modem and I wondered
    > anyone could point me to some code that doesn't need modifying.
    >
    > Any help is greatly appreciated,
    >
    >
    > tom
    mike, david,

    thanks for the replies.

    I was also pointed to the AMSerial library:

    [url]http://www.harmless.de/cocoa.html[/url]


    Tom
    tom Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139