Hi All,

What is the Cocoa-fied way to communicate via a serial port?

Using a kext to support the Prolific PL2303 chip and a shell utility like cu, 
it is possible to communicate via many USB-based serial ports. (For those who 
need it, the kext is at sourceforge.net/projects/osx-pl2303.) I am writing a 
Cocoa app that needs to communicate interactively with a device using an 
in-house message protocol, as opposed to just sending a file across a link. (If 
it were the latter case, I would just spawn a process using NSTask and send the 
file across.)

I have written such an app under Windows before. In the .NET framework, there 
is a class SerialPort that makes it easy. You can do everything, including set 
the baud rate, parity, data bits, stop bits, etc.

I hope there is something similar in Cocoa (but I couldn't find it).

Thanks all,
Soong

ps, Since I mentioned the kext, I'd like to point out that if you use VMware 
Fusion, it is my experience that while this kext is loaded, a virtual machine 
cannot connect to the serial port. In this case, I unload the kext using 
kextunload, and then it works fine. There was a discussion about this at 
http://communities.vmware.com/message/1073355.



      
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to