CN104698884B - A kind of method of control packet, device and system - Google Patents
A kind of method of control packet, device and system Download PDFInfo
- Publication number
- CN104698884B CN104698884B CN201510019293.2A CN201510019293A CN104698884B CN 104698884 B CN104698884 B CN 104698884B CN 201510019293 A CN201510019293 A CN 201510019293A CN 104698884 B CN104698884 B CN 104698884B
- Authority
- CN
- China
- Prior art keywords
- packet
- optical signal
- light signal
- equipment
- ambient
- 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
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Optical Communication System (AREA)
Abstract
The embodiment of the invention discloses a kind of method of control packet, device and system, wherein, methods described includes:The automatic packet request that packet equipment receiving control apparatus is sent is treated, and according to the automatic packet acquisition request ambient parameter;The ambient parameter got is matched with default target component;When the ambient parameter and the default target component match, the control device is sent a response message to, so that the control device treats that packet equipment is added to targeted packets by described.Using the present invention, more accurately music player can be grouped, and make the operation of user become more to facilitate.
Description
Technical field
The present invention relates to electronic technology field, more particularly to a kind of method of control packet, device and system.
Background technology
What current wireless music system can be made up of multiple music players for being placed on different zones, each sound
Happy player passes through network connection each other.In addition, current wireless music system is typically to be carried out by terminals such as smart mobile phones
Control.Multiple music players in current wireless music system can be worked independently, and (i.e. each music player is independently broadcast
Put different songs), can also work asynchronously (i.e. each music player synchronously plays identical song), can also be by wherein
The music player that several music players are constituted in broadcasting group, the broadcasting group synchronously plays identical song, the broadcasting group
Outer music player can play identical or different song.Such as, a wireless music system has five sounds of A, B, C, D, E
Happy player, A and B constitute a broadcasting group 1, and C, D and E constitute another broadcasting group 2, then broadcasting group 1 and broadcasting group 2 can
Worked with relatively independent, that is, A and B synchronously plays song, and C, D and E synchronously play other song.
Current wireless music system by several music players before broadcasting group is constituted, it is necessary to first by user in intelligence
It can be operated in the graphic interface of mobile phone, will need to be merged into the music player of a group, select or drag to image
A region in interface, to complete the packet to music player.This packet mode, although can be straight on smart mobile phone
See and present, but more numerous and diverse operation can be brought to user.And when part music player moves position, and in time more
Rename title when, the broadcasting group obtained by user is grouped by smart mobile phone to music player may not be desired by user
Broadcasting group.
The content of the invention
The embodiment of the present invention provides a kind of method of control packet, device and system, and more accurately music can be broadcast
Put device to be grouped, and make the operation of user become more to facilitate.
The embodiments of the invention provide a kind of method of control packet, including:
The automatic packet request that packet equipment receiving control apparatus is sent is treated, and according to the automatic packet acquisition request ring
Border parameter;
The ambient parameter got is matched with default target component;
When the ambient parameter and the default target component match, send a response message to the control and set
It is standby, so that the control device treats that packet equipment is added to targeted packets by described.
Wherein, it is described to treat the automatic packet request that packet equipment receiving control apparatus is sent, and according to the automatic packet
Acquisition request ambient parameter, including:
The automatic packet request that packet equipment receiving control apparatus is sent is treated, and according to the automatic packet request default
Acquisition time section in collection ambient light signal;
Ambient parameter is obtained according to the ambient light signal collected, the ambient parameter includes the ambient light signal
Corresponding change in optical signal information.
Wherein, the default target component includes target change in optical signal information;
It is described to be matched the ambient parameter got with default target component, including:
Detect the corresponding change in optical signal information of the ambient light signal whether with the target change in optical signal information one
Cause;
If being detected as consistent, it is determined that the ambient parameter matches with the default target component.
Wherein, the default target component includes target change in optical signal information and light signal strength threshold value, the ring
Border parameter also includes the corresponding light signal strength of the ambient light signal;
It is described to be matched the ambient parameter got with default target component, including:
Detect the corresponding change in optical signal information of the ambient light signal whether with the target change in optical signal information one
Cause;
If being detected as unanimously, determining whether whether the corresponding light signal strength of the ambient light signal is more than the light
Signal strength threshold;
If being judged as being more than the light signal strength threshold value, it is determined that the ambient parameter and the default target component
Match.
Wherein, the target change in optical signal information is believed with the light for being used to indicate packet launched by the control device
Number corresponding change in optical signal information is consistent.
Accordingly, the embodiment of the present invention also provides a kind of control packet device, applied to treating packet equipment, including:
Acquisition module is received, the automatic packet request sent for receiving control apparatus, and please according to the automatic packet
Seek acquisition ambient parameter;
Matching module, for the ambient parameter got to be matched with default target component;
Message transmission module, for when the ambient parameter matches with the default target component, sending response
Message is to the control device, so that the control device treats that packet equipment is added to targeted packets by described.
Wherein, the reception acquisition module includes:
Collecting unit is received, the automatic packet request sent for receiving control apparatus, and please according to the automatic packet
Seek the collection ambient light signal in default acquisition time section;
Parameter acquiring unit, for obtaining ambient parameter, the ambient parameter according to the ambient light signal collected
Including the corresponding change in optical signal information of the ambient light signal.
Wherein, the default target component includes target change in optical signal information;
The matching module includes:
First detection unit, for detect the corresponding change in optical signal information of the ambient light signal whether with the target
Change in optical signal information is consistent;
First determining unit, if being detected as unanimously for first detection unit, it is determined that the ambient parameter and institute
Default target component is stated to match.
Wherein, the default target component includes target change in optical signal information and light signal strength threshold value, the ring
Border parameter also includes the corresponding light signal strength of the ambient light signal;
The matching module includes:
Second detection unit, for detect the corresponding change in optical signal information of the ambient light signal whether with the target
Change in optical signal information is consistent;
Judging unit, if being detected as unanimously, determining whether the ambient light signal for second detection unit
Whether corresponding light signal strength is more than the light signal strength threshold value;
Second determining unit, if being judged as being more than the light signal strength threshold value for the judging unit, it is determined that institute
Ambient parameter is stated with the default target component to match.
Wherein, the target change in optical signal information is believed with the light for being used to indicate packet launched by the control device
Number corresponding change in optical signal information is consistent.
Accordingly, the embodiment of the present invention also provides a kind of system of control packet, including at least one treat packet equipment and
Control device;
It is described at least one treat in packet equipment each treat that packet equipment includes above-mentioned control packet device;
The control device, for send automatic packet request described at least one treat packet equipment, and launch and be used for
The optical signal of packet is indicated, and for receiving response message, and corresponding with the response message will treat that packet equipment is added to
Targeted packets.
The embodiment of the present invention is carried out by obtaining ambient parameter, and by the ambient parameter got and default target component
Matching, and when ambient parameter and default target component match, control device can be sent a response message to, so that control
Equipment will treat that packet equipment is added to targeted packets, be grouped so as to more accurately treat packet equipment, and need not
Packet equipment, which is grouped, to be treated to which by user's selection again, make the operation of user become more to facilitate.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of the method for control packet provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the method for another control packet provided in an embodiment of the present invention;
Fig. 2 a are a kind of schematic diagrames for being used to indicate the optical signal of packet provided in an embodiment of the present invention;
Fig. 2 b are another schematic diagrames for being used to indicate the optical signal of packet provided in an embodiment of the present invention;
Fig. 3 is the schematic flow sheet of the method for another control packet provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation of control packet device provided in an embodiment of the present invention;
Fig. 5 is a kind of structural representation for receiving acquisition module provided in an embodiment of the present invention;
Fig. 6 is a kind of structural representation of matching module provided in an embodiment of the present invention;
Fig. 7 is the structural representation of another matching module provided in an embodiment of the present invention;
Fig. 8 is a kind of structural representation of the system of control packet provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
Fig. 1 is referred to, is a kind of schematic flow sheet of the method for control packet provided in an embodiment of the present invention, methods described
It can include:
S101, treats the automatic packet request that packet equipment receiving control apparatus is sent, and ask according to the automatic packet
Obtain ambient parameter;
Specifically, wireless music system can treat packet equipment including multiple, it can be one kind each to treat packet equipment
Music player, such as audio amplifier, and each treat that packet equipment can set at least one optical inductor in outer surface, it is described
Optical inductor is used to gather optical signal.Each treat that packet equipment can pass through cable network or wireless network by the control device
Network is controlled, and each treats that packet equipment can also be connected to internet by wireless network, the control device can be intelligence
The terminals such as energy mobile phone.When user selects automatic group mode in the control device, the control device can be to wireless
Each in music system treats that packet equipment sends automatic packet request, while the control device can also be launched for indicating
The optical signal of packet, the optical signal for being used to indicate packet can derive from the flash lamp of the control device, for example, described
Control device by controlling flash lamp to be lighted according to preset rules with formed one group be used for indicate be grouped optical signal.With nothing
One of them in line music system treats that packet equipment is illustrated, described to treat that packet equipment receive the control device
The automatic packet request sent, and start the optical inductor to gather the ambient light letter of surrounding according to the automatic packet request
Number, obtain corresponding ambient parameter further according to the ambient light signal.The ambient parameter can include the ambient light signal
Corresponding change in optical signal information, the ambient parameter can also include the corresponding light signal strength of the ambient light signal.Institute
State the light luminance change information that the corresponding change in optical signal information of ambient light signal refers to the ambient light signal.
S102, the ambient parameter got is matched with default target component;
Specifically, after getting the ambient parameter, it is described to treat that packet equipment join the environment got
Number is matched with default target component.Wherein, the default target component can be set before step S101
Put.When the default target component includes target change in optical signal information, the ambient parameter is joined with default target
Several matching process can be:Detect the corresponding change in optical signal information of the ambient light signal whether with the target optical signal
Change information is consistent, no if being detected as unanimously, to determine that the ambient parameter matches with the default target component
Then it fails to match.
When the default target component includes target change in optical signal information and light signal strength threshold value, the environment
The matching process of parameter and default target component can be:Detecting the corresponding change in optical signal information of the ambient light signal is
It is no consistent with the target change in optical signal information, if being detected as unanimously, determining whether that the ambient light signal is corresponding
Whether light signal strength is more than the light signal strength threshold value, and otherwise it fails to match;If being judged as being more than the light signal strength
Threshold value, then can determine that the ambient parameter matches with the default target component, otherwise it fails to match.
Wherein, the target change in optical signal information is believed with the light for being used to indicate packet launched by the control device
Number corresponding change in optical signal information is consistent.
S103, when the ambient parameter matches with the default target component, sends a response message to the control
Control equipment, so that the control device treats that packet equipment is added to targeted packets by described;
Specifically, when detecting that the ambient parameter and the default target component match, illustrate described in treat point
What the ambient light signal that is collected by optical inductor of group equipment included that the control device launched is used to indicate packet
Optical signal, that is, illustrate the corresponding change in optical signal information of the ambient light signal with by the control device launched be used for refer to
Show that the corresponding change in optical signal information of optical signal of packet is identical, it is now, described to treat that packet equipment be sent a response message to
The control device, so that the control device corresponding with the response message described will treat packet equipment added to target point
Group, so as to so that in wireless music system send have response message treat packet equipment all be added to same targeted packets
In, to realize the automatic packet for treating packet equipment.
Alternatively, the optical signal that transmitting is used to indicate packet can also be repeated several times in the control device, described to wait to be grouped
Equipment can also repeatedly carry out the collection of ambient light signal.The control device can launch the light for indicating packet every time
The beginning and end addition signal identification of signal, to distinguish the optical signal for being used to indicate packet of adjacent twice emitting;Or, institute
Control device is stated to send one before the optical signal for indicating packet is launched every time to needed packet equipment and disappear
Cease to inform that needed packet equipment will start to send the optical signal for being used for indicating packet, and launching described be used for every time
After the optical signal for indicating packet, send another a piece of news to inform that needed packet equipment has been launched to needed packet equipment
The complete optical signal for being used to indicate packet.For example, setting the control device to launch 3 times is used for the optical signal of instruction packet,
The control device is described to treat that packet equipment detects the ring when being used to indicate the optical signal of packet described in first time transmitting
It fails to match for border parameter, described to treat that packet equipment be in second of transmitting of control device light for being used to indicate packet
Continue to gather ambient light signal during signal, if described treat that packet equipment detects the ambient parameter got for the second time and matched into
Work(, then can send response message to the control device, and described treat that packet equipment need not be in the control device the
Three transmittings are described to be used to indicate to gather ambient light signal during the optical signal of packet;The control device will be launched in third time
The flash lamp is closed after the complete optical signal for indicating packet.
The embodiment of the present invention is carried out by obtaining ambient parameter, and by the ambient parameter got and default target component
Matching, and when ambient parameter and default target component match, control device can be sent a response message to, so that control
Equipment will treat that packet equipment is added to targeted packets, be grouped so as to more accurately treat packet equipment, and need not
Packet equipment, which is grouped, to be treated to which by user's selection again, make the operation of user become more to facilitate.
Fig. 2 is referred to, is the schematic flow sheet of the method for another control packet provided in an embodiment of the present invention, the side
Method can include:
S201, treats the automatic packet request that packet equipment receiving control apparatus is sent, and ask according to the automatic packet
The collection ambient light signal in default acquisition time section;
Specifically, wireless music system can treat packet equipment including multiple, it can be one kind each to treat packet equipment
Music player, such as audio amplifier, and each treat that packet equipment can set at least one optical inductor in outer surface, it is described
Optical inductor is used to gather optical signal.Each treat that packet equipment can pass through cable network or wireless network by the control device
Network is controlled, and each treats that packet equipment can also be connected to internet by wireless network, the control device can be intelligence
The terminals such as energy mobile phone.When user selects automatic group mode in the control device, the control device can be to wireless
Each in music system treats that packet equipment sends automatic packet request, while the control device can also be launched for indicating
The optical signal of packet, the optical signal for being used to indicate packet can derive from the flash lamp of the control device, for example, described
Control device by controlling flash lamp to be lighted according to preset rules with formed one group be used for indicate be grouped optical signal.With nothing
One of them in line music system treats that packet equipment is illustrated, described to treat that packet equipment receive the control device
The automatic packet request sent, and the optical inductor is started according to the automatic packet request, and pass through the optical inductor
Ambient light signal in default acquisition time section around collection.
It is again provided in an embodiment of the present invention a kind of for indicating to divide please also refer to Fig. 2 a and Fig. 2 b, Fig. 2 a and Fig. 2 b
The schematic diagram of the optical signal of group.In Fig. 2 a and Fig. 2 b, the horizontal line on top represent the control device start flash lamp when
Long, the horizontal line of bottom represents that the control device closes the duration of flash lamp.The corresponding optical signals of Fig. 2 a are that have periodically
The optical signal of change, i.e. flash lamp first bright 400ms, then the 400ms that goes out, then bright 400ms, then the 400ms that goes out, then bright 400ms.Fig. 2 b couple
The optical signal answered is non-periodically variable optical signal, i.e. flash lamp first bright 400ms, then the 300ms that goes out, then bright 200ms, then is gone out
200ms, then bright 500ms, then the 300ms that goes out, then bright 100ms.Certainly, the light letter for being used to indicate packet of the control device transmitting
Number changing rule be not limited only to optical signal corresponding to Fig. 2 a and Fig. 2 b, be not discussed here.By taking Fig. 2 a as an example, work as place
When control device in hall launches optical signal corresponding with Fig. 2 a, treat that packet equipment can be by optical inductor in hall
A length of 400ms flash lamp light when collecting, then when collecting a length of 400ms natural light, then a length of 400ms when collecting
Flash lamp light, then when collecting a length of 400ms natural light, then when collecting a length of 400ms flash lamp light, i.e. institute
Stating the ambient light signal that optical inductor collects in 2000ms includes flash lamp light and natural light.
S202, ambient parameter is obtained according to the ambient light signal collected, and the ambient parameter includes the environment
The corresponding change in optical signal information of optical signal;
Specifically, it is described after packet equipment collects the ambient light signal by the optical inductor, can basis
The ambient light signal collected obtains ambient parameter, and the ambient parameter includes the corresponding optical signal of the ambient light signal
Change information, i.e., it is described to treat that packet equipment obtain the corresponding light of the ambient light signal by parsing the ambient light signal
Signal intensity information.By taking the corresponding optical signals for indicating packet of above-mentioned Fig. 2 a as an example, if described treat that packet equipment passes through institute
Stating the ambient light signal that optical inductor collects in 2000ms includes flash lamp light and natural light, then described to treat packet equipment
The corresponding change in optical signal information of the ambient light signal got is the multiple replacement between flash lamp light and natural light,
Because the light luminance of flash lamp light is higher than the light luminance of natural light, so the corresponding optical signal of the ambient light signal becomes
The light luminance change information of the ambient light signal can also be referred to by changing information.
S203, detect the corresponding change in optical signal information of the ambient light signal whether with target change in optical signal information one
Cause;
Specifically, before S201 steps, it is described to treat that packet equipment pre-set target component, default target ginseng
Number can include target change in optical signal information, the target change in optical signal information and the use launched by the control device
It is consistent in the corresponding change in optical signal information of optical signal for indicating packet.Therefore, it is described to treat that packet equipment is getting the ring
After the parameter of border, it can detect whether is the corresponding change in optical signal information of the ambient light signal that the ambient parameter is included
It is consistent with the target change in optical signal information.
S204, if being detected as consistent, it is determined that the ambient parameter matches with default target component;
If specifically, S203 detects to detect the corresponding change in optical signal information of the ambient light signal and the target light
Signal intensity information is consistent, then can determine that the ambient parameter matches with the default target component, can also determine
The ambient light signal for treating that packet equipment is collected includes the optical signal for being used to indicate packet that the control device is launched.
If detecting, the corresponding change in optical signal information of the ambient light signal and the target change in optical signal information are inconsistent, really
It fails to match with the default target component for the fixed ambient parameter.
S205, sends a response message to the control device, so that the control device treats that packet equipment is added by described
To targeted packets;
Specifically, when detecting that the ambient parameter matches with the default target component, illustrating the environment
The corresponding change in optical signal information of optical signal is corresponding with the optical signal for being used for instruction packet launched by the control device
Change in optical signal information is identical, now, described to treat that packet equipment send a response message to the control device, so that described
Control device will it is corresponding with the response message it is described treat that packet equipment is added to targeted packets, so as to so that wireless music
In system send have response message treat packet equipment all be added to same targeted packets in, with realize treat packet equipment
Automatic packet.
For example, there are 5 to treat packet equipment in some wireless music system, wherein 3 are placed on hall, 2 placements in addition
In bedroom, ask to 5 to treat packet equipment when the control device in hall sends packet automatically, and launch for indicating to divide
During the optical signal of group, treat for 3 in hall to be used to indicate comprising described in the ambient light signal that packet equipment is collected
Treat for 2 in the optical signal of packet, bedroom to be used to indicate not comprising described in the ambient light signal that packet equipment is collected
The optical signal of packet, therefore, 3 in hall are treated that packet equipment can detect that the corresponding optical signal of the ambient light signal becomes
Change information consistent with target change in optical signal information, and 2 in bedroom are treated that packet equipment will detect the ambient light signal
Corresponding change in optical signal information and target change in optical signal information are inconsistent, so 3 only in hall are treated packet equipment
It can determine that ambient parameter matches with default target component and sends a response message to the control device respectively, it is described
3 in hall are only treated that packet equipment is added to targeted packets by control device, and the control device can control the target
3 in packet are treated that packet equipment synchronously plays the music of user's selection, and sync response some control commands, are such as played, temporarily
Stop, stop, volume adjusting etc..
The embodiment of the present invention is carried out by obtaining ambient parameter, and by the ambient parameter got and default target component
Matching, and when ambient parameter and default target component match, control device can be sent a response message to, so that control
Equipment will treat that packet equipment is added to targeted packets, be grouped so as to more accurately treat packet equipment, and need not
Packet equipment, which is grouped, to be treated to which by user's selection again, make the operation of user become more to facilitate.
Fig. 3 is referred to again, is the schematic flow sheet of the method for another control packet provided in an embodiment of the present invention, it is described
Method can include:
S301, treats the automatic packet request that packet equipment receiving control apparatus is sent, and ask according to the automatic packet
The collection ambient light signal in default acquisition time section;
The specific implementation of S301 steps may refer to the S201 steps in above-mentioned Fig. 2 correspondences embodiment, here no longer
Repeated.
S302, ambient parameter is obtained according to the ambient light signal collected, and the ambient parameter includes the environment
The corresponding change in optical signal information of optical signal and the corresponding light signal strength of the ambient light signal;
Specifically, it is described after packet equipment collects the ambient light signal by the optical inductor, can basis
The ambient light signal collected obtains ambient parameter, and the ambient parameter includes the corresponding optical signal of the ambient light signal
Change information and the corresponding light signal strength of the ambient light signal, i.e., it is described to treat that packet equipment is believed by parsing the ambient light
Number it can obtain the corresponding change in optical signal information of the ambient light signal and light signal strength.It is used for so that above-mentioned Fig. 2 a are corresponding
Exemplified by the optical signal for indicating packet, if described treat the ambient light that packet equipment is collected by the optical inductor in 2000ms
Signal includes flash lamp light and natural light, then described to treat the corresponding optical signal of the ambient light signal that packet equipment is got
Change information is the multiple replacement between flash lamp light and natural light, because the light luminance of flash lamp light is than natural light
Light luminance is high, so the corresponding change in optical signal information of the ambient light signal can also refer to the light of the ambient light signal
Brightness change information, the corresponding light signal strength of the ambient light signal for treating that packet equipment is got can be to collect
Flash lamp intensity of light, or the flash lamp intensity of light and the average value of natural light intensity collected.
S303, detects whether the corresponding change in optical signal information of the ambient light signal is believed with the target change in optical signal
Breath is consistent;
Specifically, before S301 steps, it is described to treat that packet equipment pre-set target component, default target ginseng
Number can be including target change in optical signal information and light signal strength threshold value, the target change in optical signal information and by the control
What control equipment was launched is used to indicate that the corresponding change in optical signal information of optical signal of packet is consistent.Therefore, it is described to treat that packet is set
For after the ambient parameter is got, the corresponding light of the ambient light signal that the ambient parameter is included can be detected
Whether signal intensity information is consistent with the target change in optical signal information.
S304, if being detected as unanimously, determining whether whether the corresponding light signal strength of the ambient light signal is more than
The light signal strength threshold value;
If specifically, S303 detects to detect the corresponding change in optical signal information of the ambient light signal and the target light
Signal intensity information is consistent, then can determine whether whether the corresponding light signal strength of the ambient light signal is more than the light
Signal strength threshold, while can also determine that the ambient light signal for treating that packet equipment is collected includes the control device institute
The optical signal for being used to indicate packet of transmitting.If detecting the corresponding change in optical signal information of the ambient light signal and the mesh
Mark change in optical signal information inconsistent, it is determined that it fails to match with the default target component for the ambient parameter.
S305, if being judged as being more than the light signal strength threshold value, it is determined that the ambient parameter and the default mesh
Mark match parameters;
If specifically, S304 judges that the corresponding light signal strength of the ambient light signal is more than the light signal strength threshold
Value, then can determine that the ambient parameter matches with the default target component.If judging the ambient light signal pair
The light signal strength answered is less than or equal to the light signal strength threshold value, it is determined that the ambient parameter and the default target
It fails to match for parameter.
S306, sends a response message to the control device, so that the control device treats that packet equipment is added by described
To targeted packets;
Specifically, when detecting that the ambient parameter matches with the default target component, illustrating the environment
The corresponding change in optical signal information of optical signal is corresponding with the optical signal for being used for instruction packet launched by the control device
Change in optical signal information is identical, now, described to treat that packet equipment send a response message to the control device, so that described
Control device will it is corresponding with the response message it is described treat that packet equipment is added to targeted packets, so as to so that wireless music
In system send have response message treat packet equipment all be added to same targeted packets in, with realize treat packet equipment
Automatic packet.Wherein, by the relatively corresponding light signal strength of the ambient light signal, treating point farther out can be avoided from user
Group equipment is also added to targeted packets, further improves the packet accuracy for treating packet equipment.
The embodiment of the present invention is carried out by obtaining ambient parameter, and by the ambient parameter got and default target component
Matching, and when ambient parameter and default target component match, control device can be sent a response message to, so that control
Equipment will treat that packet equipment is added to targeted packets, be grouped so as to more accurately treat packet equipment, and need not
Packet equipment, which is grouped, to be treated to which by user's selection again, make the operation of user become more to facilitate.
Fig. 4 is referred to, is a kind of structural representation of control packet device provided in an embodiment of the present invention, the control point
Group device 1 can apply to treat packet equipment, and the control packet device 1 includes:Receive acquisition module 10, matching module 20,
Message transmission module 30;
The reception acquisition module 10, the automatic packet request sent for receiving control apparatus, and according to described automatic
It is grouped acquisition request ambient parameter;
Specifically, wireless music system can treat packet equipment including multiple, it can be one kind each to treat packet equipment
Music player, such as audio amplifier, and each treat that packet equipment can set at least one optical inductor in outer surface, it is described
Optical inductor is used to gather optical signal.Each treat that packet equipment can pass through cable network or wireless network by the control device
Network is controlled, and each treats that packet equipment can also be connected to internet by wireless network, the control device can be intelligence
The terminals such as energy mobile phone.When user selects automatic group mode in the control device, the control device can be to wireless
Each in music system treats that packet equipment sends automatic packet request, while the control device can also be launched for indicating
The optical signal of packet, the optical signal for being used to indicate packet can derive from the flash lamp of the control device, for example, described
Control device by controlling flash lamp to be lighted according to preset rules with formed one group be used for indicate be grouped optical signal.With nothing
One of them in line music system treats that packet equipment is illustrated, described to treat that packet equipment includes control packet device 1, described
The reception acquisition module 10 in control packet device 1 can receive the automatic packet request that the control device is sent,
And the optical inductor is started to gather the ambient light signal of surrounding according to the automatic packet request, further according to the ambient light
The corresponding ambient parameter of signal acquisition.The ambient parameter can include the corresponding change in optical signal letter of the ambient light signal
Breath, the ambient parameter can also include the corresponding light signal strength of the ambient light signal.The ambient light signal is corresponding
Change in optical signal information refers to the light luminance change information of the ambient light signal.
The matching module 20, for the ambient parameter got to be matched with default target component;
Specifically, after the reception acquisition module 10 gets the ambient parameter, the matching module 20 can be by
The ambient parameter got is matched with default target component.When the default target component is believed including target light
During number change information, the matching process of the ambient parameter and default target component can be:The matching module 20 is detected
Whether the corresponding change in optical signal information of the ambient light signal is consistent with the target change in optical signal information, if being detected as one
Cause, then can determine that the ambient parameter matches with the default target component, otherwise it fails to match.
When the default target component includes target change in optical signal information and light signal strength threshold value, the environment
The matching process of parameter and default target component can be:The matching module 20 detects the corresponding light of the ambient light signal
Whether signal intensity information is consistent with the target change in optical signal information, if being detected as unanimously, determining whether the ring
Whether optical signal corresponding light signal strength in border is more than the light signal strength threshold value, and otherwise it fails to match;If being judged as being more than
The light signal strength threshold value, then can determine that the ambient parameter matches with the default target component, otherwise match
Failure.
Wherein, the target change in optical signal information is believed with the light for being used to indicate packet launched by the control device
Number corresponding change in optical signal information is consistent.
The message transmission module 30, for when the ambient parameter matches with the default target component, sending out
Response message is sent to the control device, so that the control device treats that packet equipment is added to targeted packets by described;
Specifically, when detecting that the ambient parameter and the default target component match, illustrate described in treat point
What the ambient light signal that is collected by optical inductor of group equipment included that the control device launched is used to indicate packet
Optical signal, that is, illustrate the corresponding change in optical signal information of the ambient light signal with by the control device launched be used for refer to
Show that the corresponding change in optical signal information of optical signal of packet is identical, now, the message transmission module 30 can send response and disappear
The control device is ceased, so that the control device corresponding with the response message described will treat that packet equipment is added to mesh
Mark packet, so as to so that sent in wireless music system have a response message treat packet equipment all added to same target point
In group, to realize the automatic packet for treating packet equipment.
Further, then Fig. 5 is referred to, is a kind of structural representation for receiving acquisition module provided in an embodiment of the present invention
Figure, the reception acquisition module 10 can include:Receive collecting unit 101, parameter acquiring unit 102;
The reception collecting unit 101, the automatic packet request sent for receiving control apparatus, and according to described automatic
Packet request collection ambient light signal in default acquisition time section;
The parameter acquiring unit 102, for obtaining ambient parameter, the ring according to the ambient light signal collected
Border parameter includes the corresponding change in optical signal information of the ambient light signal;
The reception corresponding specific implementation of collecting unit 101 may refer in above-mentioned Fig. 2 correspondences embodiment
S201, the corresponding specific implementation of the parameter acquiring unit 102 may refer to S202 in above-mentioned Fig. 2 correspondence embodiment or
S302 in above-mentioned Fig. 3 correspondences embodiment, is not discussed here.
Further, then Fig. 6 is referred to, is a kind of structural representation of matching module provided in an embodiment of the present invention, institute
Stating matching module 20 can include:First detection unit 201, the first determining unit 202;
First detection unit 201, for detect the corresponding change in optical signal information of the ambient light signal whether with
The target change in optical signal information is consistent;
First determining unit 202, if being detected as unanimously for first detection unit 201, it is determined that the ring
Border parameter matches with the default target component;
The corresponding specific implementation of first detection unit 201 may refer in above-mentioned Fig. 2 correspondences embodiment
S203, the corresponding specific implementation of first determining unit 202 may refer to the S204 in above-mentioned Fig. 2 correspondences embodiment,
It is not discussed here.
Further, then Fig. 7 is referred to, is the structural representation of another matching module provided in an embodiment of the present invention,
The matching module 20 can include:Second detection unit 203, the judging unit 204, second determining unit
205;
Second detection unit 203, for detect the corresponding change in optical signal information of the ambient light signal whether with
The target change in optical signal information is consistent;
The judging unit 204, if being detected as unanimously, determining whether described for second detection unit 203
Whether the corresponding light signal strength of ambient light signal is more than the light signal strength threshold value;
Second determining unit 205, if being judged as being more than the light signal strength threshold for the judging unit 204
Value, it is determined that the ambient parameter matches with the default target component;
The corresponding specific implementation of second detection unit 203 may refer in above-mentioned Fig. 3 correspondences embodiment
S303, the corresponding specific implementation of the judging unit 204 may refer to the S304 in above-mentioned Fig. 3 correspondences embodiment, described
The corresponding specific implementation of second determining unit 205 may refer to the S305 in above-mentioned Fig. 3 correspondences embodiment, no longer enter here
Row is repeated.
The embodiment of the present invention is carried out by obtaining ambient parameter, and by the ambient parameter got and default target component
Matching, and when ambient parameter and default target component match, control device can be sent a response message to, so that control
Equipment will treat that packet equipment is added to targeted packets, be grouped so as to more accurately treat packet equipment, and need not
Packet equipment, which is grouped, to be treated to which by user's selection again, make the operation of user become more to facilitate.
Fig. 8 is referred to, is a kind of structural representation of the system of control packet provided in an embodiment of the present invention, the system
It can include:At least one treats packet equipment 400 and control device 300;
It is described at least one treat in packet equipment 400 each treat that packet equipment 400 can be by network connection to institute
State control device 300.
It is described at least one treat in packet equipment 400 each treat that packet equipment 400 may each comprise control packet device,
The corresponding specific implementation of the control packet device may refer to the control point of any illustrated embodiments of above-mentioned Fig. 4 to Fig. 7
Group device 1, is not discussed here.
The control device 300, asks described at least one to treat packet equipment 400, concurrently for sending automatic packet
The optical signal for indicating packet is penetrated, and for receiving response message, and corresponding with the response message will treat packet equipment
400 are added to targeted packets.
The embodiment of the present invention is carried out by obtaining ambient parameter, and by the ambient parameter got and default target component
Matching, and when ambient parameter and default target component match, control device can be sent a response message to, so that control
Equipment will treat that packet equipment is added to targeted packets, be grouped so as to more accurately treat packet equipment, and need not
Packet equipment, which is grouped, to be treated to which by user's selection again, make the operation of user become more to facilitate.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with
The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
Above disclosure is only preferred embodiment of present invention, can not limit the right model of the present invention with this certainly
Enclose, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.
Claims (11)
1. a kind of method of control packet, it is characterised in that including:
The automatic packet request that packet equipment receiving control apparatus is sent is treated, and is joined according to the automatic packet acquisition request environment
Number;The ambient parameter treats the ambient light signal that packet equipment multi collect is arrived described in including;The control device is for many
Secondary repeat its transmission is used for the equipment for indicating the optical signal of packet;It is described to be used to indicate that the beginning and end of the optical signal of packet is included
Signal identification, in order to distinguish the optical signal for being used to indicate packet of adjacent twice emitting based on the signal identification;It is described to treat
Packet equipment is music player;
The ambient parameter got is matched with default target component;
When the ambient parameter and the default target component match, the control device is sent a response message to, with
The control device is set to treat that packet equipment is added to targeted packets by described, in order to which the follow-up control device is to the target
Needing the unified progress music control of packet equipment in packet.
2. the method as described in claim 1, it is characterised in that described to treat automatic point that packet equipment receiving control apparatus is sent
Group request, and according to the automatic packet acquisition request ambient parameter, including:
The automatic packet request that packet equipment receiving control apparatus is sent is treated, and is adopted according to the automatic packet request default
Collect collection ambient light signal in the period;
Ambient parameter is obtained according to the ambient light signal collected, the ambient parameter includes ambient light signal correspondence
Change in optical signal information.
3. method as claimed in claim 2, it is characterised in that the default target component is believed including target change in optical signal
Breath;
It is described to be matched the ambient parameter got with default target component, including:
Detect whether the corresponding change in optical signal information of the ambient light signal is consistent with the target change in optical signal information;
If being detected as consistent, it is determined that the ambient parameter matches with the default target component.
4. method as claimed in claim 2, it is characterised in that the default target component is believed including target change in optical signal
Breath and light signal strength threshold value, the ambient parameter also include the corresponding light signal strength of the ambient light signal;
It is described to be matched the ambient parameter got with default target component, including:
Detect whether the corresponding change in optical signal information of the ambient light signal is consistent with the target change in optical signal information;
If being detected as unanimously, determining whether whether the corresponding light signal strength of the ambient light signal is more than the optical signal
Intensity threshold;
If being judged as being more than the light signal strength threshold value, it is determined that the ambient parameter and the default target component phase
Match somebody with somebody.
5. the method as described in claim 3 or 4, it is characterised in that the target change in optical signal information with by the control
What equipment was launched is used to indicate that the corresponding change in optical signal information of optical signal of packet is consistent.
6. a kind of control packet device, applied to treating packet equipment, it is characterised in that including:
Acquisition module is received, the automatic packet request sent for receiving control apparatus, and obtained according to the automatic packet request
Take ambient parameter;The ambient parameter treats the ambient light signal that packet equipment multi collect is arrived described in including;The control device
It is the equipment for indicating the optical signal of packet for being repeated several times transmitting to be used for;It is described be used for indicate packet optical signal beginning and
End includes signal identification, in order to distinguish the light letter for being used to indicate packet of adjacent twice emitting based on the signal identification
Number;It is described to treat that packet equipment is music player;
Matching module, for the ambient parameter got to be matched with default target component;
Message transmission module, for when the ambient parameter matches with the default target component, sending response message
To the control device, so that the control device treats that packet equipment is added to targeted packets by described, in order to follow-up described
Control device in the targeted packets to needing the unified progress music control of packet equipment.
7. device as claimed in claim 6, it is characterised in that the reception acquisition module includes:
Collecting unit is received, the automatic packet request sent for receiving control apparatus, and existed according to the automatic packet request
Collection ambient light signal in default acquisition time section;
Parameter acquiring unit, for obtaining ambient parameter according to the ambient light signal collected, the ambient parameter includes
The corresponding change in optical signal information of the ambient light signal.
8. device as claimed in claim 7, it is characterised in that the default target component is believed including target change in optical signal
Breath;
The matching module includes:
First detection unit, for detecting whether the corresponding change in optical signal information of the ambient light signal is believed with the target light
Number change information is consistent;
First determining unit, if being detected as unanimously for first detection unit, it is determined that the ambient parameter with it is described pre-
If target component match.
9. device as claimed in claim 7, it is characterised in that the default target component is believed including target change in optical signal
Breath and light signal strength threshold value, the ambient parameter also include the corresponding light signal strength of the ambient light signal;
The matching module includes:
Second detection unit, for detecting whether the corresponding change in optical signal information of the ambient light signal is believed with the target light
Number change information is consistent;
Judging unit, if being detected as unanimously, determining whether the ambient light signal correspondence for second detection unit
Light signal strength whether be more than the light signal strength threshold value;
Second determining unit, if being judged as being more than the light signal strength threshold value for the judging unit, it is determined that the ring
Border parameter matches with the default target component.
10. device as claimed in claim 8 or 9, it is characterised in that the target change in optical signal information with by the control
What equipment was launched is used to indicate that the corresponding change in optical signal information of optical signal of packet is consistent.
11. a kind of system of control packet, it is characterised in that treat packet equipment and control device including at least one;
It is described at least one treat in packet equipment each treat that packet equipment includes the control described in any one of claim 6 to 10
Apparatus for grouping processed;
The control device, asks described at least one to treat packet equipment, and launch for indicating for sending automatic packet
The optical signal of packet, and for receiving response message, and corresponding with the response message will treat that packet equipment is added to target
Packet, in order to which the follow-up control device in the targeted packets to needing the unified progress music control of packet equipment
System.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510019293.2A CN104698884B (en) | 2015-01-14 | 2015-01-14 | A kind of method of control packet, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510019293.2A CN104698884B (en) | 2015-01-14 | 2015-01-14 | A kind of method of control packet, device and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104698884A CN104698884A (en) | 2015-06-10 |
CN104698884B true CN104698884B (en) | 2017-08-29 |
Family
ID=53346125
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510019293.2A Active CN104698884B (en) | 2015-01-14 | 2015-01-14 | A kind of method of control packet, device and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104698884B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105163338B (en) * | 2015-08-25 | 2016-12-28 | 广东欧珀移动通信有限公司 | The group management method of a kind of playback equipment and terminal |
CN105159168B (en) * | 2015-08-25 | 2017-05-17 | 广东欧珀移动通信有限公司 | Group control method of broadcast equipment and user terminal |
CN105161123B (en) * | 2015-08-25 | 2018-07-06 | 广东欧珀移动通信有限公司 | A kind of method and terminal of playback equipment grouping |
CN105553503B (en) * | 2015-12-31 | 2018-12-14 | 联想(北京)有限公司 | Information processing method, device and electronic equipment |
CN106656988B (en) * | 2016-10-27 | 2019-06-18 | Oppo广东移动通信有限公司 | Method, main playback equipment and the mobile terminal of playback equipment marshalling |
CN110824277B (en) * | 2019-11-14 | 2021-02-19 | 美的集团股份有限公司 | Intelligent household appliance partitioning method and device and intelligent household appliance |
CN114554665B (en) * | 2020-11-25 | 2023-08-29 | 武汉市奥拓智能科技有限公司 | Street lamp grouping control system and method |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014031660A1 (en) * | 2012-08-24 | 2014-02-27 | Qualcomm Incorporated | Joining communication groups with pattern sequenced light and/or sound signals as data transmissions |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101060535B (en) * | 2006-04-21 | 2011-01-12 | 深圳Tcl工业研究院有限公司 | A digital family network equipment automatic grouping method |
CN102655583B (en) * | 2011-03-01 | 2014-03-26 | 华为终端有限公司 | Meeting place environment control method, device and system in video communication |
CN104076705B (en) * | 2014-06-26 | 2017-06-06 | 美的集团股份有限公司 | Terminal control method and system based on transit terminal |
-
2015
- 2015-01-14 CN CN201510019293.2A patent/CN104698884B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014031660A1 (en) * | 2012-08-24 | 2014-02-27 | Qualcomm Incorporated | Joining communication groups with pattern sequenced light and/or sound signals as data transmissions |
Also Published As
Publication number | Publication date |
---|---|
CN104698884A (en) | 2015-06-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104698884B (en) | A kind of method of control packet, device and system | |
CN107483254B (en) | Production test method and device for intelligent module of Internet of things | |
CN109473095B (en) | Intelligent household control system and control method | |
CN105536266B (en) | The control method and system that intelligent building blocks game device, intelligent building blocks are played | |
CN105354406B (en) | The treating method and apparatus of background music | |
CN106168958B (en) | A kind of the recommendation method and server of audio-frequency information | |
CN105846865B (en) | Method, device and system for Bluetooth audio transmission | |
CN101009777A (en) | System and method for controlling lighting in a digital video stream | |
CN105848225A (en) | Wireless connection switching method and device applied to audio playing system | |
US11412601B2 (en) | Temporarily adding a light device to an entertainment group | |
CN106598537A (en) | Mobile terminal music play control method and system and mobile terminal | |
CN106293602B (en) | Audio data control method for playing back and equipment in earphone | |
CN108520742A (en) | Improve method, speech recognition equipment and the playing device of phonetic recognization rate | |
CN105812906A (en) | Communication control method and device for playing device | |
CN107369446A (en) | Handle state prompt method, device and computer-readable recording medium | |
CN105337822B (en) | A kind of selection method and relevant device of main playback equipment | |
CN105812905B (en) | Control method for playing back and device in a kind of audio-video frequency playing system | |
CN106954097B (en) | The control method and device of video playing | |
CN108470532A (en) | A kind of intelligent broadcast device and its working method for sight spot introduction | |
CN106915314B (en) | Switch the method and apparatus of broadcasting between a kind of multi-medium data and traffic information | |
CN104837216B (en) | The method and device of intelligent terminal reconnection wireless smart devices | |
CN107071575A (en) | Paster media file playing method and device | |
CN105429831B (en) | A kind of system of selection of main playback equipment and playback equipment | |
CN105049982B (en) | A kind of method for playing music and intelligent sound box based on intelligent sound box | |
CN107276815A (en) | Networking state reminding method, device and computer-readable recording medium |
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 | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd. |