Software design¶
How does Chipintelli’s offline voice solution add command words or skills to the online cloud?¶
You can refer to the software development document in this document center to establish an account first. You can use standard cloud skills. To add new command words and skills, you need to consult the corresponding cloud service provider.
In the process of command word customization, if you exit customization and enter customization again next time, can you continue to customize the words that have not been defined?¶
Save the reg _ number variable in the custom code to the flash when exiting, and read it out from the flash when entering the custom code. When executing the customization again, it will continue to customize in the original state when exiting.
When PWM is used to modify the duty cycle for gradient control applications, sometimes a relatively long high or low level will cause the gradient cycle to be asynchronous. Is there any solution?¶
This problem can be synchronized before each ramp cycle update, and then the duty cycle is updated, for example, as follows:
When developing infrared applications, it is found that the PWM-related pins cannot be used normally to respond to interrupts. Is there any solution?¶
The problem may be that the program operates to enable and disable the general interrupt of GPIO1 in the process of receiving infrared data, which results in that the GPIO interrupt used by other functions such as keys is disabled in the process of receiving infrared data. If this is the case, it is necessary to remove the GPIO port interrupt disable state used by functions such as keys during infrared interrupt processing. Rather than simply disabling interrupts for the entire set of GPIOs.
Self-learning how to register or delete a certain command word?¶
The algorithm self-learning CI110x _ SDK _ ALG _ Application _ V1.4.6 and later versions now support the registration or deletion of a certain command word through the cmd _ ID, which can be realized through the following functions.
extern int send_regword_cmd_id(uint16_t cmd_id); ///< Switch the command word self-learning mode to the registration mode, and send the registration command word IDextern void cicwsl _ erase _ temp (int temp _ num); ///< delete mode, delete a registered command word, underlying interface
How does the user store a fixed bin of data and access the stored data?¶
The data to be saved can be made into a bin file, and pay attention to the serial number in front of the file name. Multiple bins can be sorted and named. The following is an example of one bin:
Gets the start address and data size of the stored bin file
Read the data of the desired length in the corresponding address