[go: up one dir, main page]

CN106970813A - Software upgrade control method, device and electronic equipment - Google Patents

Software upgrade control method, device and electronic equipment Download PDF

Info

Publication number
CN106970813A
CN106970813A CN201710208243.8A CN201710208243A CN106970813A CN 106970813 A CN106970813 A CN 106970813A CN 201710208243 A CN201710208243 A CN 201710208243A CN 106970813 A CN106970813 A CN 106970813A
Authority
CN
China
Prior art keywords
audio frequency
audio
frequency apparatus
equipment group
played
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
Application number
CN201710208243.8A
Other languages
Chinese (zh)
Inventor
彭学锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710208243.8A priority Critical patent/CN106970813A/en
Publication of CN106970813A publication Critical patent/CN106970813A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates while running

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • General Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The embodiment of the invention provides a software upgrading control method, a device and electronic equipment, wherein the method divides a plurality of audio equipment into a first equipment group and a second equipment group according to the attribute of the audio equipment; controlling the audio equipment in the first equipment group to carry out software upgrading, and controlling the audio equipment in the second equipment group to play the current audio data to be played; after the audio equipment in the first equipment group finishes software upgrading, controlling the audio equipment in the first equipment group to play the current audio data to be played; and controlling the audio equipment in the second equipment group to carry out software upgrading. According to the scheme, in the whole software upgrading process of the audio playing system, the playing of the audio data is continuously carried out, and no interruption is generated. The software upgrading of the audio equipment can not affect the normal playing of the audio playing system, so that the stability of the audio playing system for playing the audio data can be improved.

Description

软件升级控制方法、装置及电子设备Software upgrade control method, device and electronic equipment

技术领域technical field

本发明涉及通信技术领域,特别涉及一种软件升级控制方法、装置及电子设备。The present invention relates to the field of communication technology, in particular to a software upgrade control method, device and electronic equipment.

背景技术Background technique

随着信息技术的快速发展,智能影音播放设备越来越普及。例如,由多个音频设备组成音频播放系统,正在应用于更多的用户。With the rapid development of information technology, intelligent audio-visual playback equipment is becoming more and more popular. For example, an audio playback system composed of multiple audio devices is being applied to more users.

上述音频播放系统中,每个音频设备都具有独立的存储器和处理器。该存储器中可以存储有音频播放软件。处理器调用该音频播放软件控制该音频设备播放音乐。In the above audio playback system, each audio device has an independent memory and processor. Audio playback software can be stored in the memory. The processor invokes the audio playing software to control the audio device to play music.

为了提供更优质的音频播放效果,需要经常对音频播放系统中的音频设备进行软件升级。当前,在进行软件升级的过程中,音频设备需要中断播放,由此导致音频播放系统的正常播放被中断,从而造成音频播放系统播放音乐的稳定性降低。In order to provide better audio playback effects, it is necessary to frequently upgrade the software of the audio equipment in the audio playback system. At present, during the software upgrade process, the audio device needs to interrupt the playback, which causes the normal playback of the audio playback system to be interrupted, thereby reducing the stability of the music played by the audio playback system.

发明内容Contents of the invention

本发明实施例提供一种软件升级控制方法、装置及电子设备,可以提高音频播放系统播放音频数据的稳定性。Embodiments of the present invention provide a software upgrade control method, device, and electronic equipment, which can improve the stability of audio data played by an audio playback system.

本发明实施例提供一种软件升级控制方法,包括:An embodiment of the present invention provides a software upgrade control method, including:

根据音频设备的属性将多个音频设备划分为第一设备组和第二设备组,该属性包括音频设备的音效参数、工作状态以及所处的环境信息;Dividing multiple audio devices into a first device group and a second device group according to the attributes of the audio devices, the attributes including sound effect parameters, working status and environmental information of the audio devices;

控制该第一设备组中的音频设备进行软件升级,并控制该第二设备组中的音频设备播放当前的待播放音频数据;Control the audio devices in the first device group to perform software upgrades, and control the audio devices in the second device group to play the current audio data to be played;

当该第一设备组中的音频设备完成软件升级后,控制该第一设备组中的音频设备播放当前的待播放音频数据;After the audio devices in the first device group complete the software upgrade, control the audio devices in the first device group to play the current audio data to be played;

控制该第二设备组中的音频设备进行软件升级。The audio devices in the second device group are controlled to upgrade software.

相应的,本发明实施例还提供一种软件升级控制装置,包括:Correspondingly, the embodiment of the present invention also provides a software upgrade control device, including:

分组模块,用于根据音频设备的属性将多个音频设备划分为第一设备组和第二设备组,该属性包括音频设备的音效参数、工作状态以及所处的环境信息;A grouping module, configured to divide a plurality of audio devices into a first device group and a second device group according to the attributes of the audio devices, the attributes including sound effect parameters, working status and environmental information of the audio devices;

第一控制模块,用于控制该第一设备组中的音频设备进行软件升级,并控制该第二设备组中的音频设备播放当前的待播放音频数据;The first control module is used to control the audio devices in the first device group to perform software upgrades, and control the audio devices in the second device group to play the current audio data to be played;

第二控制模块,用于当该第一设备组中的音频设备完成软件升级后,控制该第一设备组中的音频设备播放当前的待播放音频数据;The second control module is used to control the audio devices in the first device group to play the current audio data to be played after the audio devices in the first device group complete the software upgrade;

第三控制模块,用于控制该第二设备组中的音频设备进行软件升级。The third control module is used to control the audio equipment in the second equipment group to upgrade the software.

相应的,本发明实施例还提供一种电子设备,包括:Correspondingly, an embodiment of the present invention also provides an electronic device, including:

触摸屏,用于接收用户的触摸操作;The touch screen is used to receive the user's touch operation;

存储有可执行程序代码的存储器;a memory storing executable program code;

与该存储器耦合的处理器;a processor coupled to the memory;

该处理器调用该存储器中存储的该可执行程序代码,执行上述软件升级控制方法。The processor invokes the executable program code stored in the memory to execute the above software upgrade control method.

本发明实施例提供的软件升级控制方法,根据音频设备的属性将多个音频设备划分为第一设备组和第二设备组;控制该第一设备组中的音频设备进行软件升级,并控制该第二设备组中的音频设备播放当前的待播放音频数据;当该第一设备组中的音频设备完成软件升级后,控制该第一设备组中的音频设备播放当前的待播放音频数据;控制该第二设备组中的音频设备进行软件升级。该方案在音频播放系统的整个软件升级过程中,音频数据的播放是持续进行的,没有产生中断。音频设备的软件升级不会对音频播放系统的正常播放造成影响,从而,能够提高音频播放系统播放音频数据的稳定性。The software upgrade control method provided by the embodiment of the present invention divides multiple audio devices into a first device group and a second device group according to the attributes of the audio devices; controls the audio devices in the first device group to perform software upgrades, and controls the The audio device in the second device group plays the current audio data to be played; when the audio device in the first device group completes the software upgrade, control the audio device in the first device group to play the current audio data to be played; control The audio devices in the second device group perform software upgrades. In this solution, during the entire software upgrading process of the audio playing system, the playing of the audio data is continuously carried out without interruption. The software upgrade of the audio device will not affect the normal playback of the audio playback system, thereby improving the stability of the audio data played by the audio playback system.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍。显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following will briefly introduce the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to these drawings without creative work.

图1是本发明实施例提供的软件升级控制方法的流程示意图。Fig. 1 is a schematic flowchart of a software upgrade control method provided by an embodiment of the present invention.

图2是本发明实施例提供的软件升级控制方法的另一流程示意图。Fig. 2 is another schematic flowchart of a software upgrade control method provided by an embodiment of the present invention.

图3是本发明实施例提供的软件升级控制方法的又一流程示意图。Fig. 3 is another schematic flowchart of a software upgrade control method provided by an embodiment of the present invention.

图4是本发明实施例提供的软件升级控制方法的应用场景示意图。Fig. 4 is a schematic diagram of an application scenario of a software upgrade control method provided by an embodiment of the present invention.

图5是本发明实施例提供的软件升级控制方法的另一应用场景示意图。Fig. 5 is a schematic diagram of another application scenario of the software upgrade control method provided by the embodiment of the present invention.

图6是本发明实施例提供的软件升级控制方法的又一应用场景示意图。Fig. 6 is a schematic diagram of another application scenario of the software upgrade control method provided by the embodiment of the present invention.

图7是本发明实施例提供的软件升级控制装置的结构示意图。Fig. 7 is a schematic structural diagram of a software upgrade control device provided by an embodiment of the present invention.

图8是本发明实施例提供的软件升级控制装置的另一结构示意图。Fig. 8 is another schematic structural diagram of a software upgrade control device provided by an embodiment of the present invention.

图9是本发明实施例提供的软件升级控制装置的又一结构示意图。Fig. 9 is another schematic structural diagram of a software upgrade control device provided by an embodiment of the present invention.

图10是本发明实施例提供的电子设备的结构示意图。Fig. 10 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.

图11是本发明实施例提供的电子设备的另一结构示意图。Fig. 11 is another schematic structural diagram of an electronic device provided by 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 drawings in the embodiments of the present invention. Apparently, the described embodiments are only some of the embodiments of the present invention, but not all of them. 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", "third", etc. (if any) in the description and claims of the present invention and the above drawings are used to distinguish similar objects and not necessarily to describe a specific order or sequentially. It should be understood that the items so described are interchangeable under appropriate circumstances. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, a method comprising a series of steps, or an apparatus comprising a series of modules or units, an electronic device, a system are not necessarily limited to those steps or modules or units clearly listed, and may also include steps not clearly listed or modules or units, may also include other steps or modules or units inherent to these processes, methods, devices, electronic equipment or systems.

本发明实施例提供一种软件升级控制方法、装置及电子设备,以下将分别进行详细说明。Embodiments of the present invention provide a software upgrade control method, device, and electronic equipment, which will be described in detail below.

如图1所示,该软件升级控制方法,可以包括以下步骤:As shown in Figure 1, the software upgrade control method may include the following steps:

S110,根据音频设备的属性将多个音频设备划分为第一设备组和第二设备组,该属性包括音频设备的音效参数、工作状态以及所处的环境信息。S110. Divide a plurality of audio devices into a first device group and a second device group according to the attributes of the audio devices, where the attributes include sound effect parameters, working status and environment information of the audio devices.

实际应用中,该软件升级控制方法应用于音频播放系统中。音频播放系统可以包括服务器、控制设备以及多个音频设备。服务器、控制设备以及多个音频设备可以互相通信。In practical applications, the software upgrade control method is applied to an audio playback system. The audio playback system may include a server, a control device, and multiple audio devices. The server, the control device, and multiple audio devices can communicate with each other.

其中,服务器可以是具有网络通信功能的网络服务器,服务器也可以是不具有网络通信功能的本地服务器。控制设备可以是智能手机、平板电脑等设备,控制设备也可以是具有管理功能的音频设备。音频设备可以是具有音频播放功能的电子设备,例如音箱。Wherein, the server may be a network server with network communication function, or the server may be a local server without network communication function. The control device can be a device such as a smart phone or a tablet computer, and the control device can also be an audio device with a management function. The audio device may be an electronic device capable of playing audio, such as a sound box.

其中,音频设备的属性可以包括音频设备的音效参数、工作状态以及所处的环境信息。音效参数可以包括高音、低音、左声道、右声道等参数。The properties of the audio device may include sound effect parameters, working status and environment information of the audio device. The sound effect parameters may include treble, bass, left channel, right channel and other parameters.

工作状态包括音频设备处于播放状态还是空闲状态。播放状态表示音频设备当前正在播放音频数据,空闲状态表示音频设备当前未播放音频数据。The working state includes whether the audio device is playing or idle. The playing state indicates that the audio device is currently playing audio data, and the idle state indicates that the audio device is not currently playing audio data.

环境信息包括音频设备所处的位置。例如,音频设备可以布置在客厅、卧室、厨房等位置。Environmental information includes where the audio device is located. For example, audio equipment can be arranged in the living room, bedroom, kitchen and other positions.

参考图4,音频播放系统包括服务器、智能手机以及四台音箱A、B、C、D。其中,音箱A、B、C、D作为音频设备。智能手机作为控制设备,用于对音箱A、B、C、D进行管理和控制。服务器、智能手机以及四台音箱A、B、C、D均接入同一个无线接入点(例如,路由器),通过该无线接入点互相通信。Referring to Fig. 4, the audio playback system includes a server, a smart phone, and four speakers A, B, C, and D. Among them, speakers A, B, C, and D are used as audio equipment. The smart phone is used as a control device to manage and control speakers A, B, C, and D. The server, the smartphone, and the four speakers A, B, C, and D are all connected to the same wireless access point (for example, a router), and communicate with each other through the wireless access point.

音频设备具有存储器和处理器。存储器中可以存储应用程序以及音频数据。该应用程序可以为音频设备提供音频播放功能,还可以提供其他功能。处理器可以对存储器中存储的数据进行处理。服务器上可以提供该应用程序的不同版本。An audio device has memory and a processor. Application programs and audio data can be stored in the memory. The application can provide audio playback capabilities for audio devices, and can also provide other functions. The processor can process data stored in the memory. Different versions of the application may be provided on the server.

控制设备可以同时对音频设备上的应用程序版本和服务器上提供的应用程序版本进行监控。当服务器上提供有更新的应用程序版本时,控制设备可以开始执行上述软件升级控制方法。此时,控制设备将上述多个音频设备划分为第一设备组和第二设备组。其中,第一设备组包括至少一个音频设备,第二设备组包括至少一个音频设备。The control device can simultaneously monitor the application program version on the audio device and the application program version provided on the server. When a newer version of the application program is provided on the server, the control device can start to execute the above software upgrade control method. At this time, the control device divides the plurality of audio devices into a first device group and a second device group. Wherein, the first device group includes at least one audio device, and the second device group includes at least one audio device.

参考图5,控制设备可以根据音箱A、B、C、D的属性将音箱A、B划分为第一设备组,将音箱C、D划分为第二设备组。Referring to FIG. 5 , the control device may divide speakers A and B into a first device group, and divide speakers C and D into a second device group according to attributes of speakers A, B, C and D.

在一些实施例中,如图2所示,将多个音频设备划分为第一设备组和第二设备组包括以下步骤:In some embodiments, as shown in FIG. 2 , dividing a plurality of audio devices into a first device group and a second device group includes the following steps:

S111,获取多个音频设备中的每一音频设备的工作状态,该工作状态包括空闲状态和播放状态;S111, acquire the working state of each audio device in the multiple audio devices, the working state includes an idle state and a playing state;

S112,将该多个音频设备中处于空闲状态的音频设备确定为第一设备组,并将该多个音频设备中处于播放状态的音频设备确定为第二设备组。S112. Determine an audio device in an idle state among the multiple audio devices as a first device group, and determine an audio device in a playing state among the multiple audio devices as a second device group.

其中,控制设备可以依次向每个音频设备发送状态获取指令。音频设备接收到该指令后,向控制设备返回自身工作状态。随后,控制设备将该多个音频设备中处于空闲状态的音频设备确定为第一设备组,将该多个音频设备中处于播放状态的音频设备确定为第二设备组。Wherein, the control device may send state acquisition instructions to each audio device in turn. After receiving the instruction, the audio device returns its working state to the control device. Subsequently, the control device determines an audio device in an idle state among the multiple audio devices as the first device group, and determines an audio device in a playing state among the multiple audio devices as the second device group.

在一些实施例中,如图3所示,将多个音频设备划分为第一设备组和第二设备组包括以下步骤:In some embodiments, as shown in FIG. 3 , dividing a plurality of audio devices into a first device group and a second device group includes the following steps:

S113,获取多个音频设备中的每一音频设备所处的位置;S113. Obtain the location of each audio device in the plurality of audio devices;

S114,根据每一音频设备所处的位置将该多个音频设备划分为第一设备组和第二设备组。S114. Divide the multiple audio devices into a first device group and a second device group according to the location of each audio device.

实际应用中,用户可以在每个音频设备中存储该音频设备所处的位置信息,控制设备通过查询音频设备中的位置信息来获取音频设备所处的位置。当音频设备中具有定位模块(例如GPS模块,Global Positioning System,全球定位系统)时,控制设备还可以通过音频设备中的定位模块来确定音频设备所处的位置。In practical application, the user may store the location information of the audio device in each audio device, and the control device obtains the location of the audio device by querying the location information in the audio device. When the audio device has a positioning module (such as a GPS module, Global Positioning System, Global Positioning System), the control device can also determine the location of the audio device through the positioning module in the audio device.

随后,控制设备根据每一音频设备所处的位置将该多个音频设备划分为第一设备组和第二设备组。例如,可以将处于客厅中的音频设备划分为第一设备组,将处于卧室和厨房中的音频设备划分为第二设备组。Subsequently, the control device divides the plurality of audio devices into a first device group and a second device group according to the location of each audio device. For example, the audio devices in the living room can be divided into the first device group, and the audio devices in the bedroom and the kitchen can be divided into the second device group.

S120,控制该第一设备组中的音频设备进行软件升级,并控制该第二设备组中的音频设备播放当前的待播放音频数据。S120. Control the audio devices in the first device group to upgrade software, and control the audio devices in the second device group to play the current audio data to be played.

实际应用中,控制设备划分出第一设备组和第二设备组后,可以控制第一设备组中的音频设备进行软件升级,并控制第二设备组中的音频设备播放当前的待播放音频数据。In practical applications, after the control device is divided into the first device group and the second device group, it can control the audio devices in the first device group to perform software upgrades, and control the audio devices in the second device group to play the current audio data to be played .

其中,音频设备的软件升级方式可以有多种。例如,控制设备可以从服务器获取更新版本的软件升级包,并将软件升级包依次发送给第一设备组中的音频设备,随后第一设备组中的音频设备进行软件升级。控制设备也可以指令第一设备组中的每个音频设备分别从服务器获取更新版本的软件升级包,然后第一设备组中的每个音频设备分别进行软件升级。Among them, there are many ways to upgrade the software of the audio equipment. For example, the control device may acquire a newer version of the software upgrade package from the server, and sequentially send the software upgrade package to the audio devices in the first device group, and then the audio devices in the first device group perform software upgrades. The control device may also instruct each audio device in the first device group to obtain a newer version of the software upgrade package from the server, and then each audio device in the first device group performs software upgrade respectively.

其中,待播放音频数据指音频设备在接下来的时间即将播放的音频数据。控制设备可以将当前的待播放音频数据分别发送给第二设备组中的音频设备,随后第二设备组中的音频设备播放待播放音频数据。控制设备也可以指令第二设备组中的每个音频设备分别从服务器获取待播放音频数据,然后第二设备组中的音频设备分别播放获取到的待播放音频数据。Wherein, the audio data to be played refers to the audio data that the audio device will play in the next time. The control device may respectively send the current audio data to be played to the audio devices in the second device group, and then the audio devices in the second device group play the audio data to be played. The control device may also instruct each audio device in the second device group to respectively obtain the audio data to be played from the server, and then the audio devices in the second device group respectively play the obtained audio data to be played.

S130,当该第一设备组中的音频设备完成软件升级后,控制该第一设备组中的音频设备播放当前的待播放音频数据。S130. After the software upgrade of the audio devices in the first device group is completed, control the audio devices in the first device group to play the current audio data to be played.

实际应用中,控制设备可以实时监控第一设备组中的音频设备的软件升级状态。当第一设备组中的音频设备都完成软件升级后,控制设备可以控制第一设备组中的音频设备播放当前的待播放音频数据。另一方面,控制设备还可以控制第二设备组中的音频设备停止播放音频数据。In practical applications, the control device may monitor the software upgrade status of the audio devices in the first device group in real time. After the software upgrade of the audio devices in the first device group is completed, the control device can control the audio devices in the first device group to play the current audio data to be played. On the other hand, the control device may also control the audio devices in the second device group to stop playing audio data.

需要说明的是,由于音频数据的播放一直在持续进行,因此不同时刻的待播放音频数据是不同的。It should be noted that, since the audio data is being played continuously, the audio data to be played at different times is different.

在一些实施例中,如图2所示,当该第一设备组中的音频设备完成软件升级后,控制该第一设备组中的音频设备播放当前的待播放音频数据,包括以下步骤:In some embodiments, as shown in Figure 2, after the audio devices in the first device group complete the software upgrade, controlling the audio devices in the first device group to play the current audio data to be played includes the following steps:

S131,当该第一设备组中的音频设备完成软件升级后,将当前的待播放音频数据发送到该第一设备组中的音频设备;S131. After the audio devices in the first device group complete the software upgrade, send the current audio data to be played to the audio devices in the first device group;

S132,控制该第一设备组中的音频设备播放当前的待播放音频数据。S132. Control the audio devices in the first device group to play the current audio data to be played.

实际应用中,当控制设备监控到第一设备组中的音频设备都完成软件升级后,可以停止向第二设备组中的音频设备发送待播放音频数据,而是将当前的待播放音频数据依次发送给第一设备组中的音频设备,随后控制第一设备组中的音频设备播放待播放音频数据。In practical applications, when the control device monitors that the audio devices in the first device group have completed the software upgrade, it can stop sending the audio data to be played to the audio devices in the second device group, and instead send the current audio data to be played in order The audio data is sent to the audio devices in the first device group, and then the audio devices in the first device group are controlled to play the audio data to be played.

S140,控制该第二设备组中的音频设备进行软件升级。S140. Control the audio devices in the second device group to upgrade software.

实际应用中,控制设备控制第一设备组中的音频设备播放待播放音频数据后,可以控制第二设备组中的音频设备进行软件升级。In practical applications, after the control device controls the audio devices in the first device group to play audio data to be played, it can control the audio devices in the second device group to perform software upgrades.

其中,第二设备组中的音频设备的软件升级方式可以有多种。例如,控制设备可以从服务器获取更新版本的软件升级包,并将软件升级包依次发送给第二设备组中的音频设备,随后第二设备组中的音频设备进行软件升级。控制设备也可以指令第二设备组中的每个音频设备分别从服务器获取更新版本的软件升级包,然后第二设备组中的每个音频设备分别进行软件升级。Wherein, there may be multiple ways to upgrade the software of the audio devices in the second device group. For example, the control device may acquire a newer version of the software upgrade package from the server, and sequentially send the software upgrade package to the audio devices in the second device group, and then the audio devices in the second device group perform software upgrades. The control device may also instruct each audio device in the second device group to obtain a newer version of the software upgrade package from the server, and then each audio device in the second device group performs software upgrade respectively.

在一些实施例中,如图2所示,控制该第二设备组中的音频设备进行软件升级后,软件升级控制方法还可以包括以下步骤:In some embodiments, as shown in FIG. 2, after controlling the audio devices in the second device group to perform software upgrades, the software upgrade control method may further include the following steps:

S150,当该第二设备组中的音频设备完成软件升级后,控制该第二设备组中的音频设备播放当前的待播放音频数据。S150. After the software upgrade of the audio devices in the second device group is completed, control the audio devices in the second device group to play the current audio data to be played.

实际应用中,控制设备可以实时监控第二设备组中的音频设备的软件升级状态。当第二设备组中的音频设备都完成软件升级后,控制设备可以控制第二设备组中的音频设备播放当前的待播放音频数据。另一方面,控制设备还可以控制第一设备组中的音频设备停止播放音频数据。In practical applications, the control device can monitor the software upgrade status of the audio devices in the second device group in real time. After the software upgrade of the audio devices in the second device group is completed, the control device can control the audio devices in the second device group to play the current audio data to be played. On the other hand, the control device may also control the audio devices in the first device group to stop playing audio data.

软件升级控制方法的整体执行过程如图6所示。The overall execution process of the software upgrade control method is shown in FIG. 6 .

控制设备划分出第一设备组和第二设备组后,首先依次执行步骤A、B、C,向第一设备组中的音频设备发送软件升级指令,将当前的待播放音频数据发送给第二设备组中的音频设备,并向第二设备组中的音频设备发送播放指令。随后,第一设备组中的音频设备执行步骤D1,进行软件升级。第二设备组中的音频设备执行步骤D2,播放当前的待播放音频数据。其中,步骤D1、D2可以同时进行。After the control device divides the first device group and the second device group, it first executes steps A, B, and C in sequence to send software upgrade instructions to the audio devices in the first device group, and sends the current audio data to be played to the second device group. an audio device in the device group, and send a playback instruction to the audio device in the second device group. Subsequently, the audio devices in the first device group perform step D 1 to upgrade software. The audio devices in the second device group perform step D 2 to play the current audio data to be played. Wherein, steps D 1 and D 2 can be performed simultaneously.

随后,当控制设备监控到第一设备组中的音频设备都完成软件升级后,依次执行步骤E、F、G,将当前的待播放音频数据发送给第一设备组中的音频设备,向第一设备组中的音频设备发送播放指令,并向第二设备组中的音频设备发送软件升级指令。随后,第二设备组中的音频设备执行步骤H1,进行软件升级。第一设备组中的音频设备执行步骤H2,播放当前的待播放音频数据。其中,步骤H1、H2可以同时进行。Subsequently, when the control device monitors that all the audio devices in the first device group have completed the software upgrade, steps E, F, and G are executed in sequence to send the current audio data to be played to the audio devices in the first device group, and send the audio data to the first device group. An audio device in one device group sends a playback instruction, and sends a software upgrade instruction to an audio device in a second device group. Subsequently, the audio devices in the second device group perform step H 1 to upgrade software. The audio devices in the first device group perform step H 2 to play the current audio data to be played. Wherein, steps H 1 and H 2 can be performed simultaneously.

最后,当控制设备监控到第二设备组中的音频设备都完成软件升级后,依次执行步骤I、J、K,将当前的待播放音频数据发送给第二设备组中的音频设备,向第二设备组中的音频设备发送播放指令,并向第一设备组中的音频设备发送播放停止命令。随后,第二设备组中的音频设备执行步骤L1,播放当前的待播放音频数据。第一设备组中的音频设备执行步骤L2,停止播放音频数据。其中,步骤L1、L2可以同时进行。Finally, when the control device monitors that all the audio devices in the second device group have completed the software upgrade, steps I, J, and K are executed in sequence, and the current audio data to be played is sent to the audio devices in the second device group, and sent to the second device group. The audio device in the second device group sends a playback instruction, and sends a playback stop command to the audio device in the first device group. Subsequently, the audio devices in the second device group execute step L 1 to play the current audio data to be played. The audio devices in the first device group perform step L 2 to stop playing audio data. Wherein, steps L 1 and L 2 can be performed simultaneously.

在整个音频播放系统中,第一设备组中的音频设备进行软件升级时,第二设备组中的音频设备播放音频数据;第二设备组中的音频设备进行软件升级时,第一设备组中的音频设备播放音频数据;第二设备组中的音频设备完成软件升级后,又恢复到第二设备组中的音频设备播放音频数据。因此,在音频播放系统的整个软件升级过程中,音频数据的播放是持续进行的,没有产生中断。音频设备的软件升级不会对音频播放系统的正常播放造成影响,从而,能够提高音频播放系统播放音频数据的稳定性。In the whole audio playback system, when the audio equipment in the first equipment group upgrades software, the audio equipment in the second equipment group plays audio data; The audio device in the second device group plays audio data; after the audio device in the second device group completes the software upgrade, it returns to the audio device in the second device group to play audio data. Therefore, during the whole software upgrading process of the audio playing system, the playing of the audio data is continuously performed without interruption. The software upgrade of the audio device will not affect the normal playback of the audio playback system, thereby improving the stability of the audio data played by the audio playback system.

具体实施时,本发明不受所描述的各个步骤的执行顺序的限制,在不产生冲突的情况下,某些步骤还可以采用其它顺序进行或者同时进行。During specific implementation, the present invention is not limited by the execution order of the described steps, and some steps may be performed in other orders or simultaneously if no conflict arises.

本发明实施例还提供一种软件升级控制装置,该装置可以集成在电子设备中,该电子设备可以是智能手机、平板电脑等设备。The embodiment of the present invention also provides a software upgrade control device, which can be integrated into an electronic device, and the electronic device can be a smart phone, a tablet computer, and the like.

如图7所示,软件升级控制装置200可以包括:分组模块201、第一控制模块202、第二控制模块203、第三控制模块204。As shown in FIG. 7 , the software upgrade control device 200 may include: a grouping module 201 , a first control module 202 , a second control module 203 , and a third control module 204 .

分组模块201,用于根据音频设备的属性将多个音频设备划分为第一设备组和第二设备组,该属性包括音频设备的音效参数、工作状态以及所处的环境信息。The grouping module 201 is configured to divide multiple audio devices into a first device group and a second device group according to the attributes of the audio devices, the attributes including sound effect parameters, working status and environment information of the audio devices.

实际应用中,该软件升级控制装置应用于音频播放系统中。音频播放系统可以包括服务器、控制设备以及多个音频设备。服务器、控制设备以及多个音频设备可以互相通信。该软件升级控制装置可以集成在控制设备中。In practical applications, the software upgrade control device is applied in an audio playback system. The audio playback system may include a server, a control device, and multiple audio devices. The server, the control device, and multiple audio devices can communicate with each other. The software update controller can be integrated in the control device.

其中,服务器可以是具有网络通信功能的网络服务器,服务器也可以是不具有网络通信功能的本地服务器。控制设备可以是智能手机、平板电脑等设备,控制设备也可以是具有管理功能的音频设备。音频设备可以是具有音频播放功能的电子设备,例如音箱。Wherein, the server may be a network server with network communication function, or the server may be a local server without network communication function. The control device can be a device such as a smart phone or a tablet computer, and the control device can also be an audio device with a management function. The audio device may be an electronic device capable of playing audio, such as a sound box.

其中,音频设备的属性可以包括音频设备的音效参数、工作状态以及所处的环境信息。音效参数可以包括高音、低音、左声道、右声道等参数。The properties of the audio device may include sound effect parameters, working status and environment information of the audio device. The sound effect parameters may include treble, bass, left channel, right channel and other parameters.

工作状态包括音频设备处于播放状态还是空闲状态。播放状态表示音频设备当前正在播放音频数据,空闲状态表示音频设备当前未播放音频数据。The working state includes whether the audio device is playing or idle. The playing state indicates that the audio device is currently playing audio data, and the idle state indicates that the audio device is not currently playing audio data.

环境信息包括音频设备所处的位置。例如,音频设备可以布置在客厅、卧室、厨房等位置。Environmental information includes where the audio device is located. For example, audio equipment can be arranged in the living room, bedroom, kitchen and other positions.

音频设备具有存储器和处理器。存储器中可以存储应用程序以及音频数据。该应用程序可以为音频设备提供音频播放功能,还可以提供其他功能。处理器可以对存储器中存储的数据进行处理。服务器上可以提供该应用程序的不同版本。An audio device has memory and a processor. Application programs and audio data can be stored in the memory. The application can provide audio playback capabilities for audio devices, and can also provide other functions. The processor can process data stored in the memory. Different versions of the application may be provided on the server.

控制设备可以同时对音频设备上的应用程序版本和服务器上提供的应用程序版本进行监控。当服务器上提供有更新的应用程序版本时,控制设备可以开始控制音频播放系统中的音频设备执行软件升级。此时,分组模块201将上述多个音频设备划分为第一设备组和第二设备组。其中,第一设备组包括至少一个音频设备,第二设备组包括至少一个音频设备。The control device can simultaneously monitor the application program version on the audio device and the application program version provided on the server. When a newer version of the application program is provided on the server, the control device can start to control the audio devices in the audio playback system to perform software upgrades. At this time, the grouping module 201 divides the above-mentioned multiple audio devices into a first device group and a second device group. Wherein, the first device group includes at least one audio device, and the second device group includes at least one audio device.

在一些实施例中,如图8所示,分组模块201包括:获取子模块2011、分组子模块2012。In some embodiments, as shown in FIG. 8 , the grouping module 201 includes: an acquisition submodule 2011 and a grouping submodule 2012 .

获取子模块2011,用于获取多个音频设备中的每一音频设备的工作状态,该工作状态包括空闲状态和播放状态;The obtaining submodule 2011 is used to obtain the working state of each audio device in the plurality of audio devices, and the working state includes an idle state and a playing state;

分组子模块2012,用于将该多个音频设备中处于空闲状态的音频设备确定为第一设备组,并将该多个音频设备中处于播放状态的音频设备确定为第二设备组。The grouping submodule 2012 is configured to determine the audio devices in the idle state among the multiple audio devices as the first device group, and determine the audio devices in the playing state among the multiple audio devices as the second device group.

其中,获取子模块2011可以依次向每个音频设备发送状态获取指令。音频设备接收到该指令后,向控制设备返回自身工作状态。随后,分组子模块2012将该多个音频设备中处于空闲状态的音频设备确定为第一设备组,将该多个音频设备中处于播放状态的音频设备确定为第二设备组。Wherein, the obtaining sub-module 2011 may send state obtaining instructions to each audio device in turn. After receiving the instruction, the audio device returns its working state to the control device. Subsequently, the grouping submodule 2012 determines the audio devices in the idle state among the multiple audio devices as the first device group, and determines the audio devices in the playing state among the multiple audio devices as the second device group.

