3 comments on “Serial Port Programming in Cocoa

  1. Tom,

    Out of curiosity, what kind of hardware device are you using to control the sprinklers? I’ve been thinking of a similar project, though I was planning to go with an Insteon or X10 device.

    I’d love to trade notes on Cocoa physical computing with you.

    Scott

  2. I tried AMSerialPort. It looks very complete. But my problem is, I’m used to programming a microcontroller (Parallax Propeller, 8 cores, awesome), where you continually poll the serial device and and process the bytes as they come in. But with AMSerialPort, it calls your controller as a delegate.

    I need to process incoming packets like $@####,#######,#####,###CR, where the $@ represent some header, and the ###’s are the values I’m reading. The values may be strings or binary values, depending on the throughput I need.

    This is easy to do with pre-existing Quartz Composer patches, but I’d prefer to make a real Cocoa app.

    Any ideas, or better yet, any pointers to an open source app that does something similar?

    thanks,

    Jay

  3. Jay
    Try having a look at the app that came with AMSerialPort. It polls the device and displays the results to the user. Playing around with this should give you some ideas.

    Tom

Comments are closed.