
What I saw after running this the second time is important! Shutting the RPi down and starting it fresh, I ran the program the first time with the print("port Open? ", isOpen) and the program ran and ended well printing the 00 00 00 return after the MP3 finished playing only. I added print(" port ", ser.isOpen) in the read routine but how would I check to see if it thinks more devices are attempting to use the port? If the program fails to close the port when it ends properly, the next time it runs it think there are more devices accessing the port.Īlso, the documentation says to expect a status of AA 01 01 00 AC when MP3 has finished playing but the return appears to be 00 00 00, but the program is coded to accept the 00 00 00 to end.

I'm running this code on a Raspberry Pi 4.
