WO2023109452A1 - Control method, electronic device, and computer-readable storage medium - Google Patents

Control method, electronic device, and computer-readable storage medium Download PDF

Info

Publication number
WO2023109452A1
WO2023109452A1 PCT/CN2022/133956 CN2022133956W WO2023109452A1 WO 2023109452 A1 WO2023109452 A1 WO 2023109452A1 CN 2022133956 W CN2022133956 W CN 2022133956W WO 2023109452 A1 WO2023109452 A1 WO 2023109452A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
application
information
data
trigger instruction
Prior art date
Application number
PCT/CN2022/133956
Other languages
French (fr)
Chinese (zh)
Inventor
董伟鑫
李轩恺
丁训然
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2023109452A1 publication Critical patent/WO2023109452A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the present application relates to the field of electronic technology, and in particular to a control method, electronic equipment, and a computer-readable storage medium.
  • the user needs to input a corresponding operation command to the electronic device according to his own needs, so that the electronic device can execute the corresponding application service event. For example, if the user wants to send a shopping list, he needs to input an operation instruction corresponding to sending the shopping list to the electronic device, so that the electronic device can execute the application service event (that is, send the shopping list). In this way, when the electronic device executes different application service events, the user needs to input different operation instructions to it.
  • Embodiments of the present application provide a control method, electronic equipment, and a computer-readable storage medium.
  • An embodiment of the present application provides a control method, which is applied to a first electronic device.
  • the control method includes: when the first electronic device detects a trigger instruction, determining the application scenario information where the first electronic device is currently located; determining the application service event corresponding to the trigger instruction according to the application scenario information ; and executing the application service event in response to the trigger instruction.
  • the embodiments of the present application also provide an electronic device.
  • the electronic device includes a perception framework and an application engine.
  • the perception framework is used to determine the application scene information where the electronic device is currently located when the electronic device detects a trigger instruction.
  • the application engine is configured to determine the application service event corresponding to the trigger instruction according to the application scenario information; and execute the application service event in response to the trigger instruction.
  • An electronic device includes one or more processors, memory and one or more programs. One or more of the programs are stored in the memory and executed by one or more of the processors, and the programs are used to execute the control method.
  • the control method includes: when the electronic device detects a trigger instruction, determine the application scene information where the electronic device is currently located; determine the application service event corresponding to the trigger instruction according to the application scene information; and respond to The trigger instruction executes the application service event.
  • An embodiment of the present application provides a non-volatile computer-readable storage medium, which contains a computer program, and when the computer program is executed by one or more processors, the processors execute the following control method: in the When the first electronic device detects a trigger instruction, determine the application scenario information where the first electronic device is currently located; determine the application service event corresponding to the trigger instruction according to the application scenario information; and respond to the trigger An instruction to execute the application service event.
  • the control method, electronic device, and computer-readable storage medium in this application determine the application service event corresponding to the trigger instruction according to the current application scene information of the electronic device when the electronic device detects the trigger instruction, and execute the application service events.
  • the user only needs to input a trigger command to the electronic device, and the electronic device will automatically determine the application service event that the current user actually wants according to the current application scene information, and directly execute the application service event, without the need for the user to input different application service events.
  • Different commands are beneficial to improve the intelligence of the electronic device, and improve the efficiency and experience of the user in using the electronic device.
  • FIG. 1 is a schematic flow diagram of a control method in some embodiments of the present application.
  • FIG. 2 and FIG. 3 are schematic structural diagrams of the first electronic device in some embodiments of the present application.
  • Fig. 4 is a schematic flow chart of a control method in some embodiments of the present application.
  • Fig. 5 is a schematic structural diagram of a second electronic device in some embodiments of the present application.
  • Fig. 6 is a schematic diagram of displaying intent information by the first electronic device in some embodiments of the present application.
  • Fig. 11 is a schematic diagram of the page of the first electronic device before receiving shared data, after updating the application interface and after editing the application interface in some embodiments of the present application;
  • Fig. 12 is a schematic flowchart of a control method in some embodiments of the present application.
  • Fig. 13 is a schematic structural diagram of the first electronic device and the third electronic device in some embodiments of the present application
  • Fig. 14 is a schematic flowchart of a control method in some embodiments of the present application.
  • Fig. 15 is a schematic diagram of prompt information displayed by a third electronic device in some embodiments of the present application.
  • 16 to 17 are schematic flowcharts of the control method in some embodiments of the present application.
  • Fig. 18 is a schematic diagram of connection between a non-volatile computer-readable storage medium and a processor in some embodiments of the present application.
  • a control method applied to a first electronic device comprising: when the first electronic device detects a trigger instruction, determining the application scene information where the first electronic device is currently located; according to the The application scenario information determines the application service event corresponding to the trigger instruction; in response to the trigger instruction, execute the application service event.
  • the trigger instruction includes a preset action
  • the control method further includes: detecting whether the first electronic device executes the preset action through a sensor.
  • the determining the application scene information where the first electronic device is currently located includes: determining the application scene information according to collected information, the collected information includes sensor information, location of the first electronic device Information, current page information of the first electronic device, and running information of applications of the first electronic device.
  • the executing the application service event in response to the trigger instruction includes: establishing a communication connection with the second electronic device in response to the trigger instruction; share data.
  • the control method further includes: in response to the trigger instruction, receiving a message from the second electronic device to the first electronic device The type and authority of the data requested by the device; screening out the data to be shared according to the type and the authority requested by the second electronic device; and transmitting the data to be shared to the second electronic device for updating the Describe the application interface of the second electronic device.
  • the control method further includes: performing a security check on the second electronic device in response to the trigger instruction; After the security verification is passed, the step of establishing a communication connection with the second electronic device is performed.
  • the control method further includes: after the security check is passed, acquiring the information from the second electronic device according to the application scenario information The type and authority of the data requested by the device; sending the type and the authority of the data requested by the first electronic device to the second electronic device, so that the shared data transmitted by the second electronic device is consistent with the first The electronic device requests that the type of data and the permission match.
  • the executing the application service event in response to the trigger instruction further includes: according to the received The sharing data transmitted by the second electronic device updates the application interface of the first electronic device.
  • the executing the application service event in response to the trigger instruction further includes: according to the input operation on the first electronic device and/or according to the transmission to the third electronic device
  • the input operation of the first electronic device is used to edit the updated application interface of the first electronic device, and the editing includes at least one of adding data, reducing data, and modifying data.
  • the executing the application service event in response to the trigger instruction further includes: generating an event based on the shared data A prompt message, and transmit the prompt message to the third electronic device, so that the third electronic device displays the prompt message.
  • the control method when the application scenario information includes a shopping scenario, the control method further includes: after the execution of the application service event is completed, generating pickup information and transmitting the pickup information to a third an electronic device; and when the first electronic device and/or the third electronic device arrive at a pick-up location, generate a display operation command and transmit the display operation command to the third electronic device, so that the third electronic device The electronic device displays the pickup information.
  • the application scenario information includes a shopping scenario
  • the application service event includes sharing shopping cart data.
  • a first electronic device includes a perception frame and a perception frame.
  • the perception framework is used to determine the current application scenario information when a trigger instruction is detected.
  • the application engine is configured to determine an application service event corresponding to the trigger instruction according to the application scenario information, and execute the application service event in response to the trigger instruction.
  • the trigger instruction includes a preset action
  • the application engine detects whether the first electronic device executes the preset action through a sensor.
  • the application engine is further configured to determine the application scene information according to collected information, where the collected information includes sensor information, location information, and current page information of the first electronic device , at least one of the running information of the application program of the first electronic device.
  • the application engine is further configured to establish a communication connection with the second electronic device in response to the trigger instruction; and receive sharing data transmitted from the second electronic device.
  • the application engine is further configured to: in response to the trigger instruction, receive the type and permission of the data requested by the second electronic device from the first electronic device; The type of the request and the permission filter out the data to be shared; and transmitting the data to be shared to the second electronic device for updating the application interface of the second electronic device.
  • the application engine is further configured to: perform a security check on the second electronic device in response to the trigger instruction; and establish a communication connection with the second electronic device after the security check is passed. A step of.
  • the application engine is further configured to: obtain the type and authority of the data requested from the second electronic device according to the application scene information after the security verification is passed; send the first electronic device requesting the type and the permission of the data to the second electronic device, so that the shared data transmitted by the second electronic device matches the type and the permission of the data requested by the first electronic device.
  • the application engine when the sharing data transmitted from the second electronic device is received, the application engine includes an interface drawing module, and the interface drawing module is configured to The sharing data transmitted by the device updates the application interface of the first electronic device.
  • the application engine is further configured to update the updated The subsequent application interface of the first electronic device is edited, and the editing includes at least one of adding data, reducing data, and modifying data.
  • the application engine is further configured to: generate a prompt message according to the shared data, and transmit the prompt message to a third electronic device, so that the third electronic device displays the prompt message .
  • the application engine is further configured to: after the execution of the application service event is completed, generate pickup information and transmit the pickup information to the first Three electronic devices; and when the first electronic device and/or the third electronic device arrive at the pick-up location, generate a display operation command and transmit the display operation command to the third electronic device, so that the first electronic device The three electronic devices display the pickup information.
  • control method is applied to the first electronic device 10, and the control method includes:
  • the embodiment of the present application further provides a first electronic device 10 .
  • the first electronic device 10 includes a perception framework 11 and an application engine 12 .
  • the perception framework 11 can execute the method in 01
  • the application engine 12 can execute the methods in 02 and 03. That is to say, the perception framework 11 is used to determine the application scene information where the first electronic device 10 is currently located when the first electronic device 10 detects the trigger instruction; the application engine 12 is used to determine the trigger instruction according to the application scene information the corresponding application service event; and executing the application service event in response to the trigger instruction.
  • Terminal 10 includes one or more processors 13, memory 14, and one or more programs.
  • one or more programs are stored in the memory 14 and executed by one or more processors 13, and the programs include instructions for executing the control method of the embodiment of the present application. That is, when one or more processors 13 execute the program, the processors 13 can implement the methods in 01, 02 and 03. That is, the one or more processors 13 are configured to: when the first electronic device 10 detects the trigger instruction, determine the application scenario information where the first electronic device 10 is currently located; determine the application scenario corresponding to the trigger instruction according to the application scenario information a service event; and executing the application service event in response to the trigger instruction.
  • the application service event corresponding to the trigger instruction is determined according to the application scene information where the first electronic device 10 is currently located, And execute app service events.
  • the user only needs to input a trigger command to the first electronic device 10, and the first electronic device 10 will automatically determine the application service event that the current user actually wants according to the current application scene information, and directly execute the application service event without the need for the user to
  • Inputting different commands for different application service events is beneficial to improving the intelligence of the first electronic device 10 and improving the user's efficiency and experience in using the first electronic device 10 .
  • the first electronic device 10 may be a mobile phone, a tablet computer, a display device, a notebook computer, a smart watch, a head-mounted display device, a game console, and the like. As shown in FIG. 3 , the embodiment of the present application is described by taking the first electronic device 10 as a mobile phone as an example. It can be understood that the specific form of the first electronic device 10 is not limited to the mobile phone.
  • the trigger instruction includes preset actions
  • the control method further includes:
  • both the perception framework 11 and the processor 13 can execute the method in 04 . That is to say, both the perception framework 11 and the processor 13 can also be used to detect whether the first electronic device 10 executes a preset action through a sensor.
  • the first electronic device 10 is provided with a sensor (not shown in the figure), and the sensor may be an attitude sensor for detecting the attitude information of the first electronic device 10 .
  • the gesture information indicates that the user performs a preset action on the first electronic device 10 , that is, when it is detected that the first electronic device 10 performs a preset action, it can be considered that the user inputs a trigger command to the first electronic device 10 at this time. That is to say, when the perception framework 11 (or the processor 13 ) detects through the sensor that the first electronic device 10 is performing a preset action, the first electronic device 10 receives the trigger instruction.
  • the preset actions include but not limited to touching the first electronic device 10 with other electronic devices, shaking the first electronic device 10 and knocking the first electronic device 10, etc. The preset actions mentioned below are the same, in I won't go into details here.
  • determining the application scene information where the first electronic device 10 is currently located includes: determining the application scene information according to collected information, where the collected information includes sensor information of the first electronic device 10, location information, first At least one of the current page information of the electronic device 10 and the running information of the application program of the first electronic device 10 .
  • both the perception framework 11 and the processor 13 can also be used to determine the application scene information according to the collected information.
  • the collected information includes the sensor information of the first electronic device 10, the location information, the first At least one of the current page information of the electronic device 10 and the running information of the application program of the first electronic device 10 .
  • the sensor information may be the image collected by the camera of the first electronic device 10, or the posture information collected by the posture sensor, or the ambient light brightness information collected by the ambient light sensor, or the sensing information of the near field communication sensing module; the sound collected by the microphone information etc.
  • the location information indicates the location of the first electronic device 10, such as home, company, shopping mall, or a specific indoor location.
  • the current page information includes text, pictures, application programs, etc. displayed on the current page.
  • the running information of the application program includes whether the current application program (APP) completes a task (for example, the task of the navigation APP can be a navigation task, and the shopping APP can be whether the current shopping cart is settled, etc.), etc., and will not be repeated here. .
  • APP current application program
  • the perception framework 11 After acquiring the collected information, the perception framework 11 (or the processor 13 ) can determine the application scene information where the first electronic device 10 is currently located according to the collected information. In some embodiments, the perception framework 11 set in the first electronic device 10 can directly determine the application scene information where the first electronic device 10 is currently located according to the collected information. In some embodiments, the perception framework 11 can also be set in the cloud, the first electronic device 10 uploads data to the cloud, and with the help of the powerful computing power of the cloud, uploads the collected information to the cloud for processing and determines the current location of the first electronic device 10 The application scene information of the first electronic device 10 is used to reduce the processing load of the first electronic device 10 and quickly determine the application scene information of the first electronic device 10 at present.
  • the perception framework 11 can be set on the first electronic device 10 and the cloud, for example, the collected information is uploaded to the cloud by the first electronic device 10, the data is processed by the cloud, and the result information after data processing Send it to the first electronic device 10, and the first electronic device 10 will determine the current application scene information of the first electronic device 10 based on the result information, that is, the cloud and the first electronic device 10 cooperate to process and collect information to determine the first electronic device 10 Information about the current application scenario.
  • the current page information of the first electronic device 10 indicates that the user is browsing the application interface of the shopping cart, and the perception framework 11 (or processor 13) can determine that the current application scene information of the first electronic device 10 includes a shopping scene.
  • the location information indicates that the user is in a shopping mall, the image in the sensor information recognizes a commodity shelf, and the perception framework 11 (or processor 13) can determine that the application scene information where the first electronic device 10 is currently located includes a shopping scene.
  • the location information indicates that the user is inside the company
  • the current page information of the first electronic device 10 indicates that the user is browsing documents
  • the perception framework 11 (or processor 13) can determine that the current application scene information of the first electronic device 10 includes meeting scene.
  • the perception framework 11 determines the application scene information where the first electronic device 10 is currently located
  • the perception framework 11 can send the application scene information to the application engine 12, and the application engine 12 (or processor 13) according to
  • the application scenario information determines the application service event corresponding to the trigger instruction. It should be noted that different application scenario information has corresponding application service events.
  • the application scenario information includes a shopping scenario
  • the application service event includes sharing shopping cart data.
  • application scenario information is not limited to shopping scenarios
  • application service events are not limited to sharing shopping cart data.
  • the application scene information includes the shopping scene
  • the application service event includes the shared shopping cart data as an example for description.
  • the perception framework 11 may further determine the object that the user needs to share the shopping cart data according to the information of other electronic devices near the first electronic device 10 .
  • the user makes a preset action on the first electronic device 10 , that is, the gesture sensor detects that the first electronic device 10 makes a preset action.
  • the first electronic device 10 sends a request to a nearby base station, and the base station will send to the first electronic device 10 the identifiers of other electronic devices that have also sent requests to the base station near the first electronic device 10 and within the same time period.
  • the perception framework 11 can determine the object to share shopping cart data with the first electronic device 10 is the electronic device. For example, during the same period of time, the user U1 shakes the first electronic device 10 , and at the same time the user U2 shakes the second electronic device 20 near the first electronic device 10 (as shown in FIG. 5 ). Both the first electronic device 10 and the second electronic device 20 will send a request to the base station, and the base station will send the identifier of the second electronic device 20 to the first electronic device 10 .
  • the perception framework 11 may determine that the object for sharing shopping cart data with the first electronic device 10 is the second electronic device 20 .
  • the user makes a preset action on the first electronic device 10 , that is, the posture sensor detects that the first electronic device 10 makes a preset action.
  • the first electronic device 10 can automatically turn on the hardware device capable of communication connection (including but not limited to one or more of the near field communication NFC module, bluetooth module, USB connection module or wireless fidelity Wi-Fi network connection module) ) to find nearby electronic devices that can be connected.
  • the perception framework 11 (or the processor 13 ) can determine that the object to share the shopping cart data with the first electronic device 10 is the electronic device.
  • the user U1 touches the first electronic device 10 to the second electronic device 20, that is, the attitude sensor detects that the first electronic device 10 touches other second electronic devices 20, and at this time The first electronic device 10 turns on the near field communication NFC module and senses the near field communication NFC module of the second electronic device 20, and at this time the perception framework 11 (or processor 13) can determine the shopping cart data sharing with the first electronic device 10
  • the object is the second electronic device 20 .
  • the determined application service event may also be displayed on the first electronic device 10 for confirmation by the user, so as to avoid wrongly predicting the user's real intention. For example, as shown in FIG. 6, assuming that the determined application service event is to share shopping cart data with the second electronic device 20, the first electronic device 10 can display a prompt message on the display screen "Do you currently need to share the shopping cart data with the second electronic device?" shopping cart data", if the user selects "Yes”, it means that the current intent information is consistent with the user's real intent, and proceed to the next steps; if the user selects "No", it means that the current intent information does not match the user's real intent, then do not continue Follow the next steps.
  • the application service event is determined on the first electronic device 10
  • the user can also edit and change the application service event according to his own needs.
  • the application scenario information may also include network information of the second electronic device 20 used to establish the connection, and the second electronic device 20 is the object for which the first electronic device 10 shares the shopping cart data.
  • the network information includes but not limited to one or more of the pairing information of the Bluetooth connection module, the pairing information of the WIFI connection module, the pairing information of the NFC module and the pairing information of the USB connection module.
  • the perception framework 11 (or the processor 13 ) may acquire network information of the second electronic device 20 . For example, in one example, at the same time, the user U1 makes a preset action on the first electronic device 10 , and the user U2 near the first electronic device 10 also makes a preset action on the second electronic device 20 .
  • the first electronic device 10 and the second electronic device 20 send requests to nearby base stations, and the requests include respective network information.
  • the base station will send the request sent by the second electronic device 20 to the first electronic device 10.
  • the perception framework 11 can determine that the object of the first electronic device 10 to share data is the second electronic device 20, so that the first electronic device 10 can obtain The network information of the second electronic device 20 is obtained. Then the perception framework 11 delivers the application scenario information including the network information of the second electronic device 20 to the application engine 12 .
  • the first electronic device 10 includes a plurality of application engines 12, and each application engine 12 corresponds to a different application program.
  • the perception framework 11 distributes the event to the corresponding application engine 12 middle. For example, if the application scenario information includes the application of the shared shopping mall A, the perception framework 11 distributes the event to the application engine 12 corresponding to the application of the shopping mall A.
  • Such different application programs use the corresponding application engine 12 to perform subsequent operations, which is beneficial for multiple application programs to perform subsequent operations at the same time.
  • the first electronic device 10 when the first electronic device 10 includes multiple application engines 12, in some embodiments, the first electronic device 10 may only include one perception framework 11, and the perception framework 11 distributes the application scene information to the In the application engine 12 corresponding to the application program of shopping mall A, such multiple application programs can all use the same perception framework 11 to perceive the application scene information, which is beneficial to reduce the power consumption of the first electronic device 10 .
  • the first electronic device 10 when the first electronic device 10 includes multiple application engines 12, the first electronic device 10 may also include multiple perception frameworks 11, and the perception frameworks 11 correspond to the application engines 12, which will not be described here. limit.
  • control method further includes: judging whether the application scene information contains preset information.
  • the perception framework 11 is also used to determine whether the application scene information contains preset information.
  • the step of distributing the application scenario information to the application engine (ie, the application engine 12 ) of the first electronic device 10 is executed only when the application scenario information includes preset information. If the application scenario information does not include preset information, the application scenario information is not distributed to the application engine 12 .
  • the preset information may be set by default before the first electronic device 10 leaves the factory, or may be set by the user according to his own needs. For example, the preset information includes the application program of mall A.
  • the perception framework 11 distributes the application scene information to the application engine 12; If the application scenario information of the electronic device 10 currently includes the application program of the shopping mall B, that is, the event does not include preset information, the perception framework 11 will not distribute the application scenario information to the application engine 12 . In this way, only performing subsequent processing on the application scenario information including the preset information is beneficial to further reducing the power consumption of the first electronic device 10 compared to performing subsequent processing on all application scenario information.
  • executing an application service event includes:
  • both the application engine 12 and the processor 13 can execute the methods in 031 and 032 . That is to say, both the application engine 12 and the processor 13 are further configured to: establish a communication connection with the second electronic device 20 in response to a trigger instruction; and receive shared data transmitted from the second electronic device 20 .
  • the application engine 12 (or the processor 30 ) establishes a communication connection between the first electronic device 10 and the second electronic device 20 in response to the trigger instruction. For example, in some embodiments, the application engine 12 (or the processor 30) can establish the network information of the first electronic device 10 and the second electronic device 20 according to the network information of the first electronic device 10 and the network information of the second electronic device 20. communication link between.
  • the application engine 12 establishing a communication connection between the first electronic device 10 and the second electronic device 20 according to the network information of the first electronic device 10 and the network information of the second electronic device 20 as an example.
  • the application engine 12 includes an execution engine 121 and a connection management module 122, the execution engine 121 obtains the network information of the second electronic device 20, and the execution engine 121 obtains the network information of the first electronic device 10.
  • the acquired network information of the first electronic device 10 needs to correspond to the network information of the second electronic device 20 .
  • the connection management module 122 establishes a communication connection between the first electronic device 10 and the second electronic device 20 through hardware corresponding to the network information according to the network information of the first electronic device 10 and the network information of the second electronic device 20 .
  • the connection management module 122 For example, assuming that the network information of the second electronic device 20 is the pairing information of the Bluetooth module of the second electronic device 20, the connection management module 122, according to the pairing information of the Bluetooth module of the first electronic device 10 and the pairing information of the Bluetooth module of the second electronic device 20 , establishing a communication connection between the first electronic device 10 and the second electronic device 20 through the Bluetooth connection module.
  • the network information of the second electronic device 20 and the network information of the first electronic device 10 may also be acquired by the connection management module 122 , which is not limited here.
  • the application engine 12 (or processor 30 ) of the first electronic device 10 can also receive the sharing data transmitted from the second electronic device 20 . Since the sharing of data across devices is usually done by scanning the same QR code or sharing it with the other party in the way of forwarding in the instant messaging application. For example, when shopping, different family members add different items to the shopping list, and they need to be forwarded and shared one by one to ensure that the items of all family members are in the same shopping cart for payment. This kind of data sharing method is relatively complicated, and it is operated in an unnatural interactive manner, so the sharing efficiency is low and the user experience is poor.
  • the user only needs to input a trigger instruction to the first electronic device 10, that is, when the first electronic device 10 detects the trigger instruction, and determine the application scene where the first electronic device 10 is currently located
  • the first electronic device 10 can automatically establish a communication connection with the second electronic device 10 to receive sharing data transmitted from the second electronic device 20 .
  • the effective sharing of application data across electronic devices can be realized, which greatly improves the efficiency of sharing compared to sharing to the other party by scanning the same two-dimensional code or by forwarding in an instant messaging application.
  • data transmission across electronic devices can be realized without transferring data through a server or cloud, which is beneficial to reduce the risk of data leakage and improve security.
  • executing an application service event in response to a trigger instruction further includes:
  • a step of establishing a communication connection with the second electronic device 20 is performed.
  • both the application engine 12 and the processor 13 are also used to execute the method in 033 . That is to say, both the application engine 12 and the processor 13 are further configured to perform security verification on the second electronic device 20 in response to the trigger instruction. After the security verification is passed, a step of establishing a communication connection with the second electronic device 20 is performed.
  • the second electronic device 20 may also be identified according to the network information of the second electronic device 20 whether the second electronic device 20 is a legal device allowed to connect. If it is recognized that the second electronic device 20 is a legal device that is allowed to be connected, then the second electronic device 20 passes the security check; otherwise, if it is recognized that the second electronic device 20 is not a legal device that is allowed to be connected, then the second Second, the electronic device 20 does not pass the security check. Only after the safety verification is passed, the step of establishing a communication connection between the first electronic device 10 and the second electronic device 20 is performed, so that the first electronic device 10 can receive the shared data transmitted by the second electronic device 20, This can further enhance the security of data sharing.
  • executing an application service event in response to a trigger instruction further includes:
  • 035 Send the type and permission of the data requested by the first electronic device 10 to the second electronic device 20, so that the shared data transmitted by the second electronic device 20 matches the type and permission of the data requested by the first electronic device 10.
  • both the application engine 12 and the processor 13 are also used to execute the methods in 034 and 035 . That is to say, both the application engine 12 and the processor 13 are also used to obtain the type and authority of the data requested from the second electronic device 20 according to the application scene information after the security verification is passed; and send the request data to the first electronic device 10
  • the type and permission of the shared data transmitted by the second electronic device 20 match the type and permission of the data requested by the first electronic device 10 to the second electronic device 20 .
  • the application engine 12 may acquire the type and permission of data that needs to be requested from the second electronic device 20 according to the application scenario information.
  • the data type includes at least one of application business data, application status data, and system status data; data permissions include shareable, readable and editable.
  • the types and permissions of requested data corresponding to different application scenario information are preset.
  • the application engine 12 may request the type and permission of data from the second electronic device 20 according to the application scenario information and corresponding needs.
  • the second electronic device 20 After obtaining the type and authority of the data that needs to be requested from the second electronic device 20, send the type and authority of the data requested by the first electronic device 10 to the second electronic device 20, so that the first electronic device 10 can receive the data from the second electronic device 20.
  • the shared data of the electronic device 20 can match the type and authority of the data requested by the first electronic device 10 .
  • executing the application service event further includes:
  • the application engine 12 further includes an interface drawing module 123 .
  • Both the interface drawing module 123 and the processor 13 are also used to execute the method in 036 . That is to say, both the interface drawing module 123 and the processor 13 are further configured to update the application interface of the first electronic device 10 according to the received sharing data transmitted by the second electronic device 20 .
  • the first electronic device 10 After receiving the shared data transmitted from the second electronic device 20, the first electronic device 10 synchronously updates its own data according to the shared data to obtain updated data. Subsequently, the interface drawing module 123 updates the application interface of the first electronic device 10 according to the updated data, so that the user of the first device 10 can see the data information shared by the user of the second electronic device 20 more intuitively.
  • the left side of FIG. 11 is the application interface before the first electronic device 10 receives the sharing data transmitted from the second electronic device 20 , where there are only hats in the shopping cart, and the number of hats is 1.
  • the shared data transmitted by the second electronic device 20 is to add a hat and a bottle of Coke.
  • the interface drawing module 123 Share the data and update the application interface of the first electronic device 10 .
  • the figure in the middle of FIG. 11 is the updated application interface of the first electronic device 10 , where there are hats and cola in the shopping cart, the quantity of hats is 2, and the quantity of cola is 1.
  • the application engine 12 may further include a data management module 124 for storing data. After synchronously updating its own data according to the shared data and obtaining the updated data, the updated data is stored in the data management module 124 .
  • the data management module 124 initiates an interface update request to the interface drawing module 123 , and then the interface drawing module 123 updates the application interface of the first electronic device 10 .
  • executing an application service event in response to a trigger instruction further includes:
  • both the application engine 12 and the processor 13 are also used to execute the method in step 037 . That is to say, both the application engine 12 and the processor 13 are also configured to update the updated
  • the application interface of the first electronic device 10 performs editing, and the editing includes at least one of adding data, reducing data, and modifying data.
  • the third electronic device 30 is a wearable device communicatively connected with the first electronic device 10 , for example, the third electronic device 30 may be a smart watch, smart glasses, smart bracelet, etc., which is not limited here.
  • the third electronic device 30 is described as a smart watch.
  • the updated application interface of the first electronic device 10 can also be edited according to the input operation on the first electronic device 10 at this time. It includes at least one of increasing data, reducing data, and modifying data.
  • the input operation on the first electronic device 10 includes but not limited to at least one of touch input and voice input.
  • the updated application interface is as shown in the middle figure of FIG. There are hats and Coke in the car, the number of hats is 2, and the number of Coke is 1.
  • the user of the first electronic device 10 only needs to delete the Coke through the input of the first electronic device 10 to update the application data again, as shown on the right side of Figure 11
  • the right side of FIG. 11 shows the updated application interface of the first electronic device 10 , where there are only hats in the shopping cart, and the number of hats is 2.
  • the user can also input an operation to the third electronic device 30, and then the third electronic device 30 transmits the input operation to the first electronic device 10, and the application engine 12 (or processor 13) Edit the updated application interface of the first electronic device 10 according to the input operation received from the third electronic device 30 . Since the first electronic device 10 is a mobile phone and the third electronic device 30 is a smart watch, it is possible to edit the updated first electronic device 10 only by inputting an operation on the smart watch when the user is inconvenient to use the mobile phone. application interface.
  • the first electronic device 10 can also transmit information to the third electronic device 30 .
  • executing an application service event further includes:
  • both the application engine 12 and the processor 13 are further configured to execute the method in step 038 . That is to say, both the application engine 12 and the processor 13 are also configured to generate a prompt message according to the shared data, and transmit the prompt message to the third electronic device 30, so that the third electronic device 30 displays the prompt message.
  • the application engine 12 when the first electronic device 10 receives the sharing data transmitted from the second electronic device 20, the application engine 12 (or processor 13) generates prompt information according to the received sharing data.
  • the prompt message is used to remind the user what data is shared by the second electronic device 20 .
  • the prompt information may be "Add a hat and a bottle of Coke".
  • the first electronic device 10 transmits the prompt information to the third electronic device 30 communicatively connected thereto, so that the third electronic device 30 displays the prompt information.
  • the third electronic device 30 displays the prompt information on its display screen. Since the first electronic device 10 is a mobile phone and the third electronic device 30 is a smart watch, it is possible for the user to know what data the second electronic device 20 shares when it is inconvenient for the user to use the mobile phone.
  • control method when the application scenario information includes a shopping scenario, the control method further includes:
  • both the application engine 12 and the processor 13 are also used to execute the methods in steps 05 and 06 . That is to say, both the application engine 12 and the processor 13 are also configured to generate pickup information and transmit the pickup information to the third electronic device 30 after the execution of the application service event; and in the first electronic device 10 and/or Or when the third electronic device 30 arrives at the pick-up location, generate a display operation command and transmit the display operation command to the third electronic device 30, so that the third electronic device 30 displays the pick-up information.
  • the application scenario information includes a shopping scenario
  • the application engine 12 (or the processor 13 ) generates the pick-up information and transmits the pick-up information to the third electronic device 30 .
  • the third electronic device 30 After the third electronic device 30 receives the pick-up message, it can immediately display the pick-up information on its display screen, or store it in its memory first, and display the pick-up information on its display screen according to the user's input operation. No limit. Since the first electronic device 10 is a mobile phone and the third electronic device 30 is a smart watch, the pick-up information can be obtained through the smart watch even when the user does not use the mobile phone.
  • the application engine 12 (or processor 13) generates a display operation command and transmits the display operation command to the third electronic device 30, so that the third electronic device 30
  • the electronic device 30 displays the pick-up information. That is, after the third electronic device 30 receives the display operation command, the third electronic device 30 displays the pick-up information on its display screen. In this way, when the first electronic device 10 and/or the third electronic device 30 arrive at the pick-up address, the pick-up information can be automatically displayed on the third electronic device 30 without user operation, which is convenient for the user to display the pick-up information for pick-up .
  • executing an application service event further includes:
  • the application engine 12 and the processor 13 are also used to execute the methods in 0391 , 0392 and 0393 . That is to say, both the application engine 12 and the processor 13 are further configured to: receive the type and authority of the data requested by the second electronic device 20 from the first electronic device 10 in response to the trigger instruction; The data to be shared is filtered out by type and authority; and the data to be shared is transmitted to the second electronic device 20 for updating the application interface of the second electronic device 20 .
  • the connection management module 121 (or the processor 13) of the application engine 12 can respond to the trigger instruction and receive the communication from the second electronic device 20 to the first electronic device.
  • the device 10 requests the type and permissions of the data.
  • the execution engine 121 (or processor 13) of the application engine 12 transfers data from the first electronic device 12 according to the type and authority requested by the second electronic device 20. 10 to filter out the data to be shared.
  • the application engine 12 includes a data management module 124, and the data management module 124 stores data.
  • the application The execution engine 121 (or the processor 13 ) of the engine 12 filters the data to be shared from the first data management module 124 according to the type and permission requested by the second electronic device 20 .
  • the data management module 124 stores different types of data, and each type of data has identification information for representing its authority.
  • the execution application engine 121 After receiving the type and authority of the data requested by the second electronic device 20 from the first electronic device 10, the execution application engine 121 obtains the corresponding The data and the identification information of the corresponding data, and then obtain the data to be shared according to the permission of the requested data and the identification information of the corresponding data.
  • the obtained data is taken as the data to be shared. If the permission of the requested data includes the first request permission, but the identification information of the corresponding data includes the second permission, the obtained data cannot be used as the data to be shared.
  • the first request permission is used to indicate that the data is requested to be shared
  • the first permission is used to indicate that the data is shareable data
  • the second permission is used to indicate that the data is non-shareable data. For example, assume that the type of requested data is type A, and the requested permission is the first requested permission, that is, it is requested to share data of type A.
  • the execution application engine 121 obtains the data of type A and its corresponding identification information in the data management module 124. If the identification information of the data of type A in the data management module 124 includes the first permission, it means that the data of type A can be shared. At this time, the data of type A is used as the data to be shared; if the identification information of the data of type A in the data management module 124 includes the second permission, it means that the data of type A cannot be shared, and the data of type A cannot be transmitted at this time. In this way, not all the data requested by the second electronic device 20 can be transmitted by the first electronic device 10 , which can further improve the security of the first electronic device 10 .
  • connection management module 122 (or the processor 13 ) of the application engine 12 transmits the data to be shared to the second electronic device 20 for updating the application interface of the second electronic device 20 .
  • the embodiment of the present application also provides a non-volatile computer-readable storage medium 200 containing a computer program 201 .
  • the processors 13 are made to execute 01, 02, 03, 04, 031, 032, 033, 034, 035, 036, 037, 038, 05, 06, 0391, Control methods in 0392 and 0393.
  • the processors 13 are made to perform the following methods:

