Skip to content
This repository was archived by the owner on Aug 25, 2020. It is now read-only.
This repository was archived by the owner on Aug 25, 2020. It is now read-only.

Warning if user has insufficient rights to connect to device #119

@danbim

Description

@danbim

From the logs:

2012-05-02 13:34:43,125 | DeviceObserver-Thread 0        | AbstractSerialPortConnection   | WARN  | Port /dev/ttyUSB3 not found.
2012-05-02 13:34:43,236 | DeviceObserver-Thread 0        | AbstractSerialPortConnection   | WARN  | Port /dev/ttyUSB3 not found.
2012-05-02 13:34:43,345 | DeviceObserver-Thread 0        | AbstractSerialPortConnection   | WARN  | Port /dev/ttyUSB3 not found.
2012-05-02 13:34:43,457 | DeviceObserver-Thread 0        | AbstractSerialPortConnection   | WARN  | Port /dev/ttyUSB3 not found.
2012-05-02 13:34:43,583 | DeviceObserver-Thread 0        | AbstractSerialPortConnection   | WARN  | Port /dev/ttyUSB3 not found.
2012-05-02 13:34:43,692 | DeviceObserver-Thread 0        | AbstractSerialPortConnection   | WARN  | Port /dev/ttyUSB3 not found.
2012-05-02 13:34:43,805 | DeviceObserver-Thread 0        | AbstractSerialPortConnection   | WARN  | Port /dev/ttyUSB3 not found.
2012-05-02 13:34:43,917 | DeviceObserver-Thread 0        | AbstractSerialPortConnection   | WARN  | Port /dev/ttyUSB3 not found.
2012-05-02 13:34:44,027 | DeviceObserver-Thread 0        | AbstractSerialPortConnection   | WARN  | Port /dev/ttyUSB3 not found.
2012-05-02 13:34:44,137 | DeviceObserver-Thread 0        | AbstractSerialPortConnection   | WARN  | Port /dev/ttyUSB3 not found.

If a user is not part of group "dialout" he will only get the error messages displayed above which is not really helping to find the root cause. It might be possible to check for the file rights in order to determine if the users rights are sufficient before actually trying to connect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions