WO2018119648A1 - Electronic apparatus and input control method - Google Patents

Electronic apparatus and input control method Download PDF

Info

Publication number
WO2018119648A1
WO2018119648A1 PCT/CN2016/112342 CN2016112342W WO2018119648A1 WO 2018119648 A1 WO2018119648 A1 WO 2018119648A1 CN 2016112342 W CN2016112342 W CN 2016112342W WO 2018119648 A1 WO2018119648 A1 WO 2018119648A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
device control
control instruction
event
input
Prior art date
Application number
PCT/CN2016/112342
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 深圳市柔宇科技有限公司
Priority to PCT/CN2016/112342 priority Critical patent/WO2018119648A1/en
Priority to CN201680069128.0A priority patent/CN108431727A/en
Publication of WO2018119648A1 publication Critical patent/WO2018119648A1/en

Links

Images

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

Definitions

  • the present invention relates to an electronic device, and more particularly to an electronic device and an input control method.
  • head-mounted display devices have gradually become popular because of their convenience and ability to achieve stereoscopic display and stereo.
  • VR virtual reality
  • head-mounted display devices have become more widely used as hardware support devices for VR technology. Since the user cannot see the outside situation after wearing the head-mounted display device, it is often inconvenient to use an existing input device for input.
  • the embodiment of the invention discloses an electronic device and an input control method, which can be used as an input device of an electronic device to which information is to be input, and is conveniently input.
  • the electronic device disclosed in the embodiment of the present invention comprises a communication unit, a display screen and a processor, the communication unit is configured to establish a communication connection with an electronic device, and the processor comprises: an input requirement confirmation module, configured to be in the communication After the unit establishes a communication connection with the electronic device, confirm whether the electronic device has an input requirement; and the mode switching module is configured to control the electronic device to enter an input mode when the electronic device has an input requirement; and the control instruction generating module uses After the electronic device enters the input mode, generating a device control instruction for executing a specific event in response to the operation of the electronic device; the instruction conversion module is configured to receive the device control command, and convert the device control command into a device control instruction recognizable by the electronic device for controlling the electronic device to perform the same specific event; and a transmitting module, configured to send the device control instruction to the electronic device to control the electronic device to perform the specific event .
  • an input requirement confirmation module configured to be in the communication After the unit establishes a communication connection with the electronic device, confirm
  • the input control method disclosed in the embodiment of the present invention is applied to an electronic device, where the electronic device includes a communication unit, and the method includes the steps of: confirming the electronic after the communication unit of the electronic device establishes a communication connection with an electronic device. Whether the device has an input requirement; if so, controlling the electronic device to enter an input mode; generating a device control command for performing a specific event in response to the operation of the electronic device; receiving the device control for performing a specific event Instruction to control the device Converting to a device control instruction recognizable by the electronic device for controlling the electronic device to perform the same specific event; and transmitting the device control instruction to the electronic device to control the electronic device to perform the specific event.
  • the electronic device can be used as an input device of the electronic device, and after the operation control device control command is executed on the electronic device, the electronic device can be converted into a device control command recognizable by the electronic device, which is equivalent to the electronic device. The same operation was performed on it.
  • FIG. 1 is a block diagram showing the structure of an electronic device according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of a display screen after an electronic device enters an input mode in the first embodiment of the present invention.
  • FIG. 3 is a schematic diagram of an electronic device controlling an electronic device to perform input according to an embodiment of the invention.
  • FIG. 4 is a schematic diagram of a display screen after an electronic device enters an input mode in a second embodiment of the present invention.
  • FIG. 5 is a schematic diagram showing the display of a plurality of electronic devices by an electronic device according to an embodiment of the invention.
  • FIG. 6 is a flowchart of an input control method in an embodiment of the present invention.
  • Figure 7 is a sub-flow diagram of the step S604 of Figure 6 in the first embodiment.
  • Figure 8 is a sub-flow diagram of the step S604 of Figure 6 in the second embodiment.
  • Figure 9 is a sub-flow diagram of the step S604 of Figure 6 in the third embodiment.
  • FIG. 1 is a schematic diagram of an electronic device 100 according to an embodiment of the invention.
  • the electronic device 100 includes a communication unit 10, a display screen 20, and a processor 30.
  • the communication unit 10 is configured to establish a communication connection with an electronic device 200.
  • the processor 30 includes an input demand confirmation module 31, a mode switching module 32, a control instruction generation module 33, an instruction conversion module 34, and a transmission module 35.
  • the input requirement confirmation module 31 is configured to confirm whether the electronic device 200 has an input requirement after the communication unit 10 establishes a communication connection with the electronic device 200. In some embodiments, after the input box of the electronic device 200 is activated, the electronic device 200 generates an input call request and sends the input request to the electronic device 100, where the input demand confirmation module 31 is After receiving the input call request, it is confirmed that the electronic device 200 has an input demand. In other embodiments, the input requirement confirmation module 31 sends a query request to the electronic device 200 to query whether the activated input box is displayed on the electronic device 200, and if so, the electronic device 200 is confirmed. There are input requirements.
  • the activation of the input box of the electronic device 200 refers to a state in which an input box of the electronic device 200 is clicked into the content to be input.
  • the input demand confirmation module 31 sends a handshake request to the electronic device 200, and after the electronic device 200 agrees to shake hands, confirms that the electronic device 200 has an input demand.
  • the mode switching module 32 is configured to control the electronic device 100 to enter an input mode when the input demand confirmation module 31 confirms that the electronic device 200 has an input demand.
  • the input mode refers to the electronic device 100 transmitting an instruction corresponding to the received operation to the electronic device 200 and controlling the electronic device 200 to respond to the instruction.
  • the control command generation module 33 is configured to generate a device control instruction for executing a specific event in response to an operation on the electronic device 100 after the electronic device 100 enters the input mode.
  • the instruction conversion module 34 is configured to receive the device control instruction generated by the control instruction generation module 33, and convert the device control instruction into an identifiable by the electronic device 200 for controlling the electronic device 200 to perform the same specific Device control instructions for the event.
  • the sending module 35 is configured to send the device control instruction to the electronic device 200 to control the electronic device 200 to execute the specific event. That is, after receiving the device control instruction, the electronic device 200 performs the specific event in response to the control of the device control instruction.
  • the present invention can use the electronic device 100 as an input device of the electronic device 200 in the electronic After the operation generating device control command is executed on the device 100, it is converted into a device control command recognizable by the electronic device 200, which is equivalent to performing the same operation on the electronic device 200.
  • the electronic device 100 further includes a memory 40.
  • the memory 40 stores a mapping relationship between a device control instruction and a device control instruction, where the mapping relationship table includes multiple device control commands and devices.
  • a mapping relationship of control instructions each mapping relationship including a correspondence between device control instructions and device control instructions for executing the same specific event.
  • the instruction conversion module 34 converts the device control instruction into a device control instruction recognizable by the electronic device 200 for controlling the electronic device 200 to perform the specific function, including: the instruction conversion module 34 controls according to the device And a mapping relationship table between the instruction and the device control instruction, determining a device control instruction corresponding to the device control instruction, and generating the device control instruction.
  • control instruction generation module 33 After the control instruction generation module 33 generates a device control instruction for executing a certain event, the control device 35 is also controlled to perform the specific event.
  • the display 20 of the electronic device 100 displays an input box S1 and a soft keyboard J1.
  • the specific event performed includes a text content editing event.
  • the text content editing event includes a text content editing related event such as a character input event, a delete event, a line feed event, a copy event, a cut event, a paste event, and the like.
  • the soft keyboard J1 includes a plurality of buttons K1, and the control command generating module 33 generates device control instructions for executing corresponding text content editing events in response to the user's operation on the keys on the soft keyboard J1.
  • the instruction conversion module 34 after receiving the device control instruction generated by the control instruction generation module 33, converts the device control instruction into a device control instruction for controlling the electronic device to execute the text content editing event.
  • the plurality of buttons K1 include a character button having a key value such as a Chinese character, a numeric character, an emotic character, and/or a symbol character, and further includes a delete function key value, an enter key function key value, a copy function key value, Function buttons for cutting function key values, pasting function key values, etc.
  • control command generating module 33 generates a device control command for controlling the execution of the character corresponding to the character button K1 in response to the user's operation on the character button K1 on the soft keyboard J1.
  • the instruction conversion module 34 converts the device control instruction into a device control for controlling the electronic device 200 to perform a character inputting the character button K1. Instruction.
  • the control command generation module 33 When the display screen 20 receives/responds to the user's operation of the function button K1 on the soft keyboard J1, the control command generation module 33 generates a device control command for controlling the function corresponding to the function button K1. After receiving the device control instruction, the instruction conversion module 34 converts the device control instruction into a device control instruction for controlling the electronic device 200 to execute the function corresponding to the function button K1.
  • the function corresponding to executing the function button K1 may be a text content editing function such as deleting, copying, cutting, and pasting.
  • the control command generation module 33 also controls the input of the character corresponding to the character button K1 in the input box S1 after generating a device control command for controlling the execution of the character corresponding to the character button K1.
  • the control command generating module 33 also controls the electronic device 100 to execute the function corresponding to the function button K1 after generating a device control command for controlling the function corresponding to the function button K1.
  • the control is input to the input box S1.
  • the characters perform text content editing functions such as deletion, copying, cutting, and pasting.
  • the user of the electronic device 100 can trigger the control command generating module 33 to generate a control for executing the specific by operating the soft keyboard J1.
  • Device control instructions for events For example, when the user inputs the "soft" word when the user operates the soft keyboard J1, the control command generating module 33 generates a device control command for controlling the input of the "soft" word, the control command generating module 33 and controlling the " The word "soft” is displayed on the input box S1.
  • the instruction conversion module 34 converts the device control instruction that controls the input "soft” word into a device control instruction for controlling the input of the "soft” word by the electronic device 200.
  • the transmitting module 35 transmits the device control command for controlling the input of the "soft" word to the electronic device 200 to the electronic device 200 through the communication unit 10
  • the electronic device is under the control of the device control command
  • the "soft" word is also input on the input box S2 of the device 200.
  • the control command generating module 33 when the user operates the delete key of the soft keyboard J1, the control command generating module 33 generates a device control command for controlling the delete character, and the control command generating module 33 controls and deletes at least the input box S1.
  • One character After receiving the device control instruction for controlling the deleted character, the instruction conversion module 34 converts the device control instruction for controlling the deleted character into a device control instruction for controlling the electronic device 200 to delete the character.
  • the sending module 35 sends the device control command for controlling the electronic device 200 to delete characters through the communication unit 10 to the When the electronic device 200 is described, at least one character is also deleted on the input box K2 of the electronic device 200 under the control of the device control command.
  • the user can perform an input operation on the electronic device 100, and can view the input content in the electronic device 100, so that the user knows the input content when making the input, and ensures that the required content is input on the electronic device 200.
  • the electronic device 100 further includes a control button 50 that can be used to adjust brightness and/or volume, and the like.
  • the specific event also includes a parameter adjustment event, such as adjusting parameters such as volume and/or brightness.
  • the control command generation module 33 generates a device control command for executing a parameter adjustment event in response to an operation of the control button 50 by a user of the electronic device 100.
  • the control button 50 can be a side frame button located on the electronic device 100.
  • the instruction conversion module 34 upon receiving the device control instruction for executing the parameter adjustment event, converts the device control instruction into a device control instruction for executing the parameter adjustment event.
  • the sending module 35 sends the device control command for executing the parameter adjustment event to the electronic device 200
  • the electronic device 200 is controlled to execute the parameter adjustment event.
  • the electronic device 200 is controlled to adjust parameters such as volume and/or brightness.
  • the input box S1 and the soft keyboard J1 may not be displayed, but only a touch operation and a specific event controlled by the control may be performed.
  • Description includes clicking to confirm, double-clicking to return, sliding to the left to delete, sliding to the right as a newline, handwriting to directly input, and the like.
  • the display screen 20 is a touch display screen.
  • the memory 40 further stores a correspondence table between a specific event and a touch action, where the correspondence relationship table includes a correspondence between a plurality of touch actions and a specific event.
  • the correspondence table includes a correspondence between a click and an acknowledgement event, a correspondence between a double click and a return event, a correspondence between a slide to the left and a delete event, a correspondence between a slide to the right and a line feed event, and a handwriting and character input. The correspondence of events.
  • the control command generating module 33 further determines, according to the correspondence table between the specific event and the touch action, after the user inputs a touch action at any position on the display screen 20, that is, after receiving the touch action at any position of the display screen. A specific event corresponding to the action is touched, and a device control instruction that controls execution of the particular event is generated.
  • the instruction conversion module 34 converts the device control instruction into device control for controlling the electronic device 200 to execute the specific event. instruction.
  • the transmitting module 35 sends the device control instruction to the electronic device 200 to control the electronic device 200 to execute the specific event.
  • the specific event may be a text content editing event, a parameter adjustment event.
  • the processor 30 further includes a communication control module 36 for controlling the communication unit 10 to establish a communication connection with the electronic device 200.
  • the communication unit 10 includes a WIFI communication module 11, the electronic device 200 is connected to a WIFI local area network, and the socket service is enabled (the electronic device 200 is set as a server), and a specific port is bound.
  • the communication control module 36 controls the communication unit 10 to establish a communication connection with the electronic device 200.
  • the communication control module 36 controls the communication unit 10 of the electronic device 100 to connect to a WIFI local area network.
  • the WIFI local area network is a local area network connected to the electronic device 200; the communication control module 36 searches for the electronic device 200 in the WIFI local area network to which the electronic device 100 is currently connected, for example, sends a broadcast data packet to the WIFI local area network; After receiving the data packet returned by the electronic device 200, the communication control module 36 acquires the IP address and port of the electronic device 200, and controls the communication unit 10 and the electronic device according to the IP address and port of the electronic device 200.
  • Device 200 establishes a communication connection. The establishing the communication connection between the communication unit 10 and the electronic device 200 may be performed by the communication control module 36 in response to an opening operation.
  • the electronic device 200 returns a data packet to the electronic device 100 after receiving the broadcast data packet sent by the electronic device 100, wherein the returned data packet includes an IP address and port information of the electronic device 200.
  • the foregoing input requirement confirmation module 31 may receive an input call request sent by the electronic device 200 through a TCP protocol, or send the query request to the electronic device 200 through a TCP protocol, to query whether the electronic device 200 currently displays an input box. .
  • the communication unit 10 may further include a Bluetooth communication module 12.
  • the communication control module 36 controls the communication unit 10 to establish a communication connection with the electronic device 200.
  • the communication control module 36 searches for the Bluetooth-enabled electronic device 200 in response to the opening operation. And transmitting a Bluetooth pairing request when searching for the electronic device 200; and establishing a communication connection with the electronic device 200 when the pairing request is passed.
  • the communication control module 36 controls the display screen 20 to display all the searched electronic devices 200 when there are multiple electronic devices 200 that are connected to each other in response to the opening operation. And determining the target electronic device 200 to be connected in response to the user's selection operation, and controlling establishment of a communication connection with the target electronic device 200. For example, when the communication control module 36 searches for multiple electronic devices 200 in the WIFI local area network to which the electronic device 100 is currently connected, or searches for multiple electronic devices 200 with Bluetooth enabled nearby, the control display screen 20 displays all The searched electronic device 200 determines the target electronic device 200 to be connected in response to the user's selection operation, and then establishes a communication connection with the target electronic device 200 in accordance with the foregoing manner.
  • the opening operation may be input when the user needs to perform input control on the electronic device 200 by using the electronic device 100, for example, the user may perform a specific touch gesture on the display screen 20 or perform an operation on a specific menu option.
  • the opening operation may be input when the user needs to perform input control on the electronic device 200 by using the electronic device 100, for example, the user may perform a specific touch gesture on the display screen 20 or perform an operation on a specific menu option. The opening operation.
  • the input requirement confirmation module 31, the mode switching module 32, the control instruction generation module 33, the instruction conversion module 34, the transmission module 35, and the communication control module 36 may be specific to be installed in the electronic device 100.
  • Program modules in the application software After the specific application software is opened, the input demand confirmation module 31, the mode switching module 32, the control instruction generation module 33, the instruction conversion module 34, the transmission module 35, and the communication control module 36 may be triggered to perform the foregoing in response to the user's operation.
  • the opening operation may also be an operation of opening the specific application software.
  • the input requirement confirmation module 31, the mode switching module 32, the control instruction generation module 33, the instruction conversion module 34, the transmission module 35, and the communication control module 36 may be stored in the memory 40.
  • the processor 30 invokes the executed program instructions or may be firmware that is solidified in the processor 30.
  • the input requirement confirmation module 31, the mode switching module 32, the control instruction generation module 33, the instruction conversion module 34, the transmission module 35, and the communication control module 36 may also be hardware circuits in the processor 30. .
  • the device control instruction is immediately sent to the instruction conversion module 34.
  • the instruction conversion module 34 receives After the instruction conversion module 34, the control converts the device control instruction into a device control instruction.
  • the processor 30 can be a central processing unit, a microcontroller, a microprocessor, a single chip microcomputer, Processing chips such as digital signal processors.
  • the memory 40 can be a flash memory card, a solid state memory, a random access memory, or the like.
  • the electronic device 100 can be a portable electronic device such as a mobile phone or a tablet computer.
  • the electronic device 200 can be a head mounted display such as smart glasses or a smart helmet.
  • FIG. 6 is a flowchart of an input control method according to an embodiment of the present invention.
  • the method is applied to the aforementioned electronic device 100.
  • the method includes the steps of:
  • the input demand confirmation module 31 confirms whether the electronic device 200 has an input demand after the communication unit 10 of the electronic device 100 establishes a communication connection with the electronic device 200 (S601). If yes, go to step S602, otherwise go back to step S601.
  • the step S601 includes: after receiving the input call request generated by the electronic device 200, the input demand confirmation module 31 confirms that the electronic device 200 has an input requirement, wherein the input is invoked. The request is generated for the electronic device 200 after the input box of the electronic device 200 is activated.
  • the step S601 includes: the input demand confirmation module 31 sends a query request to the electronic device 200, and queries whether the activated input box is displayed on the electronic device 200, and if so, It is confirmed that the electronic device 200 has an input requirement.
  • the mode switching module 32 controls the electronic device 100 to enter the input mode when the input demand confirmation module 31 confirms that the electronic device 200 has an input demand (S602).
  • the control command generation module 33 After the electronic device 100 enters the input mode, the control command generation module 33 generates a device control command for executing a certain event in response to the operation of the electronic device 100 (S603). In some embodiments, the control instruction generation module 33 generates device control instructions for performing a certain event in response to an operation on the electronic device 100, and controls the electronic device 100 to perform the specific event.
  • the instruction conversion module 34 receives the device control instruction and converts the device control instruction into a device control instruction recognizable by the electronic device 200 for controlling the electronic device 200 to execute the same specific event (S604).
  • the mapping relationship between the device control command and the device control command is stored in the memory 40 of the electronic device 100.
  • the mapping relationship table includes mapping relationships between multiple device control commands and device control commands, and each mapping relationship A correspondence between device control instructions and device control instructions for performing the same specific event is included.
  • the step S603 includes: the instruction conversion module 34 determines a device control instruction corresponding to the device control instruction according to the mapping relationship table between the device control instruction and the device control instruction, and generates the device control instruction.
  • the transmitting module 35 transmits the device control instruction to the electronic device 200 to control the electronic device 200 to execute the specific event (S605).
  • the input control method further includes a step before the step S601: the communication control module 36 controls the communication unit 10 to establish a communication connection with the electronic device 200 (S600).
  • the communication unit 10 includes a WIFI communication module 11, and the step S600 includes: in response to an opening operation, the communication control module 36 controls the communication unit 10 of the electronic device 100 to connect to a WIFI local area network.
  • the WIFI local area network is a local area network connected to the electronic device 200; the communication control module 36 searches for the electronic device 200 in the WIFI local area network to which the electronic device 100 is currently connected, for example, sends a broadcast data packet to the WIFI local area network; After receiving the data packet returned by the electronic device 200, the communication control module 36 acquires the IP address and port of the electronic device 200 according to the returned data packet, and controls the communication according to the IP address and port of the electronic device 200.
  • Unit 10 establishes a communication connection with the electronic device 200.
  • the communication unit 10 may further include a Bluetooth communication module 12, and the step S600 includes: the communication control module 36 searches for the Bluetooth-enabled electronic device 200 in response to the opening operation; When the electronic device 200 is searched, a Bluetooth pairing request is sent; and when the pairing request is passed, a communication connection with the electronic device 200 is established.
  • FIG. 7 is a sub-flowchart in step S604 in the first embodiment.
  • the display screen 20 of the electronic device 100 displays an input box S1 and a soft keyboard J1
  • the control command generating module 33 generates a response to the operation of the electronic device 100.
  • the device control instruction for executing a specific event includes: the control command generation module 33 generates a device control instruction for executing a corresponding text content editing event in response to an operation on a soft keyboard J1, the step S604 including :
  • the instruction conversion module 34 receives a device control instruction for executing a corresponding text content editing event generated by the control instruction generation module 33 in response to an operation on a soft keyboard J1 (S6041). Specifically, the control command generating module 33 generates a device control instruction for controlling the execution of the character corresponding to the character button K1 in response to the user's operation on the character button K1 on the soft keyboard J1, or the control command generating module. In response to the user's operation of the function button K1 on the soft keyboard J1, a device control command for controlling the function corresponding to the function button K1 is generated, for example, a text content editing function such as deletion, copying, cutting, and pasting is performed.
  • a text content editing function such as deletion, copying, cutting, and pasting is performed.
  • the instruction conversion module 34 after receiving the device control instruction, converts the device control instruction into a device control instruction for controlling the electronic device to execute the text content editing event (S6042).
  • the electronic device 100 further includes a control button 50.
  • the control command generating module 33 generates a device control command for executing a specific event in response to an operation on the electronic device 100, including: the control command
  • the generating module 3320 generates a device control instruction for performing a parameter adjustment event in response to the operation of the control button 50, the step S604 comprising:
  • the instruction conversion module 34 receives a device control instruction for executing a parameter adjustment event generated by the control instruction generation module 3320 in response to an operation of the control button 50 (S6044).
  • the parameter adjustment event includes a volume adjustment event and/or a brightness adjustment event.
  • the instruction conversion module 34 After receiving the device control instruction, the instruction conversion module 34 converts the device control instruction into a device control instruction for controlling the electronic device to perform parameter adjustment (S6045).
  • the display screen 20 is a touch display screen.
  • the control instruction generating module 33 generates a device control instruction for executing a specific event in response to the operation of the electronic device 100, including: the control command is generated. After inputting a touch action at any position on the display screen 20, the module 33 determines a specific event corresponding to the touch action according to a specific event and a corresponding action table of the touch action to generate a device control instruction for controlling execution of the specific event;
  • Step S604 includes:
  • the instruction conversion module 34 receives the control event generation module 33, after inputting a touch action at any position on the display screen 20, determining a specific event corresponding to the touch action according to a correspondence table between a specific event and a touch action.
  • a device control instruction to execute the specific event is controlled (S6046).
  • the correspondence table between the specific event and the touch action includes a correspondence between a click and a confirmation event, a correspondence between a double click and a return event, a correspondence between a slide to the left and a delete event, and a corresponding relationship between a slide to the right and a line feed event. , the correspondence between handwriting and character input events, and so on.
  • the instruction conversion module 34 upon receiving the device control instruction, converts the device control instruction into a device control instruction for controlling execution of the specific event (S6047).
  • the electronic device 100 and the input control method of the present application can be automatically converted into control electronics 200 by using the electronic device 100 to input a device control command for controlling execution of a specific event.
  • the device control instructions that perform the same specific event control the electronic device, and the electronic device 200 can be input more intuitively and conveniently through the electronic device 100.

Abstract

An input control method applied to an electronic apparatus. The method comprises: controlling a communication unit so that the communication unit establishes a communication connection with an electronic device (S600); determining whether the electronic device has input requirements after the communication unit of the electronic apparatus establishes the communication connection with the electronic device (S601); if so, controlling the electronic apparatus so that the electronic apparatus enters an input mode (S602); generating an apparatus control instruction for performing a specific event in response to the operation of the electronic apparatus (S603); receiving the apparatus control instruction, and transforming the apparatus control instruction into a device control instruction identifiable by the electronic device for controlling the electronic device, so that the electronic device performs the same specific event (S604); and sending the device control instruction to the electronic device to control the electronic device, so that the electronic device performs the specific event (S605). Also disclosed is the electronic apparatus. By means of the solution, the electronic apparatus can be taken as an input apparatus of the electronic device, thereby facilitating intuitive input.

Description

电子装置及输入控制方法Electronic device and input control method 技术领域Technical field
本发明涉及电子装置,尤其涉及一种电子装置及输入控制方法。The present invention relates to an electronic device, and more particularly to an electronic device and an input control method.
背景技术Background technique
目前,头戴式显示设备由于便捷性,且能实现立体显示及立体声等效果,已经逐渐被人们所喜爱。近年来,随着虚拟现实(virtual reality,VR)技术的出现,头戴式显示装置作为VR技术的硬件支持设备,更加应用广泛了。由于用户穿戴头戴式显示设备后,无法看到外面的情况,使用现有的输入装置进行输入时,往往较为不便。At present, head-mounted display devices have gradually become popular because of their convenience and ability to achieve stereoscopic display and stereo. In recent years, with the advent of virtual reality (VR) technology, head-mounted display devices have become more widely used as hardware support devices for VR technology. Since the user cannot see the outside situation after wearing the head-mounted display device, it is often inconvenient to use an existing input device for input.
发明内容Summary of the invention
本发明实施例公开一种电子装置及输入控制方法,能够使用电子装置作为待输入信息的电子设备的输入装置使用,方便地进行输入。The embodiment of the invention discloses an electronic device and an input control method, which can be used as an input device of an electronic device to which information is to be input, and is conveniently input.
本发明实施例公开的电子装置,包括通信单元、显示屏及处理器,所述通信单元用于与一电子设备建立通信连接,所述处理器包括:输入需求确认模块,用于在所述通信单元与所述电子设备建立通信连接后,确认电子设备是否有输入需求;模式切换模块,用于在所述电子设备有输入需求时,控制所述电子装置进入输入模式;控制指令产生模块,用于在电子装置进入输入模式后,响应对电子装置的操作产生用于执行某一特定事件的装置控制指令;指令转换模块,用于接收所述装置控制指令,并将所述装置控制指令转换为所述电子设备可识别的用于控制电子设备执行所述相同特定事件的设备控制指令;以及发送模块,用于将所述设备控制指令发送至所述电子设备以控制电子设备执行所述特定事件。The electronic device disclosed in the embodiment of the present invention comprises a communication unit, a display screen and a processor, the communication unit is configured to establish a communication connection with an electronic device, and the processor comprises: an input requirement confirmation module, configured to be in the communication After the unit establishes a communication connection with the electronic device, confirm whether the electronic device has an input requirement; and the mode switching module is configured to control the electronic device to enter an input mode when the electronic device has an input requirement; and the control instruction generating module uses After the electronic device enters the input mode, generating a device control instruction for executing a specific event in response to the operation of the electronic device; the instruction conversion module is configured to receive the device control command, and convert the device control command into a device control instruction recognizable by the electronic device for controlling the electronic device to perform the same specific event; and a transmitting module, configured to send the device control instruction to the electronic device to control the electronic device to perform the specific event .
本发明实施例公开的输入控制方法,应用于一电子装置中,所述电子装置包括通信单元,所述方法包括步骤:在电子装置的通信单元与一电子设备建立通信连接后,确认所述电子设备是否有输入需求;如果有,控制所述电子装置进入输入模式;响应对电子装置的操作产生用于执行某一特定事件的装置控制指令;接收所述用于执行某一特定事件的装置控制指令,将所述装置控制指令 转换为所述电子设备可识别的用于控制电子设备执行所述相同特定事件的设备控制指令;以及将所述设备控制指令发送至所述电子设备以控制电子设备执行所述特定事件。The input control method disclosed in the embodiment of the present invention is applied to an electronic device, where the electronic device includes a communication unit, and the method includes the steps of: confirming the electronic after the communication unit of the electronic device establishes a communication connection with an electronic device. Whether the device has an input requirement; if so, controlling the electronic device to enter an input mode; generating a device control command for performing a specific event in response to the operation of the electronic device; receiving the device control for performing a specific event Instruction to control the device Converting to a device control instruction recognizable by the electronic device for controlling the electronic device to perform the same specific event; and transmitting the device control instruction to the electronic device to control the electronic device to perform the specific event.
本发明的电子装置及输入控制方法,可将电子装置作为电子设备的输入装置,在电子装置上执行操作产生装置控制指令后,会转换为电子设备可识别的设备控制指令,相当于对电子设备上执行了相同的操作。In the electronic device and the input control method of the present invention, the electronic device can be used as an input device of the electronic device, and after the operation control device control command is executed on the electronic device, the electronic device can be converted into a device control command recognizable by the electronic device, which is equivalent to the electronic device. The same operation was performed on it.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings to be used in the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without paying any creative work.
图1为本发明一实施例中的电子装置的结构框图。1 is a block diagram showing the structure of an electronic device according to an embodiment of the present invention.
图2为本发明第一实施例中的电子装置进入输入模式后显示屏的示意图。2 is a schematic diagram of a display screen after an electronic device enters an input mode in the first embodiment of the present invention.
图3为本发明一实施例中的电子装置控制电子设备进行输入的示意图。FIG. 3 is a schematic diagram of an electronic device controlling an electronic device to perform input according to an embodiment of the invention.
图4为本发明第二实施例中的电子装置进入输入模式后显示屏的示意图。4 is a schematic diagram of a display screen after an electronic device enters an input mode in a second embodiment of the present invention.
图5为本发明一实施例中的电子装置搜索到多个电子设备的显示示意图。FIG. 5 is a schematic diagram showing the display of a plurality of electronic devices by an electronic device according to an embodiment of the invention.
图6为本发明一实施例中的输入控制方法的流程图。FIG. 6 is a flowchart of an input control method in an embodiment of the present invention.
图7为图6中步骤S604在第一实施例中的子流程图。Figure 7 is a sub-flow diagram of the step S604 of Figure 6 in the first embodiment.
图8为图6中步骤S604在第二实施例中的子流程图。Figure 8 is a sub-flow diagram of the step S604 of Figure 6 in the second embodiment.
图9为图6中步骤S604在第三实施例中的子流程图。Figure 9 is a sub-flow diagram of the step S604 of Figure 6 in the third embodiment.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。 The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
请参阅图1,为本发明一实施例中的电子装置100的示意图。如图1所示,所述电子装置100包括通信单元10、显示屏20以及处理器30。Please refer to FIG. 1 , which is a schematic diagram of an electronic device 100 according to an embodiment of the invention. As shown in FIG. 1, the electronic device 100 includes a communication unit 10, a display screen 20, and a processor 30.
所述通信单元10用于与一电子设备200建立通信连接。The communication unit 10 is configured to establish a communication connection with an electronic device 200.
所述处理器30包括输入需求确认模块31、模式切换模块32、控制指令产生模块33、指令转换模块34以及发送模块35。The processor 30 includes an input demand confirmation module 31, a mode switching module 32, a control instruction generation module 33, an instruction conversion module 34, and a transmission module 35.
所述输入需求确认模块31用于在所述通信单元10与所述电子设备200建立通信连接后,确认电子设备200是否有输入需求。其中,在一些实施例中,所述电子设备200的输入框被调取激活后,所述电子设备200会产生一输入调用请求并发送至所述电子装置100,所述输入需求确认模块31在接收到所述输入调用请求后,确认所述电子设备200有输入需求。在另一些实施例中,所述输入需求确认模块31发送查询请求至所述电子设备200,查询所述电子设备200上是否显示有被激活的输入框,如果是,则确认所述电子设备200有输入需求。其中,所述电子设备200的输入框被激活指的是电子设备200的输入框被点击进入待输入内容的状态。在其他实施例中,所述输入需求确认模块31发送握手请求至所述电子设备200,在电子设备200同意握手后,确认电子设备200有输入需求。The input requirement confirmation module 31 is configured to confirm whether the electronic device 200 has an input requirement after the communication unit 10 establishes a communication connection with the electronic device 200. In some embodiments, after the input box of the electronic device 200 is activated, the electronic device 200 generates an input call request and sends the input request to the electronic device 100, where the input demand confirmation module 31 is After receiving the input call request, it is confirmed that the electronic device 200 has an input demand. In other embodiments, the input requirement confirmation module 31 sends a query request to the electronic device 200 to query whether the activated input box is displayed on the electronic device 200, and if so, the electronic device 200 is confirmed. There are input requirements. The activation of the input box of the electronic device 200 refers to a state in which an input box of the electronic device 200 is clicked into the content to be input. In other embodiments, the input demand confirmation module 31 sends a handshake request to the electronic device 200, and after the electronic device 200 agrees to shake hands, confirms that the electronic device 200 has an input demand.
所述模式切换模块32用于在所述输入需求确认模块31确认电子设备200有输入需求时,控制所述电子装置100进入输入模式。所述输入模式是指电子装置100将所接收到的操作所对应的指令发送给电子设备200并控制电子设备200响应该指令。The mode switching module 32 is configured to control the electronic device 100 to enter an input mode when the input demand confirmation module 31 confirms that the electronic device 200 has an input demand. The input mode refers to the electronic device 100 transmitting an instruction corresponding to the received operation to the electronic device 200 and controlling the electronic device 200 to respond to the instruction.
所述控制指令产生模块33用于在电子装置100进入输入模式后,响应对电子装置100的操作产生用于执行某一特定事件的装置控制指令。The control command generation module 33 is configured to generate a device control instruction for executing a specific event in response to an operation on the electronic device 100 after the electronic device 100 enters the input mode.
所述指令转换模块34用于接收所述控制指令产生模块33产生的装置控制指令,并将所述装置控制指令转换为所述电子设备200可识别的用于控制电子设备200执行所述相同特定事件的设备控制指令。The instruction conversion module 34 is configured to receive the device control instruction generated by the control instruction generation module 33, and convert the device control instruction into an identifiable by the electronic device 200 for controlling the electronic device 200 to perform the same specific Device control instructions for the event.
所述发送模块35用于将所述设备控制指令发送至所述电子设备200以控制电子设备200执行所述特定事件。即,所述电子装置200接收到所述设备控制指令后,会响应所述设备控制指令的控制而执行所述特定事件。The sending module 35 is configured to send the device control instruction to the electronic device 200 to control the electronic device 200 to execute the specific event. That is, after receiving the device control instruction, the electronic device 200 performs the specific event in response to the control of the device control instruction.
从而,本发明,可将电子装置100作为电子设备200的输入装置,在电子 装置100上执行操作产生装置控制指令后,会转换为电子设备200可识别的设备控制指令,相当于对电子设备200上执行了相同的操作。Thus, the present invention can use the electronic device 100 as an input device of the electronic device 200 in the electronic After the operation generating device control command is executed on the device 100, it is converted into a device control command recognizable by the electronic device 200, which is equivalent to performing the same operation on the electronic device 200.
如图1所示,所述电子装置100还包括存储器40,所述存储器40中存储有一装置控制指令与设备控制指令的映射关系表,所述映射关系表中包括有多个装置控制指令与设备控制指令的映射关系,每一映射关系包括用于执行同一特定事件的装置控制指令与设备控制指令的对应关系。As shown in FIG. 1 , the electronic device 100 further includes a memory 40. The memory 40 stores a mapping relationship between a device control instruction and a device control instruction, where the mapping relationship table includes multiple device control commands and devices. A mapping relationship of control instructions, each mapping relationship including a correspondence between device control instructions and device control instructions for executing the same specific event.
所述指令转换模块34将所述装置控制指令转换为所述电子设备200可识别的用于控制电子设备200执行所述特定功能的设备控制指令包括:所述指令转换模块34根据所述装置控制指令与设备控制指令的映射关系表,确定所述装置控制指令对应的设备控制指令,并生成所述设备控制指令。The instruction conversion module 34 converts the device control instruction into a device control instruction recognizable by the electronic device 200 for controlling the electronic device 200 to perform the specific function, including: the instruction conversion module 34 controls according to the device And a mapping relationship table between the instruction and the device control instruction, determining a device control instruction corresponding to the device control instruction, and generating the device control instruction.
在一些实施例中,所述控制指令产生模块33产生用于执行某一特定事件的装置控制指令后,还控制所述电子装置100也执行所述特定事件。In some embodiments, after the control instruction generation module 33 generates a device control instruction for executing a certain event, the control device 35 is also controlled to perform the specific event.
请一并参阅图2,在一些实施例中,所述电子装置100进入输入模式时,所述电子装置100的显示屏20显示有一输入框S1及软键盘J1。Referring to FIG. 2, in some embodiments, when the electronic device 100 enters the input mode, the display 20 of the electronic device 100 displays an input box S1 and a soft keyboard J1.
所述执行的特定事件包括文本内容编辑事件。在一些实施例中,所述文本内容编辑事件包括字符输入事件、删除事件、换行事件、复制事件、剪切事件、粘贴事件等在内的文本内容编辑相关的事件。The specific event performed includes a text content editing event. In some embodiments, the text content editing event includes a text content editing related event such as a character input event, a delete event, a line feed event, a copy event, a cut event, a paste event, and the like.
所述软键盘J1包括若干按键K1,所述控制指令产生模块33响应用户对软键盘J1上的按键的操作,产生用于执行相应文本内容编辑事件的装置控制指令。所述指令转换模块34在接收到所述控制指令产生模块33产生的装置控制指令后,将所述装置控制指令转换为用于控制所述电子设备执行所述文本内容编辑事件的设备控制指令。The soft keyboard J1 includes a plurality of buttons K1, and the control command generating module 33 generates device control instructions for executing corresponding text content editing events in response to the user's operation on the keys on the soft keyboard J1. The instruction conversion module 34, after receiving the device control instruction generated by the control instruction generation module 33, converts the device control instruction into a device control instruction for controlling the electronic device to execute the text content editing event.
其中,所述若干按键K1包括具有中英文字符、数字字符、表情字符和/或符号字符等键值的字符按键、还包括具有删除功能键值、回车键功能键值、复制功能键值、剪切功能键值、粘贴功能键值等的功能按键。The plurality of buttons K1 include a character button having a key value such as a Chinese character, a numeric character, an emotic character, and/or a symbol character, and further includes a delete function key value, an enter key function key value, a copy function key value, Function buttons for cutting function key values, pasting function key values, etc.
具体的,所述控制指令产生模块33响应用户对软键盘J1上的字符按键K1的操作,产生控制执行输入所述字符按键K1对应字符的装置控制指令。所述指令转换模块34在接收到所述装置控制指令后,将该装置控制指令转换为用于控制所述电子设备200执行输入所述字符按键K1对应的字符的设备控 制指令。Specifically, the control command generating module 33 generates a device control command for controlling the execution of the character corresponding to the character button K1 in response to the user's operation on the character button K1 on the soft keyboard J1. After receiving the device control instruction, the instruction conversion module 34 converts the device control instruction into a device control for controlling the electronic device 200 to perform a character inputting the character button K1. Instruction.
所述显示屏20接收到/响应用户对软键盘J1上的功能按键K1的操作时,所述控制指令产生模块33产生控制执行所述功能按键K1对应功能的装置控制指令。所述指令转换模块34在接收到所述装置控制指令后,将该装置控制指令转换为用于控制所述电子设备200执行所述功能按键K1对应功能的设备控制指令。其中,所述执行所述功能按键K1对应功能可为执行删除、复制、剪切、粘贴等文本内容编辑功能。When the display screen 20 receives/responds to the user's operation of the function button K1 on the soft keyboard J1, the control command generation module 33 generates a device control command for controlling the function corresponding to the function button K1. After receiving the device control instruction, the instruction conversion module 34 converts the device control instruction into a device control instruction for controlling the electronic device 200 to execute the function corresponding to the function button K1. The function corresponding to executing the function button K1 may be a text content editing function such as deleting, copying, cutting, and pasting.
所述控制指令产生模块33并在产生控制执行输入所述字符按键K1对应字符的装置控制指令后,还控制同样在输入框S1输入所述字符按键K1对应的字符。所述控制指令产生模块33在产生控制执行所述功能按键K1对应功能的装置控制指令后,也控制电子装置100执行所述功能按键K1对应功能,例如,控制对所述输入框S1中已经输入的字符执行删除、复制、剪切、粘贴等文本内容编辑功能。The control command generation module 33 also controls the input of the character corresponding to the character button K1 in the input box S1 after generating a device control command for controlling the execution of the character corresponding to the character button K1. The control command generating module 33 also controls the electronic device 100 to execute the function corresponding to the function button K1 after generating a device control command for controlling the function corresponding to the function button K1. For example, the control is input to the input box S1. The characters perform text content editing functions such as deletion, copying, cutting, and pasting.
请一并参阅图3,如图3所示,当电子装置100进入输入模式后,电子装置100的用户可通过操作所述软键盘J1而触发所述控制指令产生模块33产生用于控制执行特定事件的装置控制指令。例如,所述控制指令产生模块33在用户操作软键盘J1输入“柔”字时,则产生用于控制输入“柔”字的装置控制指令,所述控制指令产生模块33并控制将所述“柔”字显示在所述输入框S1上。所述指令转换模块34将所述控制输入“柔”字的装置控制指令转换为用于控制所述电子设备200输入“柔”字的设备控制指令。当发送模块35通过通信单元10将所述用于控制所述电子设备200输入“柔”字的设备控制指令发送至所述电子设备200时,在所述设备控制指令的控制下,所述电子设备200的输入框S2上同样输入所述“柔”字。Referring to FIG. 3 together, as shown in FIG. 3, after the electronic device 100 enters the input mode, the user of the electronic device 100 can trigger the control command generating module 33 to generate a control for executing the specific by operating the soft keyboard J1. Device control instructions for events. For example, when the user inputs the "soft" word when the user operates the soft keyboard J1, the control command generating module 33 generates a device control command for controlling the input of the "soft" word, the control command generating module 33 and controlling the " The word "soft" is displayed on the input box S1. The instruction conversion module 34 converts the device control instruction that controls the input "soft" word into a device control instruction for controlling the input of the "soft" word by the electronic device 200. When the transmitting module 35 transmits the device control command for controlling the input of the "soft" word to the electronic device 200 to the electronic device 200 through the communication unit 10, the electronic device is under the control of the device control command The "soft" word is also input on the input box S2 of the device 200.
又例如,用户操作软键盘J1的删除键时,则所述控制指令产生模块33产生用于控制删除字符的装置控制指令,所述控制指令产生模块33并控制删除所述输入框S1上的至少一个字符。所述指令转换模块34在接收到所述用于控制删除字符的装置控制指令后,将所述控制删除字符的装置控制指令转换为用于控制所述电子设备200删除字符的设备控制指令。当发送模块35通过通信单元10将所述用于控制所述电子设备200删除字符的设备控制指令发送至所 述电子设备200时,在所述设备控制指令的控制下,所述电子设备200的输入框K2上同样删除至少一个字符。For another example, when the user operates the delete key of the soft keyboard J1, the control command generating module 33 generates a device control command for controlling the delete character, and the control command generating module 33 controls and deletes at least the input box S1. One character. After receiving the device control instruction for controlling the deleted character, the instruction conversion module 34 converts the device control instruction for controlling the deleted character into a device control instruction for controlling the electronic device 200 to delete the character. When the sending module 35 sends the device control command for controlling the electronic device 200 to delete characters through the communication unit 10 to the When the electronic device 200 is described, at least one character is also deleted on the input box K2 of the electronic device 200 under the control of the device control command.
从而,用户可在电子装置100进行输入操作,并可在电子装置100看到所输入的内容,从而用户在进行输入时,了解所输入的内容,确保电子设备200上输入了所需要的内容。Therefore, the user can perform an input operation on the electronic device 100, and can view the input content in the electronic device 100, so that the user knows the input content when making the input, and ensures that the required content is input on the electronic device 200.
在一些实施例中,如图1所示,所述电子装置100还包括控制按键50,所述控制按键50可用于调节亮度和/或音量等。所述特定事件还包括参数调节事件,例如调节音量和/或亮度等参数。所述控制指令产生模块33响应电子装置100的用户对控制按键50的操作而产生用于执行参数调节事件的装置控制指令。其中,如图2所示,所述控制按键50可为位于所述电子装置100的侧框按键。In some embodiments, as shown in FIG. 1, the electronic device 100 further includes a control button 50 that can be used to adjust brightness and/or volume, and the like. The specific event also includes a parameter adjustment event, such as adjusting parameters such as volume and/or brightness. The control command generation module 33 generates a device control command for executing a parameter adjustment event in response to an operation of the control button 50 by a user of the electronic device 100. Wherein, as shown in FIG. 2, the control button 50 can be a side frame button located on the electronic device 100.
所述指令转换模块34在接收到所述用于执行参数调节事件的装置控制指令后,将所述装置控制指令转换为用于执行所述参数调节事件的设备控制指令。在所述发送模块35将所述用于执行所述参数调节事件的设备控制指令发送至所述电子设备200后,则控制所述电子设备200执行所述参数调节事件。例如,控制所述电子设备200调节音量和/或调节亮度等参数。The instruction conversion module 34, upon receiving the device control instruction for executing the parameter adjustment event, converts the device control instruction into a device control instruction for executing the parameter adjustment event. After the sending module 35 sends the device control command for executing the parameter adjustment event to the electronic device 200, the electronic device 200 is controlled to execute the parameter adjustment event. For example, the electronic device 200 is controlled to adjust parameters such as volume and/or brightness.
请参阅图4,在一些实施例中,当所述电子装置100进入输入模式后,也可不显示所述输入框S1及所述软键盘J1,而仅仅有一触摸操作与所控制执行的特定事件的说明。例如,如图4所示,所述说明包括单击为确认、双击为返回、向左滑动为删除、向右滑动为换行、手写可直接输入等内容。Referring to FIG. 4, in some embodiments, after the electronic device 100 enters the input mode, the input box S1 and the soft keyboard J1 may not be displayed, but only a touch operation and a specific event controlled by the control may be performed. Description. For example, as shown in FIG. 4, the description includes clicking to confirm, double-clicking to return, sliding to the left to delete, sliding to the right as a newline, handwriting to directly input, and the like.
在一些实施例中,所述显示屏20为触摸显示屏。所述存储器40中还存储有特定事件与触摸动作的对应关系表,所述对应关系表中包括有多个触摸动作与特定事件之间的对应关系。例如,所述对应关系表中包括单击与确认事件的对应关系、双击与返回事件的对应关系、向左滑动与删除事件的对应关系、向右滑动与换行事件的对应关系、手写与字符输入事件的对应关系。In some embodiments, the display screen 20 is a touch display screen. The memory 40 further stores a correspondence table between a specific event and a touch action, where the correspondence relationship table includes a correspondence between a plurality of touch actions and a specific event. For example, the correspondence table includes a correspondence between a click and an acknowledgement event, a correspondence between a double click and a return event, a correspondence between a slide to the left and a delete event, a correspondence between a slide to the right and a line feed event, and a handwriting and character input. The correspondence of events.
所述控制指令产生模块33还在用户在显示屏20上任意位置输入一触摸动作后,即显示屏的任意位置接收到触摸动作后,根据所述特定事件与触摸动作的对应关系表确定所述触摸动作对应的特定事件,而产生控制执行所述特定事件的装置控制指令。 The control command generating module 33 further determines, according to the correspondence table between the specific event and the touch action, after the user inputs a touch action at any position on the display screen 20, that is, after receiving the touch action at any position of the display screen. A specific event corresponding to the action is touched, and a device control instruction that controls execution of the particular event is generated.
如前所述,所述指令转换模块34接收所述控制执行所述特定事件的装置控制指令后,将所述装置控制指令转换为用于控制所述电子设备200执行所述特定事件的设备控制指令。所述发送模块35将所述设备控制指令发送至所述电子设备200以控制电子设备200执行所述特定事件。如前所述,所述特定事件可为文本内容编辑事件、参数调节事件。As described above, after receiving the device control instruction for controlling the execution of the specific event, the instruction conversion module 34 converts the device control instruction into device control for controlling the electronic device 200 to execute the specific event. instruction. The transmitting module 35 sends the device control instruction to the electronic device 200 to control the electronic device 200 to execute the specific event. As mentioned before, the specific event may be a text content editing event, a parameter adjustment event.
如图1所示,所述处理器30还包括通信控制模块36,所述通信控制模块36用于控制所述通信单元10与所述电子设备200建立通信连接。As shown in FIG. 1, the processor 30 further includes a communication control module 36 for controlling the communication unit 10 to establish a communication connection with the electronic device 200.
在一些实施例中,所述通信单元10包括WIFI通信模组11,所述电子设备200连接一WIFI局域网,且开启了socket服务(电子设备200设置为服务端),绑定了特定端口。在一实施例中,所述通信控制模块36控制所述通信单元10与所述电子设备200建立通信连接包括:所述通信控制模块36控制所述电子装置100的通信单元10连接至一WIFI局域网,所述WIFI局域网为所述电子设备200连接的局域网;所述通信控制模块36搜索电子装置100当前所连接的WIFI局域网中的电子设备200,例如,向所述WIFI局域网发送广播数据包;所述通信控制模块36并在接收到电子设备200返回的数据包后,获取电子设备200的IP地址与端口,并根据所述电子设备200的IP地址与端口控制所述通信单元10与所述电子设备200建立通信连接。其中,上述控制所述通信单元10与所述电子设备200建立通信连接可为所述通信控制模块36响应一开启操作后执行。所述电子设备200在接收到电子装置100发送的广播数据包后向该电子装置100返回一数据包,其中,该返回的数据包中包括有电子设备200的IP地址及端口信息。In some embodiments, the communication unit 10 includes a WIFI communication module 11, the electronic device 200 is connected to a WIFI local area network, and the socket service is enabled (the electronic device 200 is set as a server), and a specific port is bound. In an embodiment, the communication control module 36 controls the communication unit 10 to establish a communication connection with the electronic device 200. The communication control module 36 controls the communication unit 10 of the electronic device 100 to connect to a WIFI local area network. The WIFI local area network is a local area network connected to the electronic device 200; the communication control module 36 searches for the electronic device 200 in the WIFI local area network to which the electronic device 100 is currently connected, for example, sends a broadcast data packet to the WIFI local area network; After receiving the data packet returned by the electronic device 200, the communication control module 36 acquires the IP address and port of the electronic device 200, and controls the communication unit 10 and the electronic device according to the IP address and port of the electronic device 200. Device 200 establishes a communication connection. The establishing the communication connection between the communication unit 10 and the electronic device 200 may be performed by the communication control module 36 in response to an opening operation. The electronic device 200 returns a data packet to the electronic device 100 after receiving the broadcast data packet sent by the electronic device 100, wherein the returned data packet includes an IP address and port information of the electronic device 200.
前述的输入需求确认模块31可通过TCP协议接收电子设备200发送的输入调用请求,或者通过TCP协议发送所述查询请求至所述电子设备200,以查询所述电子设备200当前是否显示有一输入框。The foregoing input requirement confirmation module 31 may receive an input call request sent by the electronic device 200 through a TCP protocol, or send the query request to the electronic device 200 through a TCP protocol, to query whether the electronic device 200 currently displays an input box. .
如图1所示,所述通信单元10还可包括蓝牙通信模组12。在其他实施例中,所述通信控制模块36控制所述通信单元10与所述电子设备200建立通信连接包括:所述通信控制模块36响应所述开启操作搜索周围开启有蓝牙功能的电子设备200;并在搜索到所述电子设备200时,发送蓝牙配对请求;以及在配对请求通过时,建立与所述电子设备200的通信连接。 As shown in FIG. 1, the communication unit 10 may further include a Bluetooth communication module 12. In other embodiments, the communication control module 36 controls the communication unit 10 to establish a communication connection with the electronic device 200. The communication control module 36 searches for the Bluetooth-enabled electronic device 200 in response to the opening operation. And transmitting a Bluetooth pairing request when searching for the electronic device 200; and establishing a communication connection with the electronic device 200 when the pairing request is passed.
如图5所示,在一些实施例中,所述通信控制模块36响应所述开启操作搜索到周围可连接的电子设备200有多个时,还控制显示屏20显示所有搜索到的电子设备200,并响应用户的选择操作确定要连接的目标电子设备200,并控制与所述目标电子设备200建立通信连接。例如,所述通信控制模块36搜索电子装置100当前所连接的WIFI局域网中的电子设备200有多个,或者搜索到周围开启有蓝牙功能的电子设备200有多个时,控制显示屏20显示所有搜索到的电子设备200,并响应用户的选择操作确定要连接的目标电子设备200,然后根据前述的方式建立与目标电子设备200之间的通信连接。As shown in FIG. 5, in some embodiments, the communication control module 36 controls the display screen 20 to display all the searched electronic devices 200 when there are multiple electronic devices 200 that are connected to each other in response to the opening operation. And determining the target electronic device 200 to be connected in response to the user's selection operation, and controlling establishment of a communication connection with the target electronic device 200. For example, when the communication control module 36 searches for multiple electronic devices 200 in the WIFI local area network to which the electronic device 100 is currently connected, or searches for multiple electronic devices 200 with Bluetooth enabled nearby, the control display screen 20 displays all The searched electronic device 200 determines the target electronic device 200 to be connected in response to the user's selection operation, and then establishes a communication connection with the target electronic device 200 in accordance with the foregoing manner.
其中,所述开启操作可为用户在需要使用电子装置100对电子设备200进行输入控制时输入,例如用户可在所述显示屏20执行特定的触摸手势或者对对特定的菜单选项进行操作而执行所述开启操作。The opening operation may be input when the user needs to perform input control on the electronic device 200 by using the electronic device 100, for example, the user may perform a specific touch gesture on the display screen 20 or perform an operation on a specific menu option. The opening operation.
在一些实施例中,所述输入需求确认模块31、模式切换模块32、控制指令产生模块33、指令转换模块34、发送模块35以及通信控制模块36可为安装于所述电子装置100中的特定应用软件中的程序模块。所述特定应用软件被打开后,可响应用户的操作而触发所述输入需求确认模块31、模式切换模块32、控制指令产生模块33、指令转换模块34、发送模块35以及通信控制模块36执行前述的功能。其中,所述开启操作还可为打开所述特定应用软件的操作。In some embodiments, the input requirement confirmation module 31, the mode switching module 32, the control instruction generation module 33, the instruction conversion module 34, the transmission module 35, and the communication control module 36 may be specific to be installed in the electronic device 100. Program modules in the application software. After the specific application software is opened, the input demand confirmation module 31, the mode switching module 32, the control instruction generation module 33, the instruction conversion module 34, the transmission module 35, and the communication control module 36 may be triggered to perform the foregoing in response to the user's operation. The function. The opening operation may also be an operation of opening the specific application software.
在另一些实施例中,所述输入需求确认模块31、模式切换模块32、控制指令产生模块33、指令转换模块34、发送模块35以及通信控制模块36可为存储于存储器40中的可被所述处理器30调用执行的程序指令,或者可为固化于所述处理器30中的固件。在一些实施例中,所述输入需求确认模块31、模式切换模块32、控制指令产生模块33、指令转换模块34、发送模块35以及通信控制模块36还可为所述处理器30中的硬件电路。In other embodiments, the input requirement confirmation module 31, the mode switching module 32, the control instruction generation module 33, the instruction conversion module 34, the transmission module 35, and the communication control module 36 may be stored in the memory 40. The processor 30 invokes the executed program instructions or may be firmware that is solidified in the processor 30. In some embodiments, the input requirement confirmation module 31, the mode switching module 32, the control instruction generation module 33, the instruction conversion module 34, the transmission module 35, and the communication control module 36 may also be hardware circuits in the processor 30. .
在一些实施例中,所述控制指令产生模块33产生所述装置控制指令后,会将所述装置控制指令即时发送给所述指令转换模块34,如前所述,所述指令转换模块34接收到所述指令转换模块34后,控制将所述装置控制指令转换为设备控制指令。In some embodiments, after the control instruction generation module 33 generates the device control instruction, the device control instruction is immediately sent to the instruction conversion module 34. As described above, the instruction conversion module 34 receives After the instruction conversion module 34, the control converts the device control instruction into a device control instruction.
其中,所述处理器30可为中央处理器、微控制器、微处理器、单片机、 数字信号处理器等处理芯片。所述存储器40可为闪存卡、固态存储器、随机存储器等。The processor 30 can be a central processing unit, a microcontroller, a microprocessor, a single chip microcomputer, Processing chips such as digital signal processors. The memory 40 can be a flash memory card, a solid state memory, a random access memory, or the like.
所述电子装置100可为手机、平板电脑等便携式电子装置。所述电子设备200可为智能眼镜、智能头盔等头戴式显示器。The electronic device 100 can be a portable electronic device such as a mobile phone or a tablet computer. The electronic device 200 can be a head mounted display such as smart glasses or a smart helmet.
请参阅图6,为本发明一实施例中的输入控制方法的流程图。所述方法应用于前述的电子装置100中。所述方法包括步骤:Please refer to FIG. 6, which is a flowchart of an input control method according to an embodiment of the present invention. The method is applied to the aforementioned electronic device 100. The method includes the steps of:
输入需求确认模块31在电子装置100的通信单元10与所述电子设备200建立通信连接后,确认电子设备200是否有输入需求(S601)。如果是,则执行步骤S602,否则返回所述步骤S601。在一些实施例中,所述步骤S601包括:所述输入需求确认模块31在接收到所述电子设备200产生的输入调用请求后,确认所述电子设备200有输入需求,其中,所述输入调用请求为所述电子设备200在电子设备200的输入框被调取激活后产生。在另一些实施例中,所述步骤S601包括:所述输入需求确认模块31发送查询请求至所述电子设备200,查询所述电子设备200上是否显示有被激活的输入框,如果是,则确认所述电子设备200有输入需求。The input demand confirmation module 31 confirms whether the electronic device 200 has an input demand after the communication unit 10 of the electronic device 100 establishes a communication connection with the electronic device 200 (S601). If yes, go to step S602, otherwise go back to step S601. In some embodiments, the step S601 includes: after receiving the input call request generated by the electronic device 200, the input demand confirmation module 31 confirms that the electronic device 200 has an input requirement, wherein the input is invoked. The request is generated for the electronic device 200 after the input box of the electronic device 200 is activated. In other embodiments, the step S601 includes: the input demand confirmation module 31 sends a query request to the electronic device 200, and queries whether the activated input box is displayed on the electronic device 200, and if so, It is confirmed that the electronic device 200 has an input requirement.
模式切换模块32在所述输入需求确认模块31确认电子设备200有输入需求时,控制所述电子装置100进入输入模式(S602)。The mode switching module 32 controls the electronic device 100 to enter the input mode when the input demand confirmation module 31 confirms that the electronic device 200 has an input demand (S602).
在电子装置100进入输入模式后,控制指令产生模块33响应对电子装置100的操作产生用于执行某一特定事件的装置控制指令(S603)。在一些实施例中,所述控制指令产生模块33响应对电子装置100的操作产生用于执行某一特定事件的装置控制指令,并且控制所述电子装置100执行所述特定事件。After the electronic device 100 enters the input mode, the control command generation module 33 generates a device control command for executing a certain event in response to the operation of the electronic device 100 (S603). In some embodiments, the control instruction generation module 33 generates device control instructions for performing a certain event in response to an operation on the electronic device 100, and controls the electronic device 100 to perform the specific event.
指令转换模块34接收所述装置控制指令,并将所述装置控制指令转换为所述电子设备200可识别的用于控制电子设备200执行所述相同特定事件的设备控制指令(S604)。其中,所述电子装置100的存储器40中存储有一装置控制指令与设备控制指令的映射关系表,所述映射关系表中包括有多个装置控制指令与设备控制指令的映射关系,每一映射关系包括用于执行同一特定事件的装置控制指令与设备控制指令的对应关系。所述步骤S603包括:所述指令转换模块34根据所述装置控制指令与设备控制指令的映射关系表,确定所述装置控制指令对应的设备控制指令,并生成所述设备控制指令。 The instruction conversion module 34 receives the device control instruction and converts the device control instruction into a device control instruction recognizable by the electronic device 200 for controlling the electronic device 200 to execute the same specific event (S604). The mapping relationship between the device control command and the device control command is stored in the memory 40 of the electronic device 100. The mapping relationship table includes mapping relationships between multiple device control commands and device control commands, and each mapping relationship A correspondence between device control instructions and device control instructions for performing the same specific event is included. The step S603 includes: the instruction conversion module 34 determines a device control instruction corresponding to the device control instruction according to the mapping relationship table between the device control instruction and the device control instruction, and generates the device control instruction.
发送模块35将所述设备控制指令发送至所述电子设备200以控制电子设备200执行所述特定事件(S605)。The transmitting module 35 transmits the device control instruction to the electronic device 200 to control the electronic device 200 to execute the specific event (S605).
如图6所示,所述输入控制方法在步骤S601之前还包括步骤:所述通信控制模块36控制所述通信单元10与所述电子设备200建立通信连接(S600)。As shown in FIG. 6, the input control method further includes a step before the step S601: the communication control module 36 controls the communication unit 10 to establish a communication connection with the electronic device 200 (S600).
在一些实施例中,所述通信单元10包括WIFI通信模块11,所述步骤S600包括:响应一开启操作,所述通信控制模块36控制所述电子装置100的通信单元10连接至一WIFI局域网,所述WIFI局域网为所述电子设备200连接的局域网;所述通信控制模块36搜索电子装置100当前所连接的WIFI局域网中的电子设备200,例如,向所述WIFI局域网发送广播数据包;所述通信控制模块36并在接收到电子设备200返回的数据包后,根据所述返回的数据包获取电子设备200的IP地址与端口,并根据所述电子设备200的IP地址与端口控制所述通信单元10与所述电子设备200建立通信连接。In some embodiments, the communication unit 10 includes a WIFI communication module 11, and the step S600 includes: in response to an opening operation, the communication control module 36 controls the communication unit 10 of the electronic device 100 to connect to a WIFI local area network. The WIFI local area network is a local area network connected to the electronic device 200; the communication control module 36 searches for the electronic device 200 in the WIFI local area network to which the electronic device 100 is currently connected, for example, sends a broadcast data packet to the WIFI local area network; After receiving the data packet returned by the electronic device 200, the communication control module 36 acquires the IP address and port of the electronic device 200 according to the returned data packet, and controls the communication according to the IP address and port of the electronic device 200. Unit 10 establishes a communication connection with the electronic device 200.
在一些实施例中,所述通信单元10还可包括蓝牙通信模组12,所述步骤S600包括:所述通信控制模块36响应所述开启操作搜索周围开启有蓝牙功能的电子设备200;并在搜索到所述电子设备200时,发送蓝牙配对请求;以及在配对请求通过时,建立与所述电子设备200的通信连接。In some embodiments, the communication unit 10 may further include a Bluetooth communication module 12, and the step S600 includes: the communication control module 36 searches for the Bluetooth-enabled electronic device 200 in response to the opening operation; When the electronic device 200 is searched, a Bluetooth pairing request is sent; and when the pairing request is passed, a communication connection with the electronic device 200 is established.
请参阅图7,为步骤S604在第一实施例中的子流程图。在一实施例中,所述电子装置100进入输入模式时,所述电子装置100的显示屏20显示有一输入框S1及软键盘J1,所述控制指令产生模块33响应对电子装置100的操作产生用于执行某一特定事件的装置控制指令包括:所述控制指令产生模块33响应对软键盘J1上的按键的操作而产生用于执行相应文本内容编辑事件的装置控制指令,所述步骤S604包括:Please refer to FIG. 7, which is a sub-flowchart in step S604 in the first embodiment. In an embodiment, when the electronic device 100 enters the input mode, the display screen 20 of the electronic device 100 displays an input box S1 and a soft keyboard J1, and the control command generating module 33 generates a response to the operation of the electronic device 100. The device control instruction for executing a specific event includes: the control command generation module 33 generates a device control instruction for executing a corresponding text content editing event in response to an operation on a soft keyboard J1, the step S604 including :
所述指令转换模块34接收所述控制指令产生模块33响应对软键盘J1上的按键的操作产生的用于执行相应文本内容编辑事件的装置控制指令(S6041)。具体的,所述控制指令产生模块33响应用户对软键盘J1上的字符按键K1的操作,产生控制执行输入所述字符按键K1所对应的字符的装置控制指令,或者,所述控制指令产生模块33响应用户对软键盘J1上的功能按键K1的操作,产生控制执行所述功能按键K1所对应的功能的装置控制指令,例如,执行删除、复制、剪切、粘贴等文本内容编辑功能。 The instruction conversion module 34 receives a device control instruction for executing a corresponding text content editing event generated by the control instruction generation module 33 in response to an operation on a soft keyboard J1 (S6041). Specifically, the control command generating module 33 generates a device control instruction for controlling the execution of the character corresponding to the character button K1 in response to the user's operation on the character button K1 on the soft keyboard J1, or the control command generating module. In response to the user's operation of the function button K1 on the soft keyboard J1, a device control command for controlling the function corresponding to the function button K1 is generated, for example, a text content editing function such as deletion, copying, cutting, and pasting is performed.
所述指令转换模块34在接收到所述装置控制指令后,将所述装置控制指令转换为用于控制所述电子设备执行所述文本内容编辑事件的设备控制指令(S6042)。The instruction conversion module 34, after receiving the device control instruction, converts the device control instruction into a device control instruction for controlling the electronic device to execute the text content editing event (S6042).
请参阅图8,为步骤S604在第二实施例中的子流程图。所述电子装100还包括控制按键50,在第二实施例中,所述控制指令产生模块33响应对电子装置100的操作产生用于执行某一特定事件的装置控制指令包括:所述控制指令产生模块3320响应对控制按键50的操作而产生用于执行参数调节事件的装置控制指令,所述步骤S604包括:Please refer to FIG. 8, which is a sub-flowchart in step S604 in the second embodiment. The electronic device 100 further includes a control button 50. In the second embodiment, the control command generating module 33 generates a device control command for executing a specific event in response to an operation on the electronic device 100, including: the control command The generating module 3320 generates a device control instruction for performing a parameter adjustment event in response to the operation of the control button 50, the step S604 comprising:
所述指令转换模块34接收所述控制指令产生模块3320响应对控制按键50的操作产生的用于执行参数调节事件的装置控制指令(S6044)。其中,所述参数调节事件包括音量调节事件和/或亮度调节事件。The instruction conversion module 34 receives a device control instruction for executing a parameter adjustment event generated by the control instruction generation module 3320 in response to an operation of the control button 50 (S6044). The parameter adjustment event includes a volume adjustment event and/or a brightness adjustment event.
所述指令转换模块34在接收到所述装置控制指令后,将所述装置控制指令转换为用于控制所述电子设备执行参数调节的设备控制指令(S6045)。After receiving the device control instruction, the instruction conversion module 34 converts the device control instruction into a device control instruction for controlling the electronic device to perform parameter adjustment (S6045).
请参阅图9,为步骤S604在第三实施例中的子流程图。所述显示屏20为触摸显示屏,在第三实施例中,所述控制指令产生模块33响应对电子装置100的操作产生用于执行某一特定事件的装置控制指令包括:所述控制指令产生模块33响应在显示屏20上任意位置输入一触摸动作后,根据特定事件与触摸动作的对应关系表确定所述触摸动作对应的特定事件而产生控制执行所述特定事件的装置控制指令;所述步骤S604包括:Please refer to FIG. 9, which is a sub-flowchart in step S604 in the third embodiment. The display screen 20 is a touch display screen. In the third embodiment, the control instruction generating module 33 generates a device control instruction for executing a specific event in response to the operation of the electronic device 100, including: the control command is generated. After inputting a touch action at any position on the display screen 20, the module 33 determines a specific event corresponding to the touch action according to a specific event and a corresponding action table of the touch action to generate a device control instruction for controlling execution of the specific event; Step S604 includes:
所述指令转换模块34接收所述控制指令产生模块33响应在显示屏20上任意位置输入一触摸动作后,根据特定事件与触摸动作的对应关系表确定所述触摸动作对应的特定事件而产生的控制执行所述特定事件的装置控制指令(S6046)。其中,所述特定事件与触摸动作的对应关系表包括单击与确认事件的对应关系、双击与返回事件的对应关系、向左滑动与删除事件的对应关系、向右滑动与换行事件的对应关系、手写与字符输入事件的对应关系等等。The instruction conversion module 34 receives the control event generation module 33, after inputting a touch action at any position on the display screen 20, determining a specific event corresponding to the touch action according to a correspondence table between a specific event and a touch action. A device control instruction to execute the specific event is controlled (S6046). The correspondence table between the specific event and the touch action includes a correspondence between a click and a confirmation event, a correspondence between a double click and a return event, a correspondence between a slide to the left and a delete event, and a corresponding relationship between a slide to the right and a line feed event. , the correspondence between handwriting and character input events, and so on.
所述指令转换模块34在接收到所述装置控制指令后,将所述装置控制指令转换为用于控制执行所述特定事件的设备控制指令(S6047)。The instruction conversion module 34, upon receiving the device control instruction, converts the device control instruction into a device control instruction for controlling execution of the specific event (S6047).
因此,本申请的电子装置100及输入控制方法,能够使用电子装置100输入控制执行特定事件的装置控制指令,则可自动转换为用于控制电子设备200 执行相同特定事件的设备控制指令对所述电子设备进行控制,可通过电子装置100对电子设备200进行更直观和方便地输入。Therefore, the electronic device 100 and the input control method of the present application can be automatically converted into control electronics 200 by using the electronic device 100 to input a device control command for controlling execution of a specific event. The device control instructions that perform the same specific event control the electronic device, and the electronic device 200 can be input more intuitively and conveniently through the electronic device 100.
以上所述是本发明的优选实施例,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本发明的保护范围。 The above is a preferred embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. It is the scope of protection of the present invention.

Claims (20)

  1. 一种电子装置,包括通信单元、显示屏及处理器,所述通信单元用于与一电子设备建立通信连接,其特征在于,所述处理器包括:An electronic device, comprising: a communication unit, a display screen and a processor, wherein the communication unit is configured to establish a communication connection with an electronic device, wherein the processor comprises:
    输入需求确认模块,用于在所述通信单元与所述电子设备建立通信连接后,确认电子设备是否有输入需求;The input requirement confirmation module is configured to confirm whether the electronic device has an input requirement after the communication unit establishes a communication connection with the electronic device;
    模式切换模块,用于在所述电子设备有输入需求时,控制所述电子装置进入输入模式;a mode switching module, configured to control the electronic device to enter an input mode when the electronic device has an input requirement;
    控制指令产生模块,用于在电子装置进入输入模式后,响应对电子装置的操作产生用于执行某一特定事件的装置控制指令;a control instruction generating module, configured to generate, after the electronic device enters the input mode, a device control instruction for executing a specific event in response to the operation of the electronic device;
    指令转换模块,用于接收所述装置控制指令,并将所述装置控制指令转换为所述电子设备可识别的用于控制电子设备执行所述相同特定事件的设备控制指令;以及An instruction conversion module, configured to receive the device control instruction, and convert the device control instruction into a device control instruction recognizable by the electronic device for controlling an electronic device to perform the same specific event;
    发送模块,用于将所述设备控制指令发送至所述电子设备以控制电子设备执行所述特定事件。And a sending module, configured to send the device control instruction to the electronic device to control the electronic device to perform the specific event.
  2. 如权利要求1所述的电子装置,其特征在于,所述电子装置还包括存储器,所述存储器中存储有一装置控制指令与设备控制指令的映射关系表,所述映射关系表中包括有多个装置控制指令与设备控制指令的映射关系,每一映射关系包括用于执行同一特定事件的装置控制指令与设备控制指令的对应关系,所述指令转换模块在接收到所述用于执行某一特定事件的装置控制指令时,根据所述装置控制指令与设备控制指令的映射关系表,确定所述装置控制指令对应的设备控制指令,并生成所述设备控制指令。The electronic device according to claim 1, wherein the electronic device further comprises a memory, wherein the memory stores a mapping relationship table between the device control instruction and the device control instruction, where the mapping relationship table includes multiple a mapping relationship between the device control instruction and the device control instruction, each mapping relationship including a correspondence between the device control instruction and the device control instruction for executing the same specific event, the instruction conversion module receiving the When the device control command of the event, the device control command corresponding to the device control command is determined according to the mapping relationship table between the device control command and the device control command, and the device control command is generated.
  3. 如权利要求1或2所述的电子装置,其特征在于,所述模式切换模块控制所述电子装置进入输入模式后,控制所述电子装置的显示屏显示一第一输入框及软键盘,所述软键盘包括若干按键,所述执行的特定事件包括文本内容编辑事件,所述控制指令产生模块响应用户对软键盘上的按键的操作,产生用于执行相应文本内容编辑事件的装置控制指令,所述指令转换模块将所述装置控制指令转换为用于控制所述电子设备执行所述文本内容编辑事件的设备控制指令。 The electronic device according to claim 1 or 2, wherein the mode switching module controls the display of the electronic device to display a first input box and a soft keyboard after the electronic device enters the input mode. The soft keyboard includes a plurality of keys, and the specific event executed includes a text content editing event, and the control instruction generating module generates a device control instruction for executing a corresponding text content editing event in response to the user's operation on the soft keyboard. The instruction conversion module converts the device control instruction into a device control instruction for controlling the electronic device to execute the text content editing event.
  4. 如权利要求3所述的电子装置,其特征在于,所述文本内容编辑事件包括字符输入事件、删除事件、换行事件、复制事件、剪切事件、粘贴事件在内的文本内容编辑相关的事件,所述软键盘的若干按键包括具有中英文字符键值、数字字符键值、表情字符键值和/或符号字符键值的字符按键、还包括具有删除功能键值、回车键功能键值、复制功能键值、剪切功能键值、粘贴功能键值的功能按键。The electronic device according to claim 3, wherein the text content editing event comprises a text content editing event, a deletion event, a line feed event, a copy event, a cut event, a paste event, and the like, The keys of the soft keyboard include character keys having Chinese and English character key values, numeric character key values, emoticon key values, and/or symbol character key values, and also include a delete function key value, an enter key function key value, Function keys for copying function key values, cutting function key values, and pasting function key values.
  5. 如权利要求4所述的电子装置,其特征在于,所述控制指令产生模块响应用户对软键盘上的字符按键的操作,产生控制执行输入所述字符按键所对应的字符的装置控制指令,所述指令转换模块在接收到所述装置控制指令后,将所述装置控制指令转换为用于控制所述电子设备执行输入所述字符按键所对应的字符的设备控制指令。The electronic device according to claim 4, wherein the control command generation module generates a device control command for controlling execution of a character corresponding to the input of the character button in response to a user operation on a character key on the soft keyboard. After receiving the device control instruction, the instruction conversion module converts the device control instruction into a device control instruction for controlling the electronic device to perform a character inputting the character button.
  6. 如权利要求4所述的电子装置,其特征在于,所述控制指令产生模块响应用户对软键盘上的功能按键的操作,产生控制执行所述功能按键所对应的功能的装置控制指令,所述指令转换模块在接收到所述装置控制指令后,将所述装置控制指令转换为用于控制所述电子设备执行所述功能按键对应功能的设备控制指令,其中,所述执行所述功能按键所对应的功能包括执行删除、复制、剪切、粘贴在内的文本内容编辑功能。The electronic device according to claim 4, wherein the control command generation module generates a device control command for controlling a function corresponding to the function button in response to a user operation of a function button on the soft keyboard, After receiving the device control instruction, the instruction conversion module converts the device control instruction into a device control instruction for controlling the electronic device to execute the function button corresponding function, where the function button is executed The corresponding functions include text content editing functions such as deletion, copying, cutting, and pasting.
  7. 如权利要求1或2所述的电子装置,其特征在于,所述电子装置还包括控制按键,所述特定事件还包括参数调节事件,所述控制指令产生模块响应电子装置用户对所述控制按键的操作而产生用于执行参数调节事件的装置控制指令,所述指令转换模块在接收到所述用于执行参数调节事件的装置控制指令时,将所述装置控制指令转换为用于执行所述参数调节事件的设备控制指令,其中,所述参数调节事件包括调节音量和/或亮度在内的参数的事件。The electronic device according to claim 1 or 2, wherein the electronic device further comprises a control button, the specific event further comprises a parameter adjustment event, and the control command generating module responds to the control button by the electronic device user And generating, by the operation, a device control instruction for executing a parameter adjustment event, the instruction conversion module converting the device control instruction to perform the performing when the device control instruction for performing a parameter adjustment event is received A device control command that parameter adjusts an event, wherein the parameter adjustment event includes an event of a parameter that adjusts volume and/or brightness.
  8. 如权利要求2所述的电子装置,其特征在于,所述显示屏为触摸显示屏,所述模式切换模块控制所述电子装置进入输入模式后,控制所述电子装置的显示屏显示触摸操作与所控制执行的特定事件的说明信息,所述存储器中还存储有特定事件与触摸动作的对应关系表,所述对应关系表中包括有多个触摸动作与特定事件之间的对应关系,所述控制指令产生模块还在显示屏上任意位置接收到触摸动作时,根据所述特定事件与触摸动作的对应关系表确定所述触 摸动作对应的特定事件,而产生控制执行所述特定事件的装置控制指令。The electronic device according to claim 2, wherein the display screen is a touch display screen, and the mode switching module controls the display screen of the electronic device to display a touch operation after the electronic device enters an input mode. Descriptive information of a specific event that is controlled to be executed, wherein the memory further stores a correspondence table between a specific event and a touch action, where the correspondence relationship table includes a correspondence between a plurality of touch actions and a specific event, When the control instruction generating module further receives the touch action at any position on the display screen, determining the touch according to the correspondence table between the specific event and the touch action A specific event corresponding to the action is touched, and a device control instruction that controls execution of the particular event is generated.
  9. 如权利要求1或2所述的电子装置,其特征在于,所述处理器还包括通信控制模块,所述通信控制模块用于控制所述通信单元与所述电子设备建立通信连接。The electronic device according to claim 1 or 2, wherein the processor further comprises a communication control module, the communication control module for controlling the communication unit to establish a communication connection with the electronic device.
  10. 如权利要求9所述的电子装置,其特征在于,所述通信单元包括WIFI通信模块,所述通信控制模块用于控制所述电子装置连接至一WIFI局域网,所述WIFI局域网为所述电子设备连接的局域网;所述通信控制模块并控制向当前所在的WIFI局域网发送广播数据包,以搜索当前WIFI局域网中的电子设备,所述通信控制模块并在接收到电子设备返回的数据包后,根据所述数据包获取电子设备的IP地址与端口,并根据所述电子设备的IP地址与端口控制所述通信单元与所述电子设备建立通信连接。The electronic device according to claim 9, wherein the communication unit comprises a WIFI communication module, the communication control module is configured to control the electronic device to be connected to a WIFI local area network, and the WIFI local area network is the electronic device a connected local area network; the communication control module controls to send a broadcast data packet to the current WIFI local area network to search for an electronic device in the current WIFI local area network, and after receiving the data packet returned by the electronic device, the communication control module The data packet acquires an IP address and a port of the electronic device, and controls the communication unit to establish a communication connection with the electronic device according to the IP address and the port of the electronic device.
  11. 如权利要求1所述的电子装置,其特征在于,所述输入需求确认模块在接收到所述电子设备产生的输入调用请求后,确认所述电子设备有输入需求,其中,所述输入调用请求为所述电子设备在电子设备的输入框被调取激活后产生的;或者,所述输入需求确认模块发送查询请求至所述电子设备,查询所述电子设备上是否显示有被激活的输入框,如果是,则确认所述电子设备有输入需求。The electronic device according to claim 1, wherein the input demand confirmation module, after receiving an input call request generated by the electronic device, confirms that the electronic device has an input demand, wherein the input call request The electronic device is generated after the input box of the electronic device is activated; or the input demand confirmation module sends a query request to the electronic device to query whether the activated input box is displayed on the electronic device If yes, confirm that the electronic device has an input requirement.
  12. 如权利要求1所述的电子装置,其特征在于,所述控制指令产生模块响应对电子装置的操作产生用于执行某一特定事件的装置控制指令后,还控制所述电子装置执行所述特定事件。The electronic device according to claim 1, wherein said control command generation module further controls said electronic device to execute said specific device after generating a device control command for performing a specific event in response to operation of said electronic device event.
  13. 一种输入控制方法,应用于一电子装置中,所述电子装置包括通信单元,其特征在于,所述方法包括步骤:An input control method is applied to an electronic device, the electronic device comprising a communication unit, wherein the method comprises the steps of:
    在电子装置的通信单元与一电子设备建立通信连接后,确认所述电子设备是否有输入需求;After the communication unit of the electronic device establishes a communication connection with an electronic device, confirm whether the electronic device has an input requirement;
    如果有,控制所述电子装置进入输入模式;If so, controlling the electronic device to enter an input mode;
    响应对电子装置的操作产生用于执行某一特定事件的装置控制指令;Generating device control instructions for performing a particular event in response to operation of the electronic device;
    接收所述用于执行某一特定事件的装置控制指令时,将所述装置控制指令转换为所述电子设备可识别的用于控制电子设备执行所述相同特定事件的设备控制指令;以及 Receiving, when the device control instruction for executing a certain event is executed, converting the device control instruction to a device control instruction recognizable by the electronic device for controlling an electronic device to perform the same specific event;
    将所述设备控制指令发送至所述电子设备以控制电子设备执行所述特定事件。The device control instructions are sent to the electronic device to control the electronic device to perform the particular event.
  14. 如权利要求13所述的方法,其特征在于,所述电子装置中存储有一装置控制指令与设备控制指令的映射关系表,所述映射关系表中包括有多个装置控制指令与设备控制指令的映射关系,每一映射关系包括用于执行同一特定事件的装置控制指令与设备控制指令的对应关系;所述步骤“将所述装置控制指令转换为所述电子设备可识别的用于控制电子设备执行所述相同特定事件的设备控制指令”包括:The method according to claim 13, wherein the electronic device stores a mapping relationship table between the device control command and the device control command, wherein the mapping relationship table includes a plurality of device control commands and device control commands. a mapping relationship, each mapping relationship including a correspondence between a device control instruction and a device control instruction for executing the same specific event; the step of “converting the device control instruction to the electronic device identifiable for controlling the electronic device The device control instructions that perform the same specific event include:
    根据所述装置控制指令与设备控制指令的映射关系表,确定所述装置控制指令对应的设备控制指令,并生成所述设备控制指令。And determining, according to the mapping relationship table between the device control instruction and the device control instruction, a device control instruction corresponding to the device control instruction, and generating the device control instruction.
  15. 如权利要求13或14所述的方法,其特征在于,所述电子装置还包括显示屏,所述步骤“控制所述电子装置进入输入模式”包括:控制所述电子装置的显示屏显示输入框及软键盘;The method according to claim 13 or 14, wherein the electronic device further comprises a display screen, and the step of "controlling the electronic device to enter an input mode" comprises: controlling a display screen of the electronic device to display an input box And a soft keyboard;
    所述步骤“响应对电子装置的操作产生用于执行某一特定事件的装置控制指令”包括:The step of "generating device control instructions for performing a certain event in response to operation of the electronic device" includes:
    响应用户对软键盘上的按键的操作,产生用于执行相应文本内容编辑事件的装置控制指令;Responding to a user operation of a key on the soft keyboard, generating a device control instruction for executing a corresponding text content editing event;
    所述步骤“将所述装置控制指令转换为所述电子设备可识别的用于控制电子设备执行所述相同特定事件的设备控制指令”包括:The step of "converting the device control command into a device control command recognizable by the electronic device for controlling the electronic device to perform the same specific event" includes:
    将所述装置控制指令转换为用于控制所述电子设备执行所述文本内容编辑事件的设备控制指令。The device control instructions are converted to device control instructions for controlling the electronic device to execute the text content editing event.
  16. 如权利要求15所述的方法,其特征在于,所述步骤“响应用户对软键盘上的按键的操作,产生用于执行相应文本内容编辑事件的装置控制指令”包括:The method of claim 15 wherein said step of "generating device control instructions for executing a corresponding textual content editing event in response to user manipulation of a key on the soft keyboard" comprises:
    响应用户对软键盘上的字符按键的操作,产生控制执行输入所述字符按键所对应的字符的装置控制指令;或者Responding to a user operation of a character key on the soft keyboard, generating a device control instruction for controlling execution of a character corresponding to the input of the character key; or
    响应用户对软键盘上的功能按键的操作,产生控制执行所述功能按键对应功能的装置控制指令,其中,所述执行所述功能按键对应功能包括执行删除、复制、剪切、粘贴在内的文本内容编辑功能。 Responding to the operation of the function button on the soft keyboard by the user, generating a device control instruction for controlling the function corresponding to the function button, wherein the performing the function button corresponding function includes performing deletion, copying, cutting, and pasting Text content editing function.
  17. 如权利要求13或14所述的方法,其特征在于,所述电子装置还包括控制按键,所述步骤“响应对电子装置的操作产生用于执行某一特定事件的装置控制指令”包括:响应对控制按键的操作,产生用于执行参数调节事件的装置控制指令;The method according to claim 13 or 14, wherein said electronic device further comprises a control button, said step of "generating a device control command for executing a specific event in response to an operation of the electronic device" comprises: responding Generating a device control command for performing a parameter adjustment event on the operation of the control button;
    所述步骤“将所述装置控制指令转换为所述电子设备可识别的用于控制电子设备执行所述相同特定事件的设备控制指”包括:将所述装置控制指令转换为用于控制所述电子设备执行参数调节的设备控制指令。The step of "converting the device control command into a device control finger identifiable by the electronic device for controlling the electronic device to perform the same specific event" includes converting the device control command to control the A device control instruction that the electronic device performs parameter adjustment.
  18. 如权利要求13或14所述的方法,其特征在于,所述电子装置包括显示屏,所述显示屏为触摸显示屏,所述步骤“响应对电子装置的操作产生用于执行某一特定事件的装置控制指令”包括:A method according to claim 13 or claim 14, wherein said electronic device comprises a display screen, said display screen being a touch display screen, said step "generating in response to operation of the electronic device for performing a particular event Device control instructions" include:
    在显示屏上任意位置接收到触摸动作后,根据特定事件与触摸动作的对应关系表确定所述触摸动作对应的特定事件,而产生控制执行所述特定事件的装置控制指令。After receiving the touch action at any position on the display screen, the specific event corresponding to the touch action is determined according to the correspondence table of the specific event and the touch action, and a device control instruction for controlling the execution of the specific event is generated.
  19. 如权利要求13或14任一项所述的方法,所述通信单元包括WIFI通信模块,其特征在于,所述方法还包括步骤:The method of any one of claims 13 or 14, wherein the communication unit comprises a WIFI communication module, wherein the method further comprises the steps of:
    控制所述电子装置连接至一WIFI局域网,所述WIFI局域网为所述电子设备连接的局域网;Controlling the electronic device to be connected to a WIFI local area network, where the WIFI local area network is a local area network to which the electronic device is connected;
    向所述电子装置当前所连接的WIFI局域网发送广播数据包,以搜索当前WIFI局域网中的电子设备;Sending a broadcast data packet to a WIFI local area network to which the electronic device is currently connected to search for an electronic device in a current WIFI local area network;
    在接收到所述电子设备返回的数据包后,根据所述数据包获取所述电子设备的IP地址与端口;以及After receiving the data packet returned by the electronic device, acquiring an IP address and a port of the electronic device according to the data packet;
    根据所述电子设备的IP地址与端口控制所述通信单元与所述电子设备建立通信连接。Controlling, by the IP address and port of the electronic device, the communication unit establishes a communication connection with the electronic device.
  20. 如权利要求13所述的方法,其特征在于,所述方法还包括步骤:The method of claim 13 wherein said method further comprises the step of:
    在响应对电子装置的操作产生用于执行某一特定事件的装置控制指令后,控制所述电子装置执行所述特定事件。 The electronic device is controlled to perform the particular event in response to generating a device control command for performing a particular event in response to operation of the electronic device.
PCT/CN2016/112342 2016-12-27 2016-12-27 Electronic apparatus and input control method WO2018119648A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2016/112342 WO2018119648A1 (en) 2016-12-27 2016-12-27 Electronic apparatus and input control method
CN201680069128.0A CN108431727A (en) 2016-12-27 2016-12-27 Electronic device and input control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/112342 WO2018119648A1 (en) 2016-12-27 2016-12-27 Electronic apparatus and input control method

Publications (1)

Publication Number Publication Date
WO2018119648A1 true WO2018119648A1 (en) 2018-07-05

Family

ID=62706609

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/112342 WO2018119648A1 (en) 2016-12-27 2016-12-27 Electronic apparatus and input control method

Country Status (2)

Country Link
CN (1) CN108431727A (en)
WO (1) WO2018119648A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113778368A (en) * 2021-08-31 2021-12-10 维沃移动通信有限公司 Base equipment, control method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049088A (en) * 2011-10-14 2013-04-17 信锦企业股份有限公司 External operation system and external operation method of touch control device
CN103839400A (en) * 2012-11-21 2014-06-04 联想(北京)有限公司 Controlling equipment, controlled equipment and information processing methods applied to controlling equipment and controlled equipment
CN103853444A (en) * 2012-12-03 2014-06-11 联想(北京)有限公司 Method, equipment and system for controlling states of equipment
CN104423562A (en) * 2013-09-09 2015-03-18 联想(北京)有限公司 Terminal equipment and input mode control method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101872218B (en) * 2010-06-06 2013-01-09 苏州达方电子有限公司 Notebook computer, tablet computer and method for transferring input signal
JP5539280B2 (en) * 2011-09-07 2014-07-02 キヤノン株式会社 Data processing apparatus, data processing method and program
CN104007917B (en) * 2013-02-27 2018-07-06 联想(北京)有限公司 The control method and electronic equipment of a kind of dummy keyboard

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049088A (en) * 2011-10-14 2013-04-17 信锦企业股份有限公司 External operation system and external operation method of touch control device
CN103839400A (en) * 2012-11-21 2014-06-04 联想(北京)有限公司 Controlling equipment, controlled equipment and information processing methods applied to controlling equipment and controlled equipment
CN103853444A (en) * 2012-12-03 2014-06-11 联想(北京)有限公司 Method, equipment and system for controlling states of equipment
CN104423562A (en) * 2013-09-09 2015-03-18 联想(北京)有限公司 Terminal equipment and input mode control method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113778368A (en) * 2021-08-31 2021-12-10 维沃移动通信有限公司 Base equipment, control method and device

Also Published As

Publication number Publication date
CN108431727A (en) 2018-08-21

Similar Documents

Publication Publication Date Title
WO2020239019A1 (en) Content sharing method and electronic device
KR102266674B1 (en) Filming method and terminal
US20240012562A1 (en) Control method applied to screen projection scenario and related device
US20070005607A1 (en) Interface control program, interface control method, interface control apparatus, plug-in program and information processing apparatus
EP4130963A1 (en) Object dragging method and device
CN105512086A (en) Information processing device and information processing method
WO2020192428A1 (en) Object management method and mobile terminal
US10084729B2 (en) Apparatuses and methods for web page sharing
WO2016197697A1 (en) Gesture control method, device and system
US20100073287A1 (en) System for controlling devices and information on network by using hand gestures
WO2021104160A1 (en) Editing method and electronic device
WO2020215969A1 (en) Content input method and terminal device
WO2023124141A9 (en) Input method calling method and related device
WO2017143676A1 (en) Information interaction method and apparatus
WO2023185817A1 (en) Multi-device cooperation method and apparatus, and electronic device and medium
WO2016109944A1 (en) Method for presenting information on lock screen interface, information processing apparatus, portable electronic device and graphical user interface on portable electronic device
CA2808642C (en) Object mediated data transfer between electronic devices
WO2018119648A1 (en) Electronic apparatus and input control method
CN111511045B (en) Interaction method and device for mobile terminal and computer, electronic equipment and storage medium
WO2020238910A1 (en) Method for object selection and flexible terminal
WO2016070373A1 (en) Method for implementing synchronous preview display between mobile terminal and web terminal
CN113204302A (en) Operation method, device, equipment and storage medium based on virtual robot
US10038750B2 (en) Method and system of sharing data and server apparatus thereof
CN103533085A (en) Method and system for remotely controlling computer
CN108811177B (en) Communication method and terminal

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

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: 1205A, 15.10.2019

122 Ep: pct application non-entry in european phase

Ref document number: 16925039

Country of ref document: EP

Kind code of ref document: A1