PDA

View Full Version : RS-232, Application development


Wolfgang
06-22-2004, 09:40 AM
Hello Developers,
I am newbie in this field. What do I have to do to to connect my Apple computer operating with Panther to a peripheral device such as a digital multimeter or any other device by a serial communication as RS-232. There is no "COM" connection so I first have made shure the hardware connection is ok and so far I added an adapter (USB->RS-232 from Keyspan). Then I have installed the driver software for this adapter.
The Software side: What else do I have to take into account? I want to write an application which does dataacquisition. Nevertheless the serial communication has to be managed as well..
I'd like to have a more general understanding to this field. What is your suggestion?


Who can help me with a tutorial, hints, examples, a.s.o.?
(I do programming in C++)

Thank you for any idea and help!

Wolfgang :( :) :) :)

Raven
06-22-2004, 09:43 AM
The problem is that Macs do not handle COM ports... That should be the first thing you have to look into... since as you say you have to code it as well.

yellow
06-22-2004, 09:53 AM
If you haven't already, you should register (for free) on http://developer.apple.com/, in there are tons and tons (and kilotons) of developer documentation. I can only assume that there are docs on how to hand USB/serial connections.

zed
06-22-2004, 10:29 AM
Well once you have the drive installed you should see a new device listed is /dev/

ls -l /dev/*usb*

will show it up... This is the standard serial port console which UNIX uses.. so anything that talks to serial will talk down this...

now that you have that you can go ahead and look for an application from the Linux world which does what you want and recompile it for Mac.

--Zed :cool: