rzbrk / PyVoiceRecognitionV3

Python class (driver) for the Elechouse Voice Recognition Module V3
GNU General Public License v3.0
0 stars 0 forks source link

Implement method "Set Power On Auto Load" (15) #17

Open rzbrk opened 2 years ago

rzbrk commented 2 years ago

Implement method "Set Power On Auto Load" (15), see: https://github.com/rzbrk/VoiceRecognitionV3#set-power-on-auto-load-15

rzbrk commented 2 years ago

The command "Set Power On Auto Load" allows to specify records that will be loaded to the recognizer directly when the module is powered. The command will take effect only after power cycling.

Tests show, that the command does not check if the records are trained. The command will executed with nominal response message but will have no effect after power cycling. The consequence is that no record will be automatically loaded to the recognizer and the module will not enter "recognition mode"

I don't like this behavior of the firmware. The Python driver already features the method check_record_train_status() to check the train status of a record. I plan to use this method to check the train status for every record specified when calling method set_power_on_auto_load(). In the case one record is not trained the method shall raise an error.

rzbrk commented 2 years ago

ToDos: