Alex Rivera | Logout

Virtual Serial Device in Python?

Asked 2010-02-18T19:59:31.163
60

I know that I can use e.g. pySerial to talk to serial devices, but what if I don't have a device right now but still need to write a client for it? How can I write a "virtual serial device" in Python and have pySerial talk to it, like I would, say, run a local web server? Maybe I'm just not searching well, but I've been unable to find any information on this topic.

Edit
Report

1 Answer

7

It may be easier to using something like com0com (if you're on Windows) to set up a virtual serial port, and develop on that.

answered 2010-02-18T20:14:42.520

Your Answer