Skip to content

Application Suite States

Bryan Jones edited this page Dec 9, 2023 · 1 revision

States

Off

Raspberry Pi

  • is off or Controller.py not running

Arduino

  • is off or not connected

Initializing

Raspberry Pi

  • Controller.py is running, services are initializing

Arduino

  • is off or not connected

Searching

Raspberry Pi

  • is scanning BLE advertisements
  • waits until it finds "Game Table Controller" advertisement.

Arduino

  • Advertising BLE service
  • waits until connected (?) ** Looking at the code, it (right now) might be just that it hangs until the bleUART service is connected?

Connecting

RPi

  • Connects to Arduino device
  • Initializes UART service

Arduino

  • Connects to RPI
  • Calls connect_callback

Clone this wiki locally