Supercharge Your Innovation With Domain-Expert AI Agents!

A method and system for optimizing MCU communication by using GPIO

A one-party, communication structure technology, applied in the field of optimizing MCU communication using GPIO, can solve problems such as relatively high requirements for resources and running speed, relatively high requirements for development and maintenance personnel, and inability to apply to embedded products, so as to achieve convenient modification and maintenance, Simple frame parsing, low resource and performance requirements

Active Publication Date: 2022-01-28
FUJIAN CENTM INFORMATION
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The disadvantage is that, except for the hardware communication interface, other resources of the MCU cannot be used, the protocol will inevitably be very complicated, and the requirements for development and maintenance personnel are relatively high
At the same time, the developed protocol program has relatively high requirements on MCU resources and operating speed, and cannot be applied to embedded products using low-cost MCUs.

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
  • A method and system for optimizing MCU communication by using GPIO
  • A method and system for optimizing MCU communication by using GPIO
  • A method and system for optimizing MCU communication by using GPIO

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] The invention is designed for the communication between MCUs, and simplifies the general protocol by using the GPIO resources of the MCUs. It can not only meet the functions supported by general protocols, but also be close to the simplicity and efficiency of dedicated protocols, so that it can be applied to both high-end and low-end MCUs.

[0046] see Figure 1 to Figure 4 , a method for optimizing MCU communication using GPIO of the present invention requires at least two MCUs, and a GPIO connection is added between the two MCUs, and a master-slave mode is used in conjunction with a question-and-answer communication structure for communication. The present invention is used in the past On the basis of conventional serial port and other connection methods, a GPIO connection is added to assist in the realization of the communication protocol between MCUs. The methods include:

[0047] Set the master-slave mode to ensure that all data frames must be initiated by the ma...

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 invention provides a method for utilizing GPIO to optimize MCU communication. At least two MCUs need to be provided, and a GPIO connection is added between the two MCUs, and a master-slave mode is adopted in combination with a question-and-answer communication structure for communication. The method includes: setting Master-slave mode, to ensure that all data frames must be initiated by the master MCU. For the MCUs of both communication parties, the party whose GPIO is configured as input is used as the master MCU, and the party whose GPIO is configured as output is used as the slave MCU, so as to ensure that at the same time In the communication, there can only be one master and one slave; and there are event notification mechanism, asynchronous response mechanism, master-slave switching mechanism and big data transmission mechanism. The invention also provides a system for optimizing MCU communication by using GPIO, which satisfies the functions supported by the general protocol and the advantages of simplicity and high efficiency of the special protocol, and is applicable to both high-end and low-end MCUs.

Description

technical field [0001] The invention relates to the field of single-chip microcomputer communication, in particular to a method and system for optimizing MCU communication by utilizing GPIO. Background technique [0002] In the embedded field, there are cases where a product is configured with two or more MCUs. Taking POS products as an example, due to strict security requirements and limited types of MCUs with security configurations, they are often configured in one POS machine. Two MCUs, one is an ordinary MCU, which is mainly responsible for processing business, and the other is an MCU with security, which is mainly responsible for processing security. Compared with a single MCU, this multi-MCU usage scenario increases the requirement for cooperative work between MCUs. This requires the establishment of a set of communication protocols between MCUs to meet this requirement. For the communication requirements between MCUs, the general practice in the industry is: [00...

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): G06F15/17
CPCG06F15/17
Inventor 陈成秋王正辉
Owner FUJIAN CENTM INFORMATION
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More