Audio equipment driving method and equipment based on AT command, storage medium and product

By adopting an online parameter debugging method based on AT commands in the audio device driver, the problems of complex audio device debugging process and high resource consumption in the prior art are solved, and fast and simple audio device debugging and flexible parameter adjustment are achieved.

CN119945904APending Publication Date: 2025-05-06SIMCOM WIRELESS SOLUTIONS SHANGHAI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411986355.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

The existing audio equipment driving methods rely on professional development environments, the debugging process is complex and resource consumption is high, making it difficult to achieve fast and simple audio equipment debugging, especially when temporarily replacing audio equipment, the parameters need to be readjusted.

Method used

The audio device driving method based on AT command is adopted, and the online parameter debugging is performed by issuing AT instructions by the host computer, obtaining the debugging results, determining the target parameters and solidifying them, and restarting the device to apply new parameters.

Benefits of technology

It enables quick and simple debugging of audio equipment without a professional development environment, improves debugging efficiency and flexibility, and reduces development costs and workload.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119945904A_ABST
    Figure CN119945904A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to the technical field of mobile communication, and discloses an audio equipment driving method and equipment based on an AT command, a storage medium and a product. According to the audio equipment debugging method and device, due to the fact that the upper computer directly achieves real-time online debugging of the audio equipment through the AT instruction, the audio equipment can be directly debugged in a complex equipment environment, the usability and flexibility of audio equipment debugging are improved, a professional debugging environment does not need to be set up to conduct debugging driving on the audio equipment, and the debugging efficiency is improved. According to the invention, the method does not need to depend on a professional development tool for development, so that the replaced audio equipment can be directly debugged when there is a need to temporarily replace the audio equipment, a software version does not need to be recompiled and published, the debugging workload and development cost are reduced, and the audio equipment driver debugging efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of mobile communication technology, and in particular to an audio device driving method, device, storage medium and product based on AT commands. Background Art

[0002] As a common device in the Internet of Things, audio devices need to rely on some professional development environments for driving before use, such as Android system, traditional FreeRTOS system and HarmonyOS. Development staff develop based on specific development and debugging environments and tools. During development, it is necessary to call the corresponding driver interface function according to different audio devices, and then put the written program into the SDK compilation environment for compilation, and then import the compiled result into the device for running and debugging, and finally form a new software version. And every time a new audio device driver is debugged, it is necessary to repeat the entire process of development and debugging, which consumes a lot of manpower and time costs; in addition, the solution architecture of audio device driver design is complex, resource consumption is high, and portability is poor. When it is necessary to temporarily replace the audio device and readjust the parameters, it is necessary to use a specific system or development environment. The adjustment of audio device driver parameters cannot be directly implemented in a simple and convenient way, and it depends on professional development staff to readjust and develop. Therefore, there is a need for an audio device driver method, device, storage medium and product based on AT commands to achieve quick and easy debugging of audio devices, so that when there is a need to temporarily replace the audio device, the replaced audio device can be directly debugged without relying on a professional development environment for development, thereby improving the efficiency of audio device driver debugging. Summary of the invention

[0003] The purpose of the embodiments of the present invention is to provide an audio device driving method, device, storage medium and product based on AT commands to achieve quick and simple debugging of audio devices, so that when there is a need to temporarily replace the audio device, the replaced audio device can be directly debugged without relying on a professional development environment for development, thereby improving the efficiency of audio device driver debugging.

[0004] To solve the above technical problems, an embodiment of the present invention provides an audio device driving method based on AT commands, which is applied to an audio device, comprising: obtaining an AT command issued by a host computer, wherein the AT command includes a to-be-executed function and a to-be-processed parameter for instructing the audio device to perform online parameter debugging; performing the online parameter debugging according to the AT command to obtain an online parameter debugging result; determining a target parameter to be solidified from the to-be-processed parameter according to the online parameter debugging result, and solidifying the target parameter; restarting the device, reading the target parameter and running the audio device according to the target parameter.

[0005] An embodiment of the present invention also provides an audio device driving method based on AT commands, which is applied to a service platform. The service platform includes an abstract interface and a preset AT instruction set. The AT instruction set integrates AT instructions for functions to be executed and parameters to be processed for instructing an audio device to perform online parameter debugging, and a parsing function of the AT instructions; the method includes: after successfully connecting to a host computer, obtaining information of the audio device and sending it to the host computer; obtaining a debugging instruction of the audio device from the host computer, obtaining an AT instruction to be issued according to the debugging instruction, and sending the AT instruction to be issued to the audio device.

[0006] An embodiment of the present invention further provides an audio device driving system based on AT commands, comprising: an AT instruction acquisition module, used to acquire an AT instruction issued by a host computer, wherein the AT instruction includes a to-be-executed function and a to-be-processed parameter for instructing the audio device to perform online parameter debugging; a parameter debugging module, used to perform the online parameter debugging according to the AT instruction and obtain an online parameter debugging result; a parameter solidification module, used to determine a target parameter to be solidified from the to-be-processed parameter according to the online parameter debugging result, and solidify the target parameter; and a restart module, used to restart the device, read the target parameter and run the audio device according to the target parameter.

[0007] An embodiment of the present invention also provides a device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned AT command-based audio device driving method.

[0008] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program, wherein the computer program implements the above-mentioned audio device driving method based on AT commands when executed by a processor.

[0009] An embodiment of the present invention further provides a computer program product, including computer instructions, which implement the above-mentioned audio device driving method based on AT commands when executed by a processor.

[0010] In the embodiment of the present invention, since the host computer directly implements real-time online debugging of the audio device through AT commands, the audio device can be directly debugged in a complex device environment, which improves the ease of use and flexibility of audio device debugging. There is no need to build a professional debugging environment to debug and drive the audio device, and there is no need to rely on professional development tools for development. Therefore, when there is a need to temporarily replace the audio device, the replaced audio device can be directly debugged without recompiling and releasing the software version, thereby reducing the debugging workload and development cost, and improving the efficiency of audio device driver debugging.

[0011] In addition, the online parameter debugging is performed according to the AT instruction to obtain the online parameter debugging result, including: parsing the AT instruction to obtain the function to be executed and the parameter to be processed; checking the parameter to be processed in the AT instruction; when the check result of the parameter to be processed is correct, determining the debugging function of the online parameter debugging according to the function to be executed; determining the debugging instruction according to the debugging function, and executing the execution process corresponding to the debugging instruction; after completing the execution process, using the result of the execution process as the result of the online parameter debugging.

[0012] In addition, the target parameters are solidified, including: writing the target parameters into a FLASH NVM file. By storing the debugged parameters into the local FLASH NVM file of the audio device, the parameters are permanently stored in the audio device, so that the debugged parameters of the audio device can be directly read and used after the next restart, reducing the process of re-debugging after restarting, and improving the efficiency of debug driving.

[0013] In addition, the reading of the target parameters and running the device according to the target parameters includes: reading the target parameters from the FLASHNVM file, and verifying the various device functions of the audio device according to the target parameters to obtain a verification result; when the verification result is a failure, obtaining the parameters to be processed online, checking the target parameters according to the parameters to be processed, and determining whether the target parameters are correct; when the target parameters are correct, re-executing the online parameter debugging according to the target parameters, solidifying the target parameters and restarting the device; when the target parameters are wrong, after checking the solidification process, re-executing the solidification of the target parameters and restarting the device.

[0014] In addition, the AT instruction also includes an instruction for indicating the acquisition of the manufacturer ID of the audio device; before the online parameter debugging is performed according to the AT instruction, the method also includes hardware detection, and the hardware detection includes: obtaining the connection status with the host computer; when the connection status is normal, receiving the acquisition instruction; obtaining the manufacturer ID according to the acquisition instruction, and sending the acquired manufacturer ID to the host computer; when the manufacturer ID acquisition fails, sending an indication of a hardware error to the host computer and re-performing hardware detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0016] Figure 1 This is the process of the audio device driving method based on AT commands provided in an embodiment of the present application Figure 1 ;

[0017] Figure 2 This is the process of the audio device driving method based on AT commands provided in an embodiment of the present application Figure 2 ;

[0018] Figure 3 This is the process of the audio device driving method based on AT commands provided in an embodiment of the present application Figure 3 ;

[0019] Figure 4 is a structural diagram of an audio device driving system based on AT commands provided in an embodiment of the present application;

[0020] Figure 5 It is a schematic diagram of the internal structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0021] Since audio device drivers rely on debugging in a professional development environment, and each time a new audio device driver is debugged, the entire development and debugging process needs to be repeated, which consumes a lot of manpower and time costs; in addition, the solution architecture of audio device driver design is complex, resource consumption is high, and portability is poor. When it is necessary to temporarily replace the audio device and readjust the parameters, a specific system or development environment is required. The audio device driver parameter adjustment cannot be directly implemented in a simple and convenient way, and it depends on professional development staff to readjust and develop. Therefore, an audio device driver method, device, storage medium and product based on AT commands are needed to quickly and easily debug audio devices.

