WO2013134996A1 - 一种控制方法、控制装置和电子设备 - Google Patents

一种控制方法、控制装置和电子设备 Download PDF

Info

Publication number
WO2013134996A1
WO2013134996A1 PCT/CN2012/075470 CN2012075470W WO2013134996A1 WO 2013134996 A1 WO2013134996 A1 WO 2013134996A1 CN 2012075470 W CN2012075470 W CN 2012075470W WO 2013134996 A1 WO2013134996 A1 WO 2013134996A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
input operation
user
type
button
Prior art date
Application number
PCT/CN2012/075470
Other languages
English (en)
French (fr)
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 WO2013134996A1 publication Critical patent/WO2013134996A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/038Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry

Definitions

  • the present invention relates to the field of electronic devices, and more particularly to a control method, a control device, and an electronic device. Background technique
  • USB Universal Serial Bus
  • PC personal computer
  • this method requires the user to manually select the function that the electronic device is required to provide after the electronic device user interface presents the option, which is not conducive to the user experience: on the one hand, the user is not easy to operate; on the other hand, the electronic device The device needs to recognize the destination action by calling and reading the user interface, and there is also a time waiting for the user to operate, so that the recognition takes a long time.
  • an object of the present invention is to provide a control method, a control device, and an electronic device. It is possible to simplify user operations and reduce the time taken by the electronic device to recognize the purpose of the user's connection to the electronic device, thereby improving the user experience.
  • the present invention provides the following solutions:
  • the present invention provides a control method for a first electronic device, wherein the first electronic device is provided with an input unit for user input and a first interface, and the first electronic device can pass the first
  • the interface provides at least two functions, and each of the at least two functions corresponds to a preset input operation, and the control method includes:
  • the input unit is a first button
  • the control method further includes:
  • each of the at least two functions further corresponds to a preset type of the second electronic device
  • the first instruction is a type of the second electronic device
  • the input operation corresponds to an instruction
  • the first correspondence between the input operation and the first instruction is recorded in advance, and the control method further includes determining whether the input operation is recorded in the first correspondence, If yes, the step of determining the first instruction corresponding to the input operation is entered; if not, the prompt information for prompting the user is output through the output unit.
  • the method for controlling the first electronic device to execute the first instruction is:
  • the method for monitoring an input operation performed by the user through the input unit is:
  • each of the at least two functions further corresponds to a type of a preset second electronic device, and the monitoring user is triggered to perform monitoring by the input unit according to the insertion signal.
  • the input operation method is:
  • the present invention also provides a control device for a first electronic device, wherein the first electronic device is provided with an input unit for user input and a first interface, and the first electronic device can pass the An interface provides at least two functions, each of the at least two functions corresponding to a preset input operation, and the control device includes:
  • a monitoring module configured to monitor an input operation performed by the user through the input unit; and a processing module configured to determine a first instruction corresponding to the input operation;
  • control module configured to control the first electronic device to execute the first instruction, such that the first electronic device is in a state capable of providing a function corresponding to the input operation.
  • the input unit is a first button
  • the processing module package Includes:
  • An operation type determining unit configured to determine whether the input operation performed on the first key is a first type of operation or a second type of operation
  • An execution unit configured to: when the input operation performed on the first button is the operation of the first type, enter the step of determining a first instruction corresponding to the input operation; when the first button is When the input operation performed is the second type of operation, the first electronic device is controlled to execute a second instruction corresponding to the second type of operation.
  • each of the at least two functions further corresponds to a type of a preset second electronic device
  • the first instruction is a type of the second electronic device
  • the input operation corresponds to an instruction
  • the present invention also provides an electronic device including the above control device.
  • the present invention has at least the following technical effects:
  • the electronic device enters a state capable of providing a function corresponding to the input operation of the user according to the input operation of the user, and the process does not involve the calling and reading of the user interface, thereby shortening the time for the electronic device to provide the corresponding function, so that Users do not need to spend a long wait time, which improves the user experience.
  • FIG. 1 is a flowchart of steps of a control method according to an embodiment of the present invention
  • FIG. 2 is a flow chart of steps of an example of a control method according to an embodiment of the present invention.
  • FIG. 3 is a structural diagram of a control device according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a control device in a case where an input unit is a first button according to an embodiment of the present invention Structure diagram. detailed description
  • FIG. 1 is a flowchart of steps of a control method according to an embodiment of the present invention.
  • the control method is used in a first electronic device, and includes the following steps:
  • Step 101 Monitor an input operation performed by the user through the input unit.
  • Step 102 Determine a first instruction corresponding to the input operation
  • Step 103 Control the first electronic device to execute the first instruction, so that the first electronic device is in a state capable of providing a function corresponding to the input operation.
  • the first electronic device can provide at least two functions through the first interface, wherein each of the at least two functions corresponds to a preset input operation.
  • the user can directly perform an input operation corresponding to the function provided by the electronic device, because the user remembers the corresponding relationship in advance.
  • the electronic device enters a state capable of providing a function corresponding to the user's input operation according to the user's input operation, and the process does not involve
  • the user interface is called and read, which shortens the time for the electronic device to provide the corresponding function, so that the user does not need to spend a long waiting time.
  • the user experience is enhanced.
  • the first interface may be a plurality of interfaces having multiple functions, such as a USB interface or an IEEE 1394 interface
  • the first electronic device may be an electronic device having the above interface, such as a mobile phone or a digital camera.
  • the input unit may be various types of units for user input provided on various electronic devices that may or may not be present in the future, such as a button or a sensor capable of detecting a user's motion or a user's voice.
  • the button can be a physical button or a virtual button on the touch screen. ⁇ titb gives an example of the mouth.
  • the physical button can be a button “*,,” a button “0” or a button “c”, or an up button, a down button, a left button or a right button of the navigation button; and the virtual button on the touch screen can be displayed on the touch screen.
  • the user's action may be preset in the first electronic device Actions in a space other than space, such as a circle or triangle gesture;
  • the user's voice can be a preset sound, such as Chinese vocal "charging”, Chinese vocal "data transmission”.
  • buttons are separately provided for the method of the embodiment of the present invention, but in order to save the processing resources of the device, the convenience of designing the electronic device, and the convenience of the user, the button may also be a button with other functions (such as navigation). Multiplexing of keys, letter keys, etc.).
  • the user's operation of the first button needs to be distinguished.
  • the result of the button operation is not used in the method of the embodiment of the present invention, and the result of the button operation is used only when the user uses the secondary function of the button.
  • the above multiplexing can be distinguished by different types of operations. After setting different operation types, it can be determined whether the input operation performed on the first button is the first type of operation (the operation of performing the original function) or the first Two types of operations (performing an operation for the method of the embodiment of the present invention); when an input operation performed on the first key is the first type of operation, entering the determination corresponding to the input operation a step of the first instruction; when the input operation performed on the first button is the second type of operation, controlling the first electronic device to execute a second instruction corresponding to the second type of operation.
  • the first type of operation the operation of performing the original function
  • the first Two types of operations performing an operation for the method of the embodiment of the present invention
  • the determining whether the input operation performed on the first button is a first type of operation or a second type of operation may have different judgment criteria, such as in a time manner, in a quantity manner, or in a combination of time and quantity. the way.
  • the first type of operation may be that the first button is pressed.
  • the duration of the second type is not less than the first threshold, and the second type of operation may be that the duration of the first button being pressed is less than the first threshold.
  • the first threshold and the second threshold are preset, wherein the first threshold is greater than the second threshold, and the first type of operation may be that the duration of the first button being pressed is not less than the first threshold, and the second The type of operation may be that the first button is pressed for a duration no greater than a second threshold.
  • the operation of the first type is that the number of times the first button is pressed within a predetermined time period is not less than the first number
  • the operation of the second type is the predetermined time period of the first button The number of times of being hit is less than the first number.
  • the first electronic device can provide at least two functions through the first interface, and the at least two functions can be at least two single functions, such as a charging function and a data reading and writing function, or a charging function.
  • memory data read and write function and external memory card data read and write function can also be at least two single functions and some or all of these single functions, such as charging function, data read and write function and charging and data reading Write function, or charge function, memory data read and write function, external memory card data read and write function, charge and memory data read and write function and charge and external memory card data read and write function.
  • the interface can provide the following three functions: charging, providing read and write functions of an external memory card, and providing read and write functions of the memory, and the input unit is a physical button "*", For example, "c" and "0", an example of the correspondence between each of the at least two functions and the preset input operation and the first instruction is as shown in Table 1: Table 1
  • the charging entity button "*" is pressed to control the corresponding module to enter the commandable time to reach the state of providing the charging function for 3 seconds.
  • the read/write physical button “C” for providing an external memory card is pressed to open the external memory card.
  • the time of the USB flash drive is up to 3 seconds.
  • the memory is read and written.
  • the physical button "0" is pressed to open the U disk mode of the memory. The hit time reaches the 3 second command
  • the method for controlling the first electronic device to execute the first instruction is, for example, controlling the first electronic device to enter when the first instruction is an instruction to control a corresponding module to enter a state capable of providing a charging function.
  • the state of the charging function can be provided; or, when the first instruction is an instruction to open the U disk mode of the external memory card, controlling the first electronic device to open the U disk mode of the external memory card, so that the first The electronic device is in a state capable of providing a read/write function of the external memory card; or, when the first instruction is an instruction to turn on the memory in the u disk mode, controlling the first electronic device to open the U disk mode of the memory, so that The first electronic device is in a state capable of providing a read/write function of a memory.
  • the second instruction may record the value of the number or letter corresponding to the first button into the first electronic device; or, may guide the first electronic device to enter the standby mode; or, may return Step 101, that is, continuously monitoring the input operation performed by the user on the first button.
  • the interface of the electronic device can be externally connected to various devices, for example, the USB interface can be externally connected to the charger of the USB interface, or externally connected to other electronic devices (such as a PC), but only when the external device is a specific type of electronic device. (For example, a PC), it can provide the above various functions. Therefore, in the specific embodiment of the present invention, in order to avoid the application of the embodiment of the present invention to an external electronic device (such as an external charger) that provides only one function
  • an external electronic device such as an external charger
  • each of the at least two functions in the control method of the embodiment of the present invention may also correspond to a preset type of the second electronic device, such as a PC or a tablet.
  • the method for determining the first instruction may be: determining, by the first interface, a type of the external electronic device after monitoring an input operation performed by the user through the input unit, Determining the first instruction if the type of the external electronic device is a preset type; performing other functions, such as guiding the external electronic device when the external electronic device provides only one function Entering a state capable of providing such a function, or guiding the first electronic device to enter a standby state.
  • the input operation performed by the input unit and the determining the type of the external electronic device may further include: monitoring an insertion signal of the external electronic device through the first interface, and then determining the externality under the trigger of the insertion signal The type of electronic device.
  • the first correspondence between the input operation and the first instruction may be recorded in advance, and the method for determining the first instruction corresponding to the input operation may be: determining whether the input operation is Recording in the first correspondence, if yes, determining a first instruction corresponding to the input operation; if not, outputting, by the output unit, prompt information for prompting the user to make an error, such as displaying a prompt on the display screen or The user is prompted by voice through the speaker to make possible operational errors and/or correct operations that the user can perform.
  • the user can perform subsequent operations by using the prompt information, such as performing a certain type of operation or performing a second type of operation.
  • the method of determining whether the input operation is recorded in the first correspondence may be: determining the input operation and the type of the second electronic device, when the device type is further included in the foregoing relationship. Whether the combination is recorded in the second correspondence.
  • the method for controlling the first electronic device to execute the first instruction may be: Monitoring an insertion signal of the external electronic device through the first interface, and then triggering the first electronic device to execute the first instruction according to the insertion signal. In this way, the first electronic device is prevented from controlling the execution of the first instruction without the user inserting the external electronic device into the first interface, thereby avoiding unnecessary power consumption of the first electronic device. Or a possible instruction execution error.
  • the method for monitoring an input operation performed by the user through the input unit may be: monitoring an insertion signal of an external electronic device by using the first interface, and then triggering monitoring of a user through the input unit according to the insertion signal The input operation performed.
  • the first electronic device is prevented from monitoring the user's input operation through the input unit without inserting the external electronic device into the first interface, thereby avoiding the first electronic device. Unnecessary power consumption or possible instruction execution errors.
  • the insertion signal may also be caused by the insertion of an external electronic device of a type other than the type of the second electronic device.
  • the external electronic device for example, an external electronic device that provides only a single function. Then, in this case, if the input operation by the user through the input unit is still monitored, the first electronic device wastes or consumes power. Therefore, the method for triggering an input operation performed by the user through the input unit according to the insertion signal may be: determining a type of the external electronic device according to the insertion signal, when the type of the external electronic device is When the type of the second electronic device is used, an input operation performed by the user through the input unit is monitored.
  • the first electronic device is a mobile phone
  • the first interface is a USB interface
  • the second electronic device is an external USB device. , such as a PC.
  • the input unit is a first button, such as a physical button or a virtual button on the touch screen, wherein the physical button is a button "*", a button “0”, a button “c”, a navigation button up button, a navigation button down button, navigation The left button of the button and any three buttons in the right button of the navigation button; the virtual button on the touch screen is the button “*" displayed on the touch screen, the button “0”, the button “c”, the up button of the navigation button, and the navigation button The lower button, the left button of the navigation button, and any three virtual buttons in the right button of the navigation button.
  • the physical button is a button "*", a button “0”, a button “c”, a navigation button up button, a navigation button down button, navigation The left button of the button and any three buttons in the right button of the navigation button.
  • At least two functions are charging, data transfer in the phone memory, and data transfer on a TransFlash (TF, T-flash) memory card.
  • TF TransFlash
  • T-flash TransFlash
  • the first button is a button having a secondary function.
  • the secondary function of the button refers to the function that can be realized when the long button is pressed under the main interface of the mobile phone.
  • the first command is to enter the charging mode, open the U disk mode of the TF memory card or open the U disk mode of the phone memory.
  • USB-A end one end of the USB cable connected to the mobile phone is set to the USB-A end
  • USB cable is connected to the charger or one end of the external USB device is set to the USB-B end
  • the first electronic device can be divided into three modules according to the function: USB main control module, key secondary function recognition module and main application control module.
  • the USB main control module is responsible for detecting the USB plugging and unplugging action and the device for identifying the USB-B end connection
  • the button secondary function recognition module is responsible for performing the second function presetting and calling of the mobile phone button
  • the main application control module is responsible for The USB main control module and the key secondary function recognition module are combined to further determine the insertion purpose of the USB, thereby starting the corresponding operation.
  • Step 201 Configure the USB main control module on the mobile phone side.
  • the detailed configuration process of the USB main control module is to detect the USB plugging and unplugging action and the external electronic device connected to the USB terminal.
  • the USB cable When the USB cable is inserted into the mobile phone, the power of the USB terminal generates an interrupt signal to the main application of the mobile phone. Module. Further, the USB main control module judges whether D+ and D- are short-circuited. If it is short-circuited, it determines that the charger is connected, and if it is not short-circuited, it judges that it is connected to an external USB device (such as a PC).
  • an external USB device such as a PC
  • Step 202 Pre-set the secondary function recognition module of the mobile phone button.
  • the preset process of the secondary function recognition module of the mobile phone button is: when the user presses the "*" key under the main interface of the mobile phone, the information is uploaded to the main application module, so that the charging related parameters are called, and the external USB device is activated to the mobile phone.
  • the charging process is performed; for example, when the user presses the "0" key on the main interface of the mobile phone, the information is uploaded to the main application module, so that the data transmission process of the mobile phone memory is called; when the user is long on the main interface of the mobile phone Pressing the "c" key will report the information to the main application module, causing it to call the data transfer process of the T-flash card.
  • the step 202 may occur before step 201 or may occur simultaneously with step 201.
  • Step 203 The main application module of the mobile phone reads the information reported by the USB main control module and the secondary function recognition module of the mobile phone key, and combines the obtained information to determine the combination.
  • the main application module needs to be pre-set.
  • all combinations of the types of the second electronic device related to the at least two functions and the preset input operations, and the corresponding relationship between each of the combinations and the first instruction information may be preset in the main application.
  • the main application module reads the type information of the external electronic device from the USB main control module and After the input operation information from the secondary function recognition module of the mobile phone, the function can be called, and the first instruction information generated by the function is read, and then the corresponding process is invoked according to the first instruction information, so that the mobile phone is capable of providing the The status of one of at least two functions.
  • Table 2 An example of the correspondence between different combinations and different first instructions is shown in Table 2:
  • Step 204 When the main application module of the mobile phone determines the correct report combination information, the obtained report information of the USB main control module and the secondary function module of the mobile phone key is consistent with the value preset in the main application module. , immediately activate the action of the related function.
  • the main application module determines whether the result of the combination of the two pieces of information is recorded in advance, the main application module calls the secondary development program according to the two pieces of information, thereby The secondary development program generates a first instruction based on the two pieces of information. Then, the main application module immediately starts the action of the function corresponding to the first instruction.
  • the first instruction is an instruction to control the corresponding module to enter a state capable of providing a charging function, the charging related parameter is invoked, and the external USB device is started to perform charging process on the mobile phone; in the first instruction is a U disk mode in which the TF memory card is turned on.
  • the instruction is executed, the data transmission corresponding process of the T-flash card is called; when the first instruction is the instruction of opening the U disk mode of the memory, the corresponding process of calling the data transmission of the mobile phone memory is performed.
  • Step 205 When the main application module of the mobile phone determines the reported combined information and its preset When the values are inconsistent, the error message is released, and a prompt tone is sent to the user through the main application module to remind the user to perform the correct operation.
  • the USB main control module performs information reporting by using a hardware detection method, that is, the connection of the USB cable is nothing more than a charger or an external USB device, and no error information is generated, so in this step, "Release the wrong report information, mainly for the user to take the necessary steps when pressing the wrong button.
  • the secondary function module of the mobile phone button re-sends the detected information to the main application.
  • the program module performs the report, and the combination judgment is repeated, that is, the process of step 203 and step 204 is repeated.
  • the user presses the wrong key for example, the physical button without the secondary function or the virtual button on the touch screen is pressed or The duration of the stroke is not less than a certain threshold.
  • the secondary development function of the button of the mobile phone is combined with the identification of the USB cable inserted into the external electronic device, and the selection step of charging or data transmission through the user interface of the mobile phone is reduced, thereby improving the usability of the user.
  • the external interface may also be other interfaces, and the external device may also be other devices, and the difference between different interfaces and different devices is only in the end. The differences in the determined instructions are not described in detail here.
  • the foregoing step 202 is before step 201 or At the same time as step 201, in order to most time, the preset operation of the mobile phone from the user to the state in which the corresponding function is provided, the preset of the main application module may be the input of each preset.
  • the correspondence between the operation and the first instruction information is previously set in the main application module, for example, in a fixed software interface function written in advance to the main application module. After the main application module reads the type information of the external electronic device from the USB main control module, the function can be called and the function is read.
  • the specific implementation of the present example in the application scenario is as follows:
  • the first function of at least two functions is to provide a read/write function of the TF memory card, and the corresponding first operation of the first type of input operation is The U disk mode command of the TF memory card is opened;
  • the second function of at least two functions is to provide a read/write function of the memory, and the corresponding first type of input operation is the U disk mode of the navigation device.
  • Instructions. by presetting the secondary development interface and the secondary development function of the mobile phone button on the software, the mobile phone has the following control methods:
  • the system When the mobile phone is in the standby state, when the system detects that the left button of the navigation button is pressed for 3 seconds in the case where the mobile phone presents the main interface, the system is briefly awakened, and the secondary development function is called in the background. So that the phone's system is ready to open an external TF memory card At the same time, the system detects whether an external electronic device of the type of the second electronic device is connected to the mobile phone through the USB interface within a predetermined time, and if so, immediately starts the U disk mode of the external TF memory card. At this point, the user can see the new drive letter appear on the computer, and then read and write the external TF memory card; if not, the function call is immediately released, and the system continues to enter the standby state. Through this control method, the user can quickly connect the mobile phone to other external electronic devices (such as a PC) other than the charger, and directly read related data in the external TF card on the mobile phone and read and write the external TF card. , thus improving the user experience.
  • the mobile phone has the following control methods:
  • the system of the mobile phone is ready to open the U disk mode of the memory used by the mobile phone for the user; at the same time, the system detects whether an external electronic device of the type of the second electronic device is connected to the mobile phone through the USB interface within a predetermined time. If yes, immediately start the U disk mode of the memory used by the mobile phone for the user. At this time, the user can see the new drive letter appear on the computer, and then perform corresponding read and write operations; if not, the function call is immediately released.
  • the system continues to enter standby.
  • the user can quickly connect the mobile phone to other external electronic devices (such as a PC) other than the charger, and directly read the relevant data carried by the mobile phone for the user to use the memory and perform corresponding reading and writing. Operation, which enhances the user experience.
  • FIG. 3 is a structural diagram of a control apparatus according to an embodiment of the present invention.
  • the control apparatus includes a monitoring module 301, a processing module 302, and a control module 303, where:
  • the monitoring module 301 is configured to monitor an input operation performed by the user through the input unit; the processing module 302 is configured to determine a first instruction corresponding to the input operation;
  • the control module 303 is configured to control the first electronic device to execute the first instruction, such that The first electronic device is in a state capable of providing a function corresponding to the input operation.
  • the first electronic device can provide at least two functions through the first interface, wherein each of the at least two functions corresponds to a preset input operation.
  • the user can directly perform an input operation corresponding to the function provided by the electronic device, because the user remembers the corresponding relationship in advance.
  • the electronic device enters a state capable of providing a function corresponding to the user's input operation according to the user's input operation, and the process does not involve
  • the user interface is called and read, which shortens the time for the electronic device to provide the corresponding function, so that the user does not need to spend a long waiting time.
  • the user experience is enhanced.
  • the input unit may be a first button with independent functions; in order to save processing resources of the device and take care of the convenience of the user, it may also be a multiplexing of the first button having other functions. In the latter case, it is necessary to distinguish the operation of the first button by the user.
  • the foregoing processing module 302 may include:
  • An operation type determining unit configured to determine whether the input operation performed on the first key is a first type of operation or a second type of operation
  • An execution unit configured to: when the input operation performed on the first button is the first type of operation, enter a step of determining a first instruction corresponding to the input operation; when performing the first button When the input operation is the second type of operation, the first electronic device is controlled to execute a second instruction corresponding to the second type of operation.
  • the operation of the first button by the user can be separated, thereby performing the first type of operation performed by the user.
  • the first instruction corresponds to the first instruction.
  • each of the at least two functions further corresponds to a preset type of the second electronic device, such as a PC or a tablet.
  • the first instruction may be the second The first instruction corresponding to the type of the child device.
  • An embodiment of the present invention further provides an electronic device, the device comprising the control device described above.
  • the electronic device can be a mobile phone or a digital camera.
  • the embodiments of the present invention have the following advantages:
  • the electronic device enters a state capable of providing a function corresponding to the input operation of the user according to the input operation of the user, and the process does not involve the calling and reading of the user interface, thereby shortening the time for the electronic device to provide the corresponding function, so that Users do not need to spend a long wait time, which improves the user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

本发明提供了一种控制方法、控制装置和电子设备。其中,所述控制方法包括:监视用户通过输入单元进行的输入操作;确定与所述输入操作对应的第一指令;控制第一电子设备执行所述第一指令,使得第一电子设备处于能够提供与所述输入操作对应的功能的状态。本发明能够简化用户操作并减少电子设备识别用户连接所述电子设备的目的动作所耗费的时间,从而提升用户体验。

Description

一种控制方法、 控制装置和电子设备 技术领域
本发明涉及电子设备领域, 特别是涉及一种控制方法、 控制装置和电 子设备。 背景技术
随着用户对电子设备易操作性需求的日益提升, 使用单一的外接设备 接口 (如通用串行总线接口、 IEEE 1394接口)连接电子设备(如手机、 数 码相机)和外部电子设备(如个人计算机), 从而支持电子设备与外部电子 设备之间的充电、 数据传输等交互已经成为一种发展趋势。
以使用通用串行总线( Universal Serial Bus, USB )接口连接手机和个 人计算机( Personal Computer, PC机) 为例, 目前普遍采用的方法为: 在 手机与 PC机通过 USB数据线相连接的瞬间,手机的系统自动判断 USB数 据线与外部电子设备相连的一端输出的 D+与 D-是否短接在一起, 如果是, 则直接进入充电模式; 否则, 在手机用户界面显示充电、 数据传输等选项, 在接收到用户的选择指令后启动相应的操作。
然而, 这种方法需要在电子设备用户界面呈现出选项后再由用户手动 选择希望所述电子设备提供的功能, 不利于用户体验: 一方面, 用户操作 起来不够简便; 另一方面, 所述电子设备需要通过对用户界面的调用和读 取来识别目的动作, 当中还有等待用户操作的时间, 从而这种识别所耗费 的时间也较长。 发明内容
有鉴于此, 本发明的目的是提供一种控制方法、 控制装置和电子设备, 能够简化用户操作并减少电子设备识别用户连接所述电子设备的目的动作 所耗费的时间, 从而提升用户体验。
为解决上述技术问题, 本发明提供方案如下:
本发明提供了一种控制方法, 用于第一电子设备, 其中, 所述第一电 子设备上设置有用于用户输入的输入单元和第一接口, 所述第一电子设备 能够通过所述第一接口提供至少两种功能, 所述至少两种功能中的每一种 功能对应于一预设的输入操作, 所述控制方法包括:
监视用户通过所述输入单元进行的输入操作;
确定与所述输入操作对应的第一指令;
控制所述第一电子设备执行所述第一指令, 使得所述第一电子设备处 于能够提供与所述输入操作对应的功能的状态。
优选地, 上述的方法中, 所述输入单元为第一按键, 所述控制方法还 包括:
判断对所述第一按键进行的输入操作为第一类型的操作还是第二类型 的操作;
当对所述第一按键进行的输入操作为所述第一类型的操作时, 进入所 述确定与所述输入操作对应的第一指令的步驟; 当对所述第一按键进行的 输入操作为所述第二类型的操作时, 控制所述第一电子设备执行与所述第 二类型的操作对应的第二指令。
优选地, 上述的方法中, 所述至少两种功能中的每一种功能还对应于 一预设的第二电子设备的类型, 所述第一指令为与所述第二电子设备的类 型以及所述输入操作均对应的指令。
优选地, 上述的方法中, 预先记录了所述输入操作和所述第一指令的 第一对应关系, 所述控制方法还包括判断所述输入操作是否记录于所述第 一对应关系中, 如果是, 则进入所述确定与所述输入操作对应的第一指令的步驟; 如果否, 则通过输出单元输出用于提示用户的提示信息。
优选地, 上述的方法中, 所述控制所述第一电子设备执行所述第一指 令的方法为:
通过所述第一接口监视外部电子设备的插入信号;
根据所述插入信号触发控制所述第一电子设备执行所述第一指令。 优选地, 上述的方法中, 所述监视用户通过所述输入单元进行的输入 操作的方法为:
通过所述第一接口监视外部电子设备的插入信号;
根据所述插入信号触发监视用户通过所述输入单元进行的输入操作。 优选地, 上述的方法中, 所述至少两种功能中的每一种功能还对应于 一预设的第二电子设备的类型, 所述根据所述插入信号触发监视用户通过 所述输入单元进行的输入操作的方法为:
根据所述插入信号确定所述外部电子设备的类型;
判断所述外部电子设备的类型是否为所述预设的第二电子设备的类 型, 如果是, 则触发监视用户通过所述输入单元进行的输入操作。
本发明还提供了一种控制装置, 用于第一电子设备, 其中, 所述第一 电子设备上设置有用于用户输入的输入单元和第一接口, 所述第一电子设 备能够通过所述第一接口提供至少两种功能, 所述至少两种功能中的每一 种功能对应于一预设的输入操作 , 所述控制装置包括:
监视模块, 设置为监视用户通过所述输入单元进行的输入操作; 处理模块, 设置为确定与所述输入操作对应的第一指令;
控制模块, 设置为控制所述第一电子设备执行所述第一指令, 使得所 述第一电子设备处于能够提供与所述输入操作对应的功能的状态。
优选地, 上述的装置中, 所述输入单元为第一按键, 所述处理模块包 括:
操作类型确定单元, 设置为判断对所述第一按键进行的输入操作为第 一类型的操作还是第二类型的操作;
执行单元, 设置为当对所述第一按键进行的输入操作为所述第一类型 的操作时, 进入所述确定与所述输入操作对应的第一指令的步驟; 当对所 述第一按键进行的输入操作为所述第二类型的操作时, 控制所述第一电子 设备执行与所述第二类型的操作对应的第二指令。
优选地, 上述的装置中, 所述至少两种功能中的每一种功能还对应于 一预设的第二电子设备的类型, 所述第一指令为与所述第二电子设备的类 型以及所述输入操作均对应的指令。
本发明还提供了一种包括上述控制装置的电子设备。
从以上所述可以看出, 本发明至少存在以下技术效果:
1 )通过预先设置电子设备提供的功能与用户的输入操作之间的对应关 系, 使得用户可以直接进行与电子设备提供的功能相对应的输入操作, 因 为用户预先记住这种对应关系, 并不需要浏览用户界面的提示, 这样就使 用户操作起来更简便, 从而提升了用户体验。
2 )电子设备根据用户的输入操作进入到能够提供与用户的输入操作对 应的功能的状态, 这个过程并不涉及用户界面的调用和读取, 这样就缩短 了电子设备提供相应功能的时间, 使得用户不需要花费较长的等待时间, 从而提升了用户体验。 附图说明
图 1为本发明实施例提供的控制方法的步驟流程图;
图 2为本发明实施例提供的控制方法的例子的步驟流程图;
图 3为本发明实施例提供的控制装置的结构图;
图 4为本发明实施例提供的输入单元为第一按键情况下的控制装置的 结构图。 具体实施方式
为使本发明的目的、 技术方案和优点更加清楚, 下面将结合附图及具 体实施例对本发明进行详细描述。
图 1为本发明实施例提供的控制方法的步驟流程图, 参照图 1 , 所述控 制方法用于第一电子设备, 包括如下步驟:
步驟 101 , 监视用户通过所述输入单元进行的输入操作;
步驟 102, 确定与所述输入操作对应的第一指令;
步驟 103,控制所述第一电子设备执行所述第一指令,使得所述第一电 子设备处于能够提供与所述输入操作对应的功能的状态。
所述第一电子设备能够通过所述第一接口提供至少两种功能, 其中, 所述至少两种功能中的每一种功能对应于一预设的输入操作。
这样, 一方面, 通过预先设置电子设备提供的功能与用户的输入操作 之间的对应关系, 使得用户可以直接进行与电子设备提供的功能相对应的 输入操作, 因为用户预先记住这种对应关系, 并不需要浏览用户界面的提 示, 这样就使用户操作起来更简便; 另一方面, 电子设备根据用户的输入 操作进入到能够提供与用户的输入操作对应的功能的状态, 这个过程并不 涉及用户界面的调用和读取, 这样就缩短了电子设备提供相应功能的时间, 使得用户不需要花费较长的等待时间。 由此, 也就提升了用户体验。
在上述方法中, 所述第一接口可以为 USB接口或者 IEEE 1394接口等 各种具备多种功能的接口, 而所述第一电子设备可以为手机、 数码相机等 各种具备上述接口的电子设备。
所述输入单元可以为现有或者未来可能出现的各种电子设备上设置的 用于用户输入的各种类型的单元, 如按键或能够检测用户的动作或用户的 声音的传感器等。 而所述的按键可以为实体按键、 触摸屏上的虚拟按键, ^titb举例说明 口下。
如该实体按键可以是按键 "*,,、 按键 "0" 或按键 "c" , 或者是导航键 的上键、 下键、 左键或右键; 而触摸屏上的虚拟按键可以是触摸屏上显示 的按键 "*"、 按键 "0" 或按键 "c" , 或者是触摸屏上显示的导航键的上键、 下键、 左键或右键; 用户的动作可以是预设的在所述第一电子设备之外的 空间中的动作, 如画圈或三角形的手势; 用户的声音可以是预设的声音, 如汉语发声 "充电"、 汉语发声 "数据传输"。 当所述输入单元为按键时, 可以是独立设置的用于本发明实施例的方法的按键, 但为了节约设备的处 理资源、 电子设备设计的方便性以及用户使用的便利性, 该按键也可以是 对具备其它功能的按键(如导航键、 字母键等) 的复用。
对于后一种情况, 不管是实体按键, 还是虚拟按键, 都需要将用户对 所述第一按键的操作区分开。 当用户使用按键原有功能 (如字母键的字符 输入功能) 时不会将按键操作结果用于本发明实施例的方法, 只有在用户 使用按键的二次功能时才会将按键操作结果用于本发明实施例的方法。
而上述的复用可以通过不同类型的操作来区分, 在设置不同的操作类 型之后, 可以判断对所述第一按键进行的输入操作为第一类型的操作 (执 行原有功能的操作)还是第二类型的操作 (执行用于本发明实施例的方法 的操作); 当对所述第一按键进行的输入操作为所述第一类型的操作时, 进 入所述确定与所述输入操作对应的第一指令的步驟; 当对所述第一按键进 行的输入操作为所述第二类型的操作时, 控制所述第一电子设备执行与所 述第二类型的操作对应的第二指令。
所述判断对所述第一按键进行的输入操作为第一类型的操作还是第二 类型的操作可以有不同的判断准则, 如以时间的方式、 以数量的方式或者 以时间和数量相结合的方式。
例如, 预设第一门限, 则第一类型的操作可以为所述第一按键被按击 的持续时间不小于第一门限, 第二类型的操作可以为所述第一按键被按击 的持续时间小于第一门限。
又例如, 预设第一门限和第二门限, 其中, 第一门限大于第二门限, 则第一类型的操作可以为所述第一按键被按击的持续时间不小于第一门 限, 第二类型的操作可以为所述第一按键被按击的持续时间不大于第二门 限。
又例如, 预设第一数目, 则第一类型的操作为所述第一按键预定时间 段内被按击的次数不小于第一数目, 第二类型的操作为所述第一按键预定 时间段内被按击的次数小于第一数目。
之前提到, 所述第一电子设备能够通过所述第一接口提供至少两种功 能, 而所述至少两种功能可以为至少两种单一功能, 如充电功能和数据读 写功能, 或者充电功能、 内存的数据读写功能和外部存储卡的数据读写功 能; 还可以为至少两种单一功能以及这些单一功能中的某些或者全部组合, 如充电功能、 数据读写功能和充电并数据读写的功能, 或者充电功能、 内 存的数据读写功能、 外部存储卡的数据读写功能、 充电并内存的数据读写 的功能和充电并外部存储卡的数据读写的功能。
与上述输入单元和至少两种功能的举例相对应,以接口能够提供如下 3 种功能: 充电、 提供外部存储卡的读写功能以及提供内存的读写功能, 输 入单元为实体按键 "*"、 "c" 以及 "0" 为例, 所述至少两种功能中的每一 种功能与预设的输入操作以及第一指令的对应关系的例子如表 1所示: 表 1
至少两种功能中的功能 预设的输入操作 第一指令
充电 实体按键 "*" 被按 控制对应模块进入能够 击的时间达到 3秒 提供充电功能的状态的 指令 提供外部存储卡的读写 实体按键 "C" 被按 打开外部存储卡的 U盘 功能 击的时间达到 3秒 模式的指令 提供内存的读写功能 实体按键 "0" 被按 打开内存的 U盘模式的 击的时间达到 3秒 指令
相应地, 控制所述第一电子设备执行所述第一指令的方法例如, 当所 述第一指令为控制对应模块进入能够提供充电功能的状态的指令时, 则控 制所述第一电子设备进入能够提供充电功能的状态; 或者, 当所述第一指 令为打开外部存储卡的 U盘模式的指令时, 则控制所述第一电子设备打开 外部存储卡的 U盘模式, 使得所述第一电子设备处于能够提供外部存储卡 的读写功能的状态; 或者, 当所述第一指令为打开内存的 u盘模式的指令 时, 则控制所述第一电子设备打开内存的 U盘模式, 使得所述第一电子设 备处于能够提供内存的读写功能的状态。
所述第二指令可以为将所述第一按键对应的数字或字母的值记录到所 述第一电子设备中; 或者, 可以为引导所述第一电子设备进入待机模式; 或者, 可以为返回步驟 101 , 即继续监视用户对所述第一按键进行的输入操 作。
考虑到电子设备的接口可以外接多种设备, 以 USB接口为例, 其可以 外接 USB接口的充电器, 也可以外接其他电子设备(如 PC机), 但只有当 外接设备为特定类型的电子设备(如 PC机)时, 其才能提供上述的多种功 能, 因此, 本发明具体实施例中, 为了避免对只提供一种功能的外部电子 设备(如外接充电器时)应用本发明实施例的控制方法, 本发明实施例的 控制方法中所述至少两种功能中的每一种功能还可以对应于一预设的第二 电子设备的类型, 如 PC机、 平板电脑。
相应地, 确定所述第一指令的方法可以为: 在监视到用户通过所述输 入单元进行的输入操作后, 通过所述第一接口确定外部电子设备的类型, 如果所述外部电子设备的类型为预设的类型, 则确定所述第一指令; 否贝' J , 执行其它功能, 如在所述外部电子设备只提供一种功能时引导所述外部电 子设备进入能够提供与该种功能的状态, 或者, 引导所述第一电子设备进 入待机状态。
为了避免用户在通过所述输入单元进行输入操作后, 没有通过所述第 一接口插入外部电子设备所可能引起的所述第一电子设备的资源浪费或者 耗电, 则在监视到用户通过所述输入单元进行的输入操作和确定所述外部 电子设备的类型之间还可以包括: 通过所述第一接口监视所述外部电子设 备的插入信号, 然后在所述插入信号的触发下确定所述外部电子设备的类 型。
当然, 有可能用户在使用初期无法记住预设的输入动作, 这种情况下, 用户有可能输入了一个错误的输入操作, 此时应该给用户一个提示, 提高 用户体验, 避免用户长时间的等待。
因此, 本发明实施例中还可以预先记录所述输入操作和所述第一指令 的第一对应关系, 则确定与所述输入操作对应的第一指令的方法可以为: 判断所述输入操作是否记录于所述第一对应关系中, 如果是, 则确定与所 述输入操作对应的第一指令; 如果否, 则通过输出单元输出用于提示用户 出错的提示信息, 如在显示屏显示提示或者通过扬声器以语音方式提示用 户可能的操作错误和 /或用户可以进行的正确操作。 这样, 当用户操作错误 时, 用户就可以通过所述提示信息来进行后续操作, 如进行某第一类型的 操作或者进行某第二类型的操作。
当然, 当上述的对应关系中还包括设备类型时, 则判断所述输入操作 是否记录于所述第一对应关系中的方法可以为: 判断所述输入操作和所述 第二电子设备的类型的组合是否记录于所述第二对应关系中。
可选地, 所述控制所述第一电子设备执行所述第一指令的方法可以为: 通过所述第一接口监视外部电子设备的插入信号, 然后根据所述插入信号 触发控制所述第一电子设备执行所述第一指令。 这样, 就避免了所述第一 电子设备在用户没有将外部电子设备插入所述第一接口的情况下控制第一 指令的执行, 由此就避免了所述第一电子设备不必要的耗电或者可能的指 令执行出错。
可选地, 所述监视用户通过所述输入单元进行的输入操作的方法可以 为: 通过所述第一接口监视外部电子设备的插入信号, 然后根据所述插入 信号触发监视用户通过所述输入单元进行的输入操作。 这样, 就避免了所 述第一电子设备在用户没有将外部电子设备插入所述第一接口的情况下监 视用户通过所述输入单元进行的输入操作, 由此就避免了所述第一电子设 备不必要的耗电或者可能的指令执行出错。
可选地, 所述插入信号也可能是由于类型不是所述第二电子设备的类 型的外部电子设备的插入而引起的。 所述外部电子设备, 例如, 只提供单 一功能的外部电子设备。 则在这种情况下如果仍然监视用户通过所述输入 单元进行的输入操作, 就会弓 I起所述第一电子设备处理资源的浪费或者耗 电。 由此, 所述根据所述插入信号触发监视用户通过所述输入单元进行的 输入操作的方法可以为: 根据所述插入信号确定所述外部电子设备的类型, 当所述外部电子设备的类型为所述第二电子设备的类型时, 监视用户通过 所述输入单元进行的输入操作。
可见, 所述第一电子设备所能提供的功能与用户的输入操作之间存在 预设的对应关系, 从而第一电子设备通过监视用户的输入操作即可达到能 够提供相应功能的状态, 这样就不需要通过调用用户界面来确定用户的选 择, 使得用户操作更简便, 并减少了用户的等待时间, 从而提升了用户体 验。
为了更好地说明上述控制方法, 下面举例进行详细描述。 图 2为本发明实施例提供的控制方法的例子的步驟流程图,如图 2, 本 例中, 第一电子设备为手机, 第一接口为 USB接口, 第二电子设备的类型 为外部 USB设备, 如 PC机。
输入单元为第一按键, 如实体按键或触摸屏上的虚拟按键, 其中, 实 体按键为按键 "*"、 按键 "0"、 按键 "c"、 导航键的上键、 导航键的下键、 导航键的左键和导航键的右键中的任意三个按键; 触摸屏上的虚拟按键为 触摸屏上显示的按键 "*"、 按键 "0"、 按键 "c"、 导航键的上键、 导航键 的下键、 导航键的左键和导航键的右键中的任意三个虚拟按键。
至少两种功能为充电、手机内存的数据传输和 TransFlash ( TF , T-flash ) 存储卡的数据传输。
判断对所述第一按键进行的输入操作为第一类型的操作还是第二类型 的操作的判断准则为以时间的方式, 例如, 第一类型的操作为第一按键被 按击的持续时间达到某一门限, 如 3秒; 第二类型的操作为第一按键被按 击的持续时间小于该门限, 如小于 3秒。 具体地, 第一按键为具备二次功 能的按键。 其中, 按键的二次功能是指在手机主界面下进行长按键时, 所 能实现的功能。
第一指令为进入充电模式、打开 TF存储卡的 U盘模式或打开手机内存 的 U盘模式。
本例充分利用了手机的按键功能与通过 USB接口插入所述第一电子设 备的外部电子设备的识别进行组合判断。 具体地, USB 线缆连接手机的一 端设为 USB-A端, USB 线缆连接充电器或者外部 USB 设备的一端设为 USB-B端, 则第一电子设备按照功能可以分为三个模块: USB主控模块、 按键二次功能识别模块和主应用程序控制模块。 其中, USB主控模块负责 检测 USB的插拔动作和识别 USB-B端连接的设备,按键二次功能识别模块 负责进行手机按键的第二功能预设置和调用, 主应用程序控制模块则负责 将 USB主控模块和按键二次功能识别模块进行组合,进一步判断 USB的插 入目的, 从而启动相应的操作。
如图 2所示, 具体采用如下步驟实现本例:
步驟 201: 手机侧配置 USB主控模块。
USB主控模块的配置详细过程为, 对 USB的插拔动作和 USB端连接 的外部电子设备进行检测, 当 USB线缆插入手机后,其 USB端的电源会产 生一个中断信号给手机的主应用程序模块。 进一步地, USB 主控制模块会 判断 D+、 D-是否短接, 如果短接的话则判断为充电器连接, 没有短接则判 断为外部 USB设备 (如 PC机 )连接。
步驟 202: 对手机按键二次功能识别模块进行预设置。
手机按键二次功能识别模块的预设置过程是, 当用户在手机主界面下 长按 "*" 键, 则将信息上传到主应用程序模块, 使其调用充电相关参数, 启动外部 USB设备对手机进行充电过程; 又如, 当用户在手机主界面下长 按 "0" 键, 则将信息上传到主应用程序模块, 使其调用手机内存的数据传 输相应过程; 当用户在手机主界面下长按 "c" 键, 则将信息上报到主应用 程序模块, 使其调用 T-flash卡的数据传输相应过程。
其中, 步驟 202可以在步驟 201之前发生, 也可以与步驟 201 同时发 生。
步驟 203: 手机的主应用程序模块读取 USB主控模块和手机按键二次 功能识别模块上报的有关信息, 将其所获取的信息进行组合判断。
相应地, 需要对主应用程序模块进行预先的设置。 优选地, 可以将与 所述至少两种功能有关的第二电子设备的类型和预设的输入操作的全部组 合以及其中的每一种组合与第一指令信息的对应关系预先设置在主应用程 序模块中。 例如, 预先写入主应用程序模块的固定的软件接口函数中。 则 主应用程序模块读取到来自 USB主控模块的外部电子设备的类型信息以及 来自手机二次功能识别模块的输入操作信息后就可以调用该函数, 并读取 该函数生成的第一指令信息, 然后根据该第一指令信息调用相应的过程, 从而使得手机处于能够提供所述至少两种功能中的某一种功能的状态。 其 中, 不同的组合与不同的第一指令的对应关系的例子如表 2所示:
表 2
Figure imgf000015_0001
步驟 204: 当手机的主应用程序模块判断出正确的上报组合信息, 即获 取到的 USB主控模块和手机按键二次功能模块的上报信息, 与预设定在主 应用程序模块的数值保持一致, 立即启动相关功能的动作。
与步驟 203 中的例子相对应, 如果主应用程序模块判断是否预先记录 了这两个信息的组合的结果为是, 则主应用程序模块根据这两个信息调出 该二次开发程序, 从而使得该二次开发程序根据这两个信息生成第一指令。 然后, 主应用程序模块立即启动与该第一指令相对应的功能的动作。 例如, 在第一指令为控制对应模块进入能够提供充电功能的状态的指令时, 调用 充电相关参数, 启动外部 USB设备对手机进行充电过程; 在第一指令为打 开 TF存储卡的 U盘模式的指令时, 调用 T-flash卡的数据传输相应过程; 在第一指令为打开内存的 U盘模式的指令时, 调用手机内存的数据传输相 应过程。
步驟 205: 当手机的主应用程序模块判断出上报的组合信息与其预设定 值不一致时, 释放其中的错误信息, 并通过主应用程序模块向用户发出提 示音, 提醒用户进行正确的操作。
优选地, 由于 USB主控模块是通过硬件的检测方法进行信息上报, 即 USB线缆的连接无外乎充电器或者外部 USB设备两种情况,并且不会产生 报错信息, 所以在本步驟中的 "释放错误的上报信息,,, 主要是针对用户按 错键的情况下采取的必要步驟。 当用户重新选择相应按键长按动作后, 手 机按键二次功能模块将检测到的信息重新向主应用程序模块进行上报, 由 其重新进行组合判断, 即重复步驟 203和步驟 204的过程。 这里, 用户按 错键的情况例如, 不具备二次功能的实体按键或触摸屏上的虚拟按键被按 击或者被按击的持续时间不小于一定门限。
本例利用了手机的按键二次开发功能与 USB线缆插入外部电子设备的 识别进行组合判断, 减少了通过手机用户界面进行充电或者数据传输的选 择步驟, 提高了用户的可用性。
至此, 这种快速简便识别手机 USB插入动作的功能就实现了。 需要说 明的是, 本例只是本发明控制方法的一种可能的实现方式, 外接接口也可 以是其他的接口, 而外接设备也可以是其他的设备, 而不同接口、 不同设 备的区别仅仅在于最终确定的指令的不同, 在此不作详细描述。
针对本例, 在提供至少两种功能的外部电子设备只有一种类型或者提 供至少两种功能的外部电子设备所提供同样的至少两种功能的应用场景 下, 对于上述步驟 202在步驟 201之前或与步驟 201 同时的情况, 为了最 'J、化手机从用户进行预设的输入操作到处于提供相应功能的状态的时间, 对主应用程序模块进行的预先设置可以为将每一预设的输入操作与第一指 令信息的对应关系预先设置在主应用程序模块中, 例如, 预先写入主应用 程序模块的固定的软件接口函数中。 则主应用程序模块在读取到来自 USB 主控模块的外部电子设备的类型信息后, 就可以调用该函数, 并读取该函 数生成的第一指令信息, 然后根据该第一指令信息调用相应的过程, 从而 使得手机的系统准备执行该第一指令; 同时, 手机的系统检测在规定时间 内, 检测是否读取到 USB主控模块上报的第二电子设备的类型信息, 如果 是, 则立即执行该第一指令, 从而使得手机处于能够提供相应功能的状态; 如果否, 则立即释放函数的调用。
其中, 预设的输入操作与第一指令的对应关系的例子如表 3所示:
Figure imgf000017_0001
下面给出本例在该应用场景下的具体实现方式: 至少两种功能中的第 一种功能为提供 TF存储卡的读写功能,对应的第一类型的输入操作为导航 的第一指令为打开 TF存储卡的 U盘模式的指令;至少两种功能中的第二种 功能为提供内存的读写功能, 对应的第一类型的输入操作为导航按键的右 令为打开内存的 U盘模式的指令。 则通过在软件上预设手机按键的二次开 发接口和二次开发函数, 使得手机具备如下控制方法:
手机在待机状态下, 当系统检测到导航按键的左键在手机呈现主界面 的情况下被按击的持续时间达到 3秒的输入操作时, 系统被短暂唤醒, 并 且在后台调用二次开发函数,从而使得手机的系统准备打开外部 TF存储卡 的 u盘模式; 同时, 系统检测在规定时间内, 检测是否有类型为第二电子 设备的类型的外部电子设备通过 USB接口连接到手机, 如果是, 则立即启 动外部 TF存储卡的 U盘模式, 此时用户可以在电脑上看见新的盘符出现, 然后进行外部 TF存储卡的读写操作; 如果否, 则立即释放函数的调用, 系 统继续进入待机状态。 通过该控制方法, 用户就可以快速连接手机到充电 器之外的其它外部电子设备(如 PC机)上, 并且直接读取手机上外部 TF 卡中的相关资料并对外部 TF卡进行读写操作, 从而提升了用户体验。
或者, 通过在软件上预设手机按键的二次开发接口和二次开发函数, 使得手机具备如下控制方法:
手机在待机状态下, 当系统检测到导航按键的右键在手机呈现主界面 的情况下被按击的持续时间达到 3秒的输入操作时, 系统被短暂唤醒, 并 且在后台调用二次开发函数, 从而使得手机的系统准备打开手机自身供用 户使用的存储器的 U盘模式; 同时, 系统检测在规定时间内, 检测是否有 类型为第二电子设备的类型的外部电子设备通过 USB接口连接到手机, 如 果是, 则立即启动手机自身供用户使用的存储器的 U盘模式, 此时用户可 以在电脑上看见新的盘符出现, 然后进行相应的读写操作; 如果否, 则立 即释放函数的调用, 系统继续进入待机状态。 通过该控制方法, 用户就可 以快速连接手机到充电器之外的其它外部电子设备 (如 PC机)上, 并且直 接读取手机自身携带的供用户使用存储器中的相关资料并进行相应的读写 操作, 从而提升了用户体验。
图 3为本发明实施例提供的控制装置的结构图, 参照图 3, 所述控制装 置包括监视模块 301、 处理模块 302和控制模块 303, 其中:
监视模块 301, 设置为监视用户通过输入单元进行的输入操作; 处理模块 302, 设置为确定与所述输入操作对应的第一指令;
控制模块 303,设置为控制所述第一电子设备执行所述第一指令,使得 所述第一电子设备处于能够提供与所述输入操作对应的功能的状态。
所述第一电子设备能够通过第一接口提供至少两种功能, 其中, 所述 至少两种功能中的每一种功能对应于一预设的输入操作。
这样, 一方面, 通过预先设置电子设备提供的功能与用户的输入操作 之间的对应关系, 使得用户可以直接进行与电子设备提供的功能相对应的 输入操作, 因为用户预先记住这种对应关系, 并不需要浏览用户界面的提 示, 这样就使用户操作起来更简便; 另一方面, 电子设备根据用户的输入 操作进入到能够提供与用户的输入操作对应的功能的状态, 这个过程并不 涉及用户界面的调用和读取, 这样就缩短了电子设备提供相应功能的时间, 使得用户不需要花费较长的等待时间。 由此, 也就提升了用户体验。
所述输入单元既可以是具有独立功能的第一按键; 为了节约设备的处 理资源以及照顾到用户使用的便利性, 也可以是对具备其它功能的第一按 键的复用。 对于后一种情况, 就需要将用户对所述第一按键的操作区分开。
为此, 优选地, 如图 4所示, 上述处理模块 302可包括:
操作类型确定单元, 设置为判断对所述第一按键进行的输入操作为第 一类型的操作还是第二类型的操作;
执行单元, 设置为当对所述第一按键进行的输入操作为所述第一类型 的操作时, 进入确定与所述输入操作对应的第一指令的步驟; 当对所述第 一按键进行的输入操作为所述第二类型的操作时, 控制所述第一电子设备 执行与所述第二类型的操作对应的第二指令。
这样, 当所述第一按键还对应所述至少两种功能之外的其它功能时, 就能将用户对所述第一按键的操作分离出来, 从而将用户进行的所述第一 类型的操作对应到所述第一指令上来。
优选地, 所述至少两种功能中的每一种功能还对应于一预设的第二电 子设备的类型, 如 PC机、 平板电脑。 则所述第一指令可以为与所述第二电 子设备的类型对应的所述第一指令。
本发明实施例还提供了一种电子设备, 所述设备包括以上所述的控制 装置。 所述电子设备可以为手机或数码相机。
由上可知, 本发明实施例具有以下优势:
1 )通过预先设置电子设备提供的功能与用户的输入操作之间的对应关 系, 使得用户可以直接进行与电子设备提供的功能相对应的输入操作, 因 为用户预先记住这种对应关系, 并不需要浏览用户界面的提示, 这样就使 用户操作起来更简便, 从而提升了用户体验。
2 )电子设备根据用户的输入操作进入到能够提供与用户的输入操作对 应的功能的状态, 这个过程并不涉及用户界面的调用和读取, 这样就缩短 了电子设备提供相应功能的时间, 使得用户不需要花费较长的等待时间, 从而提升了用户体验。
以上所述仅是本发明的实施方式, 应当指出, 对于本技术领域的普通 技术人员来说, 在不脱离本发明原理的前提下, 还可以作出若干改进和润 饰, 这些改进和润饰也应视为本发明的保护范围。

Claims

权利要求书
1. 一种控制方法, 用于第一电子设备, 其中, 所述第一电子设备上 设置有用于用户输入的输入单元和第一接口, 所述第一电子设备能够通 过所述第一接口提供至少两种功能, 所述至少两种功能中的每一种功能 对应于一预设的输入操作, 所述控制方法包括:
监视用户通过所述输入单元进行的输入操作;
确定与所述输入操作对应的第一指令;
控制所述第一电子设备执行所述第一指令, 使得所述第一电子设备 处于能够提供与所述输入操作对应的功能的状态。
2. 如权利要求 1所述的控制方法,其中,所述输入单元为第一按键, 所述控制方法还包括:
判断对所述第一按键进行的输入操作为第一类型的操作还是第二类 型的操作;
当对所述第一按键进行的输入操作为所述第一类型的操作时, 进入 所述确定与所述输入操作对应的第一指令的步驟; 当对所述第一按键进 行的输入操作为所述第二类型的操作时, 控制所述第一电子设备执行与 所述第二类型的操作对应的第二指令。
3. 如权利要求 1或 2所述的控制方法, 其中, 所述至少两种功能中 的每一种功能还对应于一预设的第二电子设备的类型, 所述第一指令为 与所述第二电子设备的类型以及所述输入操作均对应的指令。
4. 如权利要求 1或 2所述的控制方法, 其中, 预先记录了所述输入 操作和所述第一指令的第一对应关系, 所述控制方法还包括判断所述输 入操作是否记录于所述第一对应关系中,
如果是, 则进入所述确定与所述输入操作对应的第一指令的步驟; 如果否, 则通过输出单元输出用于提示用户的提示信息。
5. 如权利要求 1或 2所述的控制方法, 其中, 所述控制所述第一电 子设备执行所述第一指令的方法为:
通过所述第一接口监视外部电子设备的插入信号;
根据所述插入信号触发控制所述第一电子设备执行所述第一指令。
6. 如权利要求 1或 2所述的控制方法, 其中, 所述监视用户通过所 述输入单元进行的输入操作的方法为:
通过所述第一接口监视外部电子设备的插入信号;
根据所述插入信号触发监视用户通过所述输入单元进行的输入操 作。
7. 如权利要求 6所述的控制方法, 其中, 所述至少两种功能中的每 一种功能还对应于一预设的第二电子设备的类型, 所述根据所述插入信 号触发监视用户通过所述输入单元进行的输入操作的方法为:
根据所述插入信号确定所述外部电子设备的类型;
判断所述外部电子设备的类型是否为所述预设的第二电子设备的类 型, 如果是, 则触发监视用户通过所述输入单元进行的输入操作。
8. 一种控制装置, 用于第一电子设备, 其中, 所述第一电子设备上 设置有用于用户输入的输入单元和第一接口, 所述第一电子设备能够通 过所述第一接口提供至少两种功能, 所述至少两种功能中的每一种功能 对应于一预设的输入操作, 所述控制装置包括:
监视模块, 设置为监视用户通过所述输入单元进行的输入操作; 处理模块, 设置为确定与所述输入操作对应的第一指令;
控制模块, 设置为控制所述第一电子设备执行所述第一指令, 使得 所述第一电子设备处于能够提供与所述输入操作对应的功能的状态。
9.如权利要求 8所述的控制装置,其中,所述输入单元为第一按键, 所述处理模块包括: 操作类型确定单元, 设置为判断对所述第一按键进行的输入操作为 第一类型的操作还是第二类型的操作;
执行单元, 设置为当对所述第一按键进行的输入操作为所述第一类 型的操作时, 进入所述确定与所述输入操作对应的第一指令的步驟; 当 对所述第一按键进行的输入操作为所述第二类型的操作时, 控制所述第 一电子设备执行与所述第二类型的操作对应的第二指令。
10. 如权利要求 8或 9所述的控制装置, 其中, 所述至少两种功能 中的每一种功能还对应于一预设的第二电子设备的类型, 所述第一指令 为与所述第二电子设备的类型以及所述输入操作均对应的指令。
11.一种电子设备,包括权利要求 8至 10中任一项所述的控制装置。
PCT/CN2012/075470 2012-03-15 2012-05-14 一种控制方法、控制装置和电子设备 WO2013134996A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2012100681155A CN103309834A (zh) 2012-03-15 2012-03-15 一种控制方法、控制装置和电子设备
CN201210068115.5 2012-03-15

