Please help
I am allways get error:
Could not get port identifier, maybe insufficient permissions. gnu.io.NoSuchPortException: null
What I did:
- Install OH2(2.3.0) on my Synology DS418
- Make all installation steps for serial connection(GitHub - openhab/openhab-syno-spk: openHAB Synology SPK Install Package). Create group, set permission on device, modify udev rules, change owner of lock dir. Also add
-Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB1
to karaf script - Install serial transport
- Install Modbus Binding
- Install openHAB MODBUS Transport Bundle
- set log TRACE …
- Create Thing : slave serial, /dev/ttyUSB1
- Create Poller for slave: holding register
But connection always could not created:
2018-06-20 22:04:46.106 [TRACE] [ing.ModbusSlaveConnectionFactoryImpl] - Created connection SerialConnection@7a70950e[portName=/dev/ttyUSB1,port=<null>] for endpoint ModbusSerialSlaveEndpoint@73a395c7[portName=/dev/ttyUSB1]
2018-06-20 22:04:46.108 [ERROR] [et.wimpi.modbus.net.SerialConnection] - Could not get port identifier, maybe insufficient permissions. gnu.io.NoSuchPortException: null
2018-06-20 22:04:46.110 [ERROR] [ing.ModbusSlaveConnectionFactoryImpl] - connect try 1/1 error: Could not get port identifier, maybe insufficient permissions. null. Connection SerialConnection@7a70950e[portName=/dev/ttyUSB1,port=<null>]. Endpoint ModbusSerialSlaveEndpoint@73a395c7[portName=/dev/ttyUSB1]
2018-06-20 22:04:46.111 [ERROR] [ing.ModbusSlaveConnectionFactoryImpl] - re-connect reached max tries 1, throwing last error: Could not get port identifier, maybe insufficient permissions. null. Connection SerialConnection@7a70950e[portName=/dev/ttyUSB1,port=<null>]. Endpoint ModbusSerialSlaveEndpoint@73a395c7[portName=/dev/ttyUSB1]
2018-06-20 22:04:46.112 [ERROR] [ing.ModbusSlaveConnectionFactoryImpl] - Error connecting connection SerialConnection@7a70950e[portName=/dev/ttyUSB1,port=<null>] for endpoint ModbusSerialSlaveEndpoint@73a395c7[portName=/dev/ttyUSB1]: Could not get port identifier, maybe insufficient permissions. null
java version:
java version "1.8.0_172"
Java(TM) SE Runtime Environment (build 1.8.0_172-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.172-b11, mixed mode)
DS418
Realtek RTD1296 SoC
DSM 6.1.7-15284