Serial Port Emulator for Mac OSX

6.3k views Asked by At

Are there any serial port emulator on Mac OSX? I'm working on a program controlling serial device (RS232) on Mac. I used to verify my program with com0com for serial device, but which is windows-only.

I have read this thread, but still in vain. MultiCom is not what I'm looking for. I need a software which creates/emulates virtual serial devices.

Thanks in advance for any help.

1

There are 1 answers

0
doizuc On BEST ANSWER

A way to emulate a serial device (RS232) on Mac that worked for me was by plugging an Arduino (it requires hardware yes, but can emulate many other devices). I use it to emulate more expensive sensors. This is a simple example of code from Arduino website slightly modified to print a statement continuously.

// the setup routine runs once
void setup() {
  // initialize serial communication at 9600 bits per second:
  Serial.begin(9600);
  // Wait for serial port to connect (Needed for native USB port only)
  while (!Serial) {
    ;
  }
}

// the loop routine runs over and over again forever:
void loop() {
  // Print a statement through Serial
  Serial.println("Hello world !");
  // Some delay
  delay(10);
}