CN107454154B - Data processing method and system - Google Patents

Data processing method and system Download PDF

Info

Publication number
CN107454154B
CN107454154B CN201710609028.9A CN201710609028A CN107454154B CN 107454154 B CN107454154 B CN 107454154B CN 201710609028 A CN201710609028 A CN 201710609028A CN 107454154 B CN107454154 B CN 107454154B
Authority
CN
China
Prior art keywords
request
data
electronic device
mobile terminal
sending
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710609028.9A
Other languages
Chinese (zh)
Other versions
CN107454154A (en
Inventor
申屠王斌
程剑锋
王梦昀
朱孝瑾
徐阳泽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201710609028.9A priority Critical patent/CN107454154B/en
Publication of CN107454154A publication Critical patent/CN107454154A/en
Application granted granted Critical
Publication of CN107454154B publication Critical patent/CN107454154B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present disclosure provides a data processing method applied to a first electronic device, including: sending a request to a second electronic device paired with the first electronic device, wherein the first electronic device and the second electronic device are provided with the same application program; receiving, from the second electronic device, cached data stored on the second electronic device, wherein the cached data is data generated by the application when executed on the second electronic device; and running the application program to operate on the cached data.

Description

Data processing method and system
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a data processing method and system.
Background
With the full spread of the internet, various new electronic devices have been produced. For example, smart watches, smart bracelets and smart glasses have emerged in recent years. The electronic equipment can be paired with the mobile terminal through Bluetooth to carry out data interaction.
In the prior art, after the smart watch and the mobile terminal are paired through bluetooth, the smart watch sends a request to a server through the mobile terminal, and the server responds to the request and feeds back data corresponding to the request.
In the process of implementing the invention, the inventor finds that the prior art has the following technical problems: the data obtained by the smart watch may not receive appropriate response data due to the difference in network protocol with the server. Alternatively, the smart watch may not receive any data at all when the server is abnormal or the network environment is abnormal.
Disclosure of Invention
In view of this, the present disclosure provides a data processing method and system.
One aspect of the present disclosure provides a data processing method applied to a first electronic device, including: sending a request to a second electronic device paired with the first electronic device, wherein the first electronic device and the second electronic device are provided with the same application program; receiving, from the second electronic device, cached data stored on the second electronic device, wherein the cached data is data generated by the application when executed on the second electronic device; and running the application program to operate on the cached data.
According to the embodiment of the disclosure, the detection request further includes software information of the terminal device, and the software information includes version information of the software.
According to an embodiment of the disclosure, before sending the request to the second electronic device, the method further comprises: detecting whether the cache data exists in a local cache; and if so, acquiring the cache data from the local cache.
According to the embodiment of the disclosure, whether a time difference between a first time and a second time is smaller than a threshold value is judged, and if so, the cache data is reserved, wherein the first time is a time when a request is sent to the second electronic device, and the second time is a time when the cache data is received from the second electronic device.
According to the embodiment of the present disclosure, a specific implementation process of sending the request to the second electronic device is to encapsulate the request into a specific format and send the specific format to the second electronic device, so that the second electronic device can recognize the request according to the specific format.
According to an embodiment of the present disclosure, a specific implementation process of receiving the cache data from the second electronic device is to receive the cache data encapsulated into a specific format from the second electronic device, so as to identify the cache data according to the specific format.
Another aspect of the present disclosure provides a data processing method applied to a second electronic device, including: receiving a request from a first electronic device paired with the second electronic device, the first electronic device and the second electronic device having a same application installed; sending cache data stored on the second electronic device to the first electronic device so as to enable the first electronic device to run the application program to operate on the cache data, wherein the cache data is data generated when the application program is executed on the second electronic device.
According to the embodiment of the disclosure, the specific implementation process of receiving the request from the first electronic device is to receive the request packaged into a specific format from the first electronic device so as to identify the request according to the specific format.
According to the embodiment of the present disclosure, a specific implementation process of sending the cache data to the first electronic device is to encapsulate the cache data into a specific format and send the encapsulated cache data to the first electronic device, so that the first electronic device can identify the cache data according to the specific format.
Another aspect of the present disclosure provides a data processing system applied to a first electronic device, including: the request sending module is used for sending a request to second electronic equipment paired with the first electronic equipment, and the first electronic equipment and the second electronic equipment are provided with the same application program; a receive data module, configured to receive, from the second electronic device, cached data stored on the second electronic device, where the cached data is data generated when the application is executed on the second electronic device; and the data operation module is used for operating the application program to operate the cache data.
According to an embodiment of the present disclosure, before sending the request to the second electronic device, the system further includes: the data detection module is used for detecting whether the cache data exist in a local cache or not; and the data acquisition module is used for acquiring the cache data from the local cache.
According to the embodiment of the present disclosure, the system further includes a determining module, where the determining module is configured to determine whether a time difference between a first time and a second time is smaller than a threshold, and if so, retain the cache data, where the first time is a time when a request is sent to the second electronic device, and the second time is a time when the cache data is received from the second electronic device.
According to the embodiment of the present disclosure, a specific implementation process of sending the request to the second electronic device is to encapsulate the request into a specific format and send the specific format to the second electronic device, so that the second electronic device can recognize the request according to the specific format.
According to an embodiment of the present disclosure, a specific implementation process of receiving the cache data from the second electronic device is to receive the cache data encapsulated into a specific format from the second electronic device, so as to identify the cache data according to the specific format.
Another aspect of the present disclosure provides a data processing system applied to a second electronic device, including: a receiving request module, configured to receive a request from a first electronic device paired with the second electronic device, where the first electronic device and the second electronic device have a same application installed; and a data sending module, configured to send, to the first electronic device, the cache data stored on the second electronic device, so that the first electronic device runs the application program to operate on the cache data, where the cache data is data generated when the application program is executed on the second electronic device.
According to the embodiment of the disclosure, the specific implementation process of receiving the request from the first electronic device is to receive the request packaged into a specific format from the first electronic device so as to identify the request according to the specific format.
According to the embodiment of the present disclosure, a specific implementation process of sending the cache data to the first electronic device is to encapsulate the cache data into a specific format and send the encapsulated cache data to the first electronic device, so that the first electronic device can identify the cache data according to the specific format.
Another aspect of the present disclosure provides a first electronic device, including: one or more processors; and one or more memories storing executable instructions that, when executed by the processor, cause the processor to perform the method as described above.
Another aspect of the present disclosure provides a second electronic device, including: one or more processors; and one or more memories storing executable instructions that, when executed by the processor, cause the processor to perform the method as described above.
Another aspect of the disclosure provides a non-volatile storage medium storing computer-executable instructions for implementing the method as described above when executed.
Another aspect of the disclosure provides a computer program comprising computer executable instructions for implementing the method as described above when executed.
According to the embodiment of the disclosure, the problem that data of respective application programs cannot be directly shared between the paired watch and the mobile phone can be at least partially solved, and therefore, the watch application programs can share cache data of the mobile phone application programs, unnecessary requests are avoided being sent as far as possible, flow is saved for users, and user experience is improved.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments of the present disclosure with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates an exemplary system architecture to which the data processing methods and apparatus of the present disclosure may be applied;
fig. 2 schematically shows a flow chart of a data processing method for a first electronic device according to an embodiment of the present disclosure;
fig. 3 schematically shows a flow chart of a data processing method for a first electronic device according to another embodiment of the present disclosure;
fig. 4 schematically shows a flow chart of a data processing method for a first electronic device according to another embodiment of the present disclosure;
fig. 5 schematically shows a flow chart of a data processing method for a second electronic device according to an embodiment of the present disclosure;
FIG. 6 schematically shows a block diagram of a data processing system for a first electronic device according to an embodiment of the present disclosure;
FIG. 7 schematically shows a block diagram of a data processing system for a first electronic device according to another embodiment of the present disclosure;
FIG. 8 schematically shows a block diagram of a data processing system for a first electronic device according to another embodiment of the present disclosure;
FIG. 9 schematically shows a block diagram of a data processing system for a second electronic device, in accordance with an embodiment of the present disclosure;
fig. 10 schematically shows a structural schematic diagram of a first electronic device according to an embodiment of the present disclosure; and
fig. 11 schematically shows a structural schematic diagram of a second electronic device according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The words "a", "an" and "the" and the like as used herein are also intended to include the meanings of "a plurality" and "the" unless the context clearly dictates otherwise. Furthermore, the terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Some block diagrams and/or flow diagrams are shown in the figures. It will be understood that some blocks of the block diagrams and/or flowchart illustrations, or combinations thereof, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the instructions, which execute via the processor, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks.
Accordingly, the techniques of this disclosure may be implemented in hardware and/or software (including firmware, microcode, etc.). In addition, the techniques of this disclosure may take the form of a computer program product on a computer-readable medium having instructions stored thereon for use by or in connection with an instruction execution system. In the context of this disclosure, a computer-readable medium may be any medium that can contain, store, communicate, propagate, or transport the instructions. For example, the computer readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium. Specific examples of the computer readable medium include: magnetic storage devices, such as magnetic tape or Hard Disk Drives (HDDs); optical storage devices, such as compact disks (CD-ROMs); a memory, such as a Random Access Memory (RAM) or a flash memory; and/or wired/wireless communication links.
The embodiment of the disclosure provides a data method and a data system, wherein the data processing method applied to first electronic equipment comprises the following steps: sending a request to a second electronic device paired with the first electronic device, wherein the first electronic device and the second electronic device are provided with the same application program; receiving cache data stored on the second electronic device from the second electronic device, wherein the cache data is data generated when the application program is executed on the second electronic device; and running the application to operate on the cached data. The data processing method applied to the second electronic equipment comprises the following steps: receiving a request from a first electronic device paired with a second electronic device, the first electronic device and the second electronic device having a same application installed; and sending the cache data stored on the second electronic equipment to the first electronic equipment so as to enable the first electronic equipment to run the application program to operate the cache data, wherein the cache data is data generated when the application program is executed on the second electronic equipment.
Fig. 1 schematically illustrates an exemplary system architecture to which the data processing method and apparatus of the present disclosure may be applied.
As shown in fig. 1, the system architecture 100 may include electronic devices 101, 103, 104, and 105, networks 102, 106, and a server 107 (this architecture is merely an example, and the components included in a particular architecture may be adjusted according to the circumstances). Network 102 is used to provide communication links between electronic device 101 and electronic devices 103, 104, and 105. Network 106 is used to provide communication links between electronic devices 103, 104, and 105 and server 107. Network 102 and network 106 may include, but are not limited to, wireless, wire, fiber optic, RF.
The electronic devices 103, 104, and 105 interact with the server 107 through the network 106, and the electronic device 101 pairs with the electronic devices 103, 104, and 105 through the network 102 to acquire data in the electronic devices 03, 104, and 105, the source of the data may be data inherent to the electronic devices 103, 104, and 105, or data transmitted to the electronic devices 103, 104, and 105 by the server 107.
The electronic device 101 may be, for example, a wearable device such as a smart watch, smart glasses, or the like, but is not limited thereto. Electronic devices 103, 104, and 105 may be various smart terminals paired with electronic device 101, including but not limited to smart phones, tablets, laptop portable computers, desktop computers, and the like.
The server 107 is used to provide data services for the electronic devices 103, 104, and 105. For example, when the electronic devices 103, 104, and 105 are installed with a shopping application, the server 107 provides the electronic devices 103, 104, and 105 with order inquiry service so that the electronic devices 103, 104, and 105 receive an order status, and at this time, the electronic device 101 acquires the order status from the electronic devices 103, 104, and 105 by pairing with the electronic devices 103, 104, and 105.
In one application scenario of the system architecture 100 illustrated in fig. 1, the electronic device 101 is a smart watch and one of the electronic devices 103, 104, or 105 (e.g., electronic device 105) is a smartphone. The following describes embodiments of the present disclosure by taking the smart watch 101 and the smart phone 105 as examples, but the present disclosure is not limited thereto.
According to an embodiment of the present disclosure, the same application is installed on the smart watch 101 and the smart phone 105, respectively. The same application is the same software provided by the software provider for different terminals. Of course, the software may have different versions for different types of terminals (e.g., smart watch 101 and smart phone 105).
The smartphone 105 may send a request to the server 107 by running an application, the server 107 responds to the request and feeds back data corresponding to the request to the smartphone 105, and the smartphone 105 may store the feedback data locally after receiving it. In the above case, the smart watch 101 sends a request to the smart phone 105 by running an application, the smart phone 105 detects whether data corresponding to the request sent by the smart watch 101 exists in the local cache data, and if so, sends the cache data to the smart watch 101. By the method, data sharing of the smart watch 101 and the smart phone 105 is achieved, the smart watch 101 can reliably obtain required data, meanwhile, the smart watch 101 does not need to be in direct communication with the server 107, network traffic is saved, and user experience is enhanced.
Fig. 2 schematically shows a flow chart of a data processing method for a first electronic device according to an embodiment of the present disclosure.
As shown in fig. 2, the data processing method for the first electronic device according to the embodiment of the present disclosure includes operations S201, S202, and S203.
In operation S201, a request is transmitted to a second electronic device paired with a first electronic device, the first electronic device and the second electronic device having the same application installed.
In operation S202, cache data stored on the second electronic device is received from the second electronic device, wherein the cache data is data generated when the application program is executed on the second electronic device.
In operation S203, the application is executed to operate on the cached data.
According to the embodiment of the disclosure, when using the first electronic device, the user generally views some information on the application program of the first electronic device, such as shopping order information, logistics information of an order, or shopping snatching information of a certain commodity. The present embodiment causes the first electronic device to obtain the above information by performing the following operations: the first electronic device sends a request to the second electronic device, and the request may be, but is not limited to, a shopping request, a logistics inquiry request of an order, or an information inquiry request of a certain commodity. And then, the second electronic equipment detects whether cache data corresponding to the cache data exists in the cache of the second electronic equipment according to the request sent by the first electronic equipment, and if so, the cache data is sent to the first electronic equipment. And after receiving the cache data, the first electronic equipment runs an application program to operate the cache data. For example, the user may click on the cached data on the application program, and then the first electronic device responds to the click operation of the user, so that the user views some information, including but not limited to shopping information, logistics information of an order, price information of a certain commodity, and the like.
According to the embodiment of the disclosure, the cache data of the application program in the second electronic device can be shared with the application program of the first electronic device, wherein the application program of the first electronic device and the application program of the second electronic device are the same application program. Thus, the first electronic device can not only obtain corresponding data in a simple and reliable manner, but also save traffic for the user. And the cache data of the second electronic device application program is used as a response data source when the first electronic device application program requests, so that the situation that appropriate data cannot be acquired due to server abnormality or network environment abnormality can be further avoided, and the user experience is improved.
According to an embodiment of the present disclosure, the first electronic device in operation S201 may be the smart watch 101, the smart band, or the smart glasses, but is not limited thereto. For example, smart Watch 101 may be Apple Watch, Hua Wei Watch, but is not so limited. The second electronic device may be, but is not limited to, a smart phone 105, a tablet computer, a laptop portable computer, or a desktop computer. Wherein the first electronic device and the second electronic device both have bluetooth functionality.
The first electronic device and the second electronic device are paired and connected through bluetooth, and may be paired in other wireless connection manners. After the pairing connection between the first electronic device and the second electronic device is completed, the first electronic device may send some requests to the second electronic device, where the requests may be requests of applications in the first electronic device, such as applications including but not limited to naobao, kyoto, kindergarten, amazon, and the like, and the requests may be shopping requests, order logistics query requests, or certain merchandise information query requests of naobao, kyoto, kindergarten, or amazon, and the like.
It is emphasized that the first electronic device and the second electronic device are installed with the same application. For example, the first electronic device is installed with the applications of pan, kyoto, humiture, amazon, etc., the second electronic device should also be installed with the same applications as the first electronic device, i.e., the applications of pan, kyoto, humiture, amazon, etc. Therefore, when the application programs such as Taobao, Jingdong, Wei Hui, Amazon and the like in the first electronic equipment send requests, the corresponding application program in the second electronic equipment can respond to the requests and return corresponding cache data.
According to an embodiment of the present disclosure, the cached data in operation S202 is data generated when the application is executed on the second electronic device. For example, the generation process of the cache data is specifically described by taking the application program as the kyoto application program as an example.
The specific implementation process is that the user starts a kyoto application program in the second electronic device, sends a shopping request, an order logistics inquiry request or a request of some commodity information to the server by using the kyoto application program, the server responds to the requests, feeds back data corresponding to the requests to the second electronic device, and then the second electronic device respectively stores the data corresponding to the requests in a local cache. The above examples are given by way of illustration only and are not intended to be limiting.
It should be noted that in operation S203, an application is executed to operate on the cached data, where the application may understand the kyoto application of the above example, and the cached data may be understood as the local data stored in the second electronic device. The operation on the cached data may be understood as that when the user is inconvenient to use the second electronic device or the second electronic device has low power, the user may obtain the cached data in the second electronic device through the first electronic device, and operate the cached data, that is, view the order information or the information of the order logistics on the kyoto application based on the cached data, but is not limited thereto.
By the method, the first electronic device can share the cache data in the second electronic device. The data obtained by the first electronic device through the method reduces the probability that proper response data cannot be received due to different network protocols, and saves the flow for the user. And the cache data of the second electronic device application program is used as a response data source when the first electronic device application program requests, so that the situation that appropriate data cannot be acquired due to server abnormality or network environment abnormality can be further avoided, and the user experience is improved.
Fig. 3 schematically shows a flow chart of a data processing method for a first electronic device according to another embodiment of the present disclosure.
According to an embodiment of the present disclosure, before performing operation S201, operation S301 and operation S302 in fig. 3 may be performed.
As shown in fig. 3, in operation S301, it is detected whether cache data exists in a local cache in a first electronic device.
In operation S302, if the cache data exists in the local cache in the first electronic device, the cache data is acquired from the local cache.
According to an embodiment of the present disclosure, before operation S301, if the first electronic device sends a record of a request to the second electronic device, and the first electronic device receives cache data corresponding to the request, the first electronic device may store the received cache data in a local cache. In this case, when performing operation S301 and operation S302, the user may obtain corresponding cache data from the local cache of the first electronic device.
According to the embodiment of the disclosure, when the second access is the same as the first access of the cache data received from the second electronic device, the user does not need to send a request to the second electronic device, and the cache data can be obtained from the local cache of the first electronic device in the above manner, so that the flow can be saved for the user, and the condition that the received data is illegal due to unstable connection between the first electronic device and the second electronic device can be avoided.
Fig. 4 schematically shows a flow chart of a data processing method for a first electronic device according to another embodiment of the present disclosure.
As shown in fig. 4, the above method further includes operation S401 according to an embodiment of the present disclosure.
In operation S401, it is determined whether a time difference between a first time and a second time is smaller than a threshold, and if so, the cache data received from the second electronic device is retained, where the first time is a time when a request is sent to the second electronic device, and the second time is a time when the cache data is received from the second electronic device.
According to the embodiment of the present disclosure, in operation S401, it may be determined whether a time difference between the first time and the second time is smaller than a threshold by using a timer, and it may also be determined whether the time difference between the first time and the second time is smaller than a threshold by using the timer. The threshold may be set to a specific value according to practical situations, and may be, for example, 15, 10, or 5, but is not limited thereto.
For example, the threshold value is set to 10 by the first electronic device, when the time of sending the request to the second electronic device is 13:39:10, and the time of receiving the cache data from the second electronic device is 13:39:18, it is obvious that the time difference between the first time and the second time is less than 10, and at this time, the cache data received from the second electronic device may be saved in the local cache of the first electronic device for the user to call. If the time of receiving the cached data from the second electronic device is 13:39:22, it is obvious that the time difference between the first time and the second time is greater than 10, at this time, the user may regard that the request initiated by the first electronic device is failed, and the first electronic device deletes the cached data received from the second electronic device.
According to the embodiment of the disclosure, a threshold is set to improve the experience effect of the user, for example, if the user waits for several minutes after using the first electronic device to send a request to the second electronic device, no feedback is given, and similar results cause confusion to the user if the user frequently occurs, so that the user does not use the first electronic device to send a request to the second electronic device, and therefore, a random threshold is set in the method to avoid the occurrence of such events, thereby achieving the technical effect of enhancing the user experience.
According to the embodiment of the present disclosure, in operation S201, the request is first packaged into a specific format and then transmitted to the second electronic device, so that the second electronic device can recognize the request according to the specific format.
Generally, the request in the first electronic device is encapsulated into JSON format, although other formats are possible, and JSON format is only an example and is not intended to be limiting. The packaging format of the first electronic device packages the requested ULR, the identification of the first electronic device and the time for sending the request, and then sends the packaged request to the second electronic device. The request encapsulated in this way makes it easy for the second electronic device to identify the content in the request, saving time for the user.
According to an embodiment of the present disclosure, the buffered data in operation S202 is the buffered data received from the second electronic device and encapsulated into a specific format, and the first electronic device recognizes the buffered data according to the specific format.
Generally, the cache data in the second electronic device may also be encapsulated into JSON format, which is only an example and does not have any limitation. The first electronic device packages the ULR of the received request, the identification of the first electronic device and the time of the request together while packaging the format, and then sends the packaged request to the first electronic device. The cache data packaged in the mode enables the first electronic equipment to easily identify the content in the cache data, and time is saved for a user.
Fig. 5 schematically shows a flow chart of a data processing method for a second electronic device according to an embodiment of the present disclosure.
As shown in fig. 5, the data processing method for the second electronic device according to the embodiment of the present disclosure includes operations S501 and S502.
In operation S501, a request is received from a first electronic device paired with a second electronic device, the first electronic device and the second electronic device having the same application installed.
In operation S502, cache data stored on the second electronic device is sent to the first electronic device, so that the first electronic device runs an application program to operate on the cache data, where the cache data is data generated when the application program is executed on the second electronic device.
According to the embodiment of the disclosure, when using the second electronic device, the user generally views some information on the application program of the second electronic device, such as shopping order information, logistics information of an order, or shopping snatching information of a certain commodity. The present embodiment causes the second electronic device to obtain the above information by performing the following operations: and sending a request to the server through the second electronic device, wherein the request may be a shopping request, a logistics inquiry request of an order, or an information inquiry request of a certain commodity, and the like, but is not limited thereto. Then, the second electronic device stores the received shopping order information, logistics information of the order, or data of information of a certain commodity locally. In this case, when the second electronic device receives a request of the first electronic device, the request may be a shopping request corresponding to local data stored in the second electronic device, a logistics query request of an order, or a certain goods information query request, the second electronic device first detects whether cache data corresponding to the received request exists in a local cache, and if so, sends the cache data to the first electronic device, so that the first electronic device runs an application program to operate on the cache data. For example, the user may click on the cached data on the application program, and then the first electronic device responds to the click operation of the user, so that the user views some information, including but not limited to shopping information, logistics information of an order, price information of a certain commodity, and the like.
According to the embodiment of the disclosure, the cache data of the application program in the second electronic device can be shared with the application program of the first electronic device, wherein the application program of the first electronic device and the application program of the second electronic device are the same application program. Thus, the first electronic device can not only obtain corresponding data in a simple and reliable manner, but also save traffic for the user. And the cache data of the second electronic device application program is used as a response data source when the first electronic device application program requests, so that the situation that appropriate data cannot be acquired due to server abnormality or network environment abnormality can be further avoided, and the user experience is improved.
According to an embodiment of the present disclosure, the first electronic device in operation S501 may be a smart watch 101, a smart band, or smart glasses, and the like, but is not limited thereto. For example, smart Watch 101 may be Apple Watch, Hua Wei Watch, but is not so limited. The second electronic device may be, but is not limited to, a smart phone 105, a tablet computer, a laptop portable computer, a desktop computer, or the like. Wherein the first electronic device and the second electronic device both have bluetooth functionality.
The first electronic device and the second electronic device are paired and connected through bluetooth, and may be paired in other wireless connection manners. After the first electronic device and the second electronic device are paired and connected, the second electronic device receives some requests from the first electronic device, where the requests may be requests of applications in the first electronic device, such as applications including but not limited to naobao, kyoto, netowrk, amazon, and the like, and the requests may be shopping requests, order logistics query requests, or certain commodity information query requests, and the like.
It is emphasized that the first electronic device and the second electronic device are installed with the same application. For example, the first electronic device is installed with the applications of pan, kyoto, humiture, amazon, etc., the second electronic device should also be installed with the same applications as the first electronic device, i.e., the applications of pan, kyoto, humiture, amazon, etc. Therefore, when the application programs such as Taobao, Jingdong, Wei Hui, Amazon and the like in the first electronic equipment send requests, the corresponding application program in the second electronic equipment can respond to the requests and return corresponding cache data.
According to an embodiment of the present disclosure, the cached data in operation S502 is data generated when the application is executed on the second electronic device. For example, the generation process of the cache data is specifically described by taking the application program as the kyoto application program as an example.
The specific implementation process is that the user starts a kyoto application program in the second electronic device, sends a shopping request, an order logistics inquiry request or a request of some commodity information to the server by using the kyoto application program, the server responds to the requests, feeds back data corresponding to the requests to the second electronic device, and then the second electronic device respectively stores the data corresponding to the requests in a local cache. The above examples are given by way of illustration only and are not intended to be limiting.
It should be noted that, in operation S502, an application is executed to operate on the cached data, where the application may understand the kyoto application of the above example, and the cached data may be understood as the local data stored in the second electronic device. The operation on the cached data may be understood as that when the user is inconvenient to use the second electronic device or the second electronic device has low power, the user may obtain the cached data in the second electronic device through the first electronic device, and operate the cached data, that is, view the order information or the information of the order logistics on the kyoto application based on the cached data, but is not limited thereto.
By the method, the first electronic device can share the cache data in the second electronic device. The data obtained by the first electronic device through the method reduces the probability that proper response data cannot be received due to different network protocols, and saves the flow for the user. And the cache data of the second electronic device application program is used as a response data source when the first electronic device application program requests, so that the situation that appropriate data cannot be acquired due to server abnormality or network environment abnormality can be further avoided, and the user experience is improved.
According to an embodiment of the present disclosure, the request in operation S501 is to receive a request encapsulated into a specific format from the first electronic device, according to which the second electronic device can recognize the request.
Generally, the request in the first electronic device is encapsulated into JSON format, although other formats are possible, and JSON format is only an example and is not intended to be limiting. The packaging format of the first electronic device packages the requested ULR, the identification of the first electronic device and the time for sending the request, and then sends the packaged request to the second electronic device. The request encapsulated in this way makes it easy for the second electronic device to identify the content in the request, saving time for the user.
According to the embodiment of the present disclosure, when operation S502 is performed, the cache data is first packaged into a specific format and then transmitted to the first electronic device, so that the first electronic device can recognize the cache data according to the specific format.
Generally, the cache data in the second electronic device may also be encapsulated into JSON format, which is only an example and does not have any limitation. The first electronic device packages the ULR of the received request, the identification of the first electronic device and the time of the request together while packaging the format, and then sends the packaged request to the first electronic device. The cache data packaged in the mode enables the first electronic equipment to easily identify the content in the cache data, and time is saved for a user.
FIG. 6 schematically shows a block diagram of a data processing system for a first electronic device according to an embodiment of the present disclosure.
As shown in fig. 6, a data processing system 600, applied to a first device, includes a request sending module 610, a data receiving module 620 and a data operating module 630.
The sending request module 610 is configured to send a request to a second electronic device paired with a first electronic device, where the first electronic device and the second electronic device have the same application installed.
A receive data module 620, configured to receive, from the second electronic device, cached data stored on the second electronic device, where the cached data is data generated when the application is executed on the second electronic device.
A data operation module 630, configured to run an application program to operate on the cached data.
In connection with the first electronic device sending the request and receiving the buffered data according to the embodiment of the present disclosure, reference may be made to the description above with reference to fig. 2, and this is not repeated here.
Fig. 7 schematically shows a block diagram of a data processing system for a first electronic device according to another embodiment of the present disclosure.
As shown in fig. 7, prior to executing the send request module 610 in the system 600, the system 600 further includes a detect data module 710 and a get data module 720 according to an embodiment of the present disclosure.
The data detecting module 710 is configured to detect whether the cache data exists in a local cache of the first electronic device.
A data obtaining module 720, configured to obtain the cache data from the local cache of the first electronic device.
According to the embodiment of the present disclosure, in relation to detecting whether the cache data exists in the local cache of the first electronic device and obtaining the cache data from the local cache of the first electronic device, reference may be made to the description above with reference to fig. 3, and this description is not repeated here.
FIG. 8 schematically shows a block diagram of a data processing system for a first electronic device according to another embodiment of the present disclosure.
As shown in fig. 8, the system 600 further includes a determination module 810 according to an embodiment of the present disclosure. The determining module 810 is configured to determine whether a time difference between a first time and a second time is smaller than a threshold, and if so, retain the cache data received from the second electronic device, where the first time is a time when a request is sent to the second electronic device, and the second time is a time when the cache data is received from the second electronic device.
In the embodiment of the present disclosure, reference may be made to the description above with reference to fig. 4 for determining whether the time difference between the first time and the second time is smaller than a threshold, and the description is not repeated here.
According to the embodiment of the disclosure, when the request sending module 610 is executed, the request is firstly packaged into a specific format and then sent to the second electronic device, so that the second electronic device can recognize the request according to the specific format.
Generally, the request in the first electronic device is encapsulated into JSON format, although other formats are possible, and JSON format is only an example and is not intended to be limiting. The packaging format of the first electronic device packages the requested ULR, the identification of the first electronic device and the time for sending the request, and then sends the packaged request to the second electronic device. The request encapsulated in this way makes it easy for the second electronic device to identify the content in the request, saving time for the user.
According to an embodiment of the present disclosure, the buffered data in the receive data module 620 is buffered data that is received from the second electronic device and encapsulated into a specific format, and the first electronic device recognizes the buffered data according to the specific format.
Generally, the cache data in the second electronic device may also be encapsulated into JSON format, which is only an example and does not have any limitation. The first electronic device packages the ULR of the received request, the identification of the first electronic device and the time of the request together while packaging the format, and then sends the packaged request to the first electronic device. The cache data packaged in the mode enables the first electronic equipment to easily identify the content in the cache data, and time is saved for users
It is understood that the request sending module 610, the data receiving module 620, the data operating module 630, the data detecting module 710, the data obtaining module 720 and the determining module 810 may be combined and implemented in one module, or any one of them may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present invention, at least one of the request sending module 610, the data receiving module 620, the data operating module 630, the data detecting module 710, the data obtaining module 720 and the determining module 810 may be at least partially implemented as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or in a suitable combination of three implementations of software, hardware and firmware. Alternatively, at least one of the request sending module 610, the data receiving module 620, the data operating module 630, the data detecting module 710, the data acquiring module 720 and the determining module 810 may be at least partially implemented as a computer program module, which when executed by a computer, may perform the functions of the respective modules.
FIG. 9 schematically shows a block diagram of a data processing system for a second electronic device, in accordance with an embodiment of the present disclosure.
As shown in fig. 9, a data processing system 900, which is applied to a second electronic device, includes a receiving request module 910 and a sending data module 920.
A receive request module 910, configured to receive a request from a first electronic device paired with a second electronic device, where the first electronic device and the second electronic device have the same application installed.
The data sending module 920 is configured to send the cached data stored on the second electronic device to the first electronic device, so that the first electronic device runs the application program to operate on the cached data, where the cached data is data generated when the application program is executed on the second electronic device.
According to the embodiment of the present disclosure, reference may be made to the description above with reference to fig. 5 regarding the request received by the second electronic device and the transmitted cache data, which is not repeated here.
According to an embodiment of the present disclosure, the request in the receive request module 910 is a request received from a first electronic device encapsulated into a specific format according to which the second electronic device can recognize the request.
Generally, the request in the first electronic device is encapsulated into JSON format, although other formats are possible, and JSON format is only an example and is not intended to be limiting. The packaging format of the first electronic device packages the requested ULR, the identification of the first electronic device and the time for sending the request, and then sends the packaged request to the second electronic device. The request encapsulated in this way makes it easy for the second electronic device to identify the content in the request, saving time for the user.
According to an embodiment of the present disclosure, when the data sending module 920 is executed, the buffered data is first encapsulated into a specific format and then sent to the first electronic device, so that the first electronic device can recognize the buffered data according to the specific format.
Generally, the cache data in the second electronic device may also be encapsulated into JSON format, which is only an example and does not have any limitation. The first electronic device packages the ULR of the received request, the identification of the first electronic device and the time of the request together while packaging the format, and then sends the packaged request to the first electronic device. The cache data packaged in the mode enables the first electronic equipment to easily identify the content in the cache data, and time is saved for a user.
It is understood that the module 910 for receiving a request and the module 920 for sending data may be combined and implemented in one module, or any one of the modules may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present invention, at least one of the request receiving module 910 and the data sending module 920 may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or any other reasonable manner of integrating or packaging a circuit, as hardware or firmware, or as a suitable combination of software, hardware, and firmware implementations. Alternatively, at least one of the receive request module 910 and the transmit data module 920 may be implemented at least in part as computer program modules that, when executed by a computer, perform the functions of the respective modules.
Fig. 10 schematically shows a structural schematic diagram of a first electronic device according to an embodiment of the present disclosure.
The first electronic device 1000 includes a Central Processing Unit (CPU)1001 as shown in fig. 10, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)1002 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 1003. In the RAM1003, various programs and data necessary for the operation of the electronic apparatus 1000 are also stored. The CPU 1001, ROM 1002, and RAM1003 are connected to each other via a bus 1004.
An input/output (I/O) interface 1005 may also be connected to the bus 1004 in accordance with an embodiment of the present disclosure. The following components may also be connected to the I/O interface 1005: an input section 1006 including a keyboard, a mouse, and the like; an output section 1007 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 1008 including a hard disk and the like; and a communication section 1009 including a network interface card such as a LAN card, a modem, or the like. The communication section 1009 performs communication processing via a network such as the internet. The driver 1010 is also connected to the I/O interface 1005 as necessary. A removable medium 1011 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 1010 as necessary, so that a computer program read out therefrom is mounted into the storage section 1008 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication part 1009 and/or installed from the removable medium 1011. When the computer program is executed by a Central Processing Unit (CPU)1001, various operations of the first electronic device 1000 according to the embodiments of the present disclosure are performed.
It should be noted that the computer readable media shown in the present disclosure may be computer readable signal media or computer readable storage media or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer-readable signal medium may include a propagated data signal with computer-readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a transmitting unit, an obtaining unit, a determining unit, and a first processing unit. The names of these units do not in some cases constitute a limitation to the unit itself, and for example, the sending unit may also be described as a "unit sending a picture acquisition request to a connected server".
As another aspect, a computer-readable medium is also provided according to an embodiment of the present disclosure. The computer readable medium carries one or more programs which, when executed, implement a data processing method for the first electronic device 1000 according to an embodiment of the present disclosure, including: sending a request to a second electronic device paired with the first electronic device 1000, the first electronic device 1000 and the second electronic device having the same application installed; receiving cache data stored on the second electronic device from the second electronic device, wherein the cache data is data generated when the application program is executed on the second electronic device; an application is run to operate on the cached data.
Fig. 11 schematically shows a structural schematic diagram of a second electronic device according to an embodiment of the present disclosure.
As shown in fig. 11, the second electronic device 1100 includes a Central Processing Unit (CPU)1101, which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)1102 or a program loaded from a storage section 1108 into a Random Access Memory (RAM) 703. In the RAM1103, various programs and data necessary for the operation of the electronic device (second electronic device) 1100 are also stored. The CPU1101, ROM 1102, and RAM1103 are connected to each other by a bus 1104.
An input/output (I/O) interface 1105 may also be connected to bus 1104 in accordance with an embodiment of the disclosure. The following components may also be connected to the I/O interface 1105: an input portion 1106 including a keyboard, mouse, and the like; an output portion 1107 including a signal output unit such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and a speaker; a storage section 1108 including a hard disk and the like; and a communication section 1109 including a network interface card such as a LAN card, a modem, or the like. The communication section 1109 performs communication processing via a network such as the internet. A driver 1110 is also connected to the I/O interface 1105 as necessary. A removable medium 1111 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 1110 as necessary, so that a computer program read out therefrom is mounted into the storage section 1108 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication portion 1109 and/or installed from the removable medium 1111. When the computer program is executed by a Central Processing Unit (CPU)1101, various operations of the second electronic device 1100 according to the embodiments of the present disclosure are performed.
It should be noted that the computer readable media shown in the present disclosure may be computer readable signal media or computer readable storage media or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer-readable signal medium may include a propagated data signal with computer-readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a transmitting unit, an obtaining unit, a determining unit, and a first processing unit. The names of these units do not in some cases constitute a limitation to the unit itself, and for example, the sending unit may also be described as a "unit sending a picture acquisition request to a connected server".
As another aspect, a computer-readable medium is also provided according to an embodiment of the present disclosure. The computer readable medium carries one or more programs which, when executed, implement a data processing method for the second electronic device 1100 according to an embodiment of the present disclosure, including: receiving a request from a first electronic device 1000 paired with a second electronic device 1100, the first electronic device 1000 and the second electronic device 1100 having the same application installed; sending the cache data stored on the second electronic device 1100 to the first electronic device 1000, so that the first electronic device 1000 runs the application program to operate on the cache data, wherein the cache data is data generated when the application program is executed on the second electronic device 1100.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (18)

