Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Embedded system serial reliable communicating control method

A technology of an embedded system and a control method, applied in the field of serial communication, can solve the problems of difficult data processing, length errors, affecting the smooth completion of the serial port, etc., and achieve the effect of improving anti-interference and fault tolerance.

Inactive Publication Date: 2008-08-13
FUJIAN NORMAL UNIV
View PDF1 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, when the hardware communication is normal, there will still be some abnormal situations such as the disconnection of the serial port connection line, or when the length is wrong, which will bring difficulties to data processing and even affect the smooth completion of the subsequent work of the serial port.

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
  • Embedded system serial reliable communicating control method
  • Embedded system serial reliable communicating control method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0012] specific implementation plan

[0013] Below in conjunction with accompanying drawing 2,3,4 the present invention is described further.

[0014] Figure 2 is the main program flow chart:

[0015] Step 201: the initialization module is responsible for the initialization of the whole system;

[0016] Step 202: the background task module, in which the serial port communication is started, and the timer is started while starting in the serial port communication, and the detailed setting scheme of the timer is explained in conjunction with Fig. 3;

[0017] Step 203: Judging whether the serial port receiving timeout is judged according to whether the value of the timer provided by the background module is equal to 0 to determine whether to recycle the serial port resources. When the value of the timer is equal to 0, it indicates that the serial port communication has timed out, otherwise, continue the main loop program ;

[0018] Step 204: When the serial port communication ...

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 relates to serial port communication field, in particular an embedded system serial credible communication control method. The technical styles include: setting a receiving buffer region FIFO in the embedded system memory continuation address, adopting serial port break working mode, divided into the foreground and the background, the background completing the serial port receiving function; the foreground analyzing the receiving buffer region after completing the serial port task. One bit physical address pair receiving task timer, if in communication, the timer is assigned with one nonzero value, once being zero, the receiving task is completed. The invention only needs less resource, effectively resolves the problem of task overtime caused by potential unfiniteness, uncontinuity and discontinuity in the serial port communication task, improves anti-interference, fault-tolerance and error correcting capability of serial port.

Description

technical field [0001] The invention relates to the field of serial port communication, in particular to a method for controlling reliable serial port communication of an embedded system. Background technique [0002] Serial communication is widely used in various devices such as modems, monitoring modules, PLCs, camera pan-tilts and related smart devices because of its simple and mature technology, reliable performance, and low requirements for software and hardware environments. The device uses the serial port as the basic interface for user development and use. When developing serial communication, whether it is half-duplex or full-duplex, there are usually two methods: query waiting mode and interrupt acceptance mode. Generally speaking, the interrupt method is more popular because of its high operating efficiency and timely processing. During the development process, an independent, circular FIFO buffer area will be defined for serial port acceptance to store the rece...

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): G06F11/00G06F13/00
Inventor 卢宇吴允平苏伟达李汪彪蔡声镇吴进营陈聪慧郑乐乐叶小青李文
Owner FUJIAN NORMAL UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products