Появилась ошибка
```
pi@raspberrypi:~ $ sudo ot-ctl state
connect session failed: Connection refused
```
Проверяем как определился USB nrf52840
```
dmesg
```
```
[5012690.749220] usb 1-1.5: USB disconnect, device number 4
[5012693.345068] usb 1-1.5: new full-speed USB device number 5 using dwc_otg
[5012693.481060] usb 1-1.5: New USB device found, idVendor=1915, idProduct=cafe, bcdDevice= 1.00
[5012693.481083] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[5012693.481093] usb 1-1.5: Product: nRF528xx OpenThread Device
[5012693.481102] usb 1-1.5: Manufacturer: Nordic Semiconductor
[5012693.481110] usb 1-1.5: SerialNumber: DEF3C03D6CCA
[5012693.483079] cdc_acm 1-1.5:1.1: ttyACM1: USB ACM device
```
Смотрим статус агента
```
pi@raspberrypi:~ $ sudo service otbr-agent status
● otbr-agent.service - OpenThread Border Router Agent
Loaded: loaded (/lib/systemd/system/otbr-agent.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Wed 2022-08-17 12:06:57 BST; 4s ago
Process: 13539 ExecStartPre=service mdns start (code=exited, status=0/SUCCESS)
Process: 13545 ExecStart=/usr/sbin/otbr-agent $OTBR_AGENT_OPTS (code=exited, status=2)
Main PID: 13545 (code=exited, status=2)
CPU: 62ms
Aug 17 12:06:57 raspberrypi otbr-agent[13545]: [NOTE]-AGENT---: Backbone interface: wlan0
Aug 17 12:06:57 raspberrypi systemd[1]: otbr-agent.service: Failed with result 'exit-code'.
Aug 17 12:06:57 raspberrypi otbr-agent[13545]: [NOTE]-AGENT---: Radio URL: spinel+hdlc+uart:///dev/ttyACM0
Aug 17 12:06:57 raspberrypi otbr-agent[13545]: [NOTE]-AGENT---: Radio URL: trel://wlan0
Aug 17 12:06:57 raspberrypi otbr-agent[13545]: [INFO]-NCP-----: OpenThread log level changed to 4
Aug 17 12:06:57 raspberrypi otbr-agent[13545]: 58d.00:32:37.417 [C] Platform------: Init() at hdlc_interface.cpp:152: InvalidArgument
```
Меняем номера порта к которому подключен nrf52840
```
sudo vim /etc/default/otbr-agent
```
```
# Default settings for otbr-agent. This file is sourced by systemd
# Options to pass to otbr-agent
OTBR_AGENT_OPTS="-I wpan0 -B wlan0 spinel+hdlc+uart:///dev/ttyACM1 trel://wlan0"
OTBR_NO_AUTO_ATTACH=0
```