Solved

Serial Devices connections and responses

  • 26 January 2023
  • 3 replies
  • 3 views

We have a custom application that calls and polls telephone numbers using an analog modem on COM1 port. I would like to port this application to FME and I have been unable to find any native transfomers/readers/writer that can communicate with COM Port1.

 

Question:

  • Can FME natively communicate with COM Ports ?
  • If so, how is this done.
  • If not, any suggestions on how to make with work
icon

Best answer by daveatsafe 27 January 2023, 00:21

View original

3 replies

Userlevel 2
Badge +17

Hi @olly_egw​,

There are no FME readers or transformers that can communicate with the COM ports, but you could use the pySerial module within the PythonCreator transformer to activate the modem and return a feature for each call.

To install the pySerial module, please follow these steps:

https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Desktop/Workbench/Installing-Python-Packages.htm

The pySerial documentation can be found at https://pyserial.readthedocs.io/en/latest/

A good starting point for using the PythonCreator can be found at https://docs.safe.com/fme/html/fmepython/getting_started.html

Many thanks @daveatsafe​ .

Was hoping to have a no code solution; but was expecting a python outcome 👍

Userlevel 5
Badge +29

Thats a really cool use case!!

 

as with @daveatsafe​ my answer was python. One thing to consider is how are you going to do the polling? If you do it within the workbench you will constantly be using a license/engine. So it is probably better to set a schedule for every X minutes to run the process.

Reply