WO2020000997A1 - Control method and apparatus for terminal with sensor - Google Patents

Control method and apparatus for terminal with sensor Download PDF

Info

Publication number
WO2020000997A1
WO2020000997A1 PCT/CN2019/070139 CN2019070139W WO2020000997A1 WO 2020000997 A1 WO2020000997 A1 WO 2020000997A1 CN 2019070139 W CN2019070139 W CN 2019070139W WO 2020000997 A1 WO2020000997 A1 WO 2020000997A1
Authority
WO
WIPO (PCT)
Prior art keywords
distance sensor
terminal
bit sequence
sensing instruction
control function
Prior art date
Application number
PCT/CN2019/070139
Other languages
French (fr)
Chinese (zh)
Inventor
王永清
Original Assignee
青岛海信移动通信技术股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 青岛海信移动通信技术股份有限公司 filed Critical 青岛海信移动通信技术股份有限公司
Publication of WO2020000997A1 publication Critical patent/WO2020000997A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Definitions

  • the present disclosure relates to the technical field of sensors, and in particular, to a control method and device for a terminal with a sensor.
  • smart terminal devices are becoming more and more common, and smart terminal devices refer to personal computers with multimedia functions, independent operating systems, and independent operating spaces. Users can install software, games, navigation and other third parties by themselves.
  • Programs provide smart devices, such as home smart terminals, 3G smart terminals, and financial smart terminals. These devices support functions such as audio, video, and data, such as video phones, conference terminals, and built-in multimedia.
  • the present disclosure provides a control method and device for a terminal with a sensor to solve a problem that a user controls a control function in a smart terminal to be too single.
  • a control method for a sensor-equipped terminal includes:
  • the terminal generates a bit sequence code corresponding to the distance sensor according to the sensing instruction received by the distance sensor; then determines the control function corresponding to the bit sequence code according to the correspondence between the bit sequence code and the control function, and operates according to the determined control function. .
  • the value of each bit of the bit sequence code is expressed as an occlusion sensing instruction or an unocclusion sensing instruction.
  • the terminal if there is a distance sensor, the terminal generates a bit sequence subcode according to a sensing instruction received through the distance sensor, and uses the bit sequence subcode as a bit sequence code.
  • the terminal if there are at least two distance sensors, the terminal generates a bit sequence subcode corresponding to each distance sensor according to the sensing instruction received through each distance sensor, and The bit sequence subcodes constitute a bit sequence code.
  • a value corresponding to the occlusion sensing instruction is set to indicate the sensing instruction as the occlusion sensing instruction.
  • a value indicating that the sensing instruction is an unobstructed sensing instruction is set on a bit corresponding to the unobstructed sensing instruction.
  • control function determined by the terminal if the control function determined by the terminal is to increase the volume, perform a volume increase operation; or if the control function determined by the terminal is to increase the volume, perform a volume decrease operation.
  • a terminal includes a distance sensor, a memory, and a processor, where:
  • the distance sensor is configured to detect a distance between an external object and a terminal
  • the memory is in communication with the distance sensor and stores computer instructions and data associated with the distance sensor;
  • the processor is in communication with the memory and the distance sensor and is configured to execute the computer instructions to enable the terminal to implement:
  • a bit sequence code corresponding to the distance sensor is generated; a control function corresponding to the bit sequence code is determined according to the correspondence between the bit sequence code and the control function; and the operation is performed according to the determined control function.
  • the value of each bit of the bit sequence code is expressed as an occlusion sensing instruction or an unocclusion induction instruction.
  • the terminal includes a distance sensor
  • the processor is specifically configured to:
  • a bit sequence subcode is generated according to a sensing instruction received by the distance sensor, and the bit sequence subcode is used as the bit sequence code.
  • the terminal includes multiple distance sensors, and the processor is specifically configured to:
  • a bit sequence subcode corresponding to each distance sensor is generated, and the bit sequence subcode corresponding to each distance sensor is formed into a bit sequence code.
  • the processor is specifically configured to:
  • a value for indicating that the sensing instruction is an occlusion sensing instruction is set on a bit corresponding to the occlusion sensing instruction.
  • the processor is specifically configured to:
  • a value for indicating that the sensing instruction is an unobstructed sensing instruction is set on a bit corresponding to the unobstructed sensing instruction.
  • the processor is specifically configured to:
  • an embodiment of the present disclosure provides a computer-storable medium on which a computer program is stored, and when the program is executed by a processor, implements steps of a method for controlling a terminal with a sensor according to an embodiment of the present disclosure.
  • FIG. 1 is a schematic diagram of a control method according to an embodiment of the present disclosure
  • FIG. 2 is a schematic structural diagram of two side-by-side distance sensors S1 and S2 arranged inside a terminal according to an embodiment of the present disclosure
  • FIG. 3 is a schematic structural diagram of two distance sensors S1 and S2 disposed at an inclined angle inside a terminal according to an embodiment of the present disclosure
  • FIG. 4 is a schematic structural diagram of distance sensors S1 and S2 located on a side of a terminal according to an embodiment of the present disclosure
  • FIG. 5 is a schematic structural diagram of a plurality of distance sensors in a terminal according to an embodiment of the present disclosure
  • FIG. 6 is a schematic diagram of a correspondence relationship between a bit sequence code and a control function according to an embodiment of the present disclosure
  • FIG. 7 is a schematic diagram of a correspondence relationship between another bit sequence code and a control function according to an embodiment of the present disclosure
  • FIG. 9 is a schematic structural diagram of a control device according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of another control device according to an embodiment of the present disclosure.
  • the embodiments of the present disclosure provide a method and device for controlling, which can be applied to an application scenario where a user controls a control function in a smart terminal. If the user wants to quickly turn on the flashlight in the smart phone, he needs to click the button of the corresponding function in the set list before turning it on.
  • the terminal may determine the corresponding control function according to the sensing instruction received through the distance sensor.
  • the sensing instruction When the user wants to control the control function in the smart terminal, it is sufficient to send the sensing instruction corresponding to the control function.
  • the traditional way is no longer adopted, so that the way for the user to control the control function in the smart terminal is no longer too simple.
  • an embodiment of the present disclosure provides a method for controlling.
  • the method includes:
  • Step 100 The terminal generates a bit sequence code corresponding to the distance sensor according to the sensing instruction received through the distance sensor.
  • Step 101 The terminal determines a control function corresponding to the bit sequence code according to a correspondence between the bit sequence code and the control function.
  • Step 102 The terminal operates according to the determined control function.
  • the terminal may be a computer device used in mobile, and may also be called a mobile device, including a mobile phone, a notebook, a tablet computer, and the like.
  • the terminal includes a sensor, a display unit (such as a display screen), a radio frequency (RF) circuit, a power source, a processor, a memory, an input unit, a camera, a communication interface, and wireless fidelity. , WiFi) module and other components, can communicate with other terminals, base stations, etc. that have communication functions.
  • a display unit such as a display screen
  • RF radio frequency
  • a bit sequence code is generated according to the sensing instruction, and the corresponding control function can be determined to operate according to the correspondence between the bit sequence code and the control function. Since the terminal in this embodiment of the present disclosure can determine the corresponding control function according to the sensing instruction received through the distance sensor, when the user wants to control the control function in the smart terminal, it is only necessary to send the sensing instruction corresponding to the control function. The traditional method is adopted again, so that the user can no longer control the control function in the smart terminal in a single way. The control method is described in detail below.
  • the terminal After the terminal determines to enable the function of receiving a sensing instruction through the distance sensor, it generates a bit sequence code corresponding to the distance sensor according to the sensing instruction received through the distance sensor.
  • the terminal has only one distance sensor, generating a bit sequence subcode according to the sensing instruction received by the distance sensor, and using the bit sequence subcode as the bit sequence code;
  • a bit sequence subcode corresponding to each distance sensor is generated according to the sensing instruction received by each distance sensor, and the bit sequence subcode corresponding to each distance sensor is composed into bits The serial code.
  • each bit of the bit sequence code is expressed as an occlusion sensing instruction or an unoccluded induction instruction. For example, when the value of each bit of the bit sequence code is 1, it is expressed as an occlusion sensing instruction. When the value of each bit of the bit sequence code is 0, it is represented as an unobstructed sensing command.
  • any distance sensor sets a value indicating a sensing instruction on a corresponding bit according to different types of sensing instructions received in a period, further increasing the diversity of control methods, so that The way users control the control functions in smart terminals is no longer too simple.
  • the terminal After the terminal receives the occlusion sensing instruction within a period through the distance sensor, the terminal sets a value corresponding to the occlusion sensing instruction to indicate that the sensing instruction is an occlusion sensing instruction;
  • the terminal contains a distance sensor S1, and the terminal receives the occlusion sensing instruction through the distance sensor S1. At this time, a value indicating that the sensing instruction is an occlusion sensing instruction is set on a bit corresponding to the received occlusion sensing instruction, such as setting Is 1.
  • a value corresponding to the unobstructed sensing instruction is set on a bit corresponding to the unobstructed sensing instruction.
  • the terminal includes a distance sensor S1, and the terminal receives the unobstructed sensing command through the distance sensor S1. At this time, a bit for indicating that the sensing command is an unobstructed sensing command is set on the bit corresponding to the received unobstructed sensing command. Value, if set to 0.
  • the period of the terminal receiving the sensing instruction through the distance sensor can be set according to actual needs, which is not limited in the embodiment of the present disclosure.
  • the period of the period can be set to 2 seconds.
  • the terminal contains two side-by-side distance sensors S1 and S2.
  • the terminal first receives the unobstructed sensing command through the distance sensor S1 in the cycle.
  • the bit corresponding to the received unobstructed sensing command is In the bit, set the value 0 used to indicate that the sensing instruction is an unobstructed sensing instruction, and then receive the obstructing sensing instruction through the distance sensor S1, then set the bit corresponding to the received obstructing sensing instruction to indicate that the sensing instruction is
  • the value of the occlusion sensing instruction is 1.
  • a bit sequence subcode (01) is generated for the distance sensor S1;
  • the terminal receives the unobstructed sensing command through the distance sensor S2 during the period. At this time, a value of 0 is used to indicate that the sensing command is an unobstructed sensing command on the bit corresponding to the received unobstructed sensing command.
  • a value 1 indicating that the sensing instruction is an occlusion sensing instruction is set on the bit corresponding to the received occlusion sensing instruction.
  • a bit sequence subcode is generated for the distance sensor S2. (01);
  • bit sequence subcodes corresponding to the distance sensors S1 and S2 After the terminal generates bit sequence subcodes corresponding to the distance sensors S1 and S2, the bit sequence subcodes corresponding to S1 and S2 are combined to obtain a bit sequence code (0101).
  • the terminal contains two distance sensors S1 and S2 that are discharged at an oblique angle.
  • the terminal first receives an unobstructed sensing command through the distance sensor S1 during the period. At this time, the unobstructed sensing command received
  • the corresponding bit is set to a value of 0 to indicate that the sensing instruction is an unobstructed sensing instruction, and then receives the obstructing sensing instruction through the distance sensor S1.
  • the bit corresponding to the received obstructing sensing instruction is set to Indicates that the sensing command is the value 1 of the blocking sensing command, and then receives the non-blocking sensing command through the distance sensor S1, sets the value 0 to the corresponding bit, and then receives the blocking sensing command through the distance sensor S1, then the corresponding bit
  • a bit sequence subcode (0101) is generated for the distance sensor S1;
  • the terminal only receives the unobstructed sensing command through the distance sensor S2 during the period. At this time, a value of 0 is used to indicate that the sensing command is an unobstructed sensing command on the bit corresponding to the received unobstructed sensing command.
  • the sensor S2 then generates a bit sequence subcode (0).
  • the distance sensor combines the bit sequence subcodes corresponding to S1 and S2 to obtain a bit sequence code (01010).
  • the terminal specifically includes the number of example sensors and the placement position between the distance sensors can be designed by combining the function and structure of the product, which is not limited in the embodiments of the present disclosure.
  • the current structure can be used to place all of them directly above the terminal, or both distance sensors can be placed on the side of the terminal, or some of the existing 4 distance sensors can be placed on the side of the terminal and part of them. On the back of the terminal, as shown in Figure 4 and Figure 5.
  • the terminal determines the control function corresponding to the bit sequence code according to the correspondence between the bit sequence code and the control function.
  • bit sequence code and the control function can be bound by itself according to actual needs, which is not limited in the embodiments of the present disclosure.
  • the correspondence between the bit sequence code and the control function is displayed in the form of a table.
  • the terminal contains two distance sensors S1 and S2, and the bit sequence subcodes corresponding to the distance sensors S1 and S2 are combined to obtain bits.
  • the serial code (01010) can be found by querying the correspondence table between the bit sequence code and the control function.
  • the control function corresponding to the bit sequence code is screen capture.
  • the terminal contains two distance sensors S1 and S2, and the bit sequence subcodes corresponding to the distance sensors S1 and S2 are combined to obtain a bit sequence code (00101).
  • a bit sequence code (00101).
  • the terminal After the terminal determines the control functions corresponding to the constituent bit sequence codes, it operates according to the determined control functions:
  • control function determined by the terminal is to increase the volume, perform the volume increase operation
  • the terminal may determine the corresponding control function according to the sensing instruction received through the distance sensor.
  • the sensing instruction When the user wants to control the volume function, it is only necessary to send the sensing instruction corresponding to the volume function, which may no longer be used.
  • the traditional method makes the user to control the volume function in the smart terminal no longer too single, which improves the user experience.
  • the embodiment of the present disclosure may also bind the bit sequence code generated by the distance sensor to the execution action, and then bind the execution action and the control function to generate a correspondence relationship between the bit sequence code and the control function.
  • the terminal contains two distance sensors S1 and S2, and the correspondence relationship between the bit sequence code and the control function is displayed in the form of a table. The corresponding correspondence is shown in FIG.
  • bit sequence subcode (01) corresponding to the distance sensor S1 is generated first, then the bit sequence subcode (01) corresponding to the distance sensor S2 is generated, and the distance sensor combines the bit sequence subcodes corresponding to S1 and S2 to obtain a bit sequence code. (0101) Binding with the right sliding execution action, and then binding the right sliding execution action with the volume control function.
  • the terminal determines the control function corresponding to the composed bit sequence code, it operates according to the determined control function.
  • the terminal determines that the execution action corresponding to the bit sequence code is a right swipe.
  • the right swipe execution action is bound to the control function for increasing the volume.
  • the terminal performs an operation of increasing the volume.
  • the binding relationship between the execution action and the control function in FIG. 7 is only an example.
  • the execution action can also be bound to other control functions.
  • the binding relationship between the execution action and the control function is shown in the table in Figure 7.
  • click S1 to bind to the control function that pauses playback
  • click S2 It is bound to the control function that continues to play, swipe right to bind the screen to increase the brightness, and double-click S1 to bind it to the control function that opens the barrage.
  • the terminal may also update the correspondence between the bit sequence and the control function according to the information in the update instruction.
  • the manner in which the terminal receives the update instruction can be set by itself according to actual needs, which is not limited in the embodiments of the present disclosure, such as receiving the update instruction in a manner such as voice, gesture, or touch operation.
  • the information in the update instruction is to release the binding relationship between the bit sequence code (0101) and the control function of screen capture, and re-bind the control function to open the camera.
  • the information in the instruction releases the binding relationship between the bit sequence code (0101) and the control function of screen capture, and binds the bit sequence code (0101) with the control function of turning on the camera.
  • an embodiment of the present disclosure provides a flowchart of a complete method for controlling.
  • Step 800 The terminal determines to enable a function of receiving a sensing instruction through a distance sensor.
  • Step 801 The terminal receives a sensing instruction through a distance sensor.
  • Step 802 The terminal determines the type of the received sensing instruction. If the sensing instruction is blocked, step 803 is performed, and if the sensing instruction is not blocked, step 804 is performed;
  • Step 803 The terminal sets a value on the bit corresponding to the occlusion sensing instruction to indicate that the sensing instruction is an occlusion sensing instruction.
  • Step 804 The terminal sets a value on the bit corresponding to the unobstructed sensing instruction to indicate that the sensing instruction is an unobstructed sensing instruction.
  • Step 805 The terminal determines a bit sequence code according to the bit sequence subcode corresponding to the distance sensor.
  • Step 806 The terminal determines the control function corresponding to the bit sequence code according to the correspondence between the bit sequence code and the control function.
  • Step 807 The terminal operates according to the determined control function.
  • an embodiment of the present disclosure provides a terminal including a distance sensor 900, a processor 901, and a memory 902.
  • the distance sensor 900 is configured to detect a distance between an external object and a terminal
  • the memory 902 is in communication with the distance sensor 900 and stores computer instructions and data associated with the distance sensor 900;
  • the processor 901 is associated with the memory 902 and the distance sensor 900 and is configured to execute the computer instructions to enable the terminal to implement:
  • the bit sequence code corresponding to the distance sensor 900 is generated according to the sensing instruction received through the distance sensor 900; the control function corresponding to the bit sequence code is determined according to the correspondence between the bit sequence code and the control function; and the operation is performed according to the determined control function.
  • the terminal includes a distance sensor 900, and the processor 901 is specifically configured to:
  • a bit sequence subcode is generated according to a sensing instruction received by the distance sensor 900, and the bit sequence subcode is used as the bit sequence code.
  • the terminal includes at least two distance sensors 900, and the processor 901 is specifically configured to:
  • a bit sequence subcode corresponding to each distance sensor 900 is generated, and the bit sequence subcode corresponding to each distance sensor 900 is formed into a bit sequence code.
  • each bit of the bit sequence code is expressed as an occlusion sensing instruction or an unocclusion induction instruction.
  • processor 901 is further configured to:
  • a value for indicating that the sensing instruction is an unobstructed sensing instruction is set on a bit corresponding to the unobstructed sensing instruction.
  • the processor 901 is specifically configured to:
  • an embodiment of the present disclosure further provides a device for controlling, including:
  • the receiving module 1000 is configured to generate a bit sequence code corresponding to the distance sensor according to a sensing instruction received by the distance sensor;
  • a determining module 1001 configured to determine a control function corresponding to the bit sequence code according to a correspondence between the bit sequence code and the control function;
  • the execution module 1002 is configured to operate according to the determined control function.
  • the receiving module 1000 is specifically configured to:
  • bit sequence subcode corresponding to each distance sensor is generated according to the sensing instruction received by each distance sensor, and the bit sequence subcode corresponding to each distance sensor is formed into a bit sequence code .
  • each bit of the bit sequence code is expressed as an occlusion sensing instruction or an unocclusion induction instruction.
  • the receiving module 1000 is specifically configured to:
  • a value for indicating that the sensing instruction is an unobstructed sensing instruction is set on a bit corresponding to the unobstructed sensing instruction.
  • execution module 1002 is specifically configured to:
  • various aspects of controlling provided by the embodiments of the present disclosure may also be implemented in the form of a program product, which includes program code.
  • program code When the program code is run on a computer device, the program code The method for causing the computer device to perform the steps in the method for controlling according to various exemplary embodiments of the present disclosure described in the present specification.
  • the program product may employ any combination of one or more readable media.
  • the readable medium may be a readable signal medium or a readable storage medium.
  • the readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
  • the program product for data forwarding control may adopt a portable compact disk read-only memory (CD-ROM) and include a program code, and may run on a server device.
  • CD-ROM portable compact disk read-only memory
  • the program product of the present disclosure is not limited thereto.
  • the readable storage medium may be any tangible medium containing or storing a program, and the program may be used for information transmission, an apparatus, or a device or in combination with it.
  • a readable signal medium may include a data signal that is carried in baseband or propagated as part of a carrier wave, and which carries readable program code. Such a propagated data signal may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the readable signal medium may also be any readable medium other than a readable storage medium, and the readable medium may transmit, propagate, or transmit a program for use by or in combination with a periodic network motion system, device, or device.
  • Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
  • the program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, which include object-oriented programming languages—such as Java, C ++, etc.—and also include conventional procedural Programming language—such as "C" or a similar programming language.
  • the program code can be executed entirely on the user computing device, partly on the user device, as an independent software package, partly on the user computing device, partly on the remote computing device, or entirely on the remote computing device or server On.
  • the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device.
  • LAN local area network
  • WAN wide area network
  • the embodiment of the present disclosure also provides a computing device readable storage medium for the method for controlling, that is, the content is not lost after the power is turned off.
  • a software program is stored in the storage medium, and includes a program code. When the program code is run on a computing device, the software program, when read and executed by one or more processors, may implement a solution for controlling the embodiments of the present disclosure. .
  • the present disclosure may also be implemented in hardware and / or software (including firmware, resident software, microcode, etc.). Still further, the present disclosure may take the form of a computer program product on a computer-usable or computer-readable storage medium having computer-usable or computer-readable program code implemented in the medium for use by an instruction execution system or Used in conjunction with the instruction execution system.
  • a computer-usable or computer-readable medium may be any medium that can contain, store, communicate, transmit, or transfer a program for use by or in connection with an instruction execution system, apparatus, or device, Device or equipment.

Abstract

The present invention provides a control method and apparatus for a terminal with a sensor, for solving the problem that there are too few modes provided for a user to control a control function in an intelligent terminal. When a terminal receives a sensing instruction by means of a distance sensor, a bit sequence code is generated according to the sensing instruction, and a corresponding control function is determined according to a correspondence relationship between the bit sequence code and the control function to implement an operation. According to the present invention, more modes are provided for a user to control a control function of an intelligent terminal.

Description

一种用于带有传感器的终端的控制方法和装置Control method and device for terminal with sensor
本公开要求在2018年6月26日提交中国专利局、申请号为201810670445.9、申请名称为“一种带有传感器的终端进行控制的方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。This disclosure claims the priority of a Chinese patent application filed on June 26, 2018 with the Chinese Patent Office, application number 201810670445.9, and application name "A Method and Device for Controlling a Terminal with Sensors", all of which passed Citations are incorporated in this disclosure.
技术领域Technical field
本公开涉及传感器技术领域,特别涉及一种用于带有传感器的终端的控制方法和装置。The present disclosure relates to the technical field of sensors, and in particular, to a control method and device for a terminal with a sensor.
背景技术Background technique
随着社会的发展智能终端设备越来越普遍,而智能终端设备是指像个人电脑一样具有多媒体功能,独立的操作系统,独立的运行空间,可以由用户自行安装软件、游戏、导航等第三方服务商提供的程序的智能设备,如家居智能终端、3G智能终端和金融智能终端机等。这些设备支持音频、视频、数据等方面的功能,如:可视电话、会议终端、内置多媒体等功能。With the development of society, smart terminal devices are becoming more and more common, and smart terminal devices refer to personal computers with multimedia functions, independent operating systems, and independent operating spaces. Users can install software, games, navigation and other third parties by themselves. Programs provide smart devices, such as home smart terminals, 3G smart terminals, and financial smart terminals. These devices support functions such as audio, video, and data, such as video phones, conference terminals, and built-in multimedia.
而用户在使用这些功能的时候通常采用特定的方式,如用户在3G智能终端时,想要快速打开手电筒则需要在设置的列表中点击相应功能的按键之后才可以打开,再比如用户想要增大或减小音量,需要通过手机外部的按键进行调节。When users use these functions, they usually use a specific method. For example, when users want to quickly turn on the flashlight when they are in a 3G smart terminal, they need to click the button of the corresponding function in the set list before they can be turned on. To increase or decrease the volume, you need to adjust it through the keys on the outside of the phone.
综上所述,用户对智能终端中控制功能进行控制的方式过于单一。In summary, the way users control the control functions in the smart terminal is too simple.
发明内容Summary of the invention
本公开提供一种用于带有传感器的终端的控制方法和装置,用以解决用户对智能终端中控制功能进行控制的方式过于单一的问题。The present disclosure provides a control method and device for a terminal with a sensor to solve a problem that a user controls a control function in a smart terminal to be too single.
第一方面,一种用于带有传感器的终端的控制方法,该方法包括:In a first aspect, a control method for a sensor-equipped terminal includes:
终端根据通过距离传感器接收到的感应指令,生成距离传感器对应的比 特序列码;之后根据比特序列码与控制功能的对应关系确定所述比特序列码对应的控制功能,并根据确定的控制功能进行操作。The terminal generates a bit sequence code corresponding to the distance sensor according to the sensing instruction received by the distance sensor; then determines the control function corresponding to the bit sequence code according to the correspondence between the bit sequence code and the control function, and operates according to the determined control function. .
在一些具体的实施中,所述比特序列码的每个比特位的数值表示为遮挡感应指令或无遮挡感应指令。In some specific implementations, the value of each bit of the bit sequence code is expressed as an occlusion sensing instruction or an unocclusion sensing instruction.
在一些具体的实施中,若有一个距离传感器,终端根据通过距离传感器接收到的感应指令生成比特序列子码,并将比特序列子码作为比特序列码。In some specific implementations, if there is a distance sensor, the terminal generates a bit sequence subcode according to a sensing instruction received through the distance sensor, and uses the bit sequence subcode as a bit sequence code.
在一些具体的实施中,若至少有两个距离传感器,终端根据通过每个距离传感器接收到的感应指令,生成与每个距离传感器对应的比特序列子码,并将与每个距离传感器对应的比特序列子码组成比特序列码。In some specific implementations, if there are at least two distance sensors, the terminal generates a bit sequence subcode corresponding to each distance sensor according to the sensing instruction received through each distance sensor, and The bit sequence subcodes constitute a bit sequence code.
在一些具体的实施中,当终端通过所述距离传感器在周期内接收到遮挡感应指令后,在遮挡感应指令对应的比特位上,设置用于表示感应指令为遮挡感应指令的数值。In some specific implementations, after the terminal receives the occlusion sensing instruction within the period through the distance sensor, a value corresponding to the occlusion sensing instruction is set to indicate the sensing instruction as the occlusion sensing instruction.
在一些具体的实施中,当终端通过距离传感器在周期内接收到无遮挡感应指令后,在无遮挡感应指令对应的比特位上,设置用于表示感应指令为无遮挡感应指令的数值。In some specific implementations, after the terminal receives the unobstructed sensing instruction within a period through the distance sensor, a value indicating that the sensing instruction is an unobstructed sensing instruction is set on a bit corresponding to the unobstructed sensing instruction.
在一些具体的实施中,若终端确定的控制功能为增大音量,则进行增大音量操作;或若终端确定的控制功能为增大音量,则进行减小音量操作。In some specific implementations, if the control function determined by the terminal is to increase the volume, perform a volume increase operation; or if the control function determined by the terminal is to increase the volume, perform a volume decrease operation.
第二方面,一种终端,包括距离传感器、存储器和处理器,其中,In a second aspect, a terminal includes a distance sensor, a memory, and a processor, where:
所述距离传感器,用于检测外部物体与终端的距离;The distance sensor is configured to detect a distance between an external object and a terminal;
所述存储器,与所述距离传感器通信,存储有计算机指令和与所述距离传感器关联的数据;The memory is in communication with the distance sensor and stores computer instructions and data associated with the distance sensor;
所述处理器,与所述存储器和距离传感器通信,配置为执行所述计算机指令以使所述终端实现:The processor is in communication with the memory and the distance sensor and is configured to execute the computer instructions to enable the terminal to implement:
根据通过距离传感器接收到的感应指令,生成距离传感器对应的比特序列码;根据比特序列码与控制功能的对应关系确定所述比特序列码对应的控制功能;根据确定的控制功能进行操作。其中,所述比特序列码的每个比特位的数值表示为遮挡感应指令或无遮挡感应指令。According to the sensing instruction received by the distance sensor, a bit sequence code corresponding to the distance sensor is generated; a control function corresponding to the bit sequence code is determined according to the correspondence between the bit sequence code and the control function; and the operation is performed according to the determined control function. Wherein, the value of each bit of the bit sequence code is expressed as an occlusion sensing instruction or an unocclusion induction instruction.
在一些具体的实施中,所述终端包括一个距离传感器,所述处理器具体用于:In some specific implementations, the terminal includes a distance sensor, and the processor is specifically configured to:
根据通过所述距离传感器接收到的感应指令生成比特序列子码,并将所述比特序列子码作为所述比特序列码。A bit sequence subcode is generated according to a sensing instruction received by the distance sensor, and the bit sequence subcode is used as the bit sequence code.
在一些具体的实施中,所述终端包括多个距离传感器,所述处理器具体用于:In some specific implementations, the terminal includes multiple distance sensors, and the processor is specifically configured to:
根据通过每个距离传感器接收到的感应指令,生成与每个距离传感器对应的比特序列子码,并将与每个距离传感器对应的比特序列子码组成比特序列码。According to the sensing instruction received by each distance sensor, a bit sequence subcode corresponding to each distance sensor is generated, and the bit sequence subcode corresponding to each distance sensor is formed into a bit sequence code.
在一些具体的实施中,所述处理器具体用于:In some specific implementations, the processor is specifically configured to:
通过所述距离传感器在周期内接收到遮挡感应指令后,在所述遮挡感应指令对应的比特位上,设置用于表示感应指令为遮挡感应指令的数值。After the distance sensor receives the occlusion sensing instruction within a period, a value for indicating that the sensing instruction is an occlusion sensing instruction is set on a bit corresponding to the occlusion sensing instruction.
在一些具体的实施中,所述处理器具体用于:In some specific implementations, the processor is specifically configured to:
通过所述距离传感器在周期内接收到无遮挡感应指令后,在所述无遮挡感应指令对应的比特位上,设置用于表示感应指令为无遮挡感应指令的数值。After the distance sensor receives the unobstructed sensing instruction within a period, a value for indicating that the sensing instruction is an unobstructed sensing instruction is set on a bit corresponding to the unobstructed sensing instruction.
在一些具体的实施中,所述处理器具体用于:In some specific implementations, the processor is specifically configured to:
若确定的控制功能为增大音量,则进行增大音量操作;或If the determined control function is to increase the volume, perform a volume increase operation; or
若确定的控制功能为增大音量,则进行减小音量操作。If the determined control function is to increase the volume, perform a volume reduction operation.
第二方面中任一一种实现方式所带来的技术效果可参见第一方面中实现方式所带来的技术效果,此处不再赘述。For the technical effects brought by any one of the implementation methods in the second aspect, refer to the technical effects brought by the implementation methods in the first aspect, which will not be repeated here.
第三方面,本公开实施例提供一种计算机可存储介质,其上存储有计算机程序,该程序被处理器执行时实现本公开实施例带有传感器的终端进行控制方法的步骤。In a third aspect, an embodiment of the present disclosure provides a computer-storable medium on which a computer program is stored, and when the program is executed by a processor, implements steps of a method for controlling a terminal with a sensor according to an embodiment of the present disclosure.
本公开的这些方面或其他方面在以下的实施例的描述中会更加简明易懂。These or other aspects of the present disclosure will be more concise and understandable in the description of the following embodiments.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本公开实施例中的技术方案,下面将对实施例描述中 所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present disclosure. Those of ordinary skill in the art can obtain other drawings according to these drawings without paying creative labor.
图1为本公开实施例一种进行控制的方法示意图;FIG. 1 is a schematic diagram of a control method according to an embodiment of the present disclosure;
图2为本公开实施例终端内部包含两个并排排列的距离传感器S1和S2结构示意图;2 is a schematic structural diagram of two side-by-side distance sensors S1 and S2 arranged inside a terminal according to an embodiment of the present disclosure;
图3为本公开实施例终端内部包含两个成倾斜角度排放的距离传感器S1和S2结构示意图;FIG. 3 is a schematic structural diagram of two distance sensors S1 and S2 disposed at an inclined angle inside a terminal according to an embodiment of the present disclosure;
图4为本公开实施例距离传感器S1和S2位于终端侧面的结构示意图;4 is a schematic structural diagram of distance sensors S1 and S2 located on a side of a terminal according to an embodiment of the present disclosure;
图5为本公开实施例终端存在多个距离传感器的结构示意图;5 is a schematic structural diagram of a plurality of distance sensors in a terminal according to an embodiment of the present disclosure;
图6为本公开实施例一种比特序列码与控制功能的对应关系示意图;6 is a schematic diagram of a correspondence relationship between a bit sequence code and a control function according to an embodiment of the present disclosure;
图7为本公开实施例另一种比特序列码与控制功能的对应关系示意图;7 is a schematic diagram of a correspondence relationship between another bit sequence code and a control function according to an embodiment of the present disclosure;
图8为本公开实施例一种进行控制的完整方法流程图;8 is a flowchart of a complete method for controlling according to an embodiment of the present disclosure;
图9为本公开实施例一种进行控制的设备的结构示意图;9 is a schematic structural diagram of a control device according to an embodiment of the present disclosure;
图10为本公开实施例另一种进行控制的设备的结构示意图。FIG. 10 is a schematic structural diagram of another control device according to an embodiment of the present disclosure.
具体实施方式detailed description
本公开实施例提供一种进行控制的方法和装置,可以应用于用户对智能终端中的控制功能进行控制的应用场景中。如用户想要快速打开智能手机内的手电筒时,需要在设置的列表中点击相应功能的按键之后才可以打开。The embodiments of the present disclosure provide a method and device for controlling, which can be applied to an application scenario where a user controls a control function in a smart terminal. If the user wants to quickly turn on the flashlight in the smart phone, he needs to click the button of the corresponding function in the set list before turning it on.
在本公开实施例中,终端可以根据通过距离传感器接收到的感应指令确定出对应的控制功能,当用户想要对智能终端中控制功能进行控制时,发送控制功能对应的感应指令即可,可以不再采用传统的方式,使用户对智能终端中控制功能进行控制的方式不再过于单一。In the embodiment of the present disclosure, the terminal may determine the corresponding control function according to the sensing instruction received through the distance sensor. When the user wants to control the control function in the smart terminal, it is sufficient to send the sensing instruction corresponding to the control function. The traditional way is no longer adopted, so that the way for the user to control the control function in the smart terminal is no longer too simple.
为了使本公开的目的、技术方案和优点更加清楚,下面将结合附图对本公开作进一步地详细描述,显然,所描述的实施例仅仅是本公开一部份实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在 没有做出创造性劳动前提下所获得的所有其它实施例,都属于本公开保护的范围。In order to make the objectives, technical solutions, and advantages of the present disclosure clearer, the present disclosure will be described in further detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, but not all the embodiments. . Based on the embodiments in the present disclosure, all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present disclosure.
如图1所示,本公开实施例提供一种进行控制的方法,该方法包括:As shown in FIG. 1, an embodiment of the present disclosure provides a method for controlling. The method includes:
步骤100、终端根据通过距离传感器接收到的感应指令,生成距离传感器对应的比特序列码;Step 100: The terminal generates a bit sequence code corresponding to the distance sensor according to the sensing instruction received through the distance sensor.
步骤101、终端根据比特序列码与控制功能的对应关系确定所述比特序列码对应的控制功能;Step 101: The terminal determines a control function corresponding to the bit sequence code according to a correspondence between the bit sequence code and the control function.
步骤102、终端根据确定的控制功能进行操作。Step 102: The terminal operates according to the determined control function.
在本公开实施例中,终端可以是在移动中使用的计算机设备,又可以称为移动设备,包括手机、笔记本、平板电脑等。In the embodiment of the present disclosure, the terminal may be a computer device used in mobile, and may also be called a mobile device, including a mobile phone, a notebook, a tablet computer, and the like.
在本公开实施例中,终端包括传感器、显示单元(例如显示屏)、射频(Radio Frequency,RF)电路、电源、处理器、存储器、输入单元、摄像头、通信接口、以及无线保真(Wireless Fidelity,WiFi)模块等部件,可与其他具有通信功能的终端、基站等进行通信。In the embodiment of the present disclosure, the terminal includes a sensor, a display unit (such as a display screen), a radio frequency (RF) circuit, a power source, a processor, a memory, an input unit, a camera, a communication interface, and wireless fidelity. , WiFi) module and other components, can communicate with other terminals, base stations, etc. that have communication functions.
当终端通过距离传感器接收到感应指令后,根据感应指令生成比特序列码,根据比特序列码与控制功能的对应关系确定出对应的控制功能进行操作即可。由于本公开实施例中终端可以根据通过距离传感器接收到的感应指令确定出对应的控制功能,当用户想要对智能终端中控制功能进行控制时,发送控制功能对应的感应指令即可,可以不再采用传统的方式,使用户对智能终端中控制功能进行控制的方式不再过于单一。下面对进行控制的方法进行详细介绍。After the terminal receives the sensing instruction through the distance sensor, a bit sequence code is generated according to the sensing instruction, and the corresponding control function can be determined to operate according to the correspondence between the bit sequence code and the control function. Since the terminal in this embodiment of the present disclosure can determine the corresponding control function according to the sensing instruction received through the distance sensor, when the user wants to control the control function in the smart terminal, it is only necessary to send the sensing instruction corresponding to the control function. The traditional method is adopted again, so that the user can no longer control the control function in the smart terminal in a single way. The control method is described in detail below.
终端确定开启通过距离传感器接收感应指令的功能之后,根据通过距离传感器接收到的感应指令,生成距离传感器对应的比特序列码。After the terminal determines to enable the function of receiving a sensing instruction through the distance sensor, it generates a bit sequence code corresponding to the distance sensor according to the sensing instruction received through the distance sensor.
若终端只有一个距离传感器,则根据通过距离传感器接收到的感应指令生成比特序列子码,并将比特序列子码作为所述比特序列码;If the terminal has only one distance sensor, generating a bit sequence subcode according to the sensing instruction received by the distance sensor, and using the bit sequence subcode as the bit sequence code;
若终端至少有两个距离传感器,则根据通过每个距离传感器接收到的感应指令,生成与每个距离传感器对应的比特序列子码,并将与每个距离传感 器对应的比特序列子码组成比特序列码。If the terminal has at least two distance sensors, a bit sequence subcode corresponding to each distance sensor is generated according to the sensing instruction received by each distance sensor, and the bit sequence subcode corresponding to each distance sensor is composed into bits The serial code.
其中,这里的比特序列码的每个比特位的数值表示为遮挡感应指令或无遮挡感应指令,比如,比特序列码的每个比特位的数值为1时,表示为遮挡感应指令。比特序列码的每个比特位的数值为0时表示为无遮挡感应指令。Wherein, the value of each bit of the bit sequence code is expressed as an occlusion sensing instruction or an unoccluded induction instruction. For example, when the value of each bit of the bit sequence code is 1, it is expressed as an occlusion sensing instruction. When the value of each bit of the bit sequence code is 0, it is represented as an unobstructed sensing command.
这里需要说明的是:比特序列码的每个比特位的具体数值代表的含义可以根据实际需要自行设定,本公开实施例对此不做限定。It should be noted here that the meaning of the specific numerical value of each bit of the bit sequence code can be set according to actual needs, which is not limited in the embodiments of the present disclosure.
在本公开实施例中,任距离传感器在周期内会根据接收到的不同类型的感应指令在对应的比特位上设置用于表示感应指令的数值,进一步增加了进行控制的方式的多样化,使用户对智能终端中控制功能进行控制的方式不再过于单一。In the embodiment of the present disclosure, any distance sensor sets a value indicating a sensing instruction on a corresponding bit according to different types of sensing instructions received in a period, further increasing the diversity of control methods, so that The way users control the control functions in smart terminals is no longer too simple.
相应的,终端通过距离传感器在周期内接收到遮挡感应指令后,则在遮挡感应指令对应的比特位上设置用于表示感应指令为遮挡感应指令的数值;Correspondingly, after the terminal receives the occlusion sensing instruction within a period through the distance sensor, the terminal sets a value corresponding to the occlusion sensing instruction to indicate that the sensing instruction is an occlusion sensing instruction;
比如,终端内部包含距离传感器S1,终端通过距离传感器S1接收到遮挡感应指令,此时在接收到的遮挡感应指令对应的比特位上,设置用于表示感应指令为遮挡感应指令的数值,如设置为1。For example, the terminal contains a distance sensor S1, and the terminal receives the occlusion sensing instruction through the distance sensor S1. At this time, a value indicating that the sensing instruction is an occlusion sensing instruction is set on a bit corresponding to the received occlusion sensing instruction, such as setting Is 1.
若终端通过距离传感器在周期内接收到无遮挡感应指令后在无遮挡感应指令对应的比特位上设置用于表示感应指令为无遮挡感应指令的数值。If the terminal receives the unobstructed sensing instruction in the period through the distance sensor, a value corresponding to the unobstructed sensing instruction is set on a bit corresponding to the unobstructed sensing instruction.
再比如,终端内部包含距离传感器S1,终端通过距离传感器S1接收到无遮挡感应指令,此时在接收到的无遮挡感应指令对应的比特位上,设置用于表示感应指令为无遮挡感应指令的数值,如设置为0。For another example, the terminal includes a distance sensor S1, and the terminal receives the unobstructed sensing command through the distance sensor S1. At this time, a bit for indicating that the sensing command is an unobstructed sensing command is set on the bit corresponding to the received unobstructed sensing command. Value, if set to 0.
其中,终端通过距离传感器接收感应指令的周期时长可以根据实际需要自行设定,本公开实施例对此不做限定,比如可以设定周期时长为2秒。The period of the terminal receiving the sensing instruction through the distance sensor can be set according to actual needs, which is not limited in the embodiment of the present disclosure. For example, the period of the period can be set to 2 seconds.
如图2所示,比如终端内部包含两个并排排列的距离传感器S1和S2,终端在周期内首先通过距离传感器S1接收到无遮挡感应指令,此时在接收到的无遮挡感应指令对应的比特位上,设置用于表示感应指令为无遮挡感应指令的数值0,之后又通过距离传感器S1接收到遮挡感应指令,则在接收到的遮挡感应指令对应的比特位上设置用于表示感应指令为遮挡感应指令的数值1, 此时针对距离传感器S1就会生成比特序列子码(01);As shown in Figure 2, for example, the terminal contains two side-by-side distance sensors S1 and S2. The terminal first receives the unobstructed sensing command through the distance sensor S1 in the cycle. At this time, the bit corresponding to the received unobstructed sensing command is In the bit, set the value 0 used to indicate that the sensing instruction is an unobstructed sensing instruction, and then receive the obstructing sensing instruction through the distance sensor S1, then set the bit corresponding to the received obstructing sensing instruction to indicate that the sensing instruction is The value of the occlusion sensing instruction is 1. At this time, a bit sequence subcode (01) is generated for the distance sensor S1;
而终端在周期内又通过距离传感器S2接收到无遮挡感应指令,此时在接收到的无遮挡感应指令对应的比特位上,设置用于表示感应指令为无遮挡感应指令的数值0,之后又通过距离传感器S2接收到遮挡感应指令,则在接收到的遮挡感应指令对应的比特位上设置用于表示感应指令为遮挡感应指令的数值1,此时针对距离传感器S2就会生成比特序列子码(01);The terminal receives the unobstructed sensing command through the distance sensor S2 during the period. At this time, a value of 0 is used to indicate that the sensing command is an unobstructed sensing command on the bit corresponding to the received unobstructed sensing command. When the occlusion sensing instruction is received through the distance sensor S2, a value 1 indicating that the sensing instruction is an occlusion sensing instruction is set on the bit corresponding to the received occlusion sensing instruction. At this time, a bit sequence subcode is generated for the distance sensor S2. (01);
在终端生成距离传感器S1和S2对应的比特序列子码后,将S1和S2对应的比特序列子码进行组合得到比特序列码(0101)。After the terminal generates bit sequence subcodes corresponding to the distance sensors S1 and S2, the bit sequence subcodes corresponding to S1 and S2 are combined to obtain a bit sequence code (0101).
如图3所示,再比如终端内部包含两个成倾斜角度排放的距离传感器S1和S2,终端在周期内首先通过距离传感器S1接收到无遮挡感应指令,此时在接收到的无遮挡感应指令对应的比特位上,设置用于表示感应指令为无遮挡感应指令的数值0,之后又通过距离传感器S1接收到遮挡感应指令,则在接收到的遮挡感应指令对应的比特位上,设置用于表示感应指令为遮挡感应指令的数值1,之后又通过距离传感器S1接收到无遮挡感应指令,在对应的比特位上设置数值0,之后又通过距离传感器S1接收到遮挡感应指令,则对应的比特位上设置数值1此时针对距离传感器S1就会生成比特序列子码(0101);As shown in FIG. 3, for example, the terminal contains two distance sensors S1 and S2 that are discharged at an oblique angle. The terminal first receives an unobstructed sensing command through the distance sensor S1 during the period. At this time, the unobstructed sensing command received The corresponding bit is set to a value of 0 to indicate that the sensing instruction is an unobstructed sensing instruction, and then receives the obstructing sensing instruction through the distance sensor S1. Then, the bit corresponding to the received obstructing sensing instruction is set to Indicates that the sensing command is the value 1 of the blocking sensing command, and then receives the non-blocking sensing command through the distance sensor S1, sets the value 0 to the corresponding bit, and then receives the blocking sensing command through the distance sensor S1, then the corresponding bit When a value of 1 is set in the bit, a bit sequence subcode (0101) is generated for the distance sensor S1;
而终端在周期内只通过距离传感器S2接收到无遮挡感应指令,此时在接收到的无遮挡感应指令对应的比特位上设置用于表示感应指令为无遮挡感应指令的数值0,而针对距离传感器S2就会生成比特序列子码(0)。The terminal only receives the unobstructed sensing command through the distance sensor S2 during the period. At this time, a value of 0 is used to indicate that the sensing command is an unobstructed sensing command on the bit corresponding to the received unobstructed sensing command. The sensor S2 then generates a bit sequence subcode (0).
相应的,在终端生成距离传感器S1和S2对应的比特序列子码后,将距离传感器将S1和S2对应的比特序列子码进行组合得到比特序列码(01010)。Correspondingly, after the terminal generates bit sequence subcodes corresponding to the distance sensors S1 and S2, the distance sensor combines the bit sequence subcodes corresponding to S1 and S2 to obtain a bit sequence code (01010).
这里需要说明的是:上述只是举例说明,终端具体包含举例传感器的数量以及距离传感器之间的摆放位置可以结合产品的功能以及结构自行设计,本公开实施例对此不做限定。It should be noted that the above is just an example, and the terminal specifically includes the number of example sensors and the placement position between the distance sensors can be designed by combining the function and structure of the product, which is not limited in the embodiments of the present disclosure.
比如可以利用现在的结构全都摆放在终端的正上方、也可以将两个距离传感器均摆放在终端的侧面、也可将存在的4个距离传感器一部分摆放在终端的侧面,一部分摆放在终端的背部,具体如图4和如图5所示。For example, the current structure can be used to place all of them directly above the terminal, or both distance sensors can be placed on the side of the terminal, or some of the existing 4 distance sensors can be placed on the side of the terminal and part of them. On the back of the terminal, as shown in Figure 4 and Figure 5.
终端根据比特序列码与控制功能的对应关系确定比特序列码对应的控制功能。The terminal determines the control function corresponding to the bit sequence code according to the correspondence between the bit sequence code and the control function.
其中,比特序列码与控制功能具体的对应关系可以根据实际的需要自行绑定,本公开实施例对此不做限定。The specific correspondence between the bit sequence code and the control function can be bound by itself according to actual needs, which is not limited in the embodiments of the present disclosure.
例如,如图6所示,采用表格的形式展现比特序列码与控制功能的对应关系,终端内部包含两个距离传感器S1和S2,将距离传感器S1和S2对应的比特序列子码进行组合得到比特序列码(01010),通过查询比特序列码与控制功能对应关系表可知,比特序列码对应的控制功能为截取屏幕。For example, as shown in FIG. 6, the correspondence between the bit sequence code and the control function is displayed in the form of a table. The terminal contains two distance sensors S1 and S2, and the bit sequence subcodes corresponding to the distance sensors S1 and S2 are combined to obtain bits. The serial code (01010) can be found by querying the correspondence table between the bit sequence code and the control function. The control function corresponding to the bit sequence code is screen capture.
再比如,终端内部包含两个距离传感器S1和S2,将距离传感器S1和S2对应的比特序列子码进行组合得到比特序列码(00101),通过查询比特序列码与控制功能对应关系表可知,比特序列码对应的控制功能为打开相机。For another example, the terminal contains two distance sensors S1 and S2, and the bit sequence subcodes corresponding to the distance sensors S1 and S2 are combined to obtain a bit sequence code (00101). By querying the correspondence table between the bit sequence code and the control function, it can be known that the bit The control function corresponding to the serial code is to turn on the camera.
终端确定组成比特序列码对应的控制功能后,根据确定的控制功能进行操作:After the terminal determines the control functions corresponding to the constituent bit sequence codes, it operates according to the determined control functions:
若终端确定的控制功能为增大音量,则进行增大音量操作;或If the control function determined by the terminal is to increase the volume, perform the volume increase operation; or
若终端确定的控制功能为增大音量,则进行减小音量操作。If the control function determined by the terminal is to increase the volume, a volume reduction operation is performed.
在本公开实施例中,终端可以根据通过距离传感器接收到的感应指令确定出对应的控制功能,当用户想要对音量功能进行控制时,发送音量功能对应的感应指令即可,可以不再采用传统的方式,使用户对智能终端中音量功能进行控制的方式不再过于单一,提升了用户体验。In the embodiment of the present disclosure, the terminal may determine the corresponding control function according to the sensing instruction received through the distance sensor. When the user wants to control the volume function, it is only necessary to send the sensing instruction corresponding to the volume function, which may no longer be used. The traditional method makes the user to control the volume function in the smart terminal no longer too single, which improves the user experience.
可选的,本公开实施例还可以将距离传感器生成的比特序列码与执行动作进行绑定,再将执行动作与控制功能进行绑定生成比特序列码与控制功能对应关系。Optionally, the embodiment of the present disclosure may also bind the bit sequence code generated by the distance sensor to the execution action, and then bind the execution action and the control function to generate a correspondence relationship between the bit sequence code and the control function.
比如,终端内部包含两个距离传感器S1和S2,采用表格的形式展现比特序列码与控制功能的对应关系,相应的对应关系如图7所示。For example, the terminal contains two distance sensors S1 and S2, and the correspondence relationship between the bit sequence code and the control function is displayed in the form of a table. The corresponding correspondence is shown in FIG.
若首先生成距离传感器S1对应的比特序列子码(01),后生成距离传感器S2对应的比特序列子码(01),将距离传感器将S1和S2对应的比特序列子码进行组合得到比特序列码(0101)与右滑的执行动作绑定,再将右滑的 执行动作与增加音量的控制功能绑定。If the bit sequence subcode (01) corresponding to the distance sensor S1 is generated first, then the bit sequence subcode (01) corresponding to the distance sensor S2 is generated, and the distance sensor combines the bit sequence subcodes corresponding to S1 and S2 to obtain a bit sequence code. (0101) Binding with the right sliding execution action, and then binding the right sliding execution action with the volume control function.
相应的,终端确定组成的比特序列码对应的控制功能后,根据确定的控制功能进行操作。Correspondingly, after the terminal determines the control function corresponding to the composed bit sequence code, it operates according to the determined control function.
例如,终端确定比特序列码对应的执行动作为右滑,右滑的执行动作是与增加音量的控制功能绑定,此时终端进行增加音量操作。For example, the terminal determines that the execution action corresponding to the bit sequence code is a right swipe. The right swipe execution action is bound to the control function for increasing the volume. At this time, the terminal performs an operation of increasing the volume.
这里需要说明的是:图7中执行动作与控制功能的绑定关系只是举例说明,当终端处于不同的界面时,执行动作还可以与其它控制功能的进行绑定,比如当终端处于的界面为桌面时,执行动作与控制功能的绑定关系如图7中表格所示,然而当终端处于的界面为观看视频时,则单击S1则与暂停播放的控制功能的进行绑定,单击S2则与继续播放的控制功能的进行绑定,右滑与增加屏幕亮度的进行绑定,双击S1则与打开弹幕的控制功能的进行绑定。What needs to be explained here is that the binding relationship between the execution action and the control function in FIG. 7 is only an example. When the terminal is in a different interface, the execution action can also be bound to other control functions. For example, when the terminal is in the interface On the desktop, the binding relationship between the execution action and the control function is shown in the table in Figure 7. However, when the interface on the terminal is to watch a video, click S1 to bind to the control function that pauses playback, and click S2 It is bound to the control function that continues to play, swipe right to bind the screen to increase the brightness, and double-click S1 to bind it to the control function that opens the barrage.
可选的,终端在接收到更新指令后,还可以根据更新指令中的信息对比特序列与控制功能的对应关系进行更新。Optionally, after receiving the update instruction, the terminal may also update the correspondence between the bit sequence and the control function according to the information in the update instruction.
其中,终端接收更新指令的方式可以根据实际需要自行进行设定,本公开实施例对此不做限定,比如采用语音、手势或触摸操作等方式接收更新指令。The manner in which the terminal receives the update instruction can be set by itself according to actual needs, which is not limited in the embodiments of the present disclosure, such as receiving the update instruction in a manner such as voice, gesture, or touch operation.
比如,终端通过语音的方式接收到更新指令,其中更新指令中的信息为解除比特序列码(0101)与截取屏幕的控制功能绑定关系,重新与打开照相机的控制功能绑定,则终端根据更新指令中的信息将比特序列码(0101)与截取屏幕的控制功能绑定关系解除,将比特序列码(0101)与打开照相机的控制功能绑定。For example, if the terminal receives an update instruction in a voice manner, the information in the update instruction is to release the binding relationship between the bit sequence code (0101) and the control function of screen capture, and re-bind the control function to open the camera. The information in the instruction releases the binding relationship between the bit sequence code (0101) and the control function of screen capture, and binds the bit sequence code (0101) with the control function of turning on the camera.
如图8所示,本公开实施例提供一种进行控制的完整方法流程图。As shown in FIG. 8, an embodiment of the present disclosure provides a flowchart of a complete method for controlling.
步骤800、终端确定开启通过距离传感器接收感应指令的功能;Step 800: The terminal determines to enable a function of receiving a sensing instruction through a distance sensor.
步骤801、终端通过距离传感器接收到感应指令;Step 801: The terminal receives a sensing instruction through a distance sensor.
步骤802、终端判断接收到的感应指令类型,若是遮挡感应指令执行步骤803,若是无遮挡感应指令执行步骤804;Step 802: The terminal determines the type of the received sensing instruction. If the sensing instruction is blocked, step 803 is performed, and if the sensing instruction is not blocked, step 804 is performed;
步骤803、终端在遮挡感应指令对应的比特位上设置用于表示感应指令为 遮挡感应指令的数值;Step 803: The terminal sets a value on the bit corresponding to the occlusion sensing instruction to indicate that the sensing instruction is an occlusion sensing instruction.
步骤804、终端在无遮挡感应指令对应的比特位上设置用于表示感应指令为无遮挡感应指令的数值;Step 804: The terminal sets a value on the bit corresponding to the unobstructed sensing instruction to indicate that the sensing instruction is an unobstructed sensing instruction.
步骤805、终端根据距离传感器对应的比特序列子码确定比特序列码;Step 805: The terminal determines a bit sequence code according to the bit sequence subcode corresponding to the distance sensor.
步骤806、终端根据比特序列码与控制功能的对应关系确定比特序列码对应的控制功能;Step 806: The terminal determines the control function corresponding to the bit sequence code according to the correspondence between the bit sequence code and the control function.
步骤807、终端根据确定的控制功能进行操作。Step 807: The terminal operates according to the determined control function.
如图9所示,本公开实施例提供一种终端,包括距离传感器900、处理器901和存储器902,其中,As shown in FIG. 9, an embodiment of the present disclosure provides a terminal including a distance sensor 900, a processor 901, and a memory 902.
所述距离传感器900,用于检测外部物体与终端的距离;The distance sensor 900 is configured to detect a distance between an external object and a terminal;
所述存储器902,与所述距离传感器900通信,存储有计算机指令和与所述距离传感器900关联的数据;The memory 902 is in communication with the distance sensor 900 and stores computer instructions and data associated with the distance sensor 900;
所述处理器901,与所述存储器902和距离传感器900关联,配置为执行所述计算机指令以使所述终端实现:The processor 901 is associated with the memory 902 and the distance sensor 900 and is configured to execute the computer instructions to enable the terminal to implement:
根据通过距离传感器900接收到的感应指令,生成距离传感器900对应的比特序列码;根据比特序列码与控制功能的对应关系确定所述比特序列码对应的控制功能;根据确定的控制功能进行操作。The bit sequence code corresponding to the distance sensor 900 is generated according to the sensing instruction received through the distance sensor 900; the control function corresponding to the bit sequence code is determined according to the correspondence between the bit sequence code and the control function; and the operation is performed according to the determined control function.
在一些实施方式中,所述终端包括一个距离传感器900,所述处理器901具体用于:In some implementations, the terminal includes a distance sensor 900, and the processor 901 is specifically configured to:
根据通过所述距离传感器900接收到的感应指令生成比特序列子码,并将所述比特序列子码作为所述比特序列码。A bit sequence subcode is generated according to a sensing instruction received by the distance sensor 900, and the bit sequence subcode is used as the bit sequence code.
在一些实施方式中,所述终端包括至少有两个距离传感器900,所述处理器901具体用于:In some implementations, the terminal includes at least two distance sensors 900, and the processor 901 is specifically configured to:
根据通过每个距离传感器900接收到的感应指令,生成与每个距离传感器900对应的比特序列子码,并将与每个距离传感器900对应的比特序列子码组成比特序列码。According to the sensing instruction received through each distance sensor 900, a bit sequence subcode corresponding to each distance sensor 900 is generated, and the bit sequence subcode corresponding to each distance sensor 900 is formed into a bit sequence code.
可选的,所述比特序列码的每个比特位的数值表示为遮挡感应指令或无 遮挡感应指令。Optionally, the value of each bit of the bit sequence code is expressed as an occlusion sensing instruction or an unocclusion induction instruction.
可选的,所述处理器901还用于:Optionally, the processor 901 is further configured to:
通过所述距离传感器900在周期内接收到遮挡感应指令后,在所述遮挡感应指令对应的比特位上,设置用于表示感应指令为遮挡感应指令的数值;或After receiving the occlusion sensing instruction through the distance sensor 900 within a period, setting a value indicating that the sensing instruction is an occlusion sensing instruction on a bit corresponding to the occlusion sensing instruction; or
通过所述距离传感器900在周期内接收到无遮挡感应指令后,在所述无遮挡感应指令对应的比特位上,设置用于表示感应指令为无遮挡感应指令的数值。After receiving the unobstructed sensing instruction through the distance sensor 900 within a period, a value for indicating that the sensing instruction is an unobstructed sensing instruction is set on a bit corresponding to the unobstructed sensing instruction.
可选的,所述处理器901具体用于:Optionally, the processor 901 is specifically configured to:
若确定的控制功能为增大音量,则进行增大音量操作;或If the determined control function is to increase the volume, perform a volume increase operation; or
若确定的控制功能为增大音量,则进行减小音量操作。If the determined control function is to increase the volume, perform a volume reduction operation.
如图10所示,本公开实施例还提供一种进行控制的设备,包括:As shown in FIG. 10, an embodiment of the present disclosure further provides a device for controlling, including:
接收模块1000,用于根据通过距离传感器接收到的感应指令,生成距离传感器对应的比特序列码;The receiving module 1000 is configured to generate a bit sequence code corresponding to the distance sensor according to a sensing instruction received by the distance sensor;
确定模块1001,用于根据比特序列码与控制功能的对应关系确定所述比特序列码对应的控制功能;A determining module 1001, configured to determine a control function corresponding to the bit sequence code according to a correspondence between the bit sequence code and the control function;
执行模块1002,用于根据确定的控制功能进行操作。The execution module 1002 is configured to operate according to the determined control function.
可选的,所述接收模块1000具体用于:Optionally, the receiving module 1000 is specifically configured to:
若有一个距离传感器,根据通过所述距离传感器接收到的感应指令生成比特序列子码,并将所述比特序列子码作为所述比特序列码;或If there is a distance sensor, generating a bit sequence subcode according to the sensing instruction received by the distance sensor, and using the bit sequence subcode as the bit sequence code; or
若至少有两个距离传感器,根据通过每个距离传感器接收到的感应指令,生成与每个距离传感器对应的比特序列子码,并将与每个距离传感器对应的比特序列子码组成比特序列码。If there are at least two distance sensors, a bit sequence subcode corresponding to each distance sensor is generated according to the sensing instruction received by each distance sensor, and the bit sequence subcode corresponding to each distance sensor is formed into a bit sequence code .
可选的,所述比特序列码的每个比特位的数值表示为遮挡感应指令或无遮挡感应指令。Optionally, the value of each bit of the bit sequence code is expressed as an occlusion sensing instruction or an unocclusion induction instruction.
可选的,所述接收模块1000具体用于:Optionally, the receiving module 1000 is specifically configured to:
通过所述距离传感器在周期内接收到遮挡感应指令后,在所述遮挡感应 指令对应的比特位上,设置用于表示感应指令为遮挡感应指令的数值;或After receiving the occlusion sensing instruction through the distance sensor in the cycle, setting a value for indicating that the sensing instruction is an occlusion sensing instruction on a bit corresponding to the occlusion sensing instruction; or
通过所述距离传感器在周期内接收到无遮挡感应指令后,在所述无遮挡感应指令对应的比特位上,设置用于表示感应指令为无遮挡感应指令的数值。After the distance sensor receives the unobstructed sensing instruction within a period, a value for indicating that the sensing instruction is an unobstructed sensing instruction is set on a bit corresponding to the unobstructed sensing instruction.
可选的,所述执行模块1002具体用于:Optionally, the execution module 1002 is specifically configured to:
若确定的控制功能为增大音量,则进行增大音量操作;或If the determined control function is to increase the volume, perform a volume increase operation; or
若确定的控制功能为增大音量,则进行减小音量操作。If the determined control function is to increase the volume, perform a volume reduction operation.
在一些实施方式中,本公开实施例提供的对进行控制的各个方面还可以实现为一种程序产品的形式,其包括程序代码,当所述程序代码在计算机设备上运行时,所述程序代码用于使所述计算机设备执行本说明书中描述的根据本公开各种示例性实施方式的进行控制的方法中的步骤。In some implementations, various aspects of controlling provided by the embodiments of the present disclosure may also be implemented in the form of a program product, which includes program code. When the program code is run on a computer device, the program code The method for causing the computer device to perform the steps in the method for controlling according to various exemplary embodiments of the present disclosure described in the present specification.
所述程序产品可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
根据本公开的实施方式的用于数据转发控制的程序产品,其可以采用便携式紧凑盘只读存储器(CD-ROM)并包括程序代码,并可以在服务器设备上运行。然而,本公开的程序产品不限于此,在本文件中,可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被信息传输、装置或者器件使用或者与其结合使用。The program product for data forwarding control according to the embodiment of the present disclosure may adopt a portable compact disk read-only memory (CD-ROM) and include a program code, and may run on a server device. However, the program product of the present disclosure is not limited thereto. In this document, the readable storage medium may be any tangible medium containing or storing a program, and the program may be used for information transmission, an apparatus, or a device or in combination with it.
可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括——但不限于——电磁信号、光信号或上述的任意合适的组合。可读信号介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或 者传输用于由周期网络动作系统、装置或者器件使用或者与其结合使用的程序。A readable signal medium may include a data signal that is carried in baseband or propagated as part of a carrier wave, and which carries readable program code. Such a propagated data signal may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing. The readable signal medium may also be any readable medium other than a readable storage medium, and the readable medium may transmit, propagate, or transmit a program for use by or in combination with a periodic network motion system, device, or device.
可读介质上包含的程序代码可以用任何适当的介质传输,包括——但不限于——无线、有线、光缆、RF等等,或者上述的任意合适的组合。Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言的任意组合来编写用于执行本公开操作的程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、C++等,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算设备,或者,可以连接到外部计算设备。The program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, which include object-oriented programming languages—such as Java, C ++, etc.—and also include conventional procedural Programming language—such as "C" or a similar programming language. The program code can be executed entirely on the user computing device, partly on the user device, as an independent software package, partly on the user computing device, partly on the remote computing device, or entirely on the remote computing device or server On. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device.
本公开实施例针对进行控制的方法还提供一种计算设备可读存储介质,即断电后内容不丢失。该存储介质中存储软件程序,包括程序代码,当所述程序代码在计算设备上运行时,该软件程序在被一个或多个处理器读取并执行时可实现本公开实施例进行控制的方案。The embodiment of the present disclosure also provides a computing device readable storage medium for the method for controlling, that is, the content is not lost after the power is turned off. A software program is stored in the storage medium, and includes a program code. When the program code is run on a computing device, the software program, when read and executed by one or more processors, may implement a solution for controlling the embodiments of the present disclosure. .
以上参照示出根据本公开实施例的方法、装置(系统)和/或计算机程序产品的框图和/或流程图描述本公开。应理解,可以通过计算机程序指令来实现框图和/或流程图示图的一个块以及框图和/或流程图示图的块的组合。可以将这些计算机程序指令提供给通用计算机、专用计算机的处理器和/或其它可编程数据处理装置,以产生机器,使得经由计算机处理器和/或其它可编程数据处理装置执行的指令创建用于实现框图和/或流程图块中所指定的功能/动作的方法。The present disclosure has been described above with reference to block diagrams and / or flowcharts showing methods, devices (systems) and / or computer program products according to embodiments of the present disclosure. It should be understood that one block of the block diagram and / or flowchart diagram, and a combination of the blocks of the block diagram and / or flowchart diagram can be implemented by computer program instructions. These computer program instructions may be provided to a general purpose computer, a processor of a special purpose computer, and / or other programmable data processing device to produce a machine such that the instructions executed via the computer processor and / or other programmable data processing device create A method to implement the function / action specified in the block diagram and / or flowchart block.
相应地,还可以用硬件和/或软件(包括固件、驻留软件、微码等)来实施本公开。更进一步地,本公开可以采取计算机可使用或计算机可读存储介质上的计算机程序产品的形式,其具有在介质中实现的计算机可使用或计算机可读程序代码,以由指令执行系统来使用或结合指令执行系统而使用。在 本公开上下文中,计算机可使用或计算机可读介质可以是任意介质,其可以包含、存储、通信、传输、或传送程序,以由指令执行系统、装置或设备使用,或结合指令执行系统、装置或设备使用。Accordingly, the present disclosure may also be implemented in hardware and / or software (including firmware, resident software, microcode, etc.). Still further, the present disclosure may take the form of a computer program product on a computer-usable or computer-readable storage medium having computer-usable or computer-readable program code implemented in the medium for use by an instruction execution system or Used in conjunction with the instruction execution system. In the context of this disclosure, a computer-usable or computer-readable medium may be any medium that can contain, store, communicate, transmit, or transfer a program for use by or in connection with an instruction execution system, apparatus, or device, Device or equipment.
显然,本领域的技术人员可以对本公开进行各种改动和变型而不脱离本公开的精神和范围。这样,倘若本公开的这些修改和变型属于本公开权利要求及其等同技术的范围之内,则本公开也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various modifications and variations to the present disclosure without departing from the spirit and scope of the present disclosure. In this way, if these modifications and variations of the present disclosure fall within the scope of the claims of the present disclosure and their equivalent technologies, the present disclosure also intends to include these modifications and variations.

Claims (14)

  1. 一种用于带有传感器的终端的控制方法,该方法包括:A control method for a terminal with a sensor, the method includes:
    终端根据通过距离传感器接收到的感应指令,生成距离传感器对应的比特序列码;The terminal generates a bit sequence code corresponding to the distance sensor according to the sensing instruction received through the distance sensor;
    所述终端根据比特序列码与控制功能的对应关系确定所述比特序列码对应的控制功能;Determining, by the terminal, a control function corresponding to the bit sequence code according to a correspondence between the bit sequence code and the control function;
    所述终端根据确定的控制功能进行操作。The terminal operates according to the determined control function.
  2. 如权利要求1所述的方法,所述终端包括一个距离传感器,所述终端根据通过距离传感器接收到的感应指令,生成距离传感器对应的比特序列码,包括:The method according to claim 1, wherein the terminal comprises a distance sensor, and the terminal generates a bit sequence code corresponding to the distance sensor according to a sensing instruction received through the distance sensor, comprising:
    所述终端根据通过所述距离传感器接收到的感应指令生成比特序列子码,并将所述比特序列子码作为所述比特序列码。The terminal generates a bit sequence subcode according to a sensing instruction received by the distance sensor, and uses the bit sequence subcode as the bit sequence code.
  3. 如权利要求1所述的方法,所述终端包括至少两个距离传感器,所述终端根据通过距离传感器接收到的感应指令,生成距离传感器对应的比特序列码,包括:The method according to claim 1, wherein the terminal includes at least two distance sensors, and the terminal generates a bit sequence code corresponding to the distance sensor according to a sensing instruction received through the distance sensor, comprising:
    所述终端根据通过每个距离传感器接收到的感应指令,生成与每个距离传感器对应的比特序列子码,并将与每个距离传感器对应的比特序列子码组成比特序列码。The terminal generates a bit sequence subcode corresponding to each distance sensor according to a sensing instruction received by each distance sensor, and forms a bit sequence code corresponding to the bit sequence subcode corresponding to each distance sensor.
  4. 如权利要求1所述的方法,所述比特序列码的每个比特位的数值表示为遮挡感应指令或无遮挡感应指令。The method according to claim 1, wherein a value of each bit of the bit sequence code is expressed as an occlusion sensing instruction or an unocclusion sensing instruction.
  5. 如权利要求1所述的方法,所述终端根据通过距离传感器接收到的感应指令,生成距离传感器对应的比特序列码,包括:The method according to claim 1, wherein the terminal generating a bit sequence code corresponding to the distance sensor according to a sensing instruction received through the distance sensor comprises:
    所述终端通过所述距离传感器在周期内接收到遮挡感应指令后,在所述遮挡感应指令对应的比特位上,设置用于表示感应指令为遮挡感应指令的数值。After the terminal receives the occlusion sensing instruction within the period through the distance sensor, the terminal sets a value for indicating that the sensing instruction is an occlusion sensing instruction on a bit corresponding to the occlusion sensing instruction.
  6. 如权利要求1所述的方法,所述终端根据通过距离传感器接收到的感 应指令,生成距离传感器对应的比特序列码,包括:The method according to claim 1, wherein the terminal generating a bit sequence code corresponding to the distance sensor according to the sensing instruction received through the distance sensor comprises:
    所述终端通过所述距离传感器在周期内接收到无遮挡感应指令后,在所述无遮挡感应指令对应的比特位上,设置用于表示感应指令为无遮挡感应指令的数值。After the terminal receives the unobstructed sensing instruction within the period through the distance sensor, the terminal sets a value indicating that the sensing instruction is an unobstructed sensing instruction on a bit corresponding to the unobstructed sensing instruction.
  7. 如权利要求1~6任一所述的方法,其特征在于,所述终端根据确定的控制功能进行操作,包括:The method according to any one of claims 1 to 6, wherein the operation performed by the terminal according to the determined control function comprises:
    所述终端确定的控制功能为增大音量,则进行增大音量操作;或The control function determined by the terminal is to increase the volume, then perform the volume increase operation; or
    所述终端确定的控制功能为增大音量,则进行减小音量操作。If the control function determined by the terminal is to increase the volume, a volume reduction operation is performed.
  8. 一种终端,包括距离传感器、存储器和处理器,其中,A terminal includes a distance sensor, a memory, and a processor, where:
    所述距离传感器,用于检测外部物体与终端的距离;The distance sensor is configured to detect a distance between an external object and a terminal;
    所述存储器,与所述距离传感器通信,存储有计算机指令和与所述距离传感器关联的数据;The memory is in communication with the distance sensor and stores computer instructions and data associated with the distance sensor;
    所述处理器,与所述存储器和距离传感器通信,配置为执行所述计算机指令以使所述终端实现:The processor is in communication with the memory and the distance sensor and is configured to execute the computer instructions to enable the terminal to implement:
    根据通过距离传感器接收到的感应指令,生成距离传感器对应的比特序列码;根据比特序列码与控制功能的对应关系确定所述比特序列码对应的控制功能;根据确定的控制功能进行操作。According to the sensing instruction received by the distance sensor, a bit sequence code corresponding to the distance sensor is generated; a control function corresponding to the bit sequence code is determined according to the correspondence between the bit sequence code and the control function; and the operation is performed according to the determined control function.
  9. 如权利要求8所述的终端,所述终端包括一个距离传感器,所述处理器具体用于:The terminal according to claim 8, wherein the terminal includes a distance sensor, and the processor is specifically configured to:
    根据通过所述距离传感器接收到的感应指令生成比特序列子码,并将所述比特序列子码作为所述比特序列码。A bit sequence subcode is generated according to a sensing instruction received by the distance sensor, and the bit sequence subcode is used as the bit sequence code.
  10. 如权利要求8所述的终端,所述终端包括至少两个距离传感器,所述处理器具体用于:The terminal according to claim 8, wherein the terminal comprises at least two distance sensors, and the processor is specifically configured to:
    根据通过每个距离传感器接收到的感应指令,生成与每个距离传感器对应的比特序列子码,并将与每个距离传感器对应的比特序列子码组成比特序列码。According to the sensing instruction received by each distance sensor, a bit sequence subcode corresponding to each distance sensor is generated, and the bit sequence subcode corresponding to each distance sensor is formed into a bit sequence code.
  11. 如权利要求8所述的终端,所述比特序列码的每个比特位的数值表 示为遮挡感应指令或无遮挡感应指令。The terminal according to claim 8, wherein a value of each bit of the bit sequence code is represented as a occlusion sensing instruction or an unocclusion sensing instruction.
  12. 如权利要求8所述的终端,所述处理器具体用于:The terminal according to claim 8, wherein the processor is specifically configured to:
    通过所述距离传感器在周期内接收到遮挡感应指令后,在所述遮挡感应指令对应的比特位上,设置用于表示感应指令为遮挡感应指令的数值。After the distance sensor receives the occlusion sensing instruction within a period, a value for indicating that the sensing instruction is an occlusion sensing instruction is set on a bit corresponding to the occlusion sensing instruction.
  13. 如权利要求8所述的终端,所述处理器具体用于:The terminal according to claim 8, wherein the processor is specifically configured to:
    通过所述距离传感器在周期内接收到无遮挡感应指令后,在所述无遮挡感应指令对应的比特位上,设置用于表示感应指令为无遮挡感应指令的数值。After the distance sensor receives the unobstructed sensing instruction within a period, a value for indicating that the sensing instruction is an unobstructed sensing instruction is set on a bit corresponding to the unobstructed sensing instruction.
  14. 如权利要求8~13任一所述的终端,其特征在于,所述处理器具体用于:The terminal according to any one of claims 8 to 13, wherein the processor is specifically configured to:
    确定的控制功能为增大音量,则进行增大音量操作;或If the determined control function is to increase the volume, perform the volume increase operation; or
    确定的控制功能为增大音量,则进行减小音量操作。The determined control function is to increase the volume, then perform a volume reduction operation.
PCT/CN2019/070139 2018-06-26 2019-01-02 Control method and apparatus for terminal with sensor WO2020000997A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810670445.9 2018-06-26
CN201810670445.9A CN110650238A (en) 2018-06-26 2018-06-26 Method and device for controlling terminal with sensor

Publications (1)

Publication Number Publication Date
WO2020000997A1 true WO2020000997A1 (en) 2020-01-02

Family

ID=68985439

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/070139 WO2020000997A1 (en) 2018-06-26 2019-01-02 Control method and apparatus for terminal with sensor

Country Status (2)

Country Link
CN (1) CN110650238A (en)
WO (1) WO2020000997A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113063563B (en) * 2021-03-15 2024-02-06 读书郎教育科技有限公司 Auxiliary method for factory pipeline test based on distance induction

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060267860A1 (en) * 2005-05-24 2006-11-30 Rinaldo John D Jr Device pairing via human initiated contact
CN102273083B (en) * 2008-12-31 2014-09-10 摩托罗拉移动公司 Portable electronic device having directional proximity sensors based on device orientation
US9829941B1 (en) * 2016-08-19 2017-11-28 Qualcomm Incorporated Mobile device with backside capacitive sensor for thermal management of an exterior housing
KR20170142058A (en) * 2016-06-16 2017-12-27 크루셜텍 (주) Sensor assembly, portable device having the same, and operation method thereof
EP3333684A1 (en) * 2016-12-12 2018-06-13 Samsung Electronics Co., Ltd. Electronic device having a biometric sensor

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140329567A1 (en) * 2013-05-01 2014-11-06 Elwha Llc Mobile device with automatic volume control
CN106250151B (en) * 2016-07-29 2019-07-26 努比亚技术有限公司 The operating method of mobile terminal and mobile terminal
CN106445150A (en) * 2016-09-29 2017-02-22 努比亚技术有限公司 Method and device for operating terminal application
CN106527930A (en) * 2016-10-31 2017-03-22 努比亚技术有限公司 Terminal application control apparatus and method
CN106775305A (en) * 2016-11-30 2017-05-31 努比亚技术有限公司 A kind of terminal quick calling apparatus and method
CN107465972A (en) * 2017-09-15 2017-12-12 歌尔股份有限公司 The audio play control method and wireless headset of a kind of mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060267860A1 (en) * 2005-05-24 2006-11-30 Rinaldo John D Jr Device pairing via human initiated contact
CN102273083B (en) * 2008-12-31 2014-09-10 摩托罗拉移动公司 Portable electronic device having directional proximity sensors based on device orientation
KR20170142058A (en) * 2016-06-16 2017-12-27 크루셜텍 (주) Sensor assembly, portable device having the same, and operation method thereof
US9829941B1 (en) * 2016-08-19 2017-11-28 Qualcomm Incorporated Mobile device with backside capacitive sensor for thermal management of an exterior housing
EP3333684A1 (en) * 2016-12-12 2018-06-13 Samsung Electronics Co., Ltd. Electronic device having a biometric sensor

Also Published As

Publication number Publication date
CN110650238A (en) 2020-01-03

Similar Documents

Publication Publication Date Title
US9948980B2 (en) Synchronizing audio content to audio and video devices
KR102122476B1 (en) Apparatas and method for controlling a rotation of screen in an electronic device
WO2018054356A1 (en) Method for displaying information and terminal
KR102187255B1 (en) Display method of electronic apparatus and electronic appparatus thereof
TWI489371B (en) Method and apparatus for performing wireless display control
US10725972B2 (en) Continuous and concurrent device experience in a multi-device ecosystem
US20170017458A1 (en) Mobile terminal, television broadcast receiver, and device linkage method
KR102105520B1 (en) Apparatas and method for conducting a display link function in an electronic device
KR102076280B1 (en) Method and apparatus for performing communication of electronic device in mobile communicatino system
KR20180108310A (en) Method and electronic apparatus for transmitting audio data to a plurality of external devices
CN102404450B (en) Mobile telephone hosted meeting controls
JP2016526244A (en) Application program processing method, apparatus, program, and storage medium
RU2619089C2 (en) Method and device for multiple videos reproduction
US20220253492A1 (en) Method, an apparatus, an electronic device and a storage medium for multimedia information processing
US20230138804A1 (en) Enhanced video call method and system, and electronic device
KR102157858B1 (en) Apparatas and method for reducing a power consumption in an electronic device
KR102013373B1 (en) Method, apparatus and recovering medium for interworking with external terminal
CN114071243A (en) Video playing method and device, electronic equipment and storage medium
KR20150026560A (en) An electronic device including opanable cover and operating method thereof
US20160210467A1 (en) Electronic apparatus and information access control method thereof
JP2019525267A (en) Smart home initialization method, apparatus, program, and recording medium
WO2020000997A1 (en) Control method and apparatus for terminal with sensor
WO2024045985A1 (en) Screen control method, screen control apparatus, electronic device, program, and medium
KR101876394B1 (en) Method and device for playing media data on a terminal
KR102213429B1 (en) Apparatus And Method For Providing Sound

Legal Events

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

Ref document number: 19826887

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 01.04.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19826887

Country of ref document: EP

Kind code of ref document: A1