Skip to content

7. PiComm

SamVanderstraeten edited this page Jan 16, 2023 · 3 revisions

PiComm

The PiComm module enables you to control some parts of the car remotely, without the need to SSH and use a lot of commands every time again while running/testing your AI algorithms. Trust us, it will make your life easier.

Features

The current version of PiComm provides the following features:

  • Live camera view of the car
  • AI driving toggle
  • Remote control of the car via smartphone
  • Set car speed
  • Data recording toggle

First of all...

Make sure the pi-comm container is up and running. It should be OK if you first built the image and afterwards used docker-compose up -d, as instructed in the previous steps.

You can always run the docker ps -a command to check which containers are actively running at any moment. The pi_comm container should be shown in this list and it should be active for more than 10 seconds.

Using PiComm

The PiComm tool can be accessed via browser on http://<IP-adress of RPi>:5000 on any device that is connected to the same Wi-Fi as the RPi. When the RPi is connected to a mobile hotspot on your smartphone, you can access PiComm on your mobile device.

Known issues

This is the first year PiComm is added to the main repository of the RTTF car, so it is possible that some bugs occur. Feel free to let us know if you encounter any strange problems with it. If you also found a solution for them, let us know as well ;)

  • Sometimes it is possible that the PiComm bugs out, a fix for this is to clear the cookies and cache of the browser.
  • PiComm is meant to be used on your mobile device at this moment. Support for a more detailed fullscreen desktop version will be added in the future.