1. A data processing method is applied to wearable equipment and comprises the following steps:
sending a request to a mobile terminal paired with the wearable device, wherein the wearable device and the mobile terminal are provided with the same application program;
receiving cache data stored on the mobile terminal from the mobile terminal, wherein the cache data is data generated by the application program in response to the same request from a server when the application program is executed on the mobile terminal; and
running the application program to operate on cached data corresponding to the request;
and judging whether the time difference between a first time and a second time is smaller than a threshold value, if so, reserving the cache data, wherein the first time is the time for sending a request to the mobile terminal, and the second time is the time for receiving the cache data from the mobile terminal.
2. The method of claim 1, wherein prior to sending the request to the mobile terminal, further comprising:
detecting whether the cache data exists in a local cache; and
and if so, acquiring the cache data from the local cache.
3. The method of claim 1, wherein sending a request to the mobile terminal comprises:
and packaging the request into a specific format and then sending the specific format to the mobile terminal, so that the mobile terminal can identify the request according to the specific format.
4. The method of claim 1, wherein receiving the cached data from the mobile terminal comprises:
and receiving the cache data encapsulated into a specific format from the mobile terminal so as to identify the cache data according to the specific format.
5. A data processing method is applied to a mobile terminal and comprises the following steps:
receiving a request from a wearable device paired with the mobile terminal, the wearable device and the mobile terminal having a same application installed;
sending, to the wearable device, cached data stored on the mobile terminal to cause the wearable device to run the application to operate on cached data corresponding to the request;
wherein the cache data is data generated by the application program in response to the same request from a server when the application program is executed on the mobile terminal;
and judging whether the time difference between a first time and a second time is smaller than a threshold value, if so, reserving the cache data, wherein the first time is the time for sending a request to the mobile terminal, and the second time is the time for receiving the cache data from the mobile terminal.
6. The method of claim 5, wherein receiving a request from the wearable device comprises:
receiving a request encapsulated in a particular format from the wearable device to identify the request according to the particular format.
7. The method of claim 5, wherein transmitting the cached data to the wearable device comprises:
and packaging the cache data into a specific format and then sending the format to the wearable device, so that the wearable device can identify the cache data according to the specific format.
8. A data processing system is applied to a wearable device and comprises:
the request sending module is used for sending a request to a mobile terminal matched with the wearable device, and the wearable device and the mobile terminal are provided with the same application program;
a data receiving module, configured to receive, from the mobile terminal, cached data stored on the mobile terminal, where the cached data is data generated by the application program when executed on the mobile terminal and generated by a server in response to the same request; and
the data operation module is used for running the application program to operate the cache data corresponding to the request;
and the judging module is used for judging whether the time difference between a first moment and a second moment is smaller than a threshold value, and if so, reserving the cache data, wherein the first moment is the moment of sending a request to the mobile terminal, and the second moment is the moment of receiving the cache data from the mobile terminal.
9. The system of claim 8, wherein prior to sending the request to the mobile terminal, further comprising:
the data detection module is used for detecting whether the cache data exist in a local cache or not; and
and the data acquisition module is used for acquiring the cache data from the local cache.
10. The system of claim 8, wherein the sending request module sending a request to the mobile terminal comprises:
and packaging the request into a specific format and then sending the specific format to the mobile terminal, so that the mobile terminal can identify the request according to the specific format.
11. The system of claim 8, wherein the receive data module receives the cached data from the mobile terminal comprises:
and receiving the cache data encapsulated into a specific format from the mobile terminal so as to identify the cache data according to the specific format.
12. A data processing system is applied to a mobile terminal and comprises:
a receiving request module, configured to receive a request from a wearable device paired with the mobile terminal, where the wearable device and the mobile terminal have a same application installed; and
a sending data module, configured to send, to the wearable device, cached data stored on the mobile terminal, so that the wearable device runs the application program to operate on the cached data corresponding to the request, where the cached data is data generated by the application program when executed on the mobile terminal and generated by a server in response to the same request;
and the judging module is used for judging whether the time difference between a first moment and a second moment is smaller than a threshold value, and if so, reserving the cache data, wherein the first moment is the moment of sending a request to the mobile terminal, and the second moment is the moment of receiving the cache data from the mobile terminal.
13. The system of claim 12, wherein the receive request module to receive a request from the wearable device comprises:
receiving a request encapsulated in a particular format from the wearable device to identify the request according to the particular format.
14. The system of claim 12, wherein the transmit data module to transmit the cached data to the wearable device comprises:
and packaging the cache data into a specific format and then sending the format to the wearable device, so that the wearable device can identify the cache data according to the specific format.
15. An electronic device, comprising:
one or more processors; and
one or more memories storing executable instructions that, when executed by a processor, cause the processor to perform the method of any of claims 1-4.
16. An electronic device, comprising:
one or more processors; and
one or more memories storing executable instructions that, when executed by a processor, cause the processor to perform the method of any of claims 5-7.
17. A readable storage medium having stored thereon instructions for performing the method of any of claims 1-4.
18. A readable storage medium having stored thereon instructions for carrying out the method according to any one of claims 5 to 7.
CN201710609028.9A 2017-07-24 2017-07-24 Data processing method and system Active CN107454154B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710609028.9A CN107454154B (en) 2017-07-24 2017-07-24 Data processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710609028.9A CN107454154B (en) 2017-07-24 2017-07-24 Data processing method and system

Publications (2)

Publication Number Publication Date
CN107454154A CN107454154A (en) 2017-12-08
CN107454154B true CN107454154B (en) 2021-03-30

Family

ID=60488057

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710609028.9A Active CN107454154B (en) 2017-07-24 2017-07-24 Data processing method and system

Country Status (1)

Country Link
CN (1) CN107454154B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105573845A (en) * 2015-03-06 2016-05-11 深圳酷派技术有限公司 Information processing method and system and terminals
CN105915250A (en) * 2016-05-31 2016-08-31 青岛海信移动通信技术股份有限公司 Method, device and system for wearable device to synchronize with information in mobile terminal
CN106303679A (en) * 2016-08-30 2017-01-04 腾讯科技(深圳)有限公司 Media play controlling method and media play client
WO2017003467A1 (en) * 2015-06-29 2017-01-05 Facebook, Inc. Methods and systems for installing an application version via close range communications
CN106331048A (en) * 2015-06-30 2017-01-11 阿里巴巴集团控股有限公司 Data processing method, apparatus and system, and mobile device
CN106415431A (en) * 2014-05-30 2017-02-15 苹果公司 Transition from use of one device to another

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106415431A (en) * 2014-05-30 2017-02-15 苹果公司 Transition from use of one device to another
CN105573845A (en) * 2015-03-06 2016-05-11 深圳酷派技术有限公司 Information processing method and system and terminals
WO2017003467A1 (en) * 2015-06-29 2017-01-05 Facebook, Inc. Methods and systems for installing an application version via close range communications
CN106331048A (en) * 2015-06-30 2017-01-11 阿里巴巴集团控股有限公司 Data processing method, apparatus and system, and mobile device
CN105915250A (en) * 2016-05-31 2016-08-31 青岛海信移动通信技术股份有限公司 Method, device and system for wearable device to synchronize with information in mobile terminal
CN106303679A (en) * 2016-08-30 2017-01-04 腾讯科技(深圳)有限公司 Media play controlling method and media play client

Also Published As

Publication number Publication date
CN107454154A (en) 2017-12-08

Similar Documents

Publication Publication Date Title
WO2020207454A1 (en) Information pushing method and device
WO2019015272A1 (en) Information processing method and device
CN110377440B (en) Information processing method and device
CN110019496B (en) Data reading and writing method and system
US20220043898A1 (en) Methods and apparatuses for acquiring information
US20220391229A1 (en) Icon updating method and apparatus, and electronic device
CN111162990B (en) Method and equipment for presenting message notification
CN110619096A (en) Method and apparatus for synchronizing data
CN110865846B (en) Application management method, device, terminal, system and storage medium
KR102140294B1 (en) Advertising method of electronic apparatus and electronic apparatus thereof
CN109218338B (en) Information processing system, method and device
CN111596992B (en) Navigation bar display method and device and electronic equipment
CN113176907A (en) Interface data calling method and device, computer system and readable storage medium
CN107454154B (en) Data processing method and system
US20230418470A1 (en) Data processing method and apparatus, and electronic device
CN111460020B (en) Method, device, electronic equipment and medium for resolving message
CN114116263A (en) System, method, apparatus, and medium for multi-page tag communication in a browser
CN106068506B (en) Apparatus and method for increasing loading time in an electronic device
WO2020224295A1 (en) Information management method, device, and system
CN115373869A (en) Process processing method and device based on AAR and electronic equipment
CN109669679B (en) Service detection and processing method and device and electronic equipment
CN110099122B (en) Method and apparatus for sending network request
CN111324512B (en) Method, apparatus, electronic device, and computer-readable medium for generating text
CN111694679B (en) Message processing method and device and electronic equipment
CN111831530A (en) Test method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant