Interaction processing method and electronic device

Through the interactive processing method, the interactive events of the input device are obtained, the operation intention is determined and converted into business events, which solves the problem of inconsistent response of the terminal device when using different input devices, and improves the user experience and development efficiency.

WO2024222159A1PCT designated stage expired Publication Date: 2024-10-31HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/077782
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-28
Filing Date
2024-02-20
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

When terminal devices use different input devices to control applications, it is difficult to accurately determine user needs, resulting in poor user experience. In addition, different terminal devices respond to input devices in different ways, affecting consistency.

Method used

Provide an interaction processing method that determines the operation intention by obtaining the interaction events generated by the input device, converts them into business events according to the current usage scenario, and performs corresponding operations to ensure the accuracy and consistency of the response.

Benefits of technology

It improves the user experience, ensures consistent response effects under different input devices and terminal devices, reduces the workload of developers, and enables interface adaptation without monitoring the input device interface.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024077782_31102024_PF_FP_ABST
    Figure CN2024077782_31102024_PF_FP_ABST
Patent Text Reader

Abstract

Provided are an interaction processing method and an electronic device, which relate to the technical field of terminals. An electronic device is capable of more accurately determining the intention of an interaction event generated by an input device in view of a current use scene, thereby responding more accurately and providing users with a better use experience. In the method, an electronic device obtains a first interaction event generated by a first input device, the first interaction event being generated according to a first trigger operation of a user on the first input device. The electronic device determines a first operation intention according to the first interaction event, the first operation intention being related to the first trigger operation. The electronic device determines, according to the first operation intention and the current use scene of the first device, a first intention corresponding to the first interaction event. The electronic device, according to the first intention, converts the first interaction event into a service event of a first service type, and executes a first response operation corresponding to the service event of the first service type.
Need to check novelty before this filing date? Find Prior Art

Description

Interactive processing method and electronic device

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on April 28, 2023, with application number 202310487536.X and application name “Interactive Processing Method and Electronic Device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of terminal technology, and in particular to an interactive processing method and electronic device. Background Art

[0003] Terminal devices can typically be connected to external input devices, such as a mouse, keyboard, headphones, and speakers. When it's inconvenient for a user to directly operate the terminal device, the user can control the application to implement the corresponding function by operating the input device. For example, after connecting a mobile phone to headphones, the user can operate the headphones, such as repeatedly tapping the outer part of the headphones or pressing buttons on the headphones, to control the music playing on the mobile phone's music application to pause, play, and switch to the next song.

[0004] Typically, applications respond to or process interface commands input from different input devices differently. Different applications may present or implement different functions for the same interface command. When users use different input devices to control applications, terminal devices often struggle to accurately determine the appropriate response to meet user needs, impacting the user experience.

[0005] Summary of the Invention

[0006] The embodiments of the present application provide an interaction processing method and an electronic device, which can more accurately determine the intention of the interaction event generated by the input device in combination with the current usage scenario, thereby responding more accurately and providing users with a better usage experience.

[0007] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:

[0008] In a first aspect, an interaction processing method is provided, which is applied to a first device, and the first device is connected to an input device. In this method, the first device obtains a first interaction event generated by the first input device, and determines a first operation intention based on the first interaction event. Afterwards, the first device determines the first intention corresponding to the first interaction event based on the first operation intention and the current usage scenario of the first device. Finally, the first device converts the first interaction event into a business event of a first business type based on the first intention, and executes a first response operation corresponding to the business event of the first business type. The first interaction event is generated based on a first trigger operation of the user on the first input device, and the first operation intention is related to the first trigger operation.

[0009] In some possible application scenarios, the current usage scenario of the first device may include an application usage scenario and a system usage scenario.

[0010] In the above method, the first device can generate the operational intention of the interaction event based on the current usage scenario and the input device, and more accurately determine the intention of the interaction event. The intention can also better match the current usage scenario or user needs. Accordingly, the first device will also make a more accurate response to the interaction event based on the intention, bringing a better usage experience to the user.

[0011] In addition, even if the input devices and / or input operations are different, if the intention of the generated interactive event is the same, the first device can also perform the same response operation. In the same usage scenario, the user can feel a consistent response effect, which will also bring a better user experience.

[0012] In one possible implementation of the first aspect, when the current usage scenario of the first device is an application usage scenario, the application does not monitor the first interaction event, that is, the application does not need to monitor the interface of the input device, nor does it need to adapt the application to different input devices, interaction events, etc., which can reduce the developer's workload.

[0013] In some possible application scenarios, when the first input device is a keyboard, if the operated object of the first trigger operation is the space key and the first trigger operation is a click, the first device determines that the first operation intention is target selection. When the first input device is a headset, if the operated object of the first trigger operation is the headset body and the first trigger operation is a click, the first device determines that the first operation intention is to pause playback.

[0014] In some possible application scenarios, when the first operation intention is target selection, if the current usage scenario of the first device is an application usage scenario, and the application is a video application, then the first intention is determined to be pausing playback. When the first operation intention is pausing playback, if the current usage scenario of the first device is an application usage scenario, and the application is a video application, then the first intention is determined to be pausing playback. And, in other possible application scenarios, when the first intention is pausing playback, the first device converts the first interaction event into a service event for pausing playback of the video content.

[0015] In one implementation of the first aspect, when the current usage scenario of the first device is an application usage scenario, the first device determines that the event type of the service event is an application service event, and controls the application to perform a first response operation corresponding to the service event. When the current usage scenario of the first device is a system usage scenario, the first device determines that the event type of the service event is a system service event, and controls the system service to perform the first response operation corresponding to the service event.

[0016] Among them, system services are services or functions provided by the framework layer of the electronic device, such as power management, volume management, photo taking, application program interface (API) services, etc.

[0017] In the above implementation, the business event responses for different event types are different. They can be responded to through an application or through a system service on the first device. Moreover, the event type of the business event is related to the usage scenario. It can be understood that the response to the business event matches the current usage scenario of the first device, and the response to the business event is more accurate.

[0018] In one possible implementation of the first aspect, a first device obtains a driving event generated by a first underlying driver, where the first underlying driver corresponds to a first input device. After the first input device generates an interrupt event in response to a first trigger operation, the first underlying driver receives the interrupt event and generates a driving event. The first device then uses an input component to perform normalized processing on the driving event to obtain a first interaction event that satisfies a preset condition. Satisfying the preset condition indicates that the first interaction event is a preset interaction event, such as a KeyEvent, a MouseEvent, or a TouchEvent.

[0019] In the above implementation, there is no need to monitor the interface of the input device, and the input events of the input device can be obtained from the underlying driver; and different input events can be converted into business events of corresponding business types according to the intent, that is, input events with the same intent are processed uniformly, and there is no need to adapt different input events separately, which can reduce the workload of developers.

[0020] In one implementation of the first aspect, when the first interaction event is generated based on a voice instruction input by the user on the first input device, the first device recognizes the semantic content in the voice instruction and determines the first intention corresponding to the first interaction event based on the semantic content.

[0021] In the above implementation, interaction events can be generated based on user actions (such as clicks, touches, gestures, etc.) or based on user voice content. Regardless of how the interaction events are generated, the interaction events can be converted into corresponding business events based on the intention. In addition, for interaction events with the same intention generated by different input devices or different trigger operations, the first device can execute the response operation corresponding to the same business event, bringing a better user experience to users.

[0022] In one possible implementation of the first aspect, a first device obtains a second interaction event generated by a second input device, determines a second operation intent based on the second interaction event, and determines a second intention corresponding to the second interaction event based on the second operation intent and a current usage scenario of the first device. Finally, the first device converts the second interaction event into a business event of a second business type based on the second intent, and executes a second response operation corresponding to the business event of the second business type.

[0023] The second interaction event is generated based on a second triggering operation of the user on the second input device, the second intention is related to the second triggering operation, and the first intention is the same as the second intention, the first service type is the same as the second service type, and the first response operation is the same as the second response operation.

[0024] In this implementation, the first device can perform the same response operation for interaction events of the same intention generated by different input devices, and the user can feel a consistent response effect, which brings a better user experience.

[0025] In one implementation method of the first aspect, when the current usage scenario of the first device is an application usage scenario and the application is shared on the second device, if a driving event generated by the first underlying driver is obtained, the first device shares the data information of the driving event with the second device, wherein the data information is used to instruct the second device to generate a first interaction event through a virtual device node, and determine the first intention corresponding to the first interaction event, and convert the first interaction event into a business event of a first business type according to the first intention, and control the application to execute a first response operation corresponding to the business event of the first business type, and the second device includes at least one virtual device node for representing an input device.

[0026] In the above implementation, the first device can not only transfer applications to the second device, but also transfer interaction events that control applications to the second device. In other words, the input device connected to the first device can also control applications on the second device, thereby providing users with more convenient device operation and improving the user experience. In addition, the interaction events generated by the input device can receive the same response on different receiving devices, allowing users to obtain the same operating experience when using the input device to control different devices.

[0027] In one possible implementation of the first aspect, the aforementioned first trigger operation or second trigger operation includes one or more of long pressing, clicking, touching, and sliding; the operated object includes one or more of the buttons, controls, and screens of the input device.

[0028] In one implementation of the first aspect, the framework layer of the first device includes a multi-mode input MMI module and a user interface development framework ArkUI module. The first device can use the MMI module to obtain the first interaction event generated by the first input device, and use the MMI module to determine the first operation intention based on the first interaction event. The first device also uses the ArkUI module to obtain the current usage scenario of the first device, and uses the ArkUI module to determine the first intention corresponding to the first interaction event based on the first operation intention and the current usage scenario of the first device. The first device also uses the ArkUI module to convert the first interaction event into a business event of the first business type according to the first intention, and uses the ArkUI module to execute the first response operation corresponding to the business event of the first business type.

[0029] The above content takes the process of the first device processing the first interaction event generated by the first input device as an example to illustrate the interaction processing method provided in this application. In some other possible implementation methods, the process of the second device processing the second interaction event generated by the second input device can also refer to the aforementioned implementation method, which will not be repeated here.

[0030] In a second aspect, an electronic device is provided, which includes a memory and one or more processors; the memory is coupled to the processor; wherein computer program code is stored in the memory, and the computer program code includes computer instructions, and when the computer instructions are executed by the processor, the electronic device executes the interactive processing method as in the first aspect and any implementation thereof.

[0031] In a third aspect, a computer-readable storage medium is provided, comprising computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the interactive processing method as in the first aspect and any implementation thereof.

[0032] In a fourth aspect, a computer program product is provided. When the computer program product is run on a computer, the computer is caused to execute the interactive processing method in the first aspect and any implementation manner thereof.

[0033] It can be understood that the beneficial effects that can be achieved by the electronic device described in the second aspect, the computer-readable storage medium described in the third aspect, and the computer program product described in the fourth aspect can be referred to the beneficial effects in the first aspect and any possible design method thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] FIG1 is a schematic diagram 1 of an interactive system according to an embodiment of the present application;

[0035] FIG2 is a second schematic diagram of an interactive system according to an embodiment of the present application;

[0036] FIG3 is a first structural diagram of an electronic device according to an embodiment of the present application;

[0037] FIG4 is a second structural diagram of an electronic device according to an embodiment of the present application;

[0038] FIG5 is a first schematic diagram of event processing shown in an embodiment of the present application;

[0039] FIG6 is a second schematic diagram of event processing shown in an embodiment of the present application;

[0040] FIG7 is a flow chart of an interactive processing method according to an embodiment of the present application;

[0041] FIG8 is a first schematic diagram of obtaining an interaction event according to an embodiment of the present application;

[0042] FIG9 is a second schematic diagram of obtaining an interaction event according to an embodiment of the present application;

[0043] FIG10 is a first schematic diagram of executing a business event according to an embodiment of the present application;

[0044] FIG11 is a second schematic diagram of executing a business event according to an embodiment of the present application;

[0045] FIG12 is a third structural diagram of an electronic device shown in an embodiment of the present application. DETAILED DESCRIPTION

[0046] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the present application, unless otherwise specified, " / " indicates that the objects associated before and after are in an "or" relationship. For example, A / B can represent A or B; "and / or" in the present application is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. Those skilled in the art will understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit differences. At the same time, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way for easy understanding.

[0047] In addition, the business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field can know that with the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0048] Users can use applications on terminal devices to meet their entertainment needs or usage needs. For example, users can listen to music, radio, etc. on the music application of the mobile phone, and users can also watch TV series, movies, etc. on the video application of the mobile phone. The terminal device can usually be connected to some external input devices, such as a mouse, keyboard, headphones, speakers, etc. When it is inconvenient for the user to directly operate the terminal device, the user can control the application to implement the corresponding function by operating the input device. For example, after the mobile phone is connected to the headphones, the user can operate the headphones, such as tapping the outer part of the headphones or pressing the buttons on the headphones, etc., to control the music being played on the mobile phone music application to pause, play, switch to the next song, etc.

[0049] The application on the terminal device monitors the interface to obtain the instructions generated by the user's input device, and then responds to the interface instructions to implement the corresponding function. Among them, the interface instructions can be generated when the user uses the keyboard, mouse, headphones, etc. to select to play music, play video, pause music, or pause video.

[0050] However, after each application monitors the command through the interface, the way it responds to or processes the command is usually different. When the user uses different input devices to control the application, it is usually difficult for the terminal device to accurately determine what response needs to be made to meet the user's needs, thus affecting the user's experience.

[0051] For example, when users use different input devices to control applications, they may experience different functions within the same application for the same intended trigger operation performed on different input devices. Furthermore, different applications may present different functions or implement different functions for the same trigger operation. This can lead to different user experiences and confusion or jumbled functionality when users use different applications for the same trigger operation on the input device.

[0052] Furthermore, because the interfaces for connecting input devices may be inconsistent or different between different terminal devices, the same application may generate different functions for the same input device commands on different terminal devices. When users use the same application on different terminal devices, the same triggering operation on the input device may also produce different user experiences and may also experience confusing or cluttered functions.

[0053] Based on the above, an embodiment of the present application provides an interaction processing method, in which an electronic device obtains a first interaction event generated by a first input device and determines a first operation intention based on the first interaction event. Thereafter, the electronic device determines the first intention corresponding to the first interaction event based on the first operation intention and the current usage scenario of the electronic device. Finally, the electronic device converts the first interaction event into a business event of a first business type based on the first intention and executes a first response operation corresponding to the business event of the first business type.

[0054] The above-mentioned first interaction event is generated according to the first trigger operation of the user on the first input device, and the first intention is related to the first trigger operation.

[0055] In the above-mentioned interaction processing method, the electronic device can generate the operational intention of the interaction event based on the current usage scenario and the input device, and more accurately determine the intention of the interaction event, so that the intention can better match the current usage scenario or user needs. Accordingly, the electronic device will also make a more accurate response to the interaction event, bringing a better usage experience to the user.

[0056] In addition, even if the input devices and / or input operations are different, if the intention of the generated interactive events is the same, the electronic device can perform the same response operation. In the same usage scenario, the user can feel a consistent response effect, which will also bring a better user experience.

[0057] The interaction processing method provided in the embodiment of the present application can be applied to an interactive system. As shown in Figure 1, the interactive system includes an electronic device 100 and at least one input device 200, wherein a wired connection or a wireless connection can be established between the electronic device 100 and the input device 200. The electronic device 100 can receive interaction events generated by different input devices 200, or receive different interaction events generated by the same input device 200, and can perform the same response operation for interaction events with the same intention.

[0058] Among them, interactive events refer to events generated by the electronic device based on the triggering operation performed by the user on the input device 200, while business events refer to events that have been pre-classified as business events in the electronic device 100. The electronic device 100 can directly respond to or execute business events.

[0059] It is understandable that the intention of the interaction event is related to the triggering operation generated by the user on the input device 200. Different interaction events may correspond to the same or different intentions, and multiple interaction events with the same intention correspond to business events of the same business type.

[0060] In some embodiments, the electronic device 100 may be a terminal device such as a mobile phone, laptop, personal computer, tablet computer, projector, etc. The input device 200 may be a device with input and control functions such as a keyboard, mouse, game controller, headset, Bluetooth headset, touch screen, joystick, virtual reality device, etc.

[0061] When the electronic device 100 is a mobile phone and the input device 200 is a keyboard, the user clicking the "space" key on the keyboard can be regarded as a trigger operation performed by the user. The keyboard will generate an interrupt event or input event in response to the user clicking the "space" key. After the mobile phone receives the event, it will convert the event into interaction event 1. If, in the current usage scenario of the electronic device 100, the user's intention of clicking the "space" key is to pause playback, then the mobile phone will convert the interaction event 1 into a "pause playback" service event based on the user's intention of clicking the "space" key. The mobile phone will then respond to the "pause playback" service event to temporarily stop playing the current audio or video. If, in the current usage scenario of the electronic device 100, the user's intention of clicking the "space" key is to select a target, then the mobile phone will convert the interaction event 1 into a "select" service event based on the user's intention of clicking the "space" key. The mobile phone will then respond to the "select" service event to select the currently displayed content.

[0062] When the electronic device 100 is a mobile phone and the input device 200 is a headset, a user clicking on the body of one headset can be regarded as a trigger operation performed by the user. The headset will generate an interrupt event or input event in response to the user clicking on the headset body. After the mobile phone receives the event, it will convert the event into interaction event 2. If, in the current usage scenario of the electronic device 100, the user's intention of clicking on the headset body is to pause playback, then the mobile phone will convert the interaction event 2 into a "pause playback" service event based on the user's intention of clicking on the headset body. The mobile phone will then respond to the "pause playback" service event to temporarily stop playing the current audio or video, etc. If, in the current usage scenario of the electronic device 100, the user's intention of clicking on the headset body is to select a target, then the mobile phone will convert the interaction event 2 into a "select" service event based on the user's intention of clicking on the headset body. The mobile phone will then respond to the "select" service event to select the currently displayed content, etc.

[0063] In some embodiments, the above usage scenario may be determined by the content of the window currently running on the electronic device 100. For example, if the window content currently running on the electronic device 100 is the interface of a music application, then the current usage scenario is the music application usage scenario. In this scenario, the user's intention of clicking the "space" button may be to pause the music. If the window content currently running on the electronic device 100 is the system desktop, then the current usage scenario is the system usage scenario. In this scenario, the user's intention of clicking the "space" button may be to select the content displayed on the desktop.

[0064] In some embodiments, the input device 200 generates a hardware interrupt event in response to a user's trigger operation. The underlying driver of the electronic device 100 obtains the hardware interrupt event and generates a drive event. The electronic device 100 then performs standardization processing on the drive event to obtain an interaction event that meets preset conditions. Among them, meeting the preset conditions means that the operation mode of the trigger operation corresponding to the interaction event is the preset operation mode. For example, the interaction event is a key event KeyEvent, a mouse event MouseEvent, a touch event TouchEvent, etc. that the electronic device 100 can process and respond to.

[0065] In some embodiments, as shown in FIG2 , the electronic device 100 in the interactive system may further include a first device 101 and a second device 102. A communication connection is established between the first device 101 and the second device 102, and a wired or wireless connection is established between the input device 200 and the first device 101.

[0066] The first device 101 and the second device 102 can share content, such as shared applications, shared data, etc. Sharing methods include but are not limited to screen casting, keyboard and mouse traversal, etc.

[0067] Taking the first device 101 sharing the target application to the second device 102 as an example, the window contents currently running in the first device 101 and the second device 102 are both target applications, or the current usage scenarios of the first device 101 and the second device 102 are both application usage scenarios.

[0068] When a user performs a trigger operation on input device 200, the first device 101 receives a corresponding drive event. After the first device 101 receives the drive event generated by the underlying driver, it synchronizes the relevant data or related information of the drive event to the second device 102. The second device 102 then generates a corresponding interaction event on the virtual device node of the second device 102 based on the relevant data or related information of the drive event, causing the virtual device node to simulate the action or operation of the input device, allowing the second device 102 to receive the corresponding interaction event. The second device then converts the interaction event into a business event of the corresponding business type and controls the target application to perform the response operation indicated by the business event. This solution not only allows the target application on the first device 101 to be transferred to other devices, but also allows the interaction events that control the target application on the first device 101 to be transferred to other devices. The input device connected to the first device 101 can also control the target application on the second device 102, thereby providing users with a more convenient device operation method and improving the user experience.

[0069] In addition, the second device 102 can also convert the interaction event into a business event of the corresponding business type according to the intent. In this way, the interaction event generated by the input device can obtain the same response on different receiving devices (such as the first device, the second device, etc.), allowing the user to obtain the same operating experience when using the input device to control different electronic devices.

[0070] In some embodiments, the second device may include at least one virtual device node. The virtual device node may correspond to an input device connected to the first device. When a user operates on the input device, the virtual device node may simulate or generate the same operation.

[0071] When the interaction processing method in the embodiment of the present application is implemented based on the above-mentioned interaction system, the electronic device can generate the operational intention of the interaction event according to the current usage scenario and the input device, and more accurately determine the intention of the interaction event. The intention can also better match the current usage scenario or user needs. Accordingly, the electronic device will also make a more accurate response to the interaction event based on the intention, bringing a better usage experience to the user.

[0072] Taking the electronic device being a mobile phone as an example, FIG3 shows a first structural diagram of the electronic device.

[0073] As shown in Figure 3, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0074] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0075] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

[0076] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution. The processor 110 can also be provided with a memory for storing instructions and data.

[0077] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.

[0078] The USB interface 130 is an interface that complies with USB standards, and may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transfer data between the electronic device 100 and peripheral devices.

[0079] In some embodiments, the USB interface 130 can also be connected to input devices, such as headphones, keyboards, mice, joysticks, controllers, AR devices, etc.

[0080] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.

[0081] The charging management module 140 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. While charging the battery 142, the charging management module 140 can also power the electronic device through the power management module 141. The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 and powers the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, and the wireless communication module 160.

[0082] The wireless communication function of the electronic device 100 can be implemented by antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.

[0083] The mobile communication module 150 can provide wireless communication solutions, including 2G / 3G / 4G / 5G, for use in the electronic device 100. The mobile communication module 150 can receive electromagnetic waves via antenna 1, filter, amplify, and perform other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor and convert them into electromagnetic waves for radiation via antenna 1. The modem processor can include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium- or high-frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs audio signals through an audio device or displays images or videos on the display screen 194.

[0084] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., applied to the electronic device 100. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and filters it, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of the signal, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0085] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with a network and other devices through wireless communication technologies. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0086] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.

[0087] Display screen 194 is used to display images, videos, etc. Electronic device 100 can implement a camera function using an ISP, camera 193, a video codec, a GPU, display screen 194, and an application processor. The ISP processes data fed back by camera 193. Camera 193 is used to capture still images or videos. The video codec compresses or decompresses digital video.

[0088] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.

[0089] The internal memory 121 may be used to store computer executable program codes, which include instructions. The processor 110 executes the instructions stored in the internal memory 121 to execute various functional applications and data processing of the electronic device 100.

[0090] In some embodiments, the processor 110 executes instructions stored in the internal memory 121 to obtain interaction events generated by the input device and the intent of the interaction events, and converts the interaction events into business events of the corresponding business types based on the intent of the interaction events. Finally, the processor 110 executes the corresponding response operations of the business events by executing the instructions stored in the internal memory 121.

[0091] In other embodiments, the processor 110 shares the target application on other electronic devices by running instructions stored in the internal memory 121, and shares the data information of the driving event with other electronic devices after obtaining the driving event generated by the underlying driver. The processor 110 of the other electronic device can control the virtual device node to generate corresponding interaction events according to the data information of the driving event by running the instructions stored in the internal memory 121, and convert the interaction event into a business event of the corresponding business type according to the intention of the interaction event. Finally, the processor 110 of the other electronic device controls the target application to execute the response operation corresponding to the business event by running the instructions stored in the internal memory 121.

[0092] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170 and an application processor. The audio module 170 is used to convert digital audio information into analog audio signal output and also to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110.

[0093] In some embodiments, the electronic device can also be connected to an input device such as a wired headset through the headset jack 170D. The headset jack 170D can be a USB port 130, or a 3.5mm Open Mobile Terminal Platform (OMTP) standard port or a Cellular Telecommunications Industry Association of the USA (CTIA) standard port.

[0094] Buttons 190 include a power button and a volume button. They can be mechanical or touch-sensitive. Motor 191 can generate vibrations for incoming calls and touch vibration feedback. Indicator 192 can be an indicator light that indicates charging status, battery level, messages, missed calls, and notifications. A SIM card interface 195 connects to a SIM card.

[0095] In some embodiments, the wireless connection between the electronic device and the input device can be a Bluetooth connection, a hotspot connection, a Wi-Fi connection, an NFC connection, etc., which is not specifically limited in the embodiments of the present application.

[0096] When the interaction processing method in the embodiment of the present application is implemented based on the above-mentioned electronic device, the electronic device can generate the operational intention of the interaction event according to the current usage scenario and the input device, and more accurately determine the intention of the interaction event. The intention can also better match the current usage scenario or user needs. Accordingly, the electronic device will also make a more accurate response to the interaction event based on the intention, bringing a better usage experience to the user.

[0097] Furthermore, electronic devices can not only transfer target applications to other devices, but also transfer interaction events that control target applications to other devices. This means that input devices connected to electronic devices can also control target applications on other devices, providing users with more convenient device operation and an improved user experience. Furthermore, interaction events generated by input devices can receive the same response on different receiving devices, allowing users to enjoy the same operational experience when using input devices to control different electronic devices.

[0098] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the layered architecture shown in FIG4 as an example to exemplify the software structure of the electronic device 100.

[0099] As shown in Figure 4, the layered architecture divides software into several layers, each with a clear role and division of labor. Layers communicate with each other via software interfaces. In some embodiments, the software structure of electronic device 100 is divided into four layers: application layer, application framework layer, system library layer, and kernel layer, from top to bottom.

[0100] The application layer can include a series of application packages.

[0101] As shown in FIG4 , the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.

[0102] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0103] As shown in FIG4 , the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.

[0104] In some embodiments, the application framework layer may further include a first intent processing module, a second intent processing module, and the like.

[0105] In some possible application scenarios, the first intent processing module may be a multi-modal input (MMI) module, also known as a multi-mode module; the second intent processing module may be a Hongmeng The system provides user interface (UI) development framework ArkUI, etc.

[0106] The window manager manages windowed applications. It can retrieve the display size, lock the screen, and take screenshots. Furthermore, it can retrieve the content of the currently running window on the electronic device—that is, the content displayed in the foreground, such as application content, desktop content, and system settings interfaces. Applications can be pre-installed system applications or third-party applications installed on the electronic device.

[0107] It is understandable that the content displayed in the background of the electronic device is not included in the window content. The window manager will only obtain the window content after the content displayed in the background of the electronic device is switched to the foreground display.

[0108] The first intent processing module is primarily responsible for receiving underlying driver events, standardizing them, obtaining interaction events, and performing intent normalization on these interaction events. The second intent processing module is primarily responsible for further processing the events received by the first intent processing module, including intent recognition, intent normalization, and event conversion, to obtain business events that match the current usage scenario of the electronic device.

[0109] Taking the above-mentioned first intent processing module as an example, as shown in (a) of Figure 5, the main processing flow of the MMI module includes: 1. An interrupt event is triggered by an input device such as a keyboard, mouse, or touch screen, and the interrupt event is reported to the input component libinput through a driver. libinput standardizes the interrupt events of different input devices into interaction events defined by libinput; 2. The interaction events of libinput are further standardized and abstracted into key events KeyEvent, mouse events MouseEvent, touch events TouchEvent, etc. that are ultimately needed through the event standardization module, where KeyEvent, MouseEvent, and TouchEvent can represent preset events or preset interaction events; 3. After obtaining the KeyEvent, MouseEvent, and TouchEvent, the intent recognition module in the MMI module converts the event into a corresponding business event according to the intent of the event, that is, adds an intent field to the attributes of the KeyEvent, MouseEvent, and TouchEvent, without modifying other attributes of the event; 4. A series of processes are performed in sequence, including event filter, event interceptor, system combination key subscription, combination key monitoring, and event monitor, and the event is distributed to the second intent processing module after processing.

[0110] Among them, standardization is a common processing process, the purpose of which is to process or modify the underlying driving events into events that comply with unified coding standards and can be recognized and processed by electronic devices.

[0111] In some embodiments, the above-mentioned intention recognition module can identify the intention of the interaction event generated by the input device obtained by the electronic device. Specifically, when the user performs a trigger operation on the input device, the electronic device can obtain the interaction event accordingly. The intention of the interaction event is related to the purpose of the triggering operation. The intention recognition module can also identify the intention of the interaction event based on the operation information of the triggering operation. Among them, the operation information of the triggering operation may include one or more of the operation method, operation duration, and the operated object, and the operation method of the triggering operation may include long pressing, clicking, dragging, etc. The operated object may include buttons, controls, etc. on the input device.

[0112] Taking the above-mentioned second intention processing module as an example, which is the ArkUI module, as shown in (b) in Figure 5, after the interaction event is processed by the MMI module, the MMI module can obtain the operational intention of the interaction event. Afterwards, the ArkUI module combines the operational intention and the window content obtained by the window manager to further determine the final intention of the interaction event. Among them, the final intention may refer to the intention determined by the ArkUI module in combination with the current usage scenario of the electronic device, and the operational intention refers to the intention determined by the intention recognition module only for the input device. The current usage scenario of the electronic device is related to the window content.

[0113] After determining the final intent of the interaction event, the ArkUI module converts the interaction event into a business event of the business type that matches the final intent. In electronic devices, different interaction events can correspond to the same or different intents, and multiple interaction events with the same intent correspond to business events of the same business type.

[0114] The ArkUI module's process of determining the final intent and converting interaction events into business events of the target business type can also be considered as further standardization of interaction events. The final business event can also be an event for executing an action such as a click, long press, or swipe. The ArkUI module primarily supplements and improves the interaction events obtained in the MMI module.

[0115] Also, in some possible application scenarios, the ArkUI module can determine the event type of the business event based on the current usage scenario of the electronic device. Since the window content of the electronic device is related to the current usage scenario, the ArkUI module can also determine the event type of the business event based on the window content of the electronic device. For example, when the window content is application content, the usage scenario is the application usage scenario, and the business event is the application business event; and when the window content is system content, the usage scenario is the system usage scenario, and the business event is the system business event. For application business events, the ArkUI module can also determine which control or controls of the target application will execute the application business event, and determine the operation method for executing the business event based on the control properties and control type of the target application that executes the event, so that the controls of the target application naturally support the interactive events of the input device.

[0116] In the embodiments of the present application, the intent of the controls in the application is not open to application customization, that is, specific business events are not configured for controls in specific applications. The business events corresponding to the controls can basically meet the application's requirements. If there are situations where the application's requirements are not met, the default implementation corresponding to the controls can be extended to expand the scope of the business events corresponding to the controls. In addition, if specific business events are configured for controls in a specific application, then when the same business event is responded to by different controls, inconsistent user experience will occur, such as inconsistent zooming in and out effects of images in different applications. In addition, if specific business events are configured for controls in a specific application, it will be difficult for developers to understand the scope of business events supported by different controls, which will cause confusion for developers. In addition, the business events in the embodiments of the present application are different from general events and do not have a bubbling routing mechanism. If an application blocks an event, it will not be passed upward, which will also cause confusion for developers. In addition, in certain special scenarios, if an application control or function does not want to be implemented or executed by a business event, it can be controlled by opening a property interface with clear business names. For example, if a text box in an application does not support copying, it can be disabled by methods such as disableCopyAbility.

[0117] In some embodiments, the event processing module in the ArkUI module can determine how to execute the response operation corresponding to the business event based on the event type of the business event. If the business event is an application business event, the corresponding target application is controlled to execute the response operation corresponding to the business event, such as controlling the music application to increase the music volume, etc. If the business event is a system business event, the system service of the electronic device executes the response operation corresponding to the business event, wherein the system service is a service or function provided by the framework layer of the electronic device, such as power management, volume management, taking pictures, API services, etc.

[0118] The content provider is used to store and retrieve data and make it accessible to applications. This data can include video, images, audio, incoming and outgoing calls, browsing history and bookmarks, and the phone book. The view system includes visual controls, such as those for displaying text and images. The call manager provides communication functions for electronic devices, such as managing call status (including connected and disconnected calls). The resource manager provides applications with various resources, such as localized strings, icons, images, layout files, and video files. The notification manager enables applications to display notifications in the status bar. These messages can be used to convey informational messages and can disappear automatically after a short pause, without requiring user interaction. For example, the notification manager is used to notify users of completed downloads and message reminders. The notification manager can also display notifications in the system's top status bar in the form of icons or scrolling text, such as notifications from background applications, or in the form of dialog windows. Examples include displaying text messages in the status bar, emitting alert sounds, vibrating the electronic device, or flashing indicator lights.

[0119] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0120] The surface manager manages the display subsystem and provides fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of various common audio and video formats, as well as still image files. The 3D graphics library implements 3D graphics drawing, image rendering, compositing, and layer processing. The 2D graphics engine is the drawing engine for 2D drawing.

[0121] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.

[0122] In some embodiments, when an electronic device is connected to a hardware input device such as a mouse, keyboard, touch screen, or joystick, the kernel layer may also include hardware drivers such as a mouse driver, keyboard driver, touch screen driver, and joystick driver. The hardware driver is used to generate corresponding driver events when the hardware input device is operated by the user.

[0123] In some embodiments, the mobile phone can also convert the interaction event into a business event according to the intention of the interaction event based on the file configuration method. Among them, the identification method of the interaction event can be directly configured in the configuration file, that is, the interaction event is determined according to the operated object, operation method, etc. on the input device. In addition, the event conversion method can also be configured in the configuration file, that is, the business event is determined on the ArkUI side based on the interaction events and usage scenarios of the specific intentions preliminarily mapped on the MMI side. In this way, it is possible to quickly adapt the intentions of the interaction events of different input devices on the MMI side, and quickly match the interaction events on the MMI side to business events on the ArkUI side, and perform conversions in different scenarios at the same time, greatly reducing the difficulty of framework adaptation of the device.

[0124] When the interactive processing method in the embodiment of the present application is implemented based on the above-mentioned electronic device, the MMI module in the electronic device can obtain the driving event from the underlying hardware driver and standardize the driving event into an interactive event. Afterwards, the MMI module identifies the intention of the interactive event and sends the intention to the ArkUI module. The ArkUI module combines the intention and the window content (or usage scenario) obtained by the window manager to further determine the final intention of the interactive event, and the ArkUI module can also convert the interactive event into a business event of a business type that matches the final intention. Finally, the ArkUI module executes the response operation corresponding to the business event.

[0125] It can be seen that electronic devices can generate the operational intention of interactive events based on the current usage scenario and input device, and more accurately determine the intention of interactive events. The intention can also better match the current usage scenario or user needs. Accordingly, electronic devices will also make more accurate responses to interactive events based on the intention, bringing users a better usage experience.

[0126] In some possible application scenarios, the first device can also share the target application with the second device, so that the user can also view the content of the target application on the second device. Furthermore, the user can also control the target application displayed on the second device to perform corresponding operations using an input device connected to the first device. In this case, the software architecture of both the first and second devices is shown in Figure 4.

[0127] Alternatively, in some other possible application scenarios, the software structure of the first device and the second device may also include, for example, Hongmeng The distributed hardware framework, distributed database and other distributed structures provided by the system are specifically shown in Figure 6. Since both the first device and the second device have the distributed structure shown in Figure 6, the first device and the second device can share data and information based on the distributed structure.

[0128] The first device projects the display target application onto the second device, and the first device obtains an interrupt event or a drive event from the entity's device node or driver, where the device node corresponds to the input device connected to the first device. The first device shares the data information of the drive event with the second device through the above-mentioned distributed structure, and the second device controls the virtual device node based on the data information to generate a corresponding interaction event, thereby simulating the action of the input device. Thereafter, the second device obtains the interaction event again, and converts the interaction event into a business event of the corresponding business type according to the intention of the interaction event, and then controls the currently displayed target application to execute the response operation corresponding to the business event.

[0129] In the application scenario shown in Figure 6, a user can control a target application displayed on a second device using an input device connected to a first device. This provides users with a more convenient way to operate devices and improves their user experience. Furthermore, interaction events generated by the input device receive the same response on both the first and second devices, controlling the target application to achieve the same functionality. This allows users to experience the same operational experience when using input devices to control different electronic devices.

[0130] The following describes the interaction processing method provided in the embodiment of the present application by taking a mobile phone as an example. Referring to FIG7 , the interaction processing method may include the following steps S701-S704.

[0131] S701: The mobile phone obtains a first interaction event generated by a first input device.

[0132] The first interaction event represents an event generated by the first input device in response to a first trigger operation by the user. The first trigger operation on the input device may include one or more of a long press, a click, a touch, and a slide. The first trigger operation may be a single-point action, a multi-point action, or a gesture. The object operated by the user on the first input device may include one or more of a button, a control, and a screen.

[0133] In some possible application scenarios, a mobile phone can be connected to multiple input devices. When a user performs a trigger operation on different input devices, the input devices generate different interaction events. For example, a first input device generates a first interaction event, and a second input device generates a second interaction event. The first trigger operation corresponding to the first interaction event and the second trigger operation corresponding to the second interaction event can be the same or different.

[0134] For example, as shown in FIG8(a), when the first input device is a keyboard, the user wants to control the phone via the keyboard, and the user can click a key on the keyboard. At this time, the phone will receive a first interaction event generated by the keyboard. Alternatively, as shown in FIG8(b), when the second input device is a touch screen, the user wants to control the phone via the touch screen, and the user can draw a specified gesture on the touch screen. At this time, the phone will receive a second interaction event generated by the touch screen.

[0135] It is understandable that when an input device responds to a user's triggering operation, it generates a hardware interrupt event (or hardware interrupt signal). The underlying driver installed in the mobile phone receives the corresponding hardware interrupt event and reports it to other modules in the mobile phone for intent recognition and processing. In the process of reporting the hardware interrupt event, the underlying driver generates a corresponding driver event. Only after the other modules in the mobile phone standardize the driver event can they obtain the interaction event generated by the input device.

[0136] S702: The mobile phone determines a first operation intention according to the first interaction event.

[0137] The first operation intention is related to the first triggering operation generated by the user on the first input device. Different interaction events can correspond to the same or different operation intentions. In addition, the operation intention of the interaction event is also related to the type of input device corresponding to the triggering operation, the object being operated, etc.

[0138] For example, the trigger operations generated on the first input device and the second input device are different, and the first operation intention corresponding to the first interaction event and the second operation intention corresponding to the second interaction event may be different; the trigger operations generated on the first input device and the second input device are the same, but the operated objects are different, and thus the first operation intention corresponding to the first interaction event and the second operation intention corresponding to the second interaction event may be different; the trigger operations generated on the first input device and the second input device are the same, and the operated objects are also the same, and the first operation intention corresponding to the first interaction event and the second operation intention corresponding to the second interaction event may be the same.

[0139] Based on this, in some embodiments, the mobile phone may first obtain operation information that triggers the operation. The operation information includes one or more of the operation method, operation duration, and the operated object. The mobile phone then determines the first operation intention corresponding to the first interaction event based on the operation method, operation duration, one or more of the operated objects, and the type of input device.

[0140] It is understandable that the operation intention of the interaction event is related to the input device, but has nothing to do with the current usage scenario of the mobile phone (or the currently running window content).

[0141] Exemplarily, the first input device is a keyboard. For the keyboard, when the user clicks the "space" button on the keyboard, the corresponding operation intention is to select a certain content on the mobile phone; when the user clicks the "←" button on the keyboard, the corresponding operation intention is to select forward; when the user clicks the "→" button on the keyboard, the corresponding operation intention is to select backward; when the user clicks the "↑" button on the keyboard, the corresponding operation intention is to select upward; when the user clicks the "↓" button on the keyboard, the corresponding operation intention is to select downward.

[0142] Alternatively, the first input device is a remote control. For the remote control, when the user clicks the "OK" button on the remote control, the corresponding operation intention is to select a certain content on the mobile phone; when the user clicks the "←" button on the remote control, the corresponding operation intention is to select forward; when the user clicks the "→" button on the remote control, the corresponding operation intention is to select backward; when the user clicks the "↑" button on the remote control, the corresponding operation intention is to select upward; when the user clicks the "↓" button on the remote control, the corresponding operation intention is to select downward.

[0143] Alternatively, the first input device is a headset. For the headset, the user long presses the volume "+" button on the headset, and the corresponding operation intention is to increase the volume of the mobile phone.

[0144] S703: The mobile phone determines, based on the first operation intention and the current usage scenario of the mobile phone, that the first interaction event corresponds to the first intention.

[0145] The first intention is the final intention determined by the mobile phone for the first interaction event. The first intention is not only related to the input device (ie, the above-mentioned operation information), but also related to the current usage scenario of the mobile phone (or the currently running window content).

[0146] The final intents corresponding to different interaction events can be the same or different. For example, the first intent corresponding to the first interaction event and the second intent corresponding to the second interaction event can be the same or different. This depends not only on the first input device and the second input device, but also on the first triggering operation and the second triggering operation, as well as the current usage scenario of the phone.

[0147] Based on this, in some embodiments, the mobile phone may first obtain the content of the currently running window, determine the current usage scenario based on the window content, and then determine the final intention of the interaction event in combination with the operation intention and the usage scenario. For example, for the first input device, the mobile phone determines the first intention corresponding to the first interaction event in combination with the first operation intention and the usage scenario; for the second input device, the mobile phone determines the second intention corresponding to the second interaction event in combination with the second operation intention and the usage scenario. Finally, the mobile phone converts the interaction event into a business event of the target business type that matches the final intention. For example, the first interaction event is converted into a business event of the first business type that matches the first intention, and the second interaction event is converted into a business event of the second business type that matches the second intention.

[0148] It is understandable that the content of the window currently running on the mobile phone can reflect the current usage scenario of the mobile phone. In the embodiment of the present application, the usage scenario of the mobile phone can include application scenario and system scenario, wherein the application scenario indicates that the window content of the mobile phone is the content of a certain application on the mobile phone, or indicates that a certain application on the mobile phone is being used or running in the foreground. The application content may include one or more of video content, music content, and picture content; while the system scenario indicates that the window content of the mobile phone is other content besides the application content, such as the mobile phone desktop, the mobile phone system settings page, etc. This scenario can also indicate that the application on the mobile phone is running in the background.

[0149] The final intention determined by the mobile phone based on the operation intention and the usage scenario can better match the current usage scenario of the mobile phone. In other words, the intention of the interaction event determined is more accurate when taking into account the usage scenario of the mobile phone.

[0150] It is understandable that the final intention determined by the mobile phone based on the usage scenario may be the same as or different from the previously determined operation intention.

[0151] For example, when a video application is running in the foreground of the phone, if the user clicks the "space" button on the keyboard, the corresponding intention is no longer to select, but to pause / play; if the user clicks the "←" button on the keyboard, the corresponding intention is no longer to select forward, but to rewind; if the user clicks the "→" button on the keyboard, the corresponding intention is no longer to select backward, but to fast forward; or, if the user long presses the volume "+" button on the headset, the corresponding intention is no longer to increase the volume, but to fast forward.

[0152] However, when the user clicks the "OK" button on the remote control, the corresponding intention is still to select a certain content on the mobile phone; when the user clicks the "←" button on the remote control, the corresponding intention is still to select forward; when the user clicks the "→" button on the remote control, the corresponding intention is still to select backward.

[0153] S704: The mobile phone converts the first interaction event into a business event of the first business type according to the first intention, and executes a first response operation corresponding to the business event of the first business type.

[0154] In some embodiments, the mobile phone pre-stores multiple pre-configured business events of various business types. Business events of the same business type have a unified encoding method or the same configuration file. Furthermore, multiple interaction events with the same ultimate intent correspond to a single business event of the same business type.

[0155] For example, service types can include pause / play, volume increase / decrease, return, previous / next episode, fast forward / rewind, etc. When a mobile phone is playing a video, the first intention of the first interaction event generated by the keyboard in response to the user clicking the "space" key and the second intention of the second interaction event generated by the headset in response to a single user click or a single click of the headset are the same, both indicating pausing or playing the video. In this case, the mobile phone can convert both the first interaction event and the second interaction event into service events with the service type of "pause / play".

[0156] The mobile phone can unify multiple interaction events with the same final intent into one business event, or convert interaction events into business events of the corresponding business type based on the final intent. It can convert interaction events into business events that the mobile phone can uniformly recognize and process. For interaction events with the same final intent generated by different input devices, the mobile phone can execute the response operation indicated by the same business event (or execute the same response operation), bringing a better user experience.

[0157] In some possible application scenarios, the input device connected to the mobile phone may also support the voice control function. That is, as shown in Figure 9, the user can control the mobile phone to perform the corresponding operation by inputting voice instructions to the above-mentioned first input device. In this case, the first interaction event generated by the first input device is generated according to the voice instruction input by the user on the first input device. At this time, the mobile phone can recognize the semantic content in the voice instruction and determine the first intention of the first interaction event based on the recognized semantic content. It can be seen that the interaction event in the embodiment of the present application can be generated according to the user's action (such as click, touch, gesture, etc.) or according to the user's voice content. Regardless of how the interaction event is generated, the interaction event can be converted into a corresponding business event according to the final intention, and for interaction events with the same final intention, the mobile phone can execute the response operation indicated by the same business event, bringing a better user experience to the user.

[0158] Still taking the above-mentioned first input device and second input device as an example, after the first interaction event generated by the first input device is converted into a business event of the first business type, the mobile phone executes a first response operation corresponding to the business event; after the interaction event generated by the second input device is converted into a business event of the second business type, the mobile phone executes a second response operation corresponding to the business event.

[0159] In some embodiments, when the mobile phone executes a response operation corresponding to a business event, it can further determine the event type of the business event based on the window content, where the event type of the business event includes application business events and system business events, and application business events represent events executed by applications, and system business events represent events executed by system services.

[0160] In some possible application scenarios, when the window content is application content, the mobile phone may determine that the service event is an application service event. When the window content is system content, the mobile phone may determine that the service event is a system service event.

[0161] It is understandable that the above applications can be system applications or installed third-party applications on the mobile phone, such as call applications, camera applications, music applications, video applications, etc. This is not specifically limited in the embodiments of the present application.

[0162] Furthermore, in some embodiments, the mobile phone can determine the event type of the business event based on the current usage scenario, and control the target application or system service to perform the corresponding response operation. For example, when the usage scenario is an application usage scenario, the mobile phone can determine that the event type of the business event is an application business event, and control the target application (the target application is the application under the application usage scenario) to perform the first response operation corresponding to the business event. When the usage scenario is a system usage scenario, the mobile phone can determine that the event type of the business event is a system business time, and control the system service to perform the first response operation corresponding to the business event. Thus, the response to the business event matches the current usage scenario of the mobile phone, thereby making the response to the business event more accurate.

[0163] For example, as shown in (a) in Figure 10, a video application is running in the foreground of the mobile phone, that is, the window content of the mobile phone is the video application, and the usage scenario is the application usage scenario. If the user presses the "space" key on the keyboard, the mobile phone converts the input interaction event into a business event, and the event type corresponding to the business event is an application business event, and the mobile phone will control the currently running video application to pause the video or play the video.

[0164] Alternatively, as shown in (b) in Figure 10, no application is running in the foreground of the mobile phone, the current window content of the mobile phone is the system desktop, and the usage scenario is the system usage scenario. If the user presses the "+" button on the headset, the mobile phone converts the input interaction event into a business event, and the event type corresponding to the business event is a system business event, and the mobile phone will control the system volume service to increase the system volume.

[0165] Alternatively, when no application is running in the foreground of the mobile phone and the current window content of the mobile phone is a sub-page in the system desktop, if the user presses the "back" button on the keyboard, the mobile phone converts the input interaction event into a business event. The event type corresponding to the business event is a system business event, and the mobile phone controls the system desktop service to switch the current display page to the main page.

[0166] In some possible application scenarios, when controlling a target application to execute a response operation corresponding to a business event, the mobile phone can also determine which control or controls of the target application are to execute the business event, as well as the operation method for executing the business event, based on the control properties and control type on the target application. Control types can include buttons, images, text, etc. Control properties can include a list of business events supported by the control, business event types, business event ranges, etc. The operation method for executing a business event can also include one or more of long press, click, touch, and slide. The operation method can be a single-point action, a multi-point action, or a gesture action.

[0167] It is understandable that if the second intention corresponding to the second trigger operation on the second input device determined by the mobile phone is the same as the first intention corresponding to the first trigger operation on the first input device, then the business event type corresponding to the first interaction event is also the same as the business event type corresponding to the second interaction event, and the mobile phone's response operation to the business event corresponding to the first interaction event is also the same as the response operation to the business event corresponding to the second interaction event. Therefore, the mobile phone can perform the same response operation for interaction events with the same intention generated by different input devices, and the user can experience a consistent response effect, bringing a better user experience.

[0168] Based on the above content, it can be seen that the mobile phone can generate the operational intention of the interaction event according to the current usage scenario and input device, and more accurately determine the intention of the interaction event. The intention can also better match the current usage scenario or user needs. Accordingly, the mobile phone will also make a more accurate response to the interaction event based on the intention, bringing a better user experience to the user.

[0169] In addition, even if the input devices and / or input operations are different, if the intention of the generated interaction event is the same, the mobile phone can perform the same response operation. In the same usage scenario, the user can feel a consistent response effect, which will also bring a better user experience.

[0170] Furthermore, in the currently commonly used interaction processing methods, the application on the mobile phone usually monitors the interface of the input device to obtain the input events of the input device. For example, for keyboard devices, the application needs to monitor the corresponding onKey interface; for touch devices, the application needs to monitor the corresponding onTouch interface; for headphone devices, the application needs to monitor broadcasts, etc. Then, each time the input event is processed, the application also needs to adapt according to different input events, which greatly increases the workload of the developer. The interaction processing method provided in the embodiment of the present application does not require the application to monitor the interface of the input device, and can obtain the input events of the input device from the bottom-level driver; moreover, the interaction processing method in the embodiment of the present application can also convert different input events into business events of corresponding business types according to the intent, that is, uniformly process input events of the same intent generated by different input devices, and the application does not need to adapt separately for different input events, which can reduce the workload of the developer.

[0171] In some embodiments, when a target application on a mobile phone is shared to other devices, a user can also control the target application on the other devices through an input device connected to the mobile phone.

[0172] For example, taking the example of a mobile phone projecting a video application to a laptop computer, as shown in FIG11 , the mobile phone will continue to obtain the drive events generated by the underlying driver corresponding to the input device, and send the data information of the drive events to the laptop computer. Afterwards, the laptop computer generates a corresponding interaction event on the virtual device node based on the data information, and converts the interaction event into a business event of the corresponding business type according to the intention of the interaction event, and controls the target application to perform the response operation corresponding to the business event. Among them, the processing flow of the laptop computer after obtaining the interaction event generated by the virtual device node can refer to the processing flow of the aforementioned mobile phone, which will not be repeated here.

[0173] Also, in some possible application scenarios, when a user controls a target application on another device through an input device, if the content of the target application is currently being displayed on the mobile phone, the target application on the mobile phone can also be controlled together, for example, the video being played on the mobile phone and the video being played on the laptop are both paused; if the content of the target application is not currently being displayed on the mobile phone, only the target application on the other device will be controlled.

[0174] As can be seen, a mobile phone can not only transfer the target application to other devices, but also transfer the interaction events that control the target application to other devices. In other words, input devices connected to the mobile phone can also control the target application on other devices, providing users with more convenient device operation and improving the user experience. In addition, the interaction events generated by the input device can receive the same response on different receiving devices, allowing users to enjoy the same operating experience when using the input device to control different devices.

[0175] Furthermore, other devices generate interaction events using virtual device node simulation, rather than directly receiving and processing interaction events from the phone. This avoids the issue of interaction events sent by the phone being incompatible with the software structure and event processing flow of other devices. Furthermore, in some possible application scenarios, the phone and other devices share the same framework layer structure, namely, the same distributed hardware framework. This framework supports cross-device calls, and events uploaded by virtual nodes can also be converted into business events through this framework for unified processing.

[0176] In some schemes, multiple embodiments of the present application can be combined, and the combined scheme can be implemented. Optionally, some operations in the process of each method embodiment are optionally combined, and / or the order of some operations is optionally changed. In addition, the execution order between the steps of each process is only exemplary and does not constitute a restriction on the execution order between the steps. There can also be other execution orders between the steps. It is not intended to indicate that the execution order is the only order in which these operations can be performed. Those of ordinary skill in the art will think of many ways to reorder the operations described in the embodiments of the present application. In addition, it should be noted that the process details involved in a certain embodiment of the present application are also applicable to other embodiments in a similar manner, or different embodiments can be used in combination.

[0177] Furthermore, some steps in the method embodiments may be equivalently replaced with other possible steps. Alternatively, some steps in the method embodiments may be optional and may be deleted in certain usage scenarios. Alternatively, other possible steps may be added to the method embodiments.

[0178] Furthermore, the various method embodiments may be implemented separately or in combination.

[0179] It is understandable that in order to implement the above functions, the aforementioned electronic device includes hardware and / or software modules corresponding to the execution of each function. In combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of this application.

[0180] In this embodiment, the electronic device can be divided into functional modules according to the above-mentioned method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into a single processing module. The above-mentioned integrated modules can be implemented in the form of hardware. It should be noted that the module division in this embodiment is illustrative and is only a logical functional division. In actual implementation, other division methods may be used.

[0181] An embodiment of the present application further provides an electronic device, as shown in FIG12 , which may include one or more processors 1001 , a memory 1002 , and a communication interface 1003 .

[0182] The memory 1002 and the communication interface 1003 are coupled to the processor 1001. For example, the memory 1002, the communication interface 1003 and the processor 1001 may be coupled together via a bus 1004.

[0183] The communication interface 1003 is used to transmit data with other devices. The memory 1002 stores computer program code. The computer program code includes computer instructions. When the computer instructions are executed by the processor 1001, the electronic device executes the interactive processing method in the embodiment of the present application.

[0184] The processor 1001 may be a processor or a controller, such as a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the present disclosure. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

[0185] The bus 1004 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus 1004 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, FIG12 shows only one thick line, but this does not mean that there is only one bus or only one type of bus.

[0186] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program code is stored. When the processor executes the computer program code, the electronic device executes the relevant method steps in the method embodiment.

[0187] An embodiment of the present application further provides a computer program product, which, when executed on a computer, enables the computer to execute the relevant method steps in the above method embodiment.

[0188] Among them, the electronic device, computer storage medium or computer program product provided in this application is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.

[0189] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0190] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0191] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0192] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0193] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the contributing part or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0194] The above content is only a specific embodiment of this application, but the scope of protection of this application is not limited to this. Any changes or replacements within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. An interactive processing method, characterized in that: Applied to a first device, the first device is connected to an input device; the method comprises: Acquire a first interaction event generated by a first input device; the first interaction event is generated according to a first trigger operation of a user on the first input device; Determine a first operation intention according to the first interaction event; the first operation intention is related to the first trigger operation; Determining a first intention corresponding to the first interaction event according to the first operation intention and a current usage scenario of the first device; Converting the first interaction event into a business event of a first business type according to the first intention; Execute a first response operation corresponding to the service event of the first service type.

2. The method according to claim 1, characterized in that The current usage scenario of the first device includes an application usage scenario and a system usage scenario.

3. The method according to claim 1 or 2, characterized in that: When the current usage scenario of the first device is an application usage scenario, the application does not monitor the first interaction event.

4. The method according to any one of claims 1 to 3, characterized in that: The determining the first operation intention according to the first interaction event includes: When the first input device is a keyboard, if the operated object of the first trigger operation is a space key, and the first trigger operation is a click, determining that the first operation intention is a target selection; When the first input device is a headset, if the operated object of the first trigger operation is the headset body, and the first trigger operation is a click, it is determined that the first operation is intended to pause playback.

5. The method according to claim 4, characterized in that The determining, according to the first operation intention and the current usage scenario of the first device, the first intention corresponding to the first interaction event includes: When the first operation intention is target selection, if the current usage scenario of the first device is an application usage scenario, and the application is a video application, determining that the first intention is to pause playback; When the first operation intention is to pause playback, if the current usage scenario of the first device is an application usage scenario, and the application is a video application, it is determined that the first intention is to pause playback.

6. The method according to claim 5, characterized in that The converting the first interaction event into a business event of a first business type according to the first intention includes: When the first intention is to pause playback, the first interaction event is converted into a service event for pausing playback of video content.

7. The method according to claim 5 or 6, characterized in that: The executing a first response operation corresponding to the service event of the first service type includes: When the current usage scenario of the first device is an application usage scenario, determining that the event type of the service event is an application service event, and controlling the application to execute a first response operation corresponding to the service event; When the current usage scenario of the first device is a system usage scenario, the event type of the business event is determined to be a system business event, and the control system service executes a first response operation corresponding to the business event.

8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: When the first interaction event is generated according to a voice instruction input by the user on the first input device, identifying semantic content in the voice instruction; Determine a first intention corresponding to the first interaction event according to the semantic content.

9. The method according to any one of claims 1 to 8, characterized in that: The method further comprises: Acquire a second interaction event generated by a second input device; the second interaction event is generated according to a second trigger operation of a user on the second input device; Determine a second operation intention according to the second interaction event; the second operation intention is related to the second trigger operation; Determine, according to the second operation intention and the current usage scenario of the first device, a second intention corresponding to the second interaction event; the second intention is the same as the first intention; converting the second interaction event into a business event of a second business type according to the second intention; the second business type is the same as the first business type; Execute a second response operation corresponding to the business event of the second business type; the second response operation is the same as the first response operation.

10. The method according to any one of claims 1 to 9, characterized in that: The obtaining of a first interaction event generated by a first input device includes: Acquire a driving event generated by a first bottom-level driver of the first device; the first bottom-level driver corresponds to the first input device, and after the first input device generates an interrupt event in response to the first trigger operation, the first bottom-level driver receives the interrupt event and generates the driving event; The driving event is standardized by using an input component to obtain a first interaction event that meets a preset condition; the meeting of the preset condition indicates that the first interaction event is a preset interaction event.

11. The method according to claim 10, characterized in that The method further comprises: When the current usage scenario of the first device is an application usage scenario and the application is shared on the second device, if the driving event generated by the first underlying driver is obtained, the data information of the driving event is shared with the second device; the data information is used to instruct the second device to generate the first interaction event through a virtual device node, determine the first intention corresponding to the first interaction event, and convert the first interaction event into a business event of a first business type according to the first intention, and control the application to perform a first response operation corresponding to the business event of the first business type; the second device includes at least one virtual device node for representing the input device.

12. The method according to claim 4, characterized in that The first trigger operation includes one or more of long pressing, clicking, and sliding; the operated object includes one or more of the buttons, controls, and screen of the input device.

13. The method according to claim 1, characterized in that The framework layer of the first device includes a multi-mode input MMI module and a user interface development framework ArkUI module; the method further includes: Acquiring the first interaction event generated by the first input device using the MMI module, and determining the first operation intention according to the first interaction event using the MMI module; Using the ArkUI module to obtain a current usage scenario of the first device, and using the ArkUI module to determine the first intent corresponding to the first interaction event according to the first operation intention and the current usage scenario of the first device; The ArkUI module is used to convert the first interaction event into a business event of a first business type according to the first intent, and the ArkUI module is used to perform a first response operation corresponding to the business event of the first business type.

14. An electronic device, characterized in that: It includes a memory and one or more processors; the memory is coupled to the processor; wherein the memory stores computer program code, the computer program code includes computer instructions, and when the computer instructions are executed by the processor, the electronic device executes the interactive processing method as described in any one of claims 1-13.

15. A computer-readable storage medium, characterized in that: It comprises computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the interactive processing method as described in any one of claims 1 to 13.

Citation Information

Patent Citations

  • Electronic equipment connection method and electronic equipment

    CN114143906A

  • Audio service processing system, electronic equipment and Bluetooth earphone

    CN115002934A