[0022] To make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the embodiments of the present invention, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can be implemented. The division of the following embodiments is for the convenience of description, and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined and referenced with each other without contradiction.

[0023] An embodiment of the present invention relates to an audio device driving method based on AT commands, which can be applied to audio devices. The audio device driving method based on AT commands includes: obtaining an AT command issued by a host computer, the AT command including a to-be-executed function and a to-be-processed parameter for instructing the audio device to perform online parameter debugging; performing the online parameter debugging according to the AT command to obtain an online parameter debugging result; determining the target parameter to be solidified from the to-be-processed parameter according to the online parameter debugging result, and solidifying the target parameter; restarting the device, reading the target parameter and running the audio device according to the target parameter. Since the host computer directly implements real-time online debugging of the audio device through AT commands, the audio device can be directly debugged in a complex device environment, which improves the ease of use and flexibility of audio device debugging, and there is no need to build a professional debugging environment to debug and drive the audio device, nor is there any need to rely on professional development tools for development, so that when there is a need to temporarily replace the audio device, the replaced audio device can be directly debugged, without recompiling and releasing the software version, reducing the debugging workload and development cost, and improving the efficiency of audio device driver debugging. The implementation details of the audio device driving method based on AT commands according to an embodiment of the present invention are described in detail below. The following content is only provided for the convenience of understanding the implementation details and is not necessary for implementing the present solution.

[0024] like Figure 1 As shown, in step 101, an AT command sent by a host computer is obtained. The AT command includes a function to be executed and a parameter to be processed for instructing the audio device to perform online parameter debugging.

[0025] Specifically, AT is a standard instruction set for controlling communication modules. In the AT instruction set, AT stands for Attention. AT instructions start with AT, followed by specific commands, and are widely used in serial communications. AT is used to define the interaction rules between terminal devices and platforms (such as mobile stations, etc.). When the terminal device enters an AT instruction, the platform replies with a one-to-one result. AT instructions are transmitted to the audio device via an audio control bus. To debug audio peripherals through AT instructions, only audio devices, host computers, and UART lines or USB lines are required; the host computer can be a Windows PC or a Linux PC, connected to the audio device through the AT interface of the host computer device, and when the hardware connection is good, the audio device can be used by restarting the audio device after online debugging, without the need for a huge compilation environment and a complex development process to debug the audio device. Among them, the hardware connection between the host computer and the audio device includes the connection of control pins, communication interfaces, power interfaces, and clock lines, etc., which are not described in detail in this application.

[0026] In step 102, the online parameter debugging is performed according to the AT command to obtain the online parameter debugging result.

[0027] Specifically, the functions to be executed include: initialization, configuration, configuration saving, query, recording, playback, etc. It should be noted that the debugging function can be adjusted and developed accordingly according to the function of the audio device. The functions listed in this application are only used for illustration and do not limit the debugging function of the audio device. In addition, during the initialization process, the corresponding AT command for indicating initialization can be sent to the audio device according to the data sheet and initialization sequence provided by the manufacturer of the audio device to perform online parameter debugging.

[0028] In one embodiment, performing online parameter debugging according to the AT instruction to obtain the online parameter debugging result includes: parsing the AT instruction to obtain the function to be executed and the parameter to be processed; checking the parameter to be processed in the AT instruction; when the check result of the parameter to be processed is correct, determining the debugging function of the online parameter debugging according to the function to be executed; determining the debugging instruction according to the debugging function, and executing the execution process corresponding to the debugging instruction; after completing the execution process, using the result of the execution process as the result of the online parameter debugging.

[0029] Specifically, after the execution process is executed, the result of the execution process is obtained according to whether the execution process can be successfully executed. For example, when the functions to be executed are initialization, query, recording, and playback, the corresponding functions to be executed are executed and the execution status is further self-checked; if the execution process has been successfully completed, the result of the execution process is OK or normal; if the execution process has not been successfully completed, the result of the execution process is ERROR or failure. In a further implementation method, the result of the execution process is returned to the host computer to prompt the normal or abnormal operation of the device.

[0030] In step 103, target parameters to be solidified are determined from the parameters to be processed according to the online parameter debugging result, and the target parameters are solidified.

