Unlock instant, AI-driven research and patent intelligence for your innovation.

Communication method and device

A communication method and feature information technology, which is applied in the electronic field, can solve problems such as the failure of communication between the webpage and the operating system, and the inability of the webpage to communicate with the operating system, so as to achieve the effect of improving user experience and enhancing functions

Active Publication Date: 2021-07-23
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Based on the above-mentioned processing method of communication between the webpage and the operating system, if the corresponding interface is not set in the browser used by the user, the webpage will not be able to communicate with the operating system, thus causing the communication between the webpage and the operating system to fail.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Communication method and device
  • Communication method and device
  • Communication method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach 1

[0128] Embodiment 1: The target message is extracted from the target network request through the Hooked Send interface.

[0129] After the Hooked Send interface identifies the target network request, it can parse the request data packet, and then extract the target message from the parsed request data according to the preset strategy such as the preset key field APP ID. Taking the target network request as the target HTTP request as an example, the above process can be found in Figure 2-2 Step S1070 in.

[0130] Exemplarily, assuming that the target HTTP request sent by the web page such as a web browser is a GET request, and the request data parsed by the Hooked Send interface is: GET: / APP ID=efg, then the Hooked Send interface can use the key field APPID from the above Extract the target message from the parsed request data.

Embodiment approach 2

[0131] Embodiment 2: The target message is extracted from the target response message through the Hooked Receive interface.

[0132] Similarly, after the Hooked Receive interface identifies the target response message, it can parse the response data packet, and then extract the target message from the parsed response data according to a preset strategy, such as the preset key field APP ID. Taking the target response message as the target HTTP response as an example, the above process can be found in Figure 2-4 Step S2010 in.

[0133] Exemplarily, assuming that the response data parsed by the Hooked Receive interface includes: APP ID=efg, then the Hooked Receive interface can extract the identity of the target application from the above parsed response data according to the key field APP ID: efg, extract target message.

[0134] In the second manner, the target message is extracted from the first message through a preset message service.

[0135] see Figure 7According to ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present disclosure provides a communication method and device, wherein the method includes: the web page sends a first message to the operating system through a network connection; the operating system obtains the first message through a preset network interface, and according to the The first message generates a second message; the operating system converts the second message into a third message in a preset format, and sends the third message to the clipboard; identify and parse the third message to obtain the second message. By adopting the communication method provided in the present disclosure, the operating system can be triggered to perform more types of operations through the webpage, the functions of the webpage and the operating system are enhanced, and the user experience of the terminal is effectively improved.

Description

technical field [0001] The present disclosure relates to the field of electronic technology, and in particular to a communication method and device. Background technique [0002] With the development of electronic technology and touch screen technology, various terminals have been widely used, and there are more and more types of application programs on the corresponding terminals, and more and more functions. For example, a browser is a common application. [0003] The user can browse various webpages through the browser, and in some cases (for example, the webpage can realize a certain function by calling a certain system application of the system), the webpage can communicate with the operating system. Currently, a webpage can communicate with an operating system by calling a corresponding interface in a browser. [0004] In the process of realizing the present disclosure, the inventors found at least the following problems: [0005] Based on the above-mentioned proces...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/54
Inventor 陈顺董红光董俊杰
Owner BEIJING XIAOMI MOBILE SOFTWARE CO LTD