Publications (1)

Publication Number Publication Date
WO2013134996A1 true WO2013134996A1 (zh) 2013-09-19

Family

ID=49135076

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/075470 WO2013134996A1 (zh) 2012-03-15 2012-05-14 一种控制方法、控制装置和电子设备

Country Status (2)

Country Link
CN (1) CN103309834A (zh)
WO (1) WO2013134996A1 (zh)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170249018A1 (en) * 2014-08-27 2017-08-31 Gionee Communication Equipment Co.,Ltd. Shenzhen Key function control method and terminal
CN105808082B (zh) * 2014-12-30 2020-10-09 深圳富泰宏精密工业有限公司 多点触摸处理系统及方法
CN105426742B (zh) * 2015-11-30 2019-01-01 广东小天才科技有限公司 移动终端连接计算机的方法及装置
WO2018053936A1 (zh) * 2016-09-26 2018-03-29 华为技术有限公司 一种交互方法及电子设备
WO2018101380A1 (ja) * 2016-11-30 2018-06-07 富士フイルム株式会社 撮影装置及びその制御方法
CN106657158B (zh) * 2017-02-13 2019-09-24 北京安云世纪科技有限公司 一种用于在设备间进行数据安全传输的系统及方法
CN110196671B (zh) * 2018-02-27 2021-05-25 杭州海康威视数字技术股份有限公司 一种设备管理方法、装置及系统
CN108491344B (zh) * 2018-03-14 2020-03-06 广东美的制冷设备有限公司 机器人控制管理方法、系统、机器人和计算机存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2765254Y (zh) * 2004-11-24 2006-03-15 北京广大鸿业科技有限公司 手机数据交换与充电装置
CN101193369A (zh) * 2006-11-23 2008-06-04 中兴通讯股份有限公司 一种手机实现pc的移动存储和外置上网的装置和方法
CN101827174A (zh) * 2010-02-03 2010-09-08 哈尔滨工业大学 具有多种数据交换方式及充电功能的手机数据备份器

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383627B (zh) * 2007-09-04 2012-12-26 联芯科技有限公司 终端充电器充电、usb充电和数据通信的装置及方法
CN101505548A (zh) * 2008-02-04 2009-08-12 希姆通信息技术(上海)有限公司 一种手机实现usb2.0功能的方法及装置
JP5360915B2 (ja) * 2008-12-26 2013-12-04 Necディスプレイソリューションズ株式会社 電子機器、電子機器制御システム、および電子機器制御方法
CN101931674B (zh) * 2010-09-01 2014-04-16 惠州Tcl移动通信有限公司 一种共用Micro-USB接口的方法及装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2765254Y (zh) * 2004-11-24 2006-03-15 北京广大鸿业科技有限公司 手机数据交换与充电装置
CN101193369A (zh) * 2006-11-23 2008-06-04 中兴通讯股份有限公司 一种手机实现pc的移动存储和外置上网的装置和方法
CN101827174A (zh) * 2010-02-03 2010-09-08 哈尔滨工业大学 具有多种数据交换方式及充电功能的手机数据备份器

Also Published As

Publication number Publication date
CN103309834A (zh) 2013-09-18

Similar Documents

Publication Publication Date Title
WO2013134996A1 (zh) 一种控制方法、控制装置和电子设备
US10574880B2 (en) Photographing method and mobile terminal
WO2018098912A1 (zh) 屏幕录像的录制、播放方法、录屏终端及播放终端
EP3779643A1 (en) Method for operating electronic device and electronic device
WO2014166370A1 (zh) 一体机及其实现全通道快速触摸的方法、计算机存储介质
WO2016112699A1 (zh) 切换显示模式的方法及装置
US20120303373A1 (en) Electronic apparatus and method for controlling the electronic apparatus using voice
KR20150021311A (ko) 단말기의 배터리 절약 방법 및 장치
CN103927200B (zh) 电子设备唤醒方法及相关装置
WO2012151977A1 (zh) 移动终端的唤醒方法及移动终端
KR20140143526A (ko) 카메라에 기반한 전자 장치의 제어 방법, 저장 매체 및 전자 장치
CN108038034A (zh) 电子设备调试方法、转接器、装置及存储介质
CN101997961A (zh) 基于加速度传感器的移动电话荧屏界面控制方法和装置
WO2015103846A1 (zh) 控制手机应用程序的方法、手机保护盖及手机保护盖套件
CN108319836A (zh) 基于指纹识别执行处理的方法和装置
RU2665300C2 (ru) Способ и устройство для обработки точечной отчетности сенсорного экрана
CN103677361A (zh) 一种移动终端及其控制方法
US20230345227A1 (en) Switch module, terminal device, method for controlling terminal device
TW201421291A (zh) 手持式電子裝置及啟動其應用軟體之方法
WO2016184205A1 (zh) 一种通话录音方法及装置
WO2019047412A1 (zh) 菜单管理方法、装置、多媒体触控设备及存储介质
CN106657647A (zh) 来电处理方法、装置及移动终端
WO2016131181A1 (zh) 一种指纹事件的处理方法、装置及终端
CN108108213A (zh) 指令集执行方法及装置
CN107153621A (zh) 设备识别方法及装置

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: 12871495

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12871495

Country of ref document: EP

Kind code of ref document: A1