MODBUS message frame receiving method for DSP/BIOS

A receiving method and message frame technology, applied in digital transmission systems, electrical components, transmission systems, etc., can solve the problem of occupying microprocessor timer resources, and achieve the effect of reducing peripheral resource requirements and saving hardware resources

Inactive Publication Date: 2016-12-07
SOUTH CHINA UNIV OF TECH
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In order to solve the problem that the above-mentioned existing MODBUS communication technology occupies the

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
  • MODBUS message frame receiving method for DSP/BIOS
  • MODBUS message frame receiving method for DSP/BIOS
  • MODBUS message frame receiving method for DSP/BIOS

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] The present invention will be further described below in conjunction with accompanying drawings and examples.

[0026] Such as figure 1 and figure 2 Shown, a kind of MODBUS message frame receiving method that is used for DSP / BIOS, realizes based on DSP / BIOS software platform, comprises message frame receiving flow and message frame processing flow, described message frame receiving flow selects SCI hardware interrupt thread to realize, so The above message frame processing flow is realized by selecting a periodic soft interrupt thread.

[0027] Specifically, the specific running process of the SCI hardware interrupt thread is:

[0028] (1) The serial port enters the SCI hardware interrupt thread after receiving 1 character data;

[0029] (2) Reset message frame processing cycle soft interrupt thread timing clock;

[0030] (3) Read the received data and save it to the member pointed to by the current member number value in the received frame array;

[0031] (4) Add...

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 MODBUS message frame receiving method for a DSP/BIOS. The method is realized based on DSP/BIOS software. The method comprises a message frame receiving process and a message frame processing process. The message frame receiving process is realized through an SCI hardware interrupt thread. The message frame processing process is realized through a period software interrupt thread. A timing clock of the message frame processing period software interrupt thread is driven by a system clock; a clock period value is enabled to be equal to interval time of MODBUS message frames; and when the timing value of the timing clock is accumulated to be equal to the clock period, the message frame processing software interrupt thread is entered. According to the method, the interval time between characters is determined by the system clock instead of a timer, two message frames are distinguished accurately, hardware resources of a microprocessor can be effectively saved, and the demand of an automatic control system for peripheral resources of the microprocessor is reduced.

Description

technical field [0001] The invention relates to a method for receiving a MODBUS message frame, in particular to a method for receiving a MODBUS message frame for DSP / BIOS. Background technique [0002] Modbus, invented by Modicon in 1979, is the world's first real bus protocol for industrial field. It has become the communication protocol standard in the industrial field and has been widely used. Determining the idle time of the communication line and thus accurately distinguishing the two message frames has always been an important problem that must be solved in the MODBUS communication process. In the prior art, the communication between the microprocessor and the MODBUS equipment is all realized by the method of timer interruption, that is, the timer timing value is equal to the time interval between message frames, and the current value of the timer is reset when entering the SCI interrupt program each time. Timing value, when entering the timer interrupt program, it me...

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
IPC IPC(8): H04L12/861
CPCH04L49/9073
Inventor 李伟光万好孙佳正庄义钦刘志洋郑东泽
Owner SOUTH CHINA UNIV OF 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