From a07ed9e7561c0e10f7d8363f7123881548e02590 Mon Sep 17 00:00:00 2001 From: Théo de la Hogue Date: Sun, 9 Oct 2022 13:32:25 +0200 Subject: Documenting Tobii connexion under linux. --- src/argaze/TobiiGlassesPro2/README.md | 42 +++++++++++++++++++++++------------ 1 file 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' ``` -- cgit v1.1