CN105429777A - Operating state recovery method and apparatus - Google Patents
Operating state recovery method and apparatus Download PDFInfo
- Publication number
- CN105429777A CN105429777A CN201510683600.7A CN201510683600A CN105429777A CN 105429777 A CN105429777 A CN 105429777A CN 201510683600 A CN201510683600 A CN 201510683600A CN 105429777 A CN105429777 A CN 105429777A
- Authority
- CN
- China
- Prior art keywords
- network
- equipment
- disconnected
- same group
- work sequence
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 34
- 238000011084 recovery Methods 0.000 title claims abstract description 23
- 230000001360 synchronised effect Effects 0.000 claims description 40
- 238000010586 diagram Methods 0.000 description 12
- 238000004590 computer program Methods 0.000 description 7
- 206010063385 Intellectualisation Diseases 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 238000003860 storage Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000005304 joining Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000036651 mood Effects 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0876—Aspects of the degree of configuration automation
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Automation & Control Theory (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention discloses an operating state recovery method and an apparatus. The method includes: in a network, a common work sequence is defined for devices in the same group; when a first device disconnected with the network is connected to the network again, at least a second device which belongs to the same group with the first device is discovered before the first device is disconnected with the network; a work sequence of at least one second device is obtained; and the first device is controlled to determine a task which should be done according to the role before disconnection with the network and the work sequence. According to the method and the apparatus, the operating state before network disconnection can be automatically recovered.
Description
Technical Field
The invention relates to a state recovery technology, in particular to a method and a device for recovering a working state.
Background
With the increasing pressure of life, listening to music or radio, watching video or images has become a way to relax the mood of people. In the network, when an audio/video output device disconnects the network and reconnects to the network, the audio/video output device may not be able to continue outputting the audio/video played before the network was disconnected. Taking an audio output device as an example, a sound box is a kind of audio output device, and is popular among users due to its convenience and good tone quality. Wireless sound boxes such as bluetooth wireless sound boxes, wireless fidelity (wifi) wireless sound boxes, 2.4G wireless sound boxes, Frequency Modulation (FM) wireless sound boxes and the like can be arranged in a plurality of rooms as mobile music equipment, and the same piece of music or broadcast can be played by connecting the same wireless network such as a home or office wireless network. When one of the wireless sound boxes moves, the situation that the network is disconnected temporarily easily occurs, and when the wireless sound box is connected with the network again, the music before the network is disconnected stops playing. If the music needs to be played continuously by using the wireless sound box, manual setting is needed, and the setting mode needing manual participation cannot reflect the intellectualization of the equipment.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present invention provide a method and an apparatus for recovering a working state, which can automatically recover the working state before the network is disconnected without human intervention, thereby highlighting the intelligence and automation of the device.
The technical scheme of the embodiment of the invention is realized as follows:
the embodiment of the invention provides a method for recovering a working state, which comprises the following steps:
in the network, a common work sequence is defined for the devices in the same group;
when a first device disconnected from a network is connected to the network again, discovering at least one second device belonging to the same group as the first device before the first device is disconnected from the network;
acquiring a work sequence of the at least one second device;
and controlling the first equipment to judge the task to be executed by the first equipment according to the work sequence according to the role before the network is disconnected.
In the above scheme, the method further comprises: recording the device identification of each second device belonging to the same group as the first device before the first device disconnects the network;
when the first device is connected to the network again, the device having the device identification in the network is found to be the second device.
In the above-mentioned scheme, the first step of the method,
acquiring Media Access Control (MAC) addresses of the first equipment and the at least one second equipment to obtain at least two MAC addresses;
and determining the synchronous clock of the first equipment in the network according to the at least two MAC addresses.
In the foregoing solution, the determining a synchronous clock of the first device in the network according to the at least two MAC addresses includes:
determining the MAC address with the largest or the smallest value in the at least two MAC addresses;
determining the equipment corresponding to the MAC address with the maximum or minimum value as a main synchronous clock source;
and controlling the first equipment clock to be synchronous with the master synchronous clock source.
In the above solution, the first device and the second device are any one or a combination of an audio/video output device, an optical output device, and an electrical signal control device.
The embodiment of the invention also provides a device for recovering the working state, which comprises:
the defining unit is used for defining a common work sequence for the devices in the same group;
a discovery unit configured to discover, when a first device disconnected from a network is connected again to the network, at least one second device belonging to the same group as the first device before the first device is disconnected from the network;
a first obtaining unit, configured to obtain a work sequence of the at least one second device;
and the control unit is used for controlling the first equipment to judge tasks to be executed by the first equipment according to the work sequence according to the role before the network is disconnected.
In the foregoing solution, the discovery unit is further configured to:
recording the device identification of each second device belonging to the same group as the first device before the first device disconnects the network;
when the first device is connected to the network again, the device having the device identification in the network is found to be the second device.
In the above scheme, the apparatus further comprises:
a second acquisition unit configured to:
acquiring Media Access Control (MAC) addresses of the first equipment and the at least one second equipment to obtain at least two MAC addresses;
and determining the synchronous clock of the first equipment in the network according to the at least two MAC addresses.
In the foregoing solution, the second obtaining unit is further configured to:
determining the MAC address with the largest or the smallest value in the at least two MAC addresses;
determining the equipment corresponding to the MAC address with the maximum or minimum value as a main synchronous clock source;
and controlling the first equipment clock to be synchronous with the master synchronous clock source.
In the above solution, the first device and the second device are any one or a combination of an audio/video output device, an optical output device, and an electrical signal control device.
According to the working state recovery method and device provided by the embodiment of the invention, in a network, a common working sequence is defined for equipment in the same group; when a first device disconnected from a network is connected to the network again, discovering at least one second device belonging to the same group as the first device before the first device is disconnected from the network; acquiring a work sequence of the at least one second device; and controlling the first equipment to judge the task to be executed by the first equipment according to the work sequence according to the role before the network is disconnected. By utilizing the embodiment, the working state before the network disconnection can be automatically recovered without manual participation, and the intellectualization and automation of the equipment are highlighted.
Drawings
Fig. 1 is a schematic flow chart illustrating an implementation of a working state recovery method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a scenario according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating an implementation of a working status recovery method according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating an embodiment of clock synchronization;
fig. 5 is a schematic structural diagram of a component of the operating state recovery apparatus according to the embodiment of the present invention.
Detailed Description
The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings, and it should be understood that the preferred embodiments described below are only for the purpose of illustrating and explaining the present invention, and are not to be construed as limiting the present invention.
In the embodiment of the invention, in the network, a common work sequence is defined for the devices in the same group; when a first device disconnected from a network is connected to the network again, discovering at least one second device belonging to the same group as the first device before the first device is disconnected from the network; acquiring a work sequence of the at least one second device; and controlling the first equipment to judge the task to be executed by the first equipment according to the work sequence according to the role before the network is disconnected. The working state before the network disconnection, such as the playing state, can be automatically recovered without manual participation, and the intellectualization and the automation of the equipment are highlighted.
Fig. 1 is a schematic flow chart illustrating an implementation of a working state recovery method according to an embodiment of the present invention; as shown in fig. 1, the method includes:
step 100: in the network, a common work sequence is defined for the devices in the same group;
this step may be performed before the first device disconnects the network, or may be performed after the first device disconnects the network, which is not specifically limited herein. The device may be any one or combination of an audio/video output device, a light output device, an electrical signal control device. Defining the work sequence of devices in the same group is configuring the role each device takes at a certain time and the task it performs. Taking the device as an audio output device such as a sound box as an example, the role of the sound box a is a role of playing audio through a left channel, and the device can be configured to play music a at time T0; it is also possible to configure the playback of music B at time T1 by all the speakers set to play right. Taking the device as a video output device such as a video player as an example, the configurator video player 1 plays the video 1 at the time T0, and the configurator video player 2 plays the video 2 at the time T1. Taking the device as an example of a light output device, the LED lamp No. 1 may be configured to blink at time T0, and the LED lamp No. 2 may be configured to blink at time T1. Taking the device as an electric signal control device as an example, the intelligent firework igniter 1 can be configured to be started at the time T0, and the intelligent firework igniter 2 can be configured to be started at the time T1. That is, in the work sequence, what role each device belonging to the same group needs to take at what time and the corresponding task are defined, and the work sequence is stored after the work sequence is defined. Taking the device as an audio output device such as a loudspeaker as an example, in the same group, there may be a master loudspeaker and a slave loudspeaker, and before one of the loudspeakers is not disconnected, the music content played by the slave loudspeaker may be determined according to a defined work sequence, or may follow the playing content of the master loudspeaker.
Step 101: when a first device disconnected from a network is connected again into the network, discovering at least one second device belonging to the same group as the first device before the first device disconnected from the network;
in this embodiment, the first device and the second device may be any one or a combination of an audio/video output device, a light output device, and an electric signal control device. The first device and the second device are sound boxes, preferably wireless sound boxes. The network is preferably a wireless network. The scenarios that can be addressed are: taking a home wireless network as an example, a plurality of sound boxes are arranged, when the same audio frequency such as the same song is played by the plurality of sound boxes at the same time, one sound box is disconnected from the network due to movement or other reasons, and the playing of the sound box is stopped. For example, loudspeaker 1 belongs to the same group as loudspeakers 2-4 before the network is disconnected, and when the network is disconnected and the loudspeaker is connected to the network again, loudspeaker 1 searches for loudspeakers belonging to the same group as loudspeakers 2-4 before the network is disconnected.
Step 102: acquiring a work sequence of the at least one second device;
here, taking the loudspeaker that is disconnected as the loudspeaker 1 as an example, the operation sequence of other loudspeakers belonging to the same group as the loudspeaker 1 before the network is disconnected is determined.
Step 103: and controlling the first equipment to judge the task to be executed by the first equipment according to the work sequence according to the role before the network is disconnected.
Here, the role of the first device before the network disconnection is configured, and for example, an audio output device such as a speaker, speaker a1 in configuration group a is a speaker for performing audio playback in the left channel, and speaker a2 is a speaker for performing audio playback in the two channels. Taking a video output device such as a video player for example, player B1 in group B is configured to play a first video and player B2 is configured to play a second video. Taking an audio output device such as a loudspeaker as an example, when connected to the network again, loudspeaker 1 continues to perform the corresponding task according to the role defined by the work sequence stored in the other loudspeaker. For example, before the sound box 1 disconnects the network, it is defined that it plays music a in the left channel, when it is reconnected to the network, music a has not been played, and when the sound box 1 reconnects to the network, music a continues to be played in the left channel.
Preferably, before the first audio output device disconnects the network, a device identifier of each second device belonging to the same group as the first device is recorded; when the first device is connected to the network again, the device having the device identification in the network is found to be the second device. The at least one second device comprises at least a primary audio output device such as a primary speaker; when the first device is connected to the network again, the first device sends the device identification of the first device to the master audio output device, and the master audio output device confirms whether the first device belongs to the slave audio output device of the master audio output device before the first device is connected to the network again. And when the second equipment confirms that the first equipment belongs to the slave audio output equipment of the master audio output equipment, the first audio output equipment rejoins the same group, and acquires the work sequence information stored by other sound boxes in the same group and the audio data output by other sound boxes. And when the first audio output device acquires the work sequence again, executing corresponding tasks according to the defined roles in the work sequence. For example, before the network is disconnected, it is defined that sound box 1 plays music a in the left channel at time T0, that sound box 1 plays music B in the left channel at time T1, and that when it is disconnected and connected to the network again, the time T1 is the time, sound box 1 plays music B in the left channel.
This solution is further described below with reference to fig. 2 to 4.
Specifically, with reference to the scene schematic diagram shown in fig. 2, when at least two speakers are initially connected to the home wireless network, a common work sequence is defined for devices in the same group, the speaker 1 is defined as a master speaker, the slave speakers 2 to 4 are configured as slave speakers, the slave speakers 2 to 4 are configured to play with a left channel, the master speaker can play with a left channel, a right channel or a dual channel, and the playing time of each speaker and the played music can be set according to actual use conditions. The division of the master loudspeaker box and the slave loudspeaker boxes of the plurality of loudspeaker boxes in the wireless network can adopt a negotiation mode among the loudspeaker boxes. For example, each loudspeaker broadcasts its own playing performance, such as sensitivity, distortion and playing effect, to other loudspeakers via the wireless network, and among all the loudspeakers, the loudspeaker with the best playing performance is selected as the master loudspeaker for playing, and the others are selected as the slave loudspeakers. In addition, since each speaker has a Media Access Control (MAC) address when accessing the wireless network, the negotiation manner may also be: each loudspeaker box broadcasts the MAC address of the loudspeaker box to other loudspeaker boxes through a wireless network, and in all the loudspeaker boxes, the loudspeaker box with the minimum or the maximum MAC address is selected as a main loudspeaker box for playing, and the other loudspeaker boxes are selected as slave loudspeaker boxes. And selecting the sound box with the maximum wireless network signal intensity as a main sound box, and selecting other sound boxes as auxiliary sound boxes. The specific implementation process for the negotiation mode can also be implemented in any other conceivable form, and is not described in detail here.
In all the sound boxes, for example, the main sound box is the sound box 1 (second device), the auxiliary sound boxes are the sound boxes 2-4, the auxiliary sound box 2 (first device) is connected to the network again after being disconnected from the network for a short time, when the sound box 2 is not disconnected from the network, all the sound boxes in the network are regarded as the same group, the role of each sound box at the corresponding moment is defined to execute the corresponding task, the defined work sequence is stored, and the device identification, such as the device model, of each sound box belonging to the same group is recorded. When one of the sound boxes, such as the sound box 2, is disconnected from the network for a short time and then stops playing the audio data, when the sound box is connected to the network again, the sound box 2 searches all the sound boxes belonging to the same group before the network is disconnected according to the recorded equipment identification, determines the work sequence of the sound boxes belonging to the same group, and continues to execute corresponding tasks according to the role defined in the work sequence. As shown in fig. 3, the sound box 2 sends its own device identifier to the sound box 1, and the sound box 2 determines whether the sound box 1 is a slave sound box that follows the sound box 1 to perform audio playing before the network is disconnected. Further, in the device identification information recorded before, the sound box 1 considers that the sound box 2 is a slave sound box that follows itself if the device identification of the sound box 2 can be found, or else, considers that the sound box is not a slave sound box that follows itself. If the sound box 1 considers that the sound box 2 does not follow the slave sound box of the sound box, the processing flow is ended; if the loudspeaker 1 considers that the loudspeaker 2 has been following the slave loudspeaker itself, the loudspeaker 2 is notified, the loudspeaker 2 joins the previous group again, the loudspeaker 2 reads the work sequence that has been stored in the loudspeaker 1 before, and executes the corresponding task according to the role defined in the work sequence, for example, the audio data B continues to be played in the form of left channel play at the time when the loudspeaker is connected to the network again, for example, at time T2.
According to the scheme, in the network, a common work sequence is defined for the devices in the same group, when a first device which disconnects the network is connected to the network again, at least one second device which belongs to the same group with the first device before the first device disconnects the network is found, the work sequence of the at least one second device is obtained, and the task which is required to be executed by the first device is executed according to the content defined by the work sequence. When the network is connected again, the audio data can be played again according to the content defined by the work sequence. Therefore, the first equipment can automatically recover to the working state before the network is disconnected, such as the playing state, manual setting is not needed, and the intellectualization of the equipment is highlighted.
In the descriptions of fig. 2 to fig. 4, the process of recovering the operating state of the device is performed by taking an audio output device such as a sound box as an example, and in addition, a video output device, an optical output device, and an electrical signal control device as an example may also be used for the description, and the specific description process is similar to the foregoing process and is not repeated here. In this embodiment, the working state of the first device includes a play state and/or a clock synchronization state.
The above contents are the recovery of the sound box in working, such as playing state, when the sound box disconnected from the network is connected to the network again. In addition, as is well known to those skilled in the art, in order to achieve better communication, devices or network elements in the network need to be synchronized on a clock. However, since the plurality of speakers in the embodiment of the present invention can play the same audio data at the same time, when the first device disconnected from the network is connected to the network again, the first device needs to keep consistent with other second devices in the network on the clock. The method for performing clock synchronization when the loudspeaker box disconnected from the network is connected to the network again comprises the following steps:
acquiring the MAC addresses of the first equipment and the at least one second equipment to obtain at least two MAC addresses; and determining the synchronous clock of the first equipment in the network according to the at least two MAC addresses. Wherein the determining a synchronous clock of the first device in the network according to the at least two MAC addresses comprises: determining the MAC address with the largest or the smallest value in the at least two MAC addresses; determining the equipment corresponding to the MAC address with the maximum or minimum value as a main synchronous clock source; and controlling the first equipment clock to be synchronous with the master synchronous clock source.
Here, taking the audio output device as an example, the main loudspeaker is loudspeaker 1, the slave loudspeakers are loudspeakers 2-4, and the slave loudspeaker 2 is connected to the network again after being disconnected from the network for a short time, as shown in fig. 4, the slave loudspeaker 2 broadcasts a message of joining the network to other loudspeakers in the network, and broadcasts its MAC address to other loudspeakers, and other loudspeakers also broadcast their MAC addresses to loudspeakers other than itself in the network, so that each loudspeaker in the network will receive the MAC addresses of other loudspeakers except itself. Each sound box compares the MAC address of the sound box with the MAC addresses of other sound boxes, the sound box with the maximum MAC address value is used as a master synchronous clock source, other sound boxes can be synchronized with the master synchronous clock source on the clock, and the clock frequency of the slave sound box in time synchronization is consistent with the clock of the master synchronous clock source. Of course, each speaker may also use the speaker with the smallest MAC address value as the master synchronization clock source. And is not particularly limited herein.
In summary, when the loudspeaker box disconnected from the network is connected to the network again, in the recovery of the working state, such as the playing state, the loudspeaker box may find the working sequence of the second device belonging to the same group as the loudspeaker box before the network is disconnected, and execute the corresponding task according to the content defined by the working sequence, such as continuing playing of the audio data. And on the recovery of the synchronous state, the loudspeaker box acquires the MAC addresses of other loudspeaker boxes, and the loudspeaker box with the largest or smallest MAC address value is used as a main synchronous clock source, and the loudspeaker box keeps synchronous with the main synchronous clock source on the clock. Therefore, the technical scheme not only realizes the automatic recovery of the playing state of the sound box, but also realizes the automatic recovery of the clock synchronization, does not need manual setting, avoids the problem of complex operation caused by manual setting, and highlights the intellectualization and the automation of the equipment.
Based on the foregoing working state recovery method, an embodiment of the present invention further provides a working state recovery device, as shown in fig. 5, where the device includes: a definition unit 500, a discovery unit 501, a first acquisition unit 502, and a control unit 503; wherein,
a defining unit 500, configured to define a common work sequence for devices in the same group;
a discovery unit 501, configured to discover, when a first device that disconnects a network is connected to the network again, at least one second device that belongs to the same group as the first device before the first device disconnects the network;
a first obtaining unit 502, configured to obtain a work sequence of the at least one second device;
a control unit 503, configured to control the first device to determine, according to the role before the network is disconnected, a task to be executed by the first device according to the work sequence.
Wherein the discovery unit 501 is further configured to: recording the device identification of each second device belonging to the same group as the first device before the first device disconnects the network; when the first device is connected to the network again, the device with the device identification in the network is determined to be the second device.
The device further comprises: a second acquisition unit (not illustrated in fig. 5) for: acquiring Media Access Control (MAC) addresses of the first equipment and the at least one second equipment to obtain at least two MAC addresses; and determining the synchronous clock of the first equipment in the network according to the at least two MAC addresses. Further, the second obtaining unit is further configured to: determining the MAC address with the largest or the smallest value in the at least two MAC addresses; determining the audio output equipment corresponding to the MAC address with the maximum or minimum value as a main synchronous clock source; and controlling the first equipment clock to be synchronous with the master synchronous clock source.
Wherein the first device and the second device are any one or combination of an audio/video output device, an optical output device and an electric signal control device.
In the device for recovering a working state according to the embodiment of the present invention, because the principle of the device for solving the problem is similar to that of the method for recovering a working state, the implementation process and the implementation principle of the device for recovering a working state can be described by referring to the implementation process and the implementation principle of the method for recovering a working state, and repeated details are not repeated.
In the embodiment of the invention, when the loudspeaker box disconnected from the network is connected to the network again, the automatic recovery of the loudspeaker box in the playing state and the clock synchronization can be realized. In the recovery of the playing state, the loudspeaker box can find out the working sequence of the second equipment belonging to the same group as the loudspeaker box before the network is disconnected, and execute the corresponding task according to the content defined by the working sequence, such as continuing playing the audio data. And on the recovery of the synchronous state, the loudspeaker box acquires the MAC addresses of other loudspeaker boxes, and the loudspeaker box with the largest or smallest MAC address value is used as a main synchronous clock source, and the loudspeaker box keeps synchronous with the main synchronous clock source on the clock. Therefore, the invention not only realizes the automatic recovery of the playing state of the sound box, but also realizes the automatic recovery of the clock synchronization, does not need manual setting, avoids the problem of complex operation caused by manual setting, and highlights the intellectualization and automation of the equipment.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.
Claims (10)
1. An operating state recovery method, characterized in that the method comprises:
in the network, a common work sequence is defined for the devices in the same group;
when a first device disconnected from a network is connected to the network again, discovering at least one second device belonging to the same group as the first device before the first device is disconnected from the network;
acquiring a work sequence of the at least one second device;
and controlling the first equipment to judge the task to be executed by the first equipment according to the work sequence according to the role before the network is disconnected.
2. The method of claim 1, further comprising: recording the device identification of each second device belonging to the same group as the first device before the first device disconnects the network;
when the first device is connected to the network again, the device having the device identification in the network is found to be the second device.
3. The method of claim 1,
acquiring Media Access Control (MAC) addresses of the first equipment and the at least one second equipment to obtain at least two MAC addresses;
and determining the synchronous clock of the first equipment in the network according to the at least two MAC addresses.
4. The method of claim 3, wherein the determining the synchronized clock of the first device in the network based on the at least two MAC addresses comprises:
determining the MAC address with the largest or the smallest value in the at least two MAC addresses;
determining the equipment corresponding to the MAC address with the maximum or minimum value as a main synchronous clock source;
and controlling the first equipment clock to be synchronous with the master synchronous clock source.
5. The method according to any one of claims 1 to 4, wherein the first device and the second device are any one or a combination of an audio/video output device, a light output device, an electrical signal control device.
6. An operating state recovery apparatus, characterized in that the apparatus comprises:
the defining unit is used for defining a common work sequence for the devices in the same group;
a discovery unit configured to discover, when a first device disconnected from a network is connected again to the network, at least one second device belonging to the same group as the first device before the first device is disconnected from the network;
a first obtaining unit, configured to obtain a work sequence of the at least one second device;
and the control unit is used for controlling the first equipment to judge tasks to be executed by the first equipment according to the work sequence according to the role before the network is disconnected.
7. The apparatus of claim 6, wherein the discovery unit is further configured to:
recording the device identification of each second device belonging to the same group as the first device before the first device disconnects the network;
when the first device is connected to the network again, the device having the device identification in the network is found to be the second device.
8. The apparatus of claim 6, further comprising:
a second acquisition unit configured to:
acquiring Media Access Control (MAC) addresses of the first equipment and the at least one second equipment to obtain at least two MAC addresses;
and determining the synchronous clock of the first equipment in the network according to the at least two MAC addresses.
9. The apparatus of claim 8, wherein the second obtaining unit is further configured to:
determining the MAC address with the largest or the smallest value in the at least two MAC addresses;
determining the equipment corresponding to the MAC address with the maximum or minimum value as a main synchronous clock source;
and controlling the first equipment clock to be synchronous with the master synchronous clock source.
10. The apparatus according to any one of claims 6 to 9, wherein the first device and the second device are any one or a combination of an audio/video output device, a light output device, and an electrical signal control device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510683600.7A CN105429777B (en) | 2015-10-20 | 2015-10-20 | Working condition restoration methods and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510683600.7A CN105429777B (en) | 2015-10-20 | 2015-10-20 | Working condition restoration methods and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105429777A true CN105429777A (en) | 2016-03-23 |
CN105429777B CN105429777B (en) | 2019-02-19 |
Family
ID=55507728
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510683600.7A Active CN105429777B (en) | 2015-10-20 | 2015-10-20 | Working condition restoration methods and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105429777B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108900953A (en) * | 2018-06-29 | 2018-11-27 | 北京橙鑫数据科技有限公司 | Setting method, the device and system of the tupe of electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1599325A (en) * | 2003-09-16 | 2005-03-23 | 华为技术有限公司 | Smooth restart method of carrier control level |
US20090031182A1 (en) * | 2007-07-13 | 2009-01-29 | Rohm Co., Ltd. | Information Communication Terminal, Radio Communication Apparatus and Radio Communication Network System Capable of Performing Communication Corresponding to Purpose |
CN102282862A (en) * | 2009-01-19 | 2011-12-14 | 夏普株式会社 | Synchronization device and radio transmission system |
CN103546697A (en) * | 2013-10-12 | 2014-01-29 | 中央电视台 | Peer-to-peer control playing method of star structure |
CN104899071A (en) * | 2015-04-29 | 2015-09-09 | 深圳市深信服电子科技有限公司 | Recovery method and recovery system of virtual machine in cluster |
-
2015
- 2015-10-20 CN CN201510683600.7A patent/CN105429777B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1599325A (en) * | 2003-09-16 | 2005-03-23 | 华为技术有限公司 | Smooth restart method of carrier control level |
US20090031182A1 (en) * | 2007-07-13 | 2009-01-29 | Rohm Co., Ltd. | Information Communication Terminal, Radio Communication Apparatus and Radio Communication Network System Capable of Performing Communication Corresponding to Purpose |
CN102282862A (en) * | 2009-01-19 | 2011-12-14 | 夏普株式会社 | Synchronization device and radio transmission system |
CN103546697A (en) * | 2013-10-12 | 2014-01-29 | 中央电视台 | Peer-to-peer control playing method of star structure |
CN104899071A (en) * | 2015-04-29 | 2015-09-09 | 深圳市深信服电子科技有限公司 | Recovery method and recovery system of virtual machine in cluster |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108900953A (en) * | 2018-06-29 | 2018-11-27 | 北京橙鑫数据科技有限公司 | Setting method, the device and system of the tupe of electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN105429777B (en) | 2019-02-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11487500B2 (en) | Portable playback device state variable | |
US11979622B2 (en) | Configuration of playback device audio settings | |
US10158946B2 (en) | Speaker discovery and assignment | |
JP2018152857A (en) | Satellite volume control | |
US10735803B2 (en) | Playback device setup | |
KR102656013B1 (en) | Content output device and control method thereof | |
US11543876B2 (en) | Synchronous playback with battery-powered playback device | |
CN105282660A (en) | Method, terminal and system for realizing multichannel stereo output | |
WO2017029946A1 (en) | Audio system, audio device, and audio device setting method | |
JP2017041756A (en) | Audio system and audio apparatus | |
CN105429777B (en) | Working condition restoration methods and device | |
CN105847951B (en) | Control method for playing back and device in audio-video frequency playing system | |
CN105682010B (en) | Bluetooth connection control method, device and playback equipment in audio frequency broadcast system | |
CN108650592B (en) | Method for realizing neck strap type surround sound and stereo control system | |
CN105828132B (en) | The control method and audio-video frequency playing system of broadcasting group in audio-video frequency playing system | |
CN114531311B (en) | Equipment control method and device | |
CN105812935B (en) | Control method for playing back and device in audio-video frequency playing system | |
US20240114565A1 (en) | Smart Wireless Connection Handling Techniques | |
US20220070947A1 (en) | Techniques to Reduce Time to Music for a Playback Device | |
CN114793308A (en) | Sound box assembly, wireless audio playing system and communication method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20221008 Address after: Room R2172, 2nd Floor, Building 3, No. 18, Keyuan Road, Economic Development Zone, Daxing District, Beijing 100176 Patentee after: Bird innovation (Beijing) Technology Co.,Ltd. Address before: 100191 No. d-203, floor 1, No. 28, information road, Haidian District, Beijing Patentee before: BEIJING XIAONIAO TINGTING TECHNOLOGY Co.,Ltd. |
|
TR01 | Transfer of patent right |