Self-mobile device voice file upgrading method and device and storage medium
By establishing an efficient communication link between the voice chip and the control end in the mobile device, the problem of voice data not being updated when the functional module is replaced is solved, and the rapid upgrade and efficient transmission of voice files are achieved.
Patent Information
- Application Number
- CN202311540534.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-16
- Publication Date
- 2025-04-25
AI Technical Summary
In the prior art, the voice data cannot be effectively updated and upgraded when the functional module is replaced by the mobile device.
Through the control terminal, the communication link with the voice chip is established, the current communication baud rate is identified and the data transmission rate is doubled, thereby achieving efficient upgrade of voice files.
It improves the transmission speed of voice upgrade files, significantly reduces the transmission time of voice upgrade files, and ensures timely update of voice data.
Smart Images

Figure CN119892628A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of self-equipment equipment, and in particular to a method, equipment and storage medium for upgrading a voice file of a self-equipment equipment. Background Art
[0002] At present, self-propelled equipment may include a body and different functional modules detachably connected to the body. Combining the body with the different functional modules can realize different functions such as mowing grass, sweeping snow, and blowing fallen leaves.
[0003] During the use of the mobile device, as the mobile device is replaced with different functional modules, the prompt voice, broadcast scene, playback control logic, etc. of the mobile device also change accordingly. As the business scenarios of the mobile device continue to increase, the voice data of the mobile device also needs to be updated and upgraded. However, there is currently no solution that can effectively update and upgrade the voice data when corresponding to different functional modules on the mobile device. Summary of the invention
[0004] Based on this, it is necessary to provide a method, device and storage medium for upgrading voice files from a mobile device to address the above technical problems, so as to solve the problem that the voice file package cannot be effectively updated and upgraded when the corresponding functional modules on the mobile device are different.
[0005] A method for upgrading a voice file from a mobile device, comprising:
[0006] After receiving the voice file upgrade instruction, the control end determines whether the voice function file corresponding to the function module in the mobile device needs to be upgraded;
[0007] If it is determined that the voice function file needs to be upgraded, the control end establishes a communication link with the voice chip of the mobile device;
[0008] The control end determines the current communication baud rate of the communication link through a preset baud rate identification strategy, and multiplies the communication baud rate to obtain the multiplied baud rate;
[0009] The control end obtains the voice upgrade file, and based on the multiplied baud rate, transmits and stores the voice upgrade file to the voice chip through the communication link to complete the voice file upgrade of the mobile device.
[0010] A self-equipped device comprises a control terminal, a voice chip and a functional module. The control terminal is communicatively connected to the functional module and can establish a communication connection with the voice chip via a communication link. The control terminal is used to execute the above-mentioned self-equipped device voice file upgrade method.
[0011] One or more readable storage media storing computer-readable instructions, when the computer-readable instructions are executed by one or more processors, enable the one or more processors to execute the above-mentioned method for upgrading voice files from a mobile device.
[0012] In the above-mentioned self-mobile device voice file upgrade method, device and storage medium, when the voice function file needs to be upgraded, the control end establishes a communication link with the voice chip, and determines the current communication baud rate of the communication link based on the preset baud rate recognition strategy, and then multiplies the communication baud rate to obtain the multiplied baud rate, and transmits the voice upgrade file based on the multiplied baud rate. Since a higher baud rate makes the data transmission rate faster, this embodiment transmits the voice upgrade file based on the multiplied baud rate, which improves the speed of voice upgrade file transmission and can greatly reduce the transmission time of the voice upgrade file. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0014] Figure 1 Schematic diagram of an application environment of a method for upgrading a voice file from a mobile device in one embodiment of the present invention;
[0015] Figure 2 It is a flow chart of a method for upgrading a voice file from a mobile device according to an embodiment of the present invention; DETAILED DESCRIPTION
[0016] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0017] The method for upgrading the voice file of the mobile device provided in this embodiment can be applied to Figure 1 In an application environment, a client communicates with a control terminal of a self-mobile device. The client includes but is not limited to various personal computers, laptops, smart phones, tablet computers, and portable wearable devices. The control terminal of the self-mobile device can be implemented with an independent main control chip or a main control chip composed of multiple chips.
[0018] In one embodiment, if Figure 2 As shown, a method for upgrading voice files from a mobile device is provided, and the method is applied in Figure 1 The control end of the mobile device is used as an example to illustrate, including the following steps S10-S40:
[0019] S10. After receiving the voice file upgrade instruction, the control end determines whether the voice function file corresponding to the function module in the mobile device needs to be upgraded.
[0020] Understandably, a self-moving device is an intelligent machine that can work semi-autonomously or fully autonomously. Here, the self-moving device includes but is not limited to a snow-sweeping robot, a lawn mowing robot, a leaf-blowing robot, etc. In the present invention, the self-moving device includes two hardware parts, a body and a functional module that can be detachably mounted on the body. The control end is installed in the body, which is mainly responsible for the internal operation of the self-moving device and for communicating with the outside (such as other terminals or servers other than the self-moving device). The control end is provided with a main control chip, such as a Pi chip. The functional module refers to a module for realizing the specified function of the self-moving device, including but not limited to a snow-sweeping module, a lawn mowing module, and a leaf-blowing module. For example, the snow-sweeping module can be used to clear snow. Depending on the needs, the functional modules of the self-moving device can be replaced to obtain a self-moving device with different functions. For example, the snow-sweeping module of the self-moving device is replaced with a lawn mowing module, and a lawn mowing self-moving device is obtained. The voice file upgrade instruction is used to indicate that the voice function file is upgraded. The voice file upgrade instruction can be generated when the user triggers the preset upgrade button, or it can be automatically generated when the functional module corresponding to the self-moving device is replaced, which is not limited here. A voice function file refers to a file containing voice data corresponding to a function module, wherein the voice data may be a prompt voice. Depending on the different working scenarios in which the function module corresponding to the self-mobile device needs to work (to realize the functions corresponding to the function module, such as the snow-clearing function), different function modules need to play different voice prompts through the voice data in the voice function file.
[0021] Understandably, in one embodiment, when the control end detects that the function module of the robot's self-mobile device has been replaced, a voice file upgrade instruction is generated. That is, after determining that the function module of the self-mobile device has been replaced, at this time, it is confirmed that the prompt voice, broadcast scene, and playback control logic need to be replaced accordingly. At this time, if the voice function file corresponding to the prompt voice has been upgraded before, the original voice function file needs to be upgraded accordingly. Therefore, a voice file upgrade instruction is automatically generated at this time. In this embodiment, the voice function file is upgraded when the function module is replaced and it is determined that the voice function file needs to be upgraded. The upgrade of the voice function file can be automatically realized when the function module is replaced, saving resources and time, and improving the efficiency of the voice upgrade file.
[0022] Understandably, in one embodiment, the control end may also send an information reading instruction to all configurable functional modules of the self-mobile device, and the information reading instruction is used to request to read the module identification of the functional module; when receiving the module identification fed back by any of the functional modules, the control end obtains the module information corresponding to the module identification. If the module information is inconsistent with the currently recorded historical module information (the module information of the functional module recorded after the last determination of functional module replacement), it can be determined that the functional module of the self-mobile device has been replaced, and the module information corresponding to the information reading instruction of the control end can be recorded as the module information of the latest functional module.
[0023] S20: If it is determined that the voice function file needs to be upgraded, the control end establishes a communication link with the voice chip of the mobile device.
[0024] It is understandable that the voice chip is used to store voice data and to make voice announcements based on the voice data. Therefore, the voice function files corresponding to the previously used voice data are stored in the voice chip, and the voice upgrade files to be upgraded will also be stored in the voice chip. The communication link is used to communicate between the control terminal and the voice chip, for example, to transmit voice data.
[0025] In one embodiment, the control end includes a USB peripheral module; in step S20, the control end establishes a communication link with a voice chip of a mobile device, including:
[0026] S201, the control end establishes a communication connection with the serial port chip through the USB peripheral module, and the serial port chip is in communication connection with the voice chip; the communication link refers to the serial port communication link established between the control end and the voice chip through the USB peripheral module and the serial port chip. It can be understood that the USB (Universal Serial Bus) peripheral module has a USB interface, through which a communication connection can be established with the serial port chip. The communication link refers to the serial port communication link established between the control end and the voice chip through the USB peripheral module and the serial port chip.
[0027] S30, the control end determines the current communication baud rate of the communication link through a preset baud rate identification strategy, and multiplies the communication baud rate to obtain a multiplied baud rate.
[0028] Understandably, the baud rate identification strategy is used to determine the current communication baud rate strategy of the communication link. Doubling processing refers to increasing the current communication baud rate by a certain multiple. For example, the current communication baud rate is 115200bps, and the voice chip recommends limiting the communication baud rate to 1Mbps. Because the communication upgrade process has a strict response mechanism and a better processing mechanism for communication loss, the voice chip's doubled baud rate can be set to 921600bps, increasing the communication rate by 8 times. Doubling processing can greatly improve the efficiency of data transmission and reduce the time for voice data upgrade.
[0029] S40, the control end obtains the voice upgrade file, and based on the multiplied baud rate, transmits and stores the voice upgrade file to the voice chip through the communication link to complete the voice file upgrade of the mobile device.
[0030] Understandably, the voice upgrade file refers to a file containing voice upgrade data. For example, if the A function module has a sub-function, the voice upgrade file may contain a prompt voice corresponding to the sub-function. Transmitting the voice upgrade file through a communication link with a high communication rate can reduce the transmission time of the voice upgrade file.
[0031] Preferably, after determining that the voice upgrade file transmission is completed, the multiplied baud rate can be reversely reduced to adjust the multiplied baud rate to the normal communication baud rate. For example, when the multiplied baud rate of the voice chip is set to a maximum of 921600bps, after determining that the voice upgrade file transmission is completed, the multiplied baud rate is adjusted to the normal communication baud rate of 115200bps to keep the voice chip working stably.
[0032] In steps S10-S40, when the voice function file needs to be upgraded, the control end establishes a communication link with the voice chip, and determines the current communication baud rate of the communication link based on the preset baud rate recognition strategy, and then multiplies the communication baud rate to obtain the multiplied baud rate, and transmits the voice upgrade file based on the multiplied baud rate. Since a higher baud rate makes the data transmission rate faster, the present embodiment transmits the voice upgrade file based on the multiplied baud rate, which improves the speed of voice upgrade file transmission and can greatly reduce the transmission time of the voice upgrade file.
[0033] In one embodiment, in step S10, that is, determining whether the voice function file corresponding to the function module needs to be upgraded, includes steps S101-S104:
[0034] S101. A control terminal obtains module information of a function module, where the module information includes a function type of the function module and current version information of a voice function file corresponding to the function type.
[0035] In one embodiment, in step S101, the control end obtains module information of the functional module, including:
[0036] S1011. The control end sends an information reading instruction to all configurable functional modules of the self-mobile device, and the information reading instruction is used to request to read the module identification of the functional module. It can be understood that the configurable functional module refers to a functional module that can be matched with the vehicle body. Generally, each functional module has a specific frequency band for receiving information. The information reading instruction sent by the control end can be issued by a radio station to issue a reading instruction to the frequency bands of all matching functional modules. The module identification refers to an identification used to identify the functional module, and each functional module has a uniquely identifiable identification. When a functional module is combined with the vehicle body, the functional module can receive the information reading instruction sent by the control end, and feedback its own module identification to the control end.
[0037] S1012, when receiving the module identification fed back by any of the functional modules, the control end obtains the module information corresponding to the module identification, and records the obtained module information as the module information of the functional module. In steps S1011 and S1012, information reading instructions are sent to all configurable functional modules at the same time to receive and obtain the module identification fed back by the functional module, which can improve the efficiency of module identification acquisition, and what is received is the module identification actively fed back by the functional module, which can ensure the accuracy of the module identification.
[0038] S102, the control end receives the upgrade version information of the voice upgrade file corresponding to the function type sent by the host computer;
[0039] S103, when the current version information does not match the upgraded version information, the control end determines that the voice function file corresponding to the function module needs to be upgraded;
[0040] S104: When the current version information matches the upgraded version information, the control end determines that the voice function file corresponding to the function module does not need to be upgraded.
[0041] Understandably, each functional module has corresponding module information. Among them, the module information includes but is not limited to the functional type of the functional module and the current version information of the voice function file corresponding to the functional type. Among them, the functional type includes mowing type, snow sweeping type, etc. Different functional types correspond to one or more different voice function files, and each voice function file has its own version information. The current version information refers to the version information of the voice upgrade file currently stored in the voice chip for use. Among them, the upgrade version information refers to the latest version of the voice upgrade file to be used by the functional module (that is, the latest version of the voice upgrade file corresponding to the functional module). The host computer can refer to a server for storing voice upgrade files and voice upgrade file related information. Generally, the voice upgrade file package can be uploaded through the network and stored in the host computer, and then the host computer sends the voice upgrade file package to the control end. Among them, the voice upgrade file package includes voice upgrade files of multiple functional types.
[0042] Specifically, when the current version information does not match the upgrade version information, it means that the voice function file corresponding to the function module is not the latest upgrade version, so the voice function file needs to be updated. When the current version information matches the upgrade version information, it means that the voice function file corresponding to the function module is already the latest upgrade version, so there is no need to update the voice function file.
[0043] In steps S101-S104, by comparing the current version information of the voice function file corresponding to the function type with the upgraded version information of the voice upgrade file, it is determined whether the voice function file corresponding to the function module needs to be upgraded. This can quickly and accurately determine whether the voice function file corresponding to the function module needs to be upgraded, thereby improving the accuracy of voice file upgrades.
[0044] In one embodiment, in step S30, the control end determines the current communication baud rate of the communication link through a preset baud rate identification strategy, including:
[0045] S301, the control end receives the byte information regularly sent by the voice chip through the communication link;
[0046] S302: The control end performs parsing processing according to the received byte information to obtain the current communication baud rate of the communication link.
[0047] It can be understood that the byte information includes at least one byte, which can be a fixed byte. Parsing processing refers to the process of parsing the content of the byte information or the transmission frequency of the signal to obtain the communication baud rate. For example, the byte information can be agreed upon in the communication protocol so that the voice chip regularly sends out fixed bytes before receiving the voice upgrade file to determine the current communication baud rate of the communication link. In this embodiment, by regularly sending byte information to determine the current communication baud rate of the communication link, the communication baud rate of the communication link can be determined in a timely and accurate manner.
[0048] In one embodiment, in step S30, the control end determines the current communication baud rate of the communication link by using a preset baud rate identification strategy, further comprising:
[0049] S303, the control end obtains a baud rate set, where the baud rate set includes multiple available baud rates;
[0050] S304, the control end selects an available baud rate from the baud rate set as a target baud rate according to a preset order, and sends a test signal to the voice chip through the communication link based on the target baud rate;
[0051] S305. When receiving the test success signal fed back by the voice chip in response to the test signal, the control end determines the target baud rate as the current communication baud rate of the communication link.
[0052] Understandably, the available baud rate refers to a commonly used baud rate that can be used for communication between the control terminal and the voice chip. The test signal refers to a signal sent by the control terminal to the voice chip through a communication link based on the target baud rate. The test signal is used to test whether the voice chip can receive the test signal at the target baud rate. If the voice chip can receive the test signal, the voice chip sends a signal indicating a successful test for the received test signal, that is, a test success signal. When the test is successful, it means that the target baud rate can be used as the communication baud rate between the control terminal and the voice chip.
[0053] In steps S301-S305, by testing multiple available baud rates, one or more communication baud rates that can be used for communication between the control end and the voice chip can be found, thereby ensuring the stability of communication between the control end and the voice chip.
[0054] In one embodiment, in step S40, the voice upgrade file is transmitted and stored in the voice chip through the communication link, including:
[0055] S401, performing data segmentation processing on the voice upgrade file to obtain a voice segmentation data set; the voice segmentation data set includes a plurality of voice segmentation data with the same data length after segmentation;
[0056] S402, the control end assigns a verification code to each of the voice segmentation data, and sends the voice segmentation data carrying the verification code to the voice chip through the communication link;
[0057] S403, after receiving the verification completion information associated with the verification code sent by the voice chip, confirming that the voice segmentation data corresponding to the verification code is successfully transmitted to the voice chip;
[0058] S404: When the verification completion information associated with the verification code sent by the voice chip is not received, confirm that the voice segmentation data corresponding to the verification code fails to be transmitted, and retransmit the voice segmentation data corresponding to the verification code.
[0059] Understandably, the amount of data contained in the voice upgrade file is generally large, and it is easy to encounter transmission failures such as mistransmission or some data errors during the transmission process, and it is difficult to find the cause of the transmission failure, so the voice upgrade file needs to be retransmitted, which greatly reduces the transmission efficiency. Therefore, it is necessary to split the voice upgrade file for transmission processing to reduce the amount of data that needs to be retransmitted and improve the accuracy and speed of data transmission.
[0060] The segmentation process refers to segmenting the voice upgrade file into multiple voice segmentation data with the same data length. Preferably, the voice upgrade file can be read in the form of a binary file, and the bytes of the binary file can be segmented with a fixed length to obtain independent frame bytes. If the length of the last frame at the end is missing, a zero-filling operation can be performed to ensure that the length of all frames is uniform.
[0061] The verification code is used to parse and verify whether the voice segmentation data meets the preset conditions, and to generate feedback information on whether the voice segmentation data has passed the verification. Among them, the preset conditions are pre-set conditions for verifying the voice segmentation data. Feedback information refers to information used to indicate whether the voice segmentation data has passed the verification. For example, the preset condition may be that the voice segmentation data contains the F character. When the voice segmentation data contains the F character, it means that the voice segmentation data has passed the verification, and verification completion information indicating that the voice segmentation data has passed the verification is generated. Otherwise, verification incomplete information is generated. For example, when the voice segmentation data passes the verification, verification completion information with a display information of 0x01 is returned. When the voice segmentation data fails to pass the verification, verification incomplete information with a display information of 0x02 is returned. And the feedback information is monitored to determine whether the voice segmentation data needs to be retransmitted. When the returned display information is 0x02, the voice segmentation data is retransmitted until the voice segmentation data is successfully transmitted, and the retransmission is stopped, and verification completion information is generated, and subsequent voice segmentation data is continued to be transmitted.
[0062] In steps S401-S404, the accuracy and speed of data transmission can be improved by segmenting the voice upgrade file before data transmission. At the same time, by adding a checksum to each voice segment data, the location of the transmission failure can be located in time when the transmission fails, and retransmission can be performed without retransmitting the entire file, thereby improving the speed of data transmission.
[0063] In one embodiment, before step S40, that is, before transmitting and storing the voice upgrade file to the voice chip through the communication link, the following steps are included:
[0064] S41, the control terminal obtains a preset naming rule corresponding to the functional module; the preset naming rule includes a plurality of first voice file identifiers, and the plurality of first voice file identifiers are sorted in a preset playback order;
[0065] S42, obtaining second voice file identifiers corresponding to all voice files in the voice upgrade file;
[0066] S43, matching the second voice file identifier with the first voice file identifier in the preset naming rule;
[0067] S44. After all the second voice file identifiers are successfully matched, each voice file is renamed according to the sequence number of each second voice file identifier corresponding to each first voice file identifier in the preset play order, so that after the voice upgrade file is stored in the voice chip, the voice chip can play the renamed voice files in sequence according to the preset play order.
[0068] It is understandable that different functional modules correspond to different naming rules. The preset naming rule refers to a pre-set naming rule. The first voice file identifier refers to the identifier of the voice file included in the preset naming rule. The second voice file identifier refers to the identifier of the voice file in the voice upgrade file. The second voice file identifier is matched with the first voice file identifier in the preset naming rule, and after the match is successful, the serial number of the playback order of each second voice file identifier can be obtained. Then, each voice file is renamed according to the serial number of each second voice file identifier in the preset playback order. For example, the first voice file identifier is S, and the second voice file identifier is XX. According to the preset naming rule, if the first voice file identifier S matches the second voice file identifier XX, the serial number M of the first voice file identifier S sorted according to the preset playback order is obtained as the serial number of the playback order of the second voice file identifier, and according to the serial number M, the voice file is renamed to 000M.mp3.
[0069] Generally, the voice chip identifies the playback file by the memory location, so reading and sorting the voice file name can ensure that the order in which the voice files are written into the memory follows the naming rules. Since the voice chip has the function of broadcasting the first audio file in the memory when powered on, all files can be renamed, and the designed startup music can be set as the first one. For example, if the format of all audio file names is set to a four-digit value, the startup music can be directly read and renamed to 0000.mp3. The subsequent music is sorted and renamed in order, and it can be ensured that the startup music played each time the power is turned on is the set audio.
[0070] In steps S41-S44, the voice files are sorted and renamed in the order of playing, which can ensure that the voice data played each time the mobile device is turned on is the set voice file.
[0071] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0072] In one embodiment, a self-mobile device is provided, which includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the self-mobile device is used to provide computing and control capabilities. The memory of the self-mobile device includes a readable storage medium and an internal memory. The readable storage medium stores an operating system, computer-readable instructions and a database. The internal memory provides an environment for the operation of the operating system and computer-readable instructions in the readable storage medium. The database of the self-mobile device is used to store data involved in the self-mobile device voice file upgrade method. The network interface of the self-mobile device is used to communicate with an external terminal through a network connection. When the computer-readable instructions are executed by the processor, a self-mobile device voice file upgrade method is implemented. The readable storage medium provided in this embodiment includes a non-volatile readable storage medium and a volatile readable storage medium.
[0073] In one embodiment, a self-mobile device is provided, which includes a control terminal, a voice chip and a functional module. The control terminal is connected to the functional module in communication, and the control terminal can establish a communication connection with the voice chip through a communication link. The control terminal is used to perform the following steps of the self-mobile device voice file upgrade method:
[0074] After receiving the voice file upgrade instruction, the control end determines whether the voice function file corresponding to the function module in the mobile device needs to be upgraded;
[0075] If it is determined that the voice function file needs to be upgraded, the control end establishes a communication link with the voice chip of the mobile device;
[0076] The control end determines the current communication baud rate of the communication link through a preset baud rate identification strategy, and multiplies the communication baud rate to obtain the multiplied baud rate;
[0077] The control end obtains the voice upgrade file, and based on the multiplied baud rate, transmits and stores the voice upgrade file to the voice chip through the communication link to complete the voice file upgrade of the mobile device.
[0078] In one embodiment, one or more computer-readable storage media storing computer-readable instructions are provided, and the readable storage media provided in this embodiment include non-volatile readable storage media and volatile readable storage media. The readable storage media stores computer-readable instructions, and when the computer-readable instructions are executed by one or more processors, the above-mentioned method for upgrading the voice file of the mobile device is implemented.
[0079] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through computer-readable instructions. The computer-readable instructions can be stored in a non-volatile readable storage medium or a volatile readable storage medium. When the computer-readable instructions are executed, they can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0080] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0081] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. A method for upgrading voice files from a mobile device, characterized in that: Applied to the control end of the mobile device, the voice file upgrade of the mobile device includes: After receiving the voice file upgrade instruction, the control end determines whether the voice function file corresponding to the function module in the mobile device needs to be upgraded; If it is determined that the voice function file needs to be upgraded, the control end establishes a communication link with the voice chip of the mobile device; The control end determines the current communication baud rate of the communication link through a preset baud rate identification strategy, and multiplies the communication baud rate to obtain the multiplied baud rate; The control end obtains the voice upgrade file, and based on the multiplied baud rate, transmits and stores the voice upgrade file to the voice chip through the communication link to complete the voice file upgrade of the mobile device.
2. The method for upgrading voice files of a mobile device according to claim 1, characterized in that: The step of determining whether the voice function file corresponding to the function module in the mobile device needs to be upgraded includes: The control end obtains module information of the function module, wherein the module information includes a function type of the function module and current version information of a voice function file corresponding to the function type; The control end receives the upgrade version information of the voice upgrade file corresponding to the function type sent by the host computer; When the current version information does not match the upgraded version information, the control end determines that the voice function file corresponding to the function module needs to be upgraded; When the current version information matches the upgraded version information, the control end determines that the voice function file corresponding to the function module does not need to be upgraded.
3. The method for upgrading voice files from a mobile device as claimed in claim 2, characterized in that: The control end obtains module information of the functional module, including: The control end sends an information reading instruction to all configurable functional modules of the mobile device, wherein the information reading instruction is used to request to read the module identification of the functional module; When receiving the module identification fed back by any of the functional modules, the control end obtains the module information corresponding to the module identification.
4. The method for upgrading voice files from a mobile device as claimed in claim 1, characterized in that: The control end includes a USB peripheral module; The control terminal establishes a communication link with the voice chip of the mobile device, including: The control end establishes a communication connection with the serial port chip through the USB peripheral module, and the serial port chip is communicated with the voice chip; the communication link refers to the serial port communication link established between the control end and the voice chip through the USB peripheral module and the serial port chip.
5. The method for upgrading voice files from a mobile device as claimed in claim 1, characterized in that: The control end determines the current communication baud rate of the communication link through a preset baud rate identification strategy, including: The control end receives the byte information regularly sent by the voice chip through the communication link; The control end performs parsing processing according to the received byte information to obtain the current communication baud rate of the communication link.
6. The method for upgrading voice files from a mobile device as claimed in claim 1, characterized in that: The control end determines the current communication baud rate of the communication link through a preset baud rate identification strategy, including: The control end obtains a baud rate set, wherein the baud rate set includes a plurality of available baud rates in a selection order; The control end selects an available baud rate from the baud rate set as a target baud rate according to a preset selection order, and sends a test signal to the voice chip through the communication link based on the target baud rate; When receiving the test success signal fed back by the voice chip in response to the test signal, the control end determines the target baud rate as the current communication baud rate of the communication link.
7. The method for upgrading voice files from a mobile device as claimed in claim 1, characterized in that: The transmitting and storing the voice upgrade file to the voice chip through the communication link includes: Performing data segmentation processing on the voice upgrade file to obtain a voice segmentation data set; the voice segmentation data set includes a plurality of voice segmentation data with the same data length after segmentation; The control end assigns a verification code to each of the voice segmentation data, and sends the voice segmentation data carrying the verification code to the voice chip through the communication link; After receiving the verification completion information associated with the verification code sent by the voice chip, confirming that the voice segmentation data corresponding to the verification code is successfully transmitted to the voice chip; When the verification completion information associated with the verification code sent by the voice chip is not received, it is confirmed that the voice segmentation data corresponding to the verification code fails to be transmitted, and the voice segmentation data corresponding to the verification code is retransmitted.
8. The method for upgrading voice files from a mobile device as claimed in claim 1, characterized in that: Before transmitting and storing the voice upgrade file to the voice chip via the communication link, the method includes: The control end obtains a preset naming rule corresponding to the functional module; the preset naming rule includes a plurality of first voice file identifiers, and the plurality of first voice file identifiers are sorted in a preset playback order; Obtain second voice file identifiers corresponding to all voice files in the voice upgrade file; Matching the second voice file identifier with the first voice file identifier in the preset naming rule; After all the second voice file identifiers are matched successfully, each voice file is renamed according to the sequence number of each second voice file identifier corresponding to each first voice file identifier in the preset playback order, so that after the voice upgrade file is stored in the voice chip, the voice chip can play the renamed voice files in sequence according to the preset playback order.
9. A self-propelled device, characterized in that: It includes a control terminal, a voice chip and a functional module. The control terminal is communicatively connected to the functional module. The control terminal can establish a communication connection with the voice chip through a communication link. The control terminal is used to execute the voice file upgrade method of a mobile device as described in any one of claims 1 to 8.
10. One or more computer-readable storage media storing computer-readable instructions, characterized in that When the computer-readable instructions are executed by one or more processors, the one or more processors execute the method for upgrading a voice file from a mobile device as described in any one of claims 1 to 8.