在一些实施例中,获取子模块2011,用于获取多个音频设备中的每一音频设备所处的位置;In some embodiments, the obtaining submodule 2011 is configured to obtain the location of each audio device in the plurality of audio devices;

分组子模块2012,用于根据每一音频设备所处的位置将该多个音频设备划分为第一设备组和第二设备组。The grouping submodule 2012 is configured to divide the multiple audio devices into a first device group and a second device group according to the location of each audio device.

实际应用中,用户可以在每个音频设备中存储该音频设备所处的位置信息,获取子模块2011通过查询音频设备中的位置信息来获取音频设备所处的位置。当音频设备中具有定位模块(例如GPS模块,Global Positioning System,全球定位系统)时,获取子模块2011还可以通过音频设备中的定位模块来确定音频设备所处的位置。In practical application, the user can store the location information of the audio device in each audio device, and the obtaining sub-module 2011 obtains the location of the audio device by querying the location information in the audio device. When the audio device has a positioning module (such as a GPS module, Global Positioning System, Global Positioning System), the acquiring submodule 2011 can also determine the location of the audio device through the positioning module in the audio device.

随后,分组子模块2012根据每一音频设备所处的位置将该多个音频设备划分为第一设备组和第二设备组。例如,可以将处于客厅中的音频设备划分为第一设备组,将处于卧室和厨房中的音频设备划分为第二设备组。Subsequently, the grouping submodule 2012 divides the plurality of audio devices into a first device group and a second device group according to the location of each audio device. For example, the audio devices in the living room can be divided into the first device group, and the audio devices in the bedroom and the kitchen can be divided into the second device group.

第一控制模块202,用于控制该第一设备组中的音频设备进行软件升级,并控制该第二设备组中的音频设备播放当前的待播放音频数据。The first control module 202 is configured to control the audio devices in the first device group to upgrade software, and control the audio devices in the second device group to play the current audio data to be played.

实际应用中,分组模块201划分出第一设备组和第二设备组后,第一控制模块202可以控制第一设备组中的音频设备进行软件升级,并控制第二设备组中的音频设备播放当前的待播放音频数据。In practical applications, after the grouping module 201 divides the first device group and the second device group, the first control module 202 can control the audio devices in the first device group to perform software upgrades, and control the audio devices in the second device group to play The current audio data to be played.

其中,音频设备的软件升级方式可以有多种。例如,控制设备可以从服务器获取更新版本的软件升级包,并将软件升级包依次发送给第一设备组中的音频设备,随后第一设备组中的音频设备进行软件升级。控制设备也可以指令第一设备组中的每个音频设备分别从服务器获取更新版本的软件升级包,然后第一设备组中的每个音频设备分别进行软件升级。Among them, there are many ways to upgrade the software of the audio equipment. For example, the control device may acquire a newer version of the software upgrade package from the server, and sequentially send the software upgrade package to the audio devices in the first device group, and then the audio devices in the first device group perform software upgrades. The control device may also instruct each audio device in the first device group to obtain a newer version of the software upgrade package from the server, and then each audio device in the first device group performs software upgrade respectively.

其中,待播放音频数据指音频设备在接下来的时间即将播放的音频数据。控制设备可以将当前的待播放音频数据分别发送给第二设备组中的音频设备,随后第二设备组中的音频设备播放待播放音频数据。控制设备也可以指令第二设备组中的每个音频设备分别从服务器获取待播放音频数据,然后第二设备组中的音频设备分别播放获取到的待播放音频数据。Wherein, the audio data to be played refers to the audio data that the audio device will play in the next time. The control device may respectively send the current audio data to be played to the audio devices in the second device group, and then the audio devices in the second device group play the audio data to be played. The control device may also instruct each audio device in the second device group to respectively obtain the audio data to be played from the server, and then the audio devices in the second device group respectively play the obtained audio data to be played.

第二控制模块203,用于当该第一设备组中的音频设备完成软件升级后,控制该第一设备组中的音频设备播放当前的待播放音频数据。The second control module 203 is configured to control the audio devices in the first device group to play the current audio data to be played after the software upgrade of the audio devices in the first device group is completed.

实际应用中,第二控制模块203可以实时监控第一设备组中的音频设备的软件升级状态。当第一设备组中的音频设备都完成软件升级后,第二控制模块203可以控制第一设备组中的音频设备播放当前的待播放音频数据。另一方面,第二控制模块203还可以控制第二设备组中的音频设备停止播放音频数据。In practical applications, the second control module 203 can monitor the software upgrade status of the audio devices in the first device group in real time. After the software upgrade of the audio devices in the first device group is completed, the second control module 203 can control the audio devices in the first device group to play the current audio data to be played. On the other hand, the second control module 203 may also control the audio devices in the second device group to stop playing audio data.

需要说明的是,由于音频数据的播放一直在持续进行,因此不同时刻的待播放音频数据是不同的。It should be noted that, since the audio data is being played continuously, the audio data to be played at different times is different.

在一些实施例中,第二控制模块203用于执行以下步骤:In some embodiments, the second control module 203 is configured to perform the following steps:

当该第一设备组中的音频设备完成软件升级后,将当前的待播放音频数据发送到该第一设备组中的音频设备;After the audio device in the first device group completes the software upgrade, the current audio data to be played is sent to the audio device in the first device group;

控制该第一设备组中的音频设备播放当前的待播放音频数据。The audio devices in the first device group are controlled to play the current audio data to be played.

实际应用中,当第二控制模块203监控到第一设备组中的音频设备都完成软件升级后,可以停止向第二设备组中的音频设备发送待播放音频数据,而是将当前的待播放音频数据依次发送给第一设备组中的音频设备,随后控制第一设备组中的音频设备播放待播放音频数据。In practical applications, when the second control module 203 monitors that all the audio devices in the first device group have completed the software upgrade, it can stop sending audio data to be played to the audio devices in the second device group, and instead send the current audio data to be played The audio data is sequentially sent to the audio devices in the first device group, and then the audio devices in the first device group are controlled to play the audio data to be played.

第三控制模块204,用于控制该第二设备组中的音频设备进行软件升级。The third control module 204 is configured to control the audio devices in the second device group to upgrade software.

实际应用中,第二控制模块203控制第一设备组中的音频设备播放待播放音频数据后,第三控制模块204可以控制第二设备组中的音频设备进行软件升级。In practical applications, after the second control module 203 controls the audio devices in the first device group to play audio data to be played, the third control module 204 may control the audio devices in the second device group to perform software upgrades.

其中,第二设备组中的音频设备的软件升级方式可以有多种。例如,控制设备可以从服务器获取更新版本的软件升级包,并将软件升级包依次发送给第二设备组中的音频设备,随后第二设备组中的音频设备进行软件升级。控制设备也可以指令第二设备组中的每个音频设备分别从服务器获取更新版本的软件升级包,然后第二设备组中的每个音频设备分别进行软件升级。Wherein, there may be multiple ways to upgrade the software of the audio devices in the second device group. For example, the control device may acquire a newer version of the software upgrade package from the server, and sequentially send the software upgrade package to the audio devices in the second device group, and then the audio devices in the second device group perform software upgrades. The control device may also instruct each audio device in the second device group to obtain a newer version of the software upgrade package from the server, and then each audio device in the second device group performs software upgrade respectively.

在一些实施例中,如图9所示,软件升级控制装置200还包括:第四控制模块205。In some embodiments, as shown in FIG. 9 , the software upgrade control device 200 further includes: a fourth control module 205 .

第四控制模块205,用于当该第二设备组中的音频设备完成软件升级后,控制该第二设备组中的音频设备播放当前的待播放音频数据。The fourth control module 205 is configured to control the audio devices in the second device group to play the current audio data to be played after the software upgrade of the audio devices in the second device group is completed.

实际应用中,第四控制模块205可以实时监控第二设备组中的音频设备的软件升级状态。当第二设备组中的音频设备都完成软件升级后,第四控制模块205可以控制第二设备组中的音频设备播放当前的待播放音频数据。另一方面,第四控制模块205还可以控制第一设备组中的音频设备停止播放音频数据。In practical applications, the fourth control module 205 can monitor the software upgrade status of the audio devices in the second device group in real time. After the software upgrade of the audio devices in the second device group is completed, the fourth control module 205 can control the audio devices in the second device group to play the current audio data to be played. On the other hand, the fourth control module 205 may also control the audio devices in the first device group to stop playing audio data.

具体实施时,以上各个模块可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现。During specific implementation, each of the above modules may be implemented as an independent entity, or may be combined arbitrarily to be implemented as the same or several entities.

由上可知,本发明实施例提供的软件升级控制装置200,通过分组模块201分局音频设备的属性将多个音频设备划分为第一设备组和第二设备组;第一控制模块202控制该第一设备组中的音频设备进行软件升级,并控制该第二设备组中的音频设备播放当前的待播放音频数据;当该第一设备组中的音频设备完成软件升级后,第二控制模块203控制该第一设备组中的音频设备播放当前的待播放音频数据;第三控制模块204控制该第二设备组中的音频设备进行软件升级。该方案在音频播放系统的整个软件升级过程中,音频数据的播放是持续进行的,没有产生中断。音频设备的软件升级不会对音频播放系统的正常播放造成影响,从而,能够提高音频播放系统播放音频数据的稳定性。It can be seen from the above that the software upgrade control device 200 provided by the embodiment of the present invention divides multiple audio devices into a first device group and a second device group through the attributes of the grouping module 201 sub-station audio devices; the first control module 202 controls the second device group The audio equipment in a equipment group carries out software upgrade, and controls the audio equipment in this second equipment group to play the current audio data to be played; After the audio equipment in this first equipment group completes software upgrading, the second control module 203 Control the audio devices in the first device group to play the current audio data to be played; the third control module 204 controls the audio devices in the second device group to perform software upgrade. In this solution, during the entire software upgrading process of the audio playing system, the playing of the audio data is continuously carried out without interruption. The software upgrade of the audio device will not affect the normal playback of the audio playback system, thereby improving the stability of the audio data played by the audio playback system.

本发明实施例还提供一种电子设备,用于执行上述软件升级控制方法。该电子设备可以是智能手机、平板电脑等设备,也可以是音箱等音频设备,还可以是其他设备。以下仅以该电子设备为智能手机进行举例说明。An embodiment of the present invention also provides an electronic device, which is used to execute the above software upgrade control method. The electronic device may be a device such as a smart phone or a tablet computer, or may be an audio device such as a sound box, or may be other devices. The following only takes the electronic device as a smart phone as an example for illustration.

如图10所示,电子设备300包括:分组模块301、第一控制模块302、第二控制模块303、第三控制模块304。As shown in FIG. 10 , the electronic device 300 includes: a grouping module 301 , a first control module 302 , a second control module 303 , and a third control module 304 .

分组模块301,用于根据音频设备的属性将多个音频设备划分为第一设备组和第二设备组,该属性包括音频设备的音效参数、工作状态以及所处的环境信息;A grouping module 301, configured to divide a plurality of audio devices into a first device group and a second device group according to the attributes of the audio devices, the attributes including sound effect parameters, working status and environmental information of the audio devices;

第一控制模块302,用于控制该第一设备组中的音频设备进行软件升级,并控制该第二设备组中的音频设备播放当前的待播放音频数据;The first control module 302 is configured to control the audio devices in the first device group to perform software upgrades, and control the audio devices in the second device group to play the current audio data to be played;

第二控制模块303,用于当该第一设备组中的音频设备完成软件升级后,控制该第一设备组中的音频设备播放当前的待播放音频数据;The second control module 303 is configured to control the audio devices in the first device group to play the current audio data to be played after the audio devices in the first device group complete the software upgrade;

第三控制模块304,用于控制该第二设备组中的音频设备进行软件升级。The third control module 304 is configured to control the audio devices in the second device group to upgrade software.

在一些实施例中,分组模块301包括:获取子模块、分组子模块。In some embodiments, the grouping module 301 includes: an acquisition submodule and a grouping submodule.

获取子模块,用于获取多个音频设备中的每一音频设备的工作状态,该工作状态包括空闲状态和播放状态;An acquisition submodule, configured to acquire the working state of each audio device in the plurality of audio devices, the working state includes an idle state and a playing state;

分组子模块,用于将该多个音频设备中处于空闲状态的音频设备确定为第一设备组,并将该多个音频设备中处于播放状态的音频设备确定为第二设备组。The grouping submodule is configured to determine an audio device in an idle state among the plurality of audio devices as a first device group, and determine an audio device in a playing state among the plurality of audio devices as a second device group.

在一些实施例中,该环境信息包括位置,获取子模块,用于获取多个音频设备中的每一音频设备所处的位置;In some embodiments, the environment information includes a location, and the obtaining submodule is used to obtain the location of each audio device in the plurality of audio devices;

分组子模块,用于根据每一音频设备所处的位置将该多个音频设备划分为第一设备组和第二设备组。The grouping submodule is used to divide the plurality of audio devices into a first device group and a second device group according to the location of each audio device.

在一些实施例中,第二控制模块303用于:In some embodiments, the second control module 303 is used for:

当该第一设备组中的音频设备完成软件升级后,将当前的待播放音频数据发送到该第一设备组中的音频设备;After the audio device in the first device group completes the software upgrade, the current audio data to be played is sent to the audio device in the first device group;

控制该第一设备组中的音频设备播放当前的待播放音频数据。The audio devices in the first device group are controlled to play the current audio data to be played.

在一些实施例中,电子设备300还包括:第四控制模块。In some embodiments, the electronic device 300 further includes: a fourth control module.

第四控制模块,用于当该第二设备组中的音频设备完成软件升级后,控制该第二设备组中的音频设备播放当前的待播放音频数据。The fourth control module is configured to control the audio devices in the second device group to play the current audio data to be played after the software upgrade of the audio devices in the second device group is completed.

本发明实施例还提供一种电子设备。如图11所示,电子设备400可以包括射频(RF,Radio Frequency)电路401、包括有一个或一个以上计算机可读存储介质的存储器402、输入单元403、显示单元404、传感器405、音频电路406、无线保真(WiFi,Wireless Fidelity)模块407、包括有一个或者一个以上处理核心的处理器408、以及电源409等部件。本领域技术人员可以理解,图11中示出的电子设备结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。The embodiment of the present invention also provides an electronic device. As shown in FIG. 11 , an electronic device 400 may include a radio frequency (RF, Radio Frequency) circuit 401, a memory 402 including one or more computer-readable storage media, an input unit 403, a display unit 404, a sensor 405, and an audio circuit 406. , a wireless fidelity (WiFi, Wireless Fidelity) module 407, a processor 408 including one or more processing cores, a power supply 409 and other components. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 11 is not limited to the electronic device, and may include more or less components than shown in the figure, or combine some components, or arrange different components.

射频电路401可以通过无线通信与网络设备或其他电子设备通信,完成与网络设备或其他电子设备之间的信息收发。The radio frequency circuit 401 can communicate with network equipment or other electronic equipment through wireless communication, and complete information sending and receiving between the network equipment or other electronic equipment.

存储器402可用于存储应用程序和数据。存储器402存储的应用程序中包含有可执行程序代码。应用程序可以组成各种功能模块。处理器408通过运行存储在存储器402的应用程序,从而执行各种功能应用以及数据处理。Memory 402 may be used to store applications and data. The application programs stored in the memory 402 include executable program codes. Applications can be composed of various functional modules. The processor 408 executes various functional applications and data processing by running the application programs stored in the memory 402 .

输入单元403可用于接收输入的数字、字符信息或用户特征信息(比如指纹)。其中,输入单元403可以包括指纹识别模组。在一些实施例中,输入单元403还可以包括触摸屏,可收集用户在其上或附近的触摸操作,并根据预先设定的程式驱动相应的装置。The input unit 403 can be used to receive input numbers, character information or user characteristic information (such as fingerprints). Wherein, the input unit 403 may include a fingerprint recognition module. In some embodiments, the input unit 403 may also include a touch screen, which can collect user's touch operations on or near it, and drive corresponding devices according to preset programs.

显示单元404可用于显示由用户输入的信息或提供给用户的信息以及电子设备的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。The display unit 404 can be used to display information input by or provided to the user and various graphical user interfaces of the electronic device. These graphical user interfaces can be composed of graphics, text, icons, videos and any combination thereof.

电子设备还可包括至少一种传感器405,比如光传感器、运动传感器以及其他传感器。The electronic device may also include at least one sensor 405, such as a light sensor, a motion sensor, and other sensors.

