I am trying to create a virtual com port in python using pyserial on a raspberry pi to control a tinyg cnc microcontroller. The tinyG controller looks like it accepts plain text which can be sent through a serial connection if I can figure out how to link a usb cable to a virtual com port. "TinyG communicates over a single USB serial channel terminated by an FTDI chip (USB serial emulation)." This blurb is from the website. so I think I should be able to send serial data through the usb cable.
I have been trying setting up a com port on raspberry pi using " port = serial.Serial("/dev/ttyS0", baudrate = 115200) as well as path "/dev/ttyAMA0"
I got a few errors that said "raise Serial Exception("could not open port.....") etc. could not open port, no such file or directory: "/dev/ttyS0"