You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-13Lines changed: 15 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -291,18 +291,20 @@ Serial Port to be setup as `9600 baud, 8 bit, no partity, 1 stop bit`. Must be s
291
291
Additional expected similar solutions could be constructed from USR-TCP232-306, USR-TCP232-304 connected directly to the control panel or
292
292
USR-TCP232-302 conected to an existing JA-80T serial cable.
293
293
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.)**
295
295
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:
297
297
```
298
-
dmesg | grep hid
299
-
300
298
[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
301
299
```
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**
303
306
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:
306
308
```
307
309
sudo apt install usbip hwdata usbutils
308
310
modprobe usbip_host
@@ -326,28 +328,29 @@ ExecStop=/bin/sh -c "/usr/sbin/usbip unbind --$(/usr/sbin/usbip list -p -l | gre
326
328
327
329
[Install]
328
330
WantedBy=multi-user.target
331
+
329
332
```
330
333
Only change the #usbid=16d6:0007# if necessary.
331
334
Save the file and execute:
332
-
333
335
```
334
336
# reload systemd, enable, then start the service
335
337
sudo systemctl --system daemon-reload
336
338
sudo systemctl enable usbipd.service
337
339
sudo systemctl start usbipd.service
338
340
```
339
341
The server setup is now complete, move over to the client
342
+
343
+
Client:
340
344
```
341
345
sudo apt install usbip hwdata usbutils
342
346
modprobe vhci-hcd
343
347
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.
346
348
347
-
```
349
+
# Create a systemd service
348
350
nano /lib/systemd/system/usbip.service
349
351
```
350
352
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.
0 commit comments