音频电路406可通过扬声器、传声器提供用户与电子设备之间的音频接口。The audio circuit 406 can provide an audio interface between the user and the electronic device through a speaker or a microphone.

无线保真(WiFi)属于短距离无线传输技术,电子设备通过无线保真模块407可以与其他电子设备或服务器进行通信。Wireless Fidelity (WiFi) belongs to short-distance wireless transmission technology, and electronic devices can communicate with other electronic devices or servers through the WiFi module 407 .

处理器408是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器402内的应用程序,以及调用存储在存储器402内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。The processor 408 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing the application program stored in the memory 402 and calling the data stored in the memory 402, the electronic device executes Various functions and processing data, so as to monitor the electronic equipment as a whole.

电子设备还包括给各个部件供电的电源409(比如电池)。The electronic device also includes a power source 409 (such as a battery) for powering various components.

尽管图11中未示出,电子设备400还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown in FIG. 11 , the electronic device 400 may also include a camera, a Bluetooth module, etc., which will not be repeated here.

在本实施例中,电子设备400中的处理器408会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行程序代码加载到存储器402中,并由处理器408来运行存储在存储器402中的应用程序,从而实现各种功能:In this embodiment, the processor 408 in the electronic device 400 will load the executable program code corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 408 will run the stored program code. The application program in the memory 402, thereby realizing various functions:

根据音频设备的属性将多个音频设备划分为第一设备组和第二设备组,该属性包括音频设备的音效参数、工作状态以及所处的环境信息;Dividing multiple audio devices into a first device group and a second device group according to the attributes of the audio devices, the attributes including sound effect parameters, working status and environmental information of the audio devices;

控制该第一设备组中的音频设备进行软件升级,并控制该第二设备组中的音频设备播放当前的待播放音频数据;Control the audio devices in the first device group to perform software upgrades, and control the audio devices in the second device group to play the current audio data to be played;

当该第一设备组中的音频设备完成软件升级后,控制该第一设备组中的音频设备播放当前的待播放音频数据;After the audio devices in the first device group complete the software upgrade, control the audio devices in the first device group to play the current audio data to be played;

控制该第二设备组中的音频设备进行软件升级。The audio devices in the second device group are controlled to upgrade software.

在一些实施例中,根据音频设备的属性将多个音频设备划分为第一设备组和第二设备组时,处理器408用于执行以下步骤:获取多个音频设备中的每一音频设备的工作状态,该工作状态包括空闲状态和播放状态;将该多个音频设备中处于空闲状态的音频设备确定为第一设备组,并将该多个音频设备中处于播放状态的音频设备确定为第二设备组。In some embodiments, when a plurality of audio devices are divided into a first device group and a second device group according to the attributes of the audio devices, the processor 408 is configured to perform the following steps: Obtain the audio information of each audio device in the plurality of audio devices A working state, the working state includes an idle state and a playing state; the audio device in the idle state among the multiple audio devices is determined as the first device group, and the audio device in the playing state among the multiple audio devices is determined as the second Two equipment groups.

在一些实施例中,该环境信息包括位置,根据音频设备的属性将多个音频设备划分为第一设备组和第二设备组时,处理器408用于执行以下步骤:获取多个音频设备中的每一音频设备所处的位置;根据每一音频设备所处的位置将该多个音频设备划分为第一设备组和第二设备组。In some embodiments, the environment information includes a location, and when multiple audio devices are divided into a first device group and a second device group according to the attributes of the audio devices, the processor 408 is configured to perform the following steps: obtain the The location of each audio device; according to the location of each audio device, the multiple audio devices are divided into a first device group and a second device group.

在一些实施例中,当该第一设备组中的音频设备完成软件升级后,控制该第一设备组中的音频设备播放当前的待播放音频数据时,处理器408用于执行以下步骤:当该第一设备组中的音频设备完成软件升级后,将当前的待播放音频数据发送到该第一设备组中的音频设备;控制该第一设备组中的音频设备播放当前的待播放音频数据。In some embodiments, when the audio devices in the first device group complete the software upgrade and control the audio devices in the first device group to play the current audio data to be played, the processor 408 is configured to perform the following steps: After the audio devices in the first device group complete the software upgrade, the current audio data to be played is sent to the audio devices in the first device group; the audio devices in the first device group are controlled to play the current audio data to be played .

在一些实施例中,控制该第二设备组中的音频设备进行软件升级后,处理器408还用于执行以下步骤:当该第二设备组中的音频设备完成软件升级后,控制该第二设备组中的音频设备播放当前的待播放音频数据。In some embodiments, after controlling the audio devices in the second device group to upgrade the software, the processor 408 is further configured to perform the following steps: after the audio devices in the second device group complete the software upgrade, control the second The audio devices in the device group play the current audio data to be played.

上述实施例中,对各个实施例的描述都各有侧重,某些实施例中没有详细描述的部分,可以参见前面对软件升级控制方法的详细描述,在此不再赘述。In the above-mentioned embodiments, the descriptions of each embodiment have their own emphases. For the parts that are not described in detail in some embodiments, please refer to the detailed description of the software upgrade control method above, which will not be repeated here.

由上可知,本发明实施例提供了一种电子设备,该电子设备根据音频设备的属性将多个音频设备划分为第一设备组和第二设备组;控制该第一设备组中的音频设备进行软件升级,并控制该第二设备组中的音频设备播放当前的待播放音频数据;当该第一设备组中的音频设备完成软件升级后,控制该第一设备组中的音频设备播放当前的待播放音频数据;控制该第二设备组中的音频设备进行软件升级。该方案在音频播放系统的整个软件升级过程中,音频数据的播放是持续进行的,没有产生中断。音频设备的软件升级不会对音频播放系统的正常播放造成影响,从而,能够提高音频播放系统播放音频数据的稳定性。As can be seen from the above, the embodiment of the present invention provides an electronic device, which divides multiple audio devices into a first device group and a second device group according to the attributes of the audio devices; controls the audio devices in the first device group Perform software upgrades, and control the audio equipment in the second equipment group to play the current audio data to be played; when the audio equipment in the first equipment group completes the software upgrade, control the audio equipment in the first equipment group to play the current audio data to be played; controlling the audio equipment in the second equipment group to upgrade software. In this solution, during the entire software upgrading process of the audio playing system, the playing of the audio data is continuously carried out without interruption. The software upgrade of the audio device will not affect the normal playback of the audio playback system, thereby improving the stability of the audio data played by the audio playback system.

需要说明的是,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于计算机可读存储介质中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁盘或光盘等。It should be noted that those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. The medium may include: a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and the like.

以上对本发明实施例所提供的一种软件升级控制方法、装置及电子设备进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。A software upgrade control method, device, and electronic equipment provided by the embodiments of the present invention have been described above in detail. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only for To help understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation and application range. In summary, the content of this specification is not It should be understood as a limitation of the present invention.

Claims (11)

1. a kind of software updating control method, it is characterised in that including:
Multiple audio frequency apparatuses are divided into by the first equipment group and the second equipment group according to the attribute of audio frequency apparatus, the attribute includes Sound effect parameters, working condition and the residing environmental information of audio frequency apparatus;
Control the audio frequency apparatus in the first equipment group to carry out software upgrading, and control the audio in the second equipment group to set It is standby to play current voice data to be played;
After the audio frequency apparatus in the first equipment group completes software upgrading, the audio frequency apparatus in the first equipment group is controlled Play current voice data to be played;
The audio frequency apparatus in the second equipment group is controlled to carry out software upgrading.
2. software updating control method according to claim 1, it is characterised in that will be multiple according to the attribute of audio frequency apparatus Audio frequency apparatus is divided into the first equipment group and the second equipment group, including:
The working condition of each audio frequency apparatus in multiple audio frequency apparatuses is obtained, the working condition includes idle condition and broadcasting State;
Audio frequency apparatus in idle condition in the multiple audio frequency apparatus is defined as the first equipment group, and by the multiple sound The audio frequency apparatus in broadcast state is defined as the second equipment group in frequency equipment.
3. software updating control method according to claim 1, it is characterised in that the environmental information includes position, root Multiple audio frequency apparatuses are divided into the first equipment group and the second equipment group according to the attribute of audio frequency apparatus, including:
Obtain the location of each audio frequency apparatus in multiple audio frequency apparatuses;
The multiple audio frequency apparatus is divided into by the first equipment group and the second equipment group according to the location of each audio frequency apparatus.
4. software updating control method according to any one of claim 1 to 3, it is characterised in that set when described first Audio frequency apparatus in standby group is completed after software upgrading, controls the audio frequency apparatus in the first equipment group to play currently to be played Voice data, including:
After the audio frequency apparatus in the first equipment group completes software upgrading, current voice data to be played is sent to institute State the audio frequency apparatus in the first equipment group;
The audio frequency apparatus in the first equipment group is controlled to play current voice data to be played.
5. software updating control method according to any one of claim 1 to 3, it is characterised in that control described second After the step of audio frequency apparatus in equipment group carries out software upgrading, the software updating control method also includes:
After the audio frequency apparatus in the second equipment group completes software upgrading, the audio frequency apparatus in the second equipment group is controlled Play current voice data to be played.
6. a kind of software upgrading control device, it is characterised in that including:
Multiple audio frequency apparatuses are divided into the first equipment group and the second equipment by grouping module for the attribute according to audio frequency apparatus Group, the attribute includes sound effect parameters, working condition and the residing environmental information of audio frequency apparatus;
First control module, for controlling audio frequency apparatus in the first equipment group to carry out software upgrading, and controls described the Audio frequency apparatus in two equipment groups plays current voice data to be played;
Second control module, for after the audio frequency apparatus in the first equipment group completes software upgrading, controlling described first Audio frequency apparatus in equipment group plays current voice data to be played;
3rd control module, for controlling the audio frequency apparatus in the second equipment group to carry out software upgrading.
7. software upgrading control device according to claim 6, it is characterised in that the grouping module includes:
Acquisition submodule, the working condition for obtaining each audio frequency apparatus in multiple audio frequency apparatuses, the working condition bag Include idle condition and broadcast state;
Submodule is grouped, for the audio frequency apparatus in idle condition in the multiple audio frequency apparatus to be defined as into the first equipment Group, and the audio frequency apparatus in broadcast state in the multiple audio frequency apparatus is defined as the second equipment group.
8. software upgrading control device according to claim 6, it is characterised in that the environmental information includes position, institute Stating grouping module includes:
Acquisition submodule, for obtaining the location of each audio frequency apparatus in multiple audio frequency apparatuses;
Submodule is grouped, for the multiple audio frequency apparatus to be divided into the first equipment according to the location of each audio frequency apparatus Group and the second equipment group.
9. the software upgrading control device according to any one of claim 6 to 8, it is characterised in that second control Module is used for:
After the audio frequency apparatus in the first equipment group completes software upgrading, current voice data to be played is sent to institute State the audio frequency apparatus in the first equipment group;
The audio frequency apparatus in the first equipment group is controlled to play current voice data to be played.
10. the software upgrading control device according to any one of claim 6 to 8, it is characterised in that also include:
4th control module, for after the audio frequency apparatus in the second equipment group completes software upgrading, controlling described second Audio frequency apparatus in equipment group plays current voice data to be played.
11. a kind of electronic equipment, it is characterised in that including:
Touch-screen, the touch operation for receiving user;
Be stored with the memory of executable program code;
The processor coupled with the memory;
The processor calls the executable program code stored in the memory, performs as appointed in claim 1 to 5 Software updating control method described in one.
CN201710208243.8A 2017-03-31 2017-03-31 Software upgrade control method, device and electronic equipment Pending CN106970813A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710208243.8A CN106970813A (en) 2017-03-31 2017-03-31 Software upgrade control method, device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710208243.8A CN106970813A (en) 2017-03-31 2017-03-31 Software upgrade control method, device and electronic equipment

Publications (1)

Publication Number Publication Date
CN106970813A true CN106970813A (en) 2017-07-21

Family

ID=59336475

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710208243.8A Pending CN106970813A (en) 2017-03-31 2017-03-31 Software upgrade control method, device and electronic equipment

Country Status (1)

Country Link
CN (1) CN106970813A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804124A (en) * 2018-06-15 2018-11-13 歌尔科技有限公司 A kind of TWS earphones, charging box and its upgrade method, storage medium
CN108804123A (en) * 2018-06-15 2018-11-13 歌尔科技有限公司 A kind of TWS earphones and its upgrade method, device, storage medium
CN108874421A (en) * 2018-06-15 2018-11-23 歌尔科技有限公司 A kind of TWS earphone and its upgrade method, device, storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103490932A (en) * 2013-09-26 2014-01-01 华为软件技术有限公司 Processing method and device for device upgrade
CN104679847A (en) * 2015-02-13 2015-06-03 王磊 Method and equipment for building online real-time updating mass audio fingerprint database
CN105227627A (en) * 2015-08-25 2016-01-06 广东欧珀移动通信有限公司 A kind of playback equipment packet control process and user terminal
WO2017034345A1 (en) * 2015-08-27 2017-03-02 Samsung Electronics Co., Ltd. Wireless terminal communicable with external device and server and software updating method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103490932A (en) * 2013-09-26 2014-01-01 华为软件技术有限公司 Processing method and device for device upgrade
CN104679847A (en) * 2015-02-13 2015-06-03 王磊 Method and equipment for building online real-time updating mass audio fingerprint database
CN105227627A (en) * 2015-08-25 2016-01-06 广东欧珀移动通信有限公司 A kind of playback equipment packet control process and user terminal
WO2017034345A1 (en) * 2015-08-27 2017-03-02 Samsung Electronics Co., Ltd. Wireless terminal communicable with external device and server and software updating method thereof

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804124A (en) * 2018-06-15 2018-11-13 歌尔科技有限公司 A kind of TWS earphones, charging box and its upgrade method, storage medium
CN108804123A (en) * 2018-06-15 2018-11-13 歌尔科技有限公司 A kind of TWS earphones and its upgrade method, device, storage medium
CN108874421A (en) * 2018-06-15 2018-11-23 歌尔科技有限公司 A kind of TWS earphone and its upgrade method, device, storage medium
WO2019237459A1 (en) * 2018-06-15 2019-12-19 歌尔科技有限公司 Tws earphone, charging case, upgrading method thereof, and storage medium
CN108804124B (en) * 2018-06-15 2020-08-28 歌尔科技有限公司 TWS earphone, charging box, upgrading method of charging box and storage medium
CN108804123B (en) * 2018-06-15 2020-08-28 歌尔科技有限公司 TWS earphone, upgrading method and device thereof, and storage medium
CN108874421B (en) * 2018-06-15 2020-08-28 歌尔科技有限公司 TWS earphone, upgrading method and device thereof, and storage medium

Similar Documents

Publication Publication Date Title
RU2689203C2 (en) Flexible circuit for adjusting language model
US10817255B2 (en) Scene sound effect control method, and electronic device
JP6871891B2 (en) Speech processing methods, devices and computer-readable storage media
CN111177453B (en) Method, apparatus, device and computer readable storage medium for controlling audio playing
US10675541B2 (en) Control method of scene sound effect and related products
CN107038046B (en) Method and device for upgrading audio playing system and terminal
CN106411447B (en) playing control method, device and terminal
EP3429176B1 (en) Scenario-based sound effect control method and electronic device
JP2022088585A (en) Audio broadcast methods, audio broadcast devices, electronic devices, storage media and computer programs
CN106970813A (en) Software upgrade control method, device and electronic equipment
CN105703806A (en) Bluetooth module control method and apparatus of playing equipment, and audio-video playing system
CN115589432A (en) Message push management method, device, medium and equipment
CN106997301B (en) Software upgrading method and device and electronic device
CN114449204A (en) Method, system and computer equipment for connecting display screen to video conference interface
CN106303616A (en) A playback control method, device and terminal
CN105656520A (en) Method and device for controlling bluetooth module of playing equipment and audio/video playing system
CN116546242A (en) Live broadcast control method and device, computer equipment and storage medium
CN114005431A (en) Configuration method, device and equipment of voice system and readable storage medium
CN115576942A (en) Data processing method, device, equipment and storage medium
CN106850320A (en) Upgrade control method, device and terminal
CN115658419A (en) Model data monitoring method, device, medium and equipment
CN106909428A (en) Software upgrade control method, device and electronic equipment
CN113709506A (en) Multimedia playing method, device, medium and program product based on cloud mobile phone
CN106372186B (en) Playlist synchronization method and device and playing terminal
CN106982177B (en) Upgrade control method, device and terminal

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170721