[go: up one dir, main page]

CN106775269B - Sound box control method and mobile terminal - Google Patents

Sound box control method and mobile terminal Download PDF

Info

Publication number
CN106775269B
CN106775269B CN201611070999.2A CN201611070999A CN106775269B CN 106775269 B CN106775269 B CN 106775269B CN 201611070999 A CN201611070999 A CN 201611070999A CN 106775269 B CN106775269 B CN 106775269B
Authority
CN
China
Prior art keywords
speaker
controlled
list
sound box
master
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611070999.2A
Other languages
Chinese (zh)
Other versions
CN106775269A (en
Inventor
欧双
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201611070999.2A priority Critical patent/CN106775269B/en
Publication of CN106775269A publication Critical patent/CN106775269A/en
Application granted granted Critical
Publication of CN106775269B publication Critical patent/CN106775269B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Medical Informatics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computing Systems (AREA)
  • Multimedia (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Acoustics & Sound (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention is suitable for the technical field of information, and provides a control method of a sound box and a mobile terminal, wherein the control method comprises the following steps: when a first gesture operation of a user on an icon of a sound box to be controlled on a sound box list interface is acquired, acquiring state information of the sound box to be controlled; if the state information is in a non-locking state, generating a locking message, and sending the locking message to a master control sound box, so that the master control sound box forwards the locking message to the sound box to be controlled and updates a sound box list; receiving an updated sound box list returned by the master control sound box; and adding a locking identifier on the icon of the sound box to be controlled according to the sound box list, and juxtaposing the state identifier of the sound box to be controlled so as to forbid the operation on the sound box to be controlled. The method and the device realize the locking of the sound box list interface, solve the problem of misoperation of the sound box list interface caused by the false triggering of the user in the prior art, and improve the experience of the user.

Description

音箱的控制方法及移动终端Speaker control method and mobile terminal

技术领域technical field

本发明属于信息技术领域,尤其涉及一种音箱的控制方法及移动终端。The invention belongs to the field of information technology, and in particular relates to a control method of a sound box and a mobile terminal.

背景技术Background technique

目前,无线音箱可以通过Mesh网络中的主控音箱MPP与移动终端进行连接通信,用户通过在移动终端上操作,即可对Mesh网络中的无线音箱进行控制。然而,现有移动终端上的音箱列表界面容易因为用户的误触发而产生误操作,给用户带来了极大的困扰;并且音箱列表界面通常采用多级菜单的方式实现,当用户需要删除某些音箱设备时,需要逐层翻页,包括:1、在“设置”界面选择“高级设置”选项;2、在“高级设置”界面下选择“重置音箱”选项;3、在“重置音箱”界面下选择待删除的音箱;4、在弹出的对话框中选择确认;操作过程繁琐,不便捷。At present, wireless speakers can communicate with the mobile terminal through the main control speaker MPP in the Mesh network. Users can control the wireless speakers in the Mesh network by operating on the mobile terminal. However, the speaker list interface on the existing mobile terminal is prone to misoperation due to the user's false triggering, which brings great trouble to the user; and the speaker list interface is usually implemented by a multi-level menu. When the user needs to delete a certain For some speaker devices, you need to turn the pages layer by layer, including: 1. Select the "Advanced Settings" option in the "Settings" interface; 2. Select the "Reset Speakers" option in the "Advanced Settings" interface; 3. In the "Reset" option Select the speaker to be deleted in the "Speaker" interface; 4. Select Confirm in the pop-up dialog box; the operation process is cumbersome and inconvenient.

故,有必要提出一种新的技术方案,以解决上述技术问题。Therefore, it is necessary to propose a new technical solution to solve the above-mentioned technical problems.

发明内容SUMMARY OF THE INVENTION

鉴于此,本发明实施例提供了一种音箱的控制方法及移动终端,以实现对音箱列表界面的锁定以及简化用户在音箱列表界面上的删除操作。In view of this, embodiments of the present invention provide a method for controlling a speaker and a mobile terminal, so as to lock the speaker list interface and simplify the user's deletion operation on the speaker list interface.

第一方面,提供了一种音箱的控制方法,所述控制方法包括:In a first aspect, a method for controlling a sound box is provided, the control method comprising:

当获取到用户在音箱列表界面上对待控音箱的图标的第一手势操作时,获取所述待控音箱的状态信息;When acquiring the first gesture operation of the icon of the speaker to be controlled by the user on the speaker list interface, acquire the status information of the speaker to be controlled;

若所述状态信息为非锁定状态时,生成锁定消息,并将所述锁定消息发送至主控音箱,以使得所述主控音箱将所述锁定消息转发至所述待控音箱并更新音箱列表;If the state information is in an unlocked state, a lock message is generated, and the lock message is sent to the master control speaker, so that the master control speaker forwards the lock message to the to-be-controlled speaker and updates the speaker list ;

接收所述主控音箱返回的更新后的音箱列表;Receive the updated speaker list returned by the master speaker;

根据所述音箱列表在所述待控音箱的图标上添加锁定标识,并置位所述待控音箱的状态标识位,以禁止对所述待控音箱的操作。According to the speaker list, a lock mark is added to the icon of the speaker to be controlled, and the status flag of the speaker to be controlled is set to prohibit the operation of the speaker to be controlled.

进一步地,所述控制方法还包括:Further, the control method also includes:

若所述状态信息为锁定状态时,生成解锁消息,并将所述解锁消息发送至主控音箱以使得所述主控音箱将所述解锁消息转发至所述待控音箱并更新音箱列表;If the state information is in a locked state, generate an unlocking message, and send the unlocking message to the master speaker so that the master speaker forwards the unlocking message to the speaker to be controlled and updates the speaker list;

接收所述主控音箱返回的更新后的音箱列表;Receive the updated speaker list returned by the master speaker;

根据所述音箱列表删除所述待控音箱的图标上的锁定标识,并复位所述待控音箱的状态标识位,以允许对所述待控音箱的操作。Delete the lock mark on the icon of the sound box to be controlled according to the sound box list, and reset the status flag of the sound box to be controlled to allow the operation of the sound box to be controlled.

进一步地,所述控制方法还包括:Further, the control method also includes:

当待控音箱的状态信息为非锁定状态时,若获取到用户在所述音箱列表界面上对待控音箱的图标的第二手势操作时,生成网络重置消息;When the state information of the speaker to be controlled is an unlocked state, if a second gesture operation by the user on the icon of the speaker to be controlled on the speaker list interface is obtained, a network reset message is generated;

将所述网络重置消息发送至所述主控音箱,以使得所述主控音箱将所述网络重置消息转发至所述待控音箱并将所述待控音箱从音箱列表中移除;sending the network reset message to the master speaker, so that the master speaker forwards the network reset message to the speaker to be controlled and removes the speaker to be controlled from the speaker list;

接收所述主控音箱返回的更新后的音箱列表;Receive the updated speaker list returned by the master speaker;

根据所述音箱列表将所述待控音箱的图标从所述音箱列表界面中删除。The icon of the speaker to be controlled is deleted from the speaker list interface according to the speaker list.

进一步地,所述第一手势操作为向左滑动操作,所述第二手势操作为向右滑动操作;或者,Further, the first gesture operation is a leftward sliding operation, and the second gesture operation is a rightward sliding operation; or,

所述第一手势操作为向右滑动操作,所述第二手势操作为向左滑动操作。The first gesture operation is a rightward sliding operation, and the second gesture operation is a leftward sliding operation.

第二方面,提供了一种移动终端,所述移动终端包括:In a second aspect, a mobile terminal is provided, the mobile terminal comprising:

获取模块,用于当获取到用户在音箱列表界面上对待控音箱的图标的第一手势操作时,获取所述待控音箱的状态信息;an acquisition module, configured to acquire the status information of the speaker to be controlled when the user's first gesture operation on the icon of the speaker to be controlled on the speaker list interface is acquired;

第一控制模块,用于若所述状态信息为非锁定状态时,生成锁定消息,并将所述锁定消息发送至主控音箱,以使得所述主控音箱将所述锁定消息转发至所述待控音箱并更新音箱列表;The first control module is used to generate a lock message if the state information is in an unlocked state, and send the lock message to the main control speaker, so that the main control speaker forwards the lock message to the To control the speaker and update the speaker list;

第一接收模块,用于接收所述主控音箱返回的更新后的音箱列表;a first receiving module for receiving the updated speaker list returned by the master speaker;

第一更新模块,用于根据所述音箱列表在所述待控音箱的图标上添加锁定标识,并置位所述待控音箱的状态标识位,以禁止对所述待控音箱的操作。The first update module is configured to add a lock mark on the icon of the speaker to be controlled according to the speaker list, and set the status flag of the speaker to be controlled to prohibit the operation of the speaker to be controlled.

进一步地,所述移动终端还包括:Further, the mobile terminal also includes:

第二控制模块,用于若所述状态信息为锁定状态时,生成解锁消息,并将所述解锁消息发送至主控音箱以使得所述主控音箱将所述解锁消息转发至所述待控音箱并更新音箱列表;a second control module, configured to generate an unlocking message if the state information is in a locked state, and send the unlocking message to the master control speaker, so that the master control speaker forwards the unlocking message to the to-be-controlled speaker Speakers and update the speaker list;

第二接收模块,用于接收所述主控音箱返回的更新后的音箱列表;The second receiving module is used to receive the updated speaker list returned by the master speaker;

第二更新模块,用于根据所述音箱列表删除所述待控音箱的图标上的锁定标识,并复位所述待控音箱的状态标识位,以允许对所述待控音箱的操作。The second update module is configured to delete the lock mark on the icon of the sound box to be controlled according to the sound box list, and reset the status flag of the sound box to be controlled to allow the operation of the sound box to be controlled.

进一步地,所述移动终端还包括:Further, the mobile terminal also includes:

第三控制模块,用于当待控音箱的状态信息为非锁定状态时,若获取到用户在所述音箱列表界面上对待控音箱的图标的第二手势操作时,生成网络重置消息,将所述网络重置消息发送至所述主控音箱,以使得所述主控音箱将所述网络重置消息转发至所述待控音箱并将所述待控音箱从音箱列表中移除;The third control module is configured to generate a network reset message when the state information of the speaker to be controlled is in an unlocked state, if the user's second gesture operation on the icon of the speaker to be controlled on the speaker list interface is obtained, sending the network reset message to the master speaker, so that the master speaker forwards the network reset message to the speaker to be controlled and removes the speaker to be controlled from the speaker list;

第三接收模块,用于接收所述主控音箱返回的更新后的音箱列表;The third receiving module is used to receive the updated speaker list returned by the master speaker;

第三更新模块,用于根据所述音箱列表将所述待控音箱的图标从所述音箱列表界面中删除。The third update module is configured to delete the icon of the speaker to be controlled from the speaker list interface according to the speaker list.

第三方面,提供了一种移动终端,所述移动终端包括:In a third aspect, a mobile terminal is provided, the mobile terminal comprising:

处理器,用于当获取到用户在音箱列表界面上对待控音箱的图标的第一手势操作时,获取所述待控音箱的状态信息;若所述状态信息为非锁定状态时,生成锁定消息,并将所述锁定消息发送至主控音箱,以使得所述主控音箱将所述锁定消息转发至所述待控音箱并更新音箱列表;接收所述主控音箱返回的更新后的音箱列表;根据所述音箱列表在所述待控音箱的图标上添加锁定标识,并置位所述待控音箱的状态标识位,以禁止对所述待控音箱的操作。The processor is configured to acquire the state information of the speaker to be controlled when the user's first gesture operation on the icon of the speaker to be controlled on the speaker list interface is obtained; if the state information is an unlocked state, generate a locking message , and send the lock message to the master speaker, so that the master speaker forwards the lock message to the speaker to be controlled and updates the speaker list; receives the updated speaker list returned by the master speaker ; Add a lock mark on the icon of the sound box to be controlled according to the sound box list, and set the status flag of the sound box to be controlled to prohibit the operation of the sound box to be controlled.

进一步地,所述处理器还用于:Further, the processor is also used for:

若所述状态信息为锁定状态时,生成解锁消息,并将所述解锁消息发送至主控音箱以使得所述主控音箱将所述解锁消息转发至所述待控音箱并更新音箱列表;接收所述主控音箱返回的更新后的音箱列表;根据所述音箱列表删除所述待控音箱的图标上的锁定标识,并复位所述待控音箱的状态标识位,以允许对所述待控音箱的操作。If the state information is in a locked state, generate an unlocking message, and send the unlocking message to the master speaker so that the master speaker forwards the unlocking message to the speaker to be controlled and updates the speaker list; receiving The updated speaker list returned by the main control speaker; delete the lock mark on the icon of the speaker to be controlled according to the speaker list, and reset the status flag of the speaker to be controlled, so as to allow control of the speaker to be controlled. Operation of the speaker.

进一步地,所述处理器还用于:Further, the processor is also used for:

当待控音箱的状态信息为非锁定状态时,若获取到用户在所述音箱列表界面上对待控音箱的图标的第二手势操作时,生成网络重置消息;将所述网络重置消息发送至所述主控音箱,以使得所述主控音箱将所述网络重置消息转发至所述待控音箱并将所述待控音箱从音箱列表中移除;接收所述主控音箱返回的更新后的音箱列表;根据所述音箱列表将所述待控音箱的图标从所述音箱列表界面中删除。When the state information of the speaker to be controlled is an unlocked state, if a second gesture operation by the user on the icon of the speaker to be controlled on the speaker list interface is obtained, a network reset message is generated; Send to the master speaker, so that the master speaker forwards the network reset message to the speaker to be controlled and removes the speaker to be controlled from the speaker list; receive the master speaker to return The updated speaker list; delete the icon of the speaker to be controlled from the speaker list interface according to the speaker list.

与现有技术相比,本发明实施例通过获取用户在音箱列表界面上对待控音箱的图标的手势操作;若所述手势操作为第一手势操作时,获取所述待控音箱的状态信息;若所述状态信息为非锁定状态时,生成锁定消息,并将所述锁定消息发送至主控音箱,以使得所述主控音箱将所述锁定消息转发至所述待控音箱并更新音箱列表;然后接收所述主控音箱返回的音箱列表,根据所述音箱列表在所述待控音箱的图标上添加锁定标识,并置位所述待控音箱的状态标识位,以禁止对所述待控音箱的操作,从而实现对音箱列表界面的锁定,解决了现有技术中音箱列表界面因用户的误触发而产生误操作的问题,提升了用户的体验感。Compared with the prior art, the embodiment of the present invention obtains the user's gesture operation on the icon of the speaker to be controlled on the speaker list interface; if the gesture operation is the first gesture operation, the state information of the speaker to be controlled is acquired; If the state information is in an unlocked state, a lock message is generated, and the lock message is sent to the master control speaker, so that the master control speaker forwards the lock message to the to-be-controlled speaker and updates the speaker list ; Then receive the speaker list returned by the master control speaker, add a lock mark on the icon of the speaker to be controlled according to the speaker list, and position the status flag of the speaker to be controlled to prohibit the use of the speaker to be controlled. The speaker list interface is locked by controlling the operation of the speaker, which solves the problem of misoperation of the speaker list interface due to the user's false triggering in the prior art, and improves the user's experience.

附图说明Description of drawings

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

图1是本发明第一实施例提供的音箱的控制系统的组成结构图;Fig. 1 is the composition structure diagram of the control system of the sound box provided by the first embodiment of the present invention;

图2是本发明第一实施例提供的音箱列表界面的示意图;2 is a schematic diagram of a speaker list interface provided by the first embodiment of the present invention;

图3是本发明第一实施例提供的音箱的控制方法的实现流程图;Fig. 3 is the realization flow chart of the control method of the sound box provided by the first embodiment of the present invention;

图4是本发明第二实施例提供的音箱的控制方法的实现流程图;Fig. 4 is the realization flow chart of the control method of the sound box provided by the second embodiment of the present invention;

图5是本发明第三实施例提供的音箱的控制方法的实现流程图;Fig. 5 is the realization flow chart of the control method of the sound box provided by the third embodiment of the present invention;

图6是本发明第四实施例提供的移动终端的示意性框图;6 is a schematic block diagram of a mobile terminal provided by a fourth embodiment of the present invention;

图7是本发明第五实施例提供的移动终端的示意性框图;7 is a schematic block diagram of a mobile terminal provided by a fifth embodiment of the present invention;

图8是本发明第六实施例提供的移动终端的示意性框图。FIG. 8 is a schematic block diagram of a mobile terminal according to a sixth embodiment of the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

本发明实施例通过获取用户在音箱列表界面上对待控音箱的图标的手势操作;若所述手势操作为第一手势操作时,获取所述待控音箱的状态信息;若所述状态信息为非锁定状态时,生成锁定消息,并将所述锁定消息发送至主控音箱,以使得所述主控音箱将所述锁定消息转发至所述待控音箱并更新音箱列表;然后接收所述主控音箱返回的音箱列表,根据所述音箱列表在所述待控音箱的图标上添加锁定标识,并置位所述待控音箱的状态标识位,以禁止对所述待控音箱的操作,从而实现对音箱列表界面的锁定,解决了现有技术中音箱列表界面因用户的误触发而产生误操作的问题,提升了用户的体验感。本发明实施例还提供了相应的音箱的控制系统及移动终端,以下分别进行详细的说明。The embodiment of the present invention obtains the user's gesture operation on the icon of the speaker to be controlled on the speaker list interface; if the gesture operation is the first gesture operation, the state information of the speaker to be controlled is acquired; if the state information is not In the locked state, a lock message is generated, and the lock message is sent to the master control speaker, so that the master control speaker forwards the lock message to the to-be-controlled speaker and updates the speaker list; and then receives the master control speaker. The speaker list returned by the speaker, according to the speaker list, add a lock mark on the icon of the speaker to be controlled, and set the status flag of the speaker to be controlled to prohibit the operation of the speaker to be controlled, thereby realizing The locking of the speaker list interface solves the problem that the speaker list interface in the prior art is erroneously operated due to the user's erroneous triggering, and improves the user's sense of experience. The embodiment of the present invention also provides a corresponding control system and a mobile terminal for the speaker box, which will be described in detail below.

图1示出了本发明第一实施例提供的音箱的控制系统的组成结构,为了便于说明,仅示出了与本发明实施例相关的部分。FIG. 1 shows the composition structure of the control system of the sound box provided by the first embodiment of the present invention. For convenience of description, only the parts related to the embodiment of the present invention are shown.

参阅图1,所述音箱的控制系统包括若干个音箱1、移动终端2以及路由器3,所述音箱1与所述移动终端2之间通过所述路由器3连接到同一个局域网内,并且能够发现并配对成功。其中,所述移动终端2具有一触摸式显示屏,支持触摸滑动操作,能够在所述触摸式显示屏上显示音箱列表界面,所述音箱列表界面上包括受该移动终端2控制的若干个音箱的图标。示例性地,图2示出了本发明第一实施例提供的音箱列表界面的示意图。在所述若干个音箱1中,包括一个作为主控音箱MPP的音箱,该主控音箱MPP用于控制其他音箱1的开关和状态切换等。具体地,所述主控音箱MPP能够接收所述移动终端2发送的控制消息,并将所述控制消息转发至待控音箱1,以使得所述待控音箱1根据所述控制消息进行相应的调整。Referring to FIG. 1, the control system of the speaker includes several speakers 1, a mobile terminal 2 and a router 3, and the speaker 1 and the mobile terminal 2 are connected to the same local area network through the router 3, and can find and paired successfully. The mobile terminal 2 has a touch screen, supports touch and slide operations, and can display a speaker list interface on the touch screen, and the speaker list interface includes several speakers controlled by the mobile terminal 2 icon. Exemplarily, FIG. 2 shows a schematic diagram of a speaker list interface provided by the first embodiment of the present invention. Among the several speakers 1 , one speaker is included as the master speaker MPP, and the master speaker MPP is used to control the switch and state switching of other speakers 1 . Specifically, the master control speaker MPP can receive the control message sent by the mobile terminal 2, and forward the control message to the speaker to be controlled 1, so that the speaker to be controlled 1 performs corresponding actions according to the control message. Adjustment.

图3示出了本发明第一实施例提供的音箱的控制方法的实现流程。在本发明实施例中,所述控制方法应用于移动终端2,包括:FIG. 3 shows an implementation flow of the method for controlling a sound box provided by the first embodiment of the present invention. In this embodiment of the present invention, the control method is applied to the mobile terminal 2, including:

在步骤S301中,当获取到用户在音箱列表界面上对待控音箱的图标的第一手势操作时,获取所述待控音箱的状态信息。In step S301, when the user's first gesture operation on the icon of the speaker to be controlled on the speaker list interface is acquired, state information of the speaker to be controlled is acquired.

在步骤S302中,若所述状态信息为非锁定状态时,生成锁定消息,并将所述锁定消息发送至主控音箱,以使得所述主控音箱将所述锁定消息转发至所述待控音箱并更新音箱列表。In step S302, if the state information is an unlocked state, a lock message is generated, and the lock message is sent to the master control speaker, so that the master control speaker forwards the lock message to the pending control speaker speakers and update the list of speakers.

在这里,本发明实施例将所述锁定消息发送至主控音箱,所述主控音箱在接收到所述锁定消息之后,则将所述锁定消息转发至所述待控音箱,然后更新其维护的数据库,将音箱列表中所述待控音箱的状态信息更新为锁定状态。在这里,所述音箱列表中记录了受移动终端控制的音箱以及每一个音箱的状态信息,所述状态信息包括但不限于开启、关闭、暂停、播放、单曲循环、锁定、解锁等。在更新完毕后,所述主控音箱向所述移动终端发送更新后的音箱列表。在所述音箱列表中,所述待控音箱的状态信息为锁定状态。Here, in this embodiment of the present invention, the lock message is sent to the master control speaker, and after the master control speaker receives the lock message, it forwards the lock message to the to-be-controlled speaker, and then updates its maintenance database, and update the status information of the speaker to be controlled in the speaker list to the locked state. Here, the speaker list records the speakers controlled by the mobile terminal and the status information of each speaker, the status information includes but is not limited to on, off, pause, play, single song loop, lock, unlock, etc. After the update is completed, the master control speaker sends the updated speaker list to the mobile terminal. In the speaker list, the state information of the speaker to be controlled is a locked state.

在步骤S303中,接收所述主控音箱返回的更新后的音箱列表。In step S303, the updated speaker list returned by the master speaker is received.

在步骤S304中,根据所述音箱列表在所述待控音箱的图标上添加锁定标识,并置位所述待控音箱的状态标识位,以禁止对所述待控音箱的操作。In step S304, a lock mark is added to the icon of the sound box to be controlled according to the sound box list, and the status flag of the sound box to be controlled is set to prohibit the operation of the sound box to be controlled.

在本发明实施例中,所述移动终端根据更新后的音箱列表更新所述音箱列表界面,包括在待控音箱的图标上添加锁定标识。其中,所述锁定标识可以为锁的图案或者其他表示锁住的含义的图案,此处不做限制。同时置位当前待控音箱的状态标识位,禁止用户对所述待控音箱进行比如删除、拆组、编组、立体声对设置等操作。由于状态标识位已置位,移动终端也不再响应用户的其他形式的手势操作,从而实现了对音箱列表界面的锁定,避免了用户的误触发,解决了现有技术中音箱列表界面因用户误触发而产生误操作的问题,有效地提升了用户的体验感。In the embodiment of the present invention, the mobile terminal updates the speaker list interface according to the updated speaker list, including adding a lock mark on the icon of the speaker to be controlled. Wherein, the lock identification may be a lock pattern or other patterns representing the meaning of being locked, which is not limited here. At the same time, the status flag of the speaker to be controlled is set, and the user is prohibited from performing operations on the speaker to be controlled, such as deletion, disassembly, grouping, stereo pair setting, and the like. Since the status indicator has been set, the mobile terminal no longer responds to other forms of gesture operations of the user, thereby realizing the locking of the speaker list interface, avoiding the user's false triggering, and solving the problem that the speaker list interface in the prior art is caused by the user. The problem of misoperation caused by false triggering effectively improves the user experience.

作为本发明的另一个优选实施例,在图3实施例的基础上提出本发明提供的音箱的控制方法的第二实现流程。在这里,当用户输入第一手势操作时,若所述待控音箱当前的状态为锁定状态,则向主控音箱MPP发送解锁消息。图4示出了本发明第二实施例提供的音箱的控制方法的实现流程。参阅图4,所述音箱的控制方法包括:As another preferred embodiment of the present invention, on the basis of the embodiment in FIG. 3 , a second implementation process of the control method for a sound box provided by the present invention is proposed. Here, when the user inputs the first gesture operation, if the current state of the speaker to be controlled is a locked state, an unlock message is sent to the master speaker MPP. FIG. 4 shows the implementation flow of the control method for a sound box provided by the second embodiment of the present invention. Referring to Figure 4, the control method of the speaker includes:

在步骤S401中,当获取到用户在音箱列表界面上对待控音箱的图标的第一手势操作时,获取所述待控音箱的状态信息。In step S401, when the user's first gesture operation on the icon of the speaker to be controlled on the speaker list interface is acquired, state information of the speaker to be controlled is acquired.

在步骤S402中,若所述状态信息为锁定状态时,生成解锁消息,并将所述解锁消息发送至主控音箱以使得所述主控音箱将所述解锁消息转发至所述待控音箱并更新音箱列表。In step S402, if the state information is in a locked state, an unlocking message is generated, and the unlocking message is sent to the master control speaker, so that the master control speaker forwards the unlocking message to the to-be-controlled speaker and sends the unlocking message to the speaker to be controlled. Update the speaker list.

在这里,本发明实施例将所述解锁消息发送至主控音箱,所述主控音箱在接收到所述解锁消息之后,则将所述解锁消息转发至所述待控音箱,然后更新其维护的数据库,将音箱列表中所述待控音箱的状态信息更新为非锁定状态,最后向所述移动终端发送更新后的音箱列表。在所述音箱列表中,所述待控音箱的状态信息为非锁定状态。Here, in this embodiment of the present invention, the unlocking message is sent to the master control speaker, and after receiving the unlocking message, the master control speaker forwards the unlocking message to the to-be-controlled speaker, and then updates its maintenance database, update the state information of the speaker to be controlled in the speaker list to an unlocked state, and finally send the updated speaker list to the mobile terminal. In the speaker list, the state information of the speaker to be controlled is an unlocked state.

在步骤S403中,接收所述主控音箱返回的更新后的音箱列表。In step S403, the updated speaker list returned by the master speaker is received.

在步骤S404中,根据所述音箱列表删除所述待控音箱的图标上的锁定标识,并复位所述待控音箱的状态标识位,以允许对所述待控音箱的操作。In step S404, the lock mark on the icon of the sound box to be controlled is deleted according to the sound box list, and the status flag of the sound box to be controlled is reset to allow the operation of the sound box to be controlled.

在本发明实施例中,移动终端根据更新后的音箱列表更新所述音箱列表界面,包括去除所述待控音箱的图标上的锁定标识,同时复位当前待控音箱的状态标识位,允许用户对所述待控音箱进行比如删除、拆组、编组、立体声对设置等操作。由于状态标识位已复位,移动终端可以响应用户的其他形式的手势操作,从而实现对音箱列表界面的解锁。本发明实施例通过结合预设的第一手势操作和待控音箱的状态信息来进行加锁和解锁操作,既避免了误操作也简化了用户的解锁方式,极大地方便了用户,提升了用户的体验感。In the embodiment of the present invention, the mobile terminal updates the speaker list interface according to the updated speaker list, including removing the lock mark on the icon of the speaker to be controlled, and at the same time resetting the status flag of the speaker to be controlled, allowing the user to The speaker to be controlled performs operations such as deletion, disassembly, grouping, and stereo pair setting. Since the status flag has been reset, the mobile terminal can respond to other forms of gesture operations of the user, thereby unlocking the speaker list interface. The embodiment of the present invention performs locking and unlocking operations by combining the preset first gesture operation and the state information of the speaker to be controlled, which not only avoids misoperation, but also simplifies the user's unlocking method, which greatly facilitates the user and improves the user experience. sense of experience.

在本发明实施例中,所述的第一手势操作可以为触摸滑动操作或者长按操作,在此不作限定。其中,触摸滑动操作可以为单点触摸滑动操作或者多点触摸滑动操作,长按操作可以为单点长按操作或者多点长按操作。其中,单点触摸滑动操作指的是单个手指的触摸滑动操作,多点触摸滑动操作指的是多个手指的触摸滑动操作。示例性地,所述第一手势操作为向左滑动操作或者向右滑动操作。In this embodiment of the present invention, the first gesture operation may be a touch sliding operation or a long pressing operation, which is not limited herein. The touch sliding operation may be a single-touch sliding operation or a multi-touch sliding operation, and the long-press operation may be a single-point long-press operation or a multi-point long-press operation. The single-touch sliding operation refers to the touch sliding operation of a single finger, and the multi-touch sliding operation refers to the touch sliding operation of multiple fingers. Exemplarily, the first gesture operation is a left sliding operation or a right sliding operation.

作为本发明的另一个优选实施例,在图4实施例的基础上提出本发明提供的音箱的控制方法的第三实现流程。在这里,若所述待控音箱当前的状态为非锁定状态时,可以根据用户输入的第二手势操作向主控音箱MPP发送解锁消息。图5示出了本发明第三实施例提供的音箱的控制方法的实现流程。参阅图5,所述音箱的控制方法包括:As another preferred embodiment of the present invention, on the basis of the embodiment in FIG. 4 , a third implementation process of the control method for a sound box provided by the present invention is proposed. Here, if the current state of the speaker to be controlled is an unlocked state, an unlocking message may be sent to the master speaker MPP according to the second gesture operation input by the user. FIG. 5 shows an implementation flow of a method for controlling a sound box provided by a third embodiment of the present invention. Referring to Figure 5, the control method of the speaker includes:

在步骤S501中,当待控音箱的状态信息为非锁定状态时,若获取到用户在所述音箱列表界面上对待控音箱的图标的第二手势操作时,生成网络重置消息。In step S501, when the state information of the speaker to be controlled is in an unlocked state, and if the user's second gesture operation on the icon of the speaker to be controlled on the speaker list interface is obtained, a network reset message is generated.

在步骤S502中,将所述网络重置消息发送至所述主控音箱,以使得所述主控音箱将所述网络重置消息转发至所述待控音箱并将所述待控音箱从音箱列表中移除。In step S502, the network reset message is sent to the master control speaker, so that the master control speaker forwards the network reset message to the to-be-controlled speaker and sends the to-be-controlled speaker from the speaker removed from the list.

在这里,本发明实施例将所述网络重置消息发送至主控音箱,所述主控音箱在接收到所述网络重置消息之后,则将所述网络重置消息转发至所述待控音箱,然后更新其维护的数据库,将所述待控音箱从音箱列表中移除,最后向所述移动终端发送更新后的音箱列表。Here, in this embodiment of the present invention, the network reset message is sent to the master control speaker, and after receiving the network reset message, the master control speaker forwards the network reset message to the to-be-controlled speaker. speaker, then update the database maintained by it, remove the speaker to be controlled from the speaker list, and finally send the updated speaker list to the mobile terminal.

在步骤S503中,接收所述主控音箱返回的更新后的音箱列表。In step S503, the updated speaker list returned by the master control speaker is received.

所述音箱列表中包括移除待控音箱之后剩余的其他音箱。The speaker list includes other speakers remaining after the speaker to be controlled is removed.

在步骤S504中,根据所述音箱列表将所述待控音箱的图标从所述音箱列表界面中删除。In step S504, the icon of the speaker to be controlled is deleted from the speaker list interface according to the speaker list.

在本发明实施例中,移动终端根据更新后的音箱列表更新所述音箱列表界面,即将所述待控音箱的图标从所述音箱列表界面中删除,从而简化了对音箱设备的删除操作,无需逐层翻页,只需在音效列表界面上输入预设的第二手势操作即可,简化了用户的删除操作,极大地方便了用户,提升了用户的体验感。在删除待控音箱之后,音箱列表界面中该被删除的待控音箱下面的音箱向上移动,以填补该被删除的待控音箱的空缺位置。In the embodiment of the present invention, the mobile terminal updates the speaker list interface according to the updated speaker list, that is, deletes the icon of the speaker to be controlled from the speaker list interface, thereby simplifying the deletion operation of the speaker device, without the need for To turn pages layer by layer, you only need to enter the preset second gesture operation on the sound effect list interface, which simplifies the user's deletion operation, greatly facilitates the user, and improves the user's experience. After the speaker to be controlled is deleted, the speaker below the deleted speaker to be controlled in the speaker list interface moves upward to fill the vacant position of the deleted speaker to be controlled.

在这里,所述第二手势操作不同于所述第一手势操作。所述第二手势操作也可以为触摸滑动操作或者长按操作,在此不作限定。其中,触摸滑动操作可以为单点触摸滑动操作或者多点触摸滑动操作,长按操作可以为单点长按操作或者多点长按操作。单点触摸滑动操作指的是单个手指的触摸滑动操作,多点触摸滑动操作指的是多个手指的触摸滑动操作。Here, the second gesture operation is different from the first gesture operation. The second gesture operation may also be a touch sliding operation or a long pressing operation, which is not limited herein. The touch sliding operation may be a single-touch sliding operation or a multi-touch sliding operation, and the long-press operation may be a single-point long-press operation or a multi-point long-press operation. The single-touch sliding operation refers to the touch sliding operation of a single finger, and the multi-touch sliding operation refers to the touch sliding operation of multiple fingers.

示例性地,当所述第一手势操作为向左滑动操作时,所述第二手势操作可以为向右滑动操作;或者,当所述第一手势操作为向右滑动操作时,所述第二手势操作可以为向左滑动操作。Exemplarily, when the first gesture operation is a leftward sliding operation, the second gesture operation may be a rightward sliding operation; or, when the first gesture operation is a rightward sliding operation, the The second gesture operation may be a leftward sliding operation.

图6示出了本发明第四实施例提供的移动终端的示意性框图,为了便于说明,仅示出了与本发明实施例相关的部分。FIG. 6 shows a schematic block diagram of a mobile terminal provided by a fourth embodiment of the present invention. For convenience of description, only parts related to the embodiment of the present invention are shown.

在本发明实施例中,所述移动终端用于实现上述图3至图5实施例中所述的音箱的控制方法。所述移动终端包括但不限于智能手机、平板电脑等。In the embodiment of the present invention, the mobile terminal is used to implement the control method of the sound box described in the embodiments of FIG. 3 to FIG. 5 above. The mobile terminal includes, but is not limited to, a smart phone, a tablet computer, and the like.

参阅图6,所述移动终端包括:Referring to Figure 6, the mobile terminal includes:

获取模块21,用于当获取到用户在音箱列表界面上对待控音箱的图标的第一手势操作时,获取所述待控音箱的状态信息。The acquiring module 21 is configured to acquire the state information of the speaker to be controlled when a first gesture operation by the user on the icon of the speaker to be controlled on the speaker list interface is acquired.

第一控制模块22,用于若所述状态信息为非锁定状态时,生成锁定消息,并将所述锁定消息发送至主控音箱,以使得所述主控音箱将所述锁定消息转发至所述待控音箱并更新音箱列表。The first control module 22 is configured to generate a lock message if the state information is in an unlocked state, and send the lock message to the master control speaker, so that the master control speaker forwards the lock message to all speakers. describe the speakers to be controlled and update the speaker list.

第一接收模块23,用于接收所述主控音箱返回的更新后的音箱列表。The first receiving module 23 is configured to receive the updated speaker list returned by the master control speaker.

第一更新模块24,用于根据所述音箱列表在所述待控音箱的图标上添加锁定标识,并置位所述待控音箱的状态标识位,以禁止对所述待控音箱的操作。The first update module 24 is configured to add a lock mark on the icon of the speaker to be controlled according to the speaker list, and set the status flag of the speaker to be controlled to prohibit the operation of the speaker to be controlled.

在本发明实施例中,所述第一更新模块24控制移动终端根据更新后的音箱列表更新所述音箱列表界面,包括在待控音箱的图标上添加锁定标识,同时置位当前待控音箱的状态标识位,禁止用户对所述待控音箱进行比如删除、拆组、编组、立体声对设置等操作。由于状态标识位已置位,移动终端也不再响应用户的其他形式的手势操作,从而实现了对音箱列表界面的锁定,避免了用户的误触发,解决了现有技术中音箱列表界面因用户误触发而产生误操作的问题,有效地提升了用户的体验感。In the embodiment of the present invention, the first update module 24 controls the mobile terminal to update the speaker list interface according to the updated speaker list, including adding a lock mark on the icon of the speaker to be controlled, and at the same time positioning the current speaker to be controlled. The status flag bit prohibits the user from performing operations such as deleting, ungrouping, grouping, and stereo pair setting on the speaker to be controlled. Since the status indicator has been set, the mobile terminal no longer responds to other forms of gesture operations of the user, thereby realizing the locking of the speaker list interface, avoiding the user's false triggering, and solving the problem that the speaker list interface in the prior art is caused by the user. The problem of misoperation caused by false triggering effectively improves the user experience.

进一步地,所述移动终端还包括:Further, the mobile terminal also includes:

第二控制模块25,用于若所述状态信息为锁定状态时,生成解锁消息,并将所述解锁消息发送至主控音箱以使得所述主控音箱将所述解锁消息转发至所述待控音箱并更新音箱列表。The second control module 25 is configured to generate an unlocking message if the state information is in a locked state, and send the unlocking message to the main control speaker, so that the main control speaker forwards the unlocking message to the waiting speaker Control the speakers and update the speaker list.

第二接收模块26,用于接收所述主控音箱返回的更新后的音箱列表。The second receiving module 26 is configured to receive the updated speaker list returned by the master speaker.

第二更新模块27,用于根据所述音箱列表删除所述待控音箱的图标上的锁定标识,并复位所述待控音箱的状态标识位,以允许对所述待控音箱的操作。The second update module 27 is configured to delete the lock mark on the icon of the speaker to be controlled according to the speaker list, and reset the status flag of the speaker to be controlled to allow the operation of the speaker to be controlled.

在本发明实施例中,所述第二更新模块27控制所述移动终端根据更新后的音箱列表更新所述音箱列表界面,包括去除所述待控音箱的图标上的锁定标识,同时复位当前待控音箱的状态标识位,允许用户对所述待控音箱进行比如删除、拆组、编组、立体声对设置等操作。由于状态标识位已复位,移动终端可以响应用户的其他形式的手势操作,从而实现对音箱列表界面的解锁。本发明实施例通过结合预设的第一手势操作和待控音箱的状态信息来进行加锁和解锁操作,既避免了误操作也简化了用户的解锁方式,极大地方便了用户,提升了用户的体验感。In this embodiment of the present invention, the second update module 27 controls the mobile terminal to update the speaker list interface according to the updated speaker list, including removing the lock mark on the icon of the speaker to be controlled, and at the same time resetting the currently pending speaker list. The status flag of the control speaker allows the user to perform operations such as deletion, disassembly, grouping, stereo pair setting, etc. on the speaker to be controlled. Since the status flag has been reset, the mobile terminal can respond to other forms of gesture operations of the user, thereby unlocking the speaker list interface. The embodiment of the present invention performs locking and unlocking operations by combining the preset first gesture operation and the state information of the speaker to be controlled, which not only avoids misoperation, but also simplifies the user's unlocking method, which greatly facilitates the user and improves the user experience. sense of experience.

进一步地,所述移动终端还包括:Further, the mobile terminal also includes:

第三控制模块28,用于当待控音箱的状态信息为非锁定状态时,若获取到用户在所述音箱列表界面上对待控音箱的图标的第二手势操作时,生成网络重置消息,将所述网络重置消息发送至所述主控音箱,以使得所述主控音箱将所述网络重置消息转发至所述待控音箱并将所述待控音箱从音箱列表中移除;The third control module 28 is configured to generate a network reset message when the state information of the speaker to be controlled is in an unlocked state, if the user's second gesture operation on the icon of the speaker to be controlled on the speaker list interface is obtained. , send the network reset message to the master speaker, so that the master speaker forwards the network reset message to the speaker to be controlled and removes the speaker to be controlled from the speaker list ;

第三接收模块29,用于接收所述主控音箱返回的更新后的音箱列表;The third receiving module 29 is used to receive the updated speaker list returned by the master speaker;

第三更新模块210,用于根据所述音箱列表将所述待控音箱的图标从所述音箱列表界面中删除。The third updating module 210 is configured to delete the icon of the speaker to be controlled from the speaker list interface according to the speaker list.

在本发明实施例中,所述第三更新模块210控制移动终端根据更新后的音箱列表更新所述音箱列表界面,即将所述待控音箱的图标从所述音箱列表界面中删除,从而简化了对音箱设备的删除操作,无需逐层翻页,只需在音效列表界面上输入预设的第二手势操作即可,简化了用户的删除操作,极大地方便了用户,提升了用户的体验感。在删除待控音箱之后,所述第三更新模块210还可以控制移动终端将音箱列表界面中该被删除的待控音箱下面的音箱向上移动,以填补该被删除的待控音箱的空缺位置。In the embodiment of the present invention, the third update module 210 controls the mobile terminal to update the speaker list interface according to the updated speaker list, that is, to delete the icon of the speaker to be controlled from the speaker list interface, thereby simplifying the For the deletion operation of the speaker device, there is no need to turn the pages layer by layer, just enter the preset second gesture operation on the sound effect list interface, which simplifies the user's deletion operation, greatly facilitates the user, and improves the user's experience. sense. After the speaker to be controlled is deleted, the third update module 210 can also control the mobile terminal to move the speaker below the deleted speaker to be controlled upward in the speaker list interface to fill the vacant position of the deleted speaker to be controlled.

进一步地,所述第一手势操作为向左滑动操作,所述第二手势操作为向右滑动操作;或者,Further, the first gesture operation is a leftward sliding operation, and the second gesture operation is a rightward sliding operation; or,

所述第一手势操作为向右滑动操作,所述第二手势操作为向左滑动操作。The first gesture operation is a rightward sliding operation, and the second gesture operation is a leftward sliding operation.

需要说明的是,本发明实施例中的移动终端可以用于实现上述方法实施例中的全部技术方案,其各个功能模块的功能可以根据上述方法实施例中的方法具体实现,其具体实现过程可参照上述实例中的相关描述,此处不再赘述。It should be noted that the mobile terminal in the embodiments of the present invention can be used to implement all the technical solutions in the above method embodiments, the functions of each functional module can be specifically implemented according to the methods in the above method embodiments, and the specific implementation process can be Referring to the relevant descriptions in the above examples, details are not repeated here.

参见图7,是本发明第五实施例提供的移动终端的示意性框图。如图所示的该移动终端可以包括:一个或多个处理器701(图中仅示出一个);一个或多个输入设备702(图中仅示出一个),一个或多个输出设备703(图中仅示出一个)、存储器704。上述处理器701、输入设备702、输出设备703、存储器704通过总线706连接。存储器704用于存储指令,处理器701用于执行存储器704存储的指令。其中:Referring to FIG. 7 , it is a schematic block diagram of a mobile terminal provided by a fifth embodiment of the present invention. As shown in the figure, the mobile terminal may include: one or more processors 701 (only one is shown in the figure); one or more input devices 702 (only one is shown in the figure), one or more output devices 703 (only one is shown in the figure), memory 704 . The above-mentioned processor 701 , input device 702 , output device 703 , and memory 704 are connected through a bus 706 . The memory 704 is used to store instructions, and the processor 701 is used to execute the instructions stored in the memory 704 . in:

可选地,所述处理器701用于:Optionally, the processor 701 is used for:

当获取到用户在音箱列表界面上对待控音箱的图标的第一手势操作时,获取所述待控音箱的状态信息;若所述状态信息为非锁定状态时,生成锁定消息,并将所述锁定消息发送至主控音箱,以使得所述主控音箱将所述锁定消息转发至所述待控音箱并更新音箱列表;接收所述主控音箱返回的更新后的音箱列表;根据所述音箱列表在所述待控音箱的图标上添加锁定标识,并置位所述待控音箱的状态标识位,以禁止对所述待控音箱的操作。When the user's first gesture operation on the icon of the speaker to be controlled on the speaker list interface is obtained, the state information of the speaker to be controlled is obtained; if the state information is an unlocked state, a lock message is generated, and the The lock message is sent to the master speaker, so that the master speaker forwards the lock message to the speaker to be controlled and updates the speaker list; receives the updated speaker list returned by the master speaker; according to the speaker In the list, a lock mark is added to the icon of the speaker to be controlled, and the status flag of the speaker to be controlled is set to prohibit the operation of the speaker to be controlled.

可选地,所述处理器701还用于:Optionally, the processor 701 is further configured to:

若所述状态信息为锁定状态时,生成解锁消息,并将所述解锁消息发送至主控音箱以使得所述主控音箱将所述解锁消息转发至所述待控音箱并更新音箱列表;接收所述主控音箱返回的更新后的音箱列表;根据所述音箱列表删除所述待控音箱的图标上的锁定标识,并复位所述待控音箱的状态标识位,以允许对所述待控音箱的操作。If the state information is in a locked state, generate an unlocking message, and send the unlocking message to the master speaker so that the master speaker forwards the unlocking message to the speaker to be controlled and updates the speaker list; receiving The updated speaker list returned by the main control speaker; delete the lock mark on the icon of the speaker to be controlled according to the speaker list, and reset the status flag of the speaker to be controlled to allow the control of the speaker to be controlled. Operation of the speaker.

可选地,所述处理器701还用于:Optionally, the processor 701 is further configured to:

当待控音箱的状态信息为非锁定状态时,若获取到用户在所述音箱列表界面上对待控音箱的图标的第二手势操作时,生成网络重置消息;将所述网络重置消息发送至所述主控音箱,以使得所述主控音箱将所述网络重置消息转发至所述待控音箱并将所述待控音箱从音箱列表中移除;接收所述主控音箱返回的更新后的音箱列表;根据所述音箱列表将所述待控音箱的图标从所述音箱列表界面中删除。When the state information of the speaker to be controlled is an unlocked state, if a second gesture operation by the user on the icon of the speaker to be controlled on the speaker list interface is obtained, a network reset message is generated; Send to the master speaker, so that the master speaker forwards the network reset message to the speaker to be controlled and removes the speaker to be controlled from the speaker list; receive the master speaker to return The updated speaker list; delete the icon of the speaker to be controlled from the speaker list interface according to the speaker list.

应当理解,在本发明实施例中,所称处理器701可以是中央处理单元(CentralProcessing Unit,CPU)和/或图形处理器(Graphic Processing Unit,GPU),也可以在此基础上结合其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。It should be understood that, in this embodiment of the present invention, the so-called processor 701 may be a central processing unit (Central Processing Unit, CPU) and/or a graphics processing unit (Graphic Processing Unit, GPU), and may also be combined with other general processing units on this basis. controller, Digital Signal Processor (DSP), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or Transistor logic devices, discrete hardware components, etc.

输入设备702可以包括触控板、指纹采传感器(用于采集用户的指纹信息和指纹的方向信息)、麦克风、通信模块(比如Wi-Fi模块、2G/3G/4G网络模块)、物理按键等。The input device 702 may include a touchpad, a fingerprint sensor (for collecting the user's fingerprint information and fingerprint direction information), a microphone, a communication module (such as a Wi-Fi module, a 2G/3G/4G network module), physical buttons, and the like .

输出设备703可以包括显示器(LCD等)、扬声器等。其中,显示器可用于显示由用户输入的信息或提供给用户的信息等。显示器可包括显示面板,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板。进一步的,上述触摸屏可覆盖在显示器上,当触摸屏检测到在其上或附近的触摸操作后,传送给处理器701以确定触摸事件的类型,随后处理器701根据触摸事件的类型在显示器上提供相应的视觉输出。The output device 703 may include a display (LCD, etc.), speakers, and the like. Among them, the display can be used to display information input by the user or information provided to the user, and the like. The display may include a display panel, and optionally, the display panel may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like. Further, the above-mentioned touch screen can be covered on the display, and when the touch screen detects a touch operation on or near it, it is transmitted to the processor 701 to determine the type of the touch event, and then the processor 701 provides on the display according to the type of the touch event. Corresponding visual output.

具体实现中,本发明实施例中所描述的处理器701、输入设备702、输出设备703、存储器704可执行本发明实施例提供的音箱的控制方法的实施例中所描述的实现方式,在此不再赘述。In specific implementation, the processor 701 , the input device 702 , the output device 703 , and the memory 704 described in the embodiments of the present invention can execute the implementations described in the embodiments of the sound box control method provided by the embodiments of the present invention. No longer.

图8是本发明第六实施例提供的一种移动终端的示意性框图,该移动终端可以用于实施上述实施例中提供的控制方法。FIG. 8 is a schematic block diagram of a mobile terminal according to a sixth embodiment of the present invention, and the mobile terminal can be used to implement the control methods provided in the above embodiments.

如图8所示,移动终端1200可以包括RF(Radio Frequency,射频)电路110、包括有一个或一个以上(图中仅示出一个)计算机可读存储介质的存储器120、输入单元130、显示单元140、传感器150、音频电路160、传输模块170、包括有一个或者一个以上(图中仅示出一个)处理核心的处理器180以及电源190等部件。本领域技术人员可以理解,图8中示出的移动终端1200结构并不构成对移动终端1200的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:As shown in FIG. 8 , the mobile terminal 1200 may include an RF (Radio Frequency, radio frequency) circuit 110, a memory 120 including one or more (only one is shown in the figure) computer-readable storage medium, an input unit 130, and a display unit 140 , the sensor 150 , the audio circuit 160 , the transmission module 170 , the processor 180 including one or more (only one is shown in the figure) processing core, and the power supply 190 and other components. Those skilled in the art can understand that the structure of the mobile terminal 1200 shown in FIG. 8 does not constitute a limitation on the mobile terminal 1200, and may include more or less components than the one shown, or combine some components, or different components layout. in:

RF电路110用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯。RF电路110可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。RF电路110可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其他设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。上述的无线网络可以使用各种通信标准、协议及技术,包括但并不限于全球移动通信系统(Global System for Mobile Communication,GSM)、增强型移动通信技术(Enhanced DataGSM Environment,EDGE),宽带码分多址技术(wideband code division multipleaccess,W-CDMA),码分多址技术(Code division access,CDMA)、时分多址技术(timedivision multiple access,TDMA),无线保真技术(Wireless,Fidelity,WiFi)(如美国电气和电子工程师协会标准IEEE 802.11a,IEEE 802.11b,IEEE802.11g和/或IEEE802.11n)、网络电话(Voice over internet protocal,VoIP)、全球微波互联接入(Worldwide Interoperability for Microwave Access,Wi-Max)、其他用于邮件、即时通讯及短消息的协议,以及任何其他合适的通讯协议,甚至可包括那些当前仍未被开发出来的协议。The RF circuit 110 is used for receiving and sending electromagnetic waves, realizing mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. RF circuitry 110 may include various existing circuit elements for performing these functions, eg, antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, subscriber identity module (SIM) cards, memory, and the like. The RF circuit 110 may communicate with various networks such as the Internet, an intranet, a wireless network, or with other devices over a wireless network. The aforementioned wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network. The above-mentioned wireless network can use various communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced DataGSM Environment (EDGE), Broadband Code Division Multiple access technology (wideband code division multiple access, W-CDMA), code division multiple access technology (Code division multiple access, CDMA), time division multiple access technology (time division multiple access, TDMA), wireless fidelity technology (Wireless, Fidelity, WiFi) (such as IEEE 802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE802.11n), Internet telephony (Voice over internet protocal, VoIP), Worldwide Interoperability for Microwave Access , Wi-Max), other protocols for mail, instant messaging, and short messaging, as well as any other suitable communication protocols, even those that have not yet been developed.

存储器120可用于存储软件程序以及模块,如上述实施例中方法对应的程序指令/模块,处理器180通过运行存储在存储器120内的软件程序以及模块,从而执行各种功能应用以及数据处理,即根据用户在音箱列表界面上的手势操作以及待控音箱的状态对音箱进行锁定及解锁、删除的操作。存储器120可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器120可进一步包括相对于处理器180远程设置的存储器,这些远程存储器可以通过网络连接至移动终端1200。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 120 can be used to store software programs and modules, such as program instructions/modules corresponding to the methods in the above-mentioned embodiments. The processor 180 executes various functional applications and data processing by running the software programs and modules stored in the memory 120, that is, According to the user's gesture operation on the speaker list interface and the status of the speaker to be controlled, the speaker is locked, unlocked, and deleted. Memory 120 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 120 may further include memory disposed remotely with respect to the processor 180, and these remote memories may be connected to the mobile terminal 1200 through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

输入单元130可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,输入单元130可包括触敏表面131以及其他输入设备132。触敏表面131,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面131上或在触敏表面131附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面131可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器180,并能接收处理器180发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面131。除了触敏表面131,输入单元130还可以包括其他输入设备132。具体地,其他输入设备132可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 130 may be used to receive input numerical or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132 . Touch-sensitive surface 131, also known as a touch display or trackpad, can collect user touch operations on or near it (such as a user using a finger, stylus, etc., any suitable object or accessory on or on touch-sensitive surface 131). operation near the touch-sensitive surface 131 ), and drive the corresponding connection device according to a preset program. Optionally, the touch-sensitive surface 131 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. To the processor 180, and can receive the commands sent by the processor 180 and execute them. Additionally, the touch-sensitive surface 131 may be implemented using resistive, capacitive, infrared, and surface acoustic wave types. In addition to the touch-sensitive surface 131 , the input unit 130 may also include other input devices 132 . Specifically, other input devices 132 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.

显示单元140可用于显示由用户输入的信息或提供给用户的信息以及移动终端1200的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元140可包括显示面板141,可选的,可以采用LCD(Liquid CrystalDisplay,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板141。进一步的,触敏表面131可覆盖显示面板141,当触敏表面131检测到在其上或附近的触摸操作后,传送给处理器180以确定触摸事件的类型,随后处理器180根据触摸事件的类型在显示面板141上提供相应的视觉输出。虽然在图8中,触敏表面131与显示面板141是作为两个独立的部件来实现输入和输出功能,但是在某些实施例中,可以将触敏表面131与显示面板141集成而实现输入和输出功能。The display unit 140 may be used to display information input by or provided to the user and various graphical user interfaces of the mobile terminal 1200, which may be composed of graphics, text, icons, videos, and any combination thereof. The display unit 140 may include a display panel 141. Optionally, the display panel 141 may be configured in the form of an LCD (Liquid Crystal Display, liquid crystal display), an OLED (Organic Light-Emitting Diode, organic light emitting diode), and the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when the touch-sensitive surface 131 detects a touch operation on or near it, it is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 determines the type of the touch event according to the touch event. Type provides corresponding visual output on display panel 141 . Although in FIG. 8, the touch-sensitive surface 131 and the display panel 141 are implemented as two separate components to realize the input and output functions, in some embodiments, the touch-sensitive surface 131 and the display panel 141 may be integrated to realize the input and output functions.

移动终端1200还可包括至少一种传感器150,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板141的亮度,接近传感器可在移动终端1200移动到耳边时,关闭显示面板141和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于检测倾斜角度,以及识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于移动终端1200还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The mobile terminal 1200 may further include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 141 when the mobile terminal 1200 is moved to the ear and/or backlight. As a kind of motion sensor, the gravitational acceleration sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used to detect the tilt angle and identify the application of mobile phone attitude (such as Horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile terminal 1200, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. can also be configured Other sensors will not be described here.

音频电路160、扬声器161,传声器162可提供用户与移动终端1200之间的音频接口。音频电路160可将接收到的音频数据转换后的电信号,传输到扬声器161,由扬声器161转换为声音信号输出;另一方面,传声器162将收集的声音信号转换为电信号,由音频电路160接收后转换为音频数据,再将音频数据输出处理器180处理后,经RF电路110以发送给比如另一终端,或者将音频数据输出至存储器120以便进一步处理。音频电路160还可能包括耳塞插孔,以提供外设耳机与移动终端1200的通信。The audio circuit 160 , the speaker 161 , and the microphone 162 may provide an audio interface between the user and the mobile terminal 1200 . The audio circuit 160 can transmit the received audio data converted electrical signal to the speaker 161, and the speaker 161 converts it into a sound signal for output; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, which is converted by the audio circuit 160 After receiving, it is converted into audio data, and then the audio data is output to the processor 180 for processing, and then sent to, for example, another terminal through the RF circuit 110, or the audio data is output to the memory 120 for further processing. The audio circuit 160 may also include an earphone jack to provide communication between peripheral headphones and the mobile terminal 1200 .

移动终端1200通过传输模块170(例如WiFi模块)可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图8示出了传输模块170,但是可以理解的是,其并不属于移动终端1200的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。The mobile terminal 1200 can help the user to send and receive emails, browse web pages, access streaming media, etc. through the transmission module 170 (eg, a WiFi module), and it provides the user with wireless broadband Internet access. Although FIG. 8 shows the transmission module 170, it can be understood that it is not a necessary component of the mobile terminal 1200, and can be completely omitted as required without changing the essence of the invention.

处理器180是移动终端1200的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行移动终端1200的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器180可包括一个或多个处理核心;优选的,处理器180可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器180中。The processor 180 is the control center of the mobile terminal 1200, uses various interfaces and lines to connect various parts of the entire mobile phone, runs or executes the software programs and/or modules stored in the memory 120, and calls the data stored in the memory 120. , perform various functions of the mobile terminal 1200 and process data, so as to monitor the mobile phone as a whole. Optionally, the processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc. , the modem processor mainly deals with wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 180 .

移动终端1200还包括给各个部件供电的电源190(比如电池),优选的,电源可以通过电源管理系统与处理器180逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源190还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The mobile terminal 1200 also includes a power supply 190 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 180 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system. . Power supply 190 may also include one or more DC or AC power sources, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and any other components.

尽管未示出,移动终端1200还可以包括摄像头、蓝牙模块等,在此不再赘述。具体在本实施例中,移动终端的显示单元是触摸屏显示器,移动终端还包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行述一个或者一个以上程序包含用于进行以下操作的指令:Although not shown, the mobile terminal 1200 may further include a camera, a Bluetooth module, and the like, which will not be repeated here. Specifically in this embodiment, the display unit of the mobile terminal is a touch screen display, the mobile terminal further includes a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to be displayed by one or more programs. Execution of the one or more programs described above by the above processor includes instructions for:

当获取到用户在音箱列表界面上对待控音箱的图标的第一手势操作时,获取所述待控音箱的状态信息;When acquiring the first gesture operation of the icon of the speaker to be controlled by the user on the speaker list interface, acquire the status information of the speaker to be controlled;

若所述状态信息为非锁定状态时,生成锁定消息,并将所述锁定消息发送至主控音箱,以使得所述主控音箱将所述锁定消息转发至所述待控音箱并更新音箱列表;If the state information is in an unlocked state, a lock message is generated, and the lock message is sent to the master control speaker, so that the master control speaker forwards the lock message to the to-be-controlled speaker and updates the speaker list ;

接收所述主控音箱返回的更新后的音箱列表;Receive the updated speaker list returned by the master speaker;

根据所述音箱列表在所述待控音箱的图标上添加锁定标识,并置位所述待控音箱的状态标识位,以禁止对所述待控音箱的操作。According to the speaker list, a lock mark is added to the icon of the speaker to be controlled, and the status flag of the speaker to be controlled is set to prohibit the operation of the speaker to be controlled.

假设上述为第一种可能的实施方式,则在第一种可能的实施方式作为基础而提供的第二种可能的实施方式中,所述移动终端的存储器中,还包含用于执行以下操作的指令:Assuming that the above is the first possible implementation manner, in the second possible implementation manner provided on the basis of the first possible implementation manner, the memory of the mobile terminal further includes a memory for performing the following operations instruction:

若所述状态信息为锁定状态时,生成解锁消息,并将所述解锁消息发送至主控音箱以使得所述主控音箱将所述解锁消息转发至所述待控音箱并更新音箱列表;If the state information is in a locked state, generate an unlocking message, and send the unlocking message to the master speaker so that the master speaker forwards the unlocking message to the speaker to be controlled and updates the speaker list;

接收所述主控音箱返回的更新后的音箱列表;Receive the updated speaker list returned by the master speaker;

根据所述音箱列表删除所述待控音箱的图标上的锁定标识,并复位所述待控音箱的状态标识位,以允许对所述待控音箱的操作。Delete the lock mark on the icon of the sound box to be controlled according to the sound box list, and reset the status flag of the sound box to be controlled to allow the operation of the sound box to be controlled.

在第二种可能的实施方式作为基础而提供的第三种可能的实施方式中,所述移动终端的存储器中,还包含用于执行以下操作的指令:In a third possible implementation manner provided on the basis of the second possible implementation manner, the memory of the mobile terminal further includes instructions for performing the following operations:

当待控音箱的状态信息为非锁定状态时,若获取到用户在所述音箱列表界面上对待控音箱的图标的第二手势操作时,生成网络重置消息;When the state information of the speaker to be controlled is an unlocked state, if a second gesture operation by the user on the icon of the speaker to be controlled on the speaker list interface is obtained, a network reset message is generated;

将所述网络重置消息发送至所述主控音箱,以使得所述主控音箱将所述网络重置消息转发至所述待控音箱并将所述待控音箱从音箱列表中移除;sending the network reset message to the master speaker, so that the master speaker forwards the network reset message to the speaker to be controlled and removes the speaker to be controlled from the speaker list;

接收所述主控音箱返回的更新后的音箱列表;Receive the updated speaker list returned by the master speaker;

根据所述音箱列表将所述待控音箱的图标从所述音箱列表界面中删除。The icon of the speaker to be controlled is deleted from the speaker list interface according to the speaker list.

在第三种可能的实施方式作为基础而提供的第四种可能的实施方式中,所述移动终端的存储器中,还包含用于执行以下操作的指令:In a fourth possible implementation manner provided on the basis of the third possible implementation manner, the memory of the mobile terminal further includes instructions for performing the following operations:

所述第一手势操作为向左滑动操作,所述第二手势操作为向右滑动操作;或者,The first gesture operation is a leftward sliding operation, and the second gesture operation is a rightward sliding operation; or,

所述第一手势操作为向右滑动操作,所述第二手势操作为向左滑动操作。The first gesture operation is a rightward sliding operation, and the second gesture operation is a leftward sliding operation.

综上所述,本发明实施例通过获取用户在音箱列表界面上对待控音箱的图标的手势操作;若所述手势操作为第一手势操作时,获取所述待控音箱的状态信息;若所述状态信息为非锁定状态时,生成锁定消息,并将所述锁定消息发送至主控音箱,以使得所述主控音箱将所述锁定消息转发至所述待控音箱并更新音箱列表;然后接收所述主控音箱返回的音箱列表,根据所述音箱列表在所述待控音箱的图标上添加锁定标识,并置位所述待控音箱的状态标识位,以禁止对所述待控音箱的操作,从而实现对音箱列表界面的锁定,解决了现有技术中音箱列表界面因用户的误触发而产生误操作的问题,提升了用户的体验感。To sum up, the embodiment of the present invention obtains the user's gesture operation on the icon of the speaker to be controlled on the speaker list interface; if the gesture operation is the first gesture operation, the state information of the speaker to be controlled is acquired; When the state information is an unlocked state, a lock message is generated, and the lock message is sent to the master control speaker, so that the master control speaker forwards the lock message to the to-be-controlled speaker and updates the speaker list; then Receive the speaker list returned by the master speaker, add a lock mark on the icon of the speaker to be controlled according to the speaker list, and set the status flag of the speaker to be controlled to prohibit the speaker to be controlled Therefore, the speaker list interface is locked, which solves the problem of misoperation of the speaker list interface due to the user's false triggering in the prior art, and improves the user's experience.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的模块和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the modules and units described above, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的方法及移动终端,可以通过其它的方式实现。例如,以上所描述的实施例仅仅是示意性的,例如,所述模块、单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,模块或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed method and mobile terminal may be implemented in other manners. For example, the above-described embodiments are only illustrative. For example, the division of modules and units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined. Or it can be integrated into another system, or some features can be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of modules or units, and may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本发明各个实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元、模块单独物理存在,也可以两个或两个以上单元、模块集成在一个单元中。In addition, each functional unit and module in each embodiment of the present invention may be integrated in one processing unit, or each unit and module may exist physically alone, or two or more units and modules may be integrated in one unit .

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present invention can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: U disk, removable hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes .

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited to this. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention. should be included within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (12)

1.一种音箱的控制方法,其特征在于,所述控制方法包括:1. a control method of a sound box, is characterized in that, described control method comprises: 当获取到用户在音箱列表界面上对待控音箱的图标的第一手势操作时,获取所述待控音箱的状态信息;When acquiring the first gesture operation of the icon of the speaker to be controlled by the user on the speaker list interface, acquire the status information of the speaker to be controlled; 若所述状态信息为非锁定状态时,生成锁定消息,并将所述锁定消息发送至主控音箱,以使得所述主控音箱将所述锁定消息转发至所述待控音箱并更新音箱列表;If the state information is in an unlocked state, a lock message is generated, and the lock message is sent to the master control speaker, so that the master control speaker forwards the lock message to the to-be-controlled speaker and updates the speaker list ; 接收所述主控音箱返回的更新后的音箱列表;Receive the updated speaker list returned by the master speaker; 根据所述音箱列表在所述待控音箱的图标上添加锁定标识,并置位所述待控音箱的状态标识位,以禁止对所述待控音箱的操作;其中,所述禁止对所述待控音箱的操作,包括:禁止用户对所述待控音箱进行删除、拆组、编组、立体声对设置的操作。According to the speaker list, a lock mark is added to the icon of the speaker to be controlled, and the status flag of the speaker to be controlled is set to prohibit the operation of the speaker to be controlled; The operation of the speaker to be controlled includes: prohibiting the user from performing operations on the speaker to be controlled to delete, ungroup, group, and set stereo pairs. 2.如权利要求1所述的音箱的控制方法,其特征在于,所述控制方法还包括:2. The control method of the sound box as claimed in claim 1, wherein the control method further comprises: 若所述状态信息为锁定状态时,生成解锁消息,并将所述解锁消息发送至主控音箱以使得所述主控音箱将所述解锁消息转发至所述待控音箱并更新音箱列表;If the state information is in a locked state, generate an unlocking message, and send the unlocking message to the master speaker so that the master speaker forwards the unlocking message to the speaker to be controlled and updates the speaker list; 接收所述主控音箱返回的更新后的音箱列表;Receive the updated speaker list returned by the master speaker; 根据所述音箱列表删除所述待控音箱的图标上的锁定标识,并复位所述待控音箱的状态标识位,以允许对所述待控音箱的操作。Delete the lock mark on the icon of the sound box to be controlled according to the sound box list, and reset the status flag of the sound box to be controlled to allow the operation of the sound box to be controlled. 3.如权利要求2所述的音箱的控制方法,其特征在于,所述控制方法还包括:3. The control method of sound box as claimed in claim 2, is characterized in that, described control method also comprises: 当待控音箱的状态信息为非锁定状态时,若获取到用户在所述音箱列表界面上对待控音箱的图标的第二手势操作时,生成网络重置消息;When the state information of the speaker to be controlled is an unlocked state, if a second gesture operation by the user on the icon of the speaker to be controlled on the speaker list interface is obtained, a network reset message is generated; 将所述网络重置消息发送至所述主控音箱,以使得所述主控音箱将所述网络重置消息转发至所述待控音箱并将所述待控音箱从音箱列表中移除;sending the network reset message to the master speaker, so that the master speaker forwards the network reset message to the speaker to be controlled and removes the speaker to be controlled from the speaker list; 接收所述主控音箱返回的更新后的音箱列表;Receive the updated speaker list returned by the master speaker; 根据所述音箱列表将所述待控音箱的图标从所述音箱列表界面中删除。The icon of the speaker to be controlled is deleted from the speaker list interface according to the speaker list. 4.如权利要求3所述的音箱的控制方法,其特征在于,所述第一手势操作为向左滑动操作,所述第二手势操作为向右滑动操作;或者,4. The method for controlling a sound box according to claim 3, wherein the first gesture operation is a leftward sliding operation, and the second gesture operation is a rightward sliding operation; or, 所述第一手势操作为向右滑动操作,所述第二手势操作为向左滑动操作。The first gesture operation is a rightward sliding operation, and the second gesture operation is a leftward sliding operation. 5.一种移动终端,其特征在于,所述移动终端包括:5. A mobile terminal, wherein the mobile terminal comprises: 获取模块,用于当获取到用户在音箱列表界面上对待控音箱的图标的第一手势操作时,获取所述待控音箱的状态信息;an acquisition module, configured to acquire the status information of the speaker to be controlled when the user's first gesture operation on the icon of the speaker to be controlled on the speaker list interface is acquired; 第一控制模块,用于若所述状态信息为非锁定状态时,生成锁定消息,并将所述锁定消息发送至主控音箱,以使得所述主控音箱将所述锁定消息转发至所述待控音箱并更新音箱列表;The first control module is used to generate a lock message if the state information is in an unlocked state, and send the lock message to the main control speaker, so that the main control speaker forwards the lock message to the To control the speaker and update the speaker list; 第一接收模块,用于接收所述主控音箱返回的更新后的音箱列表;a first receiving module for receiving the updated speaker list returned by the master speaker; 第一更新模块,用于根据所述音箱列表在所述待控音箱的图标上添加锁定标识,并置位所述待控音箱的状态标识位,以禁止对所述待控音箱的操作;其中,所述禁止对所述待控音箱的操作,包括:禁止用户对所述待控音箱进行删除、拆组、编组、立体声对设置的操作。The first update module is used to add a lock mark on the icon of the speaker to be controlled according to the speaker list, and position the status flag of the speaker to be controlled to prohibit the operation of the speaker to be controlled; wherein , the prohibiting the operation of the sound box to be controlled includes: prohibiting the user from performing operations on the sound box to be controlled to delete, disassemble, group, and set stereo pairs. 6.如权利要求5所述的移动终端,其特征在于,所述移动终端还包括:6. The mobile terminal of claim 5, wherein the mobile terminal further comprises: 第二控制模块,用于若所述状态信息为锁定状态时,生成解锁消息,并将所述解锁消息发送至主控音箱以使得所述主控音箱将所述解锁消息转发至所述待控音箱并更新音箱列表;a second control module, configured to generate an unlocking message if the state information is in a locked state, and send the unlocking message to the master control speaker, so that the master control speaker forwards the unlocking message to the to-be-controlled speaker Speakers and update the speaker list; 第二接收模块,用于接收所述主控音箱返回的更新后的音箱列表;The second receiving module is used to receive the updated speaker list returned by the master speaker; 第二更新模块,用于根据所述音箱列表删除所述待控音箱的图标上的锁定标识,并复位所述待控音箱的状态标识位,以允许对所述待控音箱的操作。The second update module is configured to delete the lock mark on the icon of the sound box to be controlled according to the sound box list, and reset the status flag of the sound box to be controlled to allow the operation of the sound box to be controlled. 7.如权利要求6所述的移动终端,其特征在于,所述移动终端还包括:7. The mobile terminal of claim 6, wherein the mobile terminal further comprises: 第三控制模块,用于当待控音箱的状态信息为非锁定状态时,若获取到用户在所述音箱列表界面上对待控音箱的图标的第二手势操作时,生成网络重置消息,将所述网络重置消息发送至所述主控音箱,以使得所述主控音箱将所述网络重置消息转发至所述待控音箱并将所述待控音箱从音箱列表中移除;The third control module is configured to generate a network reset message when the state information of the speaker to be controlled is in an unlocked state, if the user's second gesture operation on the icon of the speaker to be controlled on the speaker list interface is obtained, sending the network reset message to the master speaker, so that the master speaker forwards the network reset message to the speaker to be controlled and removes the speaker to be controlled from the speaker list; 第三接收模块,用于接收所述主控音箱返回的更新后的音箱列表;The third receiving module is used to receive the updated speaker list returned by the master speaker; 第三更新模块,用于根据所述音箱列表将所述待控音箱的图标从所述音箱列表界面中删除。The third update module is configured to delete the icon of the speaker to be controlled from the speaker list interface according to the speaker list. 8.如权利要求7所述的移动终端,其特征在于,所述第一手势操作为向左滑动操作,所述第二手势操作为向右滑动操作;或者,8. The mobile terminal according to claim 7, wherein the first gesture operation is a leftward sliding operation, and the second gesture operation is a rightward sliding operation; or, 所述第一手势操作为向右滑动操作,所述第二手势操作为向左滑动操作。The first gesture operation is a rightward sliding operation, and the second gesture operation is a leftward sliding operation. 9.一种移动终端,其特征在于,所述移动终端包括:9. A mobile terminal, wherein the mobile terminal comprises: 处理器,用于当获取到用户在音箱列表界面上对待控音箱的图标的第一手势操作时,获取所述待控音箱的状态信息;若所述状态信息为非锁定状态时,生成锁定消息,并将所述锁定消息发送至主控音箱,以使得所述主控音箱将所述锁定消息转发至所述待控音箱并更新音箱列表;接收所述主控音箱返回的更新后的音箱列表;根据所述音箱列表在所述待控音箱的图标上添加锁定标识,并置位所述待控音箱的状态标识位,以禁止对所述待控音箱的操作;其中,所述禁止对所述待控音箱的操作,包括:禁止用户对所述待控音箱进行删除、拆组、编组、立体声对设置的操作。The processor is configured to acquire the state information of the speaker to be controlled when the user's first gesture operation on the icon of the speaker to be controlled on the speaker list interface is obtained; if the state information is an unlocked state, generate a locking message , and send the lock message to the master speaker, so that the master speaker forwards the lock message to the speaker to be controlled and updates the speaker list; receives the updated speaker list returned by the master speaker ; According to the sound box list, add a lock mark on the icon of the sound box to be controlled, and position the status flag of the sound box to be controlled, to prohibit the operation of the sound box to be controlled; wherein, the prohibition to all The operation of the speaker to be controlled includes: prohibiting the user from performing operations of deleting, disassembling, grouping, and stereo pair setting on the speaker to be controlled. 10.如权利要求9所述的移动终端,其特征在于,所述处理器还用于:10. The mobile terminal of claim 9, wherein the processor is further configured to: 若所述状态信息为锁定状态时,生成解锁消息,并将所述解锁消息发送至主控音箱以使得所述主控音箱将所述解锁消息转发至所述待控音箱并更新音箱列表;接收所述主控音箱返回的更新后的音箱列表;根据所述音箱列表删除所述待控音箱的图标上的锁定标识,并复位所述待控音箱的状态标识位,以允许对所述待控音箱的操作。If the state information is in a locked state, generate an unlocking message, and send the unlocking message to the master speaker so that the master speaker forwards the unlocking message to the speaker to be controlled and updates the speaker list; receiving The updated speaker list returned by the main control speaker; delete the lock mark on the icon of the speaker to be controlled according to the speaker list, and reset the status flag of the speaker to be controlled to allow the control of the speaker to be controlled. Operation of the speaker. 11.如权利要求10所述的移动终端,其特征在于,所述处理器还用于:11. The mobile terminal of claim 10, wherein the processor is further configured to: 当待控音箱的状态信息为非锁定状态时,若获取到用户在所述音箱列表界面上对待控音箱的图标的第二手势操作时,生成网络重置消息;将所述网络重置消息发送至所述主控音箱,以使得所述主控音箱将所述网络重置消息转发至所述待控音箱并将所述待控音箱从音箱列表中移除;接收所述主控音箱返回的更新后的音箱列表;根据所述音箱列表将所述待控音箱的图标从所述音箱列表界面中删除。When the state information of the speaker to be controlled is an unlocked state, if a second gesture operation by the user on the icon of the speaker to be controlled on the speaker list interface is obtained, a network reset message is generated; Send to the master speaker, so that the master speaker forwards the network reset message to the speaker to be controlled and removes the speaker to be controlled from the speaker list; receive the master speaker to return The updated speaker list; delete the icon of the speaker to be controlled from the speaker list interface according to the speaker list. 12.如权利要求11所述的移动终端,其特征在于,所述第一手势操作为向左滑动操作,所述第二手势操作为向右滑动操作;或者,12 . The mobile terminal according to claim 11 , wherein the first gesture operation is a leftward sliding operation, and the second gesture operation is a rightward sliding operation; or, 12 . 所述第一手势操作为向右滑动操作,所述第二手势操作为向左滑动操作。The first gesture operation is a rightward sliding operation, and the second gesture operation is a leftward sliding operation.
CN201611070999.2A 2016-11-28 2016-11-28 Sound box control method and mobile terminal Active CN106775269B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611070999.2A CN106775269B (en) 2016-11-28 2016-11-28 Sound box control method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611070999.2A CN106775269B (en) 2016-11-28 2016-11-28 Sound box control method and mobile terminal

Publications (2)

Publication Number Publication Date
CN106775269A CN106775269A (en) 2017-05-31
CN106775269B true CN106775269B (en) 2019-09-24

Family

ID=58905275

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611070999.2A Active CN106775269B (en) 2016-11-28 2016-11-28 Sound box control method and mobile terminal

Country Status (1)

Country Link
CN (1) CN106775269B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107885424B (en) * 2017-12-05 2021-05-04 北京小米移动软件有限公司 Method and device for updating display sequence of conversation options

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8234395B2 (en) * 2003-07-28 2012-07-31 Sonos, Inc. System and method for synchronizing operations among a plurality of independently clocked digital data processing devices
US20050228693A1 (en) * 2004-04-09 2005-10-13 Webb James D Data exchange web services for medical device systems
US9263034B1 (en) * 2010-07-13 2016-02-16 Google Inc. Adapting enhanced acoustic models
KR102037416B1 (en) * 2012-12-17 2019-10-28 삼성전자주식회사 Method for managing of external devices, method for operating of an external device, host device, management server, and the external device
CN104636047B (en) * 2013-11-07 2019-01-22 腾讯科技(深圳)有限公司 The method, apparatus and touch screen terminal operated to the object in list
CN104199646A (en) * 2014-08-15 2014-12-10 小米科技有限责任公司 Application program displaying method, device and equipment
US10275138B2 (en) * 2014-09-02 2019-04-30 Sonos, Inc. Zone recognition
CN105989298A (en) * 2015-02-11 2016-10-05 北京阿为科技有限公司 Remote control method and system for application in intelligent mobile terminal
CN105282659B (en) * 2015-10-22 2018-07-17 广东欧珀移动通信有限公司 Speaker control method, control device, and speaker with control device

Also Published As

Publication number Publication date
CN106775269A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN103389863B (en) A kind of display control method and device
CN105912905A (en) A fingerprint unlocking method and terminal
CN106603548A (en) Application registration method and mobile terminal
US11262911B2 (en) Integrated home key and virtual key area for a smart terminal
WO2019011335A1 (en) Mobile terminal and control method therefor, and readable storage medium
CN105138239A (en) Application operation method, device and terminal equipment
CN107071147A (en) A parameter adjustment method and device
CN106250014A (en) Application recommended method and device
CN105187653B (en) Network connection switchs method for closing and device
WO2019047973A1 (en) Terminal operating method and terminal, and computer readable storage medium
CN106791084A (en) Synchronization method of personalized parameters and mobile terminal
CN105892850A (en) Method and device for opening mobile terminal application program and mobile terminal
CN105045522A (en) Touch control method and device for handheld terminal
CN105357657B (en) Mesh Network Establishment Method and Device
CN105162930B (en) The way of recording and device of mobile terminal
CN105187652A (en) Recording method and device
CN105933944A (en) Optimized use method, device and mobile terminal of 4G network
CN105205371A (en) Locking method and locking device of mobile terminal
CN106817489B (en) Message prompting method and mobile terminal
CN108153460B (en) Icon hiding method and terminal
CN105975316A (en) Process management method, device and equipment
CN105100361B (en) The way of recording and device of mobile terminal
CN106980558A (en) Backup data cleaning method and mobile terminal
CN110084009A (en) Digital unlocking method, device, storage medium and mobile terminal
CN105792299A (en) Optimal use method, device and mobile terminal of 3G network

Legal Events

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

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

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

Address before: Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18

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

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant