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

VB environment-based multi-serial-port equipment communication method for electrical logging system

A communication method and serial port technology, applied in the direction of electrical digital data processing, instruments, etc., can solve the problems of confusing current tasks, easy frame loss and data loss, low communication efficiency, etc.

Pending Publication Date: 2021-03-02
南京丹迪克科技开发有限公司
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Aiming at the deficiencies of the prior art, the present invention provides a communication method based on multiple serial devices in the electrical measurement system under the VB environment, which solves the problem of low communication efficiency and passive failure information processing when multiple devices communicate under the existing VB environment. , if you encounter data that will be actively sent, it will be easy to lose frames and data. When the response of the terminal device is slow, it is easy to execute the problem of confusing the current task.

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
  • VB environment-based multi-serial-port equipment communication method for electrical logging system
  • VB environment-based multi-serial-port equipment communication method for electrical logging system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0026] see Figure 1-2 , the present invention provides a technical solution: a communication method for multiple serial devices in an electrical measurement system based on a VB environment, comprising the following steps: Step 1, functional function packaging, and adding a message queue;

[0027] Step 2: Encapsulate the message parsing function, parse the received message and store the parsed data into the corresponding data structure;

[0028] Step 3. Comp...

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 VB environment-based multi-serial port equipment communication method for an electrical logging system, which comprises the following steps: 1, packaging a functional function, and adding a message queue; 2, packaging and analyzing a message analysis function; 3, using a state machine function for distributing and processing tasks of external requests; 4, circularly calling a state machine function by an external timer; 5, the state machine executing and refreshing the current task progress; and 6, circularly searching the effective message frame, and putting the effective message into an analysis function for analysis. The invention relates to the technical field of serial port equipment communication. According to the VB environment-based multi-serial-port equipment communication method for the electrical logging system, the problems of low communication efficiency, very passive fault information processing, easy frame loss and data loss in case of encountering data which can be actively uploaded, and easy execution of a disordered current task in case of slow response to terminal device during communication of multiple pieces of equipment in the existing VB environment are solved.

Description

technical field [0001] The invention relates to the technical field of serial port device communication, in particular to a communication method for multiple serial port devices of an electrical measurement system based on a VB environment. Background technique [0002] The VB programming environment basically uses a single-threaded mode. The serial port communication method needs to be sent once, delayed for a period of time, and then read the serial port data, and then analyze the serial port data. During the delay waiting process, the main program cannot handle other tasks and can only wait together. If multiple devices communicate, the efficiency of delay waiting for each communication process will be very low, and the processing of fault information is very passive. If When encountering data that will be actively uploaded, there will be frame-to-frame parsing problems. If it is not handled well, it is easy to lose frames and data. When the response of the terminal devic...

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): G06F13/42G06F13/32
CPCG06F13/4282G06F13/32
Inventor 卫浩
Owner 南京丹迪克科技开发有限公司
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