Troubleshoot

Bluetooth Error

Bluetooth Error

_bluetooth.error: (98, 'Address already in use')


Solution

This error indicates that there is an existing bluetooth connection on the Ev3 Brick. Execute this command to identify the process and terminate it:

  • ps aux | grep mission - identify the pid
  • sudo kill -9 pid

Mission 2: Music Not Playing

Make sure music being played comes from Amazon Music. I ran into issues when the music played, but the robot did not dance. I later realized that I was playing Spotify and code needs to come from Amazon Music.

Switch To Another Echo Device

To put the Ev3 Brick into pairing mode again, you can use the --clear --pair commands. For example:

  • sudo python3 mission-02.py --clear --pair
  • note that the --pair command is needed. Without this, the program will clear the bluetooth connection data and terminates.