Skip to content

Commit cf6f2cf

Browse files
authored
Update README.md
1 parent e77d1aa commit cf6f2cf

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

README.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -291,18 +291,20 @@ Serial Port to be setup as `9600 baud, 8 bit, no partity, 1 stop bit`. Must be s
291291
Additional expected similar solutions could be constructed from USR-TCP232-306, USR-TCP232-304 connected directly to the control panel or
292292
USR-TCP232-302 conected to an existing JA-80T serial cable.
293293
294-
Another solution for remote usage could be via the use of USBIP that needs to be installed on the server (jablotron alarm side) and the client (homeassistant running this repo.)
294+
Another solution for remote usage could be via the use of a tool called ```usbip``` that needs to be installed on the server **(jablotron alarm side)** and the client **(homeassistant running this repo.)**
295295
296-
Using the following command on the server to check if (in this case JA-82T) is visible:
296+
First using the following command ```dmesg | grep hid``` on the **server** to check if (in this case JA-82T) is visible:
297297
```
298-
dmesg | grep hid
299-
300298
[8740307.349070] hid-generic 0003:16D6:0007.0002: hiddev96,hidraw0: USB HID v1.11 Device [JABLOTRON ALARMS JA-82T PC Interface] on usb-0000:01:00.0-1.3/input0
301299
```
302-
Now we know the device we are looking for is hidraw0 and the ID **16D6:0007** the id can also be optained if the command ```lsusb``` is executed
300+
Now we know the device we are looking for is hidraw0 and the ID **16D6:0007**, by the way the ID can also be optained if the command ```lsusb``` is executed
301+
```
302+
Bus 001 Device 013: ID 16d6:0007 JABLOCOM s.r.o. JA-82T PC Interface
303+
```
304+
305+
As stated installation of usbip needs to be done on the **Server** and **CLient**
303306
304-
Installation of usbip needs to be done on the **CLient** and **Server** via:
305-
After the above command on the Server execute:
307+
Server:
306308
```
307309
sudo apt install usbip hwdata usbutils
308310
modprobe usbip_host
@@ -326,28 +328,29 @@ ExecStop=/bin/sh -c "/usr/sbin/usbip unbind --$(/usr/sbin/usbip list -p -l | gre
326328

327329
[Install]
328330
WantedBy=multi-user.target
331+
329332
```
330333
Only change the #usbid=16d6:0007# if necessary.
331334
Save the file and execute:
332-
333335
```
334336
# reload systemd, enable, then start the service
335337
sudo systemctl --system daemon-reload
336338
sudo systemctl enable usbipd.service
337339
sudo systemctl start usbipd.service
338340
```
339341
The server setup is now complete, move over to the client
342+
343+
Client:
340344
```
341345
sudo apt install usbip hwdata usbutils
342346
modprobe vhci-hcd
343347
echo 'vhci-hcd' >> /etc/modules
344-
```
345-
Much like we did on the server, we’re going to need to modify the ExecStart and ExecStop lines below to search for the correct USB device ID that’s being presented by your USB/IP server. Likewise, change the IP 192.168.0.10 to match your USB server.
346348

347-
```
349+
# Create a systemd service
348350
nano /lib/systemd/system/usbip.service
349351
```
350352
353+
Much like we did on the server, we’re going to need to modify the ExecStart and ExecStop lines below to search for the correct USB device ID that’s being presented by your USB/IP server. Likewise, change the IP 192.168.0.10 to match your server.
351354
```
352355
[Unit]
353356
Description=usbip client
@@ -361,8 +364,8 @@ ExecStop=/bin/sh -c "/usr/sbin/usbip detach --port=$(/usr/sbin/usbip port | grep
361364

362365
[Install]
363366
WantedBy=multi-user.target
364-
365367
```
368+
366369
Save that file, then run the following commands in your shell:
367370
368371
```
@@ -381,7 +384,6 @@ For Docker users we need to add the following to the docker_compose file to enab
381384
devices:
382385
- /dev/hidraw0
383386
384-
385387
## Troubleshooting
386388
387389
Additional logging can be enabled in configuration.yaml

0 commit comments

Comments
 (0)