WO2017166605A1 - 一种耳机工作模式选择方法、装置、电子设备及非易失性计算机存储介质 - Google Patents

一种耳机工作模式选择方法、装置、电子设备及非易失性计算机存储介质 Download PDF

Info

Publication number
WO2017166605A1
WO2017166605A1 PCT/CN2016/096395 CN2016096395W WO2017166605A1 WO 2017166605 A1 WO2017166605 A1 WO 2017166605A1 CN 2016096395 W CN2016096395 W CN 2016096395W WO 2017166605 A1 WO2017166605 A1 WO 2017166605A1
Authority
WO
WIPO (PCT)
Prior art keywords
working mode
current
headset
earphone
access
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.)
Ceased
Application number
PCT/CN2016/096395
Other languages
English (en)
French (fr)
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.)
Le Holdings Beijing Co Ltd
Lemobile Information Technology (Beijing) Co Ltd
Original Assignee
Le Holdings Beijing Co Ltd
Lemobile Information Technology (Beijing) Co 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 Le Holdings Beijing Co Ltd, Lemobile Information Technology (Beijing) Co Ltd filed Critical Le Holdings Beijing Co Ltd
Publication of WO2017166605A1 publication Critical patent/WO2017166605A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; ELECTRIC HEARING AIDS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; ELECTRIC HEARING AIDS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; ELECTRIC HEARING AIDS; PUBLIC ADDRESS SYSTEMS
    • H04R2460/00Details of hearing devices, i.e. of ear- or headphones covered by H04R1/10 or H04R5/033 but not provided for in any of their subgroups, or of hearing aids covered by H04R25/00 but not provided for in any of its subgroups

Definitions

  • the present invention relates to the field of technical communication technologies, and in particular, to a method, an apparatus, an electronic device, and a non-volatile computer storage medium for selecting a working mode of a headset.
  • the existing electronic devices that can support the insertion of headphones are mostly 3.5mm earphones, and the user of the earphone can insert the earphone into the earphone jack of the electronic device, and the user of the earphone can access all the electronic devices.
  • the application with the headset first off.
  • the existing earphones cannot recognize the relationship between the earphone and the corresponding user of the device, and the related applications of all the user electronic devices are completely open, and the existing earphone becomes a security risk of the inserted electronic device, so that the electronic device is in the electronic device.
  • the information that needs to be kept confidential is at risk of being eavesdropped.
  • the embodiments of the present invention provide a method, a device, an electronic device, and a non-volatile computer storage medium for selecting an operation mode of a headset, which are used to solve the problem that the existing headset cannot recognize the relationship between the headset and the corresponding user of the device.
  • a security risk of the inserted electronic device there is a problem that the private information in the electronic device is at risk of being eavesdropped.
  • an embodiment of the present invention provides a method for selecting a working mode of a headset, including:
  • the working mode includes a normal working mode and a guest working mode; in the normal working mode, the current earphone can access all applications, and the current working mode can access an application that is preset to allow a guest to access.
  • the method Before obtaining the device information of the current headset, the method includes:
  • the device information of all the headphones approved by the user is stored in advance in advance.
  • the acquiring device information of the current headset includes:
  • the corresponding chip information in the current headset is read as device information based on the C type Type-C interface.
  • Determining, according to the device information, an operation mode of the current headset including:
  • the working mode of the current earphone is set to the normal working mode
  • the operating mode of the current headset is set to the guest working mode.
  • the method further includes:
  • Pre-set access permissions for all applications are pre-set; all applications have privacy access, allowing access to applications accessed by guests to be set to secure access;
  • the guest working mode is constructed according to the access rights preset by the application.
  • the device information of the current headset is obtained based on the Type-C interface, and the working mode matching the current headset is determined according to the device information.
  • the current headset has different access rights to the accessed device, which improves the information security of the accessed device and reduces the private message of the accessed device. The risk of eavesdropping.
  • an embodiment of the present invention provides a device for selecting a working mode of a headset, including:
  • the obtaining module is configured to obtain device information of the current headset
  • a determining module configured to determine an operating mode of the current earphone device according to the device information
  • the working mode includes a normal working mode and a guest working mode; in the normal working mode, the current earphone can access all applications, and the current working mode can access an application that is preset to allow a guest to access.
  • the headset working mode selecting device further includes:
  • the preset module is configured to pre-store device information of all the headphones recognized by the user in advance.
  • the acquiring module is specifically configured to read, according to the C type Type-C interface, corresponding chip information in the current headset as device information.
  • the determining module is configured to determine, according to the device information and the pre-stored device information, whether the current earphone is the approved earphone, and if the determination result is yes, set the working mode of the current earphone to the normal working mode, If the result of the determination is no, the operating mode of the current headset is set to the guest working mode.
  • the preset module is further configured to set access rights for all applications in advance; wherein all applications have privacy access rights, allowing access rights of applications accessed by the guest to be set to secure access rights, and according to the The visitor working mode is built by the application preset access rights.
  • an electronic device including:
  • At least one processor and,
  • the memory stores instructions executable by the at least one processor, the instructions being Executing at least one processor to enable the at least one processor to:
  • the working mode includes a normal working mode and a guest working mode; in the normal working mode, the current earphone can access all applications, and the current working mode can access an application that is preset to allow a guest to access.
  • an embodiment of the present invention provides a non-volatile computer storage medium, where the non-volatile computer storage medium stores computer instructions, and the computer instructions are used to cause the computer to execute the foregoing earphone working mode selection method. .
  • embodiments of the present invention provide a computer program product comprising a computer program stored on a non-volatile computer storage medium, the computer program comprising program instructions, when the program instructions are When the computer is executed, the computer is caused to execute the above-described earphone working mode selection method.
  • the acquiring module acquires device information of the current headset based on the Type-C interface, and the determining module determines, according to the device information, an working mode that matches the current headset. In different working modes, the current headset has different access rights to the accessed device, which improves the information security of the accessed device and reduces the risk of the private information of the accessed device being intercepted.
  • FIG. 1 is a schematic diagram of a Type-C interface according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a method for selecting a working mode of a headset according to Embodiment 1 of the present invention
  • FIG. 3 is a schematic flowchart of a method for selecting a working mode of a headset according to Embodiment 2 of the present invention
  • FIG. 4 is a schematic structural diagram of an apparatus for selecting an operating mode of a headset according to Embodiment 3 of the present invention.
  • FIG. 5 is a schematic structural diagram of an apparatus for selecting an operating mode of a headset according to Embodiment 4 of the present invention.
  • FIG. 6 is a schematic diagram showing the hardware structure of an electronic device according to a method for selecting a working mode of a headset provided in Embodiment 6 of the present application.
  • the word “if” as used herein may be interpreted as “when” or “when” or “in response to determining” or “in response to detecting.”
  • the phrase “if determined” or “if detected (conditions or events stated)” may be interpreted as “when determined” or “in response to determination” or “when detected (stated condition or event) “Time” or “in response to a test (condition or event stated)”.
  • the method provided by the embodiment of the present invention can be applied to the earphone adopting the Type-C interface.
  • the following describes the Type-C interface.
  • FIG. 1 is a schematic diagram of a Type-C interface according to an embodiment of the present invention.
  • the Type-C interface may be used for interconnecting an earphone and a terminal device.
  • the Dp and Dn pins respectively serve as left and right earphones.
  • the input pin of the two conversion unit, the CC pin is the function pin of the earphone, and Used to transmit control signals.
  • the embodiment of the present invention provides a method for selecting a working mode of a headset.
  • FIG. 2 it is a schematic flowchart of a method provided by an embodiment of the present invention. As shown in the figure, the method includes the following steps:
  • the earphone is a C-type Type-C interface earphone
  • the device information of the current earphone may be a device code of the current earphone, and the device code may uniquely identify the earphone device.
  • a chip is set in the earphone, and the chip can be read to obtain the chip information of the chip corresponding to the current earphone, and the chip information can be used as the device information of the current earphone.
  • the jack of the device to be used is a Type-C type interface.
  • the current headset is then read based on the Type-C interface to obtain device information of the current headset.
  • the working mode includes a normal working mode and a guest working mode.
  • the current headset device can access all applications, and the current headset device in the guest working mode can access an application that is preset to allow access.
  • the current headset's working mode can be set to the normal working mode, and then the current headset can access all the applications on the device to which it is connected.
  • the current headset can be set to the guest working mode. In the guest working mode, the current headset can only access some applications on the accessed device, and these applications are allowed to be non-compliant. Approved headset device access, and other applications on the connected device cannot be accessed by the current headset, these applications are equivalent to being hidden.
  • the access rights of the current headset to the accessed device are limited, and the private information of the accessed device is prevented from being eavesdropped.
  • the working mode selection method of the earphone provided by the embodiment of the present invention is obtained based on the Type-C interface.
  • the device information of the front earphone determines the working mode that matches the current earphone according to the device information.
  • the current headset has different access rights to the accessed device, which improves the information security of the accessed device and reduces the risk of the private information of the accessed device being intercepted.
  • terminals involved in the embodiments of the present invention may include, but are not limited to, a personal computer (PC), a personal digital assistant (PDA), a wireless handheld device, a tablet computer, and a tablet computer.
  • PC personal computer
  • PDA personal digital assistant
  • Mobile phones MP3 players, MP4 players, etc.
  • FIG. 3 is a schematic flowchart of a method according to an embodiment of the present invention, as shown in the figure, the method includes the following steps:
  • the access rights of the application on the accessed device may be set first. All applications have privacy access, ie in normal working mode, the headset has access to all applications on the connected device. Further, a secure access is also set for applications that allow guest access, that is, in the guest work mode, the headset can access these applications that have only secure access.
  • the application working mode is built using an application with secure access, in which the name or identity of the application that allows the guest to access can be included.
  • S205 Determine, according to the device information and the pre-stored device information, whether the current headset is an approved headset.
  • the device information of the current headset and the pre-stored device information are searched. If the device information of the current headset exists in the pre-stored device information, the current headset is recognized. For the available headphones, go to step 206. If the device information of the current headset does not exist in the pre-stored device information, indicating that the current headset is an unrecognized headset, step 207 is performed.
  • the current headset's working mode can be set to the normal working mode, and then the current headset can access all the applications on the device to which it is connected.
  • the current headset When the current headset is not a user-approved headset, the current headset can be set to the guest working mode. In the guest working mode, the current headset can only access some applications on the accessed device, and these applications are allowed to be non-compliant. Approved headset device access, and other applications on the connected device cannot be accessed by the current headset, these applications are equivalent to being hidden. By matching the working mode assigned to the current headset, the access rights of the current headset to the accessed device are limited, and the private information of the accessed device is prevented from being eavesdropped.
  • the method for selecting a working mode of the earphone obtained by the embodiment of the present invention obtains device information of the current earphone based on the Type-C interface, and determines an operating mode that matches the current earphone according to the device information.
  • the current headset has different access rights to the application on the accessed device, which improves the information security of the accessed device and reduces the risk of the private information of the accessed device being intercepted.
  • Embodiments of the present invention further provide an apparatus embodiment for implementing the steps and methods in the foregoing method embodiments.
  • FIG. 4 is a functional block diagram of an apparatus according to an embodiment of the present invention. As shown, the apparatus includes an acquisition module 11 and a determination module 12.
  • the obtaining module 11 is configured to obtain device information of the current headset.
  • the determining module 12 is configured to determine an operating mode of the current earphone device according to the device information.
  • the working mode includes a normal working mode and a guest working mode; in the normal working mode, the current earphone can access all the applications, and in the guest working mode, the current earphone can access an application preset to allow the guest to access.
  • the earphone is a C-type Type-C interface earphone
  • the device information of the current earphone may be a device code of the current earphone, and the device code may uniquely identify the earphone device.
  • Type-C During the design of the earphone of the interface, a chip is set in the earphone, and the acquiring module 11 reads the chip to obtain the chip information of the chip corresponding to the current earphone, and the chip information can be used as the device information of the current earphone.
  • the jack of the device to be used is a jack of the Type-C type interface.
  • the obtaining module 11 then reads the current earphone based on the Type-C interface to obtain device information of the current earphone.
  • the determining module 12 may determine, according to the device information, whether the current headset is a user-approved headset, so as to select a matching working mode for the current headset.
  • the working mode includes a normal working mode and a guest working mode. In the normal working mode, the current headset device can access all applications, and the current headset device in the guest working mode can access an application that is preset to allow access.
  • the determination module 12 can set the current headset's working mode to the normal working mode, and then the current headset can access all the applications on the device to which it is connected.
  • the determining module 12 can set the working mode of the current headset to the guest working mode. In the guest working mode, the current headset can only access some applications on the accessed device, and these applications Allowed access by non-accredited headset devices, and other applications on the connected device cannot be accessed by the current headset, these applications are equivalent to being hidden.
  • the access rights of the current headset to the accessed device are limited, and the private information of the accessed device is prevented from being eavesdropped.
  • the earphone working mode selecting device acquires device information of the current earphone based on the Type-C interface, and determines an working mode that matches the current earphone according to the device information.
  • the current headset has different access rights to the accessed device, which improves the information security of the accessed device and reduces the risk of the private information of the accessed device being intercepted.
  • FIG. 5 is a functional block diagram of an apparatus according to an embodiment of the present invention.
  • the earphone working mode selecting means includes a preset module 10 in addition to the obtaining module 11 and the determining module 12 in the third embodiment.
  • the preset module 10 is configured to pre-store device information of all the headphones approved by the user in advance.
  • the obtaining module 11 is specifically configured to read corresponding chip information in the current earphone as device information based on the Type-C interface.
  • the determining module 12 is configured to determine, according to the device information and the pre-stored device information, whether the current earphone is an approved earphone, and if the determination result is yes, set the working mode of the current earphone to a normal working mode, if the determination result is No, set the current headset's working mode to the guest working mode.
  • the preset module 10 is further configured to set access rights for all applications in advance; wherein all applications have privacy access rights, allowing access rights of applications accessed by the guest to be set to secure access rights, and according to The application's preset access rights build the guest work mode.
  • the earphone working mode selecting device acquires device information of the current earphone based on the Type-C interface, and determines an working mode that matches the current earphone according to the device information.
  • the current headset has different access rights to the accessed device, which improves the information security of the accessed device and reduces the risk of the private information of the accessed device being intercepted.
  • a fifth embodiment of the present application provides a non-volatile computer storage medium storing computer-executable instructions, which can execute the earphone working mode selection method in any of the foregoing method embodiments.
  • FIG. 6 is a schematic diagram showing the hardware structure of an electronic device according to a method for selecting a working mode of a headset provided in Embodiment 6 of the present application. As shown in FIG. 6, the device includes:
  • processors 610 and memory 620 one processor 610 is taken as an example in FIG.
  • the apparatus for performing the headphone working mode selection method may further include: an input device 630 and an output device 640.
  • the processor 610, the memory 620, the input device 630, and the output device 640 may be connected by a bus or other means, as exemplified by a bus connection in FIG.
  • the memory 620 is used as a non-volatile computer readable storage medium, and can be used for storing a non-volatile software program, a non-volatile computer executable program, and a module, as in the earphone working mode selection method in the embodiment of the present application.
  • Program instructions/modules eg, acquisition module 11 and determination module 12 shown in FIG. 4
  • the processor 610 executes various functional applications and data processing of the electronic device by executing non-volatile software programs, instructions, and modules stored in the memory 620, that is, implementing the above-described method embodiment earphone working mode selection method.
  • the memory 620 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to use of the earphone operation mode selection means, and the like.
  • memory 620 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
  • the memory 620 can optionally include memory remotely located relative to the processor 610 that can be connected to the headset operating mode selection device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • Input device 630 can receive input numeric or character information and generate key signal inputs related to user settings and function control of the headset operating mode selection device.
  • the output device 640 can include a display device such as a display screen.
  • the one or more modules are stored in the memory 620, and when executed by the one or more processors 610, perform a headset mode selection method in any of the above method embodiments.
  • the above product can perform the method provided by the embodiment of the present application, and has the corresponding function of the execution method. Modules and benefits. For technical details that are not described in detail in this embodiment, reference may be made to the method provided by the embodiments of the present application.
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

本发明实施例提供了一种耳机工作模式选择方法、装置、电子设备及非易失性计算机存储介质,通过获取模块基于Type-C接口获取当前耳机的设备信息,确定模块根据该设备信息确定与当前耳机匹配的工作模式。本发明实施例通过为不同的工作模式设置不同的访问权限,相应地不同的工作模式下当前耳机对所接入的设备具有不同的访问权限,提高了所接入设备的信息安全性,降低所接入设备的私密信息被窃听的风险。

Description

一种耳机工作模式选择方法、装置、电子设备及非易失性计算机存储介质
相关申请的交叉参考
本申请要求于2016年3月31日提交中国专利局、申请号为201610202062.X、发明名称为“一种耳机工作模式选择方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及技术通信技术领域,尤其涉及一种耳机工作模式选择方法、装置、电子设备及非易失性计算机存储介质。
背景技术
目前,现有的可以支持耳机插入的电子设备,大多采用的是的3.5mm耳机,耳机的使用者只要将耳机插入电子设备的耳机插孔中,耳机的使用者就可以访问该电子设备上所有的与耳机先关的应用程序。
在实现本发明过程中,发明人发现现有技术中至少存在如下问题:
现有的耳机不能识别出耳机与设备对应用户的关系,对所有的使用者电子设备的相关应用程序是完全开放,现有的耳机就成为所插入的电子设备的安全隐患,使得该电子设备中的需要保密的信息存在被窃听的风险。
发明内容
有鉴于此,本发明实施例提供了一种耳机工作模式选择方法、装置、电子设备及非易失性计算机存储介质,用以解决现有的耳机不能识别出耳机与设备对应用户的关系,往往成为所插入的电子设备的安全隐患,使得该电子设备中的私密信息存在被窃听的风险的问题。
一方面,本发明实施例提供了一种耳机工作模式选择方法,包括:
获取当前耳机的设备信息;
根据所述设备信息确定当前耳机设备的工作模式;
其中,所述工作模式包括正常工作模式和访客工作模式;所述正常工作模式下当前耳机可访问所有的应用程序,所述访客工作模式下当前耳机可访问预先设置成允许访客访问的应用程序。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,
所述获取当前耳机的设备信息之前,包括:
预先将用户认可的所有耳机的设备信息预先进行存储。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,
所述获取当前耳机的设备信息,包括:
基于C类型Type-C接口读取当前耳机中对应的芯片信息作为设备信息。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,
所述根据所述设备信息确定当前耳机的工作模式,包括:
根据所述设备信息与预先存储的设备信息判断当前耳机是否为所述认可的耳机;
如果判断结果为是,将当前耳机的工作模式设置为所述正常工作模式;
如果判断结果为否,将当前耳机的工作模式设置为所述访客工作模式。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,
所述获取当前耳机设备的设备信息之前,还包括:
预先为所有的应用程序设置访问权限;其中,所有应用程序均具有隐私访问权限,允许被访客访问的应用程序的访问权限设置成安全访问权限;
根据所述应用程序预设的访问权限构建所述访客工作模式。
上述技术方案中的一个技术方案具有如下有益效果:
基于Type-C接口获取当前耳机的设备信息,根据该设备信息确定与当前耳机匹配的工作模式。不同的工作模式下当前耳机对所接入的设备具有不同的访问权限,提高了所接入设备的信息安全性,降低所接入设备的私密信 息被窃听的风险。
另一方面,本发明实施例提供了一种耳机工作模式选择装置,包括:
获取模块,用于获取当前耳机的设备信息;
确定模块,用于根据所述设备信息确定当前耳机设备的工作模式;
其中,所述工作模式包括正常工作模式和访客工作模式;所述正常工作模式下当前耳机可访问所有的应用程序,所述访客工作模式下当前耳机可访问预先设置成允许访客访问的应用程序。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,
所述耳机工作模式选择装置,还包括:
预设模块,用于预先将用户认可的所有耳机的设备信息预先进行存储。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,
所述获取模块,具体用于基于C类型Type-C接口读取当前耳机中对应的芯片信息作为设备信息
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,
所述确定模块,具体用于根据所述设备信息与预先存储的设备信息判断当前耳机是否为所述认可的耳机,如果判断结果为是,将当前耳机的工作模式设置为所述正常工作模式,如果判断结果为否,将当前耳机的工作模式设置为所述访客工作模式。
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,
所述预设模块,还用于预先为所有的应用程序设置访问权限;其中,所有应用程序均具有隐私访问权限,允许被访客访问的应用程序的访问权限设置成安全访问权限,以及根据所述应用程序预设的访问权限构建所述访客工作模式。
另一方面,本发明实施例提供了一种电子设备,包括:
至少一个处理器;以及,
与所述至少一个处理器通信连接的存储器,其中,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所 述至少一个处理器执行,以使所述至少一个处理器能够:
获取当前耳机的设备信息;
根据所述设备信息确定当前耳机设备的工作模式;
其中,所述工作模式包括正常工作模式和访客工作模式;所述正常工作模式下当前耳机可访问所有的应用程序,所述访客工作模式下当前耳机可访问预先设置成允许访客访问的应用程序。
另一方面,本发明实施例提供了一种非易失性计算机存储介质,所述非易失性计算机存储介质存储计算机指令,所述计算机指令用于使所述计算机执行上述耳机工作模式选择方法。
另一方面,本发明实施例提供了一种计算机程序产品,所述计算机程序产品包括存储在非易失性计算机存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述耳机工作模式选择方法。
上述技术方案中的一个技术方案具有如下有益效果:
获取模块基于Type-C接口获取当前耳机的设备信息,确定模块根据该设备信息确定与当前耳机匹配的工作模式。不同的工作模式下当前耳机对所接入的设备具有不同的访问权限,提高了所接入设备的信息安全性,降低所接入设备的私密信息被窃听的风险。
附图概述
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。
图1为本发明实施例提供的Type-C接口的示意图;
图2为本发明实施例一提供的耳机工作模式选择方法的流程示意图;
图3为本发明实施例二提供的耳机工作模式选择方法的流程示意图;
图4为本发明实施例三提供的耳机工作模式选择装置的结构示意图;
图5为本发明实施例四提供的耳机工作模式选择装置的结构示意图。
图6是本申请实施例六提供的耳机工作模式选择方法的电子设备的硬件结构示意图。
本申请的较佳实施方式
为了更好的理解本发明的技术方案,下面结合附图对本发明实施例进行详细描述。
应当明确,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。
在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。
应当理解,本文中使用的术语“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。
取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”或“响应于检测”。类似地,取决于语境,短语“如果确定”或“如果检测(陈述的条件或事件)”可以被解释成为“当确定时”或“响应于确定”或“当检测(陈述的条件或事件)时”或“响应于检测(陈述的条件或事件)”。
本发明实施例所提供的方法可以应用于采用Type-C接口的耳机中,为了便于更好的理解本发明实施例,下面对Type-C接口进行简要介绍。
图1为本发明实施例提供的Type-C接口的示意图,Type-C接口可以用于耳机和终端设备之间进行互联,其中,如图1所示,Dp和Dn管脚分别作为耳机的左右两转换单元的输入管脚,CC管脚为耳机的功能管脚,可以 用于传输控制信号。
实施例一
本发明实施例给出一种耳机工作模式选择的方法,请参考图2,其为本发明实施例所提供的方法的流程示意图,如图所示,该方法包括以下步骤:
S101、获取当前耳机的设备信息。
本实施例中,耳机为C型Type-C接口的耳机,当前耳机的设备信息可以为当前耳机的设备码,该设备码可以唯一的标识该耳机设备。在Type-C接口的耳机的设计过程中,在耳机中会设置一个芯片,对该芯片进行读取能获取到当前耳机对应的芯片的芯片信息,可以将该芯片信息可以作为当前耳机的设备信息。
当用户将当前耳机插入到待使用设备的插孔中,其中该待使用设备的插孔为Type-C型的接口形式。然后基于该Type-C接口对当前耳机进行读取,以获取到当前耳机的设备信息。
S102、根据设备信息确定当前耳机设备的工作模式。
在获取到当前耳机的设备信息后,可以根据该设备信息确定该当前耳机是否为用户认可的耳机设备,以为该当前耳机选择匹配的工作模式。其中,工作模式包括正常工作模式和访客工作模式。正常工作模式下当前耳机设备可访问所有的应用程序,访客工作模式下当前耳机设备可访问预先设置成允许访问的应用程序。
当前耳机为用户认可的耳机时,可以将当前耳机的工作模式设置为正常工作模式,然后当前耳机就可以访问其所接入的设备上所有的应用程序。当前耳机非用户认可的耳机时,可以将当前耳机的工作模式设置为访客工作模式,在访客工作模式下,当前耳机只能访问所接入的设备上的部分应用程序,这些应用程序允许被非认可耳机设备访问,而所接入的设备上的其他应用程序不能被当前耳机访问,这些应用程序相当于处于隐藏状态。通过为当前耳机分配的匹配工作模式,来限定当前耳机对所接入设备的访问权限,避免所接入设备的私密信息被窃听。
本发明实施例提供的耳机工作模式选择方法,基于Type-C接口获取当 前耳机的设备信息,根据该设备信息确定与当前耳机匹配的工作模式。不同的工作模式下当前耳机对所接入的设备具有不同的访问权限,提高了所接入设备的信息安全性,降低所接入设备的私密信息被窃听的风险。
需要说明的是,本发明实施例中所涉及的终端可以包括但不限于个人计算机(Personal Computer,PC)、个人数字助理(Personal Digital Assistant,PDA)、无线手持设备、平板电脑(Tablet Computer)、手机、MP3播放器、MP4播放器等。
实施例二
本发明实施例给出另一种耳机工作模式选择的方法,请参考图3,其为本发明实施例所提供的方法的流程示意图,如图所示,该方法包括以下步骤:
S201、预先将用户认可的所有耳机的设备信息预先进行存储。
S202、预先为所有的应用程序设置访问权限。
其中,所有应用程序均具有隐私访问权限,允许被访客访问的应用程序的访问权限设置成安全访问权限。
为了保证耳机所接入的设备的隐私性,可以先对所接入的设备上的应用程序的访问权限进行设置。所有的应用程序均具有隐私访问权限,即在正常工作模式,耳机可以访问所接入的设备上的所有的应用程序。进一步地,还会对允许访客访问的应用程序设置一个安全访问权限,即在访客工作模式下,耳机可以访问这些只能访问这些具有安全访问权限的应用程序。
S203、根据应用程序预设的访问权限构建访客工作模式。
在对应用程序的访问权限设置完成后,利用具有安全访问权限的应用程序构建访客工作模式,在该访问工作模式下可以包括允许访客访问的应用程序的名称或者标识。
S204、基于Type-C接口读取当前耳机中对应的芯片信息作为设备信息。
S205、根据设备信息与预先存储的设备信息判断当前耳机是否为认可的耳机。
将获取到的当前耳机的设备信息与预先存储的设备信息中进行查找,如果该当前耳机的设备信息存在于预先存储的设备信息中,说明当前耳机为认 可的耳机,执行步骤206。如果该当前耳机的设备信息未存在于预先存储的设备信息中,说明当前耳机为不被认可的耳机,执行步骤207。
S206、将当前耳机的工作模式设置为正常工作模式。
当前耳机为用户认可的耳机时,可以将当前耳机的工作模式设置为正常工作模式,然后当前耳机就可以访问其所接入的设备上所有的应用程序。
S207、将当前耳机的工作模式设置为访客工作模式。
当前耳机非用户认可的耳机时,可以将当前耳机的工作模式设置为访客工作模式,在访客工作模式下,当前耳机只能访问所接入的设备上的部分应用程序,这些应用程序允许被非认可耳机设备访问,而所接入的设备上的其他应用程序不能被当前耳机访问,这些应用程序相当于处于隐藏状态。通过为当前耳机分配的匹配工作模式,来限定当前耳机对所接入设备的访问权限,避免所接入设备的私密信息被窃听。
本发明实施例提供的耳机工作模式选择方法,基于Type-C接口获取当前耳机的设备信息,根据该设备信息确定与当前耳机匹配的工作模式。不同的工作模式下当前耳机对所接入的设备上应用程序具有不同的访问权限,提高了所接入设备的信息安全性,降低所接入设备的私密信息被窃听的风险。
本发明实施例进一步给出实现上述方法实施例中各步骤及方法的装置实施例。
实施例三
请参考图4,其为本发明实施例所提供的装置的功能方块图。如图所示,该装置包括:获取模块11和确定模块12。
获取模块11,用于获取当前耳机的设备信息。确定模块12,用于根据设备信息确定当前耳机设备的工作模式。
其中,工作模式包括正常工作模式和访客工作模式;正常工作模式下当前耳机可访问所有的应用程序,访客工作模式下当前耳机可访问预先设置成允许访客访问的应用程序。
本实施例中,耳机为C型Type-C接口的耳机,当前耳机的设备信息可以为当前耳机的设备码,该设备码可以唯一的标识该耳机设备。在Type-C 接口的耳机的设计过程中,在耳机中会设置一个芯片,获取模块11对该芯片进行读取能获取到当前耳机对应的芯片的芯片信息,可以将该芯片信息可以作为当前耳机的设备信息。
当用户将当前耳机插入到待使用设备的插孔中,其中该待使用设备的插孔为Type-C型的接口形式的插孔。然后获取模块11基于该Type-C接口对当前耳机进行读取,以获取到当前耳机的设备信息。
在获取到当前耳机的设备信息后,确定模块12可以根据该设备信息确定该当前耳机是否为用户认可的耳机,以为该当前耳机选择匹配的工作模式。其中,工作模式包括正常工作模式和访客工作模式。正常工作模式下当前耳机设备可访问所有的应用程序,访客工作模式下当前耳机设备可访问预先设置成允许访问的应用程序。
当前耳机为用户认可的耳机时,确定模块12可以将当前耳机的工作模式设置为正常工作模式,然后当前耳机就可以访问其所接入的设备上所有的应用程序。当前耳机非用户认可的耳机时,确定模块12可以将当前耳机的工作模式设置为访客工作模式,在访客工作模式下,当前耳机只能访问所接入的设备上的部分应用程序,这些应用程序允许被非认可耳机设备访问,而所接入的设备上的其他应用程序不能被当前耳机访问,这些应用程序相当于处于隐藏状态。通过为当前耳机分配的匹配工作模式,来限定当前耳机对所接入设备的访问权限,避免所接入设备的私密信息被窃听。
由于本实施例中的各单元能够执行图2所示的方法,本实施例未详细描述的部分,可参考对图2的相关说明。
本发明实施例提供的耳机工作模式选择装置,基于Type-C接口获取当前耳机的设备信息,根据该设备信息确定与当前耳机匹配的工作模式。不同的工作模式下当前耳机对所接入的设备具有不同的访问权限,提高了所接入设备的信息安全性,降低所接入设备的私密信息被窃听的风险。
实施例四
请参考图5,其为本发明实施例所提供的装置的功能方块图。如图所示, 该耳机工作模式选择装置除了包括上述实施例三中的获取模块11和确定模块12之外,还包括预设模块10。
预设模块10,用于预先将用户认可的所有耳机的设备信息预先进行存储。
进一步地,获取模块11,具体用于基于Type-C接口读取当前耳机中对应的芯片信息作为设备信息。
进一步地,确定模块12,具体用于,根据设备信息与预先存储的设备信息判断当前耳机是否为认可的耳机,如果判断结果为是,将当前耳机的工作模式设置为正常工作模式,如果判断结果为否,将当前耳机的工作模式设置为访客工作模式。
进一步地,预设模块10,还用于预先为所有的应用程序设置访问权限;其中,所有应用程序均具有隐私访问权限,允许被访客访问的应用程序的访问权限设置成安全访问权限,以及根据应用程序预设的访问权限构建访客工作模式。
由于本实施例中的各单元能够执行图1~2所示的方法,本实施例未详细描述的部分,可参考对图1~2的相关说明。
本发明实施例提供的耳机工作模式选择装置,基于Type-C接口获取当前耳机的设备信息,根据该设备信息确定与当前耳机匹配的工作模式。不同的工作模式下当前耳机对所接入的设备具有不同的访问权限,提高了所接入设备的信息安全性,降低所接入设备的私密信息被窃听的风险。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
实施例五
本申请实施例五提供了一种非易失性计算机存储介质,所述计算机存储介质存储有计算机可执行指令,该计算机可执行指令可执行上述任意方法实施例中的耳机工作模式选择方法。
实施例六
图6是本申请实施例六提供的耳机工作模式选择方法的电子设备的硬件结构示意图,如图6所示,该设备包括:
一个或多个处理器610以及存储器620,图6中以一个处理器610为例。
执行耳机工作模式选择方法的设备还可以包括:输入装置630和输出装置640。
处理器610、存储器620、输入装置630和输出装置640可以通过总线或者其他方式连接,图6中以通过总线连接为例。
存储器620作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本申请实施例中的耳机工作模式选择方法对应的程序指令/模块(例如,附图4所示的获取模块11和确定模块12)。处理器610通过运行存储在存储器620中的非易失性软件程序、指令以及模块,从而执行电子设备的各种功能应用以及数据处理,即实现上述方法实施例耳机工作模式选择方法。
存储器620可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据耳机工作模式选择装置的使用所创建的数据等。此外,存储器620可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器620可选包括相对于处理器610远程设置的存储器,这些远程存储器可以通过网络连接至耳机工作模式选择装置。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
输入装置630可接收输入的数字或字符信息,以及产生与耳机工作模式选择装置的用户设置以及功能控制有关的键信号输入。输出装置640可包括显示屏等显示设备。
所述一个或者多个模块存储在所述存储器620中,当被所述一个或者多个处理器610执行时,执行上述任意方法实施例中的耳机工作模式选择方法。
上述产品可执行本申请实施例所提供的方法,具备执行方法相应的功能 模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本申请实施例所提供的方法。
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。

Claims (13)

  1. 一种耳机工作模式选择方法,应用于电子设备上,其特征在于,包括:
    获取当前耳机的设备信息;
    根据所述设备信息确定当前耳机设备的工作模式;
    其中,所述工作模式包括正常工作模式和访客工作模式;所述正常工作模式下当前耳机可访问所有的应用程序,所述访客工作模式下当前耳机可访问预先设置成允许访客访问的应用程序。
  2. 根据权利要求1所述的方法,其特征在于,所述获取当前耳机的设备信息之前,包括:
    预先将用户认可的所有耳机的设备信息预先进行存储。
  3. 根据权利要求2所述的方法,其特征在于,所述获取当前耳机的设备信息,包括:
    基于C类型Type-C接口读取当前耳机中对应的芯片信息作为设备信息。
  4. 根据权利要求3所述的方法,其特征在于,所述根据所述设备信息确定当前耳机的工作模式,包括:
    根据所述设备信息与预先存储的设备信息判断当前耳机是否为所述认可的耳机;
    如果判断结果为是,将当前耳机的工作模式设置为所述正常工作模式;
    如果判断结果为否,将当前耳机的工作模式设置为所述访客工作模式。
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述获取当前耳机设备的设备信息之前,还包括:
    预先为所有的应用程序设置访问权限;其中,所有应用程序均具有隐私访问权限,允许被访客访问的应用程序的访问权限设置成安全访问权限;
    根据所述应用程序预设的访问权限构建所述访客工作模式。
  6. 一种耳机工作模式选择装置,其特征在于,包括:
    获取模块,用于获取当前耳机的设备信息;
    确定模块,用于根据所述设备信息确定当前耳机设备的工作模式;
    其中,所述工作模式包括正常工作模式和访客工作模式;所述正常工作模式下当前耳机可访问所有的应用程序,所述访客工作模式下当前耳机可访问预先设置成允许访客访问的应用程序。
  7. 根据权利要求6所述的装置,其特征在于,还包括:
    预设模块,用于预先将用户认可的所有耳机的设备信息预先进行存储。
  8. 根据权利要求6或7所述的装置,其特征在于,所述获取模块,具体用于基于C类型Type-C接口读取当前耳机中对应的芯片信息作为设备信息。
  9. 根据权利要求8所述的装置,其特征在于,所述确定模块,具体用于根据所述设备信息与预先存储的设备信息判断当前耳机是否为所述认可的耳机,如果判断结果为是,将当前耳机的工作模式设置为所述正常工作模式,如果判断结果为否,将当前耳机的工作模式设置为所述访客工作模式。
  10. 根据权利要求6-9任一项所述的装置,其特征在于,所述预设模块,还用于预先为所有的应用程序设置访问权限;其中,所有应用程序均具有隐私访问权限,允许被访客访问的应用程序的访问权限设置成安全访问权限,以及根据所述应用程序预设的访问权限构建所述访客工作模式。
  11. 一种电子设备,包括:
    至少一个处理器;以及,
    与所述至少一个处理器通信连接的存储器,其中,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:
    获取当前耳机的设备信息;
    根据所述设备信息确定当前耳机设备的工作模式;
    其中,所述工作模式包括正常工作模式和访客工作模式;所述正常工作模式下当前耳机可访问所有的应用程序,所述访客工作模式下当前耳机可访 问预先设置成允许访客访问的应用程序。
  12. 一种非易失性计算机存储介质,其特征在于,所述非易失性计算机存储介质存储计算机指令,所述计算机指令用于使所述计算机执行权利要求1-5任一项所述的方法。
  13. 一种计算机程序产品,所述计算机程序产品包括存储在非易失性计算机存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行权利要求1-5任一项所述的方法。
