I have a device that plugs into a USB port and provides a serial port. It's actually an RF device that acts like a serial port but transmits and receives the data over an RF link.
I've been successful using this device from a PC and controlled by an MFC C++ program. When I do that I reference the serial port using "COM0" (or COM5 or whatever COM port/USB plug the device is plugged into). And it works quite well. I can send and receive data via the "serial port" RF communications.
But now I'm trying to use this device on the Raspberry Pi, without success. I've installed the pySerial library and import it into my program. I use the serial.Serial() method to instantiate a serial port, passing in the "name" of the serial port. I came across one article that indicated I might have to use "/dev/ttyAMA0" as the port name. But that doesn't appear to work. It does indeed successfully instantiate the serial.Serial() object, but it doesn't appear to be communicating with the actual device I have plugged into USB 0. In fact, even when I DON'T have my device plugged in, the serial.Serial("/dev/ttyAMA0") method call succeeds. It appears as though there's some built in serial port on the Raspberry Pi.
HOW do I get access to my USB/Serial device? Do I use serial.Serial() method? What name do I use to reference the appropriate USB port?