Abstract

A control method, an electronic device, and a computer-readable storage medium. The control method comprises: when a first electronic device detects a trigger instruction, determining information of an application scenario where the first electronic device is currently located; determining, according to the information of the application scenario, an application service event corresponding to the trigger instruction; and in response to the trigger instruction, executing the application service event.

Description

控制方法、电子设备及计算机可读存储介质Control method, electronic device, and computer-readable storage medium
优先权信息priority information
本申请请求2021年12月14日向中国国家知识产权局提交的、专利申请号为202111531934.4的专利申请的优先权和权益,并且通过参照将其全文并入此处。This application claims the priority and benefit of the patent application No. 202111531934.4 filed with the State Intellectual Property Office of China on December 14, 2021, which is hereby incorporated by reference in its entirety.
技术领域technical field
本申请涉及电子技术领域,特别涉及一种控制方法、电子设备及计算机可读存储介质。The present application relates to the field of electronic technology, and in particular to a control method, electronic equipment, and a computer-readable storage medium.
背景技术Background technique
通常用户需要根据自身需求,对电子设备输入对应操作指令,电子设备才能够执行对应的应用服务事件。例如,用户想要发送购物清单,需要对电子设备输入与发送购物清单对应的操作指令,电子设备才能够执行该应用服务事件(即发送购物清单)。如此电子设备执行不同的应用服务事件,就需要用户对其输入不同的操作指令。Usually, the user needs to input a corresponding operation command to the electronic device according to his own needs, so that the electronic device can execute the corresponding application service event. For example, if the user wants to send a shopping list, he needs to input an operation instruction corresponding to sending the shopping list to the electronic device, so that the electronic device can execute the application service event (that is, send the shopping list). In this way, when the electronic device executes different application service events, the user needs to input different operation instructions to it.
发明内容Contents of the invention
本申请实施方式提供了一种控制方法、电子设备及计算机可读存储介质。Embodiments of the present application provide a control method, electronic equipment, and a computer-readable storage medium.
本申请实施方式提供一种控制方法,应用于第一电子设备。控制方法包括:在所述第一电子设备检测到触发指令的情况下,确定所述第一电子设备当前所处的应用场景信息;根据所述应用场景信息确定所述触发指令对应的应用服务事件;及响应于所述触发指令,执行所述应用服务事件。An embodiment of the present application provides a control method, which is applied to a first electronic device. The control method includes: when the first electronic device detects a trigger instruction, determining the application scenario information where the first electronic device is currently located; determining the application service event corresponding to the trigger instruction according to the application scenario information ; and executing the application service event in response to the trigger instruction.
本申请实施方式还提供一种电子设备。电子设备包括感知框架及应用引擎。感知框架用于在所述电子设备检测到触发指令的情况下,确定所述电子设备当前所处的应用场景信息。应用引擎用于根据所述应用场景信息确定所述触发指令对应的应用服务事件;及响应于所述触发指令,执行所述应用服务事件。The embodiments of the present application also provide an electronic device. The electronic device includes a perception framework and an application engine. The perception framework is used to determine the application scene information where the electronic device is currently located when the electronic device detects a trigger instruction. The application engine is configured to determine the application service event corresponding to the trigger instruction according to the application scenario information; and execute the application service event in response to the trigger instruction.
本申请实施方式还提供一种电子设备。电子设备包括一个或多个处理器、存储器及一个或多个程序。其中一个或多个所述程序被存储在所述存储器中,并且被一个或多个所述处理器执行,所述程序包括用于执行控制方法。控制方法包括:在所述电子设备检测到触发指令的情况下,确定所述电子设备当前所处的应用场景信息;根据所述应用场景信息确定所述触发指令对应的应用服务事件;及响应于所述触发指令,执行所述应用服务事件。The embodiments of the present application also provide an electronic device. An electronic device includes one or more processors, memory and one or more programs. One or more of the programs are stored in the memory and executed by one or more of the processors, and the programs are used to execute the control method. The control method includes: when the electronic device detects a trigger instruction, determine the application scene information where the electronic device is currently located; determine the application service event corresponding to the trigger instruction according to the application scene information; and respond to The trigger instruction executes the application service event.
本申请实施方式提供一种非易失性计算机可读存储介质,包含有计算机程序,当所述计算机程序被一个或多个处理器执行时,使得所述处理器执行如下控制方法:在所述第一电子设备检测到触发指令的情况下,确定所述第一电子设备当前所处的应用场景信息;根据所述应用场景信息 确定所述触发指令对应的应用服务事件;及响应于所述触发指令,执行所述应用服务事件。An embodiment of the present application provides a non-volatile computer-readable storage medium, which contains a computer program, and when the computer program is executed by one or more processors, the processors execute the following control method: in the When the first electronic device detects a trigger instruction, determine the application scenario information where the first electronic device is currently located; determine the application service event corresponding to the trigger instruction according to the application scenario information; and respond to the trigger An instruction to execute the application service event.
本申请中的控制方法、电子设备及计算机可读存储介质,通过在电子设备检测到触发指令的情况下,根据电子设备当前所处的应用场景信息确定触发指令对应的应用服务事件,并执行应用服务事件。如此用户只需要对电子设备输入触发指令,电子设备就会根据当前的应用场景信息自动确定当前用户实际想要的应用服务事件,并直接执行该应用服务事件,无需用户对不同的应用服务事件输入不同的指令,有利于提升电子设备的智能性,及提高用户使用电子设备的效率及体验感。The control method, electronic device, and computer-readable storage medium in this application determine the application service event corresponding to the trigger instruction according to the current application scene information of the electronic device when the electronic device detects the trigger instruction, and execute the application service events. In this way, the user only needs to input a trigger command to the electronic device, and the electronic device will automatically determine the application service event that the current user actually wants according to the current application scene information, and directly execute the application service event, without the need for the user to input different application service events. Different commands are beneficial to improve the intelligence of the electronic device, and improve the efficiency and experience of the user in using the electronic device.
本申请实施方式的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实践了解到。Additional aspects and advantages of embodiments of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application.
附图说明Description of drawings
本申请的上述和/或附加的方面和优点从结合下面附图对实施方式的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present application will become apparent and understandable from the description of the embodiments in conjunction with the following drawings, wherein:
图1是本申请某些实施方式中的控制方法的流程示意图;FIG. 1 is a schematic flow diagram of a control method in some embodiments of the present application;
图2及图3是本申请某些实施方式中的第一电子设备的结构示意图;FIG. 2 and FIG. 3 are schematic structural diagrams of the first electronic device in some embodiments of the present application;
图4是本申请某些实施方式中的控制方法的流程示意图;Fig. 4 is a schematic flow chart of a control method in some embodiments of the present application;
图5是本申请某些实施方式中的第二电子设备的结构示意图;Fig. 5 is a schematic structural diagram of a second electronic device in some embodiments of the present application;
图6是本申请某些实施方式中的第一电子设备显示意图信息的示意图;Fig. 6 is a schematic diagram of displaying intent information by the first electronic device in some embodiments of the present application;
图7至图10是本申请某些实施方式中的控制方法的流程示意图;7 to 10 are schematic flowcharts of the control method in some embodiments of the present application;
图11是本申请某些实施方式中的第一电子设备接收分享数据前、更新应用界面后及编辑应用界面后的页面示意图;Fig. 11 is a schematic diagram of the page of the first electronic device before receiving shared data, after updating the application interface and after editing the application interface in some embodiments of the present application;
图12是本申请某些实施方式中的控制方法的流程示意图;Fig. 12 is a schematic flowchart of a control method in some embodiments of the present application;
图13是本申请某些实施方式中的第一电子设备及第三电子设备的结构示意图Fig. 13 is a schematic structural diagram of the first electronic device and the third electronic device in some embodiments of the present application
图14是本申请某些实施方式中的控制方法的流程示意图;Fig. 14 is a schematic flowchart of a control method in some embodiments of the present application;
图15是本申请某些实施方式中的第三电子设备显示提示信息的示意图;Fig. 15 is a schematic diagram of prompt information displayed by a third electronic device in some embodiments of the present application;
图16至图17是本申请某些实施方式中的控制方法的流程示意图;16 to 17 are schematic flowcharts of the control method in some embodiments of the present application;
图18是本申请某些实施方式的非易失性计算机可读存储介质与处理器的连接示意图。Fig. 18 is a schematic diagram of connection between a non-volatile computer-readable storage medium and a processor in some embodiments of the present application.
具体实施方式Detailed ways
下面详细描述本申请的实施方式,所述实施方式的示例在附图中示出,其中,相同或类似的标号自始至终表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施方式是示例性的,仅用于解释本申请的实施方式,而不能理解为对本申请的实施方式的限制。Embodiments of the present application are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the drawings are exemplary, are only for explaining the embodiments of the present application, and should not be construed as limiting the embodiments of the present application.
一种控制方法,应用于第一电子设备,所述控制方法包括:在所述第一电子设备检测到触发指令的情况下,确定所述第一电子设备当前所处的应用场景信息;根据所述应用场景信息确定所述触发指令对应的应用服务事件;响应于所述触发指令,执行所述应用服务事件。A control method applied to a first electronic device, the control method comprising: when the first electronic device detects a trigger instruction, determining the application scene information where the first electronic device is currently located; according to the The application scenario information determines the application service event corresponding to the trigger instruction; in response to the trigger instruction, execute the application service event.
在某些实施方式中,所述触发指令包括预设动作,所述控制方法还包括:通过传感器检测所述第一电子设备是否执行所述预设动作。In some implementations, the trigger instruction includes a preset action, and the control method further includes: detecting whether the first electronic device executes the preset action through a sensor.
在某些实施方式中,所述确定所述第一电子设备当前所处的应用场景信息,包括:根据采集信息确定所述应用场景信息,所述采集信息包括第一电子设备的传感器信息、位置信息、所述第一电子设备的当前页面信息,所述第一电子设备的应用程序的运行信息中至少一种。In some implementations, the determining the application scene information where the first electronic device is currently located includes: determining the application scene information according to collected information, the collected information includes sensor information, location of the first electronic device Information, current page information of the first electronic device, and running information of applications of the first electronic device.
在某些实施方式中,所述响应于所述触发指令,执行所述应用服务事件,包括:响应于所述触发指令,与第二电子设备建立通信连接;及接收来自第二电子设备传输的分享数据。In some embodiments, the executing the application service event in response to the trigger instruction includes: establishing a communication connection with the second electronic device in response to the trigger instruction; share data.
在某些实施方式中,所述响应于所述触发指令,执行所述应用服务事件,所述控制方法还包括:响应于所述触发指令,接收所述第二电子设备向所述第一电子设备请求数据的类型和权限;根据所述第二电子设备请求的所述类型和所述权限筛选出待分享数据;及传输所述待分享数据至所述第二电子设备,以用于更新所述第二电子设备的应用界面。In some embodiments, the execution of the application service event in response to the trigger instruction, the control method further includes: in response to the trigger instruction, receiving a message from the second electronic device to the first electronic device The type and authority of the data requested by the device; screening out the data to be shared according to the type and the authority requested by the second electronic device; and transmitting the data to be shared to the second electronic device for updating the Describe the application interface of the second electronic device.
在某些实施方式中,所述响应于所述触发指令,执行所述应用服务事件,所述控制方法还包括:响应于所述触发指令,对所述第二电子设备进行安全校验;在安全校验通过后,执行与第二电子设备建立通信连接的步骤。In some embodiments, executing the application service event in response to the trigger instruction, the control method further includes: performing a security check on the second electronic device in response to the trigger instruction; After the security verification is passed, the step of establishing a communication connection with the second electronic device is performed.
在某些实施方式中,所述响应于所述触发指令,执行所述应用服务事件,所述控制方法还包括:在安全校验通过后,根据所述应用场景信息获取向所述第二电子设备请求数据的类型及权限;发送所述第一电子设备请求数据的所述类型及所述权限至所述第二电子设备,以使所述第二电子设备传输的所述分享数据与第一电子设备请求数据的所述类型及所述权限相匹配。In some implementations, the execution of the application service event in response to the trigger instruction, the control method further includes: after the security check is passed, acquiring the information from the second electronic device according to the application scenario information The type and authority of the data requested by the device; sending the type and the authority of the data requested by the first electronic device to the second electronic device, so that the shared data transmitted by the second electronic device is consistent with the first The electronic device requests that the type of data and the permission match.
在某些实施方式中,在接收到来自所述第二电子设备传输的分享数据的情况下,所述响应于所述触发指令,执行所述应用服务事件,还包括:根据接收到的所述第二电子设备传输的分享数据,更新所述第一电子设备的应用界面。In some embodiments, in the case of receiving the shared data transmitted from the second electronic device, the executing the application service event in response to the trigger instruction further includes: according to the received The sharing data transmitted by the second electronic device updates the application interface of the first electronic device.
在某些实施方式中,所述响应于所述触发指令,执行所述应用服务事件,还包括:根据对所述第一电子设备的输入操作和/或根据所述第三电子设备传输给所述第一电子设备的输入操作,对更新后的所述第一电子设备的应用界面进行编辑,所述编辑包括增加数据、减少数据、及修改数据中的至少一种。In some embodiments, the executing the application service event in response to the trigger instruction further includes: according to the input operation on the first electronic device and/or according to the transmission to the third electronic device The input operation of the first electronic device is used to edit the updated application interface of the first electronic device, and the editing includes at least one of adding data, reducing data, and modifying data.
在某些实施方式中,在接收到来自所述第二电子设备传输的分享数据的情况下,所述响应于所述触发指令,执行所述应用服务事件,还包括:根据所述分享数据生成提示消息,并将所述提示消息传输至第三电子设备,以使所述第三电子设备显示所述提示信息。In some embodiments, in the case of receiving the shared data transmitted from the second electronic device, the executing the application service event in response to the trigger instruction further includes: generating an event based on the shared data A prompt message, and transmit the prompt message to the third electronic device, so that the third electronic device displays the prompt message.
在某些实施方式中,在所述应用场景信息包括购物场景时,所述控制方法还包括:在所述应 用服务事件执行完毕后,生成取件信息并将所述取件信息传输至第三电子设备;及在所述第一电子设备和/或所述第三电子设备达到取货地点时,生成显示操作命令并将所述显示操作命令传输至第三电子设备,以使所述第三电子设备显示所述取件信息。In some embodiments, when the application scenario information includes a shopping scenario, the control method further includes: after the execution of the application service event is completed, generating pickup information and transmitting the pickup information to a third an electronic device; and when the first electronic device and/or the third electronic device arrive at a pick-up location, generate a display operation command and transmit the display operation command to the third electronic device, so that the third electronic device The electronic device displays the pickup information.
在某些实施方式中,所述应用场景信息包括购物场景,所述应用服务事件包括分享购物车数据。In some implementations, the application scenario information includes a shopping scenario, and the application service event includes sharing shopping cart data.
一种第一电子设备,包括感知框架和感知框架。感知框架用于在检测到触发指令的情况下,确定当前所处的应用场景信息。应用引擎用于根据所述应用场景信息确定所述触发指令对应的应用服务事件,及响应于所述触发指令,执行所述应用服务事件。A first electronic device includes a perception frame and a perception frame. The perception framework is used to determine the current application scenario information when a trigger instruction is detected. The application engine is configured to determine an application service event corresponding to the trigger instruction according to the application scenario information, and execute the application service event in response to the trigger instruction.
在某些实施方式中,所述触发指令包括预设动作,所述应用引擎通过传感器检测所述第一电子设备是否执行所述预设动作。In some implementations, the trigger instruction includes a preset action, and the application engine detects whether the first electronic device executes the preset action through a sensor.
在某些实施方式中,所述应用引擎还用于根据采集信息确定所述应用场景信息,所述采集信息包括第一电子设备的传感器信息、位置信息、所述第一电子设备的当前页面信息,所述第一电子设备的应用程序的运行信息中至少一种。In some implementations, the application engine is further configured to determine the application scene information according to collected information, where the collected information includes sensor information, location information, and current page information of the first electronic device , at least one of the running information of the application program of the first electronic device.
在某些实施方式中,所述应用引擎还用于响应于所述触发指令,与第二电子设备建立通信连接;及接收来自第二电子设备传输的分享数据。In some embodiments, the application engine is further configured to establish a communication connection with the second electronic device in response to the trigger instruction; and receive sharing data transmitted from the second electronic device.
在某些实施方式中,所述应用引擎还用于:响应于所述触发指令,接收所述第二电子设备向所述第一电子设备请求数据的类型和权限;根据所述第二电子设备请求的所述类型和所述权限筛选出待分享数据;及传输所述待分享数据至所述第二电子设备,以用于更新所述第二电子设备的应用界面。In some implementations, the application engine is further configured to: in response to the trigger instruction, receive the type and permission of the data requested by the second electronic device from the first electronic device; The type of the request and the permission filter out the data to be shared; and transmitting the data to be shared to the second electronic device for updating the application interface of the second electronic device.
在某些实施方式中,所述应用引擎还用于:响应于所述触发指令,对所述第二电子设备进行安全校验;在安全校验通过后,执行与第二电子设备建立通信连接的步骤。In some embodiments, the application engine is further configured to: perform a security check on the second electronic device in response to the trigger instruction; and establish a communication connection with the second electronic device after the security check is passed. A step of.
在某些实施方式中,所述应用引擎还用于:在安全校验通过后,根据所述应用场景信息获取向所述第二电子设备请求数据的类型及权限;发送所述第一电子设备请求数据的所述类型及所述权限至所述第二电子设备,以使所述第二电子设备传输的所述分享数据与第一电子设备请求数据的所述类型及所述权限相匹配。In some embodiments, the application engine is further configured to: obtain the type and authority of the data requested from the second electronic device according to the application scene information after the security verification is passed; send the first electronic device requesting the type and the permission of the data to the second electronic device, so that the shared data transmitted by the second electronic device matches the type and the permission of the data requested by the first electronic device.
在某些实施方式中,在接收到来自所述第二电子设备传输的分享数据的情况下,所述应用引擎包括界面绘制模块,所述界面绘制模块用于根据接收到的所述第二电子设备传输的分享数据,更新所述第一电子设备的应用界面。In some implementations, when the sharing data transmitted from the second electronic device is received, the application engine includes an interface drawing module, and the interface drawing module is configured to The sharing data transmitted by the device updates the application interface of the first electronic device.
在某些实施方式中,所述应用引擎还用于:根据对所述第一电子设备的输入操作和/或根据所述第三电子设备传输给所述第一电子设备的输入操作,对更新后的所述第一电子设备的应用界面进行编辑,所述编辑包括增加数据、减少数据、及修改数据中的至少一种。In some implementations, the application engine is further configured to update the updated The subsequent application interface of the first electronic device is edited, and the editing includes at least one of adding data, reducing data, and modifying data.
在某些实施方式中,所述应用引擎还用于:根据所述分享数据生成提示消息,并将所述提示 消息传输至第三电子设备,以使所述第三电子设备显示所述提示信息。In some implementations, the application engine is further configured to: generate a prompt message according to the shared data, and transmit the prompt message to a third electronic device, so that the third electronic device displays the prompt message .
在某些实施方式中,在所述应用场景信息包括购物场景时,所述应用引擎还用于:在所述应用服务事件执行完毕后,生成取件信息并将所述取件信息传输至第三电子设备;及在所述第一电子设备和/或所述第三电子设备达到取货地点时,生成显示操作命令并将所述显示操作命令传输至第三电子设备,以使所述第三电子设备显示所述取件信息。In some embodiments, when the application scenario information includes a shopping scenario, the application engine is further configured to: after the execution of the application service event is completed, generate pickup information and transmit the pickup information to the first Three electronic devices; and when the first electronic device and/or the third electronic device arrive at the pick-up location, generate a display operation command and transmit the display operation command to the third electronic device, so that the first electronic device The three electronic devices display the pickup information.
请参阅图1及图2,本申请实施方式提供一种控制方法。控制方法应用于第一电子设备10,控制方法包括:Please refer to FIG. 1 and FIG. 2 , the embodiment of the present application provides a control method. The control method is applied to the first electronic device 10, and the control method includes:
01:在第一电子设备10检测到触发指令的情况下,确定第一电子设备10当前所处的应用场景信息;01: When the first electronic device 10 detects a trigger instruction, determine the application scene information where the first electronic device 10 is currently located;
02:根据应用场景信息确定触发指令对应的应用服务事件;及02: Determine the application service event corresponding to the trigger instruction according to the application scenario information; and
03:响应于触发指令,执行应用服务事件。03: Execute the application service event in response to the trigger instruction.
请结合图2,本申请实施方式还提供一种第一电子设备10。第一电子设备10包括感知框架11及应用引擎12。其中,感知框架11可以执行01中的方法,应用引擎12可以执行02及03中的方法。也即是说,感知框架11用于在第一电子设备10检测到触发指令的情况下,确定第一电子设备10当前所处的应用场景信息;应用引擎12用于根据应用场景信息确定触发指令对应的应用服务事件;及响应于触发指令,执行应用服务事件。Please refer to FIG. 2 , the embodiment of the present application further provides a first electronic device 10 . The first electronic device 10 includes a perception framework 11 and an application engine 12 . Wherein, the perception framework 11 can execute the method in 01, and the application engine 12 can execute the methods in 02 and 03. That is to say, the perception framework 11 is used to determine the application scene information where the first electronic device 10 is currently located when the first electronic device 10 detects the trigger instruction; the application engine 12 is used to determine the trigger instruction according to the application scene information the corresponding application service event; and executing the application service event in response to the trigger instruction.
请结合图3,本申请实施方式还提供一种第一电子设备10。终端10包括一个或多个处理器13、存储器14、和一个或多个程序。其中,一个或多个程序被存储在存储器14中,并且被一个或多个处理器13执行,程序包括用于执行本申请实施方式的控制方法的指令。即,一个或多个处理器13执行程序时,处理器13可以实现01、02及03中的方法。即,一个或多个处理器13用于:在第一电子设备10检测到触发指令的情况下,确定第一电子设备10当前所处的应用场景信息;根据应用场景信息确定触发指令对应的应用服务事件;及响应于触发指令,执行应用服务事件。Please refer to FIG. 3 , the embodiment of the present application further provides a first electronic device 10 . Terminal 10 includes one or more processors 13, memory 14, and one or more programs. Wherein, one or more programs are stored in the memory 14 and executed by one or more processors 13, and the programs include instructions for executing the control method of the embodiment of the present application. That is, when one or more processors 13 execute the program, the processors 13 can implement the methods in 01, 02 and 03. That is, the one or more processors 13 are configured to: when the first electronic device 10 detects the trigger instruction, determine the application scenario information where the first electronic device 10 is currently located; determine the application scenario corresponding to the trigger instruction according to the application scenario information a service event; and executing the application service event in response to the trigger instruction.
本申请中的控制方法及第一电子设备10,通过在第一电子设备10检测到触发指令的情况下,根据第一电子设备10当前所处的应用场景信息确定触发指令对应的应用服务事件,并执行应用服务事件。如此用户只需要对第一电子设备10输入触发指令,第一电子设备10就会根据当前的应用场景信息自动确定当前用户实际想要的应用服务事件,并直接执行该应用服务事件,无需用户对不同的应用服务事件输入不同的指令,有利于提升第一电子设备10的智能性,及提高用户使用第一电子设备10的效率及体验感。In the control method and the first electronic device 10 in this application, when the first electronic device 10 detects the trigger instruction, the application service event corresponding to the trigger instruction is determined according to the application scene information where the first electronic device 10 is currently located, And execute app service events. In this way, the user only needs to input a trigger command to the first electronic device 10, and the first electronic device 10 will automatically determine the application service event that the current user actually wants according to the current application scene information, and directly execute the application service event without the need for the user to Inputting different commands for different application service events is beneficial to improving the intelligence of the first electronic device 10 and improving the user's efficiency and experience in using the first electronic device 10 .
其中,第一电子设备10可以是手机、平板电脑、显示设备、笔记本电脑、智能手表、头显设备、游戏机等。如图3所示,本申请实施方式以第一电子设备10是手机为例进行说明,可以理解,第一电子设备10的具体形式并不限于手机。Wherein, the first electronic device 10 may be a mobile phone, a tablet computer, a display device, a notebook computer, a smart watch, a head-mounted display device, a game console, and the like. As shown in FIG. 3 , the embodiment of the present application is described by taking the first electronic device 10 as a mobile phone as an example. It can be understood that the specific form of the first electronic device 10 is not limited to the mobile phone.
请参阅图4,在一些实施例中,触发指令包括预设动作,控制方法还包括:Please refer to FIG. 4. In some embodiments, the trigger instruction includes preset actions, and the control method further includes:
04:通过传感器检测第一电子设备10是否执行预设动作。04: Use the sensor to detect whether the first electronic device 10 executes a preset action.
请结合图2及图3,在一些实施例中,感知框架11及处理器13均可执行04中的方法。也即是说,感知框架11及处理器13均还可用于通过传感器检测第一电子设备10是否执行预设动作。Please refer to FIG. 2 and FIG. 3 , in some embodiments, both the perception framework 11 and the processor 13 can execute the method in 04 . That is to say, both the perception framework 11 and the processor 13 can also be used to detect whether the first electronic device 10 executes a preset action through a sensor.
在一些实施例中,第一电子设备10中设有传感器(图未示),传感器可以为姿态传感器,用于检测第一电子设备10的姿态信息。当姿态信息表示用户对第一电子设备10做出预设动作,即检测到第一电子设备10执行预设动作时,可以认为此时用户向第一电子设备10输入触发指令。也即是说,当感知框架11(或处理器13)通过传感器检测第一电子设备10是执行预设动作时,第一电子设备10即接收到触发指令。其中,预设动作包括但不限于第一电子设备10与其他电子设备碰一碰、摇晃第一电子设备10及敲击第一电子设备10等,下文中所提及的预设动作相同,在此不赘述。In some embodiments, the first electronic device 10 is provided with a sensor (not shown in the figure), and the sensor may be an attitude sensor for detecting the attitude information of the first electronic device 10 . When the gesture information indicates that the user performs a preset action on the first electronic device 10 , that is, when it is detected that the first electronic device 10 performs a preset action, it can be considered that the user inputs a trigger command to the first electronic device 10 at this time. That is to say, when the perception framework 11 (or the processor 13 ) detects through the sensor that the first electronic device 10 is performing a preset action, the first electronic device 10 receives the trigger instruction. Among them, the preset actions include but not limited to touching the first electronic device 10 with other electronic devices, shaking the first electronic device 10 and knocking the first electronic device 10, etc. The preset actions mentioned below are the same, in I won't go into details here.
在第一电子设备10检测到触发指令的情况下,即第一电子设备10执行预设动作后,感知框架11(或处理器13)确定第一电子设备10当前所处的应用场景信息。具体地,在一些实施例中,确定第一电子设备10当前所处的应用场景信息,包括:根据采集信息确定应用场景信息,采集信息包括第一电子设备10的传感器信息、位置信息、第一电子设备10的当前页面信息,第一电子设备10的应用程序的运行信息中至少一种。When the first electronic device 10 detects a trigger instruction, that is, after the first electronic device 10 executes a preset action, the perception framework 11 (or processor 13 ) determines the application scene information where the first electronic device 10 is currently located. Specifically, in some embodiments, determining the application scene information where the first electronic device 10 is currently located includes: determining the application scene information according to collected information, where the collected information includes sensor information of the first electronic device 10, location information, first At least one of the current page information of the electronic device 10 and the running information of the application program of the first electronic device 10 .
请结合图2及图3,在一些实施例中,感知框架11及处理器13均还可用于根据采集信息确定应用场景信息,采集信息包括第一电子设备10的传感器信息、位置信息、第一电子设备10的当前页面信息,第一电子设备10的应用程序的运行信息中至少一种。Please refer to FIG. 2 and FIG. 3. In some embodiments, both the perception framework 11 and the processor 13 can also be used to determine the application scene information according to the collected information. The collected information includes the sensor information of the first electronic device 10, the location information, the first At least one of the current page information of the electronic device 10 and the running information of the application program of the first electronic device 10 .
其中,传感器信息可以是第一电子设备10的摄像头采集的图像、或者姿态传感器采集的姿态信息、或者环境光传感器采集的环境光亮度信息、或者近场通信感应模块的感应信息;麦克风采集的声音信息等。位置信息则表示第一电子设备10的位置,如家、公司、商城、或者室内的具体位置等。当前页面信息则包括当前页面显示的文字、图片、应用程序等。应用程序的运行信息则包括当前应用程序(APP)是否完成一个任务(例如,导航APP的任务可以是一个导航任务、购物APP则可以是当前购物车是否进行结算等)等,在此不再赘述。Wherein, the sensor information may be the image collected by the camera of the first electronic device 10, or the posture information collected by the posture sensor, or the ambient light brightness information collected by the ambient light sensor, or the sensing information of the near field communication sensing module; the sound collected by the microphone information etc. The location information indicates the location of the first electronic device 10, such as home, company, shopping mall, or a specific indoor location. The current page information includes text, pictures, application programs, etc. displayed on the current page. The running information of the application program includes whether the current application program (APP) completes a task (for example, the task of the navigation APP can be a navigation task, and the shopping APP can be whether the current shopping cart is settled, etc.), etc., and will not be repeated here. .
在获取到采集信息后,感知框架11(或处理器13)可根据采集信息,确定第一电子设备10当前所处的应用场景信息。在一些实施例中,设置于第一电子设备10中的感知框架11能够根据采集信息直接确定第一电子设备10当前所处的应用场景信息。在一些实施例中,感知框架11还可以设置于云端,第一电子设备10将数据上传至云端,借助云端强大的计算力,将采集信息上传到云端处理并确定第一电子设备10当前所处的应用场景信息,以降低第一电子设备10的处理量并快速的确定第一电子设备10当前所处的应用场景信息。当然,在一些实施例中,感知框架11可设置在第一电子设备10端和云端,例如采集信息由第一电子设备10上传到云端,由云端进行数据处理,然后将数据处理后的结果信息发送给第一电子设备10,由第一电子设备10基于结果信 息进行确定第一电子设备10当前所处的应用场景信息,即云端和第一电子设备10配合处理采集信息,确定第一电子设备10当前所处的应用场景信息。After acquiring the collected information, the perception framework 11 (or the processor 13 ) can determine the application scene information where the first electronic device 10 is currently located according to the collected information. In some embodiments, the perception framework 11 set in the first electronic device 10 can directly determine the application scene information where the first electronic device 10 is currently located according to the collected information. In some embodiments, the perception framework 11 can also be set in the cloud, the first electronic device 10 uploads data to the cloud, and with the help of the powerful computing power of the cloud, uploads the collected information to the cloud for processing and determines the current location of the first electronic device 10 The application scene information of the first electronic device 10 is used to reduce the processing load of the first electronic device 10 and quickly determine the application scene information of the first electronic device 10 at present. Of course, in some embodiments, the perception framework 11 can be set on the first electronic device 10 and the cloud, for example, the collected information is uploaded to the cloud by the first electronic device 10, the data is processed by the cloud, and the result information after data processing Send it to the first electronic device 10, and the first electronic device 10 will determine the current application scene information of the first electronic device 10 based on the result information, that is, the cloud and the first electronic device 10 cooperate to process and collect information to determine the first electronic device 10 Information about the current application scenario.
例如,第一电子设备10的当前页面信息表示用户正在浏览购物车的应用界面,感知框架11(或处理器13)可确定当前第一电子设备10所处的应用场景信息包括购物场景。再例如,位置信息表示用户在商场,传感器信息中的图像识别到商品货架,感知框架11(或处理器13)可确定当前第一电子设备10所处的应用场景信息包括购物场景。再例如,位置信息表示用户在公司内部,第一电子设备10的当前页面信息表示用户正在浏览文档,感知框架11(或处理器13)可确定当前第一电子设备10所处的应用场景信息包括会议场景。For example, the current page information of the first electronic device 10 indicates that the user is browsing the application interface of the shopping cart, and the perception framework 11 (or processor 13) can determine that the current application scene information of the first electronic device 10 includes a shopping scene. For another example, the location information indicates that the user is in a shopping mall, the image in the sensor information recognizes a commodity shelf, and the perception framework 11 (or processor 13) can determine that the application scene information where the first electronic device 10 is currently located includes a shopping scene. For another example, the location information indicates that the user is inside the company, the current page information of the first electronic device 10 indicates that the user is browsing documents, and the perception framework 11 (or processor 13) can determine that the current application scene information of the first electronic device 10 includes meeting scene.
在感知框架11(或处理器13)确定当前第一电子设备10所处的应用场景信息后,感知框架11可以将应用场景信息下发至应用引擎12,应用引擎12(或处理器13)根据应用场景信息确定触发指令对应的应用服务事件。需要说明的是,不同应用场景信息具有对应的应用服务事件。After the perception framework 11 (or processor 13) determines the application scene information where the first electronic device 10 is currently located, the perception framework 11 can send the application scene information to the application engine 12, and the application engine 12 (or processor 13) according to The application scenario information determines the application service event corresponding to the trigger instruction. It should be noted that different application scenario information has corresponding application service events.
示例地,在一些实施例中,应用场景信息包括购物场景,应用服务事件包括分享购物车数据。在确定第一电子设备10的应用场景包括购物场景时,可以根据应用场景信息确定应用服务事件包括分享购物车数据。当然,应用场景信息不局限于购物场景,应用服务事件也不局限于分享购物车数据。为了方便说明,本申请实施例中以应用场景信息包括购物场景,应用服务事件包括分享购物车数据为例,进行说明。Exemplarily, in some embodiments, the application scenario information includes a shopping scenario, and the application service event includes sharing shopping cart data. When it is determined that the application scenario of the first electronic device 10 includes a shopping scenario, it may be determined according to the application scenario information that the application service event includes sharing shopping cart data. Of course, application scenario information is not limited to shopping scenarios, and application service events are not limited to sharing shopping cart data. For the convenience of description, in the embodiment of the present application, the application scene information includes the shopping scene, and the application service event includes the shared shopping cart data as an example for description.
在一些实施例,感知框架11(或处理器13)还可以根据第一电子设备10附近的其他电子设备的信息,进一步确定用户需要进行购物车数据分享的对象。示例地,在一个例子中,用户对第一电子设备10做出预设动作,也即姿态传感器检测到第一电子设备10做出预设动作。第一电子设备10向附近基站发出请求,基站会将在第一电子设备10附近且相同时间段内,其他也向基站发送了请求的电子设备的标识发送给第一电子设备10。在第一电子设备10接收到相同时间段内附近也做出预设动作的电子设备的标识后,感知框架11(或处理器13)可确定与第一电子设备10进行购物车数据分享的对象是该电子设备。例如,在相同时间段内,用户U1摇晃第一电子设备10,同时在第一电子设备10附近用户U2摇晃第二电子设备20(如图5所示)。第一电子设备10及第二电子设备20均会向基站发出请求,并且基站会将第二电子设备20的标识发送给第一电子设备10。在第一电子设备10接收到第二电子设备20的标识后,感知框架11(或处理器13)可确定与第一电子设备10进行购物车数据分享的对象是第二电子设备20。在另一个例子中,用户对第一电子设备10做出预设动作,也即姿态传感器检测到第一电子设备10做出预设动作。此时第一电子设备10可以自动开启能够进行通信连接的硬件设备(包括但不限于近场通信NFC模块、蓝牙模块、USB连接模块或无线保真Wi-Fi网络连接模块中的一个或多个),查找周围可被连接的电子设备。在查询到周围可被连接的电子设备后,感知框架11(或处理器13)可确定与第一电子设备10进行购物车数据分享的对象是该电子设备。再例如,在一个例子中,用户U1将第一电子 设备10与第二电子设备20碰一碰,也即姿态传感器检测到第一电子设备10与其他第二电子设备20碰一碰,此时第一电子设备10开启近场通信NFC模块与第二电子设备20的近场通信NFC模块感应,此时感知框架11(或处理器13)可确定与第一电子设备10进行购物车数据分享的对象是第二电子设备20。In some embodiments, the perception framework 11 (or the processor 13 ) may further determine the object that the user needs to share the shopping cart data according to the information of other electronic devices near the first electronic device 10 . Exemplarily, in an example, the user makes a preset action on the first electronic device 10 , that is, the gesture sensor detects that the first electronic device 10 makes a preset action. The first electronic device 10 sends a request to a nearby base station, and the base station will send to the first electronic device 10 the identifiers of other electronic devices that have also sent requests to the base station near the first electronic device 10 and within the same time period. After the first electronic device 10 receives the identification of an electronic device that also performs a predetermined action nearby within the same time period, the perception framework 11 (or processor 13) can determine the object to share shopping cart data with the first electronic device 10 is the electronic device. For example, during the same period of time, the user U1 shakes the first electronic device 10 , and at the same time the user U2 shakes the second electronic device 20 near the first electronic device 10 (as shown in FIG. 5 ). Both the first electronic device 10 and the second electronic device 20 will send a request to the base station, and the base station will send the identifier of the second electronic device 20 to the first electronic device 10 . After the first electronic device 10 receives the identification of the second electronic device 20 , the perception framework 11 (or processor 13 ) may determine that the object for sharing shopping cart data with the first electronic device 10 is the second electronic device 20 . In another example, the user makes a preset action on the first electronic device 10 , that is, the posture sensor detects that the first electronic device 10 makes a preset action. At this time, the first electronic device 10 can automatically turn on the hardware device capable of communication connection (including but not limited to one or more of the near field communication NFC module, bluetooth module, USB connection module or wireless fidelity Wi-Fi network connection module) ) to find nearby electronic devices that can be connected. After querying the surrounding electronic devices that can be connected, the perception framework 11 (or the processor 13 ) can determine that the object to share the shopping cart data with the first electronic device 10 is the electronic device. For another example, in an example, the user U1 touches the first electronic device 10 to the second electronic device 20, that is, the attitude sensor detects that the first electronic device 10 touches other second electronic devices 20, and at this time The first electronic device 10 turns on the near field communication NFC module and senses the near field communication NFC module of the second electronic device 20, and at this time the perception framework 11 (or processor 13) can determine the shopping cart data sharing with the first electronic device 10 The object is the second electronic device 20 .
进一步地,在一些实施例中,在确定应用服务事件后,还可以在第一电子设备10上显示确定的应用服务事件,以供用户确认,如此能够避免错误预测用户的真实意图。例如,如图6所示,假设确定的应用服务事件是与第二电子设备20分享购物车数据,则第一电子设备10能够在显示屏上显示提示信息“当前是否需要与第二电子设备分享购物车数据”,若用户选择“是”,说明当前意图信息与用户真实意图相符合,则继续进行后续步骤;若用户选择“否”,说明当前意图信息与用户真实意图不符合,则不继续执行后续步骤。当然,在一些实施例中,在第一电子设备10上确定的应用服务事件之后,用户还可以根据自己的自身需求编辑更改应用服务事件。Further, in some embodiments, after the application service event is determined, the determined application service event may also be displayed on the first electronic device 10 for confirmation by the user, so as to avoid wrongly predicting the user's real intention. For example, as shown in FIG. 6, assuming that the determined application service event is to share shopping cart data with the second electronic device 20, the first electronic device 10 can display a prompt message on the display screen "Do you currently need to share the shopping cart data with the second electronic device?" shopping cart data", if the user selects "Yes", it means that the current intent information is consistent with the user's real intent, and proceed to the next steps; if the user selects "No", it means that the current intent information does not match the user's real intent, then do not continue Follow the next steps. Of course, in some embodiments, after the application service event is determined on the first electronic device 10, the user can also edit and change the application service event according to his own needs.
在一些实施例中,应用场景信息还可以包含用于建立连接的第二电子设备20的网络信息,第二电子设备20为第一电子设备10分享购物车数据的对象。其中,网络信息包括但不限于蓝牙连接模块的配对信息、WIFI连接模块的配对信息、近场通信NFC模块的配对信息及USB连接模块的配对信息中的一个或多个。示例地,在一些实施例中,感知框架11(或处理器13)可以获取第二电子设备20的网络信息。例如,在一个例子中,在相同时间内,用户U1对第一电子设备10做出预设动作,在第一电子设备10附近的用户U2也对第二电子设备20做出预设动作。第一电子设备10及第二电子设备20向附近基站发出请求,请求中包含各自的网络信息。基站会将第二电子设备20发送的请求发送至第一电子设备10,此时感知框架11可确定第一电子设备10分享数据的对象是第二电子设备20,如此第一电子设备10便获得了第二电子设备20的网络信息。随后感知框架11将包含第二电子设备20的网络信息的应用场景信息下发至应用引擎12。In some embodiments, the application scenario information may also include network information of the second electronic device 20 used to establish the connection, and the second electronic device 20 is the object for which the first electronic device 10 shares the shopping cart data. Wherein, the network information includes but not limited to one or more of the pairing information of the Bluetooth connection module, the pairing information of the WIFI connection module, the pairing information of the NFC module and the pairing information of the USB connection module. Exemplarily, in some embodiments, the perception framework 11 (or the processor 13 ) may acquire network information of the second electronic device 20 . For example, in one example, at the same time, the user U1 makes a preset action on the first electronic device 10 , and the user U2 near the first electronic device 10 also makes a preset action on the second electronic device 20 . The first electronic device 10 and the second electronic device 20 send requests to nearby base stations, and the requests include respective network information. The base station will send the request sent by the second electronic device 20 to the first electronic device 10. At this time, the perception framework 11 can determine that the object of the first electronic device 10 to share data is the second electronic device 20, so that the first electronic device 10 can obtain The network information of the second electronic device 20 is obtained. Then the perception framework 11 delivers the application scenario information including the network information of the second electronic device 20 to the application engine 12 .
在一些实施例中,第一电子设备10包括多个应用引擎12,每个应用引擎12分别与不同的应用程序对应,在获取应用场景信息后,感知框架11将事件分发至对应的应用引擎12中。例如,应用场景信息包含分享商场A的应用程序,则感知框架11将事件分发至与商场A的应用程序对应的应用引擎12中。如此不同的应用程序采用对应的应用引擎12进行后续操作,有利于同时多个应用程序同时进行后续操作。In some embodiments, the first electronic device 10 includes a plurality of application engines 12, and each application engine 12 corresponds to a different application program. After obtaining the application scene information, the perception framework 11 distributes the event to the corresponding application engine 12 middle. For example, if the application scenario information includes the application of the shared shopping mall A, the perception framework 11 distributes the event to the application engine 12 corresponding to the application of the shopping mall A. Such different application programs use the corresponding application engine 12 to perform subsequent operations, which is beneficial for multiple application programs to perform subsequent operations at the same time.
需要说明的是,在第一电子设备10包括多个应用引擎12的情况下,在一些实施例中,第一电子设备10可以仅包括一个感知框架11,感知框架11将应用场景信息分发至与商场A的应用程序对应的应用引擎12中,如此多个应用程序可以都采用同一个感知框架11感知应用场景信息,有利于降低第一电子设备10的功耗。当然,在一些实施例中,在第一电子设备10包括多个应用引擎12的情况下,第一电子设备10也可以包括多个感知框架11,感知框架11与应用引擎12对应,在此不作限制。It should be noted that, when the first electronic device 10 includes multiple application engines 12, in some embodiments, the first electronic device 10 may only include one perception framework 11, and the perception framework 11 distributes the application scene information to the In the application engine 12 corresponding to the application program of shopping mall A, such multiple application programs can all use the same perception framework 11 to perceive the application scene information, which is beneficial to reduce the power consumption of the first electronic device 10 . Of course, in some embodiments, when the first electronic device 10 includes multiple application engines 12, the first electronic device 10 may also include multiple perception frameworks 11, and the perception frameworks 11 correspond to the application engines 12, which will not be described here. limit.
进一步地,在一些实施例中,控制方法还包括:判断应用场景信息中是否包含预设信息。感知框架11还用于判断应用场景信息中是否包含预设信息。在应用场景信息中包含预设信息的情况下,才执行分发应用场景信息给第一电子设备10的应用引擎(即应用引擎12)的步骤。若应用场景信息中不包含预设信息,则不分发该应用场景信息至应用引擎12。其中,预设信息可以是在第一电子设备10出厂之前就默认设置好的,也可以是用户根据自身需求设置的。例如,预设信息包括商场A的应用程序。假设确定第一电子设备10当前所处的应用场景信息中包含商场A的应用程序,即应用场景信息中包含预设信息,则感知框架11将该应用场景信息分发至应用引擎12;假设确定第一电子设备10当前所处的应用场景信息中包含商场B的应用程序,即事件中不包含预设信息,则感知框架11不将该应用场景信息分发至应用引擎12。如此仅对包含预设信息的应用场景信息进行后续处理,相较于对所有应用场景信息均进行后续处理,有利于进一步降低第一电子设备10的功耗。Further, in some embodiments, the control method further includes: judging whether the application scene information contains preset information. The perception framework 11 is also used to determine whether the application scene information contains preset information. The step of distributing the application scenario information to the application engine (ie, the application engine 12 ) of the first electronic device 10 is executed only when the application scenario information includes preset information. If the application scenario information does not include preset information, the application scenario information is not distributed to the application engine 12 . Wherein, the preset information may be set by default before the first electronic device 10 leaves the factory, or may be set by the user according to his own needs. For example, the preset information includes the application program of mall A. Assuming that it is determined that the application scene information of the first electronic device 10 currently includes the application program of mall A, that is, the application scene information contains preset information, the perception framework 11 distributes the application scene information to the application engine 12; If the application scenario information of the electronic device 10 currently includes the application program of the shopping mall B, that is, the event does not include preset information, the perception framework 11 will not distribute the application scenario information to the application engine 12 . In this way, only performing subsequent processing on the application scenario information including the preset information is beneficial to further reducing the power consumption of the first electronic device 10 compared to performing subsequent processing on all application scenario information.
请参阅图7,在一些实施例中,响应于触发指令,执行应用服务事件,包括:Referring to FIG. 7, in some embodiments, in response to the trigger instruction, executing an application service event includes:
031:响应于触发指令,与第二电子设备20建立通信连接;及031: Establish a communication connection with the second electronic device 20 in response to the trigger instruction; and
032:接收来自第二电子设备20传输的分享数据。032: Receive the shared data transmitted from the second electronic device 20 .
请结合图2及图3,在一些实施例中,应用引擎12及处理器13均可执行031及032中的方法。也即是说,应用引擎12及处理器13均还可用于:响应于触发指令,与第二电子设备20建立通信连接;及接收来自第二电子设备20传输的分享数据。Please refer to FIG. 2 and FIG. 3 , in some embodiments, both the application engine 12 and the processor 13 can execute the methods in 031 and 032 . That is to say, both the application engine 12 and the processor 13 are further configured to: establish a communication connection with the second electronic device 20 in response to a trigger instruction; and receive shared data transmitted from the second electronic device 20 .
应用引擎12(或处理器30)响应于触发指令,建立第一电子设备10及第二电子设备20之间的通信连接。示例地,在一些实施例中,应用引擎12(或处理器30)可以根据第一电子设备10的网络信息及第二电子设备20的网络信息,建立第一电子设备10及第二电子设备20之间的通信连接。The application engine 12 (or the processor 30 ) establishes a communication connection between the first electronic device 10 and the second electronic device 20 in response to the trigger instruction. For example, in some embodiments, the application engine 12 (or the processor 30) can establish the network information of the first electronic device 10 and the second electronic device 20 according to the network information of the first electronic device 10 and the network information of the second electronic device 20. communication link between.
以应用引擎12根据第一电子设备10的网络信息及第二电子设备20的网络信息,建立第一电子设备10及第二电子设备20之间的通信连接为例,具体地,请结合图2,在一些实施例中,应用引擎12包括执行引擎121及连接管理模块122,执行引擎121获取第二电子设备20的网络信息,同时执行引擎121获取第一电子设备10的网络信息。其中,获取的第一电子设备10的网络信息需要与第二电子设备20的网络信息对应。例如,假设第二电子设备20的网络信息为第二电子设备20的蓝牙模块配对信息,则第一第电子设备10的网络信息也应为第一电子设备10的蓝牙模块配对信息。随后,连接管理模块122根据第一电子设备10的网络信息及第二电子设备20的网络信息,通过与网络信息对应的硬件,建立第一电子设备10及第二电子设备20之间的通信连接。例如,假设第二电子设备20的网络信息为第二电子设备20的蓝牙模块配对信息,则连接管理模块122根据第一电子设备10的蓝牙模块配对信息及第二电子设备20的蓝牙模块配对信息,通过蓝牙连接模块建立第一电子设备10及第二电子设备20之间的通信连接。当然,在一些实施例中, 也可以由连接管理模块122获取第二电子设备20的网络信息及第一电子设备10的网络信息,在此不作限制。Take the application engine 12 establishing a communication connection between the first electronic device 10 and the second electronic device 20 according to the network information of the first electronic device 10 and the network information of the second electronic device 20 as an example. Specifically, please refer to FIG. 2 , in some embodiments, the application engine 12 includes an execution engine 121 and a connection management module 122, the execution engine 121 obtains the network information of the second electronic device 20, and the execution engine 121 obtains the network information of the first electronic device 10. Wherein, the acquired network information of the first electronic device 10 needs to correspond to the network information of the second electronic device 20 . For example, assuming that the network information of the second electronic device 20 is the Bluetooth module pairing information of the second electronic device 20 , the network information of the first electronic device 10 should also be the Bluetooth module pairing information of the first electronic device 10 . Subsequently, the connection management module 122 establishes a communication connection between the first electronic device 10 and the second electronic device 20 through hardware corresponding to the network information according to the network information of the first electronic device 10 and the network information of the second electronic device 20 . For example, assuming that the network information of the second electronic device 20 is the pairing information of the Bluetooth module of the second electronic device 20, the connection management module 122, according to the pairing information of the Bluetooth module of the first electronic device 10 and the pairing information of the Bluetooth module of the second electronic device 20 , establishing a communication connection between the first electronic device 10 and the second electronic device 20 through the Bluetooth connection module. Certainly, in some embodiments, the network information of the second electronic device 20 and the network information of the first electronic device 10 may also be acquired by the connection management module 122 , which is not limited here.
在建立第一电子设备10及第二电子设备20之间的通信连接后,第一电子设备10的应用引擎12(或处理器30)还可以接收来自第二电子设备20传输的分享数据。由于跨设备分享数据通常是通过扫描同一个二维码的方式或者通过在即时通讯应用里以转发的方式分享给对方。例如,购物时,不同家庭成员在购物清单上添加了不同的商品,需要挨个转发进行分享来确保所有家庭成员的商品都在同一个购物车上,来进行付款。此种数据分享方式比较复杂,而且是以非自然交互的方式进行操作,分享效率较低,用户体验差。然而,在本申请实施例中,只需要用户对第一电子设备10输入触发指令,即在第一电子设备10检测到触发指令的情况下,且确定第一电子设备10当前所处的应用场景信息包含购物场景时,第一电子设备10能够自动建立与第二电子设备10的通信连接,以接收来自第二电子设备20传输的分享数据。如此能够实现跨电子设备之间的应用数据的有效分享,相较于通过扫描同一个二维码或者通过即时通讯应用里以转发的方式分享给对方,大大提高了分享的效率。此外,在本申请实施方式中,无需通过服务器或云端中转数据,就能够实现跨电子设备之间的数据传输,有利于降低数据泄露的风险,提高安全性。After the communication connection between the first electronic device 10 and the second electronic device 20 is established, the application engine 12 (or processor 30 ) of the first electronic device 10 can also receive the sharing data transmitted from the second electronic device 20 . Since the sharing of data across devices is usually done by scanning the same QR code or sharing it with the other party in the way of forwarding in the instant messaging application. For example, when shopping, different family members add different items to the shopping list, and they need to be forwarded and shared one by one to ensure that the items of all family members are in the same shopping cart for payment. This kind of data sharing method is relatively complicated, and it is operated in an unnatural interactive manner, so the sharing efficiency is low and the user experience is poor. However, in the embodiment of the present application, the user only needs to input a trigger instruction to the first electronic device 10, that is, when the first electronic device 10 detects the trigger instruction, and determine the application scene where the first electronic device 10 is currently located When the information includes a shopping scene, the first electronic device 10 can automatically establish a communication connection with the second electronic device 10 to receive sharing data transmitted from the second electronic device 20 . In this way, the effective sharing of application data across electronic devices can be realized, which greatly improves the efficiency of sharing compared to sharing to the other party by scanning the same two-dimensional code or by forwarding in an instant messaging application. In addition, in the embodiment of the present application, data transmission across electronic devices can be realized without transferring data through a server or cloud, which is beneficial to reduce the risk of data leakage and improve security.
特别地,请参阅图8,在一些实施例中,响应于触发指令,执行应用服务事件,还包括:In particular, referring to FIG. 8, in some embodiments, executing an application service event in response to a trigger instruction further includes:
033:响应于触发指令,对第二电子设备20进行安全校验;033: Perform security verification on the second electronic device 20 in response to the trigger instruction;
在安全校验通过后,执行与第二电子设备20建立通信连接的步骤。After the security verification is passed, a step of establishing a communication connection with the second electronic device 20 is performed.
请结合图2及图3,在一些实施例中,应用引擎12及处理器13均还用于执行033中的方法。也即是说,应用引擎12及处理器13均还用于响应于触发指令,对第二电子设备20进行安全校验。在安全校验通过后,执行与第二电子设备20建立通信连接的步骤。Please refer to FIG. 2 and FIG. 3 , in some embodiments, both the application engine 12 and the processor 13 are also used to execute the method in 033 . That is to say, both the application engine 12 and the processor 13 are further configured to perform security verification on the second electronic device 20 in response to the trigger instruction. After the security verification is passed, a step of establishing a communication connection with the second electronic device 20 is performed.
示例地,在一些实施例中,还可以根据第二电子设备20的网络信息,识别第二电子设备20是否为合法的被允许连接的设备。若识别到第二电子设备20为合法的被允许连接的设备,则第二电子设备20通过安全校验;反之,若识别到第二电子设备20不为合法的被允许连接的设备,则第二电子设备20不通过安全校验。只有在安全校验通过后,才执行建立第一电子设备10与第二电子设备20之间的通信连接的步骤,以使第一电子设备10能够接收到第二电子设备20传输的分享数据,如此能够进一步提升数据分享的安全性。For example, in some embodiments, it may also be identified according to the network information of the second electronic device 20 whether the second electronic device 20 is a legal device allowed to connect. If it is recognized that the second electronic device 20 is a legal device that is allowed to be connected, then the second electronic device 20 passes the security check; otherwise, if it is recognized that the second electronic device 20 is not a legal device that is allowed to be connected, then the second Second, the electronic device 20 does not pass the security check. Only after the safety verification is passed, the step of establishing a communication connection between the first electronic device 10 and the second electronic device 20 is performed, so that the first electronic device 10 can receive the shared data transmitted by the second electronic device 20, This can further enhance the security of data sharing.
请参阅图9,在一些实施例中,响应于触发指令,执行应用服务事件,还包括:Referring to FIG. 9, in some embodiments, executing an application service event in response to a trigger instruction further includes:
034:在安全校验通过后,根据应用场景信息获取向第二电子设备20请求数据的类型及权限;及034: After passing the security check, obtain the type and authority of the data requested from the second electronic device 20 according to the application scenario information; and
035:发送第一电子设备10请求数据的类型及权限至第二电子设备20,以使第二电子设备20传输的分享数据与第一电子设备10请求数据的类型及权限相匹配。035: Send the type and permission of the data requested by the first electronic device 10 to the second electronic device 20, so that the shared data transmitted by the second electronic device 20 matches the type and permission of the data requested by the first electronic device 10.
请结合图2及图3,在一些实施例中,应用引擎12及处理器13均还用于执行034及035中的 方法。也即是说,应用引擎12及处理器13均还用于在安全校验通过后,根据应用场景信息获取向第二电子设备20请求数据的类型及权限;及发送第一电子设备10请求数据的类型及权限至第二电子设备20,以使第二电子设备20传输的分享数据与第一电子设备10请求数据的类型及权限相匹配。Please refer to FIG. 2 and FIG. 3 , in some embodiments, both the application engine 12 and the processor 13 are also used to execute the methods in 034 and 035 . That is to say, both the application engine 12 and the processor 13 are also used to obtain the type and authority of the data requested from the second electronic device 20 according to the application scene information after the security verification is passed; and send the request data to the first electronic device 10 The type and permission of the shared data transmitted by the second electronic device 20 match the type and permission of the data requested by the first electronic device 10 to the second electronic device 20 .
在一些实施例中,应用引擎12(或处理器13)可以根据应用场景信息获取需要向第二电子设备20请求数据的类型及权限。其中,数据类型包括应用的业务数据,和应用的状态数据,及系统的状态数据中的至少一种;数据权限包括可分享、可读及可编辑。示例地,在一些实施例中,预设有不同的应用场景信息对应的请求数据的类型及权限。应用引擎12(或处理器13)在获得应用场景信息后,可以根据应用场景信息获取与其对应的需要向第二电子设备20请求数据的类型及权限。In some embodiments, the application engine 12 (or the processor 13 ) may acquire the type and permission of data that needs to be requested from the second electronic device 20 according to the application scenario information. Wherein, the data type includes at least one of application business data, application status data, and system status data; data permissions include shareable, readable and editable. For example, in some embodiments, the types and permissions of requested data corresponding to different application scenario information are preset. After obtaining the application scenario information, the application engine 12 (or processor 13 ) may request the type and permission of data from the second electronic device 20 according to the application scenario information and corresponding needs.
在获得需要向第二电子设备20请求数据的类型及权限后,向第二电子设备20发送第一电子设备10请求数据的类型及权限,如此能够使第一电子设备10接收到的来自第二电子设备20的分享数据,能够与第一电子设备10请求数据的类型及权限相匹配。After obtaining the type and authority of the data that needs to be requested from the second electronic device 20, send the type and authority of the data requested by the first electronic device 10 to the second electronic device 20, so that the first electronic device 10 can receive the data from the second electronic device 20. The shared data of the electronic device 20 can match the type and authority of the data requested by the first electronic device 10 .
请参阅图10,在一些实施例中,在接收到来自第二电子设备20传输的分享数据的情况下,响应于触发指令,执行应用服务事件,还包括:Please refer to FIG. 10 , in some embodiments, in the case of receiving the shared data transmitted from the second electronic device 20, in response to the trigger instruction, executing the application service event further includes:
036:根据接收到的第二电子设备20传输的分享数据,更新第一电子设备10的应用界面。036: Update the application interface of the first electronic device 10 according to the received sharing data transmitted by the second electronic device 20 .
请结合图2及图3,在一些实施例中,应用引擎12还包括界面绘制模块123。界面绘制模块123及处理器13均还用于执行036中的方法。也即是说,界面绘制模块123及处理器13均还用于根据接收到的第二电子设备20传输的分享数据,更新第一电子设备10的应用界面。Please refer to FIG. 2 and FIG. 3 , in some embodiments, the application engine 12 further includes an interface drawing module 123 . Both the interface drawing module 123 and the processor 13 are also used to execute the method in 036 . That is to say, both the interface drawing module 123 and the processor 13 are further configured to update the application interface of the first electronic device 10 according to the received sharing data transmitted by the second electronic device 20 .
示例地,当第一电子设备10接收到来自第二电子设备20传输的分享数据后,根据分享数据同步更新自身的数据,以获得更新后的数据。随后,界面绘制模块123根据更新后的数据,更新第一电子设备10的应用界面,如此能够使第一设备10的用户更加直观的看到第二电子设备20的用户分享的数据信息。例如,如图11所示,图11左侧图为第一电子设备10接收到来自第二电子设备20传输的分享数据前的应用界面,其中购物车中只有帽子,且帽子的数量为1。第二电子设备20传输的分享数据为增加一顶帽子,及一瓶可乐,则在接收到第二电子设备20传输的分享数据后,界面绘制模块123根据接收到的第二电子设备20传输的分享数据,更新第一电子设备10的应用界面。图11中间的图为第一电子设备10更新后的应用界面,其中购物车中有帽子及可乐,其帽子的数量为2、可乐的数量为1。For example, after receiving the shared data transmitted from the second electronic device 20, the first electronic device 10 synchronously updates its own data according to the shared data to obtain updated data. Subsequently, the interface drawing module 123 updates the application interface of the first electronic device 10 according to the updated data, so that the user of the first device 10 can see the data information shared by the user of the second electronic device 20 more intuitively. For example, as shown in FIG. 11 , the left side of FIG. 11 is the application interface before the first electronic device 10 receives the sharing data transmitted from the second electronic device 20 , where there are only hats in the shopping cart, and the number of hats is 1. The shared data transmitted by the second electronic device 20 is to add a hat and a bottle of Coke. After receiving the shared data transmitted by the second electronic device 20, the interface drawing module 123 Share the data and update the application interface of the first electronic device 10 . The figure in the middle of FIG. 11 is the updated application interface of the first electronic device 10 , where there are hats and cola in the shopping cart, the quantity of hats is 2, and the quantity of cola is 1.
需要说明的是,如图2所示,在一些实施例中,应用引擎12还可包括数据管理模块124,数据管理模块124用于存储数据。在根据分享数据同步更新自身的数据,获得更新后的数据后,将更新后的数据保存在数据管理模块124中。由数据管理模块124向界面绘制模块123发起界面更新请求,随后界面绘制模块123更新第一电子设备10的应用界面。It should be noted that, as shown in FIG. 2 , in some embodiments, the application engine 12 may further include a data management module 124 for storing data. After synchronously updating its own data according to the shared data and obtaining the updated data, the updated data is stored in the data management module 124 . The data management module 124 initiates an interface update request to the interface drawing module 123 , and then the interface drawing module 123 updates the application interface of the first electronic device 10 .
请参阅图12及图13,在一些实施例中,响应于触发指令,执行应用服务事件,还包括:Referring to FIG. 12 and FIG. 13, in some embodiments, executing an application service event in response to a trigger instruction further includes:
037:根据对第一电子设备10的输入操作和/或根据第三电子设备30传输给第一电子设备10的输入操作,对更新后的第一电子设备10的应用界面进行编辑,编辑包括增加数据、减少数据、及修改数据中的至少一种。037: Edit the updated application interface of the first electronic device 10 according to the input operation on the first electronic device 10 and/or according to the input operation transmitted from the third electronic device 30 to the first electronic device 10, the editing includes adding At least one of data, reducing data, and modifying data.
请结合图2及图3,在一些实施例中,应用引擎12及处理器13均还用于执行步骤037中的方法。也即是说,应用引擎12及处理器13均还用于根据对第一电子设备10的输入操作和/或根据第三电子设备30传输给第一电子设备10的输入操作,对更新后的第一电子设备10的应用界面进行编辑,编辑包括增加数据、减少数据、及修改数据中的至少一种。Please refer to FIG. 2 and FIG. 3 , in some embodiments, both the application engine 12 and the processor 13 are also used to execute the method in step 037 . That is to say, both the application engine 12 and the processor 13 are also configured to update the updated The application interface of the first electronic device 10 performs editing, and the editing includes at least one of adding data, reducing data, and modifying data.
其中,第三电子设备30为与第一电子设备10通信连接的穿戴设备,例如第三电子设备30可以是智能手表、智能眼镜、智能手环等,在此不作限制。为了方便说明,在本申请实施方式中,以第三电子设备30为智能手表进行说明。Wherein, the third electronic device 30 is a wearable device communicatively connected with the first electronic device 10 , for example, the third electronic device 30 may be a smart watch, smart glasses, smart bracelet, etc., which is not limited here. For convenience of description, in the embodiment of the present application, the third electronic device 30 is described as a smart watch.
示例地,在根据第二电子设备20分享的数据对应用界面进行更新后,此时还可以根据对第一电子设备10的输入操作对更新后的第一电子设备10的应用界面进行编辑,编辑包括增加数据、减少数据、及修改数据中的至少一种。其中,对第一电子设备10的输入操作包括但不限于触摸输入及语音输入中的至少一种。例如,如在图11所述的实施例中,由于第二电子设备20传输的分享数据为增加一顶帽子及一瓶可乐,则更新后的应用界面如图11中间的图所示,其中购物车中有帽子及可乐,其帽子的数量为2、可乐的数量为1。假设第一电子设备10的用户不想购买可乐,此时第一电子设备10的用户只需要对第一电子设备10的输入删除可乐的操作,即可使应用数据再次更新,如图11右侧图所示,图11右侧图为第一电子设备10再次更新后的应用界面,其中购物车中仅有帽子,且帽子的数量为2。当然,请结合图13,在一些实施例中,用户也可以对第三电子设备30输入操作,随后第三电子设备30将该输入操作传输给第一电子设备10,应用引擎12(或处理器13)根据接收到的来自第三电子设备30的输入操作对更新后的第一电子设备10的应用界面进行编辑。由于第一电子设备10是手机,第三电子设备30是智能手表,如此能够在用户不方便使用手机的情况下,只需要对智能手表输入操作,即可编辑更新后的第一电子设备10的应用界面。For example, after the application interface is updated according to the data shared by the second electronic device 20, the updated application interface of the first electronic device 10 can also be edited according to the input operation on the first electronic device 10 at this time. It includes at least one of increasing data, reducing data, and modifying data. Wherein, the input operation on the first electronic device 10 includes but not limited to at least one of touch input and voice input. For example, as in the embodiment described in FIG. 11, since the sharing data transmitted by the second electronic device 20 is to add a hat and a bottle of Coke, the updated application interface is as shown in the middle figure of FIG. There are hats and Coke in the car, the number of hats is 2, and the number of Coke is 1. Assuming that the user of the first electronic device 10 does not want to buy Coke, the user of the first electronic device 10 only needs to delete the Coke through the input of the first electronic device 10 to update the application data again, as shown on the right side of Figure 11 As shown, the right side of FIG. 11 shows the updated application interface of the first electronic device 10 , where there are only hats in the shopping cart, and the number of hats is 2. Of course, please refer to FIG. 13 , in some embodiments, the user can also input an operation to the third electronic device 30, and then the third electronic device 30 transmits the input operation to the first electronic device 10, and the application engine 12 (or processor 13) Edit the updated application interface of the first electronic device 10 according to the input operation received from the third electronic device 30 . Since the first electronic device 10 is a mobile phone and the third electronic device 30 is a smart watch, it is possible to edit the updated first electronic device 10 only by inputting an operation on the smart watch when the user is inconvenient to use the mobile phone. application interface.
当第三电子设备30与第一电子设备10通信连接时,第一电子设备10还可以传输信息至第三电子设备30。具体地,请参阅图14,在第一电子设备10接收到来自第二电子设备20传输的分享数据的情况下,响应于触发指令,执行应用服务事件,还包括:When the third electronic device 30 communicates with the first electronic device 10 , the first electronic device 10 can also transmit information to the third electronic device 30 . Specifically, referring to FIG. 14 , in the case that the first electronic device 10 receives the shared data transmitted from the second electronic device 20, in response to a trigger instruction, executing an application service event further includes:
038:根据分享数据生成提示消息,并将提示消息传输至第三电子设备30,以使第三电子设备30显示提示信息。038: Generate a prompt message according to the shared data, and transmit the prompt message to the third electronic device 30, so that the third electronic device 30 displays the prompt message.
请结合图2及图3,在一些实施例中,应用引擎12及处理器13均还用于执行步骤038中的方法。也即是说,应用引擎12及处理器13均还用于根据分享数据生成提示消息,并将提示消息传 输至第三电子设备30,以使第三电子设备30显示提示信息。Please refer to FIG. 2 and FIG. 3 , in some embodiments, both the application engine 12 and the processor 13 are further configured to execute the method in step 038 . That is to say, both the application engine 12 and the processor 13 are also configured to generate a prompt message according to the shared data, and transmit the prompt message to the third electronic device 30, so that the third electronic device 30 displays the prompt message.
示例地,在一些实施例中,在第一电子设备10接收到来自第二电子设备20传输的分享数据的情况下,应用引擎12(或处理器13)根据接收到的分享数据生成提示信息。其中,提示消息用于提醒用户第二电子设备20分享了什么数据。例如,如图15所示的实施例,其中第二电子设备20传输的分享数据为增加一顶帽子及一瓶可乐,则提示信息可以为“增加一顶帽子及一瓶可乐”。在生成提示信息后,第一电子设备10将该提示信息传输至与其通信连接的第三电子设备30,以使第三电子设备30显示提示信息。也即,第三电子设备30在接收到提示信息后,在其显示屏中显示该提示信息。由于第一电子设备10是手机,第三电子设备30是智能手表,如此能够在用户不方便使用手机的情况下,也能够知道第二电子设备20分享了何种数据。For example, in some embodiments, when the first electronic device 10 receives the sharing data transmitted from the second electronic device 20, the application engine 12 (or processor 13) generates prompt information according to the received sharing data. Wherein, the prompt message is used to remind the user what data is shared by the second electronic device 20 . For example, in the embodiment shown in FIG. 15 , where the sharing data transmitted by the second electronic device 20 is to add a hat and a bottle of Coke, the prompt information may be "Add a hat and a bottle of Coke". After generating the prompt information, the first electronic device 10 transmits the prompt information to the third electronic device 30 communicatively connected thereto, so that the third electronic device 30 displays the prompt information. That is, after receiving the prompt information, the third electronic device 30 displays the prompt information on its display screen. Since the first electronic device 10 is a mobile phone and the third electronic device 30 is a smart watch, it is possible for the user to know what data the second electronic device 20 shares when it is inconvenient for the user to use the mobile phone.
请参阅图16,在一些实施例中,应用场景信息包括购物场景时,控制方法还包括:Please refer to FIG. 16. In some embodiments, when the application scenario information includes a shopping scenario, the control method further includes:
05:在应用服务事件执行完毕后,生成取件信息并将取件信息传输至第三电子设备30;及05: After the execution of the application service event is completed, generate pickup information and transmit the pickup information to the third electronic device 30; and
06:在第一电子设备10和/或第三电子设备30到达取货地点时,生成显示操作命令并将显示操作命令传输至第三电子设备30,以使第三电子设备30显示取件信息。06: When the first electronic device 10 and/or the third electronic device 30 arrive at the pick-up location, generate a display operation command and transmit the display operation command to the third electronic device 30, so that the third electronic device 30 displays the pick-up information .
请结合图2及图3,在一些实施例中,应用引擎12及处理器13均还用于执行步骤05及06中的方法。也即是说,应用引擎12及处理器13均还用于在应用服务事件执行完毕后,生成取件信息并将取件信息传输至第三电子设备30;及在第一电子设备10和/或第三电子设备30到达取货地点时,生成显示操作命令并将显示操作命令传输至第三电子设备30,以使第三电子设备30显示取件信息。Please refer to FIG. 2 and FIG. 3 , in some embodiments, both the application engine 12 and the processor 13 are also used to execute the methods in steps 05 and 06 . That is to say, both the application engine 12 and the processor 13 are also configured to generate pickup information and transmit the pickup information to the third electronic device 30 after the execution of the application service event; and in the first electronic device 10 and/or Or when the third electronic device 30 arrives at the pick-up location, generate a display operation command and transmit the display operation command to the third electronic device 30, so that the third electronic device 30 displays the pick-up information.
需要说明的是,在一些实施例中,当应用场景信息包括购物场景时,在用户完成购物车商品的支付后,即可认为应用服务事件执行完毕。此时应用引擎12(或处理器13)生成取件信息并将取件信息传输至第三电子设备30。第三电子设备30在接收到取件消息后,可以立即在其显示屏中显示取件信息,也可以先保存在其存储器中,根据用户的输入操作其显示屏中显示取件信息,在此不作限制。由于第一电子设备10是手机,第三电子设备30是智能手表,如此能够在用户不使用手机的情况下,也能够通过智能手表获取到取件信息。It should be noted that, in some embodiments, when the application scenario information includes a shopping scenario, after the user finishes paying for items in the shopping cart, it can be considered that the execution of the application service event is completed. At this time, the application engine 12 (or the processor 13 ) generates the pick-up information and transmits the pick-up information to the third electronic device 30 . After the third electronic device 30 receives the pick-up message, it can immediately display the pick-up information on its display screen, or store it in its memory first, and display the pick-up information on its display screen according to the user's input operation. No limit. Since the first electronic device 10 is a mobile phone and the third electronic device 30 is a smart watch, the pick-up information can be obtained through the smart watch even when the user does not use the mobile phone.
在第一电子设备10和/或第三电子设备30到达取货地点时,应用引擎12(或处理器13)生成显示操作命令并将显示操作命令传输至第三电子设备30,以使第三电子设备30显示取件信息。也即第三电子设备30在接收到显示操作命令后,第三电子设备30在其显示屏上显示取件信息。如此能够在第一电子设备10和/或第三电子设备30到达取件地址时,无需用户操作,即可自动在第三电子设备30中显示取件信息,方便用户展示取件信息进行取货。When the first electronic device 10 and/or the third electronic device 30 arrive at the pick-up location, the application engine 12 (or processor 13) generates a display operation command and transmits the display operation command to the third electronic device 30, so that the third electronic device 30 The electronic device 30 displays the pick-up information. That is, after the third electronic device 30 receives the display operation command, the third electronic device 30 displays the pick-up information on its display screen. In this way, when the first electronic device 10 and/or the third electronic device 30 arrive at the pick-up address, the pick-up information can be automatically displayed on the third electronic device 30 without user operation, which is convenient for the user to display the pick-up information for pick-up .
请参阅图17,在一些实施例中,响应于触发指令,执行应用服务事件,还包括:Referring to FIG. 17, in some embodiments, in response to the trigger instruction, executing an application service event further includes:
0391:响应于触发指令,接收第二电子设备20向第一电子设备10请求数据的类型和权限;0391: In response to the trigger instruction, receive the type and permission of the data requested by the second electronic device 20 from the first electronic device 10;
0392:根据第二电子设备20请求的类型和权限筛选出待分享数据;及0392: Filter out the data to be shared according to the type and permission requested by the second electronic device 20; and
0393:传输待分享数据至第二电子设备20,以用于更新第二电子设备20的应用界面。0393: Transmit the data to be shared to the second electronic device 20, so as to update the application interface of the second electronic device 20.
请结合图2及图3,在一些实施例中,应用引擎12及处理器13均还用于执行0391、0392及0393中的方法。也即是说,,应用引擎12及处理器13均还用于:响应于触发指令,接收第二电子设备20向第一电子设备10请求数据的类型和权限;根据第二电子设备20请求的类型和权限筛选出待分享数据;及传输待分享数据至第二电子设备20,以用于更新第二电子设备20的应用界面。Please refer to FIG. 2 and FIG. 3 , in some embodiments, the application engine 12 and the processor 13 are also used to execute the methods in 0391 , 0392 and 0393 . That is to say, both the application engine 12 and the processor 13 are further configured to: receive the type and authority of the data requested by the second electronic device 20 from the first electronic device 10 in response to the trigger instruction; The data to be shared is filtered out by type and authority; and the data to be shared is transmitted to the second electronic device 20 for updating the application interface of the second electronic device 20 .
示例地,在建立第一电子设备10及第二电子设备20通信连接后,应用引擎12的连接管理模块121(或处理器13)能够响应于触发指令,接收第二电子设备20向第一电子设备10请求数据的类型和权限。在接收到二电子设备20向第一电子设备10请求数据的类型和权限后,应用引擎12的执行引擎121(或处理器13)根据第二电子设备20请求的类型和权限从第一电子设备10中筛选出待分享数据。Exemplarily, after establishing the communication connection between the first electronic device 10 and the second electronic device 20, the connection management module 121 (or the processor 13) of the application engine 12 can respond to the trigger instruction and receive the communication from the second electronic device 20 to the first electronic device. The device 10 requests the type and permissions of the data. After receiving the type and authority of data requested by the second electronic device 20 from the first electronic device 10, the execution engine 121 (or processor 13) of the application engine 12 transfers data from the first electronic device 12 according to the type and authority requested by the second electronic device 20. 10 to filter out the data to be shared.
特别地,在一些实施例中,应用引擎12包括数据管理模块124,数据管理模块124中存储有数据,在接收到第二电子设备20向第一电子设备10请求数据的类型和权限后,应用引擎12的执行引擎121(或处理器13)根据第二电子设备20请求的类型和权限从第一数据管理模块124中筛选出待分享数据。具体地,在一些实施例中,数据管理模块124存储有不同类型的数据,并且每个类型的数据都具有用于表征其权限的标识信息。在接收到第二电子设备20向第一电子设备10请求数据的类型和权限后,执行应用引擎121根据二电子设备20向第一电子设备10请求数据的类型,在数据管理模块124中获取对应的数据及对应数据的标识信息,随后根据请求数据的权限及对应数据的标识信息,获取待分享数据。In particular, in some embodiments, the application engine 12 includes a data management module 124, and the data management module 124 stores data. After receiving the type and permission of the data requested by the second electronic device 20 from the first electronic device 10, the application The execution engine 121 (or the processor 13 ) of the engine 12 filters the data to be shared from the first data management module 124 according to the type and permission requested by the second electronic device 20 . Specifically, in some embodiments, the data management module 124 stores different types of data, and each type of data has identification information for representing its authority. After receiving the type and authority of the data requested by the second electronic device 20 from the first electronic device 10, the execution application engine 121 obtains the corresponding The data and the identification information of the corresponding data, and then obtain the data to be shared according to the permission of the requested data and the identification information of the corresponding data.
示例地,在一些实施例中,若请求数据的权限包括第一请求权限,且对应的数据的标识信息包括第一权限,则将获取的该数据作为待分享数据。若请求数据的权限包括第一请求权限,但对应的数据的标识信息包括第二权限,则获取的该数据不能作为待分享数据。其中,第一请求权限用于表征请求分享数据,第一权限用于表征数据为可分享数据,第二权限用于表征数据为不可分享数据。例如,假设请求数据的类型为类型A,请求的权限为第一请求权限,即请求分享类型A的数据。执行应用引擎121在数据管理模块124中获取类型为类型A的数据及其对应的标识信息,若数据管理模块124中类型A的数据的标识信息包括第一权限,即说明类型A的数据可分享,此时类型A的数据作为待分享数据;若数据管理模块124中类型A的数据的标识信息包括第二权限,即说明类型A的数据不可分享,此时不能将类型A的数据传输出去。如此不是所有第二电子设备20请求的数据,第一电子设备10能会传输,能够进一步提升第一电子设备10的安全性。For example, in some embodiments, if the permission of the requested data includes the first requested permission, and the identification information of the corresponding data includes the first permission, the obtained data is taken as the data to be shared. If the permission of the requested data includes the first request permission, but the identification information of the corresponding data includes the second permission, the obtained data cannot be used as the data to be shared. Wherein, the first request permission is used to indicate that the data is requested to be shared, the first permission is used to indicate that the data is shareable data, and the second permission is used to indicate that the data is non-shareable data. For example, assume that the type of requested data is type A, and the requested permission is the first requested permission, that is, it is requested to share data of type A. The execution application engine 121 obtains the data of type A and its corresponding identification information in the data management module 124. If the identification information of the data of type A in the data management module 124 includes the first permission, it means that the data of type A can be shared. At this time, the data of type A is used as the data to be shared; if the identification information of the data of type A in the data management module 124 includes the second permission, it means that the data of type A cannot be shared, and the data of type A cannot be transmitted at this time. In this way, not all the data requested by the second electronic device 20 can be transmitted by the first electronic device 10 , which can further improve the security of the first electronic device 10 .
在获得待分享数据后,应用引擎12的连接管理模块122(或处理器13)将待分享数据传输至第二电子设备20,以用于更新第二电子设备20的应用界面。After obtaining the data to be shared, the connection management module 122 (or the processor 13 ) of the application engine 12 transmits the data to be shared to the second electronic device 20 for updating the application interface of the second electronic device 20 .
请参阅图18,本申请实施方式还提供一种包含计算机程序201的非易失性计算机可读存储介质200。当计算机程序201被一个或多个处理器13执行时,使得处理器13执行01、02、03、04、 031、032、033、034、035、036、037、038、05、06、0391、0392及0393中的控制方法。Referring to FIG. 18 , the embodiment of the present application also provides a non-volatile computer-readable storage medium 200 containing a computer program 201 . When the computer program 201 is executed by one or more processors 13, the processors 13 are made to execute 01, 02, 03, 04, 031, 032, 033, 034, 035, 036, 037, 038, 05, 06, 0391, Control methods in 0392 and 0393.
例如,请结合图1,当计算机程序201被一个或多个处理器13执行时,使得处理器13执行以下方法:For example, referring to FIG. 1, when the computer program 201 is executed by one or more processors 13, the processors 13 are made to perform the following methods:
01:在第一电子设备10检测到触发指令的情况下,确定第一电子设备10当前所处的应用场景信息;01: When the first electronic device 10 detects a trigger instruction, determine the application scene information where the first electronic device 10 is currently located;
02:根据应用场景信息确定触发指令对应的应用服务事件;及02: Determine the application service event corresponding to the trigger instruction according to the application scenario information; and
03:响应于触发指令,执行应用服务事件。03: Execute the application service event in response to the trigger instruction.
在本说明书的描述中,参考术语“一个实施方式”、“一些实施方式”、“示意性实施方式”、“示例”、“具体示例”或“一些示例”等的描述意指结合所述实施方式或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施方式或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施方式或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施方式或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, reference to the terms "one embodiment", "some embodiments", "exemplary embodiments", "example", "specific examples" or "some examples" etc. The specific features, structures, materials or features described in the manner or example are included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the described specific features, structures, materials or characteristics may be combined in any suitable manner in any one or more embodiments or examples. In addition, those skilled in the art can combine and combine different embodiments or examples and features of different embodiments or examples described in this specification without conflicting with each other.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。Any process or method descriptions in flowcharts or otherwise described herein may be understood to represent modules, segments or portions of code comprising one or more executable instructions for implementing specific logical functions or steps of the process , and the scope of preferred embodiments of the present application includes additional implementations in which functions may be performed out of the order shown or discussed, including in substantially simultaneous fashion or in reverse order depending on the functions involved, which shall It should be understood by those skilled in the art to which the embodiments of the present application belong.
尽管上面已经示出和描述了本申请的实施方式,可以理解的是,上述实施方式是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施方式进行变化、修改、替换和变型。Although the implementation of the present application has been shown and described above, it can be understood that the above-mentioned implementation is exemplary and should not be construed as limiting the application, and those skilled in the art can make the above-mentioned The embodiments are subject to changes, modifications, substitutions and variations.

Claims (26)

  1. 一种控制方法,应用于第一电子设备,其中,所述控制方法包括:A control method applied to a first electronic device, wherein the control method includes:
    在所述第一电子设备检测到触发指令的情况下,确定所述第一电子设备当前所处的应用场景信息;When the first electronic device detects a trigger instruction, determine the application scenario information where the first electronic device is currently located;
    根据所述应用场景信息确定所述触发指令对应的应用服务事件;determining an application service event corresponding to the trigger instruction according to the application scenario information;
    响应于所述触发指令,执行所述应用服务事件。In response to the trigger instruction, execute the application service event.
  2. 根据权利要求1所述的控制方法,其中,所述触发指令包括预设动作,所述控制方法还包括:The control method according to claim 1, wherein the trigger instruction includes a preset action, and the control method further includes:
    通过传感器检测所述第一电子设备是否执行所述预设动作。A sensor is used to detect whether the first electronic device executes the preset action.
  3. 根据权利要求1所述的控制方法,其中,所述确定所述第一电子设备当前所处的应用场景信息,包括:The control method according to claim 1, wherein the determining the application scene information where the first electronic device is currently located comprises:
    根据采集信息确定所述应用场景信息,所述采集信息包括第一电子设备的传感器信息、位置信息、所述第一电子设备的当前页面信息,所述第一电子设备的应用程序的运行信息中至少一种。Determine the application scene information according to the collected information, the collected information includes sensor information, location information, and current page information of the first electronic device, and the running information of the application program of the first electronic device at least one.
  4. 根据权利要求1所述的控制方法,其中,所述响应于所述触发指令,执行所述应用服务事件,包括:The control method according to claim 1, wherein the executing the application service event in response to the trigger instruction comprises:
    响应于所述触发指令,与第二电子设备建立通信连接;及Establishing a communication connection with the second electronic device in response to the trigger instruction; and
    接收来自第二电子设备传输的分享数据。Receive the shared data transmitted from the second electronic device.
  5. 根据权利要求4所述的控制方法,其中,所述响应于所述触发指令,执行所述应用服务事件,还包括:The control method according to claim 4, wherein the executing the application service event in response to the trigger instruction further comprises:
    响应于所述触发指令,接收所述第二电子设备向所述第一电子设备请求数据的类型和权限;Responding to the trigger instruction, receiving the type and permission of the data requested by the second electronic device from the first electronic device;
    根据所述第二电子设备请求的所述类型和所述权限筛选出待分享数据;及filtering out the data to be shared according to the type and the permission requested by the second electronic device; and
    传输所述待分享数据至所述第二电子设备,以用于更新所述第二电子设备的应用界面。and transmitting the data to be shared to the second electronic device for updating an application interface of the second electronic device.
  6. 根据权利要求4所述的控制方法,其中,所述响应于所述触发指令,执行所述应用服务事件,还包括:The control method according to claim 4, wherein the executing the application service event in response to the trigger instruction further comprises:
    响应于所述触发指令,对所述第二电子设备进行安全校验;performing a security check on the second electronic device in response to the trigger instruction;
    在安全校验通过后,执行与第二电子设备建立通信连接的步骤。After the security verification is passed, a step of establishing a communication connection with the second electronic device is performed.
  7. 根据权利要求6所述的控制方法,其中,所述响应于所述触发指令,执行所述应用服务事件,还包括:The control method according to claim 6, wherein the executing the application service event in response to the trigger instruction further comprises:
    在安全校验通过后,根据所述应用场景信息获取向所述第二电子设备请求数据的类型及权限;After the security check is passed, obtain the type and authority of the data requested from the second electronic device according to the application scenario information;
    发送所述第一电子设备请求数据的所述类型及所述权限至所述第二电子设备,以使所述第二电子设备传输的所述分享数据与第一电子设备请求数据的所述类型及所述权限相匹配。sending the type of data requested by the first electronic device and the permission to the second electronic device, so that the shared data transmitted by the second electronic device is consistent with the type of data requested by the first electronic device and the described permissions match.
  8. 根据权利要求1所述的控制方法,其中,在接收到来自第二电子设备传输的分享数据的情 况下,所述响应于所述触发指令,执行所述应用服务事件,还包括:The control method according to claim 1, wherein, in the case of receiving the shared data transmitted from the second electronic device, the execution of the application service event in response to the trigger instruction further comprises:
    根据接收到的所述第二电子设备传输的分享数据,更新所述第一电子设备的应用界面。updating the application interface of the first electronic device according to the received sharing data transmitted by the second electronic device.
  9. 根据权利要求8所述的控制方法,其中,所述响应于所述触发指令,执行所述应用服务事件,还包括:The control method according to claim 8, wherein the executing the application service event in response to the trigger instruction further comprises:
    根据对所述第一电子设备的输入操作和/或根据第三电子设备传输给所述第一电子设备的输入操作,对更新后的所述第一电子设备的应用界面进行编辑,所述编辑包括增加数据、减少数据、及修改数据中的至少一种。Edit the updated application interface of the first electronic device according to the input operation to the first electronic device and/or according to the input operation transmitted to the first electronic device by the third electronic device, the editing It includes at least one of increasing data, reducing data, and modifying data.
  10. 根据权利要求1所述的控制方法,其中,在接收到来自第二电子设备传输的分享数据的情况下,所述响应于所述触发指令,执行所述应用服务事件,还包括:The control method according to claim 1, wherein in the case of receiving the shared data transmitted from the second electronic device, executing the application service event in response to the trigger instruction further comprises:
    根据所述分享数据生成提示消息,并将所述提示消息传输至第三电子设备,以使所述第三电子设备显示所述提示信息。A prompt message is generated according to the shared data, and the prompt message is transmitted to a third electronic device, so that the third electronic device displays the prompt message.
  11. 根据权利要求1所述的控制方法,其中,在所述应用场景信息包括购物场景时,所述控制方法还包括:The control method according to claim 1, wherein, when the application scene information includes a shopping scene, the control method further includes:
    在所述应用服务事件执行完毕后,生成取件信息并将所述取件信息传输至第三电子设备;及在所述第一电子设备和/或所述第三电子设备达到取货地点时,生成显示操作命令并将所述显示操作命令传输至第三电子设备,以使所述第三电子设备显示所述取件信息。After the execution of the application service event is completed, generating pickup information and transmitting the pickup information to a third electronic device; and when the first electronic device and/or the third electronic device arrive at a pickup location , generating a display operation command and transmitting the display operation command to a third electronic device, so that the third electronic device displays the pick-up information.
  12. 根据权利要求1至11中任一项所述的控制方法,其中,所述应用场景信息包括购物场景,所述应用服务事件包括分享购物车数据。The control method according to any one of claims 1 to 11, wherein the application scenario information includes a shopping scenario, and the application service event includes sharing shopping cart data.
  13. 一种第一电子设备,其中,包括:A first electronic device, comprising:
    感知框架,用于在检测到触发指令的情况下,确定当前所处的应用场景信息;及A perception framework, used to determine the current application scenario information when a trigger instruction is detected; and
    应用引擎,用于根据所述应用场景信息确定所述触发指令对应的应用服务事件,及响应于所述触发指令,执行所述应用服务事件。The application engine is configured to determine the application service event corresponding to the trigger instruction according to the application scenario information, and execute the application service event in response to the trigger instruction.
  14. 根据权利要求13所述的第一电子设备,其中,所述触发指令包括预设动作,所述应用引擎通过传感器检测所述第一电子设备是否执行所述预设动作。The first electronic device according to claim 13, wherein the trigger instruction includes a preset action, and the application engine detects whether the first electronic device executes the preset action through a sensor.
  15. 根据权利要求13所述的第一电子设备,其中,所述应用引擎还用于根据采集信息确定所述应用场景信息,所述采集信息包括第一电子设备的传感器信息、位置信息、所述第一电子设备的当前页面信息,所述第一电子设备的应用程序的运行信息中至少一种。The first electronic device according to claim 13, wherein the application engine is further configured to determine the application scene information according to collected information, and the collected information includes sensor information, location information, and the second electronic device information of the first electronic device. At least one of the current page information of an electronic device and the running information of the application program of the first electronic device.
  16. 根据权利要求13所述的第一电子设备,其中,所述应用引擎还用于响应于所述触发指令,与第二电子设备建立通信连接;及接收来自第二电子设备传输的分享数据。The first electronic device according to claim 13, wherein the application engine is further configured to establish a communication connection with the second electronic device in response to the trigger instruction; and receive sharing data transmitted from the second electronic device.
  17. 根据权利要求16所述的第一电子设备,其中,所述应用引擎还用于:响应于所述触发指令,接收所述第二电子设备向所述第一电子设备请求数据的类型和权限;The first electronic device according to claim 16, wherein the application engine is further configured to: in response to the trigger instruction, receive the type and permission of the data requested by the second electronic device from the first electronic device;
    根据所述第二电子设备请求的所述类型和所述权限筛选出待分享数据;及filtering out the data to be shared according to the type and the permission requested by the second electronic device; and
    传输所述待分享数据至所述第二电子设备,以用于更新所述第二电子设备的应用界面。and transmitting the data to be shared to the second electronic device for updating an application interface of the second electronic device.
  18. 根据权利要求16所述的第一电子设备,其中,所述应用引擎还用于:The first electronic device according to claim 16, wherein the application engine is further used for:
    响应于所述触发指令,对所述第二电子设备进行安全校验;performing a security check on the second electronic device in response to the trigger instruction;
    在安全校验通过后,执行与第二电子设备建立通信连接的步骤。After the security verification is passed, a step of establishing a communication connection with the second electronic device is performed.
  19. 根据权利要求18所述的第一电子设备,其中,所述应用引擎还用于:The first electronic device according to claim 18, wherein the application engine is further used for:
    在安全校验通过后,根据所述应用场景信息获取向所述第二电子设备请求数据的类型及权限;After the security check is passed, obtain the type and authority of the data requested from the second electronic device according to the application scenario information;
    发送所述第一电子设备请求数据的所述类型及所述权限至所述第二电子设备,以使所述第二电子设备传输的所述分享数据与第一电子设备请求数据的所述类型及所述权限相匹配。sending the type of data requested by the first electronic device and the permission to the second electronic device, so that the shared data transmitted by the second electronic device is consistent with the type of data requested by the first electronic device and the described permissions match.
  20. 根据权利要求13所述的第一电子设备,其中,在接收到来自第二电子设备传输的分享数据的情况下,所述应用引擎包括界面绘制模块,所述界面绘制模块用于:The first electronic device according to claim 13, wherein, in the case of receiving the shared data transmitted from the second electronic device, the application engine includes an interface drawing module, and the interface drawing module is used for:
    根据接收到的所述第二电子设备传输的分享数据,更新所述第一电子设备的应用界面。updating the application interface of the first electronic device according to the received sharing data transmitted by the second electronic device.
  21. 根据权利要求20所述的第一电子设备,其中,所述应用引擎还用于:The first electronic device according to claim 20, wherein the application engine is further used for:
    根据对所述第一电子设备的输入操作和/或根据第三电子设备传输给所述第一电子设备的输入操作,对更新后的所述第一电子设备的应用界面进行编辑,所述编辑包括增加数据、减少数据、及修改数据中的至少一种。Edit the updated application interface of the first electronic device according to the input operation to the first electronic device and/or according to the input operation transmitted to the first electronic device by the third electronic device, the editing It includes at least one of increasing data, reducing data, and modifying data.
  22. 根据权利要求13所述的第一电子设备,其中,在接收到来自第二电子设备传输的分享数据的情况下,所述应用引擎还用于:The first electronic device according to claim 13, wherein, in the case of receiving the shared data transmitted from the second electronic device, the application engine is further configured to:
    根据所述分享数据生成提示消息,并将所述提示消息传输至第三电子设备,以使所述第三电子设备显示所述提示信息。A prompt message is generated according to the shared data, and the prompt message is transmitted to a third electronic device, so that the third electronic device displays the prompt message.
  23. 根据权利要求13所述的第一电子设备,其中,在所述应用场景信息包括购物场景时,所述应用引擎还用于:The first electronic device according to claim 13, wherein, when the application scenario information includes a shopping scenario, the application engine is further configured to:
    在所述应用服务事件执行完毕后,生成取件信息并将所述取件信息传输至第三电子设备;及After the execution of the application service event is completed, generating pickup information and transmitting the pickup information to the third electronic device; and
    在所述第一电子设备和/或所述第三电子设备达到取货地点时,生成显示操作命令并将所述显示操作命令传输至第三电子设备,以使所述第三电子设备显示所述取件信息。When the first electronic device and/or the third electronic device arrive at the pick-up location, generate a display operation command and transmit the display operation command to the third electronic device, so that the third electronic device displays the the pickup information.
  24. 根据权利要求13至23中任一项所述的第一电子设备,其中,所述应用场景信息包括购物场景,所述应用服务事件包括分享购物车数据。The first electronic device according to any one of claims 13 to 23, wherein the application scenario information includes a shopping scenario, and the application service event includes sharing shopping cart data.
  25. 一种电子设备,其中,包括:An electronic device, comprising:
    一个或多个处理器、存储器;及one or more processors, memory; and
    一个或多个程序,其中一个或多个所述程序被存储在所述存储器中,并且被一个或多个所述处理器执行,所述程序包括用于执行权利要求1至12任意一项所述的控制方法。One or more programs, wherein one or more of said programs are stored in said memory and executed by one or more of said processors, said programs comprising means for performing any one of claims 1 to 12 the control method described above.
  26. 一种包含计算机程序的非易失性计算机可读存储介质,所述计算机程序被处理器执行时,使得所述处理器执行权利要求1-12任意一项所述的控制方法。A non-volatile computer-readable storage medium containing a computer program, when the computer program is executed by a processor, the processor is made to execute the control method described in any one of claims 1-12.
PCT/CN2022/133956 2021-12-14 2022-11-24 Control method, electronic device, and computer-readable storage medium WO2023109452A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111531934.4A CN114265641A (en) 2021-12-14 2021-12-14 Control method, electronic device, and computer-readable storage medium
CN202111531934.4 2021-12-14

Publications (1)

Publication Number Publication Date
WO2023109452A1 true WO2023109452A1 (en) 2023-06-22

Family

ID=80827273

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/133956 WO2023109452A1 (en) 2021-12-14 2022-11-24 Control method, electronic device, and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN114265641A (en)
WO (1) WO2023109452A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114265641A (en) * 2021-12-14 2022-04-01 Oppo广东移动通信有限公司 Control method, electronic device, and computer-readable storage medium
CN115150507A (en) * 2022-05-07 2022-10-04 Oppo广东移动通信有限公司 Service scheduling method and system, electronic device and computer readable storage medium
CN115002274B (en) * 2022-05-07 2024-02-20 Oppo广东移动通信有限公司 Control method and device, electronic equipment and computer readable storage medium
CN115118714A (en) * 2022-06-24 2022-09-27 Oppo广东移动通信有限公司 Data sharing method, system and device, terminal device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104780209A (en) * 2015-04-07 2015-07-15 北京奇点机智信息技术有限公司 Portable equipment and server for realizing sharing interface scenario
CN105278986A (en) * 2015-09-30 2016-01-27 小米科技有限责任公司 Control method and apparatus of electronic device
CN111158624A (en) * 2019-12-31 2020-05-15 维沃移动通信有限公司 Application sharing method, electronic equipment and computer readable storage medium
CN111813299A (en) * 2020-05-29 2020-10-23 维沃移动通信有限公司 Information sharing method, information sharing device and electronic equipment
CN111949960A (en) * 2020-05-14 2020-11-17 华为技术有限公司 Data sharing method, electronic device and system
CN114265641A (en) * 2021-12-14 2022-04-01 Oppo广东移动通信有限公司 Control method, electronic device, and computer-readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104780209A (en) * 2015-04-07 2015-07-15 北京奇点机智信息技术有限公司 Portable equipment and server for realizing sharing interface scenario
CN105278986A (en) * 2015-09-30 2016-01-27 小米科技有限责任公司 Control method and apparatus of electronic device
CN111158624A (en) * 2019-12-31 2020-05-15 维沃移动通信有限公司 Application sharing method, electronic equipment and computer readable storage medium
CN111949960A (en) * 2020-05-14 2020-11-17 华为技术有限公司 Data sharing method, electronic device and system
CN111813299A (en) * 2020-05-29 2020-10-23 维沃移动通信有限公司 Information sharing method, information sharing device and electronic equipment
CN114265641A (en) * 2021-12-14 2022-04-01 Oppo广东移动通信有限公司 Control method, electronic device, and computer-readable storage medium