PCT/CN2016/096395 2016-03-31 2016-08-23 一种耳机工作模式选择方法、装置、电子设备及非易失性计算机存储介质 Ceased WO2017166605A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610202062.XA CN105828232A (zh) 2016-03-31 2016-03-31 一种耳机工作模式选择方法及装置
CN201610202062X 2016-03-31

Publications (1)

Publication Number Publication Date
WO2017166605A1 true WO2017166605A1 (zh) 2017-10-05

Family

ID=56526581

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/096395 Ceased WO2017166605A1 (zh) 2016-03-31 2016-08-23 一种耳机工作模式选择方法、装置、电子设备及非易失性计算机存储介质

Country Status (2)

Country Link
CN (1) CN105828232A (zh)
WO (1) WO2017166605A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105828232A (zh) * 2016-03-31 2016-08-03 乐视控股(北京)有限公司 一种耳机工作模式选择方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101221606A (zh) * 2007-01-12 2008-07-16 迈世亚(北京)科技有限公司 移动存储设备和移动存储设备的认证方法
US20130254876A1 (en) * 2012-03-23 2013-09-26 Chi Mei Communication Systems, Inc. Electronic device and switching method using the same
CN103650528A (zh) * 2011-07-13 2014-03-19 诺基亚公司 用于根据隐私过滤器和内容选择规则向耳机提供内容的方法和装置
CN105828232A (zh) * 2016-03-31 2016-08-03 乐视控股(北京)有限公司 一种耳机工作模式选择方法及装置

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208211B (zh) * 2015-09-29 2019-02-12 努比亚技术有限公司 一种隐私保护装置、方法及移动终端

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101221606A (zh) * 2007-01-12 2008-07-16 迈世亚(北京)科技有限公司 移动存储设备和移动存储设备的认证方法
CN103650528A (zh) * 2011-07-13 2014-03-19 诺基亚公司 用于根据隐私过滤器和内容选择规则向耳机提供内容的方法和装置
US20130254876A1 (en) * 2012-03-23 2013-09-26 Chi Mei Communication Systems, Inc. Electronic device and switching method using the same
CN105828232A (zh) * 2016-03-31 2016-08-03 乐视控股(北京)有限公司 一种耳机工作模式选择方法及装置

