Upgrading method and system, intelligent musical instrument, mobile terminal and storage medium
By introducing a wireless hotspot module and main control chip into the smart musical instrument, and using a mobile terminal to establish a wireless local area network for the transmission and verification of upgrade data packets, the problems of complex upgrades and OTA upgrade failures in traditional smart guitars are solved, achieving convenient and efficient firmware upgrades.
Patent Information
- Application Number
- CN202511070858.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-31
- Publication Date
- 2025-11-18
AI Technical Summary
Traditional smart guitar upgrade methods are complex to operate, require professional technicians, and OTA upgrade technology is prone to failure due to fluctuations in wireless wide area networks.
By incorporating a wireless hotspot module within the smart musical instrument, a wireless local area network is established through short-range wireless communication between the mobile terminal and the smart musical instrument. Upgrade data packets are then obtained directly from the server, and the data packets are integrated and verified through the main control chip or functional sub-modules to achieve system upgrades.
This makes the firmware upgrade process for smart musical instruments more reliable, convenient, and efficient, reducing the risk of upgrade failure.
Smart Images

Figure CN120980071A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of musical instrument technology, and in particular to an upgrade method and system thereof, a smart musical instrument, a mobile terminal, and a storage medium. Background Technology
[0002] With the development of smart musical instruments, users have placed higher demands on their functionality and playability. Traditional smart guitar upgrade methods are complex and require professional technicians. Therefore, developing a convenient and efficient smart guitar upgrade system is particularly important.
[0003] Among related technologies, Over-The-Air (OTA) upgrade technology is used to upgrade the system of smart guitars. OTA upgrade technology is a technology that updates device software remotely via a wireless network. It requires no physical connection to the device; the smart instrument can connect to the internet via a wireless network and download upgrade data packages from a server to install the updates. However, this OTA upgrade technology, which downloads upgrade data packages and installs updates via a server, is prone to upgrade failures due to the large fluctuations in wireless wide area networks. Summary of the Invention
[0004] In view of this, this application aims to at least partially address one of the problems in the related art. Therefore, the purpose of this application is to provide an upgrade method and system thereof, a smart musical instrument, a mobile terminal, and a storage medium.
[0005] This application provides an upgrade method applied to a smart musical instrument. The smart musical instrument includes a wireless hotspot module, and is connected to a mobile terminal via short-range wireless communication. The mobile terminal is wirelessly connected to a server. The upgrade method includes: triggering the wireless hotspot module to start and create a wireless local area network (WLAN) based on a control command issued by the mobile terminal via the WLAN, enabling the mobile terminal to establish a wireless communication link with the smart musical instrument through the WLAN; and performing a system upgrade based on an upgrade data packet sent by the mobile terminal through the wireless communication link; wherein the upgrade data packet is obtained by the mobile terminal from the server.
[0006] In some embodiments, the intelligent musical instrument includes a main control chip and multiple functional sub-modules. The upgrade method further includes: receiving an upgrade data packet sent by the mobile terminal through the main control chip, and determining the ownership of the upgrade data packet based on the target object identifier of the upgrade data packet; if the upgrade data packet belongs to the main control chip based on the target object identifier, controlling the main control chip to perform its own integration and verification based on the upgrade data packet to complete the upgrade; if the upgrade data packet belongs to the functional sub-module based on the target object identifier, controlling the main control chip to transmit the upgrade data packet to the functional sub-module, and controlling the functional sub-module to perform integration and verification based on the upgrade data packet to complete the upgrade.
[0007] In some embodiments, the upgrade method further includes: obtaining a first upgrade result from the main control chip and / or receiving a second upgrade result from the functional submodule via the main control chip; and sending the first upgrade result and / or the second upgrade result to the mobile terminal via the main control chip.
[0008] This application also provides an upgrade method applied to a mobile terminal. The mobile terminal is connected to a smart musical instrument via short-range wireless communication. The smart musical instrument is equipped with a wireless hotspot module, and the mobile terminal is wirelessly connected to a server. The upgrade method includes: sending a control command to the smart musical instrument via the short-range wireless communication to trigger the wireless hotspot module to start and create a wireless local area network; establishing a wireless communication link with the smart musical instrument through the wireless local area network; sending a request to the server to send an upgrade data packet; receiving the upgrade data packet sent by the server; and sending the upgrade data packet to the smart musical instrument through the wireless communication link, thereby upgrading the smart musical instrument.
[0009] In some embodiments, the upgrade method further includes: dividing the upgrade data packet into multiple sub-data packets according to preset rules, with each sub-data packet containing multiple sub-packets; and sending the sub-packets one by one to the smart musical instrument via the wireless communication link at preset time intervals.
[0010] In some embodiments, the intelligent musical instrument includes multiple functional sub-modules, the number of sub-data packets corresponds to the number of functional sub-modules, and the preset time interval is determined by the time node of the sub-data packet requests sent sequentially according to the multiple functional sub-modules.
[0011] In some embodiments, the upgrade method further includes: receiving an upgrade completion signal from the smart musical instrument and uploading the upgrade completion signal to the server; receiving an upgrade success signal returned by the server and displaying that the smart musical instrument has completed the upgrade based on the upgrade success signal.
[0012] This application also provides a smart musical instrument. The smart musical instrument includes a wireless hotspot module, and is connected to a mobile terminal via short-range wireless communication. The mobile terminal is wirelessly connected to a server. The smart musical instrument includes a control module, which is used to: trigger the wireless hotspot module to start and create a wireless local area network (WLAN) based on a control command issued by the mobile terminal via the short-range wireless communication, enabling the mobile terminal to establish a wireless communication link with the smart musical instrument through the WLAN; and perform a system upgrade based on an upgrade data packet sent by the mobile terminal through the wireless communication link; wherein the upgrade data packet is obtained by the mobile terminal from the server.
[0013] This application also provides a mobile terminal. The mobile terminal is connected to a smart musical instrument via short-range wireless communication. The smart musical instrument has a built-in wireless hotspot module, and the mobile terminal is wirelessly connected to a server. The mobile terminal further includes a control unit, a data packet request unit, and a data packet receiving unit. The control unit is used to send control commands to the smart musical instrument via short-range wireless communication, triggering the wireless hotspot module to start and create a wireless local area network; and to establish a wireless communication link with the smart musical instrument through the wireless local area network. The data packet request unit is used to send a request to the server to send an upgrade data packet. The data packet receiving unit is used to receive the upgrade data packet sent by the server; and to send the upgrade data packet to the smart musical instrument through the wireless communication link, thereby upgrading the smart musical instrument.
[0014] This application also provides an upgrade system. The upgrade system includes a smart musical instrument, a mobile terminal, and a server. The smart musical instrument is equipped with a wireless hotspot module. The smart musical instrument and the mobile terminal are connected via short-range wireless communication, and the mobile terminal is wirelessly connected to the server. The mobile terminal sends a control command to the smart musical instrument to activate the wireless hotspot module via short-range wireless communication. The smart musical instrument triggers the wireless hotspot module to start and create a wireless local area network (WLAN) according to the control command, enabling the mobile terminal to establish a wireless communication link with the smart musical instrument through the WLAN. The mobile terminal obtains an upgrade data packet from the server and sends the upgrade data packet to the smart musical instrument through the wireless communication link. The smart musical instrument performs an upgrade based on the upgrade data packet.
[0015] This application also provides a non-volatile computer-readable storage medium containing a computer program, characterized in that, when the computer program is executed by one or more processors, it implements the upgrade method described in any of the above embodiments.
[0016] This application also provides a computer program product, characterized in that it includes a processor and a memory, wherein the processor is used to implement the upgrade method described in any of the embodiments.
[0017] The upgrade method of this application enables firmware upgrades of smart musical instruments through wireless local area network communication between a mobile terminal and the smart musical instrument, making the upgrade process more reliable, convenient, and efficient.
[0018] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0019] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein:
[0020] Figure 1 This is a flowchart illustrating an upgrade method for a smart musical instrument according to certain embodiments of this application.
[0021] Figure 2 This is a schematic diagram of the structure of a smart musical instrument according to certain embodiments of this application;
[0022] Figure 3 This is a schematic diagram of the structure of an upgrade system according to certain embodiments of this application;
[0023] Figure 4 This is a flowchart illustrating an upgrade method for a smart musical instrument according to certain embodiments of this application.
[0024] Figure 5 This is a schematic diagram of the structure of a smart musical instrument according to certain embodiments of this application;
[0025] Figure 6 This is a schematic diagram illustrating the interaction between a server, a mobile terminal, and a smart musical instrument in an upgraded system according to certain embodiments of this application.
[0026] Figure 7 This is a flowchart illustrating an upgrade method for a smart musical instrument according to certain embodiments of this application.
[0027] Figure 8 This is a flowchart illustrating the mobile terminal-side upgrade method according to certain embodiments of this application;
[0028] Figure 9 This is a schematic diagram of the structure of a mobile terminal according to some embodiments of this application;
[0029] Figure 10 This is a flowchart illustrating the mobile terminal-side upgrade method according to certain embodiments of this application;
[0030] Figure 11 This is a flowchart illustrating the mobile terminal-side upgrade method according to certain embodiments of this application. Detailed Implementation
[0031] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application.
[0032] In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance, or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the stated features. In the description of this application, "a plurality of" means two or more, unless otherwise explicitly specified.
[0033] In the description of this application, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation" and "connection" should be interpreted broadly, referring to fixed connections, detachable connections, or integral connections; mechanical connections, electrical connections, or connections that allow communication between components; direct connections or indirect connections through an intermediate medium; and connections within two components or interactions between two components. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances.
[0034] The following disclosure provides many different implementations or examples for carrying out different structures of this application. To simplify the disclosure, specific examples of components and arrangements are described below. Of course, these are merely examples and are not intended to limit the scope of this application. Furthermore, reference numerals and / or letters may be repeated in different examples; such repetition is for simplification and clarity and does not in itself indicate a relationship between the various implementations and / or arrangements discussed.
[0035] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application.
[0036] Please see Figure 1 and Figure 2This application provides an upgrade method for a smart musical instrument 100. The smart musical instrument 100 includes a wireless hotspot module 110. Please refer to... Figure 3 The intelligent musical instrument 100 is connected to the mobile terminal 200 via short-range wireless communication, and the mobile terminal 200 is wirelessly connected to the server 300. Upgrade methods include:
[0037] 01: The control command issued by the mobile terminal 200 in the form of short-range wireless communication triggers the wireless hotspot module 110 to start and create a wireless local area network, so that the mobile terminal 200 can establish a wireless communication link with the smart musical instrument 100 through the wireless local area network.
[0038] 02: The system is upgraded according to the upgrade data packet sent by the mobile terminal 200 through the wireless communication link; wherein, the upgrade data packet is obtained by the mobile terminal 200 from the server 300.
[0039] Please see Figure 2 and Figure 3 This application also provides a smart musical instrument 100. Steps 01 and 02 can be implemented by the smart musical instrument 100. The smart musical instrument 100 also includes a control module 120, and steps 01 and 02 can be implemented by the control module 120. That is, the control module 120 is used to: trigger the wireless hotspot module 110 to start and create a wireless local area network according to the control command issued by the mobile terminal 200 in the form of wireless short-range communication, so that the mobile terminal 200 establishes a wireless communication link with the smart musical instrument 100 through the wireless local area network; and perform system upgrades according to the upgrade data packets sent by the mobile terminal 200 through the wireless communication link; wherein the upgrade data packets are obtained by the mobile terminal 200 from the server 300.
[0040] Specifically, the wireless short-range communication method may include Bluetooth communication or other communication methods, and there are no restrictions here. The smart musical instrument 100 may be a smart guitar, a smart violin, or other electronic musical instrument, and there are no restrictions here. The mobile terminal 200 may be a mobile phone, computer, iPad, or other devices, and there are no restrictions here.
[0041] An application control program associated with the smart musical instrument 100 can be set on the mobile terminal 200. The application control program of the mobile terminal 200 is configured to establish a connection with the smart musical instrument 100 via Bluetooth Low Energy protocol, and to display the performance data transmitted by the smart musical instrument 100 in real time. It can also transmit relevant control commands operated by the user on the application control program to the smart musical instrument 100. For example, the smart musical instrument 100 can be a smart guitar, the mobile terminal 200 can be a mobile phone, and the application control program (APP) integrates a Bluetooth communication module. The user sends control commands to the smart guitar through the APP on the mobile phone, realizing the connection between the user and the main control chip on the smart guitar via Bluetooth.
[0042] Therefore, the upgrade method of this application can transmit the control command corresponding to the wireless access request issued by the user in the application control program to the smart musical instrument 100 via Bluetooth communication, so that the smart musical instrument 100 triggers the wireless hotspot module 110 to start and create a wireless local area network according to the control command, so that the mobile terminal 200 establishes a wireless communication link with the smart musical instrument 100 through the wireless local area network.
[0043] In specific embodiments, the control module 120 may include a main control chip, and the wireless hotspot module 110 may be built into the main control chip. After receiving the control command issued by the mobile terminal 200, the main control chip inside the smart musical instrument 100 can activate the built-in WiFi access point (AP) function to provide a connectable wireless local area network for the application control program of the mobile terminal 200. That is, the smart musical instrument 100 can provide a connectable WiFi hotspot for the mobile terminal 200.
[0044] Next, the mobile terminal 200 can send a Transmission Control Protocol (TCP) handshake command to the main control chip of the smart musical instrument 100, thereby establishing a wireless communication link after the mobile terminal 200 and the main control chip of the smart musical instrument 100 successfully establish a handshake. Understandably, the TCP three-way handshake is a three-way "greeting" between the mobile terminal 200 and the smart musical instrument 100 before formal communication, ensuring that both parties can send and receive data normally and preventing connection errors.
[0045] In other embodiments of this application, the wireless hotspot module 110 can also be externally connected to the main control chip. After receiving the control command issued by the mobile terminal 200, the main control chip 121 inside the smart musical instrument 100 can trigger the wireless hotspot module 110 inside the smart musical instrument 100 to start AP mode through a communication interface (such as UART) according to the control command, so as to provide a connectable wireless local area network for the application control program of the mobile terminal 200. That is, the smart musical instrument 100 can provide a connectable WiFi hotspot for the mobile terminal 200.
[0046] Next, the mobile terminal 200 can send a Transmission Control Protocol (TCP) handshake command to the main control chip of the smart musical instrument 100 via the wireless hotspot module 110, thus establishing a wireless communication link after the mobile terminal 200 and the main control chip of the smart musical instrument 100 successfully establish a handshake. Understandably, the TCP three-way handshake is a three-way "greeting" between the mobile terminal 200 and the smart musical instrument 100 before formal communication, ensuring that both parties can send and receive data normally and preventing connection errors.
[0047] Then, after establishing a wireless communication link between the mobile terminal 200 and the smart musical instrument 100, the smart musical instrument 100 can receive the upgrade data packet sent by the mobile terminal 200 through the wireless communication link, thereby completing the system upgrade. In other words, the upgrade method of this application can achieve firmware upgrades of the smart musical instrument 100 through WiFi wireless local area network communication between the application control program of the mobile terminal 200 and the main control chip inside the smart musical instrument 100.
[0048] Understandably, since the mobile terminal 200 and the smart musical instrument 100 transmit upgrade data packets via wireless local area network (LAN), the LAN is significantly superior to the WAN in terms of latency, bandwidth, and reliability. Therefore, in a LAN environment, the connection between the mobile terminal 200 and the smart musical instrument 100 is more stable, less susceptible to external interference, and the upgrade process of the smart musical instrument 100 is less prone to failure and easier to operate, making the upgrade process of the smart musical instrument 100 more reliable, convenient, and efficient.
[0049] The upgrade data packet is obtained by the mobile terminal 200 from the server 300. This means that, since the mobile terminal 200 and the server 300 are wirelessly connected (the wireless communication method could include a wide area network or long-distance wireless communication), the user can send an upgrade data packet delivery request to the server 300 via the mobile terminal 200. Then, the server 300 sends the upgrade data packet to the mobile terminal 200 based on this request.
[0050] Thus, the upgrade method of this application can achieve firmware upgrade of the smart musical instrument 100 through wireless local area network communication between the mobile terminal 200 and the smart musical instrument 100, making the upgrade process of the smart musical instrument 100 more reliable, convenient and efficient.
[0051] Please see Figure 4 and Figure 5 In some embodiments, the intelligent musical instrument 100 includes a main control chip 121 and multiple functional sub-modules 130, and the upgrade method further includes:
[0052] 03: The main control chip 121 receives the upgrade data packet sent by the mobile terminal 200 and determines the ownership of the upgrade data packet based on the target object identifier of the upgrade data packet;
[0053] 04: If the upgrade data packet is determined to belong to the main control chip 121 based on the target object identifier, the main control chip 121 will integrate and verify the upgrade data packet to complete the upgrade;
[0054] 05: If the upgrade data packet is determined to belong to the functional submodule 130 based on the target object identifier, the main control chip 121 will transmit the upgrade data packet to the functional submodule 130 and control the functional submodule to perform integration and verification based on the upgrade data packet to complete the upgrade.
[0055] Please see Figure 5 The control module 120 may include a main control chip 121. Steps 03, 04, and 05 can be implemented by the main control chip 121. That is, the main control chip 121 is used to receive the upgrade data packet sent by the mobile terminal 200, and determine the ownership of the upgrade data packet based on the target object identifier of the upgrade data packet; if the upgrade data packet belongs to the main control chip 121 based on the target object identifier, it integrates and verifies itself according to the upgrade data packet to complete the upgrade; if the upgrade data packet belongs to the functional submodule 130 based on the target object identifier, it transmits the upgrade data packet to the functional submodule 130, and controls the functional submodule 130 to integrate and verify according to the upgrade data packet to complete the upgrade.
[0056] Specifically, the target object identifier can be a pre-defined hardware character or chip character, or a pre-defined master control code or functional module code; there are no restrictions on this. Understandably, upgrade data packets generally contain a target object identifier.
[0057] In one embodiment, after receiving an upgrade data packet from the mobile terminal 200, if the main control chip 121 recognizes a pre-defined chip character in the upgrade data packet, it can determine that the upgrade data packet belongs to the main control chip 121. This allows the main control chip 121 to perform its own integration and verification based on the upgrade data packet, thereby completing its own upgrade process. Successful integration and verification of the received upgrade data packet by the main control chip 121 constitutes a successful upgrade of the main control chip 121.
[0058] In another embodiment, after receiving the upgrade data packet sent by the mobile terminal 200, if the main control chip 121 recognizes that the upgrade data packet contains pre-set hardware characters, it can determine that the upgrade data packet belongs to the functional submodule 130. Then, the main control chip 121 can transmit the upgrade data packet to the functional submodule 130 and control the functional submodule 130 to integrate and verify according to the upgrade data packet, thereby completing the upgrade process of the functional submodule 130.
[0059] The multiple functional submodules 130 may include submodule 1, submodule 2, submodule 3... submodule n. For example... Figure 6As shown, during the initial power-on phase of the smart musical instrument 100, the control module 120 can directly send a request to read submodule information from multiple functional submodules 130. This submodule information includes, for example, submodule type, version number, and OTA parameters. Then, the functional submodules 130 can send corresponding module information back to the control module 120 based on this request.
[0060] The upgrade data packet may include multiple sub-data packets corresponding to multiple functional sub-modules 130 within the smart musical instrument 100. Each sub-data packet may further include multiple sub-packets. When the upgrade data packet belongs to a functional sub-module 130, each functional sub-module 130 can individually send a transmission request to the application control program of the mobile terminal 200, allowing the mobile terminal 200 to send sub-packets to the main control chip 121 one by one, such as... Figure 6 As shown.
[0061] In other words, before sending the upgrade data packet belonging to the functional submodule 130 to the main control chip 121, the mobile terminal 200 of this application can first divide the upgrade data packet downloaded from the server 300 into multiple sub-data packets, and then divide each sub-data packet into multiple sub-packets. After that, the mobile terminal 200 transmits the multiple sub-packets one by one to the main control chip 121 of the smart musical instrument 100.
[0062] After receiving all the packets sent by the mobile terminal 200, the main control chip 121 inside the smart musical instrument 100 can transmit all the packets transparently to the functional submodule 130 for integration and verification, thereby upgrading the functional submodule 130 and ensuring the integrity and reliability of data transmission.
[0063] The verification process for the upgrade data packet in functional submodule 130 may include checking whether the number of sub-packets is the same as the preset number, and checking whether the sub-data packets correspond to functional submodule 130. Successful integration and verification of the received upgrade data packet by functional submodule 130 constitutes a successful upgrade for functional submodule 130.
[0064] Thus, in the upgrade method of this application, the main control chip 121 of the smart musical instrument 100 can receive upgrade data packets sent by the mobile terminal 200. If the upgrade data packet belongs to the main control chip 121 based on the target object identifier, the main control chip 121 performs its own integration and verification based on the upgrade data packet to complete the upgrade. If the upgrade data packet belongs to the functional submodule 130 based on the target object identifier, the main control chip 121 is controlled to transmit the upgrade data packet transparently to the functional submodule 130, and the functional submodule 130 is controlled to perform integration and verification based on the upgrade data packet to complete the upgrade, while ensuring the integrity and reliability of data transmission.
[0065] Please see Figure 7 In some implementations, the upgrade method further includes:
[0066] 06: Obtain the first upgrade result of the main control chip 121 and / or receive the second upgrade result fed back by the functional submodule 130;
[0067] 07: The first upgrade result and / or the second upgrade result are sent to the mobile terminal 200 via the main control chip 121.
[0068] Please combine Figure 3 Steps 06 and 07 can both be implemented by the main control chip 121. That is, the main control chip 121 is also used to obtain the first upgrade result of the main control chip 121 and / or receive the second upgrade result fed back by the functional submodule 130; and send the first upgrade result and / or the second upgrade result to the mobile terminal 200.
[0069] Specifically, such as Figure 6 As shown, multiple functional submodules 130 can automatically restart after upgrading and updating according to the corresponding subdata packets, and send the second upgrade result after restarting to the main control chip 121 of the control module 120. That is, the main control chip 121 inside the smart musical instrument 100 can receive the second upgrade result fed back by the functional submodules 130 and obtain its own first upgrade result, and send the first upgrade result and the second upgrade result to the mobile terminal 200. Among them, the first upgrade result of the main control chip 121 can include two results: upgrade success and upgrade failure.
[0070] Understandably, since the firmware is stored in non-volatile memory (such as SPIFlash), a power-off restart is required to load the new firmware and execute the initialization process for the firmware upgrade to take effect. Therefore, modifications to the firmware of the main control chip or hardware firmware within the smart musical instrument 100 also require a restart of the corresponding firmware to take effect. Thus, after multiple functional submodules 130 within the smart musical instrument 100 restart, they can feed back the second upgrade result to the main control chip 121 in the form of electrical signals.
[0071] The second upgrade result can also include both upgrade success and upgrade failure. If the upgrade result of all functional sub-modules 130 within the smart musical instrument 100 is successful, then the functional sub-modules 130 can feed back the second upgrade result to the main control chip 121 in the form of a first electrical signal. Then, the main control chip 121 compiles the second upgrade results of all functional sub-modules 130 and feeds them back to the mobile terminal 200, so that the user can know the second upgrade results of the functional sub-modules 130 in the smart musical instrument 100 in a timely manner.
[0072] If any one or more functional sub-modules 130 within the smart musical instrument 100 fail to upgrade, the failed functional sub-module 130 can feed back the second upgrade result to the control module 120 in the form of a second electrical signal. If the remaining functional sub-modules 130 within the smart musical instrument 100 successfully upgrade, the successfully upgraded functional sub-modules 130 can still feed back the second upgrade result to the control module 120 in the form of a first electrical signal. Then, the control module 120 compiles the upgrade structure of all functional sub-modules 130 and feeds it back to the mobile terminal 200, so that the user can promptly know the second upgrade result of the functional sub-modules 130 in the smart musical instrument 100.
[0073] The second electrical signal differs from the first electrical signal. Both the first and second electrical signals can be current or voltage signals, and there are no restrictions on which one is chosen.
[0074] Thus, in the upgrade method of this application, the main control chip 121 in the smart musical instrument 100 can obtain its own first upgrade result and receive the second upgrade result fed back by multiple functional sub-modules 130, and send the first upgrade result and the second upgrade result to the mobile terminal 200, so that the user can know the upgrade result of the smart musical instrument 100 in a timely manner.
[0075] The above describes the upgrade method of this application from the perspective of a smart musical instrument. The upgrade method of this application will now be described from the perspective of a mobile terminal.
[0076] Please see Figure 8 This application also provides an upgrade method applied to a mobile terminal 200. The mobile terminal 200 is connected to a smart musical instrument 100 via short-range wireless communication. The smart musical instrument 100 has a built-in wireless hotspot module 110. The mobile terminal 200 is also wirelessly connected to a server 300. The upgrade method includes:
[0077] S11: Send a control command to the smart musical instrument 100 via short-range wireless communication to trigger the wireless hotspot module 110 to start and create a wireless local area network.
[0078] S12: Establish a wireless communication link with the smart musical instrument 100 via a wireless local area network;
[0079] S13: Send a request to server 300 to send an upgrade data packet;
[0080] S14: Receive the upgrade data packet sent by server 300;
[0081] S15: Send an upgrade data packet to the smart musical instrument 100 via a wireless communication link to upgrade the smart musical instrument 100.
[0082] Please see Figure 9This application also provides a mobile terminal 200. The mobile terminal 200 is connected to the smart musical instrument 100 via wireless short-range communication. The smart musical instrument 100 is equipped with a wireless hotspot module 110. The mobile terminal 200 is wirelessly connected to the server 300. The mobile terminal 200 also includes a control unit 210, a data packet request unit 220, and a data packet receiving unit 230.
[0083] Steps S11 and S12 can be implemented by the control unit 210, step S13 can be implemented by the data packet request unit 220, and steps S14 and S15 can be implemented by the data packet receiving unit 230. That is, the control unit 210 is used to send control commands to the smart musical instrument 100 via short-range wireless communication, triggering the wireless hotspot module 110 to start and create a wireless local area network; establishing a wireless communication link with the smart musical instrument 100 through the wireless local area network; the data packet request unit 220 is used to send a request to the server 300 to send an upgrade data packet; the data packet receiving unit 230 is used to receive the upgrade data packet sent by the server 300; and sending the upgrade data packet to the smart musical instrument 100 through the wireless communication link, enabling the smart musical instrument 100 to upgrade. It should be noted that steps S13 and S14 can be set before step S11 or after step S12, and this is not limited here.
[0084] Specifically, the structure and upgraded working principle of the Smart Musical Instrument 100 are as described above and will not be repeated here. The wireless short-range communication method can be Bluetooth or other methods, and there are no restrictions here.
[0085] Taking Bluetooth as an example of short-range wireless communication, a Bluetooth communication unit 240 can be integrated into the mobile terminal 200. The mobile terminal 200 can enable Bluetooth, allowing the smart musical instrument 100 to successfully pair with the mobile terminal 200 via Bluetooth and establish a Bluetooth connection. After the mobile terminal 200 and the smart musical instrument 100 are connected via Bluetooth, the mobile terminal 200 can send control commands to the smart musical instrument 100 via Bluetooth, triggering the wireless hotspot module 110 inside the smart musical instrument 100 to start and create a wireless local area network, thus providing the mobile terminal 200 with a connectable WiFi hotspot.
[0086] Then, the mobile terminal 200 establishes a wireless communication link with the smart musical instrument 100 through the wireless local area network. This means that the mobile terminal 200 can establish a wireless communication link with the smart musical instrument 100 through the WiFi hotspot, so that the mobile terminal 200 and the smart musical instrument 100 can communicate via WiFi wireless local area network and realize firmware upgrades of the smart musical instrument 100.
[0087] Before or after establishing a wireless communication link between the mobile terminal 200 and the smart musical instrument 100, the mobile terminal 200 can send a request to the server 300 to send an upgrade data packet and receive the upgrade data packet sent by the server 300. Finally, the mobile terminal 200 sends the upgrade data packet to the smart musical instrument 100 through the wireless communication link, enabling the smart musical instrument 100 to upgrade.
[0088] The request for upgrading the data package can be as follows: Figure 6 The query request corresponding to the "requested version" shown can then be used by the server 300 to obtain the current version of the smart musical instrument 100 displayed on the mobile terminal 200, thereby determining whether the firmware of the smart musical instrument 100 needs to be upgraded. If it is determined that the current firmware version of the smart musical instrument 100 is not the latest version, the server 300 can allow the mobile terminal 200 to obtain the data packet corresponding to the latest firmware version from the server, so that the mobile terminal 200 can download the upgrade data packet from the server 300 via the wireless network. In other words, the mobile terminal 200 can receive the upgrade data packet sent by the server 300.
[0089] Subsequently, after the mobile terminal 200 stores the upgrade data packet sent by the server 300, it can send the upgrade data packet to the smart musical instrument 100 via a wireless communication link, enabling the smart musical instrument 100 to perform an upgrade. That is, the mobile terminal 200 can transmit the upgrade data packet to the smart musical instrument 100 via a WiFi hotspot, allowing the smart musical instrument 100 to perform the corresponding firmware upgrade based on the upgrade data packet.
[0090] Thus, the upgrade method of this application can achieve firmware upgrade of the smart musical instrument 100 through wireless local area network communication between the mobile terminal 200 and the smart musical instrument 100, making the upgrade process of the smart musical instrument 100 more reliable, convenient and efficient.
[0091] Please see Figure 10 In some implementations, the upgrade method further includes:
[0092] S16: Divide the upgrade data packet into multiple sub-data packets according to preset rules, and each sub-data packet contains multiple sub-packets;
[0093] S17: Send packets one by one to the smart musical instrument 100 through the wireless communication link at preset time intervals.
[0094] Please combine Figure 9 Steps S16 and S17 can be implemented by the data packet receiving unit 230. That is, the data packet receiving unit 230 is used to divide the upgrade data packet into multiple sub-data packets according to preset rules, and each sub-data packet contains multiple sub-packets; and send the sub-packets one by one to the smart musical instrument 100 through the wireless communication link at preset time intervals.
[0095] Specifically, the preset rule can be to divide the upgrade data package into multiple sub-data packages based on the number of functional sub-modules 130 inside the smart musical instrument 100, and each sub-data package contains multiple sub-packets. Sub-packets are data packages required to implement the same function.
[0096] After dividing the upgrade data packet into multiple sub-data packets, the sub-packets are sent one by one to the smart musical instrument 100 via the wireless communication link at preset time intervals. The preset time interval can be the time difference between the completion of the previous sub-packet transmission and the start of the next sub-packet transmission, or it can be a pre-set time interval for sub-packet transmission; there is no restriction on this.
[0097] Understandably, splitting large blocks of data into multiple smaller data packets for transmission—that is, transmitting sub-data packets—avoids large blocks of data monopolizing network resources and improves sharing efficiency. Furthermore, transmitting data one packet at a time allows the receiver to verify the integrity of each packet; for example, checksums can be used to verify packet integrity. If a packet is corrupted, only that packet needs to be retransmitted instead of the entire data, further improving transmission efficiency.
[0098] In addition, each packet can independently choose a transmission path and eventually reassemble at the destination. This way, even if one path fails, other paths can still guarantee communication. Packets transmitted on the failed path can be set to be transmitted to the receiver via other paths, making data packet transmission more flexible and efficient.
[0099] In some embodiments, the intelligent musical instrument 100 includes multiple functional sub-modules 130. The number of sub-data packets corresponds to the number of functional sub-modules 130, and the preset time interval is determined by the time node of the sub-data packet requests sent sequentially by the multiple functional sub-modules 130.
[0100] The number of sub-data packets corresponds to the number of functional sub-modules 130, meaning that each sub-data packet in this application is an installation data packet required for the smart musical instrument 100 to implement a certain function.
[0101] The preset time interval is determined by the time node of the sub-data packet requests sent sequentially by multiple functional sub-modules 130. This means that the sub-data packet request can include multiple sub-packet requests. The functional sub-module 130 will sequentially send multiple sub-packet requests corresponding to the sub-data packet to the application control program of the mobile terminal 200, so that the mobile terminal 200 sends the sub-packet to the control module 120 of the smart musical instrument 100 according to the sub-packet request. The smart musical instrument 100 can be set to send the next sub-packet request after receiving the sub-packet corresponding to the previous sub-packet request.
[0102] In other words, the mobile terminal 200 of this application can send the sub-data packets of the sub-data packets to the smart musical instrument 100 in sequence according to the sub-packet requests, making the data packet transmission more flexible and efficient.
[0103] Please see Figure 11 In some implementations, the upgrade method further includes:
[0104] S18: Receive the upgrade completion signal from the smart musical instrument 100 and upload the upgrade completion signal to the server 300;
[0105] S19: Receive the upgrade success signal returned by server 300, and display that the smart musical instrument 100 has been upgraded according to the upgrade success signal.
[0106] Please see Figure 9 Steps S18 and S19 can both be implemented by the control unit 210. That is, the control unit 210 is used to receive the upgrade completion signal fed back by the smart musical instrument 100 and upload the upgrade completion signal to the server 300; receive the upgrade success signal returned by the server 300, and display that the smart musical instrument 100 has completed the upgrade according to the upgrade success signal.
[0107] Specifically, the upgrade completion signal can be a current signal or a voltage signal, without any restrictions.
[0108] That is, the mobile terminal 200 of this application can receive the upgrade completion signal fed back by the smart musical instrument 100. After receiving the upgrade completion signal, it uploads it to the server 300, so that the server 300 can update and save the current upgrade status of the smart musical instrument 100 in a timely manner.
[0109] Afterwards, the server 300 can send an upgrade success signal to the mobile terminal 200. The mobile terminal 200 can display that the smart musical instrument 100 has been upgraded based on the upgrade success signal. For example, the mobile terminal 200 can display text prompts, voice prompts, or graphic prompts. For example, the text prompts and voice prompts can be "This upgrade is successful". There are no restrictions on this. These prompts are used to indicate that the smart musical instrument 100 has been upgraded successfully, so that the user can know that the upgrade of the smart musical instrument 100 has been successful in a timely manner through the mobile terminal 200.
[0110] like Figure 6 As shown, after the mobile terminal 200 uploads the upgrade completion signal from the smart musical instrument 100, the server replies with "success" as an acknowledgment (ACK) mechanism to ensure that the upgrade status of the smart musical instrument 100 is consistent between the mobile terminal 200 and the server 300.
[0111] Thus, the mobile terminal 200 of this application can send an upgrade completion signal to the server 300 and receive an upgrade success signal returned by the server 300, displaying that the smart musical instrument 100 has been upgraded, so that users can know in a timely manner that the upgrade of the smart musical instrument 100 has been successful.
[0112] Please see Figure 2 and Figure 3 This application also provides an upgrade system 1000. The upgrade system 1000 includes a smart musical instrument 100, a mobile terminal 200, and a server 300. The smart musical instrument 100 has a built-in wireless hotspot module 110. The smart musical instrument 100 is connected to the mobile terminal 200 via short-range wireless communication, and the mobile terminal 200 is wirelessly connected to the server 300. The mobile terminal 200 sends a control command to the smart musical instrument 100 to activate the wireless hotspot module 110 via short-range wireless communication. The smart musical instrument 100 triggers the wireless hotspot module 110 to start and create a wireless local area network (WLAN) according to the control command, enabling the mobile terminal 200 to establish a wireless communication link with the smart musical instrument 100 through the WLAN. The mobile terminal 200 obtains an upgrade data packet from the server 300 and sends the upgrade data packet to the smart musical instrument 100 via the wireless communication link. The smart musical instrument 100 performs an upgrade based on the upgrade data packet.
[0113] Specifically, the structures of the smart musical instrument 100 and the mobile terminal 200 are as described above, and are not limited here. The interaction process between the smart musical instrument 100, the mobile terminal 200, and the server 300 is as follows: Figure 6 As shown, the corresponding interaction process is described above and will not be limited here.
[0114] Thus, the upgrade system 1000 of this application can communicate wirelessly with the smart musical instrument 100 via mobile terminal 200 to upgrade the firmware of the smart musical instrument 100, making the upgrade process of the smart musical instrument 100 more reliable, convenient and efficient.
[0115] This application also provides a non-volatile computer-readable storage medium containing a computer program. When the computer program is executed by one or more processors, it implements the upgrade method described in any of the above embodiments.
[0116] Thus, the computer-readable storage medium of this application, using the above-described upgrade method, can communicate wirelessly with the smart musical instrument 100 via a mobile terminal 200 to upgrade the firmware of the smart musical instrument 100, making the upgrade process of the smart musical instrument 100 more reliable, convenient, and efficient.
[0117] This application also provides a computer program product. The computer program product includes a processor and a memory, the processor being used to implement the upgrade method described in any of the above embodiments.
[0118] Thus, the computer program product of this application can use the above-mentioned upgrade method to communicate wirelessly with the smart musical instrument 100 via mobile terminal 200 to upgrade the firmware of the smart musical instrument 100, making the upgrade process of the smart musical instrument 100 more reliable, convenient and efficient.
[0119] The above embodiments merely illustrate several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. An upgrade method applied to intelligent musical instruments, characterized in that, The smart musical instrument is equipped with a wireless hotspot module. The smart musical instrument connects to a mobile terminal via short-range wireless communication, and the mobile terminal connects to a server wirelessly. The upgrade method includes: The mobile terminal triggers the wireless hotspot module to start and create a wireless local area network according to the control command issued by the mobile terminal in the wireless short-range communication method, so that the mobile terminal can establish a wireless communication link with the smart musical instrument through the wireless local area network; The system is upgraded according to the upgrade data packet sent by the mobile terminal through the wireless communication link; wherein the upgrade data packet is obtained by the mobile terminal from the server.
2. The upgrade method according to claim 1, characterized in that, The intelligent musical instrument includes a main control chip and multiple functional sub-modules, and the upgrade method further includes: The main control chip receives upgrade data packets sent by the mobile terminal and determines the ownership of the upgrade data packets based on the target object identifier of the upgrade data packets. If the upgrade data packet is determined to belong to the main control chip based on the target object identifier, the main control chip is controlled to perform its own integration and verification based on the upgrade data packet to complete the upgrade; If the upgrade data packet is determined to belong to the functional sub-module based on the target object identifier, the main control chip is controlled to transmit the upgrade data packet to the functional sub-module, and the functional sub-module is controlled to integrate and verify the upgrade data packet to complete the upgrade.
3. The upgrade method according to claim 2, characterized in that, The upgrade method also includes: Obtain the first upgrade result of the main control chip and / or receive the second upgrade result fed back by the functional submodule through the main control chip; The first upgrade result and / or the second upgrade result are sent to the mobile terminal via the main control chip.
4. An upgrade method applied to a mobile terminal, characterized in that, The mobile terminal and the smart musical instrument are connected via short-range wireless communication. The smart musical instrument is equipped with a wireless hotspot module. The mobile terminal is wirelessly connected to the server. The upgrade method includes: The control command is sent to the smart musical instrument via the aforementioned short-range wireless communication method, triggering the wireless hotspot module to start and create a wireless local area network. A wireless communication link is established with the smart musical instrument through the wireless local area network; Send a request to the server to send an upgrade data packet; Receive the upgrade data packet sent by the server; The upgrade data packet is sent to the smart musical instrument via the wireless communication link, thereby upgrading the smart musical instrument.
5. The upgrade method according to claim 4, characterized in that, The upgrade method also includes: The upgrade data packet is divided into multiple sub-data packets according to preset rules, and each sub-data packet contains multiple sub-packets. The packets are sent one by one to the smart musical instrument via the wireless communication link at preset time intervals.
6. The upgrade method according to claim 5, characterized in that, The intelligent musical instrument includes multiple functional sub-modules, the number of sub-data packets corresponds to the number of functional sub-modules, and the preset time interval is determined by the time node of the sub-data packet request sent sequentially according to the multiple functional sub-modules.
7. The upgrade method according to claim 4, characterized in that, The upgrade method also includes: Receive the upgrade completion signal from the smart musical instrument and upload the upgrade completion signal to the server; The system receives an upgrade success signal from the server and displays that the smart musical instrument upgrade is complete based on the upgrade success signal.
8. A smart musical instrument, characterized in that, The smart musical instrument is equipped with a wireless hotspot module. The smart musical instrument connects to a mobile terminal via short-range wireless communication, and the mobile terminal connects to a server wirelessly. The smart musical instrument includes a control module, which is used to: trigger the wireless hotspot module to start and create a wireless local area network (WLAN) based on control commands issued by the mobile terminal via the WLAN, enabling the mobile terminal to establish a wireless communication link with the smart musical instrument through the WLAN; and perform system upgrades based on upgrade data packets sent by the mobile terminal through the wireless communication link; wherein the upgrade data packets are obtained by the mobile terminal from the server.
9. A mobile terminal, characterized in that, The mobile terminal is connected to the smart musical instrument via short-range wireless communication. The smart musical instrument is equipped with a wireless hotspot module. The mobile terminal is wirelessly connected to the server. The mobile terminal also includes: The control unit is used to send control commands to the smart musical instrument via short-range wireless communication, trigger the wireless hotspot module to start and create a wireless local area network; and establish a wireless communication link with the smart musical instrument through the wireless local area network. A data packet request unit is used to send a request to the server to send an upgrade data packet; and A data packet receiving unit is used to receive the upgrade data packet sent by the server; and to send the upgrade data packet to the smart musical instrument through the wireless communication link, so that the smart musical instrument can be upgraded.
10. An upgrade system, characterized in that, The upgrade system includes a smart musical instrument, a mobile terminal, and a server. The smart musical instrument is equipped with a wireless hotspot module. The smart musical instrument and the mobile terminal are connected via wireless short-range communication. The mobile terminal and the server are connected wirelessly. The mobile terminal sends a control command to the smart musical instrument to activate the wireless hotspot module via short-range wireless communication. The smart musical instrument triggers the wireless hotspot module to start and create a wireless local area network according to the control command, so that the mobile terminal can establish a wireless communication link with the smart musical instrument through the wireless local area network; The mobile terminal obtains the upgrade data packet from the server and sends the upgrade data packet to the smart musical instrument through the wireless communication link; The intelligent musical instrument is upgraded according to the upgrade data package.
11. A non-volatile computer-readable storage medium containing a computer program, characterized in that, When the computer program is executed by one or more processors, it implements the upgrade method according to any one of claims 1 to 7.
12. A computer program product, characterized in that, It includes a processor and a memory, the processor being used to implement the upgrade method according to any one of claims 1 to 7.