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 pidsudo kill -9 pid
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.
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
--pair
command is needed. Without this, the program will clear the bluetooth connection data and terminates.