Also Published As

Publication number Publication date
CN114265641A (en) 2022-04-01

Similar Documents

Publication Publication Date Title
WO2023109452A1 (en) Control method, electronic device, and computer-readable storage medium
US20230037595A1 (en) Image management system, image management method, and computer program product
EP3276910B1 (en) Bluetooth-based identity recognition method and device
US9788206B2 (en) Method and apparatus for sharing content
JP6228676B2 (en) Connection state prompting method and apparatus
US10462071B2 (en) Method and device for removing a control relationship between a user account and a device
US20140181683A1 (en) Method and system for controlling external device
US10327015B2 (en) Picture combining method, terminal, and picture combining system
US20190095887A1 (en) Resource transferring method and apparatus
CN112994997B (en) Processing method, processing apparatus, and storage medium
JP2017504921A (en) Instant messaging method, apparatus, program, and recording medium
JP2015537263A (en) Method, terminal, and system for sharing information with digital television terminal
CN111290695B (en) Terminal control method and device based on priority control and terminal
CN110166439B (en) Equipment sharing method, terminal, router and server
CN114629932B (en) Cooperative method between electronic devices, electronic device and storage medium
CN108012270B (en) Information processing method, equipment and computer readable storage medium
JP6568007B2 (en) Wearable terminal, communication method and program thereof
JP7153474B2 (en) METHOD AND SYSTEM USING COMMUNICATION TECHNOLOGY BETWEEN DEVICES WHEN TRANSMITTING FILES USING MESSENGER
US11128623B2 (en) Service providing system, service delivery system, service providing method, and non-transitory recording medium
US11076010B2 (en) Service providing system, service delivery system, service providing method, and non-transitory recording medium
US10313827B2 (en) Server and method for providing content, and computer-readable storage medium for computer program
US10929703B2 (en) Method apparatus and program product for enabling two or more electronic devices to perform operations based on a common subject
KR102652361B1 (en) Method for sharing content and electronic device thereof
US11108772B2 (en) Service providing system, service delivery system, service providing method, and non-transitory recording medium
JP6922336B2 (en) Information processing equipment, information processing methods, information processing programs and information processing systems

Legal Events

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

Ref document number: 22906203

Country of ref document: EP

Kind code of ref document: A1