Queue-based AT instruction control method

A technology of instruction control and instruction, applied in the field of communication, can solve problems such as data conflicts and execution errors, and achieve the effects of improving modularity, easy maintenance, and avoiding data conflicts

Active Publication Date: 2021-07-27
HARBIN VEIC TECH
View PDF10 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] For the Beidou positioning data reporting equipment, the communication module will generate data conflicts and execute task errors in the face of the multi-tasking requirements of the MCU. The invention provides a queue-based AT command control method

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
  • Queue-based AT instruction control method
  • Queue-based AT instruction control method
  • Queue-based AT instruction control method

Examples

Experimental program
Comparison scheme
Effect test

specific Embodiment approach 1

[0029] DETAILED DESCRIPTION Figure 1 to 3 As shown, the present invention provides a queue-based AT command control method, which controls the AT command in the thread interacting with the communication module, including,

[0030] In the microcontrol unit, each AT instruction in the thread requires a priority and command execution mode, the command execution mode including a synchronous mode or asynchronous mode; for an AT command configured as an asynchronous mode, a configuration command is required Return the function pointer after the end;

[0031] Then, add the configured AT instruction to the first out queue through the interface function; for the first out of the AT command in the queue, interact with the communication module in the priority order;

[0032] For the AT command configured as synchronous mode, the interface function is blocked by the current AT command to the first out queue by default, the microcontrol unit sends the current AT command to the communication mo...

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 discloses a queue-based AT instruction control method, and belongs to the technical field of communication. The invention aims to solve the problems that in Beidou positioning data reporting equipment, a communication module faces the multi-task requirement of an MCU, data conflicts are generated, and task execution errors are caused. The queue-based AT instruction control method comprises the steps of: in a micro-control unit, configuring a priority and a command execution mode for each AT instruction in the thread, wherein the command execution mode comprises a synchronous mode or an asynchronous mode; for the AT instruction in the asynchronous mode, configuring a return function pointer after command execution is finished; then, adding the configured AT instruction into a first-in first-out queue through an interface function; and interacting the AT instructions in the first-in first-out queue with the communication module according to a priority sequence. According to the queue-based AT instruction control method, multi-task data conflicts in communication with the communication module can be avoided.

Description

Technical field [0001] The present invention relates to a queue-based AT command control method, which belongs to the field of communication technology. Background technique [0002] When designing an Beidou Positioning Data Reporting a device, it is generally designed to be a microcontrol unit (MCU) to provide a communication module (4G MODERM) to achieve remote communication. The MCU and the communication module generally use the AT command to interact, and the AT command is a response mechanism, ie usually the MCU transmits an AT command to the communication module, will receive the execution result of the command, but due to The communication module processes the AT command takes time, so it is generally not returned immediately. In addition, the communication module also actively issues a URC (active message message) command, actively reporting the module status to the MCU when the external state changes. [0003] Beidou Positioning Data Reporting Device Sometimes it is nece...

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): H04L12/865G06F9/22G06F9/52H04L47/6275
CPCH04L47/6275G06F9/223G06F9/52
Inventor 黄俐刘金明张瑜峰刘钦明周宏敏刘传奇张丽娟沈小萌张博黄文姣张红伟徐利
Owner HARBIN VEIC TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products