CN106982177B - Upgrade control method, device and terminal - Google Patents

Upgrade control method, device and terminal Download PDF

Info

Publication number
CN106982177B
CN106982177B CN201710210321.8A CN201710210321A CN106982177B CN 106982177 B CN106982177 B CN 106982177B CN 201710210321 A CN201710210321 A CN 201710210321A CN 106982177 B CN106982177 B CN 106982177B
Authority
CN
China
Prior art keywords
audio
bandwidth
playing
upgrade
audio equipment
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.)
Active
Application number
CN201710210321.8A
Other languages
Chinese (zh)
Other versions
CN106982177A (en
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 CN201710210321.8A priority Critical patent/CN106982177B/en
Publication of CN106982177A publication Critical patent/CN106982177A/en
Application granted granted Critical
Publication of CN106982177B publication Critical patent/CN106982177B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/76Admission control; Resource allocation using dynamic resource allocation, e.g. in-call renegotiation requested by the user or requested by the network in response to changing network conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention provides an upgrade control method, which is applied to an audio playing system, wherein the audio playing system comprises a plurality of audio devices, and the method comprises the following steps: when an upgrade request of a first audio device is received, state information of other audio devices in an audio playing system is acquired; confirming the second audio equipment in the upgrading state and the third audio equipment which does not need to be upgraded according to the state information; acquiring a first bandwidth required by the third audio equipment for playing the current playlist; and setting a second bandwidth for downloading the upgrade file according to the total network bandwidth and the first bandwidth of the audio playing system, so that the first audio equipment and the second audio equipment download the upgrade file from the Internet by adopting the second bandwidth. The invention has the beneficial effect of improving the upgrading efficiency on the premise of ensuring the continuity of music playing.

Description

Upgrade control method, device and terminal
Technical Field
The present invention relates to the field of communications, and in particular, to an upgrade control method, apparatus, and terminal.
Background
The intelligent wireless sound box is a novel intelligent household appliance, and can perform information interaction with the application on the mobile phone by being connected with a WIFI network, so that various instructions transmitted by the application on the mobile phone are received, and various commands expected by a user are executed.
At present, some intelligent wireless sound box products are already on the market, and for example, the SONOS is used as an APP installed on a mobile phone to check and control a sound box to play music. When the smart speaker is upgraded, the latest software generally needs to be downloaded from the network server. At this time, other speakers playing music online may exist in the network, and the upgrade download upgrade file may occupy a large amount of network bandwidth in a short time, which may cause the speakers playing music to be jammed. If too much network bandwidth is allocated to the downloading playing file, the downloading of the upgrading file is slow, and the upgrading efficiency is influenced.
Disclosure of Invention
The embodiment of the invention provides an upgrade control method, an upgrade control device and a terminal, which have the beneficial effect of improving the upgrade efficiency on the premise of ensuring the continuity of music playing.
The embodiment of the invention provides an upgrade control method, which is applied to an audio playing system, wherein the audio playing system comprises a plurality of audio devices, and the method comprises the following steps:
when an upgrade request of a first audio device is received, state information of other audio devices in an audio playing system is acquired;
confirming the second audio equipment in the upgrading state and the third audio equipment which does not need to be upgraded according to the state information;
acquiring a first bandwidth required by the third audio equipment for playing the current playlist;
and setting a second bandwidth for downloading the upgrade file according to the total network bandwidth and the first bandwidth of the audio playing system, so that the first audio equipment and the second audio equipment download the upgrade file from the Internet by adopting the second bandwidth.
The embodiment of the invention provides an upgrade control device, which is applied to an audio playing system, wherein the audio playing system comprises a plurality of audio devices, and the device comprises:
the first acquisition module is used for acquiring the state information of other audio equipment in the audio playing system when receiving the upgrading request of the first audio equipment;
the confirming module is used for confirming the second audio equipment which is currently in the upgrading state and the third audio equipment which does not need to be upgraded according to the state information;
the second obtaining module is used for obtaining a first bandwidth required by the third audio equipment for playing the current playlist;
and the setting module is used for setting a second bandwidth for downloading the upgrade file according to the total network bandwidth and the first bandwidth of the audio playing system, so that the first audio equipment and the second audio equipment download the upgrade file from the Internet by adopting the second bandwidth.
An embodiment of the present invention provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements any one of the methods described above when executing the computer program.
As can be seen from the above, the upgrade control method provided in the embodiment of the present invention obtains the state information of other audio devices in the audio playing system by receiving the upgrade request of the first audio device; confirming the second audio equipment in the upgrading state and the third audio equipment which does not need to be upgraded according to the state information; acquiring a first bandwidth required by the third audio equipment for playing the current playlist; setting a second bandwidth for downloading the upgrade file according to the total network bandwidth and the first bandwidth of the audio playing system, so that the first audio equipment and the second audio equipment download the upgrade file from the internet by adopting the second bandwidth; therefore, the control of the downloading speed of the upgrade file is completed, the upgrade file is downloaded at the highest speed on the premise of ensuring that the playing of the audio data is not influenced, and the method has the advantage of improving the upgrading efficiency.
Drawings
Fig. 1 is a schematic view of a scenario of an upgrade control method and apparatus in a preferred embodiment of the present invention.
Fig. 2 is a first flowchart of an upgrade control method in a preferred embodiment of the present invention.
Fig. 3 is a second flowchart of an upgrade control method in a preferred embodiment of the present invention.
Fig. 4 is a third flowchart of an upgrade control method in a preferred embodiment of the present invention.
Fig. 5 is a first structural diagram of an upgrade control apparatus in a preferred embodiment of the present invention.
Fig. 6 is a second structure diagram of the upgrade control apparatus in a preferred embodiment of the present invention.
Fig. 7 is a block diagram of a terminal in a preferred embodiment of the present invention.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present invention are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the invention and should not be taken as limiting the invention with regard to other embodiments that are not detailed herein.
In the description that follows, embodiments of the invention are described with reference to steps and symbols of operations performed by one or more computers, unless otherwise indicated. It will thus be appreciated that those steps and operations, which are referred to herein several times as being computer-executed, include being manipulated by a computer processing unit in the form of electronic signals representing data in a structured form. This manipulation transforms the data or maintains it at locations in the computer's memory system, which may reconfigure or otherwise alter the computer's operation in a manner well known to those skilled in the art. The data maintains a data structure that is a physical location of the memory that has particular characteristics defined by the data format. However, while the principles of the invention have been described in language specific to above, it is not intended to be limited to the specific details shown, since one skilled in the art will recognize that various steps and operations described below may be implemented in hardware.
Referring to fig. 1 and fig. 2, fig. 1 is a schematic view of a scenario of an upgrade control method in an embodiment of the present invention. Fig. 2 is an upgrade control method in an embodiment of the present invention, which is mainly used in terminals such as an audio device, a mobile phone, and an IPAD. In this embodiment, the upgrade control method is applied to an audio playing system, where the audio playing system includes a plurality of audio devices and a terminal. The upgrade control method is stored in a memory of the audio device or terminal for control in the form of a computer program. The upgrade control method comprises the following steps:
s101, when an upgrading request of the first audio equipment is received, state information of other audio equipment in the audio playing system is obtained.
In this step, when the first audio device in the audio playing system detects that there is a new version of playing software on the network, it will send an upgrade request to the terminal in the master control position. At this point, some of the other audio devices may be in the process of downloading the upgrade file and performing the upgrade, and some audio devices are receiving the network audio data and are in the process of playing music. The state information is used for judging whether the corresponding audio equipment is in the upgrading process or is upgraded. The audio equipment after the upgrade can directly play the audio data without upgrading.
And S102, confirming the second audio equipment in the upgrading state and the third audio equipment which does not need to be upgraded according to the state information.
In this step, the audio device currently in the upgrade state is determined according to the acquired state information of the other audio devices, and the audio device in the upgrade state is the second audio device. And confirming the current audio equipment which does not need to be upgraded according to the acquired state information of the other audio equipment, wherein the audio equipment which does not need to be upgraded is the third audio equipment. The number of the second audio devices may be one or more.
S103, acquiring a first bandwidth required by the third audio equipment for playing the current playlist.
In practical application, the first bandwidth required by the third audio device for playing the current playlist is obtained once every preset period, so that dynamic adjustment is realized. The first bandwidth required by the third audio device to play the current playlist is acquired, for example, every 10 seconds.
In some embodiments, referring to fig. 3, the step S103 includes the following sub-steps:
and S1031, obtaining the playing code rate of the song in the playing state in the current playing list and the audio data buffer storage amount of the song. In this step, after the third audio device that does not need to be upgraded is confirmed, a playing state obtaining instruction is sent to the third audio device, and playing state information returned by the third audio device is received. The playing state information includes the playing code rate of the currently played song and the audio data buffer amount of the song.
S1032, setting a first bandwidth required by playing the current playlist according to the playing code rate and the audio data buffer storage amount. In this step, a minimum downloading network speed of the audio data is set according to the playing code rate and the audio data buffer storage amount, so that the phenomenon that the song is jammed in the playing process can be guaranteed. The maximum value of the download speed is determined by the bandwidth, the first bandwidth is allocated to the third audio device, and the maximum download speed corresponding to the first bandwidth is greater than the minimum download network speed. In practical applications, the minimum downloading network speed is xKb/s, the downloading speed corresponding to the first bandwidth is yKb/s, and the downloading speed corresponding to the first bandwidth should be greater than the minimum downloading network speed by a predetermined value, so as to further ensure that the songs can be played smoothly without jamming.
And S104, setting a second bandwidth for downloading the upgrade file according to the total network bandwidth and the first bandwidth of the audio playing system, so that the first audio equipment and the second audio equipment download the upgrade file from the Internet by adopting the second bandwidth.
In practical applications, the step S104 includes the following steps:
s1041, inquiring a network management module to obtain the total network bandwidth of the audio playing system. In this step, the total network bandwidth allocated by the audio playing system can be obtained by querying the router.
S1042, setting a second bandwidth for downloading the upgrade file according to the total network bandwidth and the first bandwidth, so that the first audio device and the second audio device download the upgrade file by using the second bandwidth. In this step, the second bandwidth is the total bandwidth of the network — the first bandwidth. After the terminal calculates the second bandwidth, it may send a control instruction to a network management device, such as a router, so that the total bandwidth allocated to the first audio device and the second audio device by the router is a third bandwidth, and the bandwidth allocated to the third audio device is the first bandwidth. Of course, it will be appreciated that in some embodiments, the terminal itself may perform the allocation of network resources without sending instructions to the router.
In some embodiments, in practical applications, the step S1042 may be:
A. and acquiring the download progress of the upgrade file of the second audio equipment and the total amount of the upgrade file. In this step, the total amount of the upgrade files D and the current download progress F are obtained by querying the download manager.
B. And setting a third bandwidth allocated to the first audio equipment and a fourth bandwidth allocated to the second audio equipment according to the downloading progress, the total amount of the upgrade files and the first bandwidth, wherein the sum of the third bandwidth and the fourth bandwidth is the second bandwidth. In this step, the third bandwidth is greater than the fourth bandwidth, and the third bandwidth is allocated to the first audio device and the fourth bandwidth is allocated to the second audio device, so that the first audio device and the second audio device can approximately and simultaneously complete downloading of the upgrade file, which is beneficial to enabling the entire audio playing system to reach the optimal combined playing state at the fastest speed.
As can be seen from the above, the upgrade control method provided in the embodiment of the present invention obtains the state information of other audio devices in the audio playing system by receiving the upgrade request of the first audio device; confirming the second audio equipment in the upgrading state and the third audio equipment which does not need to be upgraded according to the state information; acquiring a first bandwidth required by the third audio equipment for playing the current playlist; setting a second bandwidth for downloading the upgrade file according to the total network bandwidth and the first bandwidth of the audio playing system, so that the first audio equipment and the second audio equipment download the upgrade file from the internet by adopting the second bandwidth; therefore, the control of the downloading speed of the upgrade file is completed, the upgrade file is downloaded at the highest speed on the premise of ensuring that the playing of the audio data is not influenced, and the method has the advantage of improving the upgrading efficiency.
Referring to fig. 5, fig. 5 is a structural diagram of an upgrade control apparatus in a preferred embodiment of the present invention, where the upgrade control apparatus includes: a first acquisition module 201, a confirmation module 202, a second acquisition module 203, and a setting module 204.
The first obtaining module 201 is configured to obtain state information of other audio devices in the audio playing system when receiving an upgrade request of a first audio device. When a first audio device in the audio playing system detects that a new version of playing software exists on a network, an upgrading request is sent to a terminal in a main control position. At this point, some of the other audio devices may be in the process of downloading the upgrade file and performing the upgrade, and some audio devices are receiving the network audio data and are in the process of playing music. The state information is used for judging whether the corresponding audio equipment is in the upgrading process or is upgraded. The audio equipment after the upgrade can directly play the audio data without upgrading.
The confirming module 202 is configured to confirm the second audio device currently in the upgrade state and the third audio device that does not need to be upgraded according to the state information. And confirming the audio equipment which is currently in the upgrading state according to the acquired state information of other audio equipment, wherein the audio equipment in the upgrading state is the second audio equipment. And confirming the current audio equipment which does not need to be upgraded according to the acquired state information of the other audio equipment, wherein the audio equipment which does not need to be upgraded is the third audio equipment. The number of the second audio devices may be one or more.
The second obtaining module 203 is configured to obtain a first bandwidth required by the third audio device to play the current playlist. In some embodiments, the second obtaining module 203 is configured to obtain the first bandwidth required by the third audio device to play the current playlist every predetermined period, so as to implement dynamic adjustment. As shown in fig. 6, the second acquiring module 203 includes a first acquiring unit 2031 and a first setting unit 2032.
The first obtaining unit 2031 is configured to obtain a playing code rate of a song in a playing state in a current playlist and an audio data buffer amount of the song. And after confirming the third audio equipment which does not need to be upgraded, sending a playing state acquisition instruction to the third audio equipment, and receiving playing state information returned by the third audio equipment. The playing state information includes the playing code rate of the currently played song and the audio data buffer amount of the song.
The first setting unit 2032 is configured to set a first bandwidth required for playing the current playlist according to the playing code rate and the audio data buffer amount. The minimum downloading network speed of the audio data is set according to the playing code rate and the audio data buffer storage amount, so that the phenomenon that the song is jammed in the playing process can be guaranteed. The maximum value of the download speed is determined by the bandwidth, the first bandwidth is allocated to the third audio device, and the maximum download speed corresponding to the first bandwidth is greater than the minimum download network speed. In practical applications, the minimum downloading network speed is xKb/s, the downloading speed corresponding to the first bandwidth is yKb/s, and the downloading speed corresponding to the first bandwidth should be greater than the minimum downloading network speed by a predetermined value, so as to further ensure that the songs can be played smoothly without jamming.
The setting module 204 is configured to set a second bandwidth for downloading the upgrade file according to the total network bandwidth and the first bandwidth of the audio playing system, so that the first audio device and the second audio device download the upgrade file from the internet using the second bandwidth. The setup module 204 includes: a query unit 2041 and a second setting unit 2042.
The query unit 2041 is configured to query the network management module to obtain the total network bandwidth of the audio playing system. Query unit 2041 may obtain the total network bandwidth allocated by the audio playing system by querying the router
The second setting unit 2042 is configured to set a second bandwidth for downloading the upgrade file according to the total network bandwidth and the first bandwidth, so that the first audio device and the second audio device download the upgrade file with the second bandwidth. The second bandwidth is the total bandwidth of the network — the first bandwidth. After the terminal calculates the second bandwidth, it may send a control instruction to a network management device, such as a router, so that the total bandwidth allocated to the first audio device and the second audio device by the router is a third bandwidth, and the bandwidth allocated to the third audio device is the first bandwidth. Of course, it will be appreciated that in some embodiments, the terminal itself may perform the allocation of network resources without sending instructions to the router.
In some embodiments, the second setting unit 2042 is configured to obtain an upgrade file download progress of the second audio device and a total amount of upgrade files; and setting a third bandwidth allocated to the first audio equipment and a fourth bandwidth allocated to the second audio equipment according to the downloading progress, the total amount of the upgrade files and the first bandwidth, wherein the sum of the third bandwidth and the fourth bandwidth is the second bandwidth. The third bandwidth is greater than the fourth bandwidth, and the third bandwidth is allocated to the first audio device and the fourth bandwidth is allocated to the second audio device, so that the first audio device and the second audio device can approximately and simultaneously complete downloading of the upgrade file, and the whole audio playing system can reach the optimal combined playing state at the fastest speed.
As can be seen from the above, when the upgrade control apparatus provided in the embodiment of the present invention receives the upgrade request of the first audio device through the first obtaining module, the apparatus obtains the state information of other audio devices in the audio playing system; the confirming module confirms the second audio equipment in the upgrading state and the third audio equipment which does not need to be upgraded according to the state information; a second obtaining module obtains a first bandwidth required by the third audio equipment for playing the current playlist; the setting module sets a second bandwidth for downloading the upgrade file according to the total network bandwidth and the first bandwidth of the audio playing system, so that the first audio equipment and the second audio equipment download the upgrade file from the internet by adopting the second bandwidth; therefore, the control of the downloading speed of the upgrade file is completed, the upgrade file is downloaded at the highest speed on the premise of ensuring that the playing of the audio data is not influenced, and the method has the advantage of improving the upgrading efficiency.
Referring to fig. 7, an embodiment of the present invention further provides a terminal 300, where the terminal 300 may include a Radio Frequency (RF) circuit 301, a memory 302 including one or more computer-readable storage media, an input unit 303, a display unit 304, a sensor 305, an audio circuit 306, a Wireless Fidelity (WiFi) module 307, a processor 308 including one or more processing cores, and a power source 309. Those skilled in the art will appreciate that the terminal structure shown in fig. 7 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 301 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for receiving downlink information from a base station and then processing the received downlink information by one or more processors 308; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuit 301 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 301 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The memory 302 may be used to store software programs and modules, and the processor 308 executes various functional applications and data processing by operating the software programs and modules stored in the memory 302. The memory 302 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal, etc. Further, the memory 302 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 302 may also include a memory controller to provide the processor 308 and the input unit 303 access to the memory 302.
The input unit 303 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, the input unit 303 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 308, and can receive and execute commands sent by the processor 308. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 303 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 304 may be used to display information input by or provided to the user and various graphical user interfaces of the terminal, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 304 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an organic light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 308 to determine the type of touch event, and the processor 308 then provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 7 the touch-sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The terminal may also include at least one sensor 305, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal, detailed description is omitted here.
Audio circuitry 306, a speaker, and a microphone may provide an audio interface between the user and the terminal. The audio circuit 306 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electric signal, which is received by the audio circuit 306 and converted into audio data, which is then processed by the audio data output processor 308, and then transmitted to, for example, another terminal via the RF circuit 301, or the audio data is output to the memory 302 for further processing. The audio circuitry 306 may also include an earbud jack to provide peripheral headset communication with the terminal.
WiFi belongs to short distance wireless transmission technology, and the terminal can help the user to send and receive e-mail, browse web page and access streaming media etc. through WiFi module 307, which provides wireless broadband internet access for the user. Although fig. 7 shows the WiFi module 307, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 308 is a control center of the terminal, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 302 and calling data stored in the memory 302, thereby performing overall monitoring of the mobile phone. Optionally, processor 308 may include one or more processing cores; preferably, the processor 308 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 308.
The terminal also includes a power supply 309 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 308 via a power management system to manage charging, discharging, and power consumption management functions via the power management system. The power supply 309 may also include one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and any like components.
Although not shown, the mobile terminal may further include a camera, a bluetooth module, and the like, which will not be described herein. Specifically, in this embodiment, the processor 308 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 302 according to the following instructions, and the processor 308 runs the application programs stored in the memory 302, so as to implement the following functions:
when an upgrade request of a first audio device is received, state information of other audio devices in an audio playing system is acquired;
confirming the second audio equipment in the upgrading state and the third audio equipment which does not need to be upgraded according to the state information;
acquiring a first bandwidth required by the third audio equipment for playing the current playlist;
and setting a second bandwidth for downloading the upgrade file according to the total network bandwidth and the first bandwidth of the audio playing system, so that the first audio equipment and the second audio equipment download the upgrade file from the Internet by adopting the second bandwidth.
The terminal provided by the embodiment of the invention obtains the state information of other audio equipment in the audio playing system when receiving the upgrading request of the first audio equipment; confirming the second audio equipment in the upgrading state and the third audio equipment which does not need to be upgraded according to the state information; acquiring a first bandwidth required by the third audio equipment for playing the current playlist; setting a second bandwidth for downloading the upgrade file according to the total network bandwidth and the first bandwidth of the audio playing system, so that the first audio equipment and the second audio equipment download the upgrade file from the internet by adopting the second bandwidth; therefore, the control of the downloading speed of the upgrade file is completed, the upgrade file is downloaded at the highest speed on the premise of ensuring that the playing of the audio data is not influenced, and the method has the advantage of improving the upgrading efficiency.
Various operations of embodiments are provided herein. In one embodiment, the one or more operations may constitute computer readable instructions stored on one or more computer readable media, which when executed by an electronic device, will cause the computing device to perform the operations. The order in which some or all of the operations are described should not be construed as to imply that these operations are necessarily order dependent. Those skilled in the art will appreciate alternative orderings having the benefit of this description. Moreover, it should be understood that not all operations are necessarily present in each embodiment provided herein.
Also, as used herein, the word "preferred" is intended to serve as an example, instance, or illustration. Any aspect or design described herein as "preferred" is not necessarily to be construed as advantageous over other aspects or designs. Rather, use of the word "preferred" is intended to present concepts in a concrete fashion. The term "or" as used in this application is intended to mean an inclusive "or" rather than an exclusive "or". That is, unless specified otherwise or clear from context, "X employs A or B" is intended to include either of the permutations as a matter of course. That is, if X employs A; b is used as X; or X employs both A and B, then "X employs A or B" is satisfied in any of the foregoing examples.
Also, although the disclosure has been shown and described with respect to one or more implementations, equivalent alterations and modifications will occur to others skilled in the art based upon a reading and understanding of this specification and the annexed drawings. The present disclosure includes all such modifications and alterations, and is limited only by the scope of the appended claims. In particular regard to the various functions performed by the above described components (e.g., elements, resources, etc.), the terms used to describe such components are intended to correspond, unless otherwise indicated, to any component which performs the specified function of the described component (e.g., that is functionally equivalent), even though not structurally equivalent to the disclosed structure which performs the function in the herein illustrated exemplary implementations of the disclosure. In addition, while a particular feature of the disclosure may have been disclosed with respect to only one of several implementations, such feature may be combined with one or more other features of the other implementations as may be desired and advantageous for a given or particular application. Furthermore, to the extent that the terms "includes," has, "" contains, "or variants thereof are used in either the detailed description or the claims, such terms are intended to be inclusive in a manner similar to the term" comprising.
Each functional unit in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium. The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Each apparatus or system described above may perform the method in the corresponding method embodiment.
In summary, although the present invention has been described with reference to the preferred embodiments, the above-described preferred embodiments are not intended to limit the present invention, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention, therefore, the scope of the present invention shall be determined by the appended claims.

Claims (7)

1. An upgrade control method applied to an audio playing system, the audio playing system comprising a plurality of audio devices, the method comprising the steps of:
when an upgrade request of a first audio device is received, state information of other audio devices in an audio playing system is acquired;
confirming the second audio equipment in the upgrading state and the third audio equipment which does not need to be upgraded according to the state information;
acquiring a first bandwidth required by the third audio equipment for playing the current playlist;
inquiring a network management module to obtain the total network bandwidth of the audio playing system;
acquiring the download progress of the upgrade file of the second audio equipment and the total amount of the upgrade file;
and setting a third bandwidth allocated to the first audio equipment and a fourth bandwidth allocated to the second audio equipment according to the downloading progress, the total amount of the upgrade files and the first bandwidth, wherein the sum of the third bandwidth and the fourth bandwidth is the difference value between the total network bandwidth and the first bandwidth, and the third bandwidth is greater than the fourth bandwidth.
2. The upgrade control method according to claim 1, wherein the step of obtaining the first bandwidth required by the third audio device to play the current playlist includes:
acquiring the playing code rate of a song in a playing state in a current playing list and the audio data buffer storage of the song;
and setting a first bandwidth required for playing the current playlist according to the playing code rate and the audio data buffer amount.
3. The upgrade control method according to claim 1, wherein the step of obtaining the first bandwidth required by the third audio device to play the current playlist includes:
and acquiring a first bandwidth required by the third audio equipment for playing the current playlist every a preset period.
4. An upgrade control apparatus applied to an audio playback system including a plurality of audio devices, the apparatus comprising:
the first acquisition module is used for acquiring the state information of other audio equipment in the audio playing system when receiving the upgrading request of the first audio equipment;
the confirming module is used for confirming the second audio equipment which is currently in the upgrading state and the third audio equipment which does not need to be upgraded according to the state information;
the second obtaining module is used for obtaining a first bandwidth required by the third audio equipment for playing the current playlist;
the query unit is used for querying the network management module to acquire the total network bandwidth of the audio playing system;
the second setting unit is used for acquiring the download progress of the upgrade file of the second audio equipment and the total amount of the upgrade file, and setting a third bandwidth distributed to the first audio equipment and a fourth bandwidth distributed to the second audio equipment according to the download progress, the total amount of the upgrade file and the first bandwidth, wherein the sum of the third bandwidth and the fourth bandwidth is the difference value of the total network bandwidth and the first bandwidth, and the third bandwidth is greater than the fourth bandwidth.
5. The upgrade control device according to claim 4, wherein the second obtaining module includes:
the device comprises a first obtaining unit, a second obtaining unit and a third obtaining unit, wherein the first obtaining unit is used for obtaining the playing code rate of a song in a playing state in a current playing list and the audio data buffer amount of the song;
and the first setting unit is used for setting a first bandwidth required by playing the current playlist according to the playing code rate and the audio data buffer storage.
6. The upgrade control apparatus according to claim 4, wherein the second obtaining module is configured to obtain the first bandwidth required by the third audio device to play the current playlist every predetermined period.
7. A terminal, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the method according to any one of claims 1-3 when executing the computer program.
CN201710210321.8A 2017-03-31 2017-03-31 Upgrade control method, device and terminal Active CN106982177B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710210321.8A CN106982177B (en) 2017-03-31 2017-03-31 Upgrade control method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710210321.8A CN106982177B (en) 2017-03-31 2017-03-31 Upgrade control method, device and terminal

Publications (2)

Publication Number Publication Date
CN106982177A CN106982177A (en) 2017-07-25
CN106982177B true CN106982177B (en) 2020-01-14

Family

ID=59343555

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710210321.8A Active CN106982177B (en) 2017-03-31 2017-03-31 Upgrade control method, device and terminal

Country Status (1)

Country Link
CN (1) CN106982177B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112291799B (en) * 2020-10-23 2024-04-09 北京小米移动软件有限公司 Method and device for determining download network speed, user equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016022360A1 (en) * 2014-08-05 2016-02-11 NFL Enterprises LLC Apparatus and methods for personalized video delivery

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9479812B2 (en) * 2009-06-05 2016-10-25 Time Warner Cable Enterprises Llc User selection of software components in a television set-top box
CN102236563A (en) * 2010-04-28 2011-11-09 腾讯科技(深圳)有限公司 Software upgrading method and system
CN102800344A (en) * 2012-07-10 2012-11-28 清华大学 Audio wireless play system and audio wireless adaptation apparatus
CN103067509A (en) * 2012-12-30 2013-04-24 乐视网信息技术(北京)股份有限公司 System and method of modularized software updating
CN104954286B (en) * 2015-05-29 2019-03-15 小米科技有限责任公司 The method and device of bandwidth allocation
CN105511903A (en) * 2015-11-23 2016-04-20 广东欧珀移动通信有限公司 Audio device updating method and apparatus
CN106331084B (en) * 2016-08-22 2019-06-25 深圳Tcl新技术有限公司 The adaptive upgrade method in software backstage and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016022360A1 (en) * 2014-08-05 2016-02-11 NFL Enterprises LLC Apparatus and methods for personalized video delivery

Also Published As

Publication number Publication date
CN106982177A (en) 2017-07-25

Similar Documents

Publication Publication Date Title
CN107277912B (en) Radio frequency interference processing method, device, storage medium and terminal
CN107393548B (en) Method and device for processing voice information collected by multiple voice assistant devices
US10069818B2 (en) Method, system, device, and terminal for network initialization of multimedia playback device
CN107231159B (en) Radio frequency interference processing method, device, storage medium and terminal
WO2015014144A1 (en) Method and apparatus for installing application, and terminal device
CN104778055B (en) Method and device for displaying progress bar
CN107219951B (en) Touch screen control method and device, storage medium and terminal equipment
CN104093123A (en) Application program information pushing method, device and system and mobile terminal
WO2017215661A1 (en) Scenario-based sound effect control method and electronic device
CN106953898B (en) Method and device for acquiring software package
CN106502833B (en) Data backup method and device
CN107122036B (en) Method and device for adjusting frequency of central processing unit
WO2018161788A1 (en) Multimedia data sharing method and device
CN110688051B (en) Screen recording operation method and device, computer readable storage medium and terminal
CN106682189B (en) File name display method and device
CN107317828B (en) File downloading method and device
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
CN106374988B (en) Method, device and terminal for configuring inter-downlink-band carrier aggregation
CN105306244B (en) Router management method, system and equipment
CN106303616B (en) Play control method, device and terminal
CN107463395B (en) Component calling method and device
CN105159655B (en) Behavior event playing method and device
CN106982177B (en) Upgrade control method, device and terminal
CN106970812B (en) Upgrade file processing device and terminal
CN106210325B (en) Method, device and terminal for setting incoming call ringtone of social application

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant