WO2017031853A1 - Grouping management method for playing devices, and terminal - Google Patents

Grouping management method for playing devices, and terminal Download PDF

Info

Publication number
WO2017031853A1
WO2017031853A1 PCT/CN2015/096070 CN2015096070W WO2017031853A1 WO 2017031853 A1 WO2017031853 A1 WO 2017031853A1 CN 2015096070 W CN2015096070 W CN 2015096070W WO 2017031853 A1 WO2017031853 A1 WO 2017031853A1
Authority
WO
WIPO (PCT)
Prior art keywords
signal strength
values
strength values
playback device
groups
Prior art date
Application number
PCT/CN2015/096070
Other languages
French (fr)
Chinese (zh)
Inventor
林尚波
Original Assignee
广东欧珀移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Publication of WO2017031853A1 publication Critical patent/WO2017031853A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic

Definitions

  • the embodiments of the present invention relate to the field of audio playback technologies, and in particular, to a packet management method and a terminal of a playback device.
  • the network music system consisting of multiple playback devices is becoming more and more popular among consumers.
  • a plurality of playback devices are wirelessly connected into a private network, and the private network provides an interface for the Internet, and the interface can be connected to one or more routers, so that the playback device in the private network can access the network music resources.
  • the device in the private network can be accessed through a dedicated application software to manage the device, including adding and reducing devices, searching for music, creating playlists, and various playback states. control.
  • the playback devices need to be added to a certain playback device group one by one.
  • the playback device A, the playback device B, and the playback device C are added to the first device.
  • the playback device D and the playback device E are added to the second playback device group. In this manner, the playback device needs to be searched, and the process is added after the search, and the process is cumbersome and the user experience is poor.
  • the embodiments of the present invention provide a packet management method and a terminal for a playback device, which can simplify the grouping process of the playback device and improve the user experience.
  • a first aspect of the embodiments of the present invention discloses a packet management method for a playback device, including:
  • a playback device group corresponding to a signal strength value of each of the M groups of the N playback devices Play the device group to get M playback device groups.
  • the determining a WIFI signal strength of the N playback devices in the wireless music system to obtain the N signal strength values includes:
  • the N signal values are quantized to obtain N signal strength values.
  • the N signal values are quantized to obtain N signal strengths Values, including:
  • the determining, by using the N Groups including:
  • the signal strength values of the N signal strength values having the same magnitude of the signal strength values are grouped into the same group to obtain M groups.
  • the N signal strength values are grouped according to a preset rule, to obtain M Groups, including:
  • the M 3
  • the two thresholds include: K1 and K2;
  • the signal strength values of the N signal strength values that are less than K1 are grouped into the same group, and the signal strength values of the N signal strength values that are greater than or equal to K1 and less than K2 are grouped into the same group.
  • the signal strength values of the N signal strength values whose signal strength values are greater than or equal to K2 are grouped into the same group to obtain three groups.
  • a second aspect of the embodiment of the present invention discloses a terminal, including:
  • a first determining unit configured to determine a WIFI signal strength of the N playing devices in the wireless music system, to obtain N signal strength values, where N is an integer greater than 1;
  • a first grouping unit configured to group the N signal strength values determined by the first determining unit according to a preset rule to obtain M groups, where the M is an integer greater than 1 and less than or equal to the N;
  • a second grouping unit configured to respectively compose a playback device corresponding to a signal strength value of each of the M groups obtained by the first grouping unit among the N playing devices to obtain M playing Device group.
  • the first determining unit includes:
  • a first acquiring unit configured to acquire N signal values corresponding to WIFI signal strengths of N playing devices in the wireless music system
  • a quantization unit configured to quantize the N signal values acquired by the first acquiring unit to obtain N letters Number strength value.
  • a processing unit configured to normalize the N signal values obtained by the acquiring unit to obtain N normalized values
  • a second determining unit configured to determine, according to a mapping relationship between the preset normalized value and the signal strength value, a signal strength value corresponding to the N normalized values obtained by the processing unit.
  • the first grouping unit is specifically configured to:
  • the signal strength values of the N signal strength values having the same magnitude of the signal strength values are grouped into the same group to obtain M groups, and the M is an integer greater than 1 and less than or equal to the N.
  • the first grouping unit includes:
  • a second acquiring unit configured to acquire two thresholds input by the user, where the M is 3, the two thresholds include: K1 and K2;
  • a first grouping subunit wherein the signal strength values of the N signal strength values less than K1 form a same group, and the signal strength values of the N signal strength values are greater than or equal to K1 and less than K2
  • the intensity values are grouped into the same group, and the signal strength values of the N signal intensity values greater than or equal to K2 are grouped into the same group to obtain three groups.
  • a third aspect of the embodiments of the present invention discloses a storage medium for storing an application, where the application is used to execute a group management method of a playback device according to the first aspect of the present invention.
  • a fourth aspect of the embodiments of the present invention discloses a terminal, including: one or more processors; a memory; one or more modules, where the one or more modules are stored in the memory, when When multiple processors are executing, do the following:
  • a playback device corresponding to a signal strength value of each of the M groups of the N playback devices is respectively configured into a playback device group to obtain M playback device groups.
  • the embodiment of the present invention determines the WIFI signal strength of the N playback devices in the wireless music system to obtain N signal strength values, where N is an integer greater than 1, and groups the N signal strength values according to a preset rule. Obtaining M groups, wherein the M is an integer greater than 1 and less than or equal to the N; respectively, playing a playback device corresponding to the signal strength value of each of the M groups in the N playback devices Device group to get M playback device groups.
  • the embodiment of the present invention can determine the WIFI signal strength of each playing device in the wireless music system, and group the wireless playing devices based on the WIFI signal strength, thereby simplifying the grouping process and improving the user experience.
  • FIG. 1 is a schematic flowchart of a first embodiment of a packet management method for a playback device according to an embodiment of the present disclosure
  • FIG. 2 is a schematic flowchart of a second embodiment of a packet management method for a playback device according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart diagram of a third embodiment of a method for group management of a playback device according to an embodiment of the present disclosure
  • FIG. 4 is a schematic structural diagram of a first embodiment of a terminal according to an embodiment of the present disclosure
  • FIG. 4b is still another schematic structural diagram of a first embodiment of a terminal according to an embodiment of the present disclosure.
  • FIG. 4c is still another schematic structural diagram of a first embodiment of a terminal according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic structural diagram of still another embodiment of a terminal according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic structural diagram of a second embodiment of a terminal according to an embodiment of the present invention.
  • the terminal may include, but is not limited to, a notebook computer, a mobile phone, a tablet computer, a smart wearable device, and the like.
  • the system of the terminal refers to the operating system of the device, which may include, but is not limited to, an Android system, a Symbian system, a Windows system, an IOS (a mobile operating system developed by Apple), and the like.
  • the Android terminal refers to the terminal of the Android system
  • the Saipan terminal refers to the terminal of the Saipan system, and the like.
  • the above terminals are merely examples, not exhaustive, and include but are not limited to the above terminals.
  • FIG. 1 to FIG. 5 The embodiment of the present invention is described in conjunction with FIG. 1 to FIG. 5 for a packet management method and a terminal of a playback device according to an embodiment of the present invention.
  • FIG. 1 is a schematic flowchart diagram of a first embodiment of a packet management method for a playback device according to an embodiment of the present invention.
  • the group management method of the playback device described in this embodiment includes the following steps:
  • the embodiment of the present invention may be based on a wireless music system, where the wireless music system is composed of N playing devices, and the N is an integer greater than 1.
  • the terminal may determine the WIFI signal strength of the N playing devices, and the WIFI signal strength is used. Indicates the strength of the WIFI signal of the playback device.
  • a feasible implementation manner which may be a signal strength value of 1 corresponding to less than 15 dBm, greater than or equal to 15 dBm and less than 25 dBm, corresponding to a signal strength value of 2, greater than or equal to 25 dBm and A signal value corresponding to less than 35 decibels millivolts is 3, a signal value greater than or equal to 35 decibels millivolts and less than 45 decibels millivolts is 4, and a signal value corresponding to greater than or equal to 45 decibels millivolts is 5.
  • the playback device A has a signal value of 20 decibels
  • the playback device B has a signal value of 12 decibels
  • the playback device C has a signal value of 40 decibels
  • the playback device D has a signal value of 30 decibels.
  • the signal value of the playback device E is 50 decibels
  • the signal strength value of the playback device A is 2
  • the signal strength value of the playback device B is 1
  • the signal strength value of the playback device C is 4
  • the signal strength value of the playback device D is The signal strength value for 3 and playback device E is 5.
  • the terminal may group the N signal strength values according to a preset rule, and obtain M groups after grouping, where M is an integer greater than 1 and less than or equal to N.
  • the terminal may combine the signal strength values of the signal strength values of the N signal strength values into the same group to obtain M groups, where M is an integer greater than 1 and less than or equal to the N.
  • M is an integer greater than 1 and less than or equal to the N.
  • the N signal strength values are 2, 2, 3, 5, 8, 2, 4, 3, respectively.
  • 2, 2, 2 can be grouped into one group, 3, 3 form a group, and 5 is a group, 4
  • 8 is a group and 5 groups are obtained.
  • the terminal may divide the N signal strength values into 2 groups, and combine the signal strength values of the N signal strength values with the even signal strength values into the first group and the N signals.
  • the second group is composed of odd signal strength values.
  • the preset rule is that the signal strength values whose signal strength values are even are grouped into one group, and the signal strength values whose signal strength values are odd are grouped into one group.
  • the terminal may divide the N signal strength values into two groups, and set a threshold, and form a signal strength value that is less than the threshold value among the signal strength values of the N signal strength values.
  • a set and a signal strength value of the signal strength values of the N signal strength values greater than or equal to the threshold constitute a second group.
  • the preset rule is that the signal strength values whose signal strength values are smaller than the threshold value are grouped into one group, and the signal strength values whose signal strengths are greater than or equal to the threshold value are grouped into one group.
  • the terminal may divide the N signal strength values into 2 groups, and combine the signal strength values of the N signal strength values in the preset interval to form the first group and the N group.
  • the signal strength values of the signal strength values outside the preset interval constitute a second group.
  • the preset rule is to divide the signal strength values whose signal strength values are in the preset interval into a group, and the signal strength values whose signal strength is outside the preset interval are grouped into one group.
  • the playback devices corresponding to the signal strength values of each of the M groups of the N playback devices are respectively formed into a playback device group to obtain M playback device groups.
  • the terminal may respectively form a playback device group corresponding to the signal strength values of each of the M groups of the N playback devices, thereby obtaining M playback device groups.
  • the N playback devices are: the signal strength value of the playback device A is 2, the signal strength value of the playback device B is 3, the signal strength value of the playback device C is 2, and the signal strength value of the playback device D is 4, and the playback is performed.
  • the signal strength value of device E is 3, and the signal strength value of playback device F is 3, and the three groups are: first group: 2 and 2, second group: 3, 3, and 3, and third group: 4, then
  • the M playback device groups are: a first playback device group: a playback device A and a playback device C; a second playback device group: a playback device B, a playback device E, and a playback device F; and a third playback device group: a playback device D.
  • the embodiment of the present invention determines the WIFI signal strength of the N playback devices in the wireless music system to obtain N signal strength values, where N is an integer greater than 1, and groups the N signal strength values according to a preset rule. Obtaining M groups, the M being an integer greater than 1 and less than or equal to the N; respectively, playing the playback device corresponding to the signal strength value of each of the M groups in the N playback devices
  • the playback device group is composed to obtain M playback device groups.
  • the embodiment of the present invention can determine the WIFI signal strength of each playing device in the wireless music system, and group the wireless playing devices based on the WIFI signal strength, thereby simplifying the grouping process and improving the user experience.
  • FIG. 2 is a schematic flowchart diagram of a second embodiment of a packet management method for a playback device according to an embodiment of the present invention.
  • the group management method of the playback device described in this embodiment includes the following steps:
  • the terminal may obtain N signal values corresponding to the WIFI signal strength of the N playback devices in the wireless music system, for example, the signal value of the playback device A is 20 dB millivolts, and the signal value of the playback device B is 12 dB. In millivolts, the playback device C has a signal value of 40 decibels, the playback device D has a signal value of 30 decibels, and the playback device E has a signal value of 50 decibels.
  • the terminal may quantize N signal values, thereby obtaining N signal strength values.
  • the terminal may normalize the N signal values to obtain N normalized values, and determine signals corresponding to the N normalized values according to a mapping relationship between the preset normalized value and the signal strength value.
  • Strength value The normalization process may be: determining a normalization threshold, where the normalization threshold may be a maximum value of a signal value in a wireless music system, or a threshold set by a user, where the threshold is normally greater than or Equal to the maximum of the signal values in the wireless music system.
  • the normalization threshold may be a maximum of the N signal values, and each of the N signal values is divided by the maximum value to obtain N normalized values.
  • the N normalized values are all less than or equal to 1, and the mapping relationship between the preset normalized value and the signal strength value may be: the preset normalized value is greater than 0 and less than 0.2 corresponding signal The intensity value is 1, the preset normalization value is greater than or equal to 0.2, and the signal strength value corresponding to less than 0.4 is 2, and the preset normalization value is greater than or equal to 0.4 and less than 0.6 corresponding to the signal strength value is 3, preset The normalized value is greater than or equal to 0.6 and less than 0.8 corresponds to a signal strength value of 4, and the preset normalized value is greater than or equal to 0.8 corresponding to a signal strength value of 5.
  • the playback device A has a signal value of 20 decibels
  • the playback device B has a signal value of 12 decibels
  • the playback device C has a signal value of 40 decibels
  • the playback device D has a signal value of 30 decibels.
  • the signal value of the playback device E is 50 decibels millivolts
  • the normalized values are: the normalized value of the playback device A is 0.4, the normalized value of the playback device B is 0.24, the normalized value of the playback device C is 0.8, and the playback device D is returned.
  • a value of 0.6 and a normalized value of the playback device E are 1, then the signal strength value of the playback device A is 3, the signal strength value of the playback device B is 2, the signal strength value of the playback device C is 5, and the playback device D signal The intensity value is 4 and the signal strength value of the playback device E is 5.
  • the terminal may group the N signal strength values according to a preset rule to obtain M groups, where M is an integer greater than 1 and less than or equal to N.
  • the terminal may combine the signal strength values of the signal strength values of the N signal strength values into the same group to obtain M groups, where M is an integer greater than 1 and less than or equal to the N.
  • M is an integer greater than 1 and less than or equal to the N.
  • the N signal strength values are 2, 2, 3, 5, 8, 2, 4, and 3, respectively.
  • 2, 2, and 2 can be grouped into one group
  • 3 and 3 are grouped into one group
  • 5 is a group
  • 4 is a group
  • 8 is a group
  • 5 groups are obtained.
  • the terminal may divide the N signal strength values into 2 groups, and combine the signal strength values of the N signal strength values with the even signal strength values into the first group and the N signals.
  • the signal strength values in the intensity values are odd signal strength values that make up the second group.
  • the preset rule is that the signal strength values whose signal strength values are even are grouped into one group, and the signal strength values whose signal strength values are odd are grouped into one group.
  • the terminal may divide the N signal strength values into two groups, and set a threshold, and form a signal strength value that is less than the threshold value among the signal strength values of the N signal strength values.
  • a set and a signal strength value of the signal strength values of the N signal strength values greater than or equal to the threshold constitute a second group.
  • the preset rule is that the signal strength values whose signal strength values are smaller than the threshold value are grouped into one group, and the signal strength values whose signal strengths are greater than or equal to the threshold value are grouped into one group.
  • the terminal may divide the N signal strength values into 2 groups, and combine the signal strength values of the N signal strength values in the preset interval to form the first group and the N group.
  • the signal strength values of the signal strength values outside the preset interval constitute a second group.
  • the preset rule is to divide the signal strength values whose signal strength values are in the preset interval into a group, and the signal strength values whose signal strength is outside the preset interval are grouped into one group.
  • a playback device corresponding to a signal strength value of each of the M groups of the N playback devices is respectively configured into a playback device group to obtain M playback device groups.
  • the terminal may respectively form a playback device group corresponding to the signal strength values of each of the M groups of the N playback devices, thereby obtaining M playback device groups.
  • the N playback devices are: the signal strength value of the playback device A is 2, the signal strength value of the playback device B is 3, the signal strength value of the playback device C is 2, and the signal strength value of the playback device D is 4, and the playback is performed.
  • the signal strength value of device E is 3, the signal strength value of playback device F is 3, and the M groups are: first group: 2, 2, 2, second group: 3, 3, 3, third group: 4
  • the M playback device groups are: a first playback device group: a playback device A and a playback device C; a second playback device group: a playback device B, a playback device E, and a playback device F; and a third playback device group: a playback device D.
  • the embodiment of the present invention acquires N signal values corresponding to the WIFI signal strengths of the N playback devices in the wireless music system; and quantizes the N signal values to obtain N signal strength values; and the N signals
  • the intensity values are grouped according to a preset rule to obtain M groups, wherein the M is an integer greater than 1 and less than or equal to the N; respectively, each of the N playback devices and each of the M groups
  • the playback device corresponding to the signal strength value constitutes a playback device group to obtain M playback device groups.
  • the embodiment of the present invention can determine the WIFI signal strength of each playing device in the wireless music system, and group the wireless playing devices based on the WIFI signal strength, thereby simplifying the grouping process, and Improve the user experience.
  • FIG. 3 is a schematic flowchart diagram of a third embodiment of a packet management method for a playback device according to an embodiment of the present invention.
  • the group management method of the playback device described in this embodiment includes the following steps:
  • the embodiment of the present invention may be based on a wireless music system, where the wireless music system is composed of N playing devices, and the N is an integer greater than 1.
  • the terminal may determine the WIFI signal strength of the N playing devices, and the WIFI signal strength is used. Indicates the strength of the WIFI signal of the playback device.
  • the terminal may acquire two thresholds input by the user, and the threshold may be assumed to be K1 and K2.
  • the signal strength values of the N signal strength values that are less than K1 are grouped into the same group, and the signal strength values of the N signal strength values that are greater than or equal to K1 and less than K2 are the same. And grouping, the signal strength values of the N signal strength values having a signal strength value greater than or equal to K2 are grouped into the same group to obtain three groups.
  • the terminal may combine the signal strength values of the N signal strength values less than K1 into the same group, and combine the signal strength values of the N signal strength values that are greater than or equal to K1 and less than K2.
  • the signal strength values of the N signal strength values whose signal strength values are greater than or equal to K2 are grouped into the same group to obtain three groups.
  • the playback devices corresponding to the signal strength values of each of the M groups of the N playback devices are respectively configured into a playback device group to obtain M playback device groups.
  • the terminal may respectively form a playback device group corresponding to the signal strength values of each of the M groups of the N playback devices, thereby obtaining M playback device groups.
  • the wireless music system includes: a playback device A, a playback device B, a playback device C, a playback device D, and a playback device E.
  • the signal strength value of the playback device A is 2, the signal strength value of the playback device B is 3, the signal strength value of the playback device C is 2, the signal strength value of the playback device D is 4, and the signal strength value of the playback device E is 3.
  • the signal strength value of the playback device F is 3, and if the threshold K1 input by the user is 2.1 and K2 is 3.8, the first group can be: 2, 2, and the second group can be: 3, 3, 3, the third group Can be: 4, then, the playback device can be divided into three groups, the first playback device group is: playback device A and playback device C; the second playback device group is: playback device B, playback device E and playback device F; The third playing device group is: playing device D.
  • the embodiment of the invention determines the WIFI signal strength of the N playback devices in the wireless music system to obtain N signals
  • the intensity value, the N is an integer greater than 1; in the case where the M is 3, two thresholds input by the user are acquired, the two thresholds include: K1 and K2; and the N signal strength values are The signal strength values whose signal strength values are smaller than K1 constitute the same group, and the signal strength values of the N signal strength values that are greater than or equal to K1 and less than K2 constitute the same group, and the N signal strength values are The signal strength values whose signal strength values are greater than or equal to K2 form the same group to obtain three groups; respectively, the playback devices corresponding to the signal strength values of each of the M groups of the N playback devices constitute a playback device Group to get M playback device groups.
  • the embodiment of the present invention can determine the WIFI signal strength of each playing device in the wireless music system, and group the wireless playing devices based on the WIFI signal strength, thereby simplifying the grouping process and improving the user experience
  • FIG. 4a is a schematic structural diagram of a first embodiment of a terminal according to an embodiment of the present invention.
  • the terminal described in FIG. 4a may include: a first determining unit 401, a first grouping unit 402, and a second grouping.
  • Unit 403 is as follows:
  • the first determining unit 401 is configured to determine WIFI signal strengths of the N playing devices in the wireless music system to obtain N signal strength values, where N is an integer greater than 1.
  • the embodiment of the present invention may be based on a wireless music system, where the wireless music system is composed of N playing devices, and the N is an integer greater than 1.
  • the first determining unit 401 may determine the WIFI signal strength of the N playing devices.
  • the WIFI signal strength is used to indicate the strength of the WIFI signal of the playback device.
  • a feasible implementation manner which may be a signal strength value of 1 corresponding to less than 15 dBm, greater than or equal to 15 dBm and less than 25 dBm, corresponding to a signal strength value of 2, greater than or equal to 25 dBm and A signal value corresponding to less than 35 decibels millivolts is 3, a signal value greater than or equal to 35 decibels millivolts and less than 45 decibels millivolts is 4, and a signal value corresponding to greater than or equal to 45 decibels millivolts is 5.
  • the playback device A has a signal value of 20 decibels
  • the playback device B has a signal value of 12 decibels
  • the playback device C has a signal value of 40 decibels
  • the playback device D has a signal value of 30 decibels.
  • the signal value of the playback device E is 50 decibels
  • the signal strength value of the playback device A is 2
  • the signal strength value of the playback device B is 1
  • the signal strength value of the playback device C is 4
  • the signal strength value of the playback device D is The signal strength value for 3 and playback device E is 5.
  • the first grouping unit 402 is configured to group the N signal strength values determined by the first determining unit 401 according to a preset rule to obtain M groups, where M is an integer greater than 1 and less than or equal to the N .
  • the first grouping unit 402 may group the N signal strength values according to a preset rule to obtain M groups, where M is an integer greater than 1 and less than or equal to N.
  • the first grouping unit 402 may equalize the signal strength values of the signal strength values of the N signal strength values.
  • the same group is composed to obtain M groups, and the M is an integer greater than 1 and less than or equal to N.
  • the N signal strength values are 2, 2, 3, 5, 8, 2, 4, 3, respectively, 2, 2, 2 can be grouped into one group, 3, 3 form a group, and 5 is a group, 4 For a group, 8 is a group and 5 groups are obtained.
  • the first grouping unit 402 may divide the N signal strength values into two groups, and combine the signal strength values of the N signal strength values with the even signal strength values into the first group sum.
  • a signal strength value in which the signal strength values of the N signal intensity values are odd is composed of the second group.
  • the preset rule is that the signal strength values whose signal strength values are even are grouped into one group, and the signal strength values whose signal strength values are odd are grouped into one group.
  • the first grouping unit 402 may divide the N signal strength values into two groups, and set a threshold, and a signal that is less than the threshold among the signal strength values of the N signal strength values.
  • the intensity values constitute a first group and the signal strength values of the signal strength values of the N signal strength values are greater than or equal to the threshold value to form a second group.
  • the preset rule is that the signal strength values whose signal strength values are smaller than the threshold value are grouped into one group, and the signal strength values whose signal strengths are greater than or equal to the threshold value are grouped into one group.
  • the first grouping unit 402 may divide the N signal strength values into two groups, and form a signal strength value of the N signal strength values in a preset interval to form a first The group and the signal strength values of the signal strength values of the N signal strength values outside the preset interval constitute a second group.
  • the preset rule is to divide the signal strength values whose signal strength values are in the preset interval into a group, and the signal strength values whose signal strength is outside the preset interval are grouped into one group.
  • a second grouping unit 403 configured to respectively compose a playback device corresponding to a signal strength value of each of the M groups obtained by the first grouping unit 402 among the N playback devices to obtain M playbacks.
  • Device group configured to respectively compose a playback device corresponding to a signal strength value of each of the M groups obtained by the first grouping unit 402 among the N playback devices to obtain M playbacks.
  • the second grouping unit 403 can respectively form a playback device group corresponding to the signal strength values of each of the M groups of the N playback devices, thereby obtaining M playback device groups.
  • the N playback devices are: the signal strength value of the playback device A is 2, the signal strength value of the playback device B is 3, the signal strength value of the playback device C is 2, and the signal strength value of the playback device D is 4, and the playback is performed.
  • the signal strength value of device E is 3, the signal strength value of playback device F is 3, and the M groups are: first group: 2 and 2, second group: 3, 3, and 3, and third group: 4, then
  • the M playback device groups are: a first playback device group: a playback device A and a playback device C; a second playback device group: a playback device B, a playback device E, and a playback device F; and a third playback device group: a playback device D.
  • the first determining unit 401 of the terminal described in FIG. 4a may include: a first obtaining unit 4011 and a quantifying unit 4012, including:
  • the first obtaining unit 4011 is configured to acquire N signal values corresponding to the WIFI signal strengths of the N playing devices in the wireless music system.
  • the first acquiring unit 4011 may acquire N signal values corresponding to the WIFI signal strengths of the N playing devices in the wireless music system, for example, the signal value of the playing device A is 20 dB millivolts, and the signal of the playing device B The value is 12 decibels, the signal value of playback device C is 40 decibels, the signal value of playback device D is 30 decibels, and the signal value of playback device E is 50 decibels.
  • the quantization unit 4012 is configured to perform quantization processing on the N signal values acquired by the first acquiring unit 4011 to obtain N signal strength values.
  • the quantization unit 4012 of the terminal described in FIG. 4c may include: a processing unit 404 and a second determining unit 405, including:
  • the processing unit 404 is configured to normalize the N signal values acquired by the first acquiring unit 4011 to obtain N normalized values.
  • the second determining unit 405 is configured to determine, according to a mapping relationship between the preset normalized value and the signal strength value, a signal strength value corresponding to the N normalized values obtained by the processing unit 404.
  • the processing unit 404 may perform normalization processing on the N signal values to obtain N normalized values, and the second determining unit 405 may determine, according to a mapping relationship between the preset normalized value and the signal strength value.
  • the normalization process may be: determining a normalization threshold, where the normalization threshold may be a maximum value of a signal value in a wireless music system, or a threshold set by a user, where the threshold is normally greater than or Equal to the maximum of the signal values in the wireless music system.
  • the normalization threshold may be a maximum of the N signal values, and each of the N signal values is divided by the maximum value to obtain N normalized values.
  • the N normalized values are all less than or equal to 1, and the mapping relationship between the preset normalized value and the signal strength value may be: the preset normalized value is greater than 0 and less than 0.2 corresponding signal strength.
  • the value is 1, the preset normalized value is greater than or equal to 0.2, and the signal strength value corresponding to less than 0.4 is 2, and the preset normalized value is greater than or equal to 0.4 and less than 0.6 corresponding to the signal strength value of 3, preset
  • the signal strength value corresponding to the normalized value greater than or equal to 0.6 and less than 0.8 is 4, and the predetermined normalized value is greater than or equal to 0.8 corresponding to a signal strength value of 5.
  • the playback device A has a signal value of 20 decibels
  • the playback device B has a signal value of 12 decibels
  • the playback device C has a signal value of 40 decibels
  • the playback device D has a signal value of 30 decibels.
  • the signal value of the playback device E is 50 decibels millivolts
  • the normalized values are: the normalized value of the playback device A is 0.4, the normalized value of the playback device B is 0.24, the normalized value of the playback device C is 0.8, and the playback device D is returned.
  • a value of 0.6 and a normalized value of the playback device E are 1, then the signal strength value of the playback device A is 3, the signal strength value of the playback device B is 2, the signal strength value of the playback device C is 5, and the playback device D signal The intensity value is 4 and the signal strength value of the playback device E is 5.
  • the first grouping unit 402 of the terminal described in FIG. 4a includes: a processing unit 4021 and a second determining unit 4022, including:
  • the second obtaining unit 4021 is configured to acquire, when the M is 3, two thresholds input by the user, where the two thresholds include: K1 and K2.
  • the first grouping subunit 4022 combines the signal strength values of the N signal strength values that are less than K1 into the same group, and the signal strength values of the N signal strength values are greater than or equal to K1 and less than K2.
  • the signal strength values form the same group, and the signal strength values of the N signal intensity values greater than or equal to K2 are grouped into the same group to obtain three groups.
  • the wireless music system includes: a playback device A, a playback device B, a playback device C, a playback device D, and a playback device E.
  • the signal strength value of the playback device A is 2, the signal strength value of the playback device B is 3, the signal strength value of the playback device C is 2, the signal strength value of the playback device D is 4, and the signal strength value of the playback device E is 3.
  • the signal strength value of the playback device F is 3.
  • the first group may be: 2 and 2, and the second group may be: 3, 3 And the third group can be: 4, then, the first grouping subunit 4022 can divide the playing device into three groups, the first playing device group is: the playing device A and the playing device C; the second playing device group is: The playback device B, the playback device E, and the playback device F; the third playback device group is: the playback device D.
  • the terminal described in the embodiment of the present invention may obtain N signal strength values by determining WIFI signal strengths of N playback devices in the wireless music system, where N is an integer greater than 1; and the N signal strength values are Grouping according to a preset rule to obtain M groups, wherein M is an integer greater than 1 and less than or equal to the N; respectively, signals of each of the N playback devices and the M groups
  • the playback devices corresponding to the intensity values constitute a playback device group to obtain M playback device groups.
  • the embodiment of the present invention can determine the WIFI signal strength of each playing device in the wireless music system, and group the wireless playing devices based on the WIFI signal strength, thereby simplifying the grouping process and improving the user experience.
  • FIG. 5 is a schematic structural diagram of a second embodiment of a terminal according to an embodiment of the present invention.
  • the terminal described in this embodiment includes: at least one input device 1000; at least one output device 2000; at least one processor 3000, such as a CPU; and a memory 4000, the input device 1000, the output device 2000, the processor 3000, and the memory 4000 Connected via bus 5000.
  • the input device 1000 can be a touch panel, a general PC, a liquid crystal screen, a touch screen, a touch button, and the like.
  • the above memory 4000 may be a high speed RAM memory or a non-volatile memory such as a disk memory.
  • the above memory 4000 is used to store a set of program codes, and the input device 1000, the output device 2000, and the processor 3000 are used to call the program code stored in the memory 4000, and perform the following operations:
  • N is an integer greater than one
  • a playback device corresponding to a signal strength value of each of the M groups of the N playback devices is respectively configured into a playback device group to obtain M playback device groups.
  • the processor 3000 determines the WIFI signal strength of the N playback devices in the wireless music system to obtain N signal strength values, specifically:
  • the N signal values are quantized to obtain N signal strength values.
  • the processor 3000 performs quantization processing on the N signal values to obtain N signal strength values, specifically:
  • the processor 3000 groups the N signal strength values according to a preset rule to obtain M groups, specifically:
  • the signal strength values of the N signal strength values having the same magnitude of the signal strength values are grouped into the same group to obtain M groups, and the M is an integer greater than 1 and less than or equal to the N.
  • the processor 3000 groups the N signal strength values according to a preset rule to obtain M groups, including:
  • the M 3
  • the two thresholds include: K1 and K2;
  • the signal strength values of the N signal strength values that are less than K1 are grouped into the same group, and the signal strength values of the N signal strength values that are greater than or equal to K1 and less than K2 are grouped into the same group.
  • the signal strength values of the N signal strength values whose signal strength values are greater than or equal to K2 are grouped into the same group to obtain three groups.
  • the terminal described in the embodiment of the present invention may obtain N signal strength values by determining WIFI signal strengths of N playback devices in the wireless music system, where N is an integer greater than 1; and the N signal strength values are Grouping according to a preset rule to obtain M groups, wherein M is an integer greater than 1 and less than or equal to the N; respectively, signals of each of the N playback devices and the M groups
  • the playback devices corresponding to the intensity values constitute a playback device group to obtain M playback device groups.
  • the embodiment of the present invention can determine the WIFI signal strength of each playing device in the wireless music system, and group the wireless playing devices based on the WIFI signal strength, thereby simplifying the grouping process and improving the use. User experience.
  • the present invention also provides a storage medium for storing an application for performing a group management method of a playback device according to any of the embodiments of the present invention.
  • the present invention also proposes a terminal comprising: one or more processors; a memory; one or more modules, one or more modules stored in the memory when being one or more processors Perform the following operations when performing:
  • the playback devices corresponding to the signal strength values of each of the M groups of the N playback devices are grouped into a playback device group to obtain M playback device groups.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

Disclosed are a grouping management method for playing devices. The method comprises: determining WIFI signal intensities of N playing devices in a wireless music system, so as to obtain N signal intensity values, where N is an integer greater than 1; grouping the N signal intensity values according to a pre-set rule so as to obtain M groups, where M is an integer greater than 1 and less than or equal to N; and respectively grouping playing devices in the N playing devices corresponding to each group of signal intensity values in the M groups into a playing device group so as to obtain M playing device groups. Also disclosed is a terminal. By means of the embodiments of the present invention, WIFI signal intensities of various playing devices in a wireless music system are determined, and the wireless playing devices are grouped according to the WIFI signal intensities, so that the grouping process is simplified, and the user experience is improved.

Description

播放设备的分组管理方法及终端Group management method and terminal of playback device
相关申请的交叉引用Cross-reference to related applications
本申请要求广东欧珀移动通信有限公司于2015年8月25日提交的、发明名称为“播放设备的分组管理方法及终端”的、中国专利申请号“201510528694.0”的优先权。The present application claims the priority of the Chinese patent application No. 201510528694.0, which is filed on August 25, 2015 by the Guangdong Opal Mobile Communications Co., Ltd., and has the invention titled "Group Management Method and Terminal for Playback Equipment".
技术领域Technical field
本发明实施例涉及音频播放技术领域,尤其涉及到一种播放设备的分组管理方法及终端。The embodiments of the present invention relate to the field of audio playback technologies, and in particular, to a packet management method and a terminal of a playback device.
背景技术Background technique
随着生活品质的提高,人们对音乐品质的追求也越来越高。由多个播放设备组成网络音乐系统,正越来越受到消费者的欢迎。即将多个播放设备通过无线方式连接成一个私有网络,该私有网络提供了面向因特网的接口,通过接口可以是连接到一个或多个路由器,从而,使私有网络内的播放设备可以访问网络音乐资源,在用户使用智能手机等终端设备的情况下,通过专用的应用软件可以访问这个私有网络内的设备,对设备进行管理,包括增加和减少设备、搜索音乐、创建播放列表,以及各种播放状态的控制。With the improvement of the quality of life, people's pursuit of music quality is getting higher and higher. The network music system consisting of multiple playback devices is becoming more and more popular among consumers. A plurality of playback devices are wirelessly connected into a private network, and the private network provides an interface for the Internet, and the interface can be connected to one or more routers, so that the playback device in the private network can access the network music resources. In the case where the user uses a terminal device such as a smart phone, the device in the private network can be accessed through a dedicated application software to manage the device, including adding and reducing devices, searching for music, creating playlists, and various playback states. control.
实际生活中,用户使用终端对播放设备进行分组的过程中,需要将播放设备一个一个地添加到某一个播放设备组中,如:将播放设备A、播放设备B和播放设备C添加到第一播放设备组中,或者,将播放设备D和播放设备E添加到到第二播放设备组中,这种方式需要对播放设备进行查找,查找到之后进行添加,过程较为繁琐,用户体验较差。In the actual life, when the user uses the terminal to group the playback devices, the playback devices need to be added to a certain playback device group one by one. For example, the playback device A, the playback device B, and the playback device C are added to the first device. In the playback device group, the playback device D and the playback device E are added to the second playback device group. In this manner, the playback device needs to be searched, and the process is added after the search, and the process is cumbersome and the user experience is poor.
发明内容Summary of the invention
本发明实施例提供了一种播放设备的分组管理方法及终端,可简化播放设备的分组过程,同时,提高用户体验。The embodiments of the present invention provide a packet management method and a terminal for a playback device, which can simplify the grouping process of the playback device and improve the user experience.
本发明实施例第一方面公开了一种播放设备的分组管理方法,包括:A first aspect of the embodiments of the present invention discloses a packet management method for a playback device, including:
确定无线音乐系统中的N个播放设备的WIFI信号强度,以得到N个信号强度值,所述N为大于1的整数;Determining WIFI signal strength of N playback devices in the wireless music system to obtain N signal strength values, the N being an integer greater than 1;
将所述N个信号强度值按照预设规则进行分组,得到M个组,所述M为大于1且小于或等于所述N的整数;And grouping the N signal strength values according to a preset rule to obtain M groups, where M is an integer greater than 1 and less than or equal to the N;
分别将所述N个播放设备中与所述M个组中的每一组的信号强度值对应的播放设备组 成播放设备组以得到M个播放设备组。a playback device group corresponding to a signal strength value of each of the M groups of the N playback devices Play the device group to get M playback device groups.
结合第一方面,在第一方面的第一种可能的实施方式中,所述确定无线音乐系统中的N个播放设备的WIFI信号强度,以得到N个信号强度值,包括:With reference to the first aspect, in a first possible implementation manner of the first aspect, the determining a WIFI signal strength of the N playback devices in the wireless music system to obtain the N signal strength values includes:
获取无线音乐系统中的N个播放设备的WIFI信号强度对应的N个信号值;Obtaining N signal values corresponding to WIFI signal strengths of N playback devices in the wireless music system;
将所述N个信号值进行量化处理,以得到N个信号强度值。The N signal values are quantized to obtain N signal strength values.
结合第一方面或第一方面的第一种可能的实施方式,在第一方面的第二种可能的实施方式中,所述将所述N个信号值进行量化处理,以得到N个信号强度值,包括:With reference to the first aspect or the first possible implementation manner of the first aspect, in the second possible implementation manner of the first aspect, the N signal values are quantized to obtain N signal strengths Values, including:
分别将所述N个信号值进行归一化处理以得到N个归一值;Normally processing the N signal values to obtain N normalized values;
根据预设的归一值与信号强度值之间的映射关系确定所述N个归一值对应的信号强度值。And determining, according to a mapping relationship between the preset normalized value and the signal strength value, a signal strength value corresponding to the N normalized values.
结合第一方面或第一方面的第一种可能的实施方式,在第一方面的第三种可能的实施方式中,所述将所述N个信号强度值按照预设规则进行分组,得到M个组,包括:With reference to the first aspect or the first possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the determining, by using the N Groups, including:
将所述N个信号强度值中信号强度值大小相等的信号强度值组成同一组,得到M个组。The signal strength values of the N signal strength values having the same magnitude of the signal strength values are grouped into the same group to obtain M groups.
结合第一方面或第一方面的第一种可能的实施方式,在第一方面的第四种可能的实施方式中,所述将所述N个信号强度值按照预设规则进行分组,得到M个组,包括:With reference to the first aspect, or the first possible implementation manner of the first aspect, in the fourth possible implementation manner of the first aspect, the N signal strength values are grouped according to a preset rule, to obtain M Groups, including:
在所述M为3的情况下,获取用户输入的2个阈值,所述2个阈值包括:K1和K2;In the case that the M is 3, two thresholds input by the user are acquired, and the two thresholds include: K1 and K2;
将所述N个信号强度值中信号强度值小于K1的信号强度值组成同一组,并将所述N个信号强度值中信号强度值大于或等于K1且小于K2的信号强度值组成同一组,将所述N个信号强度值中信号强度值大于或等于K2的信号强度值组成同一组,以得到3个组。The signal strength values of the N signal strength values that are less than K1 are grouped into the same group, and the signal strength values of the N signal strength values that are greater than or equal to K1 and less than K2 are grouped into the same group. The signal strength values of the N signal strength values whose signal strength values are greater than or equal to K2 are grouped into the same group to obtain three groups.
本发明实施例第二方面公开了一种终端,包括:A second aspect of the embodiment of the present invention discloses a terminal, including:
第一确定单元,用于确定无线音乐系统中的N个播放设备的WIFI信号强度,以得到N个信号强度值,所述N为大于1的整数;a first determining unit, configured to determine a WIFI signal strength of the N playing devices in the wireless music system, to obtain N signal strength values, where N is an integer greater than 1;
第一分组单元,用于将所述第一确定单元确定的N个信号强度值按照预设规则进行分组,得到M个组,所述M为大于1且小于或等于所述N的整数;a first grouping unit, configured to group the N signal strength values determined by the first determining unit according to a preset rule to obtain M groups, where the M is an integer greater than 1 and less than or equal to the N;
第二分组单元,用于分别将所述N个播放设备中与所述第一分组单元得到的M个组中的每一组的信号强度值对应的播放设备组成播放设备组以得到M个播放设备组。a second grouping unit, configured to respectively compose a playback device corresponding to a signal strength value of each of the M groups obtained by the first grouping unit among the N playing devices to obtain M playing Device group.
结合第二方面,在第二方面的第一种可能的实施方式中,所述第一确定单元包括:In conjunction with the second aspect, in a first possible implementation manner of the second aspect, the first determining unit includes:
第一获取单元,用于获取无线音乐系统中的N个播放设备的WIFI信号强度对应的N个信号值;a first acquiring unit, configured to acquire N signal values corresponding to WIFI signal strengths of N playing devices in the wireless music system;
量化单元,用于将所述第一获取单元获取的N个信号值进行量化处理以得到N个信 号强度值。a quantization unit, configured to quantize the N signal values acquired by the first acquiring unit to obtain N letters Number strength value.
结合第二方面或第二方面的第一种可能的实施方式,在第二方面的第二种可能的实施方式中,所述量化单元包括:With reference to the second aspect, or the first possible implementation manner of the second aspect, in the second possible implementation manner of the second aspect,
处理单元,用于分别将所述获取单元获取到的N个信号值进行归一化处理以得到N个归一值;a processing unit, configured to normalize the N signal values obtained by the acquiring unit to obtain N normalized values;
第二确定单元,用于根据预设的归一值与信号强度值之间的映射关系确定所述处理单元处理后得到的N个归一值对应的信号强度值。And a second determining unit, configured to determine, according to a mapping relationship between the preset normalized value and the signal strength value, a signal strength value corresponding to the N normalized values obtained by the processing unit.
结合第二方面或第二方面的第一种可能的实施方式,在第二方面的第三种可能的实施方式中,所述第一分组单元具体用于:With reference to the second aspect or the first possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, the first grouping unit is specifically configured to:
将所述N个信号强度值中信号强度值大小相等的信号强度值组成同一组,得到M个组,所述M为大于1且小于或等于所述N的整数。The signal strength values of the N signal strength values having the same magnitude of the signal strength values are grouped into the same group to obtain M groups, and the M is an integer greater than 1 and less than or equal to the N.
结合第二方面或第二方面的第一种可能的实施方式,在第二方面的第四种可能的实施方式中,所述第一分组单元包括:With reference to the second aspect, or the first possible implementation manner of the second aspect, in the fourth possible implementation manner of the second aspect, the first grouping unit includes:
第二获取单元,用于在所述M为3的情况下,获取用户输入的2个阈值,所述2个阈值包括:K1和K2;a second acquiring unit, configured to acquire two thresholds input by the user, where the M is 3, the two thresholds include: K1 and K2;
第一分组子单元,将所述N个信号强度值中信号强度值小于K1的信号强度值组成同一组,并将所述N个信号强度值中信号强度值大于或等于K1且小于K2的信号强度值组成同一组,将所述N个信号强度值中信号强度值大于或等于K2的信号强度值组成同一组,以得到3个组。a first grouping subunit, wherein the signal strength values of the N signal strength values less than K1 form a same group, and the signal strength values of the N signal strength values are greater than or equal to K1 and less than K2 The intensity values are grouped into the same group, and the signal strength values of the N signal intensity values greater than or equal to K2 are grouped into the same group to obtain three groups.
本发明实施例第三方面公开了一种存储介质,用于存储应用程序,所述应用程序用于执行本发明第一方面实施例所述的播放设备的分组管理方法。A third aspect of the embodiments of the present invention discloses a storage medium for storing an application, where the application is used to execute a group management method of a playback device according to the first aspect of the present invention.
本发明实施例第四方面公开了一种终端,包括:一个或者多个处理器;存储器;一个或者多个模块,所述一个或者多个模块存储在所述存储器中,当被所述一个或者多个处理器执行时进行如下操作:A fourth aspect of the embodiments of the present invention discloses a terminal, including: one or more processors; a memory; one or more modules, where the one or more modules are stored in the memory, when When multiple processors are executing, do the following:
确定无线音乐系统中的N个播放设备的WIFI信号强度以得到N个信号强度值,所述N为大于1的整数;Determining WIFI signal strength of N playback devices in the wireless music system to obtain N signal strength values, the N being an integer greater than 1;
将所述N个信号强度值按照预设规则进行分组,得到M个组,所述M为大于1且小于或等于所述N的整数;And grouping the N signal strength values according to a preset rule to obtain M groups, where M is an integer greater than 1 and less than or equal to the N;
分别将所述N个播放设备中与所述M个组中的每一组的信号强度值对应的播放设备组成播放设备组以得到M个播放设备组。 A playback device corresponding to a signal strength value of each of the M groups of the N playback devices is respectively configured into a playback device group to obtain M playback device groups.
实施本发明实施例,具有以下有益效果:Embodiments of the present invention have the following beneficial effects:
本发明实施例确定无线音乐系统中的N个播放设备的WIFI信号强度,以得到N个信号强度值,所述N为大于1的整数;将所述N个信号强度值按照预设规则进行分组,得到M个组,所述M为大于1且小于或等于所述N的整数;分别将N个播放设备中与所述M个组中的每一组的信号强度值对应的播放设备组成播放设备组以得到M个播放设备组。采用本发明实施例可在确定无线音乐系统中各播放设备的WIFI信号强度,并基于WIFI信号强度将无线播放设备进行分组,从而简化分组过程,并提高了用户体验。The embodiment of the present invention determines the WIFI signal strength of the N playback devices in the wireless music system to obtain N signal strength values, where N is an integer greater than 1, and groups the N signal strength values according to a preset rule. Obtaining M groups, wherein the M is an integer greater than 1 and less than or equal to the N; respectively, playing a playback device corresponding to the signal strength value of each of the M groups in the N playback devices Device group to get M playback device groups. The embodiment of the present invention can determine the WIFI signal strength of each playing device in the wireless music system, and group the wireless playing devices based on the WIFI signal strength, thereby simplifying the grouping process and improving the user experience.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例、描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明实施例的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the embodiments and the description will be briefly described below. It is obvious that the drawings in the following description are only some of the embodiments of the present invention. For the embodiments, those skilled in the art can obtain other drawings according to the drawings without any creative work.
图1为本发明实施例提供的一种播放设备的分组管理方法第一实施例的流程示意图;FIG. 1 is a schematic flowchart of a first embodiment of a packet management method for a playback device according to an embodiment of the present disclosure;
图2为本发明实施例提供的一种播放设备的分组管理方法第二实施例的流程示意图;2 is a schematic flowchart of a second embodiment of a packet management method for a playback device according to an embodiment of the present invention;
图3为本发明实施例提供的一种播放设备的分组管理方法第三实施例的流程示意图;FIG. 3 is a schematic flowchart diagram of a third embodiment of a method for group management of a playback device according to an embodiment of the present disclosure;
图4a为本发明实施例提供的一种终端的第一实施例的结构示意图;FIG. 4 is a schematic structural diagram of a first embodiment of a terminal according to an embodiment of the present disclosure;
图4b为本发明实施例提供的一种终端的第一实施例的又一结构示意图;FIG. 4b is still another schematic structural diagram of a first embodiment of a terminal according to an embodiment of the present disclosure;
图4c为本发明实施例提供的一种终端的第一实施例的又一结构示意图;FIG. 4c is still another schematic structural diagram of a first embodiment of a terminal according to an embodiment of the present disclosure;
图4d为本发明实施例提供的一种终端的第一实施例的又一结构示意图;FIG. 4 is a schematic structural diagram of still another embodiment of a terminal according to an embodiment of the present disclosure;
图5为本发明实施例提供的一种终端的第二实施例的结构示意图。FIG. 5 is a schematic structural diagram of a second embodiment of a terminal according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明实施例一部分实施例,而不是全部的实施例。基于本发明实施例中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明实施例保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. . All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without departing from the inventive scope are the scope of the embodiments of the present invention.
实现中,本发明实施例中,终端可以包括但不限于:笔记本电脑、手机、平板电脑、智能可穿戴设备等等。终端的系统指设备的操作系统,可以包括但不限于:Android系统、塞班系统、Windows系统、IOS(苹果公司开发的移动操作系统)等等。需要说明的是, Android终端指Android系统的终端,塞班终端指塞班系统的终端,等等。上述终端仅是举例,而非穷举,包含但不限于上述终端。In an implementation, in the embodiment of the present invention, the terminal may include, but is not limited to, a notebook computer, a mobile phone, a tablet computer, a smart wearable device, and the like. The system of the terminal refers to the operating system of the device, which may include, but is not limited to, an Android system, a Symbian system, a Windows system, an IOS (a mobile operating system developed by Apple), and the like. It should be noted, The Android terminal refers to the terminal of the Android system, the Saipan terminal refers to the terminal of the Saipan system, and the like. The above terminals are merely examples, not exhaustive, and include but are not limited to the above terminals.
本发明实施例结合图1至图5对本发明实施例提供的一种播放设备的分组管理方法及终端进行描述。The embodiment of the present invention is described in conjunction with FIG. 1 to FIG. 5 for a packet management method and a terminal of a playback device according to an embodiment of the present invention.
请参阅图1,图1是本发明实施例提供的一种播放设备的分组管理方法的第一实施例流程示意图。本实施例中所描述的播放设备的分组管理方法,包括以下步骤:Referring to FIG. 1, FIG. 1 is a schematic flowchart diagram of a first embodiment of a packet management method for a playback device according to an embodiment of the present invention. The group management method of the playback device described in this embodiment includes the following steps:
S101、确定无线音乐系统中的N个播放设备的WIFI信号强度以得到N个信号强度值,所述N为大于1的整数。S101. Determine a WIFI signal strength of N playback devices in the wireless music system to obtain N signal strength values, where N is an integer greater than 1.
具体实现中,本发明实施例可基于无线音乐系统,该无线音乐系统由N个播放设备组成,该N为大于1的整数,终端可确定N个播放设备的WIFI信号强度,该WIFI信号强度用于表示播放设备的WIFI信号的强弱。In a specific implementation, the embodiment of the present invention may be based on a wireless music system, where the wireless music system is composed of N playing devices, and the N is an integer greater than 1. The terminal may determine the WIFI signal strength of the N playing devices, and the WIFI signal strength is used. Indicates the strength of the WIFI signal of the playback device.
一种可行的实施方式,可为小于15分贝毫伏对应的信号强度值1,大于或等于15分贝毫伏且小于25分贝毫伏对应的信号强度值为2,大于或等于25分贝毫伏且小于35分贝毫伏对应的信号值为3,大于或等于35分贝毫伏且小于45分贝毫伏对应的信号值为4,大于或等于45分贝毫伏对应的信号值为5。例如,播放设备A的信号值为20分贝毫伏、播放设备B的信号值为12分贝毫伏、播放设备C的信号值为40分贝毫伏、播放设备D的信号值为30分贝毫伏,播放设备E的信号值为50分贝毫伏,则播放设备A的信号强度值为2、播放设备B的信号强度值为1、播放设备C的信号强度值为4、播放设备D的信号强度值为3和播放设备E的信号强度值为5。A feasible implementation manner, which may be a signal strength value of 1 corresponding to less than 15 dBm, greater than or equal to 15 dBm and less than 25 dBm, corresponding to a signal strength value of 2, greater than or equal to 25 dBm and A signal value corresponding to less than 35 decibels millivolts is 3, a signal value greater than or equal to 35 decibels millivolts and less than 45 decibels millivolts is 4, and a signal value corresponding to greater than or equal to 45 decibels millivolts is 5. For example, the playback device A has a signal value of 20 decibels, the playback device B has a signal value of 12 decibels, the playback device C has a signal value of 40 decibels, and the playback device D has a signal value of 30 decibels. The signal value of the playback device E is 50 decibels, the signal strength value of the playback device A is 2, the signal strength value of the playback device B is 1, the signal strength value of the playback device C is 4, and the signal strength value of the playback device D is The signal strength value for 3 and playback device E is 5.
S102、将所述N个信号强度值按照预设规则进行分组,得到M个组,所述M为大于1且小于或等于所述N的整数。S102. Group the N signal strength values according to a preset rule to obtain M groups, where M is an integer greater than 1 and less than or equal to the N.
具体实现中,终端可将N个信号强度值按照预设规则进行分组,分组后得到M个组,M为大于1且小于或等于N的整数。In a specific implementation, the terminal may group the N signal strength values according to a preset rule, and obtain M groups after grouping, where M is an integer greater than 1 and less than or equal to N.
可选地,终端可将N个信号强度值中信号强度值大小相等的信号强度值组成同一组,得到M个组,所述M为大于1且小于或等于所述N的整数。例如,N个信号强度值分别为2、2、3、5、8、2、4、3,则可将2、2、2组成一个组,3、3组成一个组,5为一个组,4为一个组,8为一个组,得到5个组。Optionally, the terminal may combine the signal strength values of the signal strength values of the N signal strength values into the same group to obtain M groups, where M is an integer greater than 1 and less than or equal to the N. For example, if the N signal strength values are 2, 2, 3, 5, 8, 2, 4, 3, respectively, 2, 2, 2 can be grouped into one group, 3, 3 form a group, and 5 is a group, 4 For a group, 8 is a group and 5 groups are obtained.
可选地,假设M为2的时候,终端可将N个信号强度值分成2个组,将N个信号强度值中的信号强度值为偶数的信号强度值组成第一组和将N个信号强度值中的信号强度值 为奇数的信号强度值组成第二组。此种情况下,预设规则为信号强度值为偶数的信号强度值分成一组,信号强度值为奇数的信号强度值分成一组。Optionally, if M is 2, the terminal may divide the N signal strength values into 2 groups, and combine the signal strength values of the N signal strength values with the even signal strength values into the first group and the N signals. Signal strength value in intensity value The second group is composed of odd signal strength values. In this case, the preset rule is that the signal strength values whose signal strength values are even are grouped into one group, and the signal strength values whose signal strength values are odd are grouped into one group.
可选地,假设M为2的时候,终端可将N个信号强度值分成2个组,可设置一个阈值,将N个信号强度值中的信号强度值中小于该阈值的信号强度值组成第一组和将N个信号强度值中的信号强度值大于或等于该阈值的信号强度值组成第二组。此种情况下,预设规则为信号强度值小于阈值的信号强度值分成一组,信号强度大于或等于阈值的信号强度值分成一组。Optionally, if M is 2, the terminal may divide the N signal strength values into two groups, and set a threshold, and form a signal strength value that is less than the threshold value among the signal strength values of the N signal strength values. A set and a signal strength value of the signal strength values of the N signal strength values greater than or equal to the threshold constitute a second group. In this case, the preset rule is that the signal strength values whose signal strength values are smaller than the threshold value are grouped into one group, and the signal strength values whose signal strengths are greater than or equal to the threshold value are grouped into one group.
可选地,假设M为2的时候,终端可将N个信号强度值分成2个组,将N个信号强度值中的信号强度值处于预设区间的信号强度值组成第一组和将N个信号强度值中的信号强度值处于该预设区间之外的信号强度值组成第二组。此种情况下,预设规则为将信号强度值处于预设区间的信号强度值分成一组,信号强度处于该预设区间之外的信号强度值分成一组。Optionally, if M is 2, the terminal may divide the N signal strength values into 2 groups, and combine the signal strength values of the N signal strength values in the preset interval to form the first group and the N group. The signal strength values of the signal strength values outside the preset interval constitute a second group. In this case, the preset rule is to divide the signal strength values whose signal strength values are in the preset interval into a group, and the signal strength values whose signal strength is outside the preset interval are grouped into one group.
S103、分别将所述N个播放设备中与所述M个组中的每一组的信号强度值对应的播放设备组成播放设备组以得到M个播放设备组。S103. The playback devices corresponding to the signal strength values of each of the M groups of the N playback devices are respectively formed into a playback device group to obtain M playback device groups.
具体实现中,终端可分别将N个播放设备中与M个组中的每一组的信号强度值对应的播放设备组成播放设备组,从而,得到M个播放设备组。例如,N个播放设备分别为:播放设备A的信号强度值为2,播放设备B的信号强度值为3,播放设备C的信号强度值为2,播放设备D的信号强度值为4,播放设备E的信号强度值为3,播放设备F的信号强度值为3,3个组分别为:第一组:2和2,第二组:3、3和3,第三组:4,则M个播放设备组分别为:第一播放设备组:播放设备A和播放设备C;第二播放设备组:播放设备B、播放设备E和播放设备F;第三播放设备组:播放设备D。In a specific implementation, the terminal may respectively form a playback device group corresponding to the signal strength values of each of the M groups of the N playback devices, thereby obtaining M playback device groups. For example, the N playback devices are: the signal strength value of the playback device A is 2, the signal strength value of the playback device B is 3, the signal strength value of the playback device C is 2, and the signal strength value of the playback device D is 4, and the playback is performed. The signal strength value of device E is 3, and the signal strength value of playback device F is 3, and the three groups are: first group: 2 and 2, second group: 3, 3, and 3, and third group: 4, then The M playback device groups are: a first playback device group: a playback device A and a playback device C; a second playback device group: a playback device B, a playback device E, and a playback device F; and a third playback device group: a playback device D.
本发明实施例确定无线音乐系统中的N个播放设备的WIFI信号强度,以得到N个信号强度值,所述N为大于1的整数;将所述N个信号强度值按照预设规则进行分组,得到M个组,所述M为大于1且小于或等于所述N的整数;分别将所述N个播放设备中与所述M个组中的每一组的信号强度值对应的播放设备组成播放设备组以得到M个播放设备组。采用本发明实施例可在确定无线音乐系统中各播放设备的WIFI信号强度,并基于WIFI信号强度将无线播放设备进行分组,从而简化分组过程,并提高了用户体验。The embodiment of the present invention determines the WIFI signal strength of the N playback devices in the wireless music system to obtain N signal strength values, where N is an integer greater than 1, and groups the N signal strength values according to a preset rule. Obtaining M groups, the M being an integer greater than 1 and less than or equal to the N; respectively, playing the playback device corresponding to the signal strength value of each of the M groups in the N playback devices The playback device group is composed to obtain M playback device groups. The embodiment of the present invention can determine the WIFI signal strength of each playing device in the wireless music system, and group the wireless playing devices based on the WIFI signal strength, thereby simplifying the grouping process and improving the user experience.
请参阅图2,图2是本发明实施例提供的一种播放设备的分组管理方法的第二实施例流程示意图。本实施例中所描述的播放设备的分组管理方法,包括以下步骤: Referring to FIG. 2, FIG. 2 is a schematic flowchart diagram of a second embodiment of a packet management method for a playback device according to an embodiment of the present invention. The group management method of the playback device described in this embodiment includes the following steps:
S201、获取无线音乐系统中的N个播放设备的WIFI信号强度对应的N个信号值。S201. Acquire N signal values corresponding to WIFI signal strengths of N playback devices in the wireless music system.
具体实现中,终端可获取无线音乐系统中的N个播放设备的WIFI信号强度对应的N个信号值,例如,播放设备A的信号值为20分贝毫伏、播放设备B的信号值为12分贝毫伏、播放设备C的信号值为40分贝毫伏、播放设备D的信号值为30分贝毫伏,播放设备E的信号值为50分贝毫伏。In a specific implementation, the terminal may obtain N signal values corresponding to the WIFI signal strength of the N playback devices in the wireless music system, for example, the signal value of the playback device A is 20 dB millivolts, and the signal value of the playback device B is 12 dB. In millivolts, the playback device C has a signal value of 40 decibels, the playback device D has a signal value of 30 decibels, and the playback device E has a signal value of 50 decibels.
S202、将所述N个信号值进行量化处理,以得到N个信号强度值。S202. Perform quantization processing on the N signal values to obtain N signal strength values.
具体实现中,终端可将N个信号值进行量化处理,从而,可得到N个信号强度值。In a specific implementation, the terminal may quantize N signal values, thereby obtaining N signal strength values.
可选地,终端可分别将N个信号值进行归一化处理以得到N个归一值,根据预设的归一值与信号强度值之间的映射关系确定N个归一值对应的信号强度值。其中,归一化处理的过程可为:可确定归一阈值,归一阈值可为无线音乐系统中的信号值中的最大值,或者,用户设置的一个阈值,该阈值通常情况下,大于或等于无线音乐系统中的信号值中的最大值。例如,归一阈值可为N个信号值中的最大值,将N个信号值中的分别除以该最大值,以得到N个归一值。由此可知,N个归一值均为小于或等于1的数,预设的归一值和信号强度值之间的映射关系可为:预设的归一值大于0且小于0.2对应的信号强度值为1,预设的归一值大于或等于0.2且小于0.4对应的的信号强度值为2,预设的归一值大于或等于0.4且小于0.6对应的信号强度值为3,预设的归一值大于或等于0.6且小于0.8对应的信号强度值为4,预设的归一值大于或等于0.8对应的信号强度值为5。例如,播放设备A的信号值为20分贝毫伏、播放设备B的信号值为12分贝毫伏、播放设备C的信号值为40分贝毫伏、播放设备D的信号值为30分贝毫伏,播放设备E的信号值为50分贝毫伏,归一值分别为:播放设备A的归一值0.4、播放设备B的归一值0.24、播放设备C的归一值0.8、播放设备D的归一值0.6和播放设备E的归一值为1,那么,播放设备A的信号强度值为3、播放设备B的信号强度值为2、播放设备C的信号强度值为5、播放设备D信号强度值为4和播放设备E的信号强度值为5。Optionally, the terminal may normalize the N signal values to obtain N normalized values, and determine signals corresponding to the N normalized values according to a mapping relationship between the preset normalized value and the signal strength value. Strength value. The normalization process may be: determining a normalization threshold, where the normalization threshold may be a maximum value of a signal value in a wireless music system, or a threshold set by a user, where the threshold is normally greater than or Equal to the maximum of the signal values in the wireless music system. For example, the normalization threshold may be a maximum of the N signal values, and each of the N signal values is divided by the maximum value to obtain N normalized values. It can be seen that the N normalized values are all less than or equal to 1, and the mapping relationship between the preset normalized value and the signal strength value may be: the preset normalized value is greater than 0 and less than 0.2 corresponding signal The intensity value is 1, the preset normalization value is greater than or equal to 0.2, and the signal strength value corresponding to less than 0.4 is 2, and the preset normalization value is greater than or equal to 0.4 and less than 0.6 corresponding to the signal strength value is 3, preset The normalized value is greater than or equal to 0.6 and less than 0.8 corresponds to a signal strength value of 4, and the preset normalized value is greater than or equal to 0.8 corresponding to a signal strength value of 5. For example, the playback device A has a signal value of 20 decibels, the playback device B has a signal value of 12 decibels, the playback device C has a signal value of 40 decibels, and the playback device D has a signal value of 30 decibels. The signal value of the playback device E is 50 decibels millivolts, and the normalized values are: the normalized value of the playback device A is 0.4, the normalized value of the playback device B is 0.24, the normalized value of the playback device C is 0.8, and the playback device D is returned. A value of 0.6 and a normalized value of the playback device E are 1, then the signal strength value of the playback device A is 3, the signal strength value of the playback device B is 2, the signal strength value of the playback device C is 5, and the playback device D signal The intensity value is 4 and the signal strength value of the playback device E is 5.
S203、将所述N个信号强度值按照预设规则进行分组,得到M个组,所述M为大于1且小于或等于所述N的整数。S203. Group the N signal strength values according to a preset rule to obtain M groups, where the M is an integer greater than 1 and less than or equal to the N.
具体实现中,终端可将N个信号强度值按照预设规则进行分组,得到M个组,M为大于1且小于或等于N的整数。In a specific implementation, the terminal may group the N signal strength values according to a preset rule to obtain M groups, where M is an integer greater than 1 and less than or equal to N.
可选地,终端可将N个信号强度值中信号强度值大小相等的信号强度值组成同一组,得到M个组,所述M为大于1且小于或等于所述N的整数。例如,N个信号强度值分别为2、2、3、5、8、2、4、3,则可将2、2、2组成一个组,3、3组成一个组,5为一个组, 4为一个组,8为一个组,得到5个组。Optionally, the terminal may combine the signal strength values of the signal strength values of the N signal strength values into the same group to obtain M groups, where M is an integer greater than 1 and less than or equal to the N. For example, if the N signal strength values are 2, 2, 3, 5, 8, 2, 4, and 3, respectively, 2, 2, and 2 can be grouped into one group, 3 and 3 are grouped into one group, and 5 is a group. 4 is a group, 8 is a group, and 5 groups are obtained.
可选地,假设M为2的时候,终端可将N个信号强度值分成2个组,将N个信号强度值中的信号强度值为偶数的信号强度值组成第一组和将N个信号强度值中的信号强度值为奇数的信号强度值组成第二组。此种情况下,预设规则为信号强度值为偶数的信号强度值分成一组,信号强度值为奇数的信号强度值分成一组。Optionally, if M is 2, the terminal may divide the N signal strength values into 2 groups, and combine the signal strength values of the N signal strength values with the even signal strength values into the first group and the N signals. The signal strength values in the intensity values are odd signal strength values that make up the second group. In this case, the preset rule is that the signal strength values whose signal strength values are even are grouped into one group, and the signal strength values whose signal strength values are odd are grouped into one group.
可选地,假设M为2的时候,终端可将N个信号强度值分成2个组,可设置一个阈值,将N个信号强度值中的信号强度值中小于该阈值的信号强度值组成第一组和将N个信号强度值中的信号强度值大于或等于该阈值的信号强度值组成第二组。此种情况下,预设规则为信号强度值小于阈值的信号强度值分成一组,信号强度大于或等于阈值的信号强度值分成一组。Optionally, if M is 2, the terminal may divide the N signal strength values into two groups, and set a threshold, and form a signal strength value that is less than the threshold value among the signal strength values of the N signal strength values. A set and a signal strength value of the signal strength values of the N signal strength values greater than or equal to the threshold constitute a second group. In this case, the preset rule is that the signal strength values whose signal strength values are smaller than the threshold value are grouped into one group, and the signal strength values whose signal strengths are greater than or equal to the threshold value are grouped into one group.
可选地,假设M为2的时候,终端可将N个信号强度值分成2个组,将N个信号强度值中的信号强度值处于预设区间的信号强度值组成第一组和将N个信号强度值中的信号强度值处于该预设区间之外的信号强度值组成第二组。此种情况下,预设规则为将信号强度值处于预设区间的信号强度值分成一组,信号强度处于该预设区间之外的信号强度值分成一组。Optionally, if M is 2, the terminal may divide the N signal strength values into 2 groups, and combine the signal strength values of the N signal strength values in the preset interval to form the first group and the N group. The signal strength values of the signal strength values outside the preset interval constitute a second group. In this case, the preset rule is to divide the signal strength values whose signal strength values are in the preset interval into a group, and the signal strength values whose signal strength is outside the preset interval are grouped into one group.
S204、分别将N个播放设备中与所述M个组中的每一组的信号强度值对应的播放设备组成播放设备组以得到M个播放设备组。S204. A playback device corresponding to a signal strength value of each of the M groups of the N playback devices is respectively configured into a playback device group to obtain M playback device groups.
具体实现中,终端可分别将N个播放设备中与M个组中的每一组的信号强度值对应的播放设备组成播放设备组,从而,得到M个播放设备组。例如,N个播放设备分别为:播放设备A的信号强度值为2,播放设备B的信号强度值为3,播放设备C的信号强度值为2,播放设备D的信号强度值为4,播放设备E的信号强度值为3,播放设备F的信号强度值为3,M个组分别为:第一组:2、2、2,第二组:3、3、3,第三组:4,则M个播放设备组分别为:第一播放设备组:播放设备A和播放设备C;第二播放设备组:播放设备B、播放设备E和播放设备F;第三播放设备组:播放设备D。In a specific implementation, the terminal may respectively form a playback device group corresponding to the signal strength values of each of the M groups of the N playback devices, thereby obtaining M playback device groups. For example, the N playback devices are: the signal strength value of the playback device A is 2, the signal strength value of the playback device B is 3, the signal strength value of the playback device C is 2, and the signal strength value of the playback device D is 4, and the playback is performed. The signal strength value of device E is 3, the signal strength value of playback device F is 3, and the M groups are: first group: 2, 2, 2, second group: 3, 3, 3, third group: 4 The M playback device groups are: a first playback device group: a playback device A and a playback device C; a second playback device group: a playback device B, a playback device E, and a playback device F; and a third playback device group: a playback device D.
本发明实施例获取无线音乐系统中的N个播放设备的WIFI信号强度对应的N个信号值;将所述N个信号值进行量化处理,以得到N个信号强度值;将所述N个信号强度值按照预设规则进行分组,得到M个组,所述M为大于1且小于或等于所述N的整数;分别将所述N个播放设备中与所述M个组中的每一组的信号强度值对应的播放设备组成播放设备组以得到M个播放设备组。采用本发明实施例可在确定无线音乐系统中各播放设备的WIFI信号强度,并基于WIFI信号强度将无线播放设备进行分组,从而简化分组过程,并 提高了用户体验。The embodiment of the present invention acquires N signal values corresponding to the WIFI signal strengths of the N playback devices in the wireless music system; and quantizes the N signal values to obtain N signal strength values; and the N signals The intensity values are grouped according to a preset rule to obtain M groups, wherein the M is an integer greater than 1 and less than or equal to the N; respectively, each of the N playback devices and each of the M groups The playback device corresponding to the signal strength value constitutes a playback device group to obtain M playback device groups. The embodiment of the present invention can determine the WIFI signal strength of each playing device in the wireless music system, and group the wireless playing devices based on the WIFI signal strength, thereby simplifying the grouping process, and Improve the user experience.
请参阅图3,图3是本发明实施例提供的一种播放设备的分组管理方法的第三实施例流程示意图。本实施例中所描述的播放设备的分组管理方法,包括以下步骤:Referring to FIG. 3, FIG. 3 is a schematic flowchart diagram of a third embodiment of a packet management method for a playback device according to an embodiment of the present invention. The group management method of the playback device described in this embodiment includes the following steps:
S301、确定无线音乐系统中的N个播放设备的WIFI信号强度以得到N个信号强度值,所述N为大于1的整数。S301. Determine a WIFI signal strength of N playback devices in the wireless music system to obtain N signal strength values, where N is an integer greater than 1.
具体实现中,本发明实施例可基于无线音乐系统,该无线音乐系统由N个播放设备组成,该N为大于1的整数,终端可确定N个播放设备的WIFI信号强度,该WIFI信号强度用于表示播放设备的WIFI信号的强弱。In a specific implementation, the embodiment of the present invention may be based on a wireless music system, where the wireless music system is composed of N playing devices, and the N is an integer greater than 1. The terminal may determine the WIFI signal strength of the N playing devices, and the WIFI signal strength is used. Indicates the strength of the WIFI signal of the playback device.
S302、获取用户输入的2个阈值,所述2个阈值包括:K1和K2。S302. Obtain two thresholds input by the user, where the two thresholds include: K1 and K2.
具体实现中,终端可获取用户输入的2个阈值,该阈值可假设为K1和K2。In a specific implementation, the terminal may acquire two thresholds input by the user, and the threshold may be assumed to be K1 and K2.
S303、将所述N个信号强度值中信号强度值小于K1的信号强度值组成同一组,并将所述N个信号强度值中信号强度值大于或等于K1且小于K2的信号强度值组成同一组,将所述N个信号强度值中信号强度值大于或等于K2的信号强度值组成同一组,以得到3个组。S303. The signal strength values of the N signal strength values that are less than K1 are grouped into the same group, and the signal strength values of the N signal strength values that are greater than or equal to K1 and less than K2 are the same. And grouping, the signal strength values of the N signal strength values having a signal strength value greater than or equal to K2 are grouped into the same group to obtain three groups.
具体实现中,终端可将N个信号强度值中信号强度值小于K1的信号强度值组成同一组,并将N个信号强度值中信号强度值大于或等于K1且小于K2的信号强度值组成同一组,将N个信号强度值中信号强度值大于或等于K2的信号强度值组成同一组,以得到3个组。In a specific implementation, the terminal may combine the signal strength values of the N signal strength values less than K1 into the same group, and combine the signal strength values of the N signal strength values that are greater than or equal to K1 and less than K2. For the group, the signal strength values of the N signal strength values whose signal strength values are greater than or equal to K2 are grouped into the same group to obtain three groups.
S304、分别将所述N个播放设备中与所述M个组中的每一组的信号强度值对应的播放设备组成播放设备组以得到M个播放设备组。S304. The playback devices corresponding to the signal strength values of each of the M groups of the N playback devices are respectively configured into a playback device group to obtain M playback device groups.
具体实现中,终端可分别将N个播放设备中与M个组中的每一组的信号强度值对应的播放设备组成播放设备组,从而,得到M个播放设备组。In a specific implementation, the terminal may respectively form a playback device group corresponding to the signal strength values of each of the M groups of the N playback devices, thereby obtaining M playback device groups.
例如,无线音乐系统包括:播放设备A、播放设备B、播放设备C、播放设备D和播放设备E。播放设备A的信号强度值为2,播放设备B的信号强度值为3,播放设备C的信号强度值为2,播放设备D的信号强度值为4,播放设备E的信号强度值为3,播放设备F的信号强度值为3,假设用户输入的阈值K1为2.1和K2为3.8,则,第一组可为:2、2,第二组可为:3、3、3,第三组可为:4,那么,可将播放设备分成3个组,第一播放设备组为:播放设备A和播放设备C;第二播放设备组为:播放设备B、播放设备E和播放设备F;第三播放设备组为:播放设备D。For example, the wireless music system includes: a playback device A, a playback device B, a playback device C, a playback device D, and a playback device E. The signal strength value of the playback device A is 2, the signal strength value of the playback device B is 3, the signal strength value of the playback device C is 2, the signal strength value of the playback device D is 4, and the signal strength value of the playback device E is 3. The signal strength value of the playback device F is 3, and if the threshold K1 input by the user is 2.1 and K2 is 3.8, the first group can be: 2, 2, and the second group can be: 3, 3, 3, the third group Can be: 4, then, the playback device can be divided into three groups, the first playback device group is: playback device A and playback device C; the second playback device group is: playback device B, playback device E and playback device F; The third playing device group is: playing device D.
本发明实施例确定无线音乐系统中的N个播放设备的WIFI信号强度以得到N个信号 强度值,所述N为大于1的整数;在所述M为3的情况下,获取用户输入的2个阈值,所述2个阈值包括:K1和K2;将所述N个信号强度值中信号强度值小于K1的信号强度值组成同一组,并将所述N个信号强度值中信号强度值大于或等于K1且小于K2的信号强度值组成同一组,将所述N个信号强度值中信号强度值大于或等于K2的信号强度值组成同一组,以得到3个组;分别将N个播放设备中与所述M个组中的每一组的信号强度值对应的播放设备组成播放设备组以得到M个播放设备组。采用本发明实施例可在确定无线音乐系统中各播放设备的WIFI信号强度,并基于WIFI信号强度将无线播放设备进行分组,从而简化分组过程,并提高了用户体验。The embodiment of the invention determines the WIFI signal strength of the N playback devices in the wireless music system to obtain N signals The intensity value, the N is an integer greater than 1; in the case where the M is 3, two thresholds input by the user are acquired, the two thresholds include: K1 and K2; and the N signal strength values are The signal strength values whose signal strength values are smaller than K1 constitute the same group, and the signal strength values of the N signal strength values that are greater than or equal to K1 and less than K2 constitute the same group, and the N signal strength values are The signal strength values whose signal strength values are greater than or equal to K2 form the same group to obtain three groups; respectively, the playback devices corresponding to the signal strength values of each of the M groups of the N playback devices constitute a playback device Group to get M playback device groups. The embodiment of the present invention can determine the WIFI signal strength of each playing device in the wireless music system, and group the wireless playing devices based on the WIFI signal strength, thereby simplifying the grouping process and improving the user experience.
请参见图4a,图4a为本发明实施例提供的一种终端的第一实施例的结构示意图,图4a所描述的终端可包括:第一确定单元401、第一分组单元402和第二分组单元403,具体如下:Referring to FIG. 4a, FIG. 4a is a schematic structural diagram of a first embodiment of a terminal according to an embodiment of the present invention. The terminal described in FIG. 4a may include: a first determining unit 401, a first grouping unit 402, and a second grouping. Unit 403 is as follows:
第一确定单元401,用于确定无线音乐系统中的N个播放设备的WIFI信号强度,以得到N个信号强度值,所述N为大于1的整数。The first determining unit 401 is configured to determine WIFI signal strengths of the N playing devices in the wireless music system to obtain N signal strength values, where N is an integer greater than 1.
具体实现中,本发明实施例可基于无线音乐系统,该无线音乐系统由N个播放设备组成,该N为大于1的整数,第一确定单元401可确定N个播放设备的WIFI信号强度,该WIFI信号强度用于表示播放设备的WIFI信号的强弱。In a specific implementation, the embodiment of the present invention may be based on a wireless music system, where the wireless music system is composed of N playing devices, and the N is an integer greater than 1. The first determining unit 401 may determine the WIFI signal strength of the N playing devices. The WIFI signal strength is used to indicate the strength of the WIFI signal of the playback device.
一种可行的实施方式,可为小于15分贝毫伏对应的信号强度值1,大于或等于15分贝毫伏且小于25分贝毫伏对应的信号强度值为2,大于或等于25分贝毫伏且小于35分贝毫伏对应的信号值为3,大于或等于35分贝毫伏且小于45分贝毫伏对应的信号值为4,大于或等于45分贝毫伏对应的信号值为5。例如,播放设备A的信号值为20分贝毫伏、播放设备B的信号值为12分贝毫伏、播放设备C的信号值为40分贝毫伏、播放设备D的信号值为30分贝毫伏,播放设备E的信号值为50分贝毫伏,则播放设备A的信号强度值为2、播放设备B的信号强度值为1、播放设备C的信号强度值为4、播放设备D的信号强度值为3和播放设备E的信号强度值为5。A feasible implementation manner, which may be a signal strength value of 1 corresponding to less than 15 dBm, greater than or equal to 15 dBm and less than 25 dBm, corresponding to a signal strength value of 2, greater than or equal to 25 dBm and A signal value corresponding to less than 35 decibels millivolts is 3, a signal value greater than or equal to 35 decibels millivolts and less than 45 decibels millivolts is 4, and a signal value corresponding to greater than or equal to 45 decibels millivolts is 5. For example, the playback device A has a signal value of 20 decibels, the playback device B has a signal value of 12 decibels, the playback device C has a signal value of 40 decibels, and the playback device D has a signal value of 30 decibels. The signal value of the playback device E is 50 decibels, the signal strength value of the playback device A is 2, the signal strength value of the playback device B is 1, the signal strength value of the playback device C is 4, and the signal strength value of the playback device D is The signal strength value for 3 and playback device E is 5.
第一分组单元402,用于将所述第一确定单元401确定的N个信号强度值按照预设规则进行分组,得到M个组,所述M为大于1且小于或等于所述N的整数。The first grouping unit 402 is configured to group the N signal strength values determined by the first determining unit 401 according to a preset rule to obtain M groups, where M is an integer greater than 1 and less than or equal to the N .
具体实现中,第一分组单元402可将N个信号强度值按照预设规则进行分组,得到M个组,M为大于1且小于或等于N的整数。In a specific implementation, the first grouping unit 402 may group the N signal strength values according to a preset rule to obtain M groups, where M is an integer greater than 1 and less than or equal to N.
可选地,第一分组单元402可将N个信号强度值中信号强度值大小相等的信号强度值 组成同一组,得到M个组,所述M为大于1且小于或等于N的整数。例如,N个信号强度值分别为2、2、3、5、8、2、4、3,则可将2、2、2组成一个组,3、3组成一个组,5为一个组,4为一个组,8为一个组,得到5个组。Optionally, the first grouping unit 402 may equalize the signal strength values of the signal strength values of the N signal strength values. The same group is composed to obtain M groups, and the M is an integer greater than 1 and less than or equal to N. For example, if the N signal strength values are 2, 2, 3, 5, 8, 2, 4, 3, respectively, 2, 2, 2 can be grouped into one group, 3, 3 form a group, and 5 is a group, 4 For a group, 8 is a group and 5 groups are obtained.
可选地,假设M为2的时候,第一分组单元402可将N个信号强度值分成2个组,将N个信号强度值中的信号强度值为偶数的信号强度值组成第一组和将N个信号强度值中的信号强度值为奇数的信号强度值组成第二组。此种情况下,预设规则为信号强度值为偶数的信号强度值分成一组,信号强度值为奇数的信号强度值分成一组。Optionally, when M is 2, the first grouping unit 402 may divide the N signal strength values into two groups, and combine the signal strength values of the N signal strength values with the even signal strength values into the first group sum. A signal strength value in which the signal strength values of the N signal intensity values are odd is composed of the second group. In this case, the preset rule is that the signal strength values whose signal strength values are even are grouped into one group, and the signal strength values whose signal strength values are odd are grouped into one group.
可选地,假设M为2的时候,第一分组单元402可将N个信号强度值分成2个组,可设置一个阈值,将N个信号强度值中的信号强度值中小于该阈值的信号强度值组成第一组和将N个信号强度值中的信号强度值大于或等于该阈值的信号强度值组成第二组。此种情况下,预设规则为信号强度值小于阈值的信号强度值分成一组,信号强度大于或等于阈值的信号强度值分成一组。Optionally, if M is 2, the first grouping unit 402 may divide the N signal strength values into two groups, and set a threshold, and a signal that is less than the threshold among the signal strength values of the N signal strength values. The intensity values constitute a first group and the signal strength values of the signal strength values of the N signal strength values are greater than or equal to the threshold value to form a second group. In this case, the preset rule is that the signal strength values whose signal strength values are smaller than the threshold value are grouped into one group, and the signal strength values whose signal strengths are greater than or equal to the threshold value are grouped into one group.
可选地,假设M为2的时候,第一分组单元402可将N个信号强度值分成2个组,将N个信号强度值中的信号强度值处于预设区间的信号强度值组成第一组和将N个信号强度值中的信号强度值处于该预设区间之外的信号强度值组成第二组。此种情况下,预设规则为将信号强度值处于预设区间的信号强度值分成一组,信号强度处于该预设区间之外的信号强度值分成一组。Optionally, when M is 2, the first grouping unit 402 may divide the N signal strength values into two groups, and form a signal strength value of the N signal strength values in a preset interval to form a first The group and the signal strength values of the signal strength values of the N signal strength values outside the preset interval constitute a second group. In this case, the preset rule is to divide the signal strength values whose signal strength values are in the preset interval into a group, and the signal strength values whose signal strength is outside the preset interval are grouped into one group.
第二分组单元403,用于分别将N个播放设备中与所述第一分组单元402得到的M个组中的每一组的信号强度值对应的播放设备组成播放设备组以得到M个播放设备组。a second grouping unit 403, configured to respectively compose a playback device corresponding to a signal strength value of each of the M groups obtained by the first grouping unit 402 among the N playback devices to obtain M playbacks. Device group.
具体实现中,第二分组单元403可分别将N个播放设备中与M个组中的每一组的信号强度值对应的播放设备组成播放设备组,从而,得到M个播放设备组。例如,N个播放设备分别为:播放设备A的信号强度值为2,播放设备B的信号强度值为3,播放设备C的信号强度值为2,播放设备D的信号强度值为4,播放设备E的信号强度值为3,播放设备F的信号强度值为3,M个组分别为:第一组:2和2,第二组:3、3和3,第三组:4,则M个播放设备组分别为:第一播放设备组:播放设备A和播放设备C;第二播放设备组:播放设备B、播放设备E和播放设备F;第三播放设备组:播放设备D。In a specific implementation, the second grouping unit 403 can respectively form a playback device group corresponding to the signal strength values of each of the M groups of the N playback devices, thereby obtaining M playback device groups. For example, the N playback devices are: the signal strength value of the playback device A is 2, the signal strength value of the playback device B is 3, the signal strength value of the playback device C is 2, and the signal strength value of the playback device D is 4, and the playback is performed. The signal strength value of device E is 3, the signal strength value of playback device F is 3, and the M groups are: first group: 2 and 2, second group: 3, 3, and 3, and third group: 4, then The M playback device groups are: a first playback device group: a playback device A and a playback device C; a second playback device group: a playback device B, a playback device E, and a playback device F; and a third playback device group: a playback device D.
作为一种可能的实施方式,如图4b所示,图4a中所描述的终端的第一确定单元401可包括:第一获取单元4011和量化单元4012,包括:As a possible implementation, as shown in FIG. 4b, the first determining unit 401 of the terminal described in FIG. 4a may include: a first obtaining unit 4011 and a quantifying unit 4012, including:
第一获取单元4011,用于获取无线音乐系统中的N个播放设备的WIFI信号强度对应的N个信号值。 The first obtaining unit 4011 is configured to acquire N signal values corresponding to the WIFI signal strengths of the N playing devices in the wireless music system.
具体实现中,第一获取单元4011可获取无线音乐系统中的N个播放设备的WIFI信号强度对应的N个信号值,例如,播放设备A的信号值为20分贝毫伏、播放设备B的信号值为12分贝毫伏、播放设备C的信号值为40分贝毫伏、播放设备D的信号值为30分贝毫伏,播放设备E的信号值为50分贝毫伏。In a specific implementation, the first acquiring unit 4011 may acquire N signal values corresponding to the WIFI signal strengths of the N playing devices in the wireless music system, for example, the signal value of the playing device A is 20 dB millivolts, and the signal of the playing device B The value is 12 decibels, the signal value of playback device C is 40 decibels, the signal value of playback device D is 30 decibels, and the signal value of playback device E is 50 decibels.
量化单元4012,用于将所述第一获取单元4011获取的N个信号值进行量化处理以得到N个信号强度值。The quantization unit 4012 is configured to perform quantization processing on the N signal values acquired by the first acquiring unit 4011 to obtain N signal strength values.
作为一种可能的实施方式,如图4c所示,图4c中所描述的终端的量化单元4012可包括:处理单元404和第二确定单元405,包括:As a possible implementation, as shown in FIG. 4c, the quantization unit 4012 of the terminal described in FIG. 4c may include: a processing unit 404 and a second determining unit 405, including:
处理单元404,用于分别将所述第一获取单元4011获取到的N个信号值进行归一化处理以得到N个归一值。The processing unit 404 is configured to normalize the N signal values acquired by the first acquiring unit 4011 to obtain N normalized values.
第二确定单元405,用于根据预设的归一值与信号强度值之间的映射关系确定所述处理单元404处理后得到的N个归一值对应的信号强度值。The second determining unit 405 is configured to determine, according to a mapping relationship between the preset normalized value and the signal strength value, a signal strength value corresponding to the N normalized values obtained by the processing unit 404.
可选地,处理单元404可分别将N个信号值进行归一化处理以得到N个归一值,第二确定单元405可根据预设的归一值与信号强度值之间的映射关系确定N个归一值对应的信号强度值。其中,归一化处理的过程可为:可确定归一阈值,归一阈值可为无线音乐系统中的信号值中的最大值,或者,用户设置的一个阈值,该阈值通常情况下,大于或等于无线音乐系统中的信号值中的最大值。例如,归一阈值可为N个信号值中的最大值,将N个信号值中的分别除以该最大值,以得到N个归一值。由此可知,N个归一值均为小于或等于1的数,预设归一值和信号强度值之间的映射关系可为:预设的归一值大于0且小于0.2对应的信号强度值为1,预设的归一值大于或等于0.2且小于0.4对应的的信号强度值为2,预设的归一值大于或等于0.4且小于0.6对应的信号强度值为3,预设的归一值大于或等于0.6且小于0.8对应的信号强度值为4,预设的归一值大于或等于0.8对应的信号强度值为5。例如,播放设备A的信号值为20分贝毫伏、播放设备B的信号值为12分贝毫伏、播放设备C的信号值为40分贝毫伏、播放设备D的信号值为30分贝毫伏,播放设备E的信号值为50分贝毫伏,归一值分别为:播放设备A的归一值0.4、播放设备B的归一值0.24、播放设备C的归一值0.8、播放设备D的归一值0.6和播放设备E的归一值为1,那么,播放设备A的信号强度值为3、播放设备B的信号强度值为2、播放设备C的信号强度值为5、播放设备D信号强度值为4和播放设备E的信号强度值为5。Optionally, the processing unit 404 may perform normalization processing on the N signal values to obtain N normalized values, and the second determining unit 405 may determine, according to a mapping relationship between the preset normalized value and the signal strength value. The signal strength values corresponding to the N normalized values. The normalization process may be: determining a normalization threshold, where the normalization threshold may be a maximum value of a signal value in a wireless music system, or a threshold set by a user, where the threshold is normally greater than or Equal to the maximum of the signal values in the wireless music system. For example, the normalization threshold may be a maximum of the N signal values, and each of the N signal values is divided by the maximum value to obtain N normalized values. It can be seen that the N normalized values are all less than or equal to 1, and the mapping relationship between the preset normalized value and the signal strength value may be: the preset normalized value is greater than 0 and less than 0.2 corresponding signal strength. The value is 1, the preset normalized value is greater than or equal to 0.2, and the signal strength value corresponding to less than 0.4 is 2, and the preset normalized value is greater than or equal to 0.4 and less than 0.6 corresponding to the signal strength value of 3, preset The signal strength value corresponding to the normalized value greater than or equal to 0.6 and less than 0.8 is 4, and the predetermined normalized value is greater than or equal to 0.8 corresponding to a signal strength value of 5. For example, the playback device A has a signal value of 20 decibels, the playback device B has a signal value of 12 decibels, the playback device C has a signal value of 40 decibels, and the playback device D has a signal value of 30 decibels. The signal value of the playback device E is 50 decibels millivolts, and the normalized values are: the normalized value of the playback device A is 0.4, the normalized value of the playback device B is 0.24, the normalized value of the playback device C is 0.8, and the playback device D is returned. A value of 0.6 and a normalized value of the playback device E are 1, then the signal strength value of the playback device A is 3, the signal strength value of the playback device B is 2, the signal strength value of the playback device C is 5, and the playback device D signal The intensity value is 4 and the signal strength value of the playback device E is 5.
作为一种可能的实施方式,如图4d所示,图4a中所描述的终端的第一分组单元402包括:处理单元4021和第二确定单元4022,包括: As a possible implementation manner, as shown in FIG. 4d, the first grouping unit 402 of the terminal described in FIG. 4a includes: a processing unit 4021 and a second determining unit 4022, including:
第二获取单元4021,用于在所述M为3的情况下,获取用户输入的2个阈值,所述2个阈值包括:K1和K2。The second obtaining unit 4021 is configured to acquire, when the M is 3, two thresholds input by the user, where the two thresholds include: K1 and K2.
第一分组子单元4022,将所述N个信号强度值中信号强度值小于K1的信号强度值组成同一组,并将所述N个信号强度值中信号强度值大于或等于K1且小于K2的信号强度值组成同一组,将该N个信号强度值中信号强度值大于或等于K2的信号强度值组成同一组,以得到3个组。The first grouping subunit 4022 combines the signal strength values of the N signal strength values that are less than K1 into the same group, and the signal strength values of the N signal strength values are greater than or equal to K1 and less than K2. The signal strength values form the same group, and the signal strength values of the N signal intensity values greater than or equal to K2 are grouped into the same group to obtain three groups.
例如,无线音乐系统包括:播放设备A、播放设备B、播放设备C、播放设备D和播放设备E。播放设备A的信号强度值为2,播放设备B的信号强度值为3,播放设备C的信号强度值为2,播放设备D的信号强度值为4,播放设备E的信号强度值为3,播放设备F的信号强度值为3,假设第二获取单元4021获取用户输入的阈值K1为2.1和K2为3.8,则,第一组可为:2和2,第二组可为:3、3和3,第三组可为:4,那么,第一分组子单元4022可将播放设备分成3个组,第一播放设备组为:播放设备A和播放设备C;第二播放设备组为:播放设备B、播放设备E和播放设备F;第三播放设备组为:播放设备D。For example, the wireless music system includes: a playback device A, a playback device B, a playback device C, a playback device D, and a playback device E. The signal strength value of the playback device A is 2, the signal strength value of the playback device B is 3, the signal strength value of the playback device C is 2, the signal strength value of the playback device D is 4, and the signal strength value of the playback device E is 3. The signal strength value of the playback device F is 3. If the second acquisition unit 4021 obtains the threshold K1 input by the user as 2.1 and K2 is 3.8, the first group may be: 2 and 2, and the second group may be: 3, 3 And the third group can be: 4, then, the first grouping subunit 4022 can divide the playing device into three groups, the first playing device group is: the playing device A and the playing device C; the second playing device group is: The playback device B, the playback device E, and the playback device F; the third playback device group is: the playback device D.
本发明实施例所描述的终端可通过确定无线音乐系统中的N个播放设备的WIFI信号强度,以得到N个信号强度值,所述N为大于1的整数;将所述N个信号强度值按照预设规则进行分组,得到M个组,所述M为大于1且小于或等于所述N的整数;分别将所述N个播放设备中与所述M个组中的每一组的信号强度值对应的播放设备组成播放设备组以得到M个播放设备组。采用本发明实施例可在确定无线音乐系统中各播放设备的WIFI信号强度,并基于WIFI信号强度将无线播放设备进行分组,从而简化分组过程,并提高了用户体验。The terminal described in the embodiment of the present invention may obtain N signal strength values by determining WIFI signal strengths of N playback devices in the wireless music system, where N is an integer greater than 1; and the N signal strength values are Grouping according to a preset rule to obtain M groups, wherein M is an integer greater than 1 and less than or equal to the N; respectively, signals of each of the N playback devices and the M groups The playback devices corresponding to the intensity values constitute a playback device group to obtain M playback device groups. The embodiment of the present invention can determine the WIFI signal strength of each playing device in the wireless music system, and group the wireless playing devices based on the WIFI signal strength, thereby simplifying the grouping process and improving the user experience.
请参阅图5,图5为本发明实施例提供的一种终端的第二实施例的结构示意图。本实施例中所描述的终端包括:至少一个输入设备1000;至少一个输出设备2000;至少一个处理器3000,例如CPU;和存储器4000,上述输入设备1000、输出设备2000、处理器3000和存储器4000通过总线5000连接。Referring to FIG. 5, FIG. 5 is a schematic structural diagram of a second embodiment of a terminal according to an embodiment of the present invention. The terminal described in this embodiment includes: at least one input device 1000; at least one output device 2000; at least one processor 3000, such as a CPU; and a memory 4000, the input device 1000, the output device 2000, the processor 3000, and the memory 4000 Connected via bus 5000.
其中,上述输入设备1000可为触控面板、普通PC、液晶屏、触控屏、触控按钮等。The input device 1000 can be a touch panel, a general PC, a liquid crystal screen, a touch screen, a touch button, and the like.
上述存储器4000可以是高速RAM存储器,也可为非不稳定的存储器(non-volatile memory),例如磁盘存储器。上述存储器4000用于存储一组程序代码,上述输入设备1000、输出设备2000和处理器3000用于调用存储器4000中存储的程序代码,执行如下操作:The above memory 4000 may be a high speed RAM memory or a non-volatile memory such as a disk memory. The above memory 4000 is used to store a set of program codes, and the input device 1000, the output device 2000, and the processor 3000 are used to call the program code stored in the memory 4000, and perform the following operations:
确定无线音乐系统中的N个播放设备的WIFI信号强度以得到N个信号强度值,所述 N为大于1的整数;Determining WIFI signal strength of N playback devices in the wireless music system to obtain N signal strength values, N is an integer greater than one;
将所述N个信号强度值按照预设规则进行分组,得到M个组,所述M为大于1且小于或等于所述N的整数;And grouping the N signal strength values according to a preset rule to obtain M groups, where M is an integer greater than 1 and less than or equal to the N;
分别将所述N个播放设备中与所述M个组中的每一组的信号强度值对应的播放设备组成播放设备组以得到M个播放设备组。A playback device corresponding to a signal strength value of each of the M groups of the N playback devices is respectively configured into a playback device group to obtain M playback device groups.
作为一种可能的实施方式,上述处理器3000确定无线音乐系统中的N个播放设备的WIFI信号强度,以得到N个信号强度值,具体为:As a possible implementation manner, the processor 3000 determines the WIFI signal strength of the N playback devices in the wireless music system to obtain N signal strength values, specifically:
获取无线音乐系统中的N个播放设备的WIFI信号强度对应的N个信号值;Obtaining N signal values corresponding to WIFI signal strengths of N playback devices in the wireless music system;
将所述N个信号值进行量化处理,以得到N个信号强度值。The N signal values are quantized to obtain N signal strength values.
作为一种可能的实施方式,上述处理器3000将所述N个信号值进行量化处理,以得到N个信号强度值,具体为:As a possible implementation manner, the processor 3000 performs quantization processing on the N signal values to obtain N signal strength values, specifically:
分别将所述N个信号值进行归一化处理以得到N个归一值;Normally processing the N signal values to obtain N normalized values;
根据预设的归一值与信号强度值之间的映射关系确定所述N个归一值对应的信号强度值。And determining, according to a mapping relationship between the preset normalized value and the signal strength value, a signal strength value corresponding to the N normalized values.
作为一种可能的实施方式,上述处理器3000将所述N个信号强度值按照预设规则进行分组,得到M个组,具体为:As a possible implementation manner, the processor 3000 groups the N signal strength values according to a preset rule to obtain M groups, specifically:
将所述N个信号强度值中信号强度值大小相等的信号强度值组成同一组,得到M个组,所述M为大于1且小于或等于所述N的整数。The signal strength values of the N signal strength values having the same magnitude of the signal strength values are grouped into the same group to obtain M groups, and the M is an integer greater than 1 and less than or equal to the N.
作为一种可能的实施方式,上述处理器3000将所述N个信号强度值按照预设规则进行分组,得到M个组,包括:As a possible implementation manner, the processor 3000 groups the N signal strength values according to a preset rule to obtain M groups, including:
在所述M为3的情况下,获取用户输入的2个阈值,所述2个阈值包括:K1和K2;In the case that the M is 3, two thresholds input by the user are acquired, and the two thresholds include: K1 and K2;
将所述N个信号强度值中信号强度值小于K1的信号强度值组成同一组,并将所述N个信号强度值中信号强度值大于或等于K1且小于K2的信号强度值组成同一组,将所述N个信号强度值中信号强度值大于或等于K2的信号强度值组成同一组,以得到3个组。The signal strength values of the N signal strength values that are less than K1 are grouped into the same group, and the signal strength values of the N signal strength values that are greater than or equal to K1 and less than K2 are grouped into the same group. The signal strength values of the N signal strength values whose signal strength values are greater than or equal to K2 are grouped into the same group to obtain three groups.
本发明实施例所描述的终端可通过确定无线音乐系统中的N个播放设备的WIFI信号强度,以得到N个信号强度值,所述N为大于1的整数;将所述N个信号强度值按照预设规则进行分组,得到M个组,所述M为大于1且小于或等于所述N的整数;分别将所述N个播放设备中与所述M个组中的每一组的信号强度值对应的播放设备组成播放设备组以得到M个播放设备组。采用本发明实施例可在确定无线音乐系统中各播放设备的WIFI信号强度,并基于WIFI信号强度将无线播放设备进行分组,从而简化分组过程,并提高了用 户体验。The terminal described in the embodiment of the present invention may obtain N signal strength values by determining WIFI signal strengths of N playback devices in the wireless music system, where N is an integer greater than 1; and the N signal strength values are Grouping according to a preset rule to obtain M groups, wherein M is an integer greater than 1 and less than or equal to the N; respectively, signals of each of the N playback devices and the M groups The playback devices corresponding to the intensity values constitute a playback device group to obtain M playback device groups. The embodiment of the present invention can determine the WIFI signal strength of each playing device in the wireless music system, and group the wireless playing devices based on the WIFI signal strength, thereby simplifying the grouping process and improving the use. User experience.
为了实现上述实施例,本发明还提出了一种存储介质,用于存储应用程序,该应用程序用于执行本发明任一个实施例所述的播放设备的分组管理方法。In order to implement the above embodiments, the present invention also provides a storage medium for storing an application for performing a group management method of a playback device according to any of the embodiments of the present invention.
为了实现上述实施例,本发明还提出了一种终端,包括:一个或者多个处理器;存储器;一个或者多个模块,一个或者多个模块存储在存储器中,当被一个或者多个处理器执行时进行如下操作:In order to implement the above embodiments, the present invention also proposes a terminal comprising: one or more processors; a memory; one or more modules, one or more modules stored in the memory when being one or more processors Perform the following operations when performing:
S101’,确定无线音乐系统中的N个播放设备的WIFI信号强度以得到N个信号强度值,所述N为大于1的整数。S101', determining WIFI signal strengths of N playback devices in the wireless music system to obtain N signal strength values, the N being an integer greater than one.
S102’,将所述N个信号强度值按照预设规则进行分组,得到M个组,所述M为大于1且小于或等于所述N的整数。S102', grouping the N signal strength values according to a preset rule to obtain M groups, wherein the M is an integer greater than 1 and less than or equal to the N.
S103’,分别将所述N个播放设备中与所述M个组中的每一组的信号强度值对应的播放设备组成播放设备组以得到M个播放设备组。S103', respectively, the playback devices corresponding to the signal strength values of each of the M groups of the N playback devices are grouped into a playback device group to obtain M playback device groups.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令终端设备相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:闪存盘、只读存储器(Read-Only Memory,ROM)、随机存取器(Random Access Memory,RAM)、磁盘或光盘等。A person of ordinary skill in the art may understand that all or part of the steps of the foregoing embodiments may be completed by a program to instruct terminal device related hardware, and the program may be stored in a computer readable storage medium, and the storage medium may be Including: flash disk, read-only memory (ROM), random access memory (RAM), disk or optical disk.
以上对本发明实施例公开的一种播放设备的分组管理方法及终端进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本发明的限制。 The packet management method and the terminal of the playback device disclosed in the embodiment of the present invention are described in detail. The principles and implementation manners of the present invention are described in the following. The description of the foregoing embodiment is only used to help understanding. The method of the present invention and its core idea; at the same time, those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation manner and application scope. In summary, the content of the present specification should not be understood as Limitations of the invention.

Claims (12)

  1. 一种播放设备的分组管理方法,其特征在于,所述方法包括:A packet management method for a playback device, characterized in that the method comprises:
    确定无线音乐系统中的N个播放设备的WIFI信号强度以得到N个信号强度值,所述N为大于1的整数;Determining WIFI signal strength of N playback devices in the wireless music system to obtain N signal strength values, the N being an integer greater than 1;
    将所述N个信号强度值按照预设规则进行分组,得到M个组,所述M为大于1且小于或等于所述N的整数;And grouping the N signal strength values according to a preset rule to obtain M groups, where M is an integer greater than 1 and less than or equal to the N;
    分别将所述N个播放设备中与所述M个组中的每一组的信号强度值对应的播放设备组成播放设备组以得到M个播放设备组。A playback device corresponding to a signal strength value of each of the M groups of the N playback devices is respectively configured into a playback device group to obtain M playback device groups.
  2. 如权利要求1所述的方法,其特征在于,所述确定无线音乐系统中的N个播放设备的WIFI信号强度,以得到N个信号强度值,包括:The method of claim 1, wherein the determining the WIFI signal strength of the N playback devices in the wireless music system to obtain the N signal strength values comprises:
    获取无线音乐系统中的N个播放设备的WIFI信号强度对应的N个信号值;Obtaining N signal values corresponding to WIFI signal strengths of N playback devices in the wireless music system;
    将所述N个信号值进行量化处理,以得到N个信号强度值。The N signal values are quantized to obtain N signal strength values.
  3. 如权利要求2所述的方法,其特征在于,所述将所述N个信号值进行量化处理,以得到N个信号强度值,包括:The method according to claim 2, wherein said quantizing said N signal values to obtain N signal strength values comprises:
    分别将所述N个信号值进行归一化处理以得到N个归一值;Normally processing the N signal values to obtain N normalized values;
    根据预设的归一值与信号强度值之间的映射关系确定所述N个归一值对应的信号强度值。And determining, according to a mapping relationship between the preset normalized value and the signal strength value, a signal strength value corresponding to the N normalized values.
  4. 如权利要求1或2任一项所述的方法,其特征在于,所述将所述N个信号强度值按照预设规则进行分组,得到M个组,包括:The method according to any one of claims 1 to 2, wherein the grouping the N signal strength values according to a preset rule to obtain M groups includes:
    将所述N个信号强度值中信号强度值大小相等的信号强度值组成同一组,得到M个组。The signal strength values of the N signal strength values having the same magnitude of the signal strength values are grouped into the same group to obtain M groups.
  5. 如权利要求1或2任一项所述的方法,其特征在于,所述将所述N个信号强度值按照预设规则进行分组,得到M个组,包括:The method according to any one of claims 1 to 2, wherein the grouping the N signal strength values according to a preset rule to obtain M groups includes:
    在所述M为3的情况下,获取用户输入的2个阈值,所述2个阈值包括:K1和K2;In the case that the M is 3, two thresholds input by the user are acquired, and the two thresholds include: K1 and K2;
    将所述N个信号强度值中信号强度值小于K1的信号强度值组成同一组,并将所述N个信号强度值中信号强度值大于或等于K1且小于K2的信号强度值组成同一组,将所述N 个信号强度值中信号强度值大于或等于K2的信号强度值组成同一组,以得到3个组。The signal strength values of the N signal strength values that are less than K1 are grouped into the same group, and the signal strength values of the N signal strength values that are greater than or equal to K1 and less than K2 are grouped into the same group. Will the N The signal strength values of the signal strength values greater than or equal to K2 constitute the same group to obtain three groups.
  6. 一种终端,其特征在于,所述终端包括:A terminal, wherein the terminal comprises:
    第一确定单元,用于确定无线音乐系统中的N个播放设备的WIFI信号强度,以得到N个信号强度值,所述N为大于1的整数;a first determining unit, configured to determine a WIFI signal strength of the N playing devices in the wireless music system, to obtain N signal strength values, where N is an integer greater than 1;
    第一分组单元,用于将所述第一确定单元确定的N个信号强度值按照预设规则进行分组,得到M个组,所述M为大于1且小于或等于所述N的整数;a first grouping unit, configured to group the N signal strength values determined by the first determining unit according to a preset rule to obtain M groups, where the M is an integer greater than 1 and less than or equal to the N;
    第二分组单元,用于分别将所述N个播放设备中与所述第一分组单元得到的M个组中的每一组的信号强度值对应的播放设备组成播放设备组以得到M个播放设备组。a second grouping unit, configured to respectively compose a playback device corresponding to a signal strength value of each of the M groups obtained by the first grouping unit among the N playing devices to obtain M playing Device group.
  7. 如权利要求6所述的终端,其特征在于,所述第一确定单元包括:The terminal according to claim 6, wherein the first determining unit comprises:
    第一获取单元,用于获取无线音乐系统中的N个播放设备的WIFI信号强度对应的N个信号值;a first acquiring unit, configured to acquire N signal values corresponding to WIFI signal strengths of N playing devices in the wireless music system;
    量化单元,用于将所述第一获取单元获取的N个信号值进行量化处理以得到N个信号强度值。And a quantization unit, configured to perform quantization processing on the N signal values acquired by the first acquiring unit to obtain N signal strength values.
  8. 如权利要求7所述的终端,其特征在于,所述量化单元包括:The terminal according to claim 7, wherein the quantization unit comprises:
    处理单元,用于分别将所述获取单元获取到的N个信号值进行归一化处理以得到N个归一值;a processing unit, configured to normalize the N signal values obtained by the acquiring unit to obtain N normalized values;
    第二确定单元,用于根据预设的归一值与信号强度值之间的映射关系确定所述处理单元处理后得到的N个归一值对应的信号强度值。And a second determining unit, configured to determine, according to a mapping relationship between the preset normalized value and the signal strength value, a signal strength value corresponding to the N normalized values obtained by the processing unit.
  9. 如权利要求6或7任一项所述的终端,其特征在于,所述第一分组单元具体用于:The terminal according to any one of claims 6 or 7, wherein the first grouping unit is specifically configured to:
    将所述N个信号强度值中信号强度值大小相等的信号强度值组成同一组,得到M个组,所述M为大于1且小于或等于所述N的整数。The signal strength values of the N signal strength values having the same magnitude of the signal strength values are grouped into the same group to obtain M groups, and the M is an integer greater than 1 and less than or equal to the N.
  10. 如权利要求6或7任一项所述的终端,其特征在于,所述第一分组单元包括:The terminal according to any one of claims 6 or 7, wherein the first grouping unit comprises:
    第二获取单元,用于在所述M为3的情况下,获取用户输入的2个阈值,所述2个阈值包括:K1和K2;a second acquiring unit, configured to acquire two thresholds input by the user, where the M is 3, the two thresholds include: K1 and K2;
    第一分组子单元,将所述N个信号强度值中信号强度值小于K1的信号强度值组成同 一组,并将所述N个信号强度值中信号强度值大于或等于K1且小于K2的信号强度值组成同一组,将所述N个信号强度值中信号强度值大于或等于K2的信号强度值组成同一组,以得到3个组。a first grouping subunit, which combines the signal strength values of the N signal strength values with a signal strength value less than K1 a group, and the signal strength values of the N signal strength values greater than or equal to K1 and less than K2 form the same group, and the signal strength values of the N signal strength values are greater than or equal to the signal strength of K2 The values are grouped together to get 3 groups.
  11. 一种存储介质,其特征在于,用于存储应用程序,所述应用程序用于执行权利要求1至5中任一项所述的播放设备的分组管理方法。A storage medium for storing an application for executing a group management method of the playback device according to any one of claims 1 to 5.
  12. 一种终端,其特征在于,包括:A terminal, comprising:
    一个或者多个处理器;One or more processors;
    存储器;Memory
    一个或者多个模块,所述一个或者多个模块存储在所述存储器中,当被所述一个或者多个处理器执行时进行如下操作:One or more modules, the one or more modules being stored in the memory, and when executed by the one or more processors, do the following:
    确定无线音乐系统中的N个播放设备的WIFI信号强度以得到N个信号强度值,所述N为大于1的整数;Determining WIFI signal strength of N playback devices in the wireless music system to obtain N signal strength values, the N being an integer greater than 1;
    将所述N个信号强度值按照预设规则进行分组,得到M个组,所述M为大于1且小于或等于所述N的整数;And grouping the N signal strength values according to a preset rule to obtain M groups, where M is an integer greater than 1 and less than or equal to the N;
    分别将所述N个播放设备中与所述M个组中的每一组的信号强度值对应的播放设备组成播放设备组以得到M个播放设备组。 A playback device corresponding to a signal strength value of each of the M groups of the N playback devices is respectively configured into a playback device group to obtain M playback device groups.
PCT/CN2015/096070 2015-08-25 2015-11-30 Grouping management method for playing devices, and terminal WO2017031853A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510528694.0 2015-08-25
CN201510528694.0A CN105163338B (en) 2015-08-25 2015-08-25 The group management method of a kind of playback equipment and terminal

Publications (1)

Publication Number Publication Date
WO2017031853A1 true WO2017031853A1 (en) 2017-03-02

Family

ID=54804071

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/096070 WO2017031853A1 (en) 2015-08-25 2015-11-30 Grouping management method for playing devices, and terminal

Country Status (2)

Country Link
CN (1) CN105163338B (en)
WO (1) WO2017031853A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110824277B (en) * 2019-11-14 2021-02-19 美的集团股份有限公司 Intelligent household appliance partitioning method and device and intelligent household appliance
CN112689308B (en) * 2020-12-17 2023-01-06 深圳创维数字技术有限公司 Multi-user wireless data transmission method, system, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150085725A1 (en) * 2013-09-23 2015-03-26 Texas Instruments Incorporated Power efficient method for wi-fi home automation
CN104575539A (en) * 2014-12-29 2015-04-29 广东欧珀移动通信有限公司 Music playing control method and device
CN104698884A (en) * 2015-01-14 2015-06-10 广东欧珀移动通信有限公司 Control packet method, device and system
CN104714412A (en) * 2014-12-30 2015-06-17 广东美的制冷设备有限公司 Method and system for managing household electric appliances and mobile terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9052810B2 (en) * 2011-09-28 2015-06-09 Sonos, Inc. Methods and apparatus to manage zones of a multi-zone media playback system
CN103532647B (en) * 2013-10-14 2015-04-29 无锡清华信息科学与技术国家实验室物联网技术中心 Sight distance propagation path judging method on basis of time domain features of WiFi (Wireless Fidelity) physical layer
CN104080012B (en) * 2014-06-30 2018-04-03 广东欧珀移动通信有限公司 A kind of control method of more playback equipments, apparatus and system
CN104507005B (en) * 2014-12-05 2017-10-13 广东欧珀移动通信有限公司 The packet control process and system of wireless sound box

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150085725A1 (en) * 2013-09-23 2015-03-26 Texas Instruments Incorporated Power efficient method for wi-fi home automation
CN104575539A (en) * 2014-12-29 2015-04-29 广东欧珀移动通信有限公司 Music playing control method and device
CN104714412A (en) * 2014-12-30 2015-06-17 广东美的制冷设备有限公司 Method and system for managing household electric appliances and mobile terminal
CN104698884A (en) * 2015-01-14 2015-06-10 广东欧珀移动通信有限公司 Control packet method, device and system

Also Published As

Publication number Publication date
CN105163338A (en) 2015-12-16
CN105163338B (en) 2016-12-28

Similar Documents

Publication Publication Date Title
US9378536B2 (en) CPU/GPU DCVS co-optimization for reducing power consumption in graphics frame processing
US10521071B2 (en) Expression curve generating method based on voice input and device thereof
US10601978B2 (en) Telecommunication device utilization based on heartbeat communication
CN111954051B (en) Method and system for transmitting video and audio data, cloud server and storage medium
US20180336005A1 (en) Sound effect processing method, and terminal device
WO2017161829A1 (en) Voice signal information processing method and device
US9992614B2 (en) Wireless device pairing management
US10103999B2 (en) Jitter buffer level estimation
US10073672B2 (en) Method, system, and computer storage medium for voice control of a split-screen terminal
US20170181094A1 (en) Intelligent terminal power consumption control method and electronic device
US10007613B2 (en) Reconfigurable fetch pipeline
US20170237816A1 (en) Method and electronic device for identifying device
US20150109210A1 (en) Control method, and input device of touch screen terminal
US20150316990A1 (en) System and Method for Redirection and Processing of Audio and Video Data based on Gesture Recognition
WO2017031853A1 (en) Grouping management method for playing devices, and terminal
US20170192480A1 (en) Method for adjusting frequency modulation parameters and electronic device
JPWO2020250395A5 (en)
CN104427118A (en) Method for recommending contents and mobile terminal
KR102213429B1 (en) Apparatus And Method For Providing Sound
US9251359B2 (en) Method and apparatus for managing crowd sourced content creation
US20180034749A1 (en) System and method for distributing and replaying trigger packets via a variable latency bus interconnect
US9490914B2 (en) Electronic device and its wireless network communication method
WO2018149136A1 (en) Wireless fidelity (wifi) connection method and related product
WO2018049975A1 (en) Data transfer method and related product
US10356526B2 (en) Computers, methods for controlling a computer, and computer-readable media

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15902122

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15902122

Country of ref document: EP

Kind code of ref document: A1