The aim of converting to Linux is to have a GUI system for some of my machines
whilst I am in the USA for a couple of years.
Part of this is having USB support for talking to Advantech Adam Industrial controllers.
I have two options.
1. I can use a Adam-4561 usb to Rs485 converter which has an instrinsic Prolific controller.
This allows me to open a COM port and send command strings that convert to RS485 and thus end up
getting to various other RS485 devices.
2. I can use Adam devices that directly control I/O, but have not investigated what the intrinsic controller is. (if any)
Reading hundreds of google pages on the subject, I see that the ports appear to be addressed as /dev/ttySn or /dev/ttyUSBn
Some versions of Linux are different then others.
Concluding that I can't just do the Dos/Windows thing and Open Com "COMn:38400,n,8,1,cs0,ds0,cd0,rs" For Binary As #CP
I tried to open a port using the samples I have seen.
Open Com "/dev/ttySn........
Open Com "ttyUSBn......
and tried these from 1 to 15, but none would open when I had my device connected.
Using usb port statement lsusb I get detail on all ports, but I can't see how that relates to enumerating the com port.
Assuming I recognise which Bus device is my Adam module (which I don't) How does this relate to setting up and opening a port ??dinosaur@jvp ~ $ lsusb
Bus 001 Device 002: ID 8087:8000 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 005: ID 04f2:b3f6 Chicony Electronics Co., Ltd
Bus 002 Device 004: ID 04f3:0261 Elan Microelectronics Corp.
Bus 002 Device 006: ID 0489:e04e Foxconn / Hon Hai
Bus 002 Device 002: ID 046d:c52f Logitech, Inc. Unifying Receiver
Bus 002 Device 008: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Disconnecting the USB Adam module and connecting a usb to RS232 converter changes the lsusb result
so at least I can recognise the converter Bus002 Device 009.dinosaur@jvp ~ $ lsusb
Bus 001 Device 002: ID 8087:8000 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 005: ID 04f2:b3f6 Chicony Electronics Co., Ltd
Bus 002 Device 004: ID 04f3:0261 Elan Microelectronics Corp.
Bus 002 Device 006: ID 0489:e04e Foxconn / Hon Hai
Bus 002 Device 002: ID 046d:c52f Logitech, Inc. Unifying Receiver
Bus 002 Device 009: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
By process of elimination I can see that the "Bus 002 Device 008: ID 10c4:ea60 Cygnal Integrated Products" must have been the
Adam device.
But still no idea as to how I can open that device.
Typing in "Prolific" or "PL2303" in the Software Manager doesn't give any result to show if a device driver is loaded
for that device.
Would really appreciate if someone could inform me of the proper procedure to
1. Identify the Port to be used.
2. How to convert the port information to a usable "Open Port" statement.
3. Allow me to identify if a device driver is installed to handle the device.
Regards