技术领域technical field
本发明涉及电子终端技术领域,尤其涉及一种播放设备按键功能设置方法及装置。The present invention relates to the technical field of electronic terminals, and in particular, to a method and device for setting button functions of a playback device.
背景技术Background technique
现有技术中,具备网络功能的播放设备不仅可以播放其内部存储器和外接存储器(如U盘和移动硬盘)上的音乐文件,还可以访问局域网内其它设备共享的和媒体服务器(如NAS)上的音乐文件,甚至在网络环境中,还可以访问互联网中的媒体服务器,获得在线流媒体,如:网络音乐平台提供在线音乐以及一些网络电台,并进行播放。In the prior art, a playback device with network functions can not only play music files on its internal memory and external memory (such as U disk and mobile hard disk), but also access the music files shared by other devices in the local area network and on media servers (such as NAS). Even in a network environment, you can also access media servers in the Internet to obtain online streaming media, such as online music platforms that provide online music and some Internet radio stations, and play them.
其中有些播放设备上会集成一些按键,或者是机械式的实体按键,或者是显示在触摸屏上的虚拟按键,比如:用于开机和关机的“电源”键,用于增加或减小播放音量的“音量+”和“音量-”键。有时候,播放设备会预置有一些可让用户自定义其功能的特定按键,比如,播放设备上的“1”、“2”、“3”……等若干个数字按键,用户可以通过智能手机、平板电脑、PC等智能终端,定义这些特定按键的功能,如:用户可以为每个按键设置相应的媒体源播放列表、网络电台、歌单等。设置好后,用户无需智能终端控制,直接按播放设备上的按键,即播放预设好的媒体源。例如,用户通过智能终端设置播放设备上的按键“1”与网络电台A关联,则用户按下播放设备上的按键“1”,播放设备即开始连接网络电台A并开始播放。又如,用户通过智能终端为播放设备创建了一个播放列表,用户可以将该播放列表设置关联到播放设备上的按键“2”,则,后续用户按下播放设备上的按键“2”,播放设备即读取该播放列表开始播放。Some of these playback devices will integrate some buttons, or mechanical physical buttons, or virtual buttons displayed on the touch screen, such as: the "power" button for turning on and off, and the button for increasing or decreasing the playback volume. "Volume +" and "Volume -" keys. Sometimes, the playback device will be preset with some specific buttons that allow users to customize their functions. For example, several digital buttons such as "1", "2", "3"... on the playback device, the user can use the smart Smart terminals such as mobile phones, tablet computers, PCs, etc., define the functions of these specific buttons. For example, users can set corresponding media source playlists, Internet radio stations, song lists, etc. for each button. After setting, the user does not need to control the intelligent terminal, and directly press the button on the playback device to play the preset media source. For example, if the user sets the button "1" on the playback device to be associated with the Internet radio station A through the smart terminal, the user presses the button "1" on the playback device, and the playback device starts to connect to the Internet radio station A and starts playing. For another example, the user creates a playlist for the playback device through the smart terminal, and the user can set the playlist to be associated with the button "2" on the playback device. Then, the subsequent user presses the button "2" on the playback device to play The device reads the playlist and starts playing.
由于播放设备可能会有多个不同的用户在使用,每个用户的喜好和需求不同,不同的用户可能会将播放设备上相同的按键预设为不同的功能。因此,当同一台播放设备同时被多个用户使用的情况下,播放设备上的按键的预定义功能可能会给用户带来混淆,用户在每次使用前都需要重新设置播放设备上各按键的功能,极为不便。Since the playback device may be used by multiple different users, each user has different preferences and needs, and different users may preset the same keys on the playback device to different functions. Therefore, when the same playback device is used by multiple users at the same time, the predefined functions of the buttons on the playback device may cause confusion to the user, and the user needs to reset the buttons on the playback device before each use. function, very inconvenient.
发明内容SUMMARY OF THE INVENTION
本发明提供一种播放设备按键功能设置方法及装置,可实现播放设备上各按键的智能化自动设置,有效解决不同用户使用同一台播放设备的情况下,由于播放设备上的按键预设功能混乱,而给用户带来困扰的问题。The present invention provides a method and device for setting button functions of a playback device, which can realize the intelligent and automatic setting of each button on the playback device, and effectively solve the problem that the preset functions of the buttons on the playback device are confused when different users use the same playback device. , and bring trouble to users.
本发明第一方面提供一种播放设备按键功能设置方法,包括:智能终端向播放设备发送连接请求;播放设备在接收到所述连接请求时,与所述智能终端建立数据连接,并获取与所述智能终端对应的目标按键设置信息,根据获取的目标按键设置信息,设置所述播放设备上预置的各按键的功能,所述目标按键设置信息从所述按键的历史按键设置信息中确定。A first aspect of the present invention provides a method for setting button functions of a playback device, comprising: an intelligent terminal sending a connection request to the playback device; when the playback device receives the connection request, establishing a data connection with the intelligent terminal, and obtaining a connection request with the playback device. The target button setting information corresponding to the intelligent terminal is set, and the function of each button preset on the playback device is set according to the acquired target button setting information, and the target button setting information is determined from the historical button setting information of the button.
本发明第二方面提供一种播放设备按键功能设置方法,包括:当接收到智能终端发送的连接请求时,与所述智能终端建立数据连接,从播放设备的各按键的历史按键设置信息中,获取与所述智能终端对应的目标按键设置信息;根据获取的目标按键设置信息,设置各所述按键的功能。A second aspect of the present invention provides a method for setting button functions of a playback device, comprising: when receiving a connection request sent by an intelligent terminal, establishing a data connection with the intelligent terminal, and from historical button setting information of each button of the playback device, Acquire target key setting information corresponding to the intelligent terminal; and set the function of each key according to the acquired target key setting information.
本发明第三方面提供一种播放设备按键功能设置装置,包括:接收模块,用于接收智能终端发送的连接请求;连接模块,用于当所述接收模块接收到智能终端发送的连接请求时,与所述智能终端建立数据连接;设置信息获取模块,用于从播放设备的各按键的历史按键设置信息中,获取与所述智能终端对应的目标按键设置信息;设置模块,用于根据获取的目标按键设置信息,设置各所述按键的功能。A third aspect of the present invention provides a device for setting button functions of a playback device, comprising: a receiving module for receiving a connection request sent by an intelligent terminal; and a connection module for, when the receiving module receives the connection request sent by the intelligent terminal, establishing a data connection with the intelligent terminal; a setting information obtaining module is used to obtain target key setting information corresponding to the intelligent terminal from the historical key setting information of each key of the playback device; a setting module is used to obtain target key setting information according to the obtained Target key setting information, setting the function of each described key.
从上述本发明实施例可知,通过播放设备在接收到智能终端发送的连接请求时,与智能终端建立数据连接,并根据从按键的历史按键设置信息中确定出的,与该智能终端对应的目标按键设置信息,设置播放设备上预置的各按键的功能,相较于现有技术,本发明实现了播放设备上各按键的智能化自动设置,可有效解决不同用户使用同一台播放设备的情况下,由于播放设备上的按键预设功能混乱,而给用户带来困扰的问题。It can be seen from the above embodiments of the present invention that when receiving a connection request sent by an intelligent terminal, the playback device establishes a data connection with the intelligent terminal, and determines the target corresponding to the intelligent terminal according to the historical key setting information of the keys. The button setting information is used to set the function of each button preset on the playback device. Compared with the prior art, the present invention realizes the intelligent automatic setting of each button on the playback device, and can effectively solve the situation that different users use the same playback device. However, due to the confusion of the button preset functions on the playback device, it brings trouble to the user.
附图说明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, and for those skilled in the art, other drawings can also be obtained from these drawings without any creative effort.
附图1是本发明实施例提供的播放设备按键功能设置方法及装置的一应用环境图;1 is an application environment diagram of the method and apparatus for setting button functions of a playback device provided by an embodiment of the present invention;
附图2示出了一种智能终端的结构框图;Accompanying drawing 2 shows the structural block diagram of a kind of intelligent terminal;
附图3是本发明第一实施例提供的播放设备按键功能设置方法的实现流程示意图;3 is a schematic flowchart of the implementation of the method for setting button functions of a playback device provided by the first embodiment of the present invention;
附图4是本发明第二实施例提供的播放设备按键功能设置方法的实现流程示意图;4 is a schematic flowchart of the implementation of a method for setting button functions of a playback device provided by the second embodiment of the present invention;
附图5是本发明第三实施例提供的播放设备按键功能设置方法的实现流程示意图;5 is a schematic flowchart of the implementation of a method for setting button functions of a playback device provided by the third embodiment of the present invention;
附图6是本发明第四实施例提供的播放设备按键功能设置方法的实现流程示意图;6 is a schematic flowchart of the implementation of a method for setting a button function of a playback device provided by the fourth embodiment of the present invention;
附图7是本发明第五实施例提供的播放设备按键功能设置方法的实现流程示意图;7 is a schematic flowchart of the implementation of a method for setting button functions of a playback device provided by the fifth embodiment of the present invention;
附图8是本发明第六实施例提供的播放设备按键功能设置装置的结构示意图。FIG. 8 is a schematic structural diagram of an apparatus for setting button functions of a playback device provided by a sixth embodiment of the present invention.
具体实施方式Detailed ways
为使得本发明的发明目的、特征、优点能够更加的明显和易懂,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而非全部实施例。基于本发明中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. The embodiments described above are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present invention.
附图1是本发明实施例提供的播放设备按键功能设置方法的应用环境图。如附图1所示,一个或多个播放设备10分别与一个或多个智能终端20通过无线或有线网络进行数据交互。其中,智能终端20与播放设备10建立数据连接之后,通过建立的数据连接,对播放设备10进行控制,如:设置播放设备10上预置的各按键的功能,选择播放设备10播放的音乐,调节播放音量,创建播放列表,将多台播放设备组成一个播放组,同步播放相同的歌曲等等。FIG. 1 is an application environment diagram of a method for setting button functions of a playback device provided by an embodiment of the present invention. As shown in FIG. 1 , one or more playback devices 10 and one or more smart terminals 20 respectively perform data interaction through a wireless or wired network. Wherein, after the smart terminal 20 establishes a data connection with the playback device 10, it controls the playback device 10 through the established data connection, such as: setting the function of each button preset on the playback device 10, selecting the music played by the playback device 10, Adjust playback volume, create playlists, group multiple playback devices into a playgroup, play the same song in sync, and more.
在附图1所示的应用环境中,在多个用户分别利用各自的智能终端20对播放设备10的各按键的功能进行过自定义设置的应用场景下,智能终端20主要用于向播放设备发送连接请求;播放设备10主要用于在接收到连接请求时,与智能终端20建立数据连接,获取与智能终端20对应的目标按键设置信息,并根据获取的按键设置信息,设置播放设备上预置的各按键的功能。其中,该目标按键设置信息从播放设备的各按键的历史按键设置信息中确定,具体确定方法如下述各实施例中所示。In the application environment shown in FIG. 1 , in the application scenario where multiple users use their respective smart terminals 20 to customize the functions of the buttons of the playback device 10 , the smart terminals 20 are mainly used to send the playback device to the playback device 10 . Send a connection request; the playback device 10 is mainly used to establish a data connection with the intelligent terminal 20 when receiving the connection request, obtain target key setting information corresponding to the intelligent terminal 20, and set the preset information on the playback device according to the obtained key setting information. function of each key set. The target key setting information is determined from historical key setting information of each key of the playback device, and the specific determination method is as shown in the following embodiments.
附图2示出了一种智能终端的结构框图。该智能终端可以但不限于包括:具有射频功能的移动手机、平板电脑、手提电脑、智能穿戴设备、多媒体播放器以及个人电脑等等。如附图2所示,智能终端20包括存储器202、存储控制器204,一个或多个(图中仅示出一个)处理器206、外设接口208、射频模块210、按键模块212、音频模块214以及触控屏幕216。这些组件通过一条或多条通讯总线/信号线222相互通讯。FIG. 2 shows a structural block diagram of an intelligent terminal. The intelligent terminal may include, but is not limited to, a mobile phone, a tablet computer, a laptop computer, a smart wearable device, a multimedia player, a personal computer, and the like with radio frequency function. As shown in FIG. 2, the smart terminal 20 includes a memory 202, a storage controller 204, one or more (only one is shown in the figure) processor 206, a peripheral interface 208, a radio frequency module 210, a button module 212, and an audio module 214 and touch screen 216 . These components communicate with each other via one or more communication bus/signal lines 222 .
可以理解,该附图1所示的结构仅为示意,其并不对智能终端20的结构造成限定。例如,智能终端20还可包括比该附图1所示更多或者更少的组件,或者具有与该附图1所示不同的配置。该附图1所示的各组件可以采用硬件、软件或其组合实现。It can be understood that the structure shown in FIG. 1 is for illustration only, and does not limit the structure of the smart terminal 20 . For example, the smart terminal 20 may further include more or less components than those shown in FIG. 1 , or have different configurations than those shown in FIG. 1 . Each component shown in FIG. 1 can be implemented by hardware, software or a combination thereof.
存储器202可用于存储软件程序以及模块,如本发明实施例中的播放设备按键功能设置方法及装置对应的程序指令/模块,处理器206通过运行存储在存储器202内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的播放设备按键功能设置方法。The memory 202 can be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for setting button functions of a playback device in the embodiment of the present invention, and the processor 206 executes the software programs and modules stored in the memory 202 by running Various functional applications and data processing are implemented to implement the above-mentioned method for setting button functions of a playback device.
存储器202可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器202可进一步包括相对于处理器206远程设置的存储器,这些远程存储器可以通过网络连接至智能终端20。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。处理器206以及其他可能的组件对存储器202的访问可在存储控制器204的控制下进行。Memory 202 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 202 may further include memory located remotely from the processor 206, and these remote memories may be connected to the smart terminal 20 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. Access to memory 202 by processor 206 and possibly other components may be under the control of memory controller 204 .
外设接口208将各种输入/输入装置耦合至处理器206以及存储器202。处理器206运行存储器202内的各种软件、指令以执行智能终端20的各种功能以及进行数据处理。Peripherals interface 208 couples various input/input devices to processor 206 and memory 202 . The processor 206 runs various software and instructions in the memory 202 to perform various functions of the smart terminal 20 and perform data processing.
在一些实例中,外设接口208,处理器206以及存储控制器204可以在单个芯片中实现。在其他一些实例中,他们可以分别由独立的芯片实现。In some instances, peripheral interface 208, processor 206, and memory controller 204 may be implemented in a single chip. In other instances, they may be implemented by separate chips.
射频模块210用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯。射频模块210可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。射频模块210可与各种网络如互联网、企业内部网、预置类型的无线网络进行通讯或者通过预置类型的无线网络与其他设备进行通讯。上述的预置类型的无线网络可包括蜂窝式电话网、无线局域网或者城域网。上述的预置类型的无线网络可以使用各种通信标准、协议及技术,包括但并不限于全球移动通信系统(Global System for MobileCommunication,GSM),增强型移动通信技术(Enhanced Data GSM Environment,EDGE),宽带码分多址技术(Wideband Code Division Multiple Access,W-CDMA),码分多址技术(Code Division Access,CDMA),时分多址技术(Time Division Multiple Access,TDMA),蓝牙,无线保真技术(Wireless-Fidelity,WiFi)(如美国电气和电子工程师协会标准IEEE802.11a、IEEE 802.11b、IEEE802.11g和/或IEEE 802.11n),网络电话(Voice overInternet Protocol,VoIP),全球微波互联接入(Worldwide Interoperability forMicrowave Access,Wi-Max),其他用于邮件、即时通讯及短消息的协议,以及任何其他合适的通讯协议,甚至可包括那些当前仍未被开发出来的协议。The radio frequency module 210 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. The radio frequency module 210 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 radio frequency module 210 can communicate with various networks such as the Internet, an intranet, a preset type of wireless network, or communicate with other devices through a preset type of wireless network. The aforementioned preset types of wireless networks may include cellular telephone networks, wireless local area networks, or metropolitan area networks. The above-mentioned preset types of wireless networks can use various communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE) , Wideband Code Division Multiple Access (W-CDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Bluetooth, Wireless Fidelity Technology (Wireless-Fidelity, WiFi) (e.g. Institute of Electrical and Electronics Engineers standards IEEE802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE 802.11n), Voice over Internet Protocol (VoIP), World Interoperability for Microwave Access (Worldwide Interoperability for Microwave Access, Wi-Max), other protocols for mail, instant messaging and short messages, and any other suitable communication protocols, even those that have not yet been developed.
按键模块212提供用户向智能终端20进行输入的接口,用户可以通过按下不同的按键以使智能终端20执行不同的功能。The button module 212 provides an interface for the user to input to the smart terminal 20, and the user can press different buttons to make the smart terminal 20 perform different functions.
音频模块214向用户提供音频接口,其可包括一个或多个麦克风、一个或者多个扬声器以及音频电路。音频电路从外设接口208处接收声音数据,将声音数据转换为电信息,将电信息传输至扬声器。扬声器将电信息转换为人耳能听到的声波。音频电路还从麦克风处接收电信息,将电信号转换为声音数据,并将声音数据传输至外设接口208中以进行进一步的处理。音频数据可以从存储器202处或者通过射频模块210获取。此外,音频数据也可以存储至存储器202中或者通过射频模块210进行发送。在一些实例中,音频模块214还可包括一个耳机播孔,用于向耳机或者其他设备提供音频接口。Audio module 214 provides an audio interface to the user, which may include one or more microphones, one or more speakers, and audio circuitry. The audio circuit receives sound data from the peripheral interface 208, converts the sound data into electrical information, and transmits the electrical information to the speaker. Speakers convert electrical information into sound waves that the human ear can hear. The audio circuit also receives electrical information from the microphone, converts the electrical signal into sound data, and transmits the sound data to the peripheral interface 208 for further processing. Audio data may be obtained from memory 202 or through radio frequency module 210 . In addition, the audio data can also be stored in the memory 202 or transmitted through the radio frequency module 210 . In some instances, the audio module 214 may also include a headphone jack for providing an audio interface to headphones or other devices.
触控屏幕216在智能终端20与用户之间同时提供一个输出及输入界面。具体地,触控屏幕216向用户显示视频输出,这些视频输出的内容可包括文字、图形、视频、及其任意组合。一些输出结果是对应于一些用户界面对象。触控屏幕216还接收用户的输入,例如用户的点击、滑动等手势操作,以便用户界面对象对这些用户的输入做出响应。检测用户输入的技术可以是基于电阻式、电容式或者其他任意可能的触控检测技术。触控屏幕216显示单元的具体实例包括但并不限于液晶显示器或发光聚合物显示器。The touch screen 216 simultaneously provides an output and input interface between the smart terminal 20 and the user. Specifically, the touch screen 216 displays video output to the user, and the content of the video output may include text, graphics, video, and any combination thereof. Some output results correspond to some user interface objects. The touch screen 216 also receives user input, such as the user's tap, swipe, and other gesture operations, so that the user interface objects respond to the user's input. The technology for detecting user input may be based on resistive, capacitive or any other possible touch detection technology. Specific examples of the touch screen 216 display unit include, but are not limited to, liquid crystal displays or light emitting polymer displays.
播放设备10可以但不限于包括:智能电视机、智能音箱、智能收音机等等。可以理解的,附图2所示的结构同样可适用于播放设备10,只是在适用于播放设备10时,各功能模块的功能有所不同,如:存储器202还可用于存储多媒体数据。并且,基于可提供的具体功能的不同,播放设备10包括的各组件可能比智能终端20更多或更少,如:智能音箱可能不具有触控屏幕216。The playback device 10 may include, but is not limited to, a smart TV, a smart speaker, a smart radio, and the like. It can be understood that the structure shown in FIG. 2 is also applicable to the playback device 10, but when it is applied to the playback device 10, the functions of each functional module are different. For example, the memory 202 can also be used to store multimedia data. Moreover, based on different specific functions that can be provided, the components included in the playback device 10 may be more or less than the smart terminal 20 , for example, the smart speaker may not have the touch screen 216 .
请参阅附图3,附图3为本发明第一实施例提供的播放设备按键功能设置方法的实现流程示意图。本实施例提供的播放设备按键功能设置方法可应用于附图1所示的环境。本实施例是基于播放设备10与智能终端20交互的角度进行的描述。如附图3所示,该方法主要包括以下步骤:Please refer to FIG. 3 . FIG. 3 is a schematic flowchart of the implementation of the method for setting button functions of a playback device provided by the first embodiment of the present invention. The method for setting button functions of a playback device provided in this embodiment can be applied to the environment shown in FIG. 1 . This embodiment is described based on the perspective of interaction between the playback device 10 and the smart terminal 20 . As shown in accompanying drawing 3, this method mainly comprises the following steps:
S101、智能终端向播放设备发送连接请求;S101. The intelligent terminal sends a connection request to a playback device;
可选的,智能终端可基于WIFI协议、蓝牙协议、近场通信NFC等无线协议向播放设备发送连接请求,以与播放设备建立无线数据连接,并进而对播放设备进行控制,其中,该连接请求中可进一步包括鉴权信息。Optionally, the smart terminal can send a connection request to the playback device based on wireless protocols such as WIFI protocol, Bluetooth protocol, near field communication NFC, etc., to establish a wireless data connection with the playback device, and then control the playback device, wherein the connection request may further include authentication information.
S102、播放设备在接收到连接请求时,与智能终端建立数据连接;S102. When receiving the connection request, the playback device establishes a data connection with the intelligent terminal;
播放设备在接收到智能终端发送的连接请求时,与该智能终端建立数据连接,进一步的,若该连接请求中还包括鉴权信息,则在根据该鉴权信息对该智能终端成功鉴权后,与该智能终端建立数据连接。When receiving the connection request sent by the intelligent terminal, the playback device establishes a data connection with the intelligent terminal. Further, if the connection request also includes authentication information, after the intelligent terminal is successfully authenticated according to the authentication information , and establish a data connection with the smart terminal.
S103、获取与智能终端对应的目标按键设置信息;S103, acquiring target key setting information corresponding to the smart terminal;
同时,播放设备在历次根据智能终端的按键设置指令,对播放设备上预置的各按键进行设置时,记录的历史按键设置信息中,查找与发送连接请求的智能终端对应的目标按键设置信息,并根据该目标按键设置信息,设置播放设备上预置的各按键的功能。其中,历史按键设置信息可以配置在智能终端、播放设备或者网络服务器中的任一侧,具体可包括:各智能终端以及各智能终端曾经对播放设备上预置的各按键的功能所做过的设置的描述信息。At the same time, when the playback device sets each button preset on the playback device according to the button setting instructions of the smart terminal, it searches for the target button setting information corresponding to the smart terminal that sent the connection request in the recorded historical button setting information. And according to the target key setting information, the function of each key preset on the playback device is set. Wherein, the historical button setting information may be configured on any side of the smart terminal, playback device or network server, and may specifically include: each smart terminal and each smart terminal once performed on the function of each button preset on the playback device. Description of the setting.
S104、根据获取的目标按键设置信息,设置播放设备上预置的各按键的功能。S104 , according to the acquired target key setting information, set the function of each key preset on the playback device.
各按键的功能可以但不限于包括:各按键对应的媒体源(如:网络电台、播放列表等等)、播放控制功能(如:前进、后退、音量控制等等)。其中该按键为预设在播放设备上的功能按键,可以是实体的物理按键或虚拟按键。The function of each key may include, but is not limited to, the media source corresponding to each key (eg, Internet radio, playlist, etc.), and playback control functions (eg, forward, backward, volume control, etc.). The button is a preset function button on the playback device, which may be a physical physical button or a virtual button.
进一步的,如附图4所示,于本发明第二实施例中,在步骤S103:获取与智能终端对应的目标按键设置信息之前,还包括步骤:Further, as shown in FIG. 4 , in the second embodiment of the present invention, before step S103 : acquiring target key setting information corresponding to the smart terminal, it further includes the steps:
S201、智能终端根据用户的按键设置操作,生成对应的按键设置信息;S201, the intelligent terminal generates corresponding key setting information according to the key setting operation of the user;
可以理解的,在执行步骤S201之前,需要智能终端与播放设备建立数据连接,具体建立方法,可如步骤S101所示。可选的,步骤S201~S203先于步骤S101单独执行。It can be understood that, before step S201 is performed, a data connection needs to be established between the smart terminal and the playback device, and the specific establishment method may be as shown in step S101. Optionally, steps S201 to S203 are performed independently before step S101.
智能终端中可预置有客户端程序,用于设置播放设备上预置的各按键的功能,用户可在智能终端与播放设备成功建立数据连接后,通过该客户端的交互界面,自定义播放设备的各个按键的功能。其中,设置播放设备的各按键的功能包括:对各按键各自对应的功能的新设或者修改。A client program can be preset in the smart terminal, which is used to set the function of each button preset on the playback device. After the smart terminal and the playback device successfully establish a data connection, the user can customize the playback device through the interactive interface of the client. function of each button. Wherein, setting the function of each button of the playback device includes: new setting or modification of the function corresponding to each button.
智能终端根据用户在该客户端的交互界面进行的设置操作,获取该设置操作指向的播放设备上预置的各按键及其对应的功能的描述信息,并据此生成按键设置信息。其中,按键设置信息包括:各按键与用户为其定义的功能之间的对应关系。According to the setting operation performed by the user on the interactive interface of the client, the intelligent terminal acquires the description information of each button preset on the playback device pointed by the setting operation and its corresponding function, and generates button setting information accordingly. The key setting information includes: the correspondence between each key and the function defined by the user for it.
S202、向播放设备发送按键设置指令,按键设置指令中包含按键设置信息;S202, sending a key setting instruction to the playback device, where the key setting instruction includes key setting information;
智能终端将生成的按键设置信息封装在按键设置指令中后,发送给播放设备。The intelligent terminal encapsulates the generated button setting information in the button setting instruction, and sends it to the playback device.
S203、播放设备按照接收的按键设置指令的指示,根据按键设置信息,对播放设备的各按键的功能进行设置;S203, the playback device sets the function of each button of the playback device according to the instruction of the received button setting instruction and according to the button setting information;
S204、播放设备获取智能终端的身份标识信息,并记录按键设置信息与智能终端的身份标识信息之间的对应关系,作为历史按键设置信息。S204: The playback device acquires the identity information of the smart terminal, and records the correspondence between the button setting information and the identity information of the smart terminal, as historical button setting information.
智能终端的身份标识信息可封装在智能终端发送的按键设置指令中,或者,在播放设备与智能终端建立数据连接的过程中,由智能终端发送给播放设备。其中,智能终端的身份标识信息可以包括:智能终端的用户名、MAC(Media Access Control,媒体访问控制)地址或其他可唯一标识智能终端身份的信息中的任意一种或几种的组合。The identity information of the smart terminal can be encapsulated in the button setting instruction sent by the smart terminal, or sent by the smart terminal to the playback device during the process of establishing a data connection between the playback device and the smart terminal. Wherein, the identity information of the intelligent terminal may include any one or a combination of the user name of the intelligent terminal, a MAC (Media Access Control, media access control) address, or other information that can uniquely identify the identity of the intelligent terminal.
可选的,播放设备中预置有历史按键设置信息数据库或历史按键设置信息列表,用于记录不同的智能终端与播放设备接收过的各智能终端所发送的按键设置信息之间的对应关系。Optionally, a historical key setting information database or a historical key setting information list is preset in the playback device to record the correspondence between different smart terminals and the key setting information sent by each smart terminal received by the playback device.
播放设备在每一次接收到按键设置指令时,都会在根据该按键设置指令中的按键设置信息,对播放设备的各按键的功能进行设置的同时,将该按键设置指令中的按键设置信息与发送方智能终端的身份标识信息之间的对应关系,记录在上述历史按键设置信息数据库或历史按键设置信息列表中,记录的具体内容可如下表1所示:Each time the playback device receives a button setting instruction, it will set the function of each button of the playback device according to the button setting information in the button setting instruction, and at the same time, send the button setting information in the button setting instruction to the sending device. The corresponding relationship between the identification information of the smart terminal is recorded in the above-mentioned historical key setting information database or historical key setting information list, and the specific content of the record can be shown in Table 1 below:
表1Table 1
基于上述步骤S201-S204,则步骤S103具体包括:Based on the above steps S201-S204, step S103 specifically includes:
S205、播放设备获取智能终端的身份标识信息;S205, the playback device obtains the identity information of the smart terminal;
播放设备在接收到智能终端发送的连接请求时,与该智能终端建立数据连接,并提取该连接请求中包含的该智能终端的身份标识信息。可选的,若该连接请求中未包含该智能终端的身份标识信息,则播放设备向该智能终端发送身份标识信息获取请求,使得该智能终端根据该身份标识信息获取请求,将自己的身份标识信息发送给播放设备。When receiving the connection request sent by the intelligent terminal, the playback device establishes a data connection with the intelligent terminal, and extracts the identity information of the intelligent terminal contained in the connection request. Optionally, if the connection request does not contain the identity information of the intelligent terminal, the playback device sends an identity information acquisition request to the intelligent terminal, so that the intelligent terminal can use the identity information acquisition request to acquire its own identity information. information is sent to the playback device.
S206、在历史按键设置信息中,查找与获取的智能终端的身份标识信息对应的按键设置信息,作为目标按键设置信息。S206 , in the historical button setting information, search for the button setting information corresponding to the acquired identification information of the smart terminal, as the target button setting information.
播放设备查找上述历史按键设置信息数据库或历史按键设置信息列表,得到与获取的智能终端的身份标识信息对应的按键设置信息,作为目标按键设置信息。The playback device searches the above-mentioned historical button setting information database or historical button setting information list, and obtains the button setting information corresponding to the acquired identification information of the intelligent terminal as the target button setting information.
进一步的,如附图5所示,于本发明第三实施例中,在步骤S103:获取与智能终端对应的目标按键设置信息之前,还包括步骤:Further, as shown in FIG. 5 , in the third embodiment of the present invention, before step S103 : acquiring target key setting information corresponding to the smart terminal, it further includes the steps:
S301、智能终端根据用户的按键设置操作,生成对应的按键设置信息;S301, the intelligent terminal generates corresponding key setting information according to the key setting operation of the user;
S302、向播放设备发送按键设置指令,按键设置指令中包含按键设置信息;S302, sending a key setting instruction to the playback device, where the key setting instruction includes key setting information;
步骤S301-S302与步骤S201-S202相同,具体可参考上述步骤S201-S202的相关内容,此处不再赘述。Steps S301-S302 are the same as steps S201-S202. For details, reference may be made to the relevant content of the above-mentioned steps S201-S202, which will not be repeated here.
S303、智能终端获取播放设备的身份标识信息,并记录按键设置信息与播放设备的身份标识信息之间的对应关系,作为历史按键设置信息;S303, the intelligent terminal acquires the identity information of the playback device, and records the corresponding relationship between the button setting information and the identity information of the playback device, as historical button setting information;
可选的,智能终端中预置有历史按键设置信息数据库或历史按键设置信息列表,用于记录智能终端设置过的不同的播放设备的身份标识信息,与该智能终端在对不同的播放设备上预置的各按键的功能进行设置时,向各播放设备发送的按键设置信息之间的对应关系。Optionally, a historical button setting information database or a historical button setting information list is preset in the smart terminal, which is used to record the identity information of different playback devices set by the smart terminal, and the smart terminal is on different playback devices. When the preset functions of each button are set, the corresponding relationship between the button setting information sent to each playback device.
智能终端在每一次对播放设备上预置的各按键的功能进行设置之前,都会向播放设备发送身份标识信息获取请求,将播放设备根据该身份标识信息获取请求返回的该播放设备的身份标识信息以及发送给该播放设备的按键设置信息之间的对应关系,记录在上述历史按键设置信息数据库或历史按键设置信息列表中,记录的具体内容可如下表2所示。Before every time the function of each button preset on the playback device is set, the smart terminal will send an ID information acquisition request to the playback device, and the playback device returns the ID information of the playback device according to the ID information acquisition request. The corresponding relationship between the button setting information sent to the playback device is recorded in the above-mentioned historical button setting information database or historical button setting information list, and the specific content of the record can be shown in Table 2 below.
表2Table 2
S304、播放设备按照接收的按键设置指令的指示,根据按键设置信息,对播放设备的各按键的功能进行设置。S304 , the playback device sets the functions of each button of the playback device according to the instruction of the received button setting instruction and according to the button setting information.
基于上述步骤S301-S304,则步骤S103具体包括:Based on the above steps S301-S304, step S103 specifically includes:
S305、播放设备将自己的身份标识信息发送给智能终端;S305, the playback device sends its own identification information to the intelligent terminal;
播放设备在接收到智能终端发送的连接请求时,与该智能终端建立数据连接,并将自己的身份标识信息发送给智能终端。播放设备的身份标识信息可以但不限于包括:播放设备的机器码、MAC地址或其他可唯一标识播放设备的信息中的任一种或几种的组合。When receiving the connection request sent by the intelligent terminal, the playback device establishes a data connection with the intelligent terminal, and sends its own identification information to the intelligent terminal. The identity information of the playback device may include, but is not limited to, any one or a combination of several of the playback device's machine code, MAC address, or other information that can uniquely identify the playback device.
S306、智能终端在历史按键设置信息中,查找与接收的播放设备的身份标识信息对应的按键设置信息,作为目标按键设置信息;S306, the intelligent terminal searches for the key setting information corresponding to the received identification information of the playback device in the historical key setting information, as the target key setting information;
智能终端根据接收的播放设备的身份标识信息,查找上述历史按键设置信息数据库或历史按键设置信息列表,得到与接收的播放设备的身份标识信息对应的按键设置信息,作为目标按键设置信息。The intelligent terminal searches the above-mentioned historical key setting information database or historical key setting information list according to the received identification information of the playback device, and obtains the key setting information corresponding to the received identification information of the playback device as the target key setting information.
可以理解的,尽管智能终端中存储的历史按键设置信息数据库或历史按键设置信息列表中,记录的是各播放设备与智能终端发送给各播放设备的按键设置信息之间的对应关系,但由于该对应关系是由智能终端记录,其本质上体现的依然是智能终端与按键设置信息之间的对应关系。It can be understood that although the historical key setting information database or the historical key setting information list stored in the smart terminal records the correspondence between each playback device and the key setting information sent by the smart terminal to each playback device, due to this The corresponding relationship is recorded by the smart terminal, which essentially reflects the corresponding relationship between the smart terminal and the button setting information.
S307、智能终端将目标按键设置信息发送给播放设备。S307, the intelligent terminal sends the target key setting information to the playback device.
可选的,播放设备向智能终端发送自己的身份标识信息的步骤,也可发生在智能终端发送连接请求之前,即当智能终端广播设备发现请求时,播放设备响应该设备发送请求,将自己的身份标识信息发送给智能终端。则,智能终端可在向播放设备发送连接请求的同时,或与播放设备建立数据连接之后,将查找到的目标按键设置信息发送给播放设备。Optionally, the step of the playback device sending its own identity information to the smart terminal may also occur before the smart terminal sends a connection request, that is, when the smart terminal broadcasts a device discovery request, the playback device responds to the device sending request and sends its own ID information. The identification information is sent to the smart terminal. Then, the smart terminal may send the found target key setting information to the playback device at the same time as sending a connection request to the playback device, or after establishing a data connection with the playback device.
可选的,若智能终端未在上述历史按键设置信息数据库或历史按键设置信息列表中,查找得到与播放设备的身份标识信息对应的按键设置信息,则显示提示信息,以提示用户是否进行按键设置;根据用户在预置的设置界面的设置操作,获取用户的设置操作指向的设置信息,并作为目标按键设置信息发送给播放设备。Optionally, if the intelligent terminal does not find the button setting information corresponding to the identity information of the playback device in the above-mentioned historical button setting information database or historical button setting information list, a prompt message is displayed to prompt the user whether to perform button setting. ; According to the user's setting operation on the preset setting interface, obtain the setting information pointed by the user's setting operation, and send it to the playback device as the target key setting information.
进一步的,如附图6所示,于本发明第四实施例中,在步骤S103:获取与智能终端对应的目标按键设置信息之前,还包括步骤:Further, as shown in FIG. 6 , in the fourth embodiment of the present invention, before step S103 : acquiring target key setting information corresponding to the smart terminal, it further includes the steps:
S401、智能终端根据用户的按键设置操作,生成对应的按键设置信息;S401, the intelligent terminal generates corresponding key setting information according to the user's key setting operation;
S402、向播放设备发送按键设置指令,按键设置指令中包含按键设置信息;S402. Send a key setting instruction to the playback device, where the key setting instruction includes key setting information;
步骤S401-S402与步骤S201-S202相同,具体可参考上述步骤S201-S202的相关内容,此处不再赘述。Steps S401-S402 are the same as steps S201-S202. For details, please refer to the relevant content of the above-mentioned steps S201-S202, which will not be repeated here.
S403、播放设备按照接收的按键设置指令的指示,根据按键设置信息,对播放设备的各按键的功能进行设置;S403, the playback device sets the function of each button of the playback device according to the instruction of the received button setting instruction and according to the button setting information;
S404、播放设备将按键设置信息、智能终端的身份标识信息以及播放设备的身份标识信息之间的对应关系,作为历史按键设置信息,发送给网络服务器并进行存储。S404: The playback device sends the corresponding relationship among the button setting information, the identity information of the smart terminal, and the identity information of the playback device as historical button setting information to the network server and stores it.
可选的,网络服务器中预置有历史按键设置信息数据库或历史按键设置信息列表,用于记录智能终端、智能终端设置过的不同的播放设备、以及智能终端在设置时发送给播放设备的按键设置信息之间的对应关系。智能终端或播放设备在每一次设置时,都会将上述对应关系发送给网络服务器,以通过网络服务器将上述对应关系记录在上述历史按键设置信息数据库或历史按键设置信息列表中,记录的具体内容可如下表3所示。Optionally, the network server is preset with a historical key setting information database or a historical key setting information list, which is used to record the smart terminal, the different playback devices set by the smart terminal, and the keys sent by the smart terminal to the playback device during setting. Set the correspondence between the information. The intelligent terminal or playback device will send the above-mentioned corresponding relationship to the network server every time it is set, so that the above-mentioned corresponding relationship can be recorded in the above-mentioned historical key setting information database or historical key setting information list through the network server. As shown in Table 3 below.
表3table 3
于本发明其他实施例中,本步骤也可由智能终端执行,即,智能终端将按键设置信息、智能终端的身份标识信息以及播放设备的身份标识信息之间的对应关系,作为历史按键设置信息,存储在网络服务器中。In other embodiments of the present invention, this step can also be performed by an intelligent terminal, that is, the intelligent terminal takes the corresponding relationship between the button setting information, the identity information of the intelligent terminal, and the identity information of the playback device as the historical button setting information, stored on a web server.
基于上述步骤S401-S404,则步骤S103具体包括:Based on the above steps S401-S404, step S103 specifically includes:
S405、播放设备获取智能终端的身份标识信息;S405, the playback device obtains the identity information of the smart terminal;
S406、播放设备将自己的身份标识信息与智能终端的身份标识信息发送给网络服务器;S406, the playback device sends its own identity information and the identity information of the intelligent terminal to the network server;
S407、网络服务器在历史按键设置信息中,查找与播放设备的身份标识信息以及智能终端的身份标识信息对应的按键设置信息;S407, the network server searches for the button setting information corresponding to the identity information of the playback device and the identity information of the intelligent terminal in the historical button setting information;
S408、网络服务器将查找出的按键设置信息发送给播放设备。S408, the network server sends the found key setting information to the playback device.
播放设备将网络服务器返回的按键设置信息作为目标按键设置信息,并根据该目标按键设置信息,设置播放设备上预置的各按键的功能。The playback device takes the button setting information returned by the network server as the target button setting information, and sets the functions of each button preset on the playback device according to the target button setting information.
可选的,于本发明其他实施例中,步骤S103具体还包括:智能终端获取播放设备的身份标识信息,通过网络服务器在历史按键设置信息中,查找与自己的身份标识信息以及播放设备的身份标识信息对应的按键设置信息,并作为目标按键设置信息发送给播放设备。Optionally, in other embodiments of the present invention, step S103 specifically further includes: the intelligent terminal obtains the identity information of the playback device, and searches for the identity information related to its own and the identity of the playback device in the historical button setting information through the network server. The key setting information corresponding to the identification information is sent to the playback device as the target key setting information.
本发明实施例提供的播放设备按键功能设置方法,通过播放设备在接收到智能终端发送的连接请求时,与智能终端建立数据连接,并根据从按键的历史按键设置信息中确定出的,与该智能终端对应的目标按键设置信息,设置播放设备上预置的各按键的功能,相较于现有技术,本发明实现了播放设备上各按键的智能化自动设置,可有效解决不同用户使用同一台播放设备的情况下,由于播放设备上的按键预设功能混乱,而给用户带来困扰的问题。In the method for setting a button function of a playback device provided by the embodiment of the present invention, the playback device establishes a data connection with the smart terminal when receiving a connection request sent by the smart terminal, and determines from the historical button setting information of the button, and the The target button setting information corresponding to the intelligent terminal is used to set the function of each button preset on the playback device. Compared with the prior art, the present invention realizes the intelligent automatic setting of each button on the playback device, which can effectively solve the problem of different users using the same button. In the case of a playback device, because the preset function of the buttons on the playback device is confusing, it brings trouble to the user.
请参阅附图7,附图7为本发明第五实施例提供的播放设备按键功能设置方法的实现流程示意图。本实施例提供的播放设备按键功能设置方法可应用于如附图1所示的应用环境中。本实施例是从播放设备10的角度进行的描述。如附图7所示,该方法主要包括以下步骤:Please refer to FIG. 7 . FIG. 7 is a schematic flowchart of the implementation of a method for setting a button function of a playback device according to a fifth embodiment of the present invention. The method for setting button functions of a playback device provided in this embodiment can be applied to the application environment shown in FIG. 1 . The present embodiment is described from the perspective of the playback device 10 . As shown in accompanying drawing 7, this method mainly comprises the following steps:
S501、当接收到智能终端发送的连接请求时,与智能终端建立数据连接,从播放设备的各按键的历史按键设置信息中,获取与智能终端对应的目标按键设置信息;S501, when receiving a connection request sent by an intelligent terminal, establish a data connection with the intelligent terminal, and obtain target key setting information corresponding to the intelligent terminal from historical key setting information of each key of the playback device;
具体的,智能终端可基于WIFI协议、蓝牙协议、近场通信NFC等无线协议向播放设备发送连接请求,以与播放设备建立无线数据连接,并进而对播放设备进行控制,其中,该连接请求中可进一步包括鉴权信息。播放设备在接收到智能终端发送的连接请求时,与该智能终端建立数据连接,进一步的,若该连接请求中还包括鉴权信息,则在根据该鉴权信息对该智能终端成功鉴权后,与该智能终端建立数据连接。Specifically, the smart terminal can send a connection request to the playback device based on wireless protocols such as WIFI protocol, Bluetooth protocol, and near field communication (NFC), so as to establish a wireless data connection with the playback device, and then control the playback device. Authentication information may be further included. When receiving the connection request sent by the intelligent terminal, the playback device establishes a data connection with the intelligent terminal. Further, if the connection request also includes authentication information, after the intelligent terminal is successfully authenticated according to the authentication information , and establish a data connection with the smart terminal.
在成功建立数据连接后,播放设备在曾经接收到的各智能终端发送的按键设置信息中,即在各按键的历史按键设置信息中,查找与发送连接请求的智能终端对应的目标按键设置信息,其中该按键为预设在播放设备上的功能按键,可以是实体的物理按键或虚拟按键。After the data connection is successfully established, the playback device searches for the target key setting information corresponding to the intelligent terminal that sent the connection request in the key setting information sent by each smart terminal, that is, in the historical key setting information of each key. The button is a preset function button on the playback device, which may be a physical physical button or a virtual button.
可选的,于本发明其他实施例中,在播放设备获取与智能终端对应的目标按键设置信息之前,智能终端对播放设备上预置的各按键的功能进行过预设,且播放设备将预设时的相关信息记录为历史按键设置信息。具体的,播放设备接收智能终端发送的按键设置指令,根据按键设置指令中包含的按键设置信息,对各按键的功能进行设置;播放设备获取智能终端的身份标识信息,并在本地记录按键设置信息与智能终端的身份标识信息之间的对应关系,作为历史按键设置信息。Optionally, in other embodiments of the present invention, before the playback device acquires target key setting information corresponding to the smart terminal, the smart terminal presets the functions of each button preset on the playback device, and the playback device will preset the function of each button preset on the playback device. The relevant information of the setting time is recorded as the historical key setting information. Specifically, the playback device receives the button setting instruction sent by the smart terminal, and sets the function of each button according to the button setting information contained in the button setting instruction; the playback device obtains the identity information of the smart terminal, and records the button setting information locally. The corresponding relationship with the identity information of the smart terminal is used as the historical button setting information.
则,从播放设备的各按键的历史按键设置信息中,获取与智能终端对应的目标按键设置信息具体可以包括:播放设备获取智能终端的身份标识信息,在本地记录的历史按键设置信息中,查找与智能终端的身份标识信息对应的按键设置信息,作为目标按键设置信息。Then, from the historical button setting information of each button of the playback device, acquiring the target button setting information corresponding to the smart terminal may specifically include: the playback device acquires the identity information of the smart terminal, and in the locally recorded historical button setting information, finds The key setting information corresponding to the identity information of the smart terminal is used as the target key setting information.
可选的,于本发明其他实施例中,在播放设备获取与智能终端对应的目标按键设置信息之前,智能终端对播放设备上预置的各按键的功能进行过预设,且播放设备将预设时的相关信息,通过网络服务器记录为历史按键设置信息。具体的,播放设备接收智能终端发送的按键设置指令,根据按键设置指令中包含的按键设置信息,对各按键的功能进行设置;播放设备获取智能终端的身份标识信息,将智能终端的身份标识信息、播放设备的身份标识信息以及按键设置信息之间的对应关系,作为历史按键设置信息记录在网络服务器。Optionally, in other embodiments of the present invention, before the playback device acquires target key setting information corresponding to the smart terminal, the smart terminal has preset the functions of each button preset on the playback device, and the playback device will preset the function of each button preset on the playback device. The relevant information of the setting time is recorded as the historical key setting information through the network server. Specifically, the playback device receives the button setting instruction sent by the smart terminal, and sets the function of each button according to the button setting information contained in the button setting instruction; The correspondence between the identity information of the playback device and the button setting information is recorded on the network server as historical button setting information.
则,从播放设备的各按键的历史按键设置信息中,获取与智能终端对应的目标按键设置信息具体还可以包括:播放设备获取智能终端的身份标识信息,将智能终端的身份标识信息与自己的身份标识信息发送给网络服务器,通过网络服务器,在历史按键设置信息中,查找与智能终端的身份标识信息以及自己的身份标识信息对应的按键设置信息,作为目标按键设置信息。Then, acquiring the target key setting information corresponding to the smart terminal from the historical button setting information of each button of the playback device may further include: the playback device acquires the identity information of the smart terminal, and compares the identity information of the smart terminal with its own. The identification information is sent to the network server, and through the network server, in the historical key setting information, the key setting information corresponding to the identification information of the intelligent terminal and its own identification information is searched as the target key setting information.
S502、根据获取的目标按键设置信息,设置各按键的功能。S502 , according to the acquired target key setting information, set the function of each key.
本发明实施例提供的播放设备按键功能设置方法,通过播放设备在接收到智能终端发送的连接请求时,与智能终端建立数据连接,并根据从按键的历史按键设置信息中确定出的,与该智能终端对应的目标按键设置信息,设置播放设备上预置的各按键的功能,相较于现有技术,本发明实现了播放设备上各按键的智能化自动设置,可有效解决不同用户使用同一台播放设备的情况下,由于播放设备上的按键预设功能混乱,而给用户带来困扰的问题。In the method for setting a button function of a playback device provided by the embodiment of the present invention, the playback device establishes a data connection with the smart terminal when receiving a connection request sent by the smart terminal, and determines from the historical button setting information of the button, and the The target button setting information corresponding to the intelligent terminal is used to set the function of each button preset on the playback device. Compared with the prior art, the present invention realizes the intelligent automatic setting of each button on the playback device, which can effectively solve the problem of different users using the same button. In the case of a playback device, because the preset function of the buttons on the playback device is confusing, it brings trouble to the user.
请参阅附图8,附图8是本发明第六实施例提供的播放设备按键功能设置装置的结构示意图,为了便于说明,仅示出了与本发明实施例相关的部分。附图8示例的播放设备按键功能设置装置可以是前述实施例提供的播放设备按键功能设置方法的执行主体,其可以是播放设备或者播放设备中的一个功能模块。附图8示例的播放设备按键功能设置装置,主要包括:接收模块601、连接模块602、设置信息获取模块603以及设置模块604。各功能模块详细说明如下:Please refer to FIG. 8 . FIG. 8 is a schematic structural diagram of an apparatus for setting a button function of a playback device provided by the sixth embodiment of the present invention. For convenience of description, only parts related to the embodiment of the present invention are shown. The apparatus for setting button functions of a playback device illustrated in FIG. 8 may be the execution body of the method for setting button functions of a playback device provided by the foregoing embodiments, which may be a playback device or a function module in a playback device. The device for setting button functions of a playback device as shown in FIG. 8 mainly includes: a receiving module 601 , a connecting module 602 , a setting information acquiring module 603 and a setting module 604 . The detailed description of each functional module is as follows:
接收模块601,用于接收智能终端发送的连接请求;a receiving module 601, configured to receive a connection request sent by an intelligent terminal;
连接模块602,用于当接收模块601接收到智能终端发送的连接请求时,与该智能终端建立数据连接;The connection module 602 is configured to establish a data connection with the intelligent terminal when the receiving module 601 receives the connection request sent by the intelligent terminal;
设置信息获取模块603,用于从播放设备的各按键的历史按键设置信息中,获取与该智能终端对应的目标按键设置信息;A setting information obtaining module 603, configured to obtain target key setting information corresponding to the intelligent terminal from historical key setting information of each key of the playback device;
设置模块604,用于根据获取的目标按键设置信息,设置各该按键的功能。The setting module 604 is configured to set the function of each key according to the acquired target key setting information.
具体的,当接收模块601接收到智能终端基于WIFI协议、蓝牙协议、近场通信NFC等无线协议发送的连接请求时,触发连接模块602,与该智能终端建立数据连接,设置信息获取模块603从播放设备的各按键的历史按键设置信息中,获取与该智能终端对应的目标按键设置信息,然后触发设置模块604根据获取的目标按键设置信息,设置各该按键的功能。其中该按键为预设在播放设备上的功能按键,可以是实体的物理按键或虚拟按键。Specifically, when the receiving module 601 receives a connection request sent by the smart terminal based on wireless protocols such as WIFI protocol, Bluetooth protocol, near field communication, NFC, etc., the connection module 602 is triggered to establish a data connection with the smart terminal, and the setting information acquisition module 603 obtains information from From the historical key setting information of each key of the playback device, obtain the target key setting information corresponding to the smart terminal, and then trigger the setting module 604 to set the function of each key according to the obtained target key setting information. The button is a preset function button on the playback device, which may be a physical physical button or a virtual button.
进一步的,于本发明其他实施例中:Further, in other embodiments of the present invention:
接收模块601,还用于接收该智能终端发送的按键设置指令;The receiving module 601 is further configured to receive a button setting instruction sent by the intelligent terminal;
设置模块604,还用于根据该按键设置指令中包含的按键设置信息,对各该按键的功能进行设置;The setting module 604 is further configured to set the function of each button according to the button setting information contained in the button setting instruction;
该装置还包括:The device also includes:
记录模块,用于获取该智能终端的身份标识信息,并在本地记录该按键设置信息与该智能终端的身份标识信息之间的对应关系,作为该历史按键设置信息;a recording module, used for acquiring the identity information of the intelligent terminal, and locally recording the corresponding relationship between the button setting information and the identity information of the intelligent terminal, as the historical button setting information;
设置信息获取模块603,具体用于在本地记录的该历史按键设置信息中,查找与该智能终端的身份标识信息对应的按键设置信息,作为该目标按键设置信息。The setting information obtaining module 603 is specifically configured to search for the key setting information corresponding to the identity information of the intelligent terminal in the historical key setting information recorded locally, as the target key setting information.
具体的,接收模块601接收智能终端发送的按键设置指令,触发设置模块604根据该按键设置指令中包含的按键设置信息,对各该按键的功能进行设置;然后记录模块获取该智能终端的身份标识信息,并在本地记录该按键设置信息与该智能终端的身份标识信息之间的对应关系,作为历史按键设置信息;当接收模块601接收到智能终端基于WIFI协议、蓝牙协议、近场通信NFC等无线协议发送的连接请求时,触发连接模块602,与该智能终端建立数据连接,设置信息获取模块603在本地记录的该历史按键设置信息中,查找与发送连接请求的智能终端的身份标识信息对应的按键设置信息,作为该目标按键设置信息,然后触发设置模块604根据查找到的目标按键设置信息,设置各该按键的功能。Specifically, the receiving module 601 receives the button setting instruction sent by the intelligent terminal, and the trigger setting module 604 sets the function of each button according to the button setting information contained in the button setting instruction; then the recording module obtains the identity of the intelligent terminal. information, and record the corresponding relationship between the key setting information and the identity information of the smart terminal locally, as the historical key setting information; when the receiving module 601 receives the smart terminal based on WIFI protocol, Bluetooth protocol, near field communication NFC, etc. When a connection request is sent by the wireless protocol, the connection module 602 is triggered to establish a data connection with the intelligent terminal, and the setting information acquisition module 603 searches the historical key setting information recorded locally in the information corresponding to the identity information of the intelligent terminal that sent the connection request. The key setting information of the target key is used as the target key setting information, and then the setting module 604 is triggered to set the function of each key according to the found target key setting information.
进一步的,于本发明其他实施例中:Further, in other embodiments of the present invention:
该记录模块,还用于获取该智能终端的身份标识信息,将该智能终端的身份标识信息、该播放设备的身份标识信息以及该按键设置信息之间的对应关系,作为该历史按键设置信息记录在网络服务器;The recording module is further configured to obtain the identification information of the intelligent terminal, and record the correspondence between the identification information of the intelligent terminal, the identification information of the playback device and the button setting information as the historical button setting information on a web server;
设置信息获取模块603,具体还用于获取该智能终端的身份标识信息,通过该网络服务器,在该历史按键设置信息中,查找与该智能终端的身份标识信息以及该播放设备的身份标识信息对应的按键设置信息,作为该目标按键设置信息。The setting information acquisition module 603 is further configured to acquire the identity information of the intelligent terminal, and through the network server, in the historical button setting information, find the identity information corresponding to the identity information of the intelligent terminal and the identity information of the playback device. The key setting information of , as the target key setting information.
具体的,接收模块601接收智能终端发送的按键设置指令,触发设置模块604根据该按键设置指令中包含的按键设置信息,对各该按键的功能进行设置;然后记录模块获取该智能终端的身份标识信息,将该智能终端的身份标识信息、播放设备的身份标识信息以及该按键设置信息之间的对应关系,作为历史按键设置信息记录在网络服务器;当接收模块601接收到智能终端基于WIFI协议、蓝牙协议、近场通信NFC等无线协议发送的连接请求时,触发连接模块602,与该智能终端建立数据连接;设置信息获取模块603通过该网络服务器,在该历史按键设置信息中,查找与该智能终端的身份标识信息以及该播放设备的身份标识信息对应的按键设置信息,作为该目标按键设置信息,然后触发设置模块604根据查找到的目标按键设置信息,设置各该按键的功能。Specifically, the receiving module 601 receives the button setting instruction sent by the intelligent terminal, and the trigger setting module 604 sets the function of each button according to the button setting information contained in the button setting instruction; then the recording module obtains the identity of the intelligent terminal. information, the corresponding relationship between the identity information of the intelligent terminal, the identity information of the playback device and the button setting information is recorded in the network server as historical button setting information; when the receiving module 601 receives the intelligent terminal based on the WIFI protocol, When a connection request is sent by a wireless protocol such as Bluetooth protocol, near field communication, NFC, etc., the connection module 602 is triggered to establish a data connection with the intelligent terminal; the setting information acquisition module 603, through the network server, in the historical key setting information, finds the connection with the The identity information of the intelligent terminal and the button setting information corresponding to the identity information of the playback device are used as the target button setting information, and then the setting module 604 is triggered to set the function of each button according to the found target button setting information.
需要说明的是,以上附图8示例的播放设备按键功能设置装置的实施方式中,各功能模块的划分仅是举例说明,实际应用中可以根据需要,例如相应硬件的配置要求或者软件的实现的便利考虑,而将上述功能分配由不同的功能模块完成,即将播放设备按键功能设置装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。而且,实际应用中,本实施例中的相应的功能模块可以是由相应的硬件实现,也可以由相应的硬件执行相应的软件完成,本说明书提供的各个实施例都可应用上述描述原则。It should be noted that in the embodiment of the device for setting button functions of a playback device shown in FIG. 8 above, the division of each functional module is only for illustration, and in practical applications, it can be required, such as the configuration requirements of the corresponding hardware or the realization of the software. For the sake of convenience, the above-mentioned function allocation is completed by different function modules, that is, the internal structure of the button function setting device of the playback device is divided into different function modules to complete all or part of the functions described above. Moreover, in practical applications, the corresponding functional modules in this embodiment may be implemented by corresponding hardware, or may be implemented by corresponding hardware executing corresponding software, and the above description principles can be applied to each embodiment provided in this specification.
从上述附图8示例的播放设备按键功能设置装置可知,通过播放设备在接收到智能终端发送的连接请求时,与智能终端建立数据连接,并根据从按键的历史按键设置信息中确定出的,与该智能终端对应的目标按键设置信息,设置播放设备上预置的各按键的功能,相较于现有技术,本发明实现了播放设备上各按键的智能化自动设置,可有效解决不同用户使用同一台播放设备的情况下,由于播放设备上的按键预设功能混乱,而给用户带来困扰的问题。It can be seen from the device for setting button functions of the playback device in the example of FIG. 8 that the playback device establishes a data connection with the smart terminal when it receives the connection request sent by the smart terminal, and determines from the historical button setting information of the buttons, The target button setting information corresponding to the intelligent terminal is used to set the function of each button preset on the playback device. Compared with the prior art, the present invention realizes the intelligent automatic setting of each button on the playback device, which can effectively solve the problem of different users. In the case of using the same playback device, the user is troubled by the confusion of the preset functions of the buttons on the playback device.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,该模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components may be combined or Integration into another system, or some features can be ignored, 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 devices or modules, and may be in electrical, mechanical or other forms.
该作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, may be located in one place, or may be distributed to multiple network modules. You can choose part or all modules to achieve the purpose of this embodiment according to actual needs.
另外,在本发明各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically alone, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules.
该集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例该方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated modules are implemented in the form of software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , which includes several instructions for causing 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 method in each embodiment 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 .
需要说明的是,对于前述的各方法实施例,为了简便描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其它顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定都是本发明所必须的。It should be noted that, for the convenience of description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence. As in accordance with the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily all necessary to the present invention.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
以上为对本发明所提供的播放设备按键功能设置方法及装置的描述,对于本领域的技术人员,依据本发明实施例的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本发明的限制。The above is a description of the method and device for setting the button function of the playback device provided by the present invention. For those skilled in the art, according to the idea of the embodiment of the present invention, there will be changes in the specific implementation and application scope. , the contents of this specification should not be construed as limiting the invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610487140.5ACN106095132B (en) | 2016-06-24 | 2016-06-24 | Method and device for setting key function of playing equipment |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610487140.5ACN106095132B (en) | 2016-06-24 | 2016-06-24 | Method and device for setting key function of playing equipment |
| Publication Number | Publication Date |
|---|---|
| CN106095132A CN106095132A (en) | 2016-11-09 |
| CN106095132Btrue CN106095132B (en) | 2019-08-27 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610487140.5AActiveCN106095132B (en) | 2016-06-24 | 2016-06-24 | Method and device for setting key function of playing equipment |
| Country | Link |
|---|---|
| CN (1) | CN106095132B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106292323A (en)* | 2016-09-20 | 2017-01-04 | 深圳广田智能科技有限公司 | Switch panel is configured to the system and method for Multifunctional control panel |
| CN106775232B (en)* | 2016-12-12 | 2020-08-04 | 杭州网易云音乐科技有限公司 | Method and device for setting key function through target application |
| CN110505342B (en)* | 2019-08-15 | 2021-05-04 | 咪咕音乐有限公司 | An information processing method, related equipment and computer-readable storage medium |
| CN112558955A (en)* | 2019-09-10 | 2021-03-26 | 广州途道信息科技有限公司 | Robot programming and control method, readable storage medium, and computing device |
| JP2023130677A (en)* | 2022-03-08 | 2023-09-21 | ヤマハ株式会社 | Acoustic equipment, control method of acoustic equipment, and sound processing system |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101336404A (en)* | 2005-11-28 | 2008-12-31 | 讯宝科技公司 | System and method for configuring an input arrangement for a computing device |
| CN101491127A (en)* | 2006-05-30 | 2009-07-22 | Sk电信有限公司 | Method for configuring terminal keyboard, terminal and system including terminal and reconfigurable keyboard |
| CN105022495A (en)* | 2014-11-14 | 2015-11-04 | 西安百利信息科技有限公司 | Cloud service based keyboard system and method capable of implementing customization on key position combination and mapping relationship |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH03130817A (en)* | 1989-10-17 | 1991-06-04 | Hitachi Ltd | Key input control method |
| CN104503254A (en)* | 2014-12-22 | 2015-04-08 | 珠海格力电器股份有限公司 | User-defined control method and system for household appliances |
| CN105068440A (en)* | 2015-08-27 | 2015-11-18 | 广东美的暖通设备有限公司 | Method and apparatus for customizing button function |
| CN105223842A (en)* | 2015-09-07 | 2016-01-06 | 深圳市爱的扣扣科技有限公司 | A kind of method to set up of dressing key function of terminal |
| CN105281799A (en)* | 2015-12-02 | 2016-01-27 | 海南易建科技股份有限公司 | Method and system for setting functions of keys of intelligent interphone |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101336404A (en)* | 2005-11-28 | 2008-12-31 | 讯宝科技公司 | System and method for configuring an input arrangement for a computing device |
| CN101491127A (en)* | 2006-05-30 | 2009-07-22 | Sk电信有限公司 | Method for configuring terminal keyboard, terminal and system including terminal and reconfigurable keyboard |
| CN105022495A (en)* | 2014-11-14 | 2015-11-04 | 西安百利信息科技有限公司 | Cloud service based keyboard system and method capable of implementing customization on key position combination and mapping relationship |
| Publication number | Publication date |
|---|---|
| CN106095132A (en) | 2016-11-09 |
| Publication | Publication Date | Title |
|---|---|---|
| CN109445740B (en) | Audio playback method, device, electronic device and storage medium | |
| CN106155623B (en) | A kind of audio collocation method, system and relevant device | |
| CN106095132B (en) | Method and device for setting key function of playing equipment | |
| WO2019090902A1 (en) | Screen sharing method and apparatus, electronic device, and storage medium | |
| US10812865B2 (en) | Network-based control of a media device | |
| CN105072146B (en) | Method and device for sharing music information | |
| WO2014166243A1 (en) | Multi-terminal multi-channel independent play method and apparatus | |
| US9843879B2 (en) | Apparatus and method for reproducing multi-sound channel contents using DLNA in mobile terminal | |
| CN111245854B (en) | Media transmission method, media control method and device | |
| CN104333911A (en) | Network connection setting method of multimedia player and related computer system | |
| CN105657127A (en) | Sound sharing method, earphone and terminal | |
| CN106982286A (en) | A kind of way of recording, equipment and computer-readable recording medium | |
| US20250168906A1 (en) | Information updating method and electronic device | |
| CN106488039B (en) | Volume adjustment method and system, mobile terminal and playback device | |
| CN106126165A (en) | A kind of audio stream processing method and mobile terminal | |
| CN104780206A (en) | A data sharing method and device | |
| WO2015165415A1 (en) | Method and apparatus for playing audio data | |
| CN106506646B (en) | Control method and device of playing equipment, mobile terminal and playing system | |
| CN104575548B (en) | File plays localization method, device and terminal | |
| CN108600887A (en) | Method of toch control based on wireless headset and Related product | |
| CN111049709A (en) | Bluetooth-based interconnected loudspeaker box control method, equipment and storage medium | |
| CN106941646A (en) | Method, device, mobile terminal and audio playback device for playing voice | |
| CN105959952A (en) | Network security access method and device | |
| CN105959496A (en) | Playing method and device | |
| CN105682010A (en) | Bluetooth connection control method and device in audio playing system, and player |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into 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 |