Data processing method and electronic device
Through the interactive operation between the first electronic device and the second electronic device, data is automatically identified and transmitted using product and application configuration information, which solves the tedious problem of users manually transmitting data and achieves efficient data processing flow and improved user experience.
Patent Information
- Application Number
- PCT/CN2024/140385
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-04-19
- Filing Date
- 2024-12-18
- Publication Date
- 2025-10-23
AI Technical Summary
Users need to manually transfer data collected by one electronic device to another electronic device for processing, which results in cumbersome operations and poor user experience.
Through interactive operations between the first electronic device and the second electronic device, the target data is automatically acquired and the second electronic device is instructed to use the target application for processing. The product and application configuration information is used to identify and transmit data, and communication methods such as Bluetooth, Wi-Fi, and cellular networks are supported.
It improves the flow efficiency of data processing, avoids the tedious steps of manual transmission and processing by users, and improves the user experience.
Smart Images

Figure CN2024140385_23102025_PF_FP_ABST
Abstract
Description
Data processing method and electronic device
[0001] The present application claims priority to the Chinese patent application No. 202410480546.5, filed on April 19, 2024, entitled "Data processing method and electronic device", the whole content of which is incorporated herein by reference. TECHNICAL FIELD
[0002] Embodiments of the present application relate to the field of data processing of intelligent devices, in particular to a data processing method and an electronic device data processing product. BACKGROUND
[0003] With the increasingly wide application of intelligent devices in daily life, users can obtain various data through intelligent devices and process the data using intelligent devices. For example, a user uses a mobile phone to take a photo, beautifies the photo through a photo application of the mobile phone, or obtains a two-dimensional code through photographing or scanning, calls an application of the mobile phone to parse a web page link corresponding to the two-dimensional code, and finally opens the web page link through a browser application of the mobile phone to browse the web page.
[0004] However, if a user wants to send data collected / saved by one electronic device to another electronic device for processing, the data needs to be transmitted to the other electronic device and processed using the other electronic device. For example, if a user wants to finely process a photo taken by a mobile phone, the user will send the photo to a personal computer (PC) and process the photo through a photo editing application of the PC. For another example, if a user parses a web page link corresponding to a two-dimensional code through an application of the mobile phone, only a browser of the PC supports the web page link, the user will send the web page link to the PC and open the web page link through the browser application of the PC. The above data transmission process needs to be manually completed by the user and is relatively cumbersome, resulting in poor user experience. SUMMARY
[0005] The present application provides an electronic device and a data processing method thereof.
[0006] In a first aspect, the present application provides a data processing method applied to a first electronic device, the method comprising:
[0007] In response to an interactive operation between the first electronic device and a second electronic device, obtaining device information of the second electronic device; determining at least one application supported by the second electronic device based on the device information of the second electronic device; determining a target application from the at least one application supported by the second electronic device, and transmitting first data to the second electronic device; triggering the second electronic device to process the first data based on the target application.
[0008] In this specification, the first electronic device and the second electronic device can be a mobile phone and a personal computer respectively. The device information of the second electronic device can include a product name or a product ID of the second electronic device, which can be used to uniquely identify the second electronic device, and a device type, which can be used to determine at least one application supported by the second electronic device. The target application can be an application supported by the second electronic device for processing the first data. The interaction operation can include an interaction mode / interaction operation between the first electronic device and the second electronic device, such as a tap-to-tap operation or a data sharing operation.
[0009] Through the above data processing method, after the user obtains the first data through the first electronic device, the second electronic device can automatically obtain the target data based on the interaction operation between the electronic devices, and process the target data by instructing the second electronic device to use the target application, thereby improving the flow efficiency of data processing. The user needs to perform a transmission operation of the target data between the electronic devices first, and then use the target application of the second electronic device to complete the data processing of the target data, which avoids the cumbersome steps, realizes the fast processing of the target data between the electronic devices, and improves the user experience.
[0010] In a possible implementation of the first aspect, when the interaction operation occurs between the first electronic device and the second electronic device, the first data is in a first state on the first electronic device, and the first state includes an open state or a selected state.
[0011] In this specification, the open state can mean that the first electronic device currently displays or currently runs the first data. For example, when the first data is a photo, the open state can mean that the first electronic device currently displays the photo, and when the target data is music, the open state can mean that the first electronic device currently plays the music. The selected state can mean that the first electronic device selects the first data in the application of the first electronic device in response to a user operation. For example, when the first data is a photo, the selected state can mean that the photo is selected in the gallery application of the first electronic device, and when the first data is a file, the selected state can mean that the file is selected in the folder application of the first electronic device.
[0012] It can be seen that when the first data is in the first state on the first electronic device, the second electronic device can automatically obtain the first data based on the interaction mode between the electronic devices, and instruct the second electronic device to process the first data using the target application, thereby realizing the fast processing of the first data between the electronic devices and improving the user experience.
[0013] In a possible implementation of the first aspect, the first data is transmitted to the second electronic device, including: transmitting the first data in the first state on the first electronic device when the interaction between the first electronic device and the second electronic device occurs, to the second electronic device.
[0014] In the specification, the first electronic device can automatically transmit the first data currently displayed, currently running or selected by the user to the second electronic device when the interaction between the first electronic device and the second electronic device occurs.
[0015] It can be seen that the interaction between the first electronic device and the second electronic device does not require the user to first transmit the first data to the second electronic device through, for example, opening Wi-Fi or Bluetooth transmission through a sharing button or opening an application, thereby improving the efficiency of data processing.
[0016] In a possible implementation of the first aspect, the method further includes: the first electronic device obtaining product configuration information and application configuration information, wherein the product configuration information includes product IDs, product names and device types of a plurality of electronic devices, and the application configuration information includes application names, application package names and device types supported by a plurality of applications.
[0017] In the specification, the first electronic device can obtain product configuration information of a plurality of electronic devices and application configuration information supported by the electronic device in advance. The product configuration information can mainly include product IDs, product names and device types, wherein the product IDs and the product names can be used to uniquely identify the second electronic device, and the device types can be used to determine at least one application supported by the second electronic device in combination with the application configuration information. Each application included in the application configuration information records the device types of the electronic devices that can be supported.
[0018] It can be seen that the first electronic device can obtain the product configuration information and the application configuration information when starting up and / or after a specified period. When the interaction between the first electronic device and the second electronic device is performed, the first electronic device can determine whether the first data needs to be transmitted to the second electronic device and instruct the second electronic device to process the first data according to the product configuration information and the application configuration information obtained in advance, thereby improving the efficiency of data processing.
[0019] In a possible implementation of the first aspect, when the device information of the second electronic device includes a device type of the second electronic device, the at least one application supported by the second electronic device is determined based on the device information of the second electronic device, including: determining the at least one application corresponding to the device type of the second electronic device according to the application configuration information.
[0020] In the present specification, the application configuration information herein includes the device type of the electronic device that each application can support. When the above-mentioned interaction operation is performed between the first electronic device and the second electronic device, the first electronic device can obtain the device type of the second electronic device, and determine at least one application supported by the second electronic device based on the device type from the application configuration information. For example, when the second electronic device is a personal computer, it can be determined that the personal computer supports a photo application, a music application, a video application, and the like.
[0021] It can be seen that, according to the correspondence between the application and the device type in the application configuration information, the first electronic device can determine at least one application that the second electronic device can support. The first electronic device can automatically identify the application for processing the first data.
[0022] In a possible implementation of the first aspect, in a case where the device information of the second electronic device includes the product ID or the product name of the second electronic device, but does not include the device type of the second electronic device, the determining of the at least one application supported by the second electronic device based on the device information of the second electronic device includes: determining the device type of the second electronic device corresponding to the product ID or the product name of the second electronic device according to the product configuration information; and determining at least one application corresponding to the device type of the second electronic device according to the application configuration information.
[0023] In the present specification, in a case where the first electronic device only obtains the product ID or the product name of the second electronic device from the second electronic device, but does not obtain the device type of the second electronic device, the first electronic device can determine the device type of the second electronic device according to the correspondence between the product ID or the product name and the device type in the product configuration information. Then, the first electronic device can determine at least one application supported by the second electronic device based on the device type from the application configuration information according to the obtained device type of the second electronic device.
[0024] It can be seen that, although the first electronic device does not directly obtain the device type of the second electronic device during the interaction operation between the first electronic device and the second electronic device, the first electronic device can first determine the device type of the second electronic device according to the correspondence between the product ID or the product name and the device type in the product configuration information, and then determine at least one application that the second electronic device can support according to the correspondence between the application and the device type in the application configuration information. The first electronic device can automatically identify the application for processing the first data. The first electronic device can automatically identify the application for processing the first data.
[0025] In a possible implementation of the first aspect, the target application is determined from the at least one application supported by the second electronic device, and the first data is transmitted to the second electronic device, including: determining, according to a data type of the first data, an application name or an application package name of the target application corresponding to the data type from the at least one application supported by the second electronic device.
[0026] In the specification, the first electronic device can select, from the determined applications, a target application corresponding to a data type of the first data. The second electronic device is instructed to process the first data by using the target application. The at least one application supported by the second electronic device can mean that the second electronic device has installed the application and can start the application, or the second electronic device has not installed the application but can install and start the application after installation.
[0027] It can be seen that the first electronic device can select, from the determined at least one application, a target application corresponding to a data type of the first data. For example, the target application can be a music application corresponding to the first data being music.
[0028] In a possible implementation of the first aspect, the second electronic device is triggered to perform data processing corresponding to the first data based on the target application, including: instructing the second electronic device to use the target application to process the first data according to the application name or the application package name of the target application.
[0029] In the specification, the first electronic device can obtain an application name or an application package name corresponding to the target application. When the target application is a cloud service or a mini-program application registered in a cloud service platform, the first electronic device can instruct the second electronic device to use the target application to process the first data by using the cloud service platform. For example, the first electronic device can transmit, to the cloud service platform, a product ID, a product name, and the like of the second electronic device and an application name or an application package name of the target application. The cloud service platform instructs a cloud service client configured by the second electronic device to use the target application to process the first data according to the application name or the application package name according to the product ID and the product name. The cloud service platform can be an application store.
[0030] It can be seen that the first electronic device sends the first data to the second electronic device, and the first electronic device can also instruct the second electronic device to call the target application to process the first data, so as to realize automatic acquisition of the target data by the second electronic device and automatic processing of the target data by the target application, and improve the flow efficiency of data processing.
[0031] In a possible implementation of the first aspect, the interaction operation includes at least one of the following: the second electronic device touches the first electronic device; or the distance between the second electronic device and the first electronic device decreases to be less than a first distance threshold.
[0032] It can be seen that the interaction operation between the first electronic device and the second electronic device can include a tap-to-connect operation based on NFC and various near field communication operations based on Bluetooth or Wi-Fi.
[0033] In a possible implementation of the first aspect, the first electronic device transmits the first data to the second electronic device through at least one of Bluetooth, Wi-Fi, and a cellular network.
[0034] It can be seen that, in addition to using the communication mode corresponding to the interaction operation to transmit the first data between the first electronic device and the second electronic device, any one of Bluetooth, Wi-Fi, and a cellular network can be supported to transmit the first data, thereby increasing the efficiency of transmitting the first data between the first electronic device and the second electronic device.
[0035] In a possible implementation of the first aspect, the first electronic device obtains the product configuration information and the application configuration information when starting up or at a specified period.
[0036] It can be seen that the first electronic device can be configured to obtain the configuration file update including the product configuration information or the application configuration information to the local cache before leaving the factory, when starting up for the first time / each time, and / or at a specified period. The first electronic device can obtain the product configuration information and the application configuration information of each electronic device in a self-defined and timely manner.
[0037] In a possible implementation of the first aspect, the first electronic device and the second electronic device log in using the same user account or the first electronic device and the second electronic device are trusted devices.
[0038] It can be seen that the first electronic device and the second electronic device can be electronic devices that log in using the same user account, or electronic devices that have transmitted data between each other, and the like. This enables multiple electronic devices under the same user name to transmit and process data in a timely and efficient manner.
[0039] In a second aspect, the present application provides an electronic device, comprising:
[0040] a memory configured to store instructions executed by one or more processors of the electronic device, and
[0041] a processor configured to read the instructions to perform the data processing method in the first aspect or any one of the implementation manners.
[0042] In a third aspect, the present application provides a computer program product, comprising: a non-volatile computer readable storage medium, the non-volatile computer readable storage medium containing computer program codes for executing the data processing method according to the first aspect or any one of the implementation manners.
[0043] The advantages of the above aspects can be referred to each other. BRIEF DESCRIPTION OF DRAWINGS
[0044] FIG. 1(a) to FIG. 1(e) exemplarily show a scenario of a user using a mobile phone and a personal computer to process data in the embodiment of the present application;
[0045] FIG. 2(a) to FIG. 2(h) exemplarily show a scenario of a data processing method in the embodiment of the present application;
[0046] FIG. 3 exemplarily shows a schematic diagram of a data transmission service for implementing the data processing method in the embodiment of the present application;
[0047] FIG. 4 exemplarily shows a schematic diagram of a software structure of an electronic device to which the data processing method in the embodiment of the present application is applicable;
[0048] FIG. 5 exemplarily shows a schematic diagram of an interaction process between electronic devices for implementing the data processing method in the embodiment of the present application;
[0049] FIG. 6 exemplarily shows a schematic diagram of an interaction process between electronic devices for implementing the data processing method in the embodiment of the present application;
[0050] FIG. 7 exemplarily shows a schematic diagram of an interaction process between electronic devices for implementing the data processing method in the embodiment of the present application;
[0051] FIG. 8 exemplarily shows a schematic diagram of an interaction process between electronic devices for implementing the data processing method in the embodiment of the present application;
[0052] FIG. 9 exemplarily shows a schematic diagram of an interaction process between electronic devices for implementing the data processing method in the embodiment of the present application;
[0053] FIG. 10 exemplarily shows a schematic diagram of an interaction process between electronic devices for implementing the data processing method in the embodiment of the present application;
[0054] FIG. 11(a) exemplarily shows a schematic diagram of a method for implementing device authentication / service discovery, target data collection / transmission, and target data analysis / processing between electronic devices in the embodiment of the present application;
[0055] FIG. 11(b) exemplarily shows a schematic diagram of a storage format of application configuration information and product configuration information;
[0056] FIG. 12 exemplarily shows a schematic diagram of an interaction process of implementing the data processing method between electronic devices in the embodiment of the present application;
[0057] FIG. 13 exemplarily shows a schematic diagram of an interaction process of implementing the data processing method between electronic devices in the embodiment of the present application;
[0058] FIG. 14 exemplarily shows a schematic diagram of an interaction process of implementing the data processing method between electronic devices in the embodiment of the present application;
[0059] FIG. 15 exemplarily shows a hardware structure block diagram of an electronic device in the embodiment of the present application. DETAILED DESCRIPTION
[0060] The technical solutions in the embodiments of the present application will be described clearly and thoroughly in combination with the drawings. The various embodiments can be referred to each other.
[0061] It can be understood that the technical solutions of the present application are applicable to various electronic devices capable of acquiring / processing data, which specifically can include mobile terminals such as mobile phones, tablet computers, wearable devices, and can also include personal computers, personal computers, notebook computers, netbooks, ultra-mobile personal computers (UMPC), hardware servers (including entry-level servers, workgroup servers, department servers and enterprise servers) and cloud servers, etc.
[0062] The technical solutions of the present application will be described in combination with specific scenarios.
[0063] FIGS. 1(a) to 1(e) exemplarily show schematic diagrams of scenarios in which a user uses a mobile phone and a personal computer to process data.
[0064] As shown in FIG. 1(a), the screen of the mobile phone 100 displays an application interface 101 of a photo application, including multiple photos and a selected target photo 1011. In the case that the mobile phone 100 does not install a photo processing application or the photo processing application of the mobile phone 100 does not support fine processing on the target photo 1011, the user can perform a click operation on a control 102 (for example, an “XX” control, a more control) in the application interface 101.
[0065] As shown in FIG. 1(b), the application interface 101 in the screen of the mobile phone 100 displays an operation interface 103, which includes a control 1031 (e.g., a "SHARE" control, a sharing control), etc. The user can perform a click operation on the control 1031, as shown in FIG. 1(c), the screen of the mobile phone 100 displays an application interface 104 of a sharing application, which can be superimposed on the application interface 101. The application interface 104 includes a control 1041 of a shareable device and the selected target photo 1011. The control 1041 of the shareable device here can correspond to an electronic device that has established a device binding / user account synchronization relationship with the mobile phone 100, such as a Meta Book Pro, which can represent a personal computer 200. The mobile phone 100 and the personal computer 200 can transmit data through wireless / wired communication. The user can perform a click operation on the control 1041 of the shareable device to transmit the target photo 1011 to the personal computer 200.
[0066] As shown in FIG. 1(d), the application interface 201 in the screen of the personal computer 200 displays an icon of the target photo 1011. The user can perform a click operation on the icon of the target photo 1011 through an input device (e.g., a mouse, a touchpad, etc.) of the personal computer 200, as shown in FIG. 1(e), the screen of the personal computer 200 displays the target photo 1011 opened through a photo editing application. The user can perform fine processing on the target photo 1011, such as adding a watermark 2021 on the target photo 1011.
[0067] It can be seen that the mobile phone and the personal computer have respective conveniences in use. The operations such as photographing or scanning a code are more convenient to use the mobile phone, and relatively, the operations such as rich text editing and image processing are more convenient to use the personal computer. In some application scenarios, the mobile phone and the personal computer need to be used jointly. For example, when the user goes out, the mobile phone can be used to obtain a two-dimensional code in a store, a counter or the like through photographing or scanning a code. The two-dimensional code can be saved in the mobile phone in the form of a photo of the two-dimensional code or information corresponding to the two-dimensional code. After the user comes home, the photo of the two-dimensional code or the information corresponding to the two-dimensional code needs to be sent to the personal computer, and the resource corresponding to the two-dimensional code, for example, a webpage link, a cloud video file, a file compression package with a large amount of data and the like, is opened on the personal computer. The transmission of the photo of the two-dimensional code or the information corresponding to the two-dimensional code between the mobile phone and the personal computer can be implemented in the form of wireless / wired communication, for example, near field Bluetooth, a local area network, a device cloud, a tap-to-connect near field communication (NFC) tag, a tap-to-connect neighborhood aware network (NAN) tag, a device sharing capability, a same-application clipboard capability, a multi-mode input event trigger, a networking online trigger and the like.
[0068] However, if the data obtained by the user using the mobile phone still needs to be processed through the personal computer, the user has to send the data to the personal computer through a data transmission operation, and the series of operations for implementing the data transmission need to be completed manually by the user and are relatively cumbersome, which brings inconvenience to the user in processing the data.
[0069] To solve the above problems, the embodiment of the present application proposes a data processing method. After the first electronic device acquires target data, in response to the interaction mode / interaction operation between the first electronic device and the second electronic device, such as a tap-to-tap operation or a data sharing operation, etc., the second electronic device receives the target data through the data transmission mode between the first electronic device and the second electronic device, and identifies the target data, including analyzing / processing the target data according to the target data type / target data content corresponding to the target data. The analysis / processing here can mean that the second electronic device opens and runs the target data through an application, or uses the target data to set / configure other applications of the second electronic device, etc. For example, when a user handles business or purchases electronic resources at a counter, he / she needs to scan the two-dimensional code on the counter with a mobile phone to perfect information or download data. At this time, the user can first take a photo of the two-dimensional code with the mobile phone and save it. After returning home, the user opens the photo of the two-dimensional code through the photo library application / gallery application of the mobile phone, and performs a tap-to-tap operation on the personal computer with the mobile phone. The personal computer acquires the photo of the two-dimensional code and identifies the two-dimensional code therein and performs data processing. For example, if the personal computer analyzes that the two-dimensional code corresponds to a web link, the personal computer can directly open a browser to display the user interface of the specified web link. If the personal computer analyzes that the two-dimensional code corresponds to a data file, it opens a file download application to download. For another example, if a user wants to set the photo on the mobile phone as the photo of the smart watch, the user can perform a tap-to-tap operation on the smart watch with the mobile phone. The mobile phone transmits the information of the mobile phone to the smart watch through near field communication capability and wakes up the management application on the smart watch. The smart watch and the mobile phone can additionally establish a Bluetooth or Wi-Fi communication connection to transmit the photo. After receiving the photo, the smart watch can open the screen application to display the photo on the specified application interface of the smart watch, such as configuring the photo as the background picture of the watch face of the smart watch.
[0070] The interaction mode and the data transmission mode here can be implemented based on Bluetooth, near field communication, Wi-Fi, device discovery, etc., such as near field communication tap-to-tap, NAN tap-to-tap, Bluetooth tap-to-tap, and Bluetooth proximity, etc.
[0071] As can be seen, through the data processing method of the embodiment of the present application, after the user acquires / collects target data through an electronic device, another electronic device can automatically acquire the target data based on the interaction mode between the electronic devices (such as a tap-to-tap operation or a communication operation between the electronic devices), and complete the analysis / processing of the target data, thereby improving the flow efficiency of the target data. The user is avoided to perform target data transmission between the electronic devices and complete the cumbersome steps of data processing of the target data, so that the electronic devices can realize fast processing of the target data, and the user experience is improved.
[0072] In addition, it can be understood that in some embodiments, one electronic device can pre-acquire product configuration information of a plurality of electronic devices and supported application configuration information of the electronic device. The application configuration information herein includes a record of each application capable of supporting the device type of the electronic device. When the above-mentioned interaction mode is performed between the first electronic device and the second electronic device, the first electronic device can acquire the device type of the second electronic device, and determine at least one application supported by the second electronic device from the application configuration information based on the device type; and from the determined application, select a target application corresponding to the target data type of the target data. The second electronic device is instructed to process the target data through the target application. This will be described in detail below. The at least one application supported by the second electronic device herein can mean that the second electronic device has installed the application and can start the application, or the second electronic device has not installed the application but can install and start the application.
[0073] The target data described above can be target data in an open state or a selected state on the first electronic device. The open state herein can mean that the first electronic device currently displays or currently runs the target data. For example, corresponding to the target data being a photo, the open state can mean that the first electronic device currently displays the photo, and corresponding to the target data being music, the open state can mean that the first electronic device currently plays the music. The selected state can mean that the first electronic device selects the target data in the application of the first electronic device in response to a user operation. For example, corresponding to the target data being a photo, the selected state can mean that the photo is selected in the gallery application of the first electronic device, and corresponding to the target data being a file, the selected state can mean that the file is selected in the folder application of the first electronic device.
[0074] The following describes a scenario diagram of a data processing method suitable for embodiments of the present application through FIGS. 2(a) to 2(d), which corresponds to a scenario in which a user uses a mobile phone and a personal computer to process data.
[0075] As shown in FIG. 2(a), the application interface 101 of the photo application is displayed on the screen of the mobile phone 100, and the application interface 101 displays the open target photo 2011. The target photo 2011 can be a photo of a two-dimensional code taken by the user using the camera of the mobile phone 100, or a picture of a two-dimensional code obtained by the user screenshotting or saving the two-dimensional code in the application of the mobile phone 100.
[0076] As shown in FIG. 2(b), the screen of the personal computer 200 displays an application interface 201, which can display a file directory of the personal computer 200. When the user brings the mobile phone 100 close to the personal computer 200, for example, the user performs a tap-to-tap operation between the mobile phone 100 and the personal computer 200, as shown in FIG. 2(c), the screen of the personal computer 200 displays an application interface 203 of a browser application, wherein the application interface 203 displays a user interface of a web page link. That is, when the user brings the mobile phone 100 close to the personal computer 200, the personal computer 200 can obtain the target photo 2011 through Bluetooth or near field communication between the mobile phone 100 and the personal computer 200, in a case that the target photo 2011 is determined to include a two-dimensional code, the two-dimensional code in the target photo 2011 is parsed through an application configured by the personal computer 200 to obtain a web page link corresponding to the two-dimensional code, and the browser application is started to display the user interface of the specified web page link. The operations performed by the personal computer 200, including receiving the target photo 2011, parsing and processing the target photo 2011, are continuous operations triggered and performed automatically by the personal computer 200 in response to the tap-to-tap operation between the mobile phone 100 and the personal computer 200. During the operations performed by the personal computer 200, no operation intervention of the user is required.
[0077] The personal computer 200 described above can determine that the target photo 2011 includes a two-dimensional code through a photo application, and the application of the personal computer 200 for parsing the two-dimensional code can include QRCode tool of zbar-ohos and the like, without specific limitation.
[0078] In some embodiments, when the personal computer 200 parses that the two-dimensional code in the target photo 2011 corresponds to a file download link, as shown in FIG. 2(d), the personal computer 200 can start a file download application 204 to perform file download. The file download application 204 here can include a network disk application or a browser application supporting file download installed / configured by the personal computer 200, and the like.
[0079] As can be seen, based on the data processing method provided in the embodiments of the present application, after the user uses the mobile phone to take a target photo including a two-dimensional code, the user can bring the mobile phone close to the personal computer when the mobile phone opens the target photo. At this time, the personal computer can obtain the target photo and parse / process the target photo. In this way, the user can be free from the cumbersome operation process of manually sending the target photo to the personal computer and further processing the target photo through the personal computer, and the user experience is improved.
[0080] After the scenario of a user using a mobile phone and a personal computer to process data is described through FIG. 2(a) to FIG. 2(d), another scenario of a user using a mobile phone and a smart watch to process data is described through FIG. 2(e) to FIG. 2(h).
[0081] As shown in FIG. 2(e) and FIG. 2(f), the application interface 101 of the photo application is displayed in the screen of the mobile phone 100, the user opens the target photo 1012 of the mobile phone 100, the application interface 301 is displayed in the screen of the mobile phone, and the application interface 301 displays the opened target photo 1012.
[0082] As shown in FIG. 2(g), the desktop background corresponding to the photo 4001 is displayed in the screen of the smart watch 400. When the user brings the mobile phone 100 close to the smart watch 400, for example, the user performs a tap-to-tap operation between the mobile phone 100 and the smart watch 400, as shown in FIG. 2(h), the mobile phone 100 transmits the target photo 1012 to the smart watch 400, and the desktop background in the screen of the smart watch 400 is changed to the photo 4002 corresponding to the target photo 1012. That is, after the smart watch 400 receives the target photo 1012, the target photo 1012 is set as the photo 4002 through the desktop background application.
[0083] After the application scenarios to which the embodiments of the present application are applicable are described, the application scenarios to which the data processing method of the embodiments of the present application is applicable and the data transmission service for implementing the data processing method of the embodiments of the present application are further described.
[0084] As shown in FIG. 3, the data transmission service can also be referred to as a unified discovery and distribution service. Through the OneHop function implemented by the unified discovery and distribution service, the user can establish a communication connection between one electronic device (such as a mobile phone) and another electronic device (such as a computer, a television or a smart television) through a tap-to-tap operation, and then achieve the purpose of quickly inter-transmitting data such as pictures, videos and documents. The unified discovery and distribution service can be implemented through near field communication, Bluetooth and other communication technologies. For example, the user performs a tap-to-tap operation between a smart watch and a mobile phone, and the smart watch and the mobile phone can inter-transmit data of a sports and health application (application, APP), such as OneHop watch face.
[0085] In some embodiments, the unified discovery and distribution service can also implement data transmission in combination with a cast function and an iConnect function in some application scenarios. The cast function herein is a data processing service for transmitting the screen content of one electronic device (e.g., a mobile phone) to another electronic device (e.g., a computer, a television, or a smart television). For example, a mobile phone and a smart television are connected to the same Wi-Fi network, and a user performs a tap-to-tap operation between the mobile phone and the smart television, and the interface of the mobile phone can be directly displayed on the smart television. For another example, when the mobile phone is close to / touches other smart devices (e.g., a sound box, a scooter, a car machine, a VR glasses, a waist warmer, etc.) through a tap-to-tap operation, the mobile phone can also display a smart life interface, which can display icons of multiple smart devices, that is, can include the currently close / touched smart devices and other authenticated smart devices, and a user can select one or more smart devices to implement data transmission / sharing. The iConnect function herein is a service for realizing plug-and-play and access security of smart terminals under the Internet of Things. The cast function and the iConnect function can be realized through near field communication, Bluetooth, Wi-Fi, etc. For example, a user performs a tap-to-tap operation between a mobile phone and a personal computer, and the interface of the mobile phone is displayed in a local area of the screen of the personal computer. The user can operate the data displayed on the screen of the personal computer and the data in the interface of the mobile phone. In some embodiments, multiple smart terminals can also realize plug-and-play and access security through an iConnect cloud.
[0086] In some embodiments, the near field communication, Bluetooth, and Wi-Fi herein can also be referred to as short-range services.
[0087] In some embodiments, the unified discovery and distribution service can also implement data transmission in combination with a HiLink function and a cross-system function (FA Manager) in some application scenarios. The HiLink function herein can also be referred to as a smart home open interconnection platform, which is used to realize interconnection and interaction between various smart home devices and smart terminals. For example, a user performs a tap-to-tap operation between a mobile phone and a smart sound box, and the smart sound box can directly play an audio file being played by the mobile phone. In some embodiments, various smart home devices and smart terminals can also realize data transmission through a HiLink cloud. In other embodiments, the HiLink function can also realize interconnection and interaction between various smart home devices and smart terminals through an application, such as a smart life application (APP). The cross-system function is used to realize interconnection and interaction between smart home devices and smart terminals running different operating systems. For example, a user performs a tap-to-tap operation between a mobile phone running an Android system and a smart television running an iOS system, and the smart television can directly display the interface of the mobile phone. In some embodiments, the near field communication, Bluetooth, and Wi-Fi herein can also be referred to as short-range services. The system performs a tap operation between the intelligent speakers, and the intelligent speakers can directly play the audio file being played by the mobile phone, for example, one-key Bluetooth audio transmission.
[0088] In some embodiments, in some application scenarios, the unified discovery and distribution service can also provide data transmission services between applications of online to offline (O2O) merchants of the intelligent terminal in combination with AirTouch or AirTouch cloud. For example, a user can implement one-touch ordering or one-touch express ordering through the unified discovery and distribution service and an ordering application or a logistics application.
[0089] It can be seen that the data processing method of the embodiments of the present application can not only achieve data transmission and processing between electronic devices based on short-range mode through the interaction mode between electronic devices, but also achieve data transmission and processing between electronic devices based on cloud services, thereby increasing the application scenarios of the data processing method.
[0090] The following further introduces the software structure of the mobile phone and the personal computer to which the data processing method provided by the embodiments of the present application is applicable by means of FIG. 4. The object of the data processing method here can be a two-dimensional code, and the data processing method of the two-dimensional code applicable to the embodiments of the present application can be implemented through the data transmission module configured by the mobile phone 100 and the data processing service configured by the personal computer 200.
[0091] As shown in FIG. 4, the mobile phone 100 includes an application layer and a HAL layer, wherein the application layer includes a photographing application 401, and the HAL layer includes a data transmission module 402. A user can use the photographing application 401 of the mobile phone 100 to scan / code / photograph a two-dimensional code for saving, that is, the user can use the mobile phone 100 to photograph a two-dimensional code and save a photo corresponding to the two-dimensional code. The data transmission module 402 can sequentially perform the following steps: scanning a tag into a field, selecting a connection technology, and reading tag data. Exemplarily, the data transmission module 402 performing scanning a tag into a field can include that when the mobile phone 100 opens the photo corresponding to the two-dimensional code, the data transmission module 402 detects an interaction mode between the mobile phone 100 and the personal computer 200, for example, the interaction mode here can be a tap operation. The data transmission module 402 performing selecting a connection technology can include that the data transmission module 402 selects a data transmission mode corresponding to the interaction mode, for example, the tap operation can correspond to near field communication or Bluetooth, etc. The data transmission module 402 performing reading tag data can include that the data transmission module 402 sends the tag data to the personal computer 200 through the data transmission mode, for example, the tag data here can be the photo corresponding to the two-dimensional code.
[0092] Continuing to refer to FIG. 4, the system services configured by the personal computer 200 include a data processing service 403 and a data processing application 404. The data processing service 403 can perform the following steps in sequence: discovering the remote mobile phone 100, analyzing the tag data, determining the opening mode, and calling the data processing application 404. Exemplarily, the data processing service 403 performing the discovery of the remote mobile phone 100 can include: the data processing service 403 detecting the interaction mode between the mobile phone 100 and the personal computer 200, and receiving the tag data, for example, the data here can be a photo corresponding to a two-dimensional code. The data processing service 403 performing the analysis of the tag data can include: the data processing service 403 performing the analysis by using an application for analyzing the tag data. For example, the tag data can be a photo corresponding to a two-dimensional code, the data processing service 403 determines the two-dimensional code included in the photo by using a photo application, and analyzes the two-dimensional code by using an application for analyzing the two-dimensional code. The data processing service 403 performing the determination of the opening mode can include: the data processing service 403 determining the opening mode corresponding to the tag data, and calling the corresponding data processing application 404. For example, if the two-dimensional code is a webpage or a webpage link, a browser application is started to display the webpage; if the two-dimensional code is a file download link, a network disk application or a browser application supporting file download is started to download the file.
[0093] In some embodiments, the data transmission module and the data processing service described above are configurable / installable functional modules or services, that is, the data transmission module and the data processing service can be respectively configured / installed in any two electronic devices to realize the data transmission and processing between the electronic devices.
[0094] After introducing the software structure of the electronic device suitable for the data processing method, the application scenarios corresponding to the data processing method of the embodiments of the present application are introduced below through the interaction flow diagram between the electronic devices. The following application scenarios mainly involve the transmission, analysis and processing of a two-dimensional code or a photo of a two-dimensional code between a mobile phone and a personal computer through the data processing method of the embodiments of the present application.
[0095] Embodiment One
[0096] The embodiment one here can also be referred to as scenario one, and the embodiment one can be that a user carries a mobile phone out to scan a code and returns, and transmits a photo including a two-dimensional code to a personal computer for analysis and processing through the mobile phone. Exemplarily, after the user obtains a two-dimensional code through the mobile phone, the user opens a photo of the two-dimensional code saved in a gallery application of the mobile phone or directly scans the code / photographs the two-dimensional code, uses the mobile phone to touch a near field communication area of the personal computer, establishes a near field communication connection between the mobile phone and the personal computer, sends the photo of the two-dimensional code or the two-dimensional code to the personal computer, and the personal computer analyzes the content of the two-dimensional code and processes according to the content. The embodiment one here can also be referred to as an out-of-scan code scenario.
[0097] FIG. 5 illustrates an interaction flow diagram of a data processing method according to an embodiment of the present application. The interaction flow involves the interaction process of the mobile phone 100 and the personal computer 200 implementing the data processing method, including:
[0098] Specifically, as shown in FIG. 5, the interaction flow can include the following steps:
[0099] S501: The mobile phone 100 receives the user's operation to take a photo or scan a code.
[0100] Exemplarily, the user's operation here can be the user's operation of using the mobile phone 100 to take a photo / scanning a code. The user can use the mobile phone 100 to take a two-dimensional code. The two-dimensional code here can also be referred to as a two-dimensional code label or target data.
[0101] S502: The mobile phone 100 acquires and saves the two-dimensional code.
[0102] Exemplarily, the way the mobile phone 100 acquires and saves the two-dimensional code can include that after the user uses the mobile phone 100 to take a photo / scanning the two-dimensional code, the user saves the photo of the two-dimensional code in the gallery application of the mobile phone 100.
[0103] S503: The mobile phone 100 displays the preview interface of the photo of the two-dimensional code.
[0104] Exemplarily, the mobile phone 100 can receive the user's operation of opening the photo of the two-dimensional code saved in the gallery application, and display the preview interface of the photo of the two-dimensional code. That is, the mobile phone 100 currently opens / display the photo of the two-dimensional code. It can be understood that the photo of the two-dimensional code here is in the open state in the mobile phone 100. In some embodiments, the mobile phone 100 can also receive the user's operation of selecting the photo of the two-dimensional code in the gallery application, at which time the photo of the two-dimensional code is in the selected state in the mobile phone 100. The photo of the two-dimensional code in the selected state is sent to the personal computer 200 through the following steps.
[0105] S504: Receive the user's bump operation performed between the mobile phone 100 and the personal computer 200.
[0106] Exemplarily, the tap-to-tap operation herein can be that the user places the mobile phone 100 close to the personal computer 200, and the tap-to-tap operation can be performed between the mobile phone 100 and the personal computer 200. In some embodiments, the tap-to-tap operation can be implemented through near field communication. For example, the mobile phone 100 and the personal computer 200 are both configured with NFC chips. When the mobile phone 100 is placed close to the personal computer 200, that is, when the NFC chip in the mobile phone 100 contacts or is close to the NFC chip in the personal computer 200, the NFC chip in the mobile phone 100 can detect the NFC signal emitted by the NFC chip in the personal computer 200, and further read the information stored in the NFC chip 1 of the personal computer 200 through the NFC signal. The information herein can refer to device information, including the media access control (MAC) address, product name or product ID, device type, and the like of the personal computer 200, which are used to confirm the binding relationship between the mobile phone 100 and the personal computer 200, that is, the mobile phone 100 can identify / complete the identity verification of the personal computer 200, and data can be transmitted between the mobile phone 100 and the personal computer 200.
[0107] S505: The personal computer 200 automatically identifies the two-dimensional code and parses and matches the opening mode.
[0108] Exemplarily, the personal computer 200 automatically identifying the two-dimensional code and parsing and matching the opening mode can include that the personal computer 200 automatically receives the photo of the two-dimensional code and parses the opening mode of the two-dimensional code. That is, the personal computer 200 can automatically confirm that the subsequent processing is to be performed on the photo of the two-dimensional code.
[0109] Specifically, the personal computer 200 automatically receiving the photo of the two-dimensional code can include that the mobile phone 100 can send the two-dimensional code to the personal computer 200 based on the data transmission mode between the mobile phone 100 and the personal computer 200, and the personal computer 200 can store the photo in a default storage area. For example, the data transmission mode can include near field communication or Bluetooth, Wi-Fi, and the like, and the storage area can include a default folder of the personal computer 200.
[0110] In some embodiments, in the case where the data transmission mode is near field communication, the mobile phone 100 can directly send the photo corresponding to the two-dimensional code to the personal computer 200 through near field communication when the tap-to-tap operation is performed between the mobile phone 100 and the personal computer 200; in the case where the data transmission mode is Bluetooth or Wi-Fi, the mobile phone 100 can send the photo corresponding to the two-dimensional code to the personal computer 200 through Bluetooth or Wi-Fi between the mobile phone 100 and the personal computer 200 when the tap-to-tap operation is performed between the mobile phone 100 and the personal computer 200.
[0111] In some embodiments, the personal computer 200 automatically parsing the opening mode of the two-dimensional code can include: the personal computer 200 opening the photo of the two-dimensional code through the photo application corresponding to the target data type of the photo of the two-dimensional code; if it is determined that the photo includes the two-dimensional code, parsing the two-dimensional code through the application for parsing the two-dimensional code; and matching the opening mode of the parsed two-dimensional code. Illustratively, the application for parsing the two-dimensional code can include QRCode tool below or Zbar-ohos below, etc.
[0112] S506: The personal computer 200 processes the parsed two-dimensional code according to the opening mode.
[0113] Illustratively, the personal computer 200 processing the parsed two-dimensional code according to the opening mode can include: the personal computer 200 processing the two-dimensional code through starting / calling the application according to the opening mode determined in step S505. The application here can be an application installed in the personal computer 200 or an application or service configured by the cloud service platform in the personal computer 200.
[0114] For example: if the two-dimensional code corresponds to a web link, the personal computer 200 displays the user interface of the specified web link through the browser application; if the two-dimensional code corresponds to a file download link, the personal computer 200 downloads the data file through the cloud disk application or the browser application supporting file download; if the two-dimensional code corresponds to a cloud service link or a small program link, the personal computer 200 starts the corresponding cloud service or small program through the cloud service link or small program link. Through steps S505 and S506, the personal computer 200 can automatically identify the two-dimensional code, parse and match the opening mode, and execute the opening mode. The entire process can not need manual intervention of the user.
[0115] As can be seen, in the application scenario shown in FIG. 5, the flow efficiency of the two-dimensional code between the mobile phone 100 and the personal computer 200 is improved, and through the one-touch operation based on near field communication between the mobile phone 100 and the personal computer 200, it can also ensure that the two-dimensional code corresponds to a short-distance transmission is more secure, and through the one-touch operation, the two-dimensional code can be automatically transmitted / identified, without the need for the user to open Wi-Fi or Bluetooth transmission through the share button for transmission or open a certain application to identify the transmission and other complex operations, such as clicking the file transmission assistant of WeChat for transmission.
[0116] In some embodiments, the method of parsing / processing the target data described in step S505 includes that the personal computer 200 can parse / processing the target data by discovering the application corresponding to the target data type of the received target data according to the target data type of the received target data. Illustratively, after the personal computer 200 receives the target data, the personal computer 200 starts / calls the application corresponding to the target data type of the target data. For example, the personal computer 200 directly opens the target data by the application or adds the target data to the application, etc.
[0117] In some embodiments, the method of parsing / processing the target data described in step S505 includes that the personal computer 200 can parse / processing the target data by discovering the application corresponding to the target data type of the received target data according to the target data type of the received target data. Illustratively, after the personal computer 200 receives the target data, the personal computer 200 starts / calls the application corresponding to the target data type of the target data. For example, the personal computer 200 directly opens the target data by the application or adds the target data to the application, etc.
[0118] In some embodiments, the method of parsing / processing the target data described in step S505 includes that the personal computer 200 can parse / processing the target data by discovering the application corresponding to the target data type of the received target data according to the target data type of the received target data. Illustratively, after the personal computer 200 receives the target data, the personal computer 200 starts / calls the application corresponding to the target data type of the target data. For example, the personal computer 200 directly opens the target data by the application or adds the target data to the application, etc.
[0119] The scheme of realizing data processing between the electronic devices described in the embodiment one mainly involves that one electronic device does not process the target data after collecting the target data, but directly sends the target data to another electronic device by the interactive mode to analyze / process the target data by the another electronic device. In some application scenarios of some embodiments, after one electronic device collects the target data, the target data can also be directly analyzed first; the analyzed target data is sent to another electronic device to directly process the analyzed target data by the another electronic device.
[0120] Embodiment two
[0121] The embodiment two here can also be called scenario two. The embodiment two can be that a user obtains a two-dimensional code by using a mobile phone, the user opens a photo of the two-dimensional code saved in a gallery application of the mobile phone or directly scans / code to obtain the two-dimensional code, uses the mobile phone to touch a near field communication area of a personal computer, establishes a near field communication connection between the mobile phone and the personal computer, and the mobile phone analyzes the two-dimensional code and sends the analyzed two-dimensional code to the personal computer, and the personal computer processes the two-dimensional code.
[0122] The embodiment two will be further described below by using FIG. 6. As shown in FIG. 6, the interactive process involved in the embodiment two includes steps S601 to S605.
[0123] Exemplarily, the steps S601, S602 and S603 here can be the same as the steps S501, S502 and S503 included in the embodiment one, for example: after the user uses the mobile phone 100 to shoot the two-dimensional code, the mobile phone 100 saves the photo of the two-dimensional code in the gallery application; before the user performs the touch-touch operation between the mobile phone 100 and the personal computer 200, the user opens the photo, and the mobile phone 100 displays the preview interface of the photo of the two-dimensional code. Details are not described here.
[0124] S604: receiving the touch-touch operation performed by the user between the mobile phone 100 and the personal computer 200.
[0125] Exemplarily, in the process of performing the step S604, the mobile phone 100 can perform the following steps S604a and S604b to realize that when the mobile phone 100 and the personal computer 200 are touched, the analysis of the photo of the two-dimensional code currently opened by the mobile phone 100 is completed, and the analyzed two-dimensional code is packaged into a label message and sent to the personal computer 200.
[0126] S604a: the mobile phone 100 automatically recognizes the two-dimensional code, analyzes the two-dimensional code to package a label message.
[0127] Exemplarily, the process that the mobile phone 100 automatically identifies the two-dimensional code and parses the two-dimensional code to obtain the label message can be similar to the step S505, and the mobile phone 100 opens the photo of the two-dimensional code through a photo application corresponding to the target data type of the photo of the two-dimensional code; if it is determined that the photo includes the two-dimensional code, the two-dimensional code is parsed through an application for parsing the two-dimensional code.
[0128] In some embodiments, the mobile phone 100 can convert / encapsulate the parsed two-dimensional code into a label message, and then transmit the label message to the personal computer 200 through the interaction mode between the mobile phone 100 and the personal computer 200. Taking the label message as an NDEF corresponding message as an example, the NDEF stands for Nfc data Exchange Format, that is, NFC data exchange format. Table 1 below shows the format of a label message.
[0129] Table 1, label message:
[0130] The NDEF data header can include a unique device identifier (UDID) of an NFC chip purchased by each manufacturer and other unique identifiers, and the user communication identifies the message of the manufacturer. The fixed data header can include general information such as the total length of the message, the protocol identifier, the protocol version, etc. The device information label can include device unique identifiers (such as product ID, product name or device type, etc.), device capability information (such as whether to support Wi-Fi, Bluetooth, NFC, etc.). The management data header can include label classification information, such as supporting reading of bank card number, supporting recharging of gas card, supporting connection pairing, supporting one-touch sound transmission, supporting one-touch application pull-up, supporting reading of UnionPay label, etc. In some embodiments, a two-dimensional code label can also be included. The business data is used to specify the business content corresponding to the label message, for example, recharging of gas card, reading of current card number, gas company name, transmission of new gas value, specification of gas company, specification of household number, etc., and format TLV or TV, field, value length, value, etc. Among them, TLV represents the business content corresponding to the two-dimensional code label, for example, T represents the need to pull up / start the application of the electronic device receiving the label message, L represents the link value length of the activity interface of the application to be pulled up, and V represents the specific link value, etc.
[0131] For example, in the case of a web connection corresponding to the two-dimensional code parsed by the mobile phone 100, the label message encapsulated by the mobile phone 100 can be such as xxxxxx, 255nfc20, udid, qrcd, T12www.xxxx.com.
[0132] S604b: The mobile phone 100 sends the label message to the personal computer 200.
[0133] Exemplarily, the mobile phone 100 can send the parsed two-dimensional code to the personal computer 200 based on the near field communication, and the personal computer 200 can store the parsed two-dimensional code in a default storage area. The parsed two-dimensional code herein can be stored in a message of the near field communication in the format of a tag message.
[0134] S605: The personal computer 200 processes the parsed two-dimensional code in the tag message.
[0135] The step S605 herein can be similar to the steps S505 and S506 included in the first embodiment. Exemplarily, the personal computer 200 can obtain the parsed two-dimensional code from the tag message, determine an opening mode according to the parsed two-dimensional code, and process the parsed two-dimensional code according to the opening mode. For example, if the two-dimensional code corresponds to a webpage link, a browser application is started / called to display a user interface of the specified webpage link, such as www.xxxx.com.
[0136] It can be seen that after the user obtains the photo of the two-dimensional code through the camera of the mobile phone 100, the mobile phone 100 can also immediately parse the two-dimensional code and save it at the same time as the photo of the two-dimensional code. When the mobile phone 100 and the personal computer 200 interact based on the near field communication, the parsed two-dimensional code is directly encapsulated into a tag message supported by the near field communication and sent to the personal computer 200, so that the personal computer 200 can directly obtain the content of the two-dimensional code from the tag message for processing. That is, the process of automatically recognizing the two-dimensional code and parsing the two-dimensional code in the mobile phone 100 in the above step S604a can be performed before the step S604.
[0137] In the above first and second embodiments, the mobile phone 100 can save the photo of the two-dimensional code or save the content of the two-dimensional code after recognizing / parsing. The process of transmitting the two-dimensional code between the mobile phone 100 and the personal computer 200 can also be directly transmitting the photo of the original two-dimensional code or the tag message corresponding to the parsed two-dimensional code. In some embodiments, the target data obtained by the mobile phone 100 is not limited to the two-dimensional code, but can also include data files, audio / video, photos, etc. The opening mode of the personal computer 200 for the two-dimensional code is not limited to the above several modes, for example, the opening mode can include pulling up an application, device pairing, automatically filling a Wi-Fi account / password, etc. After the mobile phone 100 obtains the two-dimensional code, the one-step direct function application scenario of obtaining, parsing and processing the two-dimensional code is completed by directly sending the two-dimensional code to the personal computer 200 or by tag forwarding to realize the flow of the two-dimensional code.
[0138] It can be seen that through the above first embodiment, after the user obtains / acquires the target data through the mobile phone, the personal computer can automatically obtain the target data and complete the parsing / processing of the target data in response to the interaction mode between the mobile phone and the personal computer.
[0139] In some embodiments, when the user needs to use the personal computer to process the target data, the personal computer can also actively acquire / capture the target data through the mobile phone, automatically acquire the target data through the interaction between the mobile phone and the personal computer, and automatically complete the analysis / processing of the target data. For example, when the mobile phone and the personal computer are both in the user's side, the personal computer and the mobile phone maintain a communication connection. When the user opens the application configured by the personal computer for analyzing the two-dimensional code, the personal computer can perceive / discover the photographing application configured by the mobile phone with the two-dimensional code shooting capability, and instruct the mobile phone to open the photographing application. After the user collects the photo of the two-dimensional code through the photographing application, the mobile phone automatically transmits the photo of the two-dimensional code to the personal computer. The personal computer receives the photo of the two-dimensional code, and analyzes / processes the two-dimensional code through the application for analyzing the two-dimensional code. In other embodiments, the way in which the personal computer processes the target data can also include converting the target data into corresponding pictures, videos, inserting file attachments, and the like.
[0140] Embodiment Three
[0141] Embodiment three here can also be referred to as scenario three. The mobile phone and the personal computer are both in the user's side, and the user opens the application installed / configured by the personal computer with the ability of scanning a two-dimensional code for collecting the two-dimensional code. In response to the opening / calling of the application, the personal computer can send a broadcast (including a Bluetooth broadcast or a NAN broadcast, etc.) to search for devices with the ability of shooting / scanning a two-dimensional code. The mobile phone can reply to the personal computer through the broadcast carrying the device marker with the camera capability, for example, carrying the device marker with the ability of shooting / scanning a two-dimensional code in the broadcast. After receiving the broadcast replied by the mobile phone, the personal computer can display the device list of the discovered mobile phone in the screen. In response to the operation of the user selecting the mobile phone (designated device) in the device list, the personal computer sends an instruction to the mobile phone to pull up the photographing function of the mobile phone. In response to the instruction, the mobile phone can open the photographing application. In response to the user aiming at the two-dimensional code and shooting / scanning the two-dimensional code through the photographing button in the photographing application, the mobile phone acquires the photo of the two-dimensional code and transmits the photo of the two-dimensional code to the personal computer; the personal computer analyzes the two-dimensional code and processes the analyzed two-dimensional code.
[0142] In some embodiments, when the user opens the application with the ability to collect the two-dimensional code on the personal computer installation / configuration, the personal computer can also search for the device that has been networked with the personal computer through the configuration cloud and discover the device with the ability to collect the two-dimensional code from the device and display through the device list. The user selects the mobile phone through the device list to send the instruction to pull up the camera function of the mobile phone. The mobile phone opens the camera application and transmits the photo or the two-dimensional code of the two-dimensional code to the personal computer in response to the user clicking the camera button. The personal computer parses the two-dimensional code and processes the two-dimensional code. The network here can include that the mobile phone logs in using the same account as the user account of the personal computer, or that data has been transmitted between the mobile phone and the personal computer.
[0143] As shown in FIG. 7, the interaction flow of embodiment three involves the interaction process of the mobile phone 100 and the personal computer 200 implementing the data processing method, including:
[0144] S701: The personal computer 200 opens the browser application with the ability to collect the two-dimensional code in response to the user operation.
[0145] Exemplarily, the browser application here can be an application configured / installed on the personal computer 200 for parsing the two-dimensional code, in addition to the browser application, it can also include the QRCode tool below or the Zbar-ohos below, etc.
[0146] S702: The personal computer 200 broadcasts to discover the device with the camera capability.
[0147] Exemplarily, the personal computer 200 can search for the device with the camera / sweep code two-dimensional code capability near the personal computer 200 by sending a broadcast (including: Bluetooth broadcast or NAN broadcast, etc.). The broadcast can carry a message tag inquiring whether it supports the camera / sweep code two-dimensional code capability.
[0148] S703: The personal computer 200 displays the device list in response to the reply of the mobile phone 100.
[0149] Exemplarily, in the case that the mobile phone 100 is turned on Bluetooth, the mobile phone 100 can receive the broadcast sent by the personal computer 200 and reply to the personal computer 200 through the same type of broadcast corresponding to the broadcast sent by the personal computer 200, carrying the message tag with the camera capability, that is, through the broadcast to the personal computer 200. The message tag with the camera / sweep code two-dimensional code capability. After receiving the broadcast replied by the mobile phone 100, the personal computer 200 can display the device list on the screen, and the device list includes the control of the mobile phone 100.
[0150] S704 : The personal computer 200 responds to the user selecting the designated mobile phone 100 .
[0151] For example, the user may click on a control of the mobile phone 100 in the device list.
[0152] S705: The personal computer 200 sends a photo taking / code scanning control command to the mobile phone 100.
[0153] For example, the personal computer 200 can send a control instruction to the mobile phone in response to the user clicking the control of the mobile phone 100 in the device list. The control instruction is used to instruct the mobile phone 100 to pull up the photo-taking function, that is, the mobile phone 100 can open the photo-taking application and display the application interface of the photo-taking application.
[0154] S706: The mobile phone 100 parses the control command, launches the photo-taking application and service, and displays the photo-taking interface.
[0155] For example, the photographing application here may also be an application interface of the photographing application. The mobile phone 100 may open the photographing application and display the application interface of the photographing application in response to a control instruction sent by the personal computer 200.
[0156] S707: The mobile phone 100 obtains and saves the QR code in response to the user's click-to-take-photo confirmation operation.
[0157] For example, the mobile phone 100 can obtain and save the QR code in response to the user pointing the mobile phone 100 at the QR code and clicking the photo control in the application interface of the photo application. The QR code here can be saved in the gallery application of the mobile phone 100 through the photo of the QR code.
[0158] S708 : The mobile phone 100 transmits the QR code to the personal computer 200 .
[0159] S709: The personal computer 200 automatically recognizes the QR code, parses and matches the opening method, and processes the parsed QR code.
[0160] Step S708 and step S709 here may be similar to step S505 and step S506 described in FIG5 , and will not be described in detail here.
[0161] It can be seen that in the application scenario shown in FIG. 7, the personal computer 200 can also actively seek an electronic device with the ability of shooting / scanning a two-dimensional code. If only one electronic device, the mobile phone 100, is found, the mobile phone 100 can be directly controlled to pull up the shooting function, for example, the mobile phone 100 is instructed to start / open a shooting application, and the mobile phone 100 displays the application interface of the shooting application. The user can operate the mobile phone 100 to shoot / scanning a two-dimensional code, and transmit the photo of the two-dimensional code to the personal computer 200. The personal computer 200 automatically completes the processing of the two-dimensional code. This avoids the need for the user to manually start the shooting function of the mobile phone 100, manually transmit the photo of the two-dimensional code to the personal computer 200 after shooting the photo, and then analyze and process the two-dimensional code by the personal computer 200. The above application scenario also improves the generality of data processing of the electronic device, and is not limited to the shooting and recognition of the two-dimensional code by a single application installed / configured on the mobile phone 100 or the personal computer 200, but realizes the inter-device recognition of the two-dimensional code between the mobile phone 100 and the personal computer 200.
[0162] The scheme of the mobile phone and the personal computer for realizing data processing described in the above embodiment one involves that the device discovery and the target data transmission between the mobile phone and the personal computer can be realized by the tap-to-tap operation. The following embodiments four to six describe other application scenarios of the device discovery and the target data transmission between the mobile phone and the personal computer.
[0163] Embodiment four
[0164] The embodiment four herein can also be referred to as scenario four. The process of the device discovery between the mobile phone and the personal computer can include that the mobile phone displays the photo of the two-dimensional code saved in the gallery application or the two-dimensional code directly scanned / shooted. In response to the user clicking the share button, the mobile phone sends a Bluetooth, Wi-Fi or NAN broadcast to discover the personal computer, and displays the personal computer in the device list. In response to the user selecting the specified personal computer in the discovered device list, the mobile phone and the personal computer establish a communication connection (including Bluetooth, Wlan, p2p, Nan, etc.), and transmit the two-dimensional code to the personal computer. The embodiment four can also be referred to as the out-of-office scanning scenario, that is, the personal computer is not near the user.
[0165] As shown in FIG. 8, the interaction process of the embodiment four involves the interaction process of the mobile phone 100 and the personal computer 200 for realizing the data processing method, which includes steps S801 to S807.
[0166] Exemplarily, the steps S801, S802 and S803 herein can be the same as the steps S501, S502 and S503 included in the embodiment one (shown in FIG. 5), for example: after the user uses the mobile phone 100 to capture the two-dimensional code, the mobile phone 100 saves the photo of the two-dimensional code in the gallery application; the user opens the photo, and the mobile phone 100 displays the preview interface of the photo of the two-dimensional code. Details are not described herein again.
[0167] S804: The mobile phone 100 receives the click sharing operation of the user
[0168] Exemplarily, the process of the click sharing operation of the user herein can include: displaying the two-dimensional code and the sharing control in the screen of the mobile phone 100; in response to the user clicking the sharing control, displaying the control / icon of the sharable device in the screen of the mobile phone 100, such as the control / icon of the personal computer 200; the user clicks the control / icon of the personal computer 200.
[0169] S805: The mobile phone 100 transmits the two-dimensional code to the personal computer 200 through Bluetooth or Wi-Fi.
[0170] Exemplarily, the mobile phone 100 can send the photo of the two-dimensional code to the personal computer 200 based on the data transmission mode between the mobile phone 100 and the personal computer 200, such as Bluetooth, Wi-Fi, etc. In some embodiments, the communication connection between the mobile phone 100 and the personal computer 200 can be established through Bluetooth or Wi-Fi in advance. For example, the mobile phone 100 and the personal computer 200 both enable Bluetooth, and the communication connection is established through Bluetooth pairing.
[0171] The steps S806 and S807 herein can be similar to the steps S505 and S506 included in the embodiment one. Exemplarily, the personal computer 200 can parse the two-dimensional code from the photo of the two-dimensional code, determine the opening mode according to the parsed two-dimensional code, and process the parsed two-dimensional code according to the opening mode.
[0172] It can be seen that in the application scenario shown in FIG. 8, although the user needs to manually send the two-dimensional code collected by the mobile phone 100 to the personal computer 200, the personal computer 200 can automatically parse and process the received two-dimensional code, and the flow efficiency of the two-dimensional code can also be improved.
[0173] Embodiment five
[0174] The embodiment five here can also be referred to as scenario five. The process of implementing device discovery between the mobile phone and the personal computer can include: the mobile phone determines that the user is about to use the two-dimensional code according to the photo of the two-dimensional code saved in the gallery application displayed by the mobile phone or the two-dimensional code directly scanned or photographed. The mobile phone can confirm whether there is a target device (for example, a personal computer logged in with the same account as the user account logged in the mobile phone or a personal computer that has transmitted data with the mobile phone, etc.) that has been networked with the mobile phone through background detection. If the target device exists, the mobile phone pops up a list of target devices on the screen. In response to the user selecting the personal computer from the target devices, the mobile phone transmits the two-dimensional code to the personal computer. The personal computer parses the two-dimensional code and processes the two-dimensional code. Illustratively, the mobile phone and the personal computer can transmit data using Bluetooth, Wi-Fi or NAN. The process of the mobile phone displaying the photo of the two-dimensional code and determining that the user will use the two-dimensional code can be referred to as scenario perception of the two-dimensional code. The target device can be referred to as a trusted device, a virtual device group composed of trusted devices, that is, a device or a virtual device group composed of multiple devices that has been determined by the mobile phone to be unauthenticated by transmitting data with the mobile phone, or a device that has a trusted relationship with the mobile phone and the personal computer.
[0175] As shown in FIG. 9, the interaction process of the embodiment five involves the interaction process of the mobile phone 100 and the personal computer 200 implementing the data processing method, which includes steps S901 to S907.
[0176] Illustratively, the steps S901, S902 and S903 here can be the same as the steps S501, S502 and S503 included in the embodiment one (shown in FIG. 5), which will not be described in detail here.
[0177] S904: The mobile phone 100 discovers the networked personal computer 200.
[0178] Illustratively, the mobile phone 100 confirms that the photo of the two-dimensional code is currently displayed on the screen, and detects whether there is a personal computer 200 that has been networked with the mobile phone 100. For example, by determining the personal computer 200 logged in with the same account as the user account logged in the mobile phone 100 through a home device management platform.
[0179] Illustratively, the step S905 here is the same as the step S805 included in the embodiment four (shown in FIG. 8). The steps S906 and S907 can be similar to the steps S505 and S506 included in the embodiment one. Illustratively, the personal computer 200 can obtain the two-dimensional code parsed from the photo of the two-dimensional code, determine the opening mode according to the parsed two-dimensional code, and process the parsed two-dimensional code according to the opening mode.
[0180] It can be seen that in the application scenario shown in FIG. 9, the mobile phone 100 can also determine the personal computer 200 by discovering the target device that has been networked, avoiding the user from selecting the personal computer 200 through the bump-to-bump operation or the manual sharing operation, and sending the two-dimensional code to the personal computer 200, so that the circulation efficiency of the two-dimensional code is improved; and by discovering the networked device, the security of the receiving party corresponding to the two-dimensional code can also be ensured, that is, the two-dimensional code will only be sent to the trusted device or the authenticated device.
[0181] Embodiment six
[0182] Embodiment six here can also be referred to as scenario six. The process of realizing target data transmission between the mobile phone and the personal computer can include that the mobile phone saves the photo of the two-dimensional code obtained by shooting / scanning the code to the personal cloud service. The personal computer confirms the registration of the personal cloud service. The personal computer acquires the photo of the two-dimensional code through cloud synchronization of the personal cloud service. The personal computer parses and processes the two-dimensional code.
[0183] As shown in FIG. 10, the interaction process of embodiment six involves the interaction process of realizing the data processing method between the mobile phone 100 and the personal computer 200, which includes steps S1001 to S1006.
[0184] Exemplarily, the step S1001 here can be the same as the step S501 included in embodiment one (shown in FIG. 5), which will not be described in detail here.
[0185] S1002: The mobile phone 100 saves the two-dimensional code.
[0186] Exemplarily, the way of saving the two-dimensional code by the mobile phone 100 can include that after the user uses the mobile phone 100 to shoot / scans the two-dimensional code, the photo of the two-dimensional code is uploaded to the personal cloud service (not shown) for saving.
[0187] S1003: The mobile phone 100 discovers the personal computer 200 in the cloud.
[0188] Exemplarily, the cloud here can be the personal cloud service, for example: the mobile phone 100 and the personal computer 200 can be devices that have registered in the personal cloud service, and the mobile phone 100 and the personal computer 200 can also be configured to be able to synchronize various data with each other in the personal cloud service, such as photos, files, two-dimensional codes, etc.
[0189] S1004: The personal computer 200 transmits the two-dimensional code to the personal computer 200 through cloud synchronization.
[0190] Exemplarily, the cloud synchronization process herein can include that the mobile phone 100 can instruct the personal cloud service to send the two-dimensional code to the personal computer 200 based on a data transmission manner between the personal cloud service and the personal computer 200, such as Wi-Fi or cellular corresponding to the personal cloud service, and the like. Alternatively, the personal computer 200 can periodically acquire the data uploaded by the mobile phone 100 from the personal cloud service.
[0191] Exemplarily, the steps S1005 and S1006 herein can be similar to the steps S505 and S506 included in Embodiment One. Exemplarily, the personal computer 200 can parse the two-dimensional code from the photo of the two-dimensional code, determine the opening mode according to the parsed two-dimensional code, and process the parsed two-dimensional code according to the opening mode.
[0192] It can be seen that in the application scenario shown in FIG. 10, the mobile phone 100 can also save the two-dimensional code to the personal cloud service, and transmit the two-dimensional code to the personal computer 200 through the personal cloud service, thereby avoiding the user from selecting the personal computer 200 through the tap-to-tap operation or the manual sharing operation, and sending the two-dimensional code to the personal computer 200, so that the circulation efficiency of the two-dimensional code is improved; and the process of synchronizing data between the mobile phone 100 and the personal computer 200 registered in the personal cloud service can also ensure the security of the receiving party corresponding to the two-dimensional code, that is, the personal cloud service will only synchronize the two-dimensional code between the registered devices.
[0193] The above FIGS. 3 to 10 describe the data transmission service suitable for implementing the data processing method of the embodiments of the present application and the application scenario of the data processing method. In the application scenario shown in FIG. 5, the mobile phone and the personal computer herein have completed the confirmation that both are electronic devices capable of supporting fast data transmission / sharing when performing the tap-to-tap operation. That is, the device authentication / service discovery is implemented between the mobile phone and the personal computer; and then, the collection, transmission, parsing and processing of the target data are completed between the mobile phone and the personal computer, and the like.
[0194] The method of implementing the device authentication / service discovery, the target data collection / transmission, and the parsing / processing of the target data between the electronic devices will be further described below by means of FIGS. 11(a) and 11(b). The above method can also be referred to as the distribution strategy or the resource processing capability of the target data corresponding to the electronic devices, which can be implemented by the data transmission service running / configured by one of the electronic devices.
[0195] Referring to FIG. 11(a), an electronic device is taken as a mobile phone 100 as an example. The data transmission service 1101 here can also be referred to as a unified discovery and distribution service, and the data transmission service 1101 can be a system service of the mobile phone 100, including: a full-scene collaboration function 11011, which can be a functional module of the system service of the mobile phone, and the full-scene collaboration function 11011 is used in combination with a BMS (business management service) package management system 1102 to provide unified device authentication / service discovery capabilities for various electronic devices. The electronic device here can also be referred to as 1+8+N devices, for example: “1” can refer to a mobile phone, “8” can include a smart screen, a sound box, glasses, a watch, a car machine, earphones, a tablet, a personal computer, and the like. “N” can include mobile office, smart home, sports health, audio and video entertainment, and the like, which can be referred to as services / applications.
[0196] The BMS package management system 1102 implements service discovery, which can include that the BMS package management system 1102 obtains application configuration information of applications / services when the mobile phone 100 is powered on and / or after a specified period. The application configuration information here can be application configuration information of applications / services that can be supported by each electronic device saved by the cloud service platform 410 (application market), and the application configuration information can include an application name or an application package name, which is used to uniquely identify the application / service. The application configuration information can also include a device type, for example: the device type corresponding to the discovered device is a sound box, and the application configuration information needs to configure the device type of the sound box. The application configuration information here can be in the format of JS object notation (JSON). The developers of the applications / services can set and update the application configuration information on the cloud service platform 410. The application configuration information obtained by the BMS package management system 1102 can be the application configuration information of each application / service that has been online on the cloud service platform 410, or only include the application configuration information of the applications / services configured by the electronic products logged in with the same user account as the mobile phone 100.
[0197] In some embodiments, the application configuration information can further include a discovery mode. The discovery mode is used to determine the interaction mode between the devices supported by the application / service, such as Bluetooth, near field communication, Wi-Fi, device discovery, etc. For example, the tap-to-tap discovery mode corresponding to the near field communication tag requires the tap-to-tap discovery type of the near field communication tag to be configured in the application configuration information. FIG. 11(b) shows a storage format of the application configuration information, where the abilityName and bundleName represent the application name and the application package name, the discoveryType represents the discovery mode, and the sourceDevTypeList represents the device type. The sourceDevTypeList can include multiple device types, and the form of the sourceDevTypeList can be a list or an array.
[0198] The device authentication of the full-scene collaboration function 11011 can include that the full-scene collaboration function 11011 can be configured to obtain the configuration file including the product configuration information from the configuration cloud 300 and update to the local cache at the first time / power-on each time and / or after a specified period. The product configuration information can include the product ID, the product name, the device type, the threshold range of the product corresponding to the proximity or the distance (the product ranging boundary), etc. The device type, the product ID, the product name, etc. of the other electronic device performing the interaction mode with the mobile phone 100 are obtained, and it is determined that the mobile phone 100 can further implement the data acquisition / transmission and the analysis / treatment with the electronic device in the case that the product configuration information includes the device type, the product ID, and the product name. In some embodiments, the product configuration information can be registered / updated to the configuration cloud 300 specially saving the product configuration information of the electronic device before the electronic device is shipped, the power-on, and after a specified period.
[0199] In some embodiments, the full-scene collaboration function 11011 can also only obtain the product ID, product name, and device type determined by the product configuration information based on the interaction mode between the mobile phone 100 and other electronic devices. For some device types of electronic devices corresponding to many products, the product ID and product name in the product configuration information can be combined to further uniquely determine the electronic device. For example, for a smart watch of type one, the product ID can be modelId:000137 and the product name (watch buds); for a smart watch of type two, the product ID can be modelId:000138 and the product name (watch buds). The product configuration information obtained by the mobile phone 100 can include electronic products logged in by the mobile phone 100 and the configuration cloud 300 using the same user account. FIG. 11(b) also shows a storage format of product configuration information, wherein the nodeId represents the file name of the product configuration information, a file of a product configuration information can store device information of multiple devices, the name and modelId represent the product name and product ID, and the deviceType represents the device type. The value of deviceType here can correspond to the sourceDevTypeList in the application configuration information.
[0200] Specifically, taking the mobile phone 100 and the smart watch 400 as an example, the full-scene collaboration function 11011 can implement target data acquisition / transmission and analysis / processing of target data, which can include: in response to a tap-to-tap operation between the mobile phone 100 and the smart watch 400, the full-scene collaboration function 11011 obtains the product ID, product name, and device type of the smart watch 400, and authenticates the smart watch 400; according to the target data type currently opened / run by the mobile phone 100, the corresponding target service / target application is determined through the application configuration information; according to the device type supported by the target service / target application and the device type of the smart watch 400, it is determined that the smart watch 400 supports the target service / target application; and the target data is transmitted to the smart watch 400 through a preset communication mode. The preset communication mode can include near field communication corresponding to the tap-to-tap operation, or Bluetooth, Wi-Fi, etc.
[0201] In some embodiments, when the full-scene collaboration function 11011 determines that the smart watch 400 supports the target service / target application, the application name or application package name of the target service / target application is obtained; when the target data is transmitted to the smart watch 400 through the preset communication mode, the application name or application package name can also be applied. The smart watch 400 is instructed to start / call the target application corresponding to the application name or application package name to process the target data.
[0202] In some other embodiments, the full-scene collaboration function 11011 can also instruct the cloud service client configured by the smart watch 400 through the cloud service platform 410 to start / call the application / service according to the application name or the application package name, and process the target data.
[0203] As can be seen, through the full-scene collaboration function 11011 and the BMS package management system 1102 of FIG. 11(a), the mobile phone pre-acquires the product configuration information of the smart watch and the application configuration information of the supported application / service; when detecting the interaction mode with the smart watch, the supported application / service of the smart watch that needs to implement data transmission / processing can be determined; when transmitting data to the smart watch, the smart watch can also be instructed to start / call the application / service to process the data. The authentication between the mobile phone and the smart watch is quickly implemented, and then the data transmission / processing between the mobile phone and the smart watch is completed. With the continuous increase of the device types of electronic devices, the unified management of the product configuration information and the application configuration information can also be implemented, the time for configuration data transmission / processing is reduced, and meanwhile, the user can also implement the self-defined data transmission / processing management of the supported application / service of each electronic device owned by the user, and the user experience is improved.
[0204] The interaction process of the data transmission method shown in FIG. 11 will be further described below through the following application scenarios.
[0205] Embodiment Seven
[0206] The embodiment seven herein can also be referred to as scenario seven, and the process of implementing the target data transmission between the mobile phone and the smart watch can include that the user opens the photo saved in the gallery application of the mobile phone, and then taps the smart watch against the near field communication area of the mobile phone, the mobile phone and the smart watch establish the near field communication connection, the photo is transmitted to the smart watch, and the desktop application / photo application of the smart watch displays the photo.
[0207] In embodiment seven, the product configuration information of the smart watch can be pre-registered in the configuration cloud, and the mobile phone can be configured to download and save the product configuration information from the configuration cloud and obtain the application configuration information of the application from the cloud service platform when starting up and / or after a specified period. The screen of the mobile phone can display a preview interface of the photos in the gallery application, determine the photos that need to be transmitted as the target data, and determine the application / service corresponding to the target data, for example: the application / service can correspond to the wearable application. In response to the smart watch touching the near field communication area of the mobile phone, the smart watch sends a near field communication tag to the mobile phone through near field communication, and the mobile phone can parse the near field communication tag to obtain the device type, product ID or product name of the smart watch, etc., and compare with the cached product configuration information to determine that the smart watch belongs to the electronic device that needs to realize data transmission / handling. The mobile phone matches the device type with the application configuration information, matches the wearable application supported by the smart watch, and based on the application name or application package name, instructs the smart watch to start / call the wearable application and directly transmits the photos to the smart watch, and displays the photos through the wearable application of the smart watch. The wearable application here can be a photo application.
[0208] As shown in FIG. 12, the interaction flow of scenario seven involves the interaction process of the mobile phone 100 and the smart watch 400 implementing the data processing method, including:
[0209] S1201: The smart watch 400 implements the product configuration information registration on the configuration cloud 300.
[0210] Exemplarily, the process of the smart watch 400 implementing the product configuration information registration on the configuration cloud 300 can include that the smart watch 400 can perform pre-configuration information registration on the configuration cloud 300 before leaving the factory or after the user purchases the smart watch 400, and register the product configuration information of the smart watch 400 in the configuration cloud 300 specially saving the product configuration information of the electronic device. The product configuration information saved by the configuration cloud 300 can be updated at any time. The product configuration information here can include the product ID, product name, device type, etc. of the smart watch 400.
[0211] S1202: The mobile phone 100 obtains the application configuration information statically registered by the wearable application 1105.
[0212] Exemplarily, the process that the mobile phone 100 acquires the application configuration information of the wearable application 1105 statically registered herein can include that the mobile phone 100 can acquire and store the application configuration information of the wearable application 1105 from a cloud service platform (not shown) in advance through the BMS package management system 1102. The wearable application 1105 herein can be an application supported by a wearable device such as a smart watch or a smart bracelet. The application configuration information of the wearable application 1105 can include a device type and a discovery mode, wherein the device type can be a device type of the wearable device such as a smart watch or a smart bracelet. The mobile phone 100 can also be configured to update the acquired application configuration information from the cloud service platform at each power-on and / or after a specified period. In some embodiments, the wearable application 1105 can also not be an application configured by the mobile phone 100, that is, the mobile phone 100 does not start / run the wearable application 1105.
[0213] S1203: The mobile phone 100 acquires product configuration information.
[0214] Exemplarily, the process that the mobile phone 100 acquires the product configuration information can include that the mobile phone 100 downloads a configuration file including the product configuration information from the configuration cloud 300 to a local cache through the all-scene collaboration function 11011 at each power-on and / or after a specified period. The configuration file of the product configuration information herein can include the product configuration information of the smart watch 400. The specified period herein can be, for example, every 1 hour. It can be understood that the above numerical value is exemplary and does not limit the embodiments of the present application.
[0215] S1204: The mobile phone 100 acquires application configuration information of an application / service.
[0216] Exemplarily, the mobile phone 100 acquires the application configuration information of the application / service, which can also be referred to as the mobile phone 100 scanning the application configuration information of each service. The process that the mobile phone 100 acquires the application configuration information of the application / service can include that the mobile phone 100 acquires the application configuration information from the BMS package management system 1102 through the all-scene collaboration function 11011 at each power-on and / or after a specified period. The application configuration information can include the application configuration information of the wearable application 1105 supported by the smart watch 400.
[0217] S1205: The mobile phone 100 opens a preview interface of a photo in the gallery application 1104.
[0218] Exemplarily, the mobile phone 100 can display the preview interface of the photo in the gallery application 1104 in response to the operation of the user on the gallery application 1104.
[0219] S1206: The mobile phone 100 controls the gallery application 1104 to register a media interface.
[0220] Exemplarily, the control gallery application 1104 here registers the media interface to the full-scene collaboration function 11011 can represent that. The gallery application 1104 is configured by the full-scene collaboration function 11011 to transmit the photo that the gallery application 1104 is opening when receiving the interaction mode between other electronic devices.
[0221] In some embodiments, the step S1206 is optional. That is, the control gallery application 1104 can directly determine that the data that the screen of the mobile phone 100 is currently opening or the mobile phone 100 is currently running needs to be transmitted, such as the photo that the gallery application 1104 is opening displayed on the screen of the mobile phone 100.
[0222] S1207: receiving a tap-to-tap operation performed by the user between the mobile phone 100 and the smart watch 400.
[0223] Exemplarily, the tap-to-tap operation here can be that the user approaches the smart watch 400 to the mobile phone 100, and the tap-to-tap operation can be performed between the mobile phone 100 and the smart watch 400. The mobile phone 100 can perceive the tap-to-tap operation between the mobile phone 100 and the smart watch 400 through the NFC module 1103.
[0224] S1208: the smart watch 400 transmits a near field communication tag to the mobile phone 100.
[0225] Exemplarily, the smart watch 400 transmitting the near field communication tag to the mobile phone 100 can also be called that the smart watch 400 writes NFC to the NFC module 1103 of the mobile phone 100. The near field communication tag can carry the product ID, product name and other information of the smart watch 400.
[0226] S1209: the mobile phone 100 analyzes the near field communication tag.
[0227] Exemplarily, the mobile phone 100 here can analyze the product ID, product name and other information of the smart watch 400 carried by the near field communication tag through the full-scene collaboration function 11011.
[0228] S1210: the mobile phone 100 converts the information carried by the analyzed near field communication tag into a device type through product configuration information, and then matches whether there is an application / service.
[0229] Exemplarily, the phone 100 converts the information carried by the parsed near field communication tag into the device type through the product configuration information can include: the phone 100 can compare the product ID, product name and other information included in the information carried by the near field communication tag with the product configuration information cached through step S1203 according to the full-scene cooperation function 11011, and determine the device type of the smart watch 400. That is, it is determined whether the smart watch 400 belongs to an electronic device that needs to realize data transmission / treatment. If the product configuration information matches the smart watch 400, it is determined that the smart watch 400 belongs to, and the device type of the smart watch 400 is matched with the application configuration information, the application / service that the smart watch 400 can support is matched and obtained.
[0230] It can be understood that in step S1209, if the phone 100 can directly obtain the device type of the smart watch 400 through the full-scene cooperation function 11011, then in step S1210, the phone 100 can directly determine whether the smart watch 400 belongs to an electronic device that needs to realize data transmission / treatment through the full-scene cooperation function 11011.
[0231] S1211: The phone 100 matches the wearable application 1105, starts the wearable application 1105, and transmits the tag information.
[0232] Exemplarily, the tag information here can carry the product ID, product name and other information of the smart watch 400 and the wearable application 1105, and the phone 100 matches the wearable application 1105 corresponding to the smart watch 400, which can notify the application name or application package name of the smart watch 400 through information. If the phone 100 matches the wearable application 1105 through the full-scene cooperation function 11011, the cloud service client configured by the smart watch 400 can be instructed based on the product ID and product name through the cloud service platform, and the wearable application 1105 can be started / called according to the application name or application package name of the wearable application 1105.
[0233] S1212: The phone 100 and the smart watch 400 establish a connection to transmit photos.
[0234] Exemplarily, the connection here can be near field communication between the phone 100 and the smart watch 400, or other communication connections such as Bluetooth, Wi-Fi or cellular. The photos being opened by the gallery application 1104 are transmitted to the smart watch 400 through the connection.
[0235] S1213: The smart watch 400 displays the photos.
[0236] Exemplarily, after receiving the photo, the smart watch 400 can start / call the wearable application 1105 to process the photo, such as displaying the photo or setting the photo as the desktop of the smart watch 400, and the like.
[0237] As can be seen, in the application scenario shown in FIG. 12, the mobile phone 100 can pre-acquire product configuration information of a plurality of electronic devices including the smart watch 400 and application configuration information of applications that can be supported. When the tap-to-tap operation is performed between the mobile phone 100 and the smart watch 400, the mobile phone 100 can determine, according to the device information acquired by the tap-to-tap operation, the product configuration information stored in advance, and the application configuration information, that the smart watch 400 is an electronic device that supports target data transmission / processing and that the target data corresponds to a target application. The mobile phone 100 transmits the target data to the smart watch 400 and instructs to start / call the target application, thereby completing the data transmission / processing. The smart watch 400 can automatically complete the reception of the target data and the processing by calling the target application, without the need for manual participation of the user. With the increase in the types and quantity of electronic devices, the mobile phone 100 can save the time of the user configuring the electronic devices and improve the user experience by pre-acquiring the product configuration information and the application configuration information.
[0238] Embodiment Eight
[0239] Embodiment Eight herein can also be referred to as Scenario Eight. The process of implementing target data transmission between the mobile phone and the personal computer can include that the user opens a photo saved in a gallery application of the mobile phone, taps the mobile phone to the near field communication area of the personal computer, establishes a near field communication connection between the mobile phone and the personal computer, sends the photo of the two-dimensional code to the mobile phone, and the personal computer parses the two-dimensional code in the photo and opens the corresponding website or downloads the file.
[0240] As shown in FIG. 13, the interactive process of the embodiment eight involves the interactive process of implementing the data processing method between the mobile phone 100 and the personal computer 200, which includes steps S1301 to S1313.
[0241] Exemplarily, steps S1301 to S1312 herein can be similar to steps S1201 to S1212 included in the embodiment seven (shown in FIG. 12). The difference is that the mobile phone 100 acquires the product ID, product name, and the like of the personal computer 200 through the full-scene collaboration function 11011 and matches to the desktop application 1106.
[0242] S1313: The personal computer 200 processes the photo.
[0243] Exemplarily, the process of the personal computer 200 processing the photo can include: the personal computer 200 starts / calls the desktop application 1106 to open the photo and display. Alternatively, if the photo includes a two-dimensional code, the personal computer 200 can parse the content corresponding to the two-dimensional code, and if the two-dimensional code corresponds to a link, open the website of the link or download the file.
[0244] As can be seen, in the application scenario shown in FIG. 13, the mobile phone 100 can also pre-acquire product configuration information of the personal computer 200 and application configuration information of applications that can be supported by the personal computer 200. When the interaction mode is performed between the mobile phone 100 and the personal computer 200, the mobile phone 100 can determine in time that the personal computer 200 is an electronic device supporting target data transmission / processing according to the device information of the personal computer 200 in combination with the stored product configuration information and application configuration information, and then the data transmission / processing can be completed between the mobile phone 100 and the personal computer 200.
[0245] In another embodiment, the mobile phone 100 can also transmit target data and an application name or an application package name of a target application to the personal computer 200 or the smart watch 400 in the above-mentioned embodiments seven and eight. The personal computer 200 or the smart watch 400 starts / calls the target application through the application name or the application package name to process the target data.
[0246] Embodiment Nine
[0247] The embodiment nine here can also be referred to as scenario nine. The mobile phone and various smart devices can implement data transmission or device control. Taking a smart speaker as an example, the process can include: a user plays audio in a music application of the mobile phone, selects to share the audio to the smart speaker, and the smart speaker starts and plays the audio.
[0248] As shown in FIG. 14, the interaction flow of the scenario nine involves an interaction process of the mobile phone 100 and the smart speaker 500 implementing the data processing method, which includes steps S1401 to S1408.
[0249] Exemplarily, the steps S1401 to S1404 here can be similar to the steps S1201 to S1204 included in the embodiment seven (shown in FIG. 12). The difference is that the mobile phone 100 acquires product ID, product name and the like of the smart speaker 500 through the full-scene collaboration function 11011 and matches to the HiLink ecological application 1108. The HiLink ecological application 1108 can be an application / service configured by a smart home cloud (not shown).
[0250] S1405: The mobile phone 100 plays audio in the music application 1107.
[0251] Exemplarily, the phone 100 can play the audio in the music application 1107 in response to the user's operation on the music application 1107.
[0252] S1406: The phone 100 selects to share the audio with the smart speaker 500.
[0253] Exemplarily, the process of selecting to share the audio with the smart speaker 500 can include selecting the smart speaker 500 in response to the user's sharing operation on the music application 1107. Exemplarily, the user's sharing operation on the music application 1107 can include displaying a target device list in response to the user's operation on a sharing control in an application interface of the music application 1107, and selecting the smart speaker 500 in the target device list to share the audio.
[0254] S1407: The phone 100 matches the application of the smart speaker 500.
[0255] Exemplarily, the process of matching the application of the smart speaker 500 can include obtaining the product ID, product name and other information of the smart speaker 500 through the all-scene collaboration function 11011 in response to the user's sharing operation on the smart speaker 500 in step S1406. The device type of the smart speaker 500 is determined by comparing the product ID, product name and other information with the cached product configuration information. If the product configuration information matches the smart speaker 500, the device type of the smart speaker 500 is matched with the obtained application configuration information, and the HiLink ecological application 1108 that the smart speaker 500 can support is matched, such as the music application of the smart speaker 500. The cloud service client configured by the smart speaker 500 based on the product ID and product name is instructed by the smart home cloud, and the HiLink ecological application 1108 is started / called according to the application name or application package name of the HiLink ecological application 1108.
[0256] S1408: The phone 100 controls the smart speaker 500 to play the audio.
[0257] Exemplarily, the phone 100 controls the smart speaker 500 to play the audio can include that the phone 100 transmits the audio to the smart speaker 500 based on the connection between the phone 100 and the smart speaker 500, such as Bluetooth, Wi-Fi or cellular, etc. through the all-scene collaboration function 11011. The smart speaker 500 starts / calls the HiLink ecological application 1108 to play the audio.
[0258] It can be seen that in the application scenario shown in FIG. 14, when the user clicks the music application 1107 sharing control of the mobile phone 100 and selects to share with the smart speaker 500, the mobile phone 100 can obtain the device information of the smart speaker 500, combine the stored product configuration information and application configuration information, and determine in time that the smart speaker 500 is an electronic device that needs to transmit / process data, and then the mobile phone 100 can control the smart speaker 500 to play audio.
[0259] FIG. 15 is a structural schematic diagram of an electronic device provided by an embodiment of the present application. As shown in FIG. 15, the electronic device (such as a mobile phone, a tablet computer, a wearable device, etc.) can include a processor 1510, an external memory interface 1520, an internal memory 1521, a universal serial bus (USB) interface 1530, a charging management module 1540, a power management module 1541, a battery 1542, an antenna 1, an antenna 2, a mobile communication module 1550, a wireless communication module 1560, an audio module 1570, a loudspeaker 1570A, a receiver 1570B, a microphone 1570C, a headset interface 1570D, a sensor module 1580, a key 1590, a motor 1591, an indicator 1592, a camera 1593, a display screen 1594, and a subscriber identification module (SIM) card interface 1595, etc.
[0260] The sensor module 1580 can include a pressure sensor, a gyroscope sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, and an ambient light sensor, etc.
[0261] The processor 1510 can include one or more processing units, for example: the processor 1510 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units can be independent devices, or can be integrated in one or more processors.
[0262] In the embodiments of the present application, the processor 1510 can be configured to automatically complete data transmission and processing between electronic devices in response to the interaction mode between the electronic devices during use of the electronic device by a user.
[0263] The electronic device can implement a display function through a GPU, a display screen 1594, an application processor, and the like. The GPU is a microprocessor for image processing, connected to the display screen 1594 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 1510 can include one or more GPUs that execute program instructions to generate or change display information.
[0264] The display screen 1594 is configured to display images, videos, and the like. The display screen 1594 includes a display panel. In the embodiments of the present application, the display screen 1594 can be configured to display data opened by the electronic device; the display screen 1594 can also receive a user operation performed by a user.
[0265] The electronic device can implement a shooting function through an ISP, a camera 1593, a video codec, a GPU, a display screen 1594, an application processor, and the like. The ISP is configured to process data fed back by the camera 1593. The camera 1593 is configured to capture still images or videos. The external memory interface 1520 can be configured to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 1510 through the external memory interface 1520 to implement a data storage function. For example, files such as music and videos are saved in the external memory card.
[0266] The internal memory 1521 can be configured to store computer executable program codes including instructions. The processor 1510 executes various function applications and data processing of the electronic device by running the instructions stored in the internal memory 1521. For example, in the embodiments of the present application, the processor 1510 can execute the instructions stored in the internal memory 1521, and the internal memory 1521 can include a program storage area and a data storage area. In the embodiments of the present application, the internal memory 1521 can store instructions for executing the method for processing signal data.
[0267] It can be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device. In the embodiments of the present application, the electronic device can include more or fewer components than those illustrated, or combine certain components, or split certain components, or different arrangement of components. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
[0268] In the embodiments of the present application, all or part of the processes and functions can be implemented by software, hardware, firmware, or any combination thereof. When implemented by software, all or part of the processes and functions can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions according to the embodiments of the present application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center through a wired (for example, coaxial cable, optical fiber, digital subscriber line) or wireless (for example, infrared, wireless, microwave, etc.) manner. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. containing one or more available media sets. The available media can be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid-state disk), etc.
[0269] A person of ordinary skill in the art can understand that all or part of the processes in the embodiments of the present application can be instructed by a computer program to complete the relevant hardware, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes in the embodiments of the present application. The aforementioned storage medium includes read only memory (ROM) or random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.
[0270] It should be understood that although the terms "first", "second" and the like can be used herein to describe various features, these features should not be limited by these terms. These terms are only used to distinguish one feature from another. For example, a first feature can be referred to as a second feature, and similarly a second feature can be referred to as a first feature without departing from the scope of the embodiments of the present application.
[0271] Furthermore, various operations will be described as multiple discrete operations, in a manner that is most helpful in understanding the embodiments of the present application; however, the order of description should not be construed as to imply that these operations are necessarily order dependent. Many of the operations can be handled in parallel or concurrently. Moreover, understood from this description are that the order of operations can be rearranged. A process can have additional steps not included in the figure that is described herein as a part of the process. The process can be correspond to a method, function, procedure, subroutine, subprogram, etc.
[0272] The terms "comprise", "have" and "include" are synonymous, unless the context dictates otherwise. The phrase "A / B" means "A or B". The phrase "A and / or B" means "(A), (B), or (A and B)".
[0273] As used herein, the term "module" can refer to, as part of, or include memory (shared, dedicated, or groups) that stores one or more software or firmware programs, application-specific integrated circuit (ASIC), electronic circuitry, and / or processor (shared, dedicated, or groups) that execute the software or firmware programs, combinational logic circuitry, and / or other suitable components that provide the described functionality.
[0274] In the drawings, some of the structural or methodological acts can be shown in a particular arrangement and / or order. It should be understood, however, that such a particular arrangement and / or order is not necessarily a requirement. Rather, in the embodiments of the present application, the acts can be performed in an order and / or arrangement different than that shown in the illustrative figures. Additionally, the structural or methodological acts contained in the particular figures can not be all-inclusive of the acts that can be performed in the embodiments of the present application. Rather, these acts can be combined with other acts in the embodiments of the present application, or some of the acts might be left out altogether, or some of the acts can be performed at different times, or some of the acts can be performed at the same time.
[0275] The embodiments of the present application have been described in detail above with reference to the drawings, but the use of the technical solutions of the present application is not limited to the various applications, structures and variations mentioned in the embodiments of the present application. Various changes can be made within the knowledge of those skilled in the art without departing from the purpose of the present application, and all such changes are intended to be covered by the scope of the present patent.
Claims
1. A data processing method, applied to a first electronic device, characterized in that: The method comprises: in response to an interaction operation between the first electronic device and a second electronic device, obtaining device information of the second electronic device; based on the device information of the second electronic device, determining at least one application supported by the second electronic device; from the at least one application supported by the second electronic device, determining a target application, and transmitting first data to the second electronic device; triggering the second electronic device to process the first data based on the target application.
2. The method of claim 1, wherein, When the interaction operation occurs between the first electronic device and the second electronic device, the first data is in a first state on the first electronic device, and the first state includes an open state or a selected state.
3. The method of claim 2, wherein, The first data transmitted to the second electronic device includes: When the interaction operation occurs between the first electronic device and the second electronic device, the first data in the first state on the first electronic device is transmitted to the second electronic device.
4. The method of claim 1, wherein, The method further comprises: The first electronic device obtains product configuration information and application configuration information, wherein the product configuration information includes product IDs, product names and device types of a plurality of electronic devices, and the application configuration information includes application names, application package names and device types supported by a plurality of applications.
5. The method of claim 4, wherein, In the case where the device information of the second electronic device includes the device type of the second electronic device, the determination of the at least one application supported by the second electronic device based on the device information of the second electronic device comprises: According to the application configuration information, at least one application corresponding to the device type of the second electronic device is determined.
6. The method of claim 4, wherein, In the case where the device information of the second electronic device includes the product ID or product name of the second electronic device but does not include the device type of the second electronic device, the determination of the at least one application supported by the second electronic device based on the device information of the second electronic device comprises: According to the product configuration information, the device type of the second electronic device corresponding to the product ID or product name of the second electronic device is determined. According to the application configuration information, at least one application corresponding to the device type of the second electronic device is determined.
7. The method according to claim 5 or 6, characterized in that, The determination of the target application from the at least one application supported by the second electronic device and the transmission of the first data to the second electronic device comprises: According to the data type of the first data, the application name or application package name of the target application corresponding to the data type is determined from the at least one application supported by the second electronic device.
8. The method of claim 7, wherein, The triggering of the second electronic device to perform data processing corresponding to the first data based on the target application comprises: The second electronic device is instructed to process the first data using the target application according to the application name or application package name of the target application.
9. The method of claim 1, wherein, The interaction operation comprises at least one of: The second electronic device touches the first electronic device; or The distance between the second electronic device and the first electronic device is reduced to less than a first distance threshold.
10. The method of claim 9, wherein, The first electronic device transmits the first data to the second electronic device through at least one of Bluetooth, Wi-Fi, and a cellular network.
11. The method of claim 4, wherein, Also included are: The first electronic device acquires the product configuration information and application configuration information at startup or at a specified period.
12. The method of claim 1, wherein, The first electronic device and the second electronic device log in using the same user account, or the first electronic device and the second electronic device are trusted devices.
13. An electronic device, comprising: Included are: a memory for storing instructions executed by one or more processors of an electronic device, and a processor for reading the instructions to execute the data processing method of any one of claims 1-12.
14. A computer-readable storage medium comprising instructions, wherein: The instructions, when executed on an electronic device, cause the electronic device to perform the data processing method of any one of claims 1-12.
Citation Information
Patent Citations
Data processing method and electronic equipment
CN120835111A
Content continuing method and system and electronic equipment
CN112351412A
Method and device for data migration between devices
CN115421939A
Screen identification method for distributed display, medium and electronic equipment
CN115857847A
Application synchronization method and electronic device
WO2023142869A1