CN106970815A - Audio software upgrade method and device, audio playback device - Google Patents
Audio software upgrade method and device, audio playback device Download PDFInfo
- Publication number
- CN106970815A CN106970815A CN201710209400.7A CN201710209400A CN106970815A CN 106970815 A CN106970815 A CN 106970815A CN 201710209400 A CN201710209400 A CN 201710209400A CN 106970815 A CN106970815 A CN 106970815A
- Authority
- CN
- China
- Prior art keywords
- audio
- software
- version information
- latest
- audio frequency
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; ELECTRIC HEARING AIDS; PUBLIC ADDRESS SYSTEMS
- H04R3/00—Circuits for transducers
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
技术领域technical field
本发明涉及音频设备技术领域,特别是涉及一种音频软件升级方法及装置、音频播放设备。The invention relates to the technical field of audio equipment, in particular to an audio software upgrading method and device, and audio playback equipment.
背景技术Background technique
音频播放系统包括至少一个音频设备,该音频播放系统可以与终端中的音频应用进行通信,用户通过终端的音频应用来控制音频设备的工作状态。The audio playback system includes at least one audio device, the audio playback system can communicate with the audio application in the terminal, and the user controls the working state of the audio device through the audio application of the terminal.
然而,音频软件都会有新版本发布,若每次发布新版本的音频软件,音频播放系统都将内置的音频软件升级至最新版本,势必会增加音频播放系统运行负担,尤其是当音频播放系统中含有至少两个以上的音频设备时,将多个音频设备同时进行升级会增加每个音频设备运行负担。However, new versions of audio software will be released. If a new version of audio software is released every time, the audio playback system will upgrade the built-in audio software to the latest version, which will inevitably increase the operating burden of the audio playback system, especially when the audio playback system When there are at least two audio devices, upgrading multiple audio devices at the same time will increase the operating burden of each audio device.
发明内容Contents of the invention
本发明实施例提供一种音频软件升级方法及装置、音频播放设备,在新增音频设备接入音频播放系统时升级新增音频设备和音频播放系统中音频软件,减小音频播放系统的运行负担。The embodiment of the present invention provides an audio software upgrade method and device, and an audio playback device. When the new audio device is connected to the audio playback system, the audio software in the newly added audio device and the audio playback system is upgraded to reduce the operating burden of the audio playback system. .
本发明实施例提供一种音频软件升级方法,所述音频软件应用于音频播放系统,其包括:An embodiment of the present invention provides a method for upgrading audio software, where the audio software is applied to an audio playback system, which includes:
检测到新增音频设备中音频软件的版本信息与所述音频播放系统中音频软件的版本信息不同时,获取服务器中音频软件的最新版本信息;When detecting that the version information of the audio software in the newly added audio device is different from the version information of the audio software in the audio playback system, obtain the latest version information of the audio software in the server;
判断所述新增音频设备和所述音频播放系统中音频软件的版本信息是否与所述最新版本信息相同,并生成判断结果;以及Judging whether the version information of the newly added audio device and the audio software in the audio playback system is the same as the latest version information, and generating a judgment result; and
根据所述判断结果升级所述新增音频设备和音频播放系统中的音频软件至最新版本。Upgrade the audio software in the newly added audio equipment and audio playback system to the latest version according to the judgment result.
本发明实施例还提供一种音频软件升级装置,所述音频软件应用于音频播放系统,其包括:The embodiment of the present invention also provides an audio software upgrading device, and the audio software is applied to an audio playback system, which includes:
版本信息获取模块,用于检测到新增音频设备中音频软件的版本信息与所述音频播放系统中音频软件的版本信息不同时,获取服务器中音频软件的最新版本信息;The version information acquisition module is used to detect that the version information of the audio software in the newly added audio device is different from the version information of the audio software in the audio playback system, and obtain the latest version information of the audio software in the server;
判断结果生成模块,用于判断所述新增音频设备和所述音频播放系统中音频软件的版本信息是否与所述最新版本信息相同,并生成判断结果;以及A judging result generation module, used to judge whether the version information of the newly added audio device and the audio software in the audio playback system is the same as the latest version information, and generate a judging result; and
软件升级模块,用于根据所述判断结果升级所述新增音频设备和音频播放系统中的音频软件至最新版本。A software upgrade module, configured to upgrade the audio software in the newly added audio equipment and audio playback system to the latest version according to the judgment result.
本发明实施例还提供一种音频播放设备,其包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现本发明中任一项所述的音频软件升级方法。An embodiment of the present invention also provides an audio playback device, which includes a memory, a processor, and a computer program stored on the memory and operable on the processor. When the processor executes the computer program, the present invention is realized. The audio software upgrading method described in any one of the inventions.
本发明实施例提供一种音频软件升级方法,在检测到新增音频设备新增至音频播放系统,且新增音频设备中音频软件的版本信息与所述音频播放系统中音频软件的版本信息不同时,升级所述新增音频设备和音频播放系统中的音频软件至最新版本,减小音频播放系统的运行负担,同时,可以使得整个音频播放系统的音频软件版本一致,避免因版本不兼容而出现死机、不工作等现象。An embodiment of the present invention provides a method for upgrading audio software. When it is detected that a newly added audio device is added to the audio playback system, and the version information of the audio software in the newly added audio device is different from the version information of the audio software in the audio playback system Simultaneously, upgrading the audio software in the newly-added audio equipment and the audio playback system to the latest version reduces the operating burden of the audio playback system. Crashes, does not work and so on.
附图说明Description of drawings
图1A为本发明实施例中音频播放系统的结构示意图。FIG. 1A is a schematic structural diagram of an audio playback system in an embodiment of the present invention.
图1B为本发明实施例中音频播放系统的另一结构示意图。FIG. 1B is another schematic structural diagram of the audio playback system in the embodiment of the present invention.
图1C为本发明实施例中音频播放系统的又一结构示意图。FIG. 1C is another schematic structural diagram of the audio playback system in the embodiment of the present invention.
图1D为本发明实施例中音频播放系统的再一结构示意图。FIG. 1D is another structural schematic diagram of the audio playback system in the embodiment of the present invention.
图2为本发明实施例中音频软件升级方法的场景示意图。Fig. 2 is a schematic diagram of a scene of a method for upgrading audio software in an embodiment of the present invention.
图3为本发明实施例中音频软件升级方法的流程示意图。Fig. 3 is a schematic flowchart of a method for upgrading audio software in an embodiment of the present invention.
图4为图3所示音频软件升级方法中步骤S101的具体流程示意图。FIG. 4 is a schematic flowchart of step S101 in the audio software upgrading method shown in FIG. 3 .
图5为本发明实施例中音频软件升级装置的结构示意图。Fig. 5 is a schematic structural diagram of an audio software upgrading device in an embodiment of the present invention.
图6为本发明实施例中音频软件升级装置的另一结构示意图。Fig. 6 is another structural schematic diagram of an audio software upgrading device in an embodiment of the present invention.
图7为本发明实施例中音频播放设备的结构示意图。Fig. 7 is a schematic structural diagram of an audio playback device in an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts fall within the protection scope of the present invention.
本发明中的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。例如,在不脱离本发明的范围的情况下,可以将第一控件称为第二控件,且类似地,可将第二控件称为第一控件。第一控件与第二控件两者都是控件,但其不是同一控件。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。The terms 'first', 'second', etc. in the present invention may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another element. For example, a first control could be termed a second control, and, similarly, a second control could be termed a first control, without departing from the scope of the present invention. Both the first control and the second control are controls, but they are not the same control. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion.
本发明实施例中音频播放系统包括至少一个音频设备,当音频播放系统包括一个音频设备时,该音频设备为主设备,即此时没有从设备。当音频播放系统包括至少两个音频设备时,其中一个为主设备,其他为从设备。In the embodiment of the present invention, the audio playback system includes at least one audio device. When the audio playback system includes one audio device, the audio device is the master device, that is, there is no slave device at this time. When the audio playback system includes at least two audio devices, one of them is the master device, and the other is the slave device.
请参阅图1A,图1A为本发明实施例中音频播放系统的结构示意图。在图1A中,音频播放系统200包括一个主设备210和四个从设备220。可以理解的是,从设备220的数量可以根据实际需求设定。Please refer to FIG. 1A . FIG. 1A is a schematic structural diagram of an audio playback system in an embodiment of the present invention. In FIG. 1A , an audio playback system 200 includes one master device 210 and four slave devices 220 . It can be understood that the number of slave devices 220 can be set according to actual requirements.
另外,在图1A中,主设备210和从设备220均为智能音箱。可以理解的是,主设备210和从设备220还可以为其他具有音频播放功能的电子设备。例如,请参阅图1B至图1C所示,在图1B中,主设备210和从设备220均为智能电视。在图1C中,主设备210和从设备220均为手机。In addition, in FIG. 1A , both the master device 210 and the slave device 220 are smart speakers. It can be understood that the master device 210 and the slave device 220 may also be other electronic devices with audio playback function. For example, please refer to FIG. 1B to FIG. 1C . In FIG. 1B , both the master device 210 and the slave device 220 are smart TVs. In FIG. 1C, both the master device 210 and the slave device 220 are mobile phones.
当然,主设备210和从设备220也可以采用不同的音频播放设备。例如,请参阅图1D所示,在图1D中,主设备210为智能音箱,而从设备220包括智能音箱、智能电视和手机。Of course, the master device 210 and the slave device 220 may also use different audio playback devices. For example, please refer to FIG. 1D . In FIG. 1D , the master device 210 is a smart speaker, and the slave device 220 includes a smart speaker, a smart TV and a mobile phone.
可以理解的是,具有音频播放功能的电子设备不局限于图1A至图1D所示的几种,主设备210和从设备20还可以为具有音频播放功能的平板电脑、电子手表、电脑等,在此不做具体限制。It can be understood that the electronic devices with audio playback function are not limited to those shown in FIGS. 1A to 1D , and the master device 210 and slave device 20 can also be tablet computers, electronic watches, computers, etc. with audio playback functions. No specific limitation is made here.
另外,当主设备210和从设备220采用不同的音频播放设备时,其组合方式也不局限于图1D所示的组合方式,可以根据实际使用情况来自由组合,在此不做具体限制。In addition, when the master device 210 and the slave device 220 use different audio playback devices, their combinations are not limited to the combination shown in FIG. 1D , and can be combined freely according to actual usage conditions, and no specific limitation is set here.
当音频播放系统200中包括主设备210和至少一个从设备220时,主设备210通过网络、蓝牙等无线连接方式与从设备220进行连接通信,也可以通过有线等方式与从设备220进行连接通信,在此不做具体限制。When the audio playback system 200 includes a master device 210 and at least one slave device 220, the master device 210 is connected and communicated with the slave device 220 through a wireless connection such as a network or bluetooth, or connected and communicated with the slave device 220 through a wired method. , without any specific limitation here.
在音频播放系统200中,主设备210和从设备220中均安装有音频软件。为了可以让用户对音频播放系统200进行直观操作,用户可以在终端100(如手机、平板电脑等终端设备)上安装与音频播放系统200配套的应用程序。用户在应用程序界面中进行控制操作,终端100将根据用户的控制操作生成相应的控制指令,并发送至主设备210,再由主设备210向其他从设备220发送相应指令,从而实现控制整个音频播放系统200的目的。In the audio playback system 200 , audio software is installed in both the master device 210 and the slave device 220 . In order to allow the user to operate the audio playback system 200 intuitively, the user can install an application program matching the audio playback system 200 on the terminal 100 (such as a terminal device such as a mobile phone or a tablet computer). When the user performs control operations in the application program interface, the terminal 100 will generate corresponding control instructions according to the user's control operations, and send them to the master device 210, and then the master device 210 will send corresponding instructions to other slave devices 220, so as to realize the control of the entire audio system. The purpose of playback system 200.
请参阅图2所示,图2为本发明实施例中音频软件升级方法的场景示意图。在本实施例中,当新增音频设备230向音频播放系统200发送接入请求时,音频播放系统200接收该接入请求,并在新增音频设备230触发升级音频播放系统200和新增音频设备230中的音频软件至最新版本后,将该新增音频设备230接入音频播放系统200。Please refer to FIG. 2, which is a schematic diagram of a scene of an audio software upgrading method in an embodiment of the present invention. In this embodiment, when the newly added audio device 230 sends an access request to the audio playback system 200, the audio playback system 200 receives the access request, and triggers the upgrade of the audio playback system 200 and the newly added audio system 200 on the newly added audio device 230. After the audio software in the device 230 is updated to the latest version, the newly added audio device 230 is connected to the audio playback system 200 .
以下将结合图2至图4对新增音频设备230触发音频播放系统200和新增音频设备230中音频软件升级至最新版本的过程进行详细的说明。The process in which the newly-added audio device 230 triggers the audio playback system 200 and the audio software in the newly-added audio device 230 to upgrade to the latest version will be described in detail below with reference to FIGS. 2 to 4 .
请参阅图3,图3为本发明实施例中音频软件升级方法的流程示意图。该音频软件应用于音频播放系统200。具体地,音频软件安装于音频播放系统200中的各个设备中,比如,主设备210和各个从设备220中。Please refer to FIG. 3 . FIG. 3 is a schematic flowchart of a method for upgrading audio software in an embodiment of the present invention. The audio software is applied to the audio playback system 200 . Specifically, the audio software is installed in each device in the audio playback system 200 , such as the master device 210 and each slave device 220 .
在本实施例中,将从音频播放系统200的角度进行描述。音频软件升级方法具体包括:In this embodiment, description will be made from the perspective of the audio playback system 200 . Audio software upgrade methods include:
S101、检测到新增音频设备中音频软件的版本信息与所述音频播放系统中音频软件的版本信息不同时,获取服务器中音频软件的最新版本信息。S101. When it is detected that the version information of the audio software in the newly added audio device is different from the version information of the audio software in the audio playback system, acquire the latest version information of the audio software in the server.
当新增音频设备230需要接入至音频播放系统200中时,新增音频设备230将向音频播放系统200发送接入请求。其中,该接入请求包括新增音频设备230中音频软件的版本信息。When the newly added audio device 230 needs to be connected to the audio playback system 200 , the newly added audio device 230 will send an access request to the audio playback system 200 . Wherein, the access request includes the version information of the audio software in the newly added audio device 230 .
音频播放系统200接收到该接入请求,音频播放系统200检测出有新增音频设备需要接入到音频播放系统200。音频播放系统200从接入请求中获取新增音频设备230中音频软件的版本信息,并判断新增音频设备230中音频软件的版本信息是否与音频播放系统200中音频软件的版本信息相同。The audio playback system 200 receives the access request, and the audio playback system 200 detects that there is a new audio device that needs to be connected to the audio playback system 200 . The audio playback system 200 obtains the version information of the audio software in the newly added audio device 230 from the access request, and determines whether the version information of the audio software in the newly added audio device 230 is the same as the version information of the audio software in the audio playback system 200 .
在此需要说明的是,为了避免音频播放系统200中各个设备因音频软件版本不兼容而出现死机、不响应等现象,整个音频播放系统200中每个设备中音频软件的版本信息均相同。也就是说,主设备210和与其连接的各个从设备220中的音频软件的版本信息均相同。It should be noted here that, in order to avoid crashes and non-responses of devices in the audio playback system 200 due to incompatible audio software versions, the version information of the audio software in each device in the entire audio playback system 200 is the same. That is to say, the version information of the audio software in the master device 210 and each slave device 220 connected thereto is the same.
若音频播放系统200判断出新增音频设备230中音频软件的版本信息与音频播放系统200中音频软件的版本信息相同,则音频播放系统200将允许新增音频设备230接入。If the audio playback system 200 determines that the version information of the audio software in the newly added audio device 230 is the same as the version information of the audio software in the audio playback system 200, the audio playback system 200 will allow the newly added audio device 230 to access.
若音频播放系统200判断出新增音频设备230中音频软件的版本信息与音频播放系统200中音频软件的版本信息不相同,则音频播放系统200将获取服务器中音频软件的最新版本信息。If the audio playback system 200 determines that the version information of the audio software in the newly added audio device 230 is different from the version information of the audio software in the audio playback system 200, the audio playback system 200 will obtain the latest version information of the audio software in the server.
在一实施例中,请参阅图4,图4为本发明实施例中步骤S101的具体流程示意图。在图4中,获取音频软件的最新版本信息的步骤包括:In an embodiment, please refer to FIG. 4 , which is a schematic flowchart of step S101 in an embodiment of the present invention. In Fig. 4, the steps of obtaining the latest version information of the audio software include:
S1011、获取服务器中音频软件的版本信息列表,其中所述版本信息列表包括音频软件的多个版本信息。S1011. Obtain a version information list of the audio software in the server, where the version information list includes multiple versions of the audio software.
服务器预先存储音频软件的版本信息列表。当发布新版本的音频软件时,服务器会自动将新版本的音频软件的版本信息写入版本信息列表,且保存新版本的音频软件的音频安装文件。The server stores the version information list of the audio software in advance. When a new version of the audio software is released, the server will automatically write the version information of the new version of the audio software into the version information list, and save the audio installation file of the new version of the audio software.
当音频播放系统200判断出新增音频设备230中音频软件的版本信息与音频播放系统200中音频软件的版本信息不同时,向服务器获取音频软件的版本信息列表,该版本信息列表中包括音频软件的多个版本信息。When the audio playback system 200 judges that the version information of the audio software in the newly added audio device 230 is different from the version information of the audio software in the audio playback system 200, it obtains the version information list of the audio software from the server, and includes the audio software in the version information list. Multiple versions of information.
S1012、获取多个所述版本信息中的最高的版本信息为最新版本信息。S1012. Obtain the highest version information among the multiple versions of information as the latest version information.
音频播放系统200获取到版本信息列表后,将在版本信息列表中的多个版本信息中获取最高的版本信息为最新版本信息。After the audio playing system 200 acquires the version information list, it will acquire the highest version information among multiple versions information in the version information list as the latest version information.
例如,在版本信息列表中记录三个音频软件的版本信息,版本号分别为V.3.0、V.4.0和V.5.0,音频软件的版本号越大,说明对应的软件版本越高。很明显,版本号为V.5.0是三个版本信息中的最高版本,并将该版本号为V.5.0的版本作为最新版本信息。For example, the version information of three audio software is recorded in the version information list, and the version numbers are V.3.0, V.4.0 and V.5.0 respectively. The larger the version number of the audio software, the higher the corresponding software version. Obviously, the version number V.5.0 is the highest version among the three version information, and the version number V.5.0 is used as the latest version information.
可以理解的是,音频播放系统200从版本信息列表中获取最新版本信息的方式不局限于上述方式,还可以为其他方式。比如,按照版本信息列表中版本信息的记录时间来获取最新版本信息。也就是说,在版本信息列表中,获取记录时间最靠近现在时间的版本信息为最新版本信息。It can be understood that, the manner in which the audio playback system 200 obtains the latest version information from the version information list is not limited to the foregoing manner, and may also be other manners. For example, the latest version information is obtained according to the recording time of the version information in the version information list. That is to say, in the version information list, the version information whose acquisition record time is closest to the current time is the latest version information.
S102、判断所述新增音频设备和所述音频播放系统中音频软件的版本信息是否与所述最新版本信息相同,并生成判断结果。S102. Judging whether the version information of the newly added audio device and the audio software in the audio playback system is the same as the latest version information, and generating a judgment result.
在获取到最新版本信息后,音频播放系统200将判断新增音频设备230中音频软件的版本信息和音频播放系统200中音频软件的版本信息是否与最新版本信息相同,并生成判断结果。After obtaining the latest version information, the audio playback system 200 will judge whether the version information of the audio software in the newly added audio device 230 and the version information of the audio software in the audio playback system 200 are the same as the latest version information, and generate a judgment result.
在一实施例中,判断结果包括以下几种:In one embodiment, the judgment results include the following:
a、新增音频设备230和音频播放系统200中音频软件的版本信息均与最新版本信息不同。a. The version information of the newly added audio device 230 and the audio software in the audio playback system 200 are different from the latest version information.
b、新增音频设备230中音频软件的版本信息与最新版本信息不同,而音频播放系统200中音频软件的版本信息与最新版本信息相同。b. The version information of the audio software in the newly added audio device 230 is different from the latest version information, but the version information of the audio software in the audio playback system 200 is the same as the latest version information.
c、新增音频设备230中音频软件的版本信息与最新版本信息相同,而音频播放系统200中音频软件的版本信息与最新版本信息不同。c. The version information of the audio software in the newly added audio device 230 is the same as the latest version information, but the version information of the audio software in the audio playback system 200 is different from the latest version information.
S103、根据所述判断结果升级所述新增音频设备和音频播放系统中的音频软件至最新版本。S103. Upgrade the audio software in the newly added audio device and audio playback system to the latest version according to the judgment result.
在一实施例中,根据所述判断结果升级所述新增音频设备和音频播放系统中的音频软件至最新版本,包括以下几种:In one embodiment, upgrade the audio software in the newly added audio equipment and audio playback system to the latest version according to the judgment result, including the following:
A、若新增音频设备230和音频播放系统200中音频软件的版本信息均与最新版本信息不同,升级新增音频设备230和音频播放系统200中的音频软件至最新版本。A, if the version information of the audio software in the newly added audio equipment 230 and the audio playback system 200 is all different from the latest version information, upgrade the audio software in the newly added audio equipment 230 and the audio playback system 200 to the latest version.
例如,音频播放系统200发送升级指令至新增音频设备230,其中升级指令包括音频软件的最新版本信息。音频播放系统200从服务器获取对应最新版本信息的音频安装文件,并根据音频安装文件升级音频播放系统200中音频软件。同时,新增音频设备230根据升级指令获取最新版本信息,并从服务器获取对应最新版本信息的音频安装文件,并根据音频安装文件升级新增音频设备230中音频软件。For example, the audio playback system 200 sends an upgrade instruction to the newly added audio device 230, wherein the upgrade instruction includes the latest version information of the audio software. The audio playback system 200 obtains the audio installation file corresponding to the latest version information from the server, and upgrades the audio software in the audio playback system 200 according to the audio installation file. At the same time, the newly added audio device 230 obtains the latest version information according to the upgrade instruction, and obtains the audio installation file corresponding to the latest version information from the server, and upgrades the audio software in the newly added audio device 230 according to the audio installation file.
在一具体实施方式中,音频播放系统200中主设备210向从设备220和新增音频设备230发送升级指令。主设备210根据最新版本信息从服务器中获取音频安装文本,并升级主设备210中音频软件,同时从设备220和新增音频设备230根据升级指令获取最新版本信息,并分别根据最新版本信息从服务器中获取音频安装文本,并根据音频安装文件分别升级从设备220和新增音频设备230中的音频软件,从而完成整个音频播放系统200和新增音频设备230中音频软件升级操作。In a specific implementation manner, the master device 210 in the audio playback system 200 sends upgrade instructions to the slave device 220 and the newly added audio device 230 . The master device 210 obtains the audio installation text from the server according to the latest version information, and upgrades the audio software in the master device 210. At the same time, the slave device 220 and the newly added audio device 230 obtain the latest version information according to the upgrade instruction, and respectively obtain the latest version information from the server according to the latest version information. Acquire the audio installation text, and upgrade the audio software in the slave device 220 and the newly added audio device 230 according to the audio installation file, thereby completing the audio software upgrade operation in the entire audio playback system 200 and the newly added audio device 230.
B、若新增音频设备230中音频软件的版本信息与最新版本信息不同,而音频播放系统200中音频软件的版本信息与最新版本信息相同,升级新增音频设备230中的音频软件至最新版本。B, if the version information of the audio software in the newly added audio equipment 230 is different from the latest version information, and the version information of the audio software in the audio playback system 200 is the same as the latest version information, upgrade the audio software in the newly added audio equipment 230 to the latest version .
例如,音频播放系统200发送升级指令至新增音频设备230,其中升级指令包括音频软件的最新版本信息。新增音频设备230根据升级指令获取最新版本信息,并从服务器获取对应最新版本信息的音频安装文件,并根据音频安装文件升级新增音频设备230中音频软件。For example, the audio playback system 200 sends an upgrade instruction to the newly added audio device 230, wherein the upgrade instruction includes the latest version information of the audio software. The newly added audio device 230 obtains the latest version information according to the upgrade instruction, and obtains the audio installation file corresponding to the latest version information from the server, and upgrades the audio software in the newly added audio device 230 according to the audio installation file.
C、若新增音频设备230中音频软件的版本信息与最新版本信息相同,而音频播放系统200中音频软件的版本信息与最新版本信息不同,则升级音频播放系统200中的音频软件至最新版本。C, if the version information of the audio software in the newly added audio equipment 230 is the same as the latest version information, and the version information of the audio software in the audio playback system 200 is different from the latest version information, then upgrade the audio software in the audio playback system 200 to the latest version .
例如,音频播放系统200从服务器获取对应最新版本信息的音频安装文件,并根据音频安装文件升级音频播放系统200中音频软件。For example, the audio playing system 200 obtains the audio installation file corresponding to the latest version information from the server, and upgrades the audio software in the audio playing system 200 according to the audio installation file.
在一具体实施例中,音频播放系统200中主设备210向从设备220发送升级指令。主设备210根据最新版本信息从服务器中获取音频安装文本,并升级主设备210中音频软件,同时从设备220根据升级指令获取最新版本信息,并根据最新版本信息从服务器中获取音频安装文件,并根据音频安装文件升级从设备220中的音频软件,从而完成整个音频播放系统200中音频软件升级操作。In a specific embodiment, the master device 210 in the audio playback system 200 sends an upgrade instruction to the slave device 220 . The master device 210 obtains the audio installation text from the server according to the latest version information, and upgrades the audio software in the master device 210. At the same time, the slave device 220 obtains the latest version information according to the upgrade instruction, and obtains the audio installation file from the server according to the latest version information, and The audio software in the slave device 220 is upgraded according to the audio installation file, thereby completing the audio software upgrade operation in the entire audio playback system 200 .
由上可知,在该实施例中,音频安装文件保存在服务器中,即主设备210中不需要保存音频安装文件,这样可以节省主设备210的内存,减少了从设备220或者新增音频设备230从主设备210获取音频安装文件的通信数据量,降低主设备210运行负担,从而降低整个音频播放系统200的运行负担。As can be seen from the above, in this embodiment, the audio installation files are saved in the server, that is, the audio installation files do not need to be saved in the master device 210, which can save the memory of the master device 210, reduce the number of slave devices 220 or add audio devices 230 The amount of communication data of the audio installation file is obtained from the main device 210 , reducing the operating load of the main device 210 , thereby reducing the operating load of the entire audio playback system 200 .
在一实施例中,当升级音频播放系统200中的音频软件至最新版本时,此时无论是升级音频播放系统200中音频软件,还是升级音频播放系统200和新增音频设备230中音频软件,在执行升级操作之前,还需要执行如下步骤:In one embodiment, when upgrading the audio software in the audio playback system 200 to the latest version, whether it is upgrading the audio software in the audio playback system 200, or upgrading the audio software in the audio playback system 200 and the newly added audio device 230, Before performing the upgrade operation, you need to perform the following steps:
S104、获取终端100中应用程序的版本信息,其中应用程序用于管理音频播放系统200;S104. Obtain the version information of the application program in the terminal 100, wherein the application program is used to manage the audio playback system 200;
S105、根据应用程序的版本信息,判断最新版本的音频软件是否与应用程序兼容;S105. According to the version information of the application program, determine whether the latest version of the audio software is compatible with the application program;
例如,音频播放系统200获取到应用程序的版本信息后,从服务器中获取兼容列表,其中,该兼容列表中记录有与最新版本的音频软件兼容的应用程序的版本信息。For example, after obtaining the version information of the application program, the audio playing system 200 obtains a compatibility list from the server, where the version information of the application program compatible with the latest version of the audio software is recorded in the compatibility list.
音频播放系统200判断该兼容列表中是否存在从终端100获取到的应用程序的版本信息。若兼容列表中存在从终端100获取到的应用程序的版本信息,则音频播放系统200判定最新版本的音频软件与应用程序兼容。而若兼容列表中不存在从终端100获取到的应用程序的版本信息,则音频播放系统200判定最新版本的音频软件与应用程序不兼容。The audio playing system 200 judges whether the version information of the application program obtained from the terminal 100 exists in the compatibility list. If the version information of the application program obtained from the terminal 100 exists in the compatibility list, the audio playback system 200 determines that the latest version of the audio software is compatible with the application program. And if the version information of the application program acquired from the terminal 100 does not exist in the compatibility list, the audio playback system 200 determines that the latest version of the audio software is not compatible with the application program.
当最新版本的音频软件与应用程序兼容时,升级音频播放系统200中的音频软件至最新版本,或者升级音频播放系统200和新增音频设备230中的音频软件至最新版本。When the latest version of the audio software is compatible with the application program, upgrade the audio software in the audio playback system 200 to the latest version, or upgrade the audio software in the audio playback system 200 and the new audio device 230 to the latest version.
当最新版本的音频软件与应用程序不兼容时,音频播放系统200向终端100发送应用升级指令,该应用升级指令中包括音频软件的最新版本信息。终端100在接收到应用升级指令之后,根据应用升级指令获取音频软件的最新版本信息,并从服务器获取与最新版本的音频软件兼容的应用程序的安装包,并根据该安装包升级应用程序。When the latest version of the audio software is not compatible with the application program, the audio playback system 200 sends an application upgrade instruction to the terminal 100, and the application upgrade instruction includes the latest version information of the audio software. After receiving the application upgrade instruction, the terminal 100 obtains the latest version information of the audio software according to the application upgrade instruction, obtains the installation package of the application program compatible with the latest version of the audio software from the server, and upgrades the application program according to the installation package.
同时,音频播放系统200从服务器获取对应最新版本信息的音频安装文件,并根据音频安装文件升级音频播放系统200中音频软件。或者,音频播放系统200在升级音频播放系统200内的音频软件至最新版本的同时,还向新增音频设备230发送升级指令,以使得新增音频设备230根据该升级指令升级音频软件至最新版本。At the same time, the audio playback system 200 obtains the audio installation file corresponding to the latest version information from the server, and upgrades the audio software in the audio playback system 200 according to the audio installation file. Or, when the audio playback system 200 upgrades the audio software in the audio playback system 200 to the latest version, it also sends an upgrade instruction to the newly added audio device 230, so that the newly added audio device 230 upgrades the audio software to the latest version according to the upgrade instruction .
这样可以避免音频播放系统200中音频软件升级至最新版本后,由于与终端100中应用程序不兼容而导致音频播放系统200无法正常响应,影响用户正常使用音频播放系统200。This can prevent the audio playback system 200 from being unable to respond normally due to incompatibility with the application program in the terminal 100 after the audio software in the audio playback system 200 is upgraded to the latest version, affecting the normal use of the audio playback system 200 by the user.
在一实施例中,在执行步骤S103之后,还需执行:In one embodiment, after performing step S103, it is also necessary to perform:
S106、判断所述音频播放系统200和新增音频设备230中音频软件是否成功升级至最新版本;S106. Determine whether the audio software in the audio playback system 200 and the newly added audio device 230 has been successfully upgraded to the latest version;
S107、若音频播放系统200和新增音频设备230中的音频软件未成功升级至最新版本,向终端用户发送升级失败提示信息。S107. If the audio software in the audio playback system 200 and the newly added audio device 230 is not successfully upgraded to the latest version, send an upgrade failure prompt message to the terminal user.
例如,当升级音频播放系统200和新增音频设备230中的音频软件时,若音频播放系统200中音频软件成功升级至最新版本,而新增音频设备230中音频软件未成功升级至最新版本,新增音频设备230将向音频播放系统200发送升级失败信息。音频播放系统200根据该升级失败信息生成升级失败提示信息,并将该升级失败提示信息发送至终端100,用于提示用户新增音频设备230中音频软件升级失败,并提示用户采用USB等其他方式升级新增音频设备230。For example, when upgrading the audio software in the audio playback system 200 and the new audio device 230, if the audio software in the audio playback system 200 is successfully upgraded to the latest version, but the audio software in the new audio device 230 is not successfully upgraded to the latest version, The newly added audio device 230 will send an upgrade failure message to the audio playback system 200 . The audio playback system 200 generates an upgrade failure prompt message according to the upgrade failure information, and sends the upgrade failure prompt message to the terminal 100, which is used to prompt the user to add audio equipment 230. The audio software upgrade fails, and prompts the user to use other methods such as USB. An audio device 230 is newly added in the upgrade.
又如,当升级音频播放系统200中音频软件时,若音频播放系统200中主设备210中音频软件成功升级至最新版本,而至少一个从设备220中音频软件未成功升级至最新版本,则未成功升级至最新版本的从设备220将向主设备210发送升级失败信息。主设备210将根据该升级失败信息生成升级失败提示信息,并将该升级失败提示信息发送至终端100。这样用户可以采用其他方式升级未成功升级的从设备220。For another example, when upgrading the audio software in the audio playback system 200, if the audio software in the master device 210 in the audio playback system 200 is successfully upgraded to the latest version, and at least one of the audio software in the equipment 220 is not successfully upgraded to the latest version, then no The slave device 220 that is successfully upgraded to the latest version will send an upgrade failure message to the master device 210 . The master device 210 will generate upgrade failure prompt information according to the upgrade failure information, and send the upgrade failure prompt information to the terminal 100 . In this way, the user can upgrade the failed slave device 220 in other ways.
由上可知,本实施例的音频软件升级方法中,当检测到有新增音频设备230接入所述音频播放系统200,且判断出新增音频设备230中音频软件的版本信息与音频播放系统200中音频软件的版本信息不同时,获取服务器中音频软件的最新版本信息,并判断新增音频设备230和音频播放系统200中音频软件的版本信息是否与最新版本信息相同,并生成判断结果;以及根据判断结果升级新增音频设备230和音频播放系统200中的音频软件至最新版本。该方法在检测到有新增音频设备230接入音频播放系统200,且新增音频设备230中音频软件的版本信息与音频播放系统200中音频软件的版本信息不同时,升级新增音频设备230和音频播放系统200中的音频软件至最新版本,减小音频播放系统200的运行负担,同时,可以使得整个音频播放系统200的音频软件版本一致,避免因版本不兼容而出现死机、不工作等现象。As can be seen from the above, in the audio software upgrade method of this embodiment, when it is detected that a new audio device 230 is connected to the audio playback system 200, and it is judged that the version information of the audio software in the new audio device 230 and the audio playback system When the version information of the audio software in 200 is different, obtain the latest version information of the audio software in the server, and judge whether the version information of the audio software in the newly added audio equipment 230 and the audio playback system 200 is the same as the latest version information, and generate a judgment result; And upgrade the audio software in the newly added audio device 230 and the audio playback system 200 to the latest version according to the judgment result. The method detects that there is a newly added audio device 230 to access the audio playback system 200, and when the version information of the audio software in the newly added audio device 230 is different from the version information of the audio software in the audio playback system 200, upgrade the newly added audio device 230 And the audio software in the audio playback system 200 to the latest version, reduce the operating burden of the audio playback system 200, and at the same time, can make the audio software version of the entire audio playback system 200 consistent, avoid crashes, non-working, etc. due to version incompatibility Phenomenon.
请参阅图5,图5为本发明实施例中音频软件升级装置的结构示意图。该音频软件升级装置40可以应用于音频播放系统。当音频播放系统包括多个设备时,该音频软件升级装置40具体可以安装于该音频播放系统的主设备中,其他从设备根据主设备的指令执行相应操作。在此,音频播放系统中各个设备以及新增音频设备包括音箱、手机、电视等具有音频播放功能的电子设备。Please refer to FIG. 5 . FIG. 5 is a schematic structural diagram of an audio software upgrading device in an embodiment of the present invention. The audio software upgrading device 40 can be applied to an audio playing system. When the audio playback system includes multiple devices, the audio software upgrade device 40 can be specifically installed in the master device of the audio playback system, and other slave devices perform corresponding operations according to the instructions of the master device. Here, the various devices in the audio playback system and the newly added audio devices include electronic devices with audio playback functions such as speakers, mobile phones, and televisions.
本实施例中的音频软件升级装置40包括版本信息获取模块41、判断结果生成模块42和软件升级模块43。The audio software upgrade device 40 in this embodiment includes a version information acquisition module 41 , a judgment result generation module 42 and a software upgrade module 43 .
下面将结合图5对本实施例中的音频软件升级装置40进行详细地说明。The audio software upgrading device 40 in this embodiment will be described in detail below with reference to FIG. 5 .
(1)版本信息获取模块41(1) Version information acquisition module 41
版本信息获取模块41,用于检测到新增音频设备中音频软件的版本信息与所述音频播放系统中音频软件的版本信息不同时,获取服务器中音频软件的最新版本信息。The version information acquisition module 41 is configured to acquire the latest version information of the audio software in the server when detecting that the version information of the audio software in the newly added audio device is different from the version information of the audio software in the audio playback system.
当新增音频设备需要加入至音频播放系统中时,新增音频设备将向音频播放系统发送接入请求。其中,该接入请求包括新增音频设备中音频软件的版本信息。When a new audio device needs to be added to the audio playback system, the new audio device will send an access request to the audio playback system. Wherein, the access request includes version information of the audio software in the newly added audio device.
版本信息获取模块41接收该接入请求,此时版本信息获取模块41检测出有新增音频设备接入音频播放系统。版本信息获取模块41从接入请求中获取新增音频设备中音频软件的版本信息,并判断新增音频设备中音频软件的版本信息是否与音频播放系统中音频软件的版本信息相同。The version information acquisition module 41 receives the access request, and at this time, the version information acquisition module 41 detects that a new audio device is connected to the audio playback system. The version information obtaining module 41 obtains the version information of the audio software in the newly added audio device from the access request, and judges whether the version information of the audio software in the newly added audio device is the same as the version information of the audio software in the audio playback system.
若版本信息获取模块41判断出新增音频设备中音频软件的版本信息与所述音频播放系统中音频软件的版本信息不同时,获取服务器中音频软件的最新版本信息。If the version information acquisition module 41 determines that the version information of the audio software in the newly added audio device is different from the version information of the audio software in the audio playback system, it will acquire the latest version information of the audio software in the server.
在一实施例中,版本信息获取模块41获取服务器中音频软件的版本信息列表,其中所述版本信息列表包括音频软件的多个版本信息;再获取多个版本信息中的最高的版本信息为最新版本信息。In one embodiment, the version information obtaining module 41 obtains the version information list of the audio software in the server, wherein the version information list includes a plurality of version information of the audio software; Version Information.
服务器预先存储音频软件的版本信息列表。当发布新版本的音频软件时,服务器会自动将新版本的音频软件的版本信息写入版本信息列表,且保存新版本的音频软件的音频安装文件。The server stores the version information list of the audio software in advance. When a new version of the audio software is released, the server will automatically write the version information of the new version of the audio software into the version information list, and save the audio installation file of the new version of the audio software.
当检测出新增音频设备中音频软件的版本信息与音频播放系统中音频软件的版本信息不同时,版本信息获取模块41向服务器获取音频软件的版本信息列表,并在版本信息列表中的多个版本信息中获取最高的版本信息为最新版本信息。When detecting that the version information of the audio software in the newly-added audio equipment is different from the version information of the audio software in the audio playback system, the version information acquisition module 41 obtains the version information list of the audio software from the server, and multiple The highest version information obtained in the version information is the latest version information.
(2)判断结果生成模块42(2) Judgment result generation module 42
判断结果生成模块42,用于判断所述新增音频设备和所述音频播放系统中音频软件的版本信息是否与所述最新版本信息相同,并生成判断结果。The judging result generation module 42 is used to judge whether the version information of the newly added audio device and the audio software in the audio playback system is the same as the latest version information, and generate a judging result.
在版本信息获取模块41获取到最新版本信息后,版本信息获取模块41将最新版本信息发送至判断结果生成模块42。判断结果生成模块42判断新增音频设备中音频软件的版本信息和音频播放系统中音频软件的版本信息是否与最新版本信息相同,并生成判断结果。After the version information obtaining module 41 obtains the latest version information, the version information obtaining module 41 sends the latest version information to the judgment result generating module 42 . The judgment result generation module 42 judges whether the version information of the audio software in the newly added audio device and the version information of the audio software in the audio playback system are the same as the latest version information, and generates a judgment result.
(3)软件升级模块43(3) Software upgrade module 43
软件升级模块43,用于根据所述判断结果升级所述新增音频设备和音频播放系统中的音频软件至最新版本。A software upgrade module 43, configured to upgrade the audio software in the newly added audio device and audio playback system to the latest version according to the judgment result.
在一实施例中,软件升级模块43用于根据判断结果从服务器获取对应最新版本信息的音频安装文件,并根据音频安装文件升级新增音频设备和音频播放系统中的音频软件。具体包括:In one embodiment, the software upgrade module 43 is used to obtain the audio installation file corresponding to the latest version information from the server according to the judgment result, and upgrade the audio software in the newly added audio device and the audio playback system according to the audio installation file. Specifically include:
D、当判断结果为新增音频设备和音频播放系统中音频软件的版本信息均与最新版本信息不同时,软件升级模块43升级新增音频设备和音频播放系统中的音频软件至最新版本,具体过程如下:D, when the judgment result is that the version information of the audio software in the newly added audio equipment and the audio playback system is all different from the latest version information, the software upgrade module 43 upgrades the audio software in the newly added audio equipment and the audio playback system to the latest version, specifically The process is as follows:
软件升级模块43从服务器获取对应最新版本信息的音频安装文件,并根据音频安装文件升级音频播放系统中音频软件。同时,软件升级模块43发送包括音频软件的最新版本信息的升级指令至新增音频设备,以使得新增音频设备根据升级指令从服务器获取对应最新版本信息的音频安装文件,并根据音频安装文件升级新增音频设备中音频软件,以完成对新增音频设备中音频软件的升级操作。The software upgrade module 43 obtains the audio installation file corresponding to the latest version information from the server, and upgrades the audio software in the audio playback system according to the audio installation file. Simultaneously, software upgrading module 43 sends the upgrading instruction that comprises the latest version information of audio software to newly added audio equipment, so that newly added audio equipment obtains the audio installation file corresponding to the latest version information from server according to upgrading instruction, and upgrades according to audio installation file Add the audio software in the audio device to complete the upgrade operation of the audio software in the newly added audio device.
E、当判断结果为新增音频设备中音频软件的版本信息与最新版本信息不同时,软件升级模块43升级所述新增音频设备中的音频软件至最新版本,具体过程如下:E, when the judgment result is that the version information of the audio software in the newly added audio equipment is different from the latest version information, the software upgrading module 43 upgrades the audio software in the described newly added audio equipment to the latest version, and the specific process is as follows:
软件升级模块43发送包括音频软件的最新版本信息的升级指令至新增音频设备,以使得新增音频设备根据升级指令从服务器获取对应最新版本信息的音频安装文件,并根据音频安装文件升级新增音频设备中音频软件,以完成对新增音频设备中音频软件的升级操作。The software upgrade module 43 sends the upgrade instruction that includes the latest version information of the audio software to the newly-added audio equipment, so that the newly-added audio equipment obtains the audio installation file corresponding to the latest version information from the server according to the upgrade instruction, and upgrades the new audio installation file according to the audio installation file. Audio software in the audio device, to complete the upgrade operation of the audio software in the newly added audio device.
F、当判断结果为音频播放系统中音频软件的版本信息与最新版本信息不同时,软件升级模块43升级音频播放系统中的音频软件至最新版本,具体过程如下:F, when the judgment result is that the version information of the audio software in the audio playback system is different from the latest version information, the software upgrade module 43 upgrades the audio software in the audio playback system to the latest version, and the specific process is as follows:
软件升级模块43从服务器获取对应最新版本信息的音频安装文件,并根据音频安装文件升级音频播放系统中音频软件。The software upgrade module 43 obtains the audio installation file corresponding to the latest version information from the server, and upgrades the audio software in the audio playback system according to the audio installation file.
由上可知,在该实施例中,音频安装文件保存在服务器中,即音频播放系统的主设备中不需要保存音频安装文件,这样可以节省主设备的内存,减少了从设备或者新增音频设备从主设备获取音频安装文件的通信数据量,降低主设备运行负担。As can be seen from the above, in this embodiment, the audio installation file is stored in the server, that is, the audio installation file does not need to be saved in the master device of the audio playback system, which can save the memory of the master device, reduce the number of slave devices or add new audio devices. Obtain the amount of communication data of the audio installation file from the main device, reducing the operating burden of the main device.
在一实施例中,如图6所示,图6为本发明实施例中音频软件升级装置的另一结构示意图。图6所示的音频软件升级装置40还包括应用版本获取模块44和版本兼容判断模块45。In an embodiment, as shown in FIG. 6 , FIG. 6 is another schematic structural diagram of an audio software upgrading device in an embodiment of the present invention. The audio software upgrading device 40 shown in FIG. 6 also includes an application version obtaining module 44 and a version compatibility judging module 45 .
当判断结果生成模块42生成的判断结果为新增音频设备中音频软件的版本信息与最新版本信息不同时,此时只有新接入的新增音频设备中音频软件需要升级,判断结果生成模块42发送第三信号至软件升级模块43,以使得软件升级模块43根据第三信号升级新接入的新增音频设备中音频软件至最新版本。When the judgment result generated by the judgment result generation module 42 is that the version information of the audio software in the newly added audio device is different from the latest version information, only the audio software in the newly added audio device needs to be upgraded at this moment, and the judgment result generation module 42 Send the third signal to the software upgrade module 43, so that the software upgrade module 43 upgrades the audio software in the newly added audio device to the latest version according to the third signal.
当判断结果生成模块42生成的判断结果为新增音频设备和音频播放系统中音频软件的版本信息均与最新版本信息不同,或者为音频播放系统中音频软件的版本信息与最新版本信息不同时,即音频播放系统和新增音频设备中音频软件都需要升级,或者音频播放系统中音频软件需要升级,判断结果生成模块42向应用版本获取模块44发送第四信号。When the judgment result generated by the judgment result generation module 42 is that the version information of the audio software in the new audio equipment and the audio playback system is different from the latest version information, or when the version information of the audio software in the audio playback system is different from the latest version information, That is, the audio software in the audio playback system and the newly added audio device needs to be upgraded, or the audio software in the audio playback system needs to be upgraded, and the judgment result generation module 42 sends a fourth signal to the application version acquisition module 44 .
应用版本获取模块44根据第四信号获取终端中应用程序的版本信息,其中应用程序用于管理音频播放系统。The application version obtaining module 44 obtains the version information of the application program in the terminal according to the fourth signal, wherein the application program is used to manage the audio playback system.
应用版本获取模块44将应用程序的版本信息发送至版本兼容判断模块45。版本兼容判断模块45将根据应用程序的版本信息判断最新版本的音频软件是否与应用程序兼容。The application version acquiring module 44 sends the version information of the application program to the version compatibility judging module 45 . The version compatibility judging module 45 will judge whether the latest version of the audio software is compatible with the application program according to the version information of the application program.
若版本兼容判断模块45判断出最新版本的音频软件与应用程序兼容时,版本兼容判断模块45向软件升级模块43发送第五信号,以使得软件升级模块44根据第五信号升级音频播放系统中音频软件至最新版本,或者升级音频播放系统和新增音频设备中的音频软件至最新版本。If the version compatible judging module 45 judges that the latest version of the audio software is compatible with the application program, the version compatible judging module 45 sends the fifth signal to the software upgrading module 43, so that the software upgrading module 44 upgrades the audio in the audio playback system according to the fifth signal Update the software to the latest version, or upgrade the audio software in the audio playback system and new audio devices to the latest version.
若版本兼容判断模块45判断出最新版本的音频软件与应用程序不兼容,版本兼容判断模块45向软件升级模块43发送第六信号。软件升级模块43接收到第六信号后,将向终端发送应用升级指令,该应用升级指令中包括音频软件的最新版本信息,以使得终端根据应用升级指令升级应用程序至与最新版本的音频软件兼容的版本。If the version compatibility judging module 45 judges that the latest version of the audio software is not compatible with the application program, the version compatibility judging module 45 sends a sixth signal to the software upgrading module 43 . After the software upgrade module 43 receives the sixth signal, it will send an application upgrade instruction to the terminal, which includes the latest version information of the audio software, so that the terminal upgrades the application program to be compatible with the latest version of the audio software according to the application upgrade instruction. version of.
同时,软件升级模块43从服务器获取对应最新版本信息的音频安装文件,并根据音频安装文件升级音频播放系统中音频软件。或者,软件升级模块43在升级音频播放系统中的音频软件至最新版本的同时,还向新接入的新增音频设备发送升级指令,以使得新增音频设备根据该升级指令升级音频软件至最新版本。Meanwhile, the software upgrade module 43 obtains the audio installation file corresponding to the latest version information from the server, and upgrades the audio software in the audio playback system according to the audio installation file. Or, when the software upgrade module 43 upgrades the audio software in the audio playback system to the latest version, it also sends an upgrade instruction to the newly added audio equipment, so that the newly added audio equipment upgrades the audio software to the latest version according to the upgrade instruction. Version.
这样可以避免音频播放系统中音频软件升级至最新版本后,由于与终端中应用程序不兼容而导致音频播放系统无法正常响应,影响用户正常使用音频播放系统。In this way, after the audio software in the audio playback system is upgraded to the latest version, the audio playback system cannot respond normally due to incompatibility with the application program in the terminal, which affects the normal use of the audio playback system by the user.
在一实施例中,如图6所示,图6所示的音频软件升级装置40还包括提示信息发送模块46。当软件升级模块43根据判断结果升级新增音频设备和音频播放系统中的音频软件至最新版本之后,提示信息发送模块46判断音频播放系统和新增音频设备中音频软件是否成功升级至最新版本。若提示信息发送模块46判断出音频播放系统和新增音频设备中的音频软件未成功升级至最新版本,向终端用户发送升级失败提示信息。In an embodiment, as shown in FIG. 6 , the audio software upgrading device 40 shown in FIG. 6 further includes a prompt information sending module 46 . After the software upgrade module 43 upgrades the audio software in the newly added audio equipment and the audio playback system to the latest version according to the judgment result, the prompt information sending module 46 judges whether the audio software in the audio playback system and the newly added audio equipment is successfully upgraded to the latest version. If the prompt information sending module 46 judges that the audio software in the audio playback system and the newly added audio device has not been successfully upgraded to the latest version, it will send an upgrade failure prompt message to the end user.
由上可知,本实施例的音频软件升级装置40中,当检测到有新增音频设备接入所述音频播放系统,且判断出新增音频设备中音频软件的版本信息与音频播放系统中音频软件的版本信息不同时,版本信息获取模块41获取服务器中音频软件的最新版本信息,并由判断结果生成模块42判断新增音频设备和音频播放系统中音频软件的版本信息是否与最新版本信息相同,并生成判断结果;软件升级模块43根据判断结果升级新增音频设备和音频播放系统中的音频软件至最新版本。该装置可以减小音频播放系统的运行负担,同时,可以使得整个音频播放系统的音频软件版本一致,避免因版本不兼容而出现死机、不工作等现象。As can be seen from the above, in the audio software upgrade device 40 of this embodiment, when it is detected that a new audio device is connected to the audio playback system, and it is determined that the version information of the audio software in the new audio device is the same as the audio version in the audio playback system When the version information of software is different, the version information acquisition module 41 obtains the latest version information of the audio software in the server, and judges whether the version information of the audio software in the new audio equipment and the audio playback system is identical with the latest version information by the judgment result generation module 42 , and generate a judgment result; the software upgrade module 43 upgrades the audio software in the newly added audio equipment and the audio playback system to the latest version according to the judgment result. The device can reduce the operating burden of the audio playback system, and at the same time, can make the audio software versions of the entire audio playback system consistent, and avoid crashes and non-working phenomena due to version incompatibility.
本发明还提供一种音频播放设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,该处理器执行该计算机程序时实现上述任一音频软件升级方法。The present invention also provides an audio playback device, including a memory, a processor, and a computer program stored in the memory and operable on the processor. When the processor executes the computer program, any audio software upgrading method described above is implemented.
在本实施例中,音频播放设备为音频播放系统中的一个设备,其中,该音频播放系统包括至少一个设备。当音频播放系统包括至少两个设备时,其中一个为主设备,其他为从设备,从设备与主设备连接以在主设备的控制下完成相应操作。此时,主设备可以为本实施例中的音频播放设备。另外,该音频播放设备可以为音箱、手机、电视等具有音频播放功能的电子设备。In this embodiment, the audio playback device is a device in an audio playback system, wherein the audio playback system includes at least one device. When the audio playback system includes at least two devices, one of which is a master device and the other is a slave device, and the slave devices are connected to the master device to complete corresponding operations under the control of the master device. At this point, the master device may be the audio playback device in this embodiment. In addition, the audio playback device may be an electronic device with an audio playback function such as a speaker, a mobile phone, and a television.
请参考图7,该音频播放设备50可以包括通讯模块51、包括有一个或一个以上计算机可读存储介质的存储器52以及一个或一个以上的扬声器54,包括有一个或者一个以上处理核心的处理器55、音频电路53以及电源56等部件。本领域技术人员可以理解,图7中示出的音频播放设备结构并不构成对音频播放设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Please refer to FIG. 7, the audio playback device 50 may include a communication module 51, a memory 52 including one or more computer-readable storage media, and one or more speakers 54, including a processor with one or more processing cores 55, audio circuit 53 and power supply 56 and other components. Those skilled in the art can understand that the structure of the audio playback device shown in Figure 7 does not constitute a limitation to the audio playback device, and may include more or less components than those shown in the illustration, or combine certain components, or different components layout.
通讯模块51可用于收发信息过程中,信号的接收和发送。特别地,通讯模块51接收终端发送的信号,并将该数据获取请求交由一个或者一个以上处理器55处理。同时,通讯模块51将处理器55发出的反馈信号发送给终端。The communication module 51 can be used for receiving and sending signals during the process of sending and receiving information. In particular, the communication module 51 receives a signal sent by the terminal, and hands over the data acquisition request to one or more processors 55 for processing. At the same time, the communication module 51 sends the feedback signal sent by the processor 55 to the terminal.
通讯模块51还用于接收其他音频设备发送的指令、信息等。比如,当有新增音频设备需要与音频播放设备50连接时,新增音频设备需要向音频播放设备50发送连接请求,该通讯模块51将接收该接入请求,并发送连接反馈指令等至新增音频设备以使得新增音频设备连接至音频播放设备50。The communication module 51 is also used for receiving instructions, information, etc. sent by other audio devices. For example, when there is a new audio device that needs to be connected to the audio playback device 50, the new audio device needs to send a connection request to the audio playback device 50, and the communication module 51 will receive the access request and send a connection feedback instruction to the new audio playback device. Adding an audio device such that an additional audio device is connected to the audio playback device 50 .
存储器52可用于存储软件程序以及模块。处理器55通过运行存储在存储器52的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器52可包括存储数据区,该存储数据区可存储根据音频播放设备50的使用所创建的数据(如音频数据缓存)等。Memory 52 may be used to store software programs as well as modules. The processor 55 executes various functional applications and data processing by executing software programs and modules stored in the memory 52 . The memory 52 may include a storage data area, and the storage data area may store data created according to the use of the audio playback device 50 (such as audio data cache) and the like.
音频电路53可将存储器52中所缓存的音频数据转换成电信号,传输到扬声器54,由扬声器54转换为声音信号输出。The audio circuit 53 can convert the audio data buffered in the memory 52 into an electrical signal, transmit it to the speaker 54, and the speaker 54 converts it into an audio signal for output.
扬声器54在音频播放设备50中是一个最薄弱的器件,而对于音频效果而言,它又是一个最重要的部件。音频电能通过电磁,压电或静电效应,使其纸盆或膜片振动并与周围的空气产生共振(共鸣)而发出声音。The loudspeaker 54 is the weakest device in the audio playback device 50, but it is the most important component for the audio effect. Audio electric energy makes its paper cone or diaphragm vibrate and resonate (resonate) with the surrounding air through electromagnetic, piezoelectric or electrostatic effects to produce sound.
处理器55是音频播放设备50的控制中心,利用各种接口和线路连接整个音频播放设备50的各个部分,通过运行或执行存储在存储器52内的模块,以及调用存储在存储器52内的数据,执行各种功能和处理数据,从而对音频播放设备50进行整体监控。The processor 55 is the control center of the audio playback device 50, utilizes various interfaces and lines to connect the various parts of the entire audio playback device 50, by running or executing modules stored in the memory 52, and calling data stored in the memory 52, Various functions are performed and data is processed, thereby performing overall monitoring of the audio playback device 50 .
音频播放设备50还包括给各个部件供电的电源56(比如电池)。优选的,电源56可以通过电源管理系统与处理器55逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源56还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The audio playback device 50 also includes a power source 56 (such as a battery) for powering various components. Preferably, the power supply 56 can be logically connected to the processor 55 through a power management system, so that functions such as charging, discharging, and power consumption management can be realized through the power management system. The power supply 56 may also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.
尽管未示出,音频播放设备50还可以包括无线保真模块、蓝牙模块等。Although not shown, the audio playback device 50 may also include a Wi-Fi module, a Bluetooth module, and the like.
具体在本实施例中,音频播放设备50中的处理器55会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行文件加载到存储器52中,并由处理器55来运行存储在存储器52中的模块,从而实现各种功能:Specifically in this embodiment, the processor 55 in the audio playback device 50 will load the executable file corresponding to the process of one or more application programs into the memory 52 according to the following instructions, and run it by the processor 55 modules stored in the memory 52, thereby realizing various functions:
检测到新增音频设备中音频软件的版本信息与所述音频播放系统中音频软件的版本信息不同,获取服务器中音频软件的最新版本信息;判断所述新增音频设备和所述音频播放系统中音频软件的版本信息是否与所述最新版本信息相同,并生成判断结果;以及根据所述判断结果升级所述新增音频设备和音频播放系统中的音频软件至最新版本。Detecting that the version information of the audio software in the newly-added audio equipment is different from the version information of the audio software in the audio playback system, obtaining the latest version information of the audio software in the server; judging the new audio equipment and the audio playback system Whether the version information of the audio software is the same as the latest version information, and generate a judgment result; and upgrade the audio software in the newly added audio equipment and audio playback system to the latest version according to the judgment result.
由上可知,本发明实施例提供了一种音频播放设备50,通过在检测到有新增音频设备接入音频播放系统,且新增音频设备中音频软件的版本信息与音频播放系统中音频软件的版本信息不同时,升级新增音频设备和音频播放系统中的音频软件至最新版本,减小音频播放系统的运行负担,同时,可以使得整个音频播放系统的音频软件版本一致,避免因版本不兼容而出现死机、不工作等现象。As can be seen from the above, the embodiment of the present invention provides an audio playback device 50, by detecting that there is a new audio device connected to the audio playback system, and the version information of the audio software in the new audio device and the audio software in the audio playback system When the version information of the audio system is different, upgrade the new audio equipment and the audio software in the audio playback system to the latest version to reduce the operating burden of the audio playback system. Compatible and crashes, does not work and so on.
本发明实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。上述提到的存储介质可以是只读存储器,磁盘或光盘等。上述的各装置或系统,可以执行相应方法实施例中的方法。Each functional module in the embodiment of the present invention may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. If the integrated modules are realized in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, and the like. Each of the above devices or systems may execute the methods in the corresponding method embodiments.
综上所述,虽然本发明已以优选实施例揭露如上,但上述优选实施例并非用以限制本发明,本领域的普通技术人员,在不脱离本发明的精神和范围内,均可作各种更动与润饰,因此本发明的保护范围以权利要求界定的范围为准。In summary, although the present invention has been disclosed above with preferred embodiments, the above preferred embodiments are not intended to limit the present invention, and those of ordinary skill in the art can make various modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be determined by the scope defined in the claims.
Claims (11)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710209400.7A CN106970815A (en) | 2017-03-31 | 2017-03-31 | Audio software upgrade method and device, audio playback device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710209400.7A CN106970815A (en) | 2017-03-31 | 2017-03-31 | Audio software upgrade method and device, audio playback device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN106970815A true CN106970815A (en) | 2017-07-21 |
Family
ID=59336322
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710209400.7A Pending CN106970815A (en) | 2017-03-31 | 2017-03-31 | Audio software upgrade method and device, audio playback device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106970815A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109068211A (en) * | 2018-08-01 | 2018-12-21 | 广东思派康电子科技有限公司 | TWS earphone and computer readable storage medium thereof |
| CN110719542A (en) * | 2019-10-31 | 2020-01-21 | 歌尔科技有限公司 | TWS earphone, upgrading method and device thereof, and computer storage medium |
| US12327169B2 (en) | 2018-03-23 | 2025-06-10 | Google Llc | Controlling a robot based on free-form natural language input |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102546675A (en) * | 2010-12-08 | 2012-07-04 | 鸿富锦精密工业(深圳)有限公司 | Software upgrading system and method |
| CN104639647A (en) * | 2015-02-12 | 2015-05-20 | 广东欧珀移动通信有限公司 | A speaker upgrading method and device |
| CN105389183A (en) * | 2015-11-04 | 2016-03-09 | 广东欧珀移动通信有限公司 | Method and device for correspondence between application program version and smart speaker software version |
| CN106028142A (en) * | 2016-05-25 | 2016-10-12 | 广东欧珀移动通信有限公司 | Upgrading control method and upgrading control apparatus for playing devices |
-
2017
- 2017-03-31 CN CN201710209400.7A patent/CN106970815A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102546675A (en) * | 2010-12-08 | 2012-07-04 | 鸿富锦精密工业(深圳)有限公司 | Software upgrading system and method |
| CN104639647A (en) * | 2015-02-12 | 2015-05-20 | 广东欧珀移动通信有限公司 | A speaker upgrading method and device |
| CN105389183A (en) * | 2015-11-04 | 2016-03-09 | 广东欧珀移动通信有限公司 | Method and device for correspondence between application program version and smart speaker software version |
| CN106028142A (en) * | 2016-05-25 | 2016-10-12 | 广东欧珀移动通信有限公司 | Upgrading control method and upgrading control apparatus for playing devices |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US12327169B2 (en) | 2018-03-23 | 2025-06-10 | Google Llc | Controlling a robot based on free-form natural language input |
| CN109068211A (en) * | 2018-08-01 | 2018-12-21 | 广东思派康电子科技有限公司 | TWS earphone and computer readable storage medium thereof |
| CN109068211B (en) * | 2018-08-01 | 2020-06-05 | 广东思派康电子科技有限公司 | TWS earphone and computer readable storage medium thereof |
| CN110719542A (en) * | 2019-10-31 | 2020-01-21 | 歌尔科技有限公司 | TWS earphone, upgrading method and device thereof, and computer storage medium |
| CN110719542B (en) * | 2019-10-31 | 2021-06-04 | 歌尔科技有限公司 | TWS earphone, upgrading method and device thereof, and computer storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6713035B2 (en) | Far-field voice function implementation method, equipment, system, storage medium, and program | |
| JP6742465B2 (en) | Method, device and bluetooth speaker for continuous wakeup delay reduction in bluetooth speaker | |
| KR102163357B1 (en) | Application management method and apparatus | |
| CN110191215A (en) | Terminal and processing method | |
| CN107018022A (en) | Processing method, device and terminal for software upgrade | |
| CN107025121A (en) | Method for upgrading software, device and electronic installation | |
| CN107025120A (en) | Software upgrading processing method, device and terminal | |
| CN107038046A (en) | Upgrade method, device and the terminal of audio frequency broadcast system | |
| CN107015828A (en) | Audio software upgrade method, application program upgrade method, device and system | |
| CN106990986B (en) | Software upgrading control method and device and audio playing equipment | |
| CN110768382A (en) | Wireless charging method, device, storage medium and electronic device | |
| CN106970815A (en) | Audio software upgrade method and device, audio playback device | |
| US20220191287A1 (en) | Multimedia Resource Playing Method, Apparatus, Terminal, and System | |
| CN102830943B (en) | Method and system for playing multimedia files in external USB (universal serial bus) storage on the basis of Android platform | |
| CN111399874A (en) | A system upgrade method, device, storage medium and smart wearable device | |
| CN106997301B (en) | Software upgrading method and device and electronic device | |
| US20140375419A1 (en) | Method and apparatus for detecting accessories in electronic devices | |
| CN107257406A (en) | A kind of charging and the method and terminal of voice data processing | |
| WO2020107177A1 (en) | Audio resource invoking method and apparatus, and electronic device | |
| CN106970813A (en) | Software upgrade control method, device and electronic equipment | |
| CN107018192A (en) | Upgrade method and device of audio playback system and audio playback equipment | |
| CN107291415A (en) | A kind of charging and the method and terminal of voice data processing | |
| CN112799494B (en) | Equipment control method and equipment | |
| CN106231423A (en) | The control method of playing audio/video and system | |
| US20130077609A1 (en) | Audio communications system and methods using personal wireless communication devices |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170721 |
|
| RJ01 | Rejection of invention patent application after publication |