Tympan / Tympan_Library

Arduino/Teensy Library for Tympan Open Source Hearing Aid
MIT License
116 stars 31 forks source link

During Startup, Now Resets BC127 Bluetooth Unit #60

Closed chipaudette closed 2 years ago

chipaudette commented 2 years ago

This pull request includes many small updates, but the primary change is that, upon starting the BC127 bluetooth module, the BC127 is now forced to do a hard reset back to its factory settings. This applies to both Tympan RevD and Tympan RevE. It applies to all BC127 firmware revisions that we work with (ie, V5.5 upward).

This code also includes the optional ability to increase the baudrate of the BC127, though the default behavior is to leave the baudrate at the factory setting 9600.

If one were to change the baudrate, the fact that this update to our library causes a hard reset of the BC127 means that it gracefully returns to the expected 9600 baud.