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

Asynchronous communication processing method and device and storage medium

A technology of asynchronous communication and processing methods, applied in the direction of electrical digital data processing, instruments, etc., can solve the problems of controller resource occupation and waste of controller resources, etc.

Pending Publication Date: 2021-07-09
BEIJING ANT BROTHERS TECH CO LTD
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the controller is a single-core controller and does not use an operating system, then when performing the above functions, all controller resources are occupied, and other operations cannot be performed, resulting in waste of controller resources
It is acceptable for single-task applications, but it is unsatisfactory for multi-task parallel applications

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
  • Asynchronous communication processing method and device and storage medium
  • Asynchronous communication processing method and device and storage medium
  • Asynchronous communication processing method and device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.

[0038] Such as figure 1 As shown in the flow diagram of an asynchronous communication processing method described in an embodiment of the present invention, an asynchronous communication processing method includes the following steps:

[0039] Step S1: Obtain corresponding communication instructions according to the requirements of the current communication task.

[0040] Step S2: Determine whether the timeout period is zero; if yes, go to step S3; if not...

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 invention relates to the technical field of controllers, particularly provides an asynchronous communication processing method and device and a storage medium, and aims to solve the technical problem of how to improve the task execution efficiency of a single-core controller. Therefore, the asynchronous communication processing method provided by the embodiment of the invention is applied to a control terminal which is in communication connection with a communication module through a serial communication interface, and the method mainly comprises the following steps of: determining whether to receive and analyze cache data sent to the communication interface by the communication module or not through timeout time and an idle interruption identifier when a communication task is executed; selectively making the control terminal to execute other tasks according to the determined result, and improving the task execution efficiency of the control terminal. According to the invention, the occupancy rate of the controller is reduced, parallel operation of application tasks is realized, and the occupancy of single cycle time is low, so that the response data received by the serial port can be quickly responded, and the processing efficiency of the instruction is improved.

Description

technical field [0001] The present invention relates to the technical field of controllers, in particular to an asynchronous communication processing method, device and storage medium. Background technique [0002] Many communication modules now use asynchronous serial ports, such as 2G, 3G, 4G, NB, Bluetooth, WiFi modules, etc. The method of use is that the controller sends the corresponding command to the communication module, and waits for the communication module to return the response result. After receiving the response result, the controller analyzes the response result and performs the corresponding operation. [0003] Now usually the controller sends commands, the serial port enters the receiving state, and then the controller delays for a period of time according to the user experience, after the delay ends, parses the data received in the serial port buffer, and performs corresponding operations according to the analysis results. If the controller is a single-cor...

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 Applications(China)
IPC IPC(8): G06F13/16G06F13/42
CPCG06F13/4282G06F13/1673G06F13/1689
Inventor 王卫杰曹万科侯文博南金瑞
Owner BEIJING ANT BROTHERS TECH CO LTD