Also Published As

Publication number Publication date
CN105828232A (zh) 2016-08-03

Similar Documents

Publication Publication Date Title
US10275581B2 (en) Method and apparatus for sharing content between electronic devices
EP3148225B1 (en) Bluetooth connection-based audio playback method and apparatus
CN104636924B (zh) 一种安全支付方法、服务器以及系统
CN103716793B (zh) 接入点信息分享方法和装置
US9749329B2 (en) Network connection managing device, system and method
CN104601529B (zh) 终端账号管理方法及装置
CN104346560B (zh) 一种安全验证方法及装置
US20190005276A1 (en) Security Adjustments in Mobile Devices
CN105227321A (zh) 信息处理方法、服务器及客户端
US9614673B2 (en) Method of managing keys and electronic device adapted to the same
CN106326773A (zh) 一种照片加密管理的方法、装置及终端
WO2017206452A1 (zh) 一种信息处理方法及增强现实设备
CN106534324A (zh) 一种数据共享方法及云服务器
WO2015070595A1 (en) Method, apparatus and system for mobile payment
CN112165704A (zh) 信息共享方法、耳机盒及计算机可读存储介质
US10567962B1 (en) Systems and methods for connecting internet-connected devices to wireless access points
CN106792699A (zh) 一种无线保真Wi‑Fi连接方法及移动终端
CN106469028A (zh) 一种数据迁移方法及移动终端
CN106203143A (zh) 一种应用程序锁定的方法、装置及移动终端
CN106487878B (zh) 一种数据迁移的方法及终端
TWI779230B (zh) 生物特徵應用功能的啟用方法、系統、裝置及設備
WO2018049936A2 (zh) 一种数据迁移的方法及终端
CN106954211B (zh) 一种密钥写入方法及移动终端
CN114564764A (zh) 一种密码输入方法、装置、设备及存储介质
US20160026814A1 (en) Access control of external memory

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 16896377

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16896377

Country of ref document: EP

Kind code of ref document: A1