저는 AEOTEC Z-Stick Gen5(표준 RPi 설치)를 사용하여 Raspberry Pi 4GB에서 홈어시스턴트를 실행하고 있습니다. 시스템이 다른 방법으로는 USB 허브를 사용하지 않기 때문에 USB 허브에 연결되어 있습니다. "뭔가"가 직렬 포트를 점유하고 있으므로 잠겨 있어 Z-Wave JS UI를 사용할 수 없습니다.
이러한 메시지를 받았지만 무엇에 잠겨 있는지 알 수 없습니다.
2023-01-28 19:47:14.536 INFO Z-WAVE: Connecting to /dev/ttyAMA0
2023-01-29T03:47:14.538Z DRIVER version 10.4.0
2023-01-29T03:47:14.539Z DRIVER
2023-01-29T03:47:14.539Z DRIVER starting driver...
2023-01-29T03:47:14.542Z DRIVER opening serial port /dev/ttyAMA0
2023-01-29T03:47:23.550Z DRIVER Failed to open the serial port: Error Resource temporarily unavailable Cannot lock port
"lsof" 출력을 살펴보니 /dev/ttyAMA0 장치에 대한 언급이 없습니다. 대신 목록을 얻습니다.93개 공정여기에는 다음이 포함됩니다.
1 /package/admin/s6-2.11.1.2/command/s6-svscan 0 /dev/null
1 /package/admin/s6-2.11.1.2/command/s6-svscan 1 pipe:[19812]
1 /package/admin/s6-2.11.1.2/command/s6-svscan 2 pipe:[19813]
1 /package/admin/s6-2.11.1.2/command/s6-svscan 3 /run/service/.s6-svscan/lock
1 /package/admin/s6-2.11.1.2/command/s6-svscan 5 /run/service/.s6-svscan/control
1 /package/admin/s6-2.11.1.2/command/s6-svscan 6 /run/service/.s6-svscan/control
1 /package/admin/s6-2.11.1.2/command/s6-svscan 7 anon_inode:[signalfd]
15 /package/admin/s6-2.11.1.2/command/s6-supervise 0 /dev/null
15 /package/admin/s6-2.11.1.2/command/s6-supervise 1 pipe:[19812]
15 /package/admin/s6-2.11.1.2/command/s6-supervise 2 pipe:[19813]
15 /package/admin/s6-2.11.1.2/command/s6-supervise 3 /run/service/s6-linux-init-shutdownd/supervise/lock
15 /package/admin/s6-2.11.1.2/command/s6-supervise 4 /run/service/s6-linux-init-shutdownd/supervise/control
15 /package/admin/s6-2.11.1.2/command/s6-supervise 5 /run/service/s6-linux-init-shutdownd/supervise/control
15 /package/admin/s6-2.11.1.2/command/s6-supervise 6 anon_inode:[signalfd]
18 /package/admin/s6-linux-init-1.0.8.0/command/s6-linux-init-shutdownd 0 /dev/null
18 /package/admin/s6-linux-init-1.0.8.0/command/s6-linux-init-shutdownd 1 pipe:[19812]
18 /package/admin/s6-linux-init-1.0.8.0/command/s6-linux-init-shutdownd 2 pipe:[19813]
18 /package/admin/s6-linux-init-1.0.8.0/command/s6-linux-init-shutdownd 3 /run/service/s6-linux-init-shutdownd/fifo
.
.
.
이것은 나에게 전혀 의미가 없습니다. 더 나쁜 점은 "fixer"가 아무것도 반환하지 않는다는 것입니다!
실제로 장치/직렬 포트를 잠그는 프로세스를 확인하는 방법은 무엇입니까?