Bash, serial I/O and Arduino

后端 未结 10 2338
眼角桃花
眼角桃花 2020-12-23 18:53

So, I\'m in a bit over my head, and I feel like I\'m very close to a solution, but it\'s just not working quite yet. Here\'s my situation:

I\'m working with an Ardui

10条回答
  •  -上瘾入骨i
    2020-12-23 19:08

    There's also Apple's SerialPortSample command line tool that allows you to set arbitrary baud rates:

    // from: SerialPortSample/SerialPortSample.c
    // ...
    // Starting with Tiger, the IOSSIOSPEED ioctl can be used to set arbitrary baud rates
    // other than those specified by POSIX. The driver for the underlying serial hardware
    // ultimately determines which baud rates can be used. This ioctl sets both the input
    // and output speed. 
    // ...
    

    For more information see: http://www.arduino.cc/playground/Interfacing/Cocoa

    Another piece of Cocoa sample code that shows you how to talk to the Arduino microcontroller over a serial connection is objective-candarduino (hosted on Google code).

提交回复
热议问题