3

I'm trying to create a serial port in python. I'm going to use it to communicate with another program that is communicating via a serial port. the PySerial package seems fine but I can't get it working. I've looked eveywhere and every implementation is for linux. Can anyone help me create a COM port on windows and read/write to it?

1
  • There's a Windows backend for PySerial. Commented Oct 29, 2015 at 20:43

1 Answer 1

2

It is not possible to create a serial port in Python, because you need a special driver for this task. You can only call 3rd party utility (with the drivers) that will do it for you.

I would recommend to try the following utilities:

Com0Com: http://sourceforge.net/projects/com0com/

Virtual Null Modem: http://www.virtual-null-modem.com/

Sign up to request clarification or add additional context in comments.

2 Comments

problem is: Com0Com doesn't work( I get spamed with error codes) and Virtual Null Modem is a paid solution with a trial(I need a permanent solution) any other ideas?
Sorry, but Com0Com is the best free solution.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.