View previous topic :: View next topic |
Author |
Message |
franz2014
Joined: 12 Dec 2014 Posts: 4
|
Posted: Mon Dec 29, 2014 1:09 pm Post subject: accessing a serial line, is it possible? |
|
|
Is it possible to access a serial line (to communicate with a modem) with Python on OpenVMS?
Francesco |
|
Back to top |
|
 |
jescab
Joined: 28 Jan 2008 Posts: 254
|
Posted: Mon Dec 29, 2014 5:29 pm Post subject: |
|
|
Hi.
A "serial line" can be a few different things.
- A hardware serial ("COMx") port on the server itself.
- A serial port on a terminal server connected in the network.
I have used serial communication over a terminal server from
Python using the builtin telnet module. Works just fine. When
using our (Cobol) applications we first create a TNAnnnn: port
which is then opened from a C-subroutine.
I guess one could simply open a hardware (TTAn:) port
just as one would open a COMn: port on a Windows box,
but that is nothing I have tried. And if so, I guess one can
also open a similar TNAnnnn: device directly from Python.
If you want to run serial/RS232 equipment from VMS, I suggest
that you get something like a used Lantronix ETS8 or similar.
You get 8 ports and access to all RS232 options easily. |
|
Back to top |
|
 |
|