|
Re: How to automatically acquire *.SerialPort1.deviceFilename in.cfg file [message #1797007 is a reply to message #1796829] |
Wed, 24 October 2018 00:23  |
Eclipse User |
|
|
|
Hi,
What do You mean by "Port number"? The number at end of e.g. "/dev/ttyS3"?
If yes, then there's no automatic way from Titan's perspective. Titan can not guess which serial port to use for communication, and since these names are varied through different linux distributions we can not even guess which file descriptor to use under "/dev/" even if there's only one serial port connected.
The first step I would take to overcome this problem is to check why the name is changing. Why does the device get reconnected every time? If it is intentional, according to my experiences it gets the lowest available number.
A workaround could be to use a config file skeleton in which You replace the port name template from a shell script from a shell script before running the tests.
Lenard
|
|
|
Powered by
FUDForum. Page generated in 0.06796 seconds