aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThéo de la Hogue2022-10-09 13:32:25 +0200
committerThéo de la Hogue2022-10-09 13:32:25 +0200
commita07ed9e7561c0e10f7d8363f7123881548e02590 (patch)
treeeaa1ea90590e96e444a6dd1da3c98cb16bc97d1b
parentc65f157341e2d0afee88d462c819e660d46c683b (diff)
downloadargaze-a07ed9e7561c0e10f7d8363f7123881548e02590.zip
argaze-a07ed9e7561c0e10f7d8363f7123881548e02590.tar.gz
argaze-a07ed9e7561c0e10f7d8363f7123881548e02590.tar.bz2
argaze-a07ed9e7561c0e10f7d8363f7123881548e02590.tar.xz
Documenting Tobii connexion under linux.
-rw-r--r--src/argaze/TobiiGlassesPro2/README.md42
1 files changed, 28 insertions, 14 deletions
diff --git a/src/argaze/TobiiGlassesPro2/README.md b/src/argaze/TobiiGlassesPro2/README.md
index 4d8e9a2..4ec4721 100644
--- a/src/argaze/TobiiGlassesPro2/README.md
+++ b/src/argaze/TobiiGlassesPro2/README.md
@@ -9,15 +9,39 @@ Print **A4_calibration_target.pdf** onto A4 paper sheet to get calibration targe
## Local network configuration
-If the tobii Glasses aren't connected to a router, here is how to configure a local DHCP server to enable device connection.
+If the tobii Glasses aren't connected to a router, here is how to configure a local DHCP server to enable IPv4 device connection.
+
+### Linux (Ubuntu)
+
+* Setup static eth0 interface
+
+**/etc/network/interfaces**
+
+```
+auto eth0
+iface eth0 inet static
+ address 192.168.1.1
+ netmask 255.255.255.0
+ network 192.168.1.0
+ gateway 192.168.1.254
+```
* Install DHCP server:
+
```
-brew install isc-dhcp
+sudo apt-get install isc-dhcp
```
* Setup DHCP server:
+**/etc/init.d/isc-dhcp-server**
+
+```
+# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
+INTERFACESv4="eth0"
+INTERFACESv6=""
+```
+
**/usr/local/etc/dhcpd.conf**
```
@@ -56,6 +80,7 @@ host tobiiglasses { hardware ethernet 74:fe:48:34:7c:92; fixed-address 192.168.1
Replace 74:fe:48:34:7c:92 by the correct MAC address.
* Setup USB LAN Interface:
+
```
ip: 192.168.1.1
subnet: 255.255.255.0
@@ -63,18 +88,7 @@ router: 192.168.1.254
```
* Monitor DHCP server activity:
-```
-sudo log stream --info --debug --predicate "process == 'dhcpd'"
-```
-
-* On Mac: Launch Tobii glasses interface to enable USB LAN Interface before to launch DHCP server.
-
-* Launch DHCP server:
-```
-sudo /usr/local/sbin/dhcpd
-```
-* Kill DHCP server:
```
-sudo kill `cat /usr/local/var/dhcpd/dhcpd.pid`
+journalctl | grep -Ei 'dhcp'
```