[0031] In one embodiment, the solidifying of the target parameters includes: writing the target parameters into a FLASH NVM file. By storing the debugged parameters into the local FLASH NVM file of the audio device, the parameters are permanently stored in the audio device, so that the debugged parameters of the audio device can be directly read and used after the next restart, reducing the process of re-debugging after restarting, and improving the efficiency of debugging and driving.

[0032] Specifically, during the boot process, according to the audio device ID stored in the NVM partition, the target parameters of the audio device driver corresponding to the audio device ID are loaded.

[0033] In step 104, the device is restarted, the target parameters are read, and the audio device is operated according to the target parameters.

[0034] In one embodiment, if Figure 2 As shown, the target parameter is read and the device is operated according to the target parameter, including: reading the target parameter from the FLASH NVM file, and verifying the various device functions of the audio device according to the target parameter to obtain the verification result; when the verification result is a failure, the pending parameter is obtained online, and the target parameter is checked according to the pending parameter to determine whether the target parameter is correct; when the verification result is successful, the audio device continues to operate according to the target parameter; when the target parameter is correct, the online parameter debugging is re-executed according to the target parameter, the target parameter is solidified and the device is restarted; when the target parameter is wrong, after checking the solidification process, the target parameter is solidified again and the device is restarted. When the online debugging is completed, the target parameters temporarily stored in the RAM space are solidified into the FLASH NVM file through the corresponding AT instructions. By checking the correctness of the target parameters after restarting, abnormalities in the parameter solidification link are avoided, and the stability after restarting is improved.

[0035] Specifically, during the verification process, the audio services of the audio device are executed, such as making a call, playing an audio file, and recording an audio file to the file system, and the service functions of the audio device are checked to see whether they are normal, so as to determine whether the current audio device can work normally. If not, the host computer is used to read the parameters of the current operating state of the audio device through AT instructions, and check whether the parameters of the current operating state are correct, so as to confirm whether the target parameters need to be further modified.

[0036] In one embodiment, the AT instruction also includes an instruction for indicating the acquisition of the manufacturer ID of the audio device; before performing the online parameter debugging according to the AT instruction, the method also includes hardware detection, and the hardware detection includes: obtaining the connection status with the host computer; when the connection status is normal, receiving the acquisition instruction; obtaining the manufacturer ID according to the acquisition instruction, and sending the acquired manufacturer ID to the host computer; when the manufacturer ID acquisition fails, sending an indication of a hardware error to the host computer and re-performing hardware detection.

[0037] Specifically, the host computer sends an instruction to obtain the manufacturer ID of the audio device through the audio control bus, and tries to obtain the manufacturer ID of the audio device. If the manufacturer ID of the audio device can be correctly obtained, it proves that the hardware connection of the audio device is good, and the next step of parameter debugging can be carried out; if the manufacturer ID of the audio device cannot be correctly obtained, the audio device will return an error prompt such as an error code to the host computer, and the host computer can further check the hardware connection by checking the returned error code, and reconnect and debug.

[0038] In the embodiments of the present invention, since the host computer directly implements real-time online debugging of the audio device through AT commands, the audio device can be directly debugged in a complex device environment, which improves the ease of use and flexibility of audio device debugging. There is no need to build a professional debugging environment to debug and drive the audio device, and there is no need to rely on professional development tools for development. Therefore, when there is a need to temporarily replace the audio device, the replaced audio device can be directly debugged without recompiling and releasing the software version, thereby reducing the debugging workload and development cost, and improving the efficiency of audio device driver debugging.

[0039] The steps of the above method are divided only for the purpose of clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent; adding insignificant modifications to the algorithm or process or introducing insignificant designs without changing the core design of the algorithm and process are all within the scope of protection of this patent.

[0040] In addition, the examples mentioned in the above embodiments can be freely combined, and any combination can be understood as an embodiment. The "embodiment" or "example" appearing in various positions in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It can be understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0041] In summary, specific embodiments of the subject matter have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or sequential order shown to achieve the desired results.

[0042] Another embodiment of the present invention relates to an audio device driving system based on AT commands, such as Figure 3 As shown, including:

[0043] The AT command acquisition module is used to acquire the AT command sent by the host computer, wherein the AT command includes a function to be executed and a parameter to be processed for instructing the audio device to perform online parameter debugging.

[0044] The parameter debugging module is used to perform the online parameter debugging according to the AT command to obtain the online parameter debugging result.

[0045] The parameter solidification module is used to determine the target parameters to be solidified from the parameters to be processed according to the online parameter debugging results, and solidify the target parameters.

[0046] The restart module is used to restart the device, read the target parameters and run the audio device according to the target parameters.

[0047] In addition, the AT command also includes an instruction for indicating the acquisition of the manufacturer ID of the audio device; the audio device driver system based on the AT command also includes a manufacturer ID acquisition module, which is used to perform hardware detection before the online parameter debugging is performed according to the AT command, and the hardware detection includes: obtaining the connection status with the host computer; when the connection status is normal, receiving the acquisition instruction; obtaining the manufacturer ID according to the acquisition instruction, and sending the acquired manufacturer ID to the host computer; when the manufacturer ID acquisition fails, sending an indication of a hardware error to the host computer and re-performing hardware detection.

[0048] In the embodiments of the present invention, since the host computer directly implements real-time online debugging of the audio device through AT commands, the audio device can be directly debugged in a complex device environment, which improves the ease of use and flexibility of audio device debugging. There is no need to build a professional debugging environment to debug and drive the audio device, and there is no need to rely on professional development tools for development. Therefore, when there is a need to temporarily replace the audio device, the replaced audio device can be directly debugged without recompiling and releasing the software version, thereby reducing the debugging workload and development cost, and improving the efficiency of audio device driver debugging.

[0049] It is not difficult to find that this embodiment is a system embodiment corresponding to the above method embodiment, and this embodiment can be implemented in conjunction with the above method embodiment. The relevant technical details mentioned in the above method embodiment are still valid in this embodiment, and in order to reduce repetition, they are not repeated here. Accordingly, the relevant technical details mentioned in this embodiment can also be applied in the above method embodiment.

[0050] It is worth mentioning that all modules involved in this embodiment are logic modules. In practical applications, a logic unit can be a physical unit, a part of a physical unit, or a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, this embodiment does not introduce units that are not closely related to solving the technical problem proposed by the present invention, but this does not mean that there are no other units in this embodiment.

[0051] Another embodiment of the present invention relates to an audio device driving method based on AT commands, which can be applied to a service platform, such as an AT command service platform. The service platform includes an abstract interface and a preset AT command set, wherein the AT command set integrates AT commands for instructing the audio device to perform online parameter debugging and parameters to be processed, and a parsing function of the AT command; Figure 4 As shown, the audio device driving method based on AT commands applied to the service platform includes:

[0052] Step 401, after successfully connecting to the host computer, obtain the information of the audio device and send it to the host computer;

[0053] Step 402: Obtain a debugging instruction of the host computer for the audio device, obtain an AT command to be issued according to the debugging instruction, and send the AT command to be issued to the audio device.

[0054] Specifically, the preset AT instruction set has defined multiple AT instructions required for audio device debugging. The AT instructions include all commands that can control and manage audio devices, such as audio device initialization instructions, audio device configuration instructions, audio service playback and recording operation instructions, and NVM file read and write instructions. The platform also has abstract interfaces corresponding to the basic operation interfaces of audio devices, such as audio device initialization init, power-off interface close, input configuration interface input, output configuration interface output, clock control interface clock, and sound mute interface. The AT instruction set also includes parsing functions and corresponding abstract interfaces for each AT instruction. The communication debugging of the audio device is realized through the abstract interface in the instruction set. For example, in a specific embodiment, when the audio device needs to be initialized, the audio device initialization instruction includes the power-on control of the audio device, and the initialization sequence can be issued through the I2C bus. In the audio device initialization instruction, the GPIO function interface of the platform is called to control the power on, and the I2C read and write function is called to send instructions and read data to the audio device driver.

[0055] In the embodiments of the present invention, since the host computer directly implements real-time online debugging of the audio device through AT commands, the audio device can be directly debugged in a complex device environment, which improves the ease of use and flexibility of audio device debugging. There is no need to build a professional debugging environment to debug and drive the audio device, and there is no need to rely on professional development tools for development. Therefore, when there is a need to temporarily replace the audio device, the replaced audio device can be directly debugged without recompiling and releasing the software version, thereby reducing the debugging workload and development cost, and improving the efficiency of audio device driver debugging.

[0056] Another embodiment of the present invention relates to an electronic device, such as Figure 5 As shown, it includes at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the audio device driving method based on AT commands as described above.

[0057] Among them, the memory and the processor are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors and memories together. The bus can also connect various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The data processed by the processor is transmitted on a wireless medium via an antenna, and further, the antenna also receives data and transmits the data to the processor.

[0058] The processor is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. Memory can be used to store data used by the processor when performing operations.

[0059] Another embodiment of the present invention relates to a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the above-mentioned embodiment of the audio device driving method based on AT commands is implemented.

[0060] That is, those skilled in the art can understand that all or part of the steps in the above method embodiments can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including a number of instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0061] Those skilled in the art will appreciate that the above embodiments are specific embodiments for implementing the present invention, and that in actual applications, various changes may be made in form and detail without departing from the spirit and scope of the present invention.

Claims

1. An audio device driving method based on AT commands, applied to an audio device, characterized in that: include: Obtaining an AT command issued by a host computer, wherein the AT command includes a function to be executed and a parameter to be processed for instructing the audio device to perform online parameter debugging; Perform the online parameter debugging according to the AT command to obtain the online parameter debugging result; Determine the target parameters to be solidified from the parameters to be processed according to the online parameter debugging result, and solidify the target parameters; Restart the device, read the target parameters and operate the audio device according to the target parameters.

2. The audio device driving method based on AT commands according to claim 1, characterized in that: The online parameter debugging is performed according to the AT command to obtain the online parameter debugging result, including: Parsing the AT command to obtain the function to be executed and the parameter to be processed; Checking the parameters to be processed in the AT command; When the check result of the to-be-processed parameter is correct, determining the debugging function of the online parameter debugging according to the to-be-executed function; Determine a debugging instruction according to the debugging function, and execute an execution process corresponding to the debugging instruction; After completing the execution process, the result of the execution process is used as the result of the online parameter debugging.

3. The audio device driving method based on AT commands according to claim 1, characterized in that: The solidifying the target parameters includes: writing the target parameters into a FLASH NVM file.

4. The audio device driving method based on AT commands according to claim 3, characterized in that: The step of reading the target parameter and operating the device according to the target parameter comprises: Reading the target parameters from the FLASH NVM file, and verifying various device functions of the audio device according to the target parameters to obtain verification results; When the verification result is a failure, the parameters to be processed are obtained online, and the target parameters are checked according to the parameters to be processed to determine whether the target parameters are correct; If the target parameters are correct, re-execute the online parameter debugging according to the target parameters, solidify the target parameters and restart the device; In the case where the target parameters are wrong, after checking the curing process, the target parameters are cured again and the device is restarted.

5. The audio device driving method based on AT commands according to claim 1, characterized in that: The AT command also includes an instruction for instructing to obtain the manufacturer ID of the audio device; Before performing the online parameter debugging according to the AT command, the method further includes hardware detection, and the hardware detection includes: Obtaining the connection status with the host computer; In a case where the connection state is normal, receiving the acquisition instruction; Acquire the manufacturer ID according to the acquisition instruction, and send the acquired manufacturer ID to the host computer; In the case where the manufacturer ID acquisition fails, a message indicating a hardware error is sent to the host computer and the hardware detection is performed again.

6. An audio device driving method based on AT commands, applied to a service platform, characterized in that: The service platform includes an abstract interface and a preset AT instruction set, wherein the AT instruction set integrates AT instructions for instructing the audio device to perform online parameter debugging, functions to be executed, parameters to be processed, and a parsing function of the AT instructions; The method comprises: After successfully connecting to the host computer, obtain the information of the audio device and send it to the host computer; Obtain a debugging instruction of the upper computer to the audio device, obtain an AT command to be issued according to the debugging instruction, and send the AT command to be issued to the audio device.

7. An audio device driver system based on AT commands, characterized in that: include: An AT command acquisition module, used for acquiring an AT command issued by a host computer, wherein the AT command includes a function to be executed and a parameter to be processed for instructing the audio device to perform online parameter debugging; A parameter debugging module, used to perform the online parameter debugging according to the AT command to obtain the online parameter debugging result; A parameter solidification module, used for determining a target parameter to be solidified from the parameters to be processed according to the online parameter debugging result, and solidifying the target parameter; The restart module is used to restart the device, read the target parameters and run the audio device according to the target parameters.

8. A device, characterized in that include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the audio device driving method based on AT commands as described in any one of claims 1 to 5, or the audio device driving method based on AT commands as described in claim 6.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the audio device driving method based on AT commands as described in any one of claims 1 to 5 is implemented, or the audio device driving method based on AT commands as described in claim 6.

10. A computer program product, characterized in that The method comprises computer instructions, which, when executed by a processor, implement the audio device driving method based on AT commands as claimed in any one of claims 1 to 5, or the audio device driving method based on AT commands as claimed in claim 6.