From 6fe91fc7de6a4981e044bac47737bef3369d7f3c Mon Sep 17 00:00:00 2001 From: Jorge Pereira Date: Tue, 28 Sep 2021 00:47:35 +0100 Subject: [PATCH] Update rpyc.rst RPyC isn't working. Tried suggestion on #1359 but didn't work, found out that service needs to run as robot and host parameter is needed, as per #741 Also added suggestion for updating RPyC to match client versions --- docs/rpyc.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/rpyc.rst b/docs/rpyc.rst index 46a41d6..45b61c8 100644 --- a/docs/rpyc.rst +++ b/docs/rpyc.rst @@ -40,11 +40,12 @@ Install After=multi-user.target [Service] + User=robot Type=simple ExecStart=/usr/bin/rpyc_classic.py [Install] - WantedBy=multi-user.target" > rpyc-classic.service + WantedBy=multi-user.target" > rpyc-classic.service --host=0.0.0.0 sudo cp rpyc-classic.service /lib/systemd/system/ sudo systemctl daemon-reload @@ -106,6 +107,11 @@ Cons ==== * Latency will be introduced by the network connection. This may be a show stopper for robots where reaction speed is essential. * RPyC is only supported by python, it is *NOT* supported by micropython +* The version included with ev3dev is 3.3.0; if using a RPyC client on a desktop chances are there is a major difference, so it is + advisable to upgrade it: + - sudo apt-get install python3-pip + - sudo pip3 install rpyc + - sudo reboot References ==========