CN108924080A - A kind of pseudo-function means of communication - Google Patents
A kind of pseudo-function means of communication Download PDFInfo
- Publication number
- CN108924080A CN108924080A CN201810359585.4A CN201810359585A CN108924080A CN 108924080 A CN108924080 A CN 108924080A CN 201810359585 A CN201810359585 A CN 201810359585A CN 108924080 A CN108924080 A CN 108924080A
- Authority
- CN
- China
- Prior art keywords
- function
- communication
- parameter
- coding
- equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/06—Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/133—Protocols for remote procedure calls [RPC]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/03—Protocol definition or specification
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Communication Control (AREA)
Abstract
The present invention provides a kind of pseudo-function means of communication, and the format of pre-specified communication packet, mainly by total length, device network number, device node number, substation number and function coding are constituted on the head for wrapping communication;The variant value of the given function parameter number sent and each parameter is needed according to practical communication command, the variant value is the actual storage byte of corresponding parameter;The coding of function required for equipment is listed, each function, the corresponding function command of each function are listed according to function coding, and function coding, function parameter and the corresponding relationship of function command three are stored in communication packet;Equipment can be communicated with host computer according to the information in communication packet, and call the power function of equipment to execute corresponding function command.When external demand changes, it only need to change corresponding processing function, reduce the workload of program development and debugging, to improve the flexibility communicated between equipment and host computer.
Description
Technical field
The present invention relates to the means of communication in automation control area, in particular between a kind of monitoring system and equipment
The means of communication.
Background technique
In the communication interactive process of monitoring system and equipment, it is often directed to the volume that different communication formats is driven
It writes, having write a driving every time will constantly be debugged with device manufacturer, lead to the work of programming personnel and commissioning staff
It measures very big.And during the secondary development in monitoring system, the communication that the equipment as provided by various manufacturers uses is assisted
View is different, and one new equipment of every access requires the driver of development equipment interface again, and needs time-consuming permanent right
It is debugged.Since the driver developed at present is all whole code structure, when external demand changes,
Need to increase it instruction, whole code structure will be affected, existing mode be can only be again exploitation driving journey
Sequence, and carry out all program debuggings.Therefore, developer and commissioning staff are caused greatly to perplex, and taken time and effort.
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of pseudo-function means of communication, sets a kind of pseudo-function structure,
Using the thought for calling other side's function, when external demand changes, it only need to change corresponding processing function, reduce program and open
The workload of hair and debugging, to improve the flexibility and convenience communicated between equipment and host computer.
The invention is realized in this way:A kind of pseudo-function means of communication, including:
Step S1, the format of pre-specified communication packet, the head for wrapping communication mainly by total length, device network number,
Device node number, substation number and function coding are constituted;
Step S2, the variant of the given function parameter number sent and each parameter is needed according to practical communication command
Value, the variant value are the actual storage byte of corresponding parameter;
Step S3, the coding of function required for equipment is listed, each function is listed according to function coding, each function is corresponding
One function command, and function coding, function parameter and the corresponding relationship of function command three are stored in communication packet
It is interior, so that communication packet is formed pseudo-function;
Step S4, host computer and the equipment are mutually sent out communication packet, equipment and host computer and are carried out according to the information in communication packet
Communication, and according to the power function of function coding, function parameter and the corresponding relationship of function command three calling equipment
To execute corresponding function command.
Further, it the invention also includes step S5, when the function command changes, need to only modify in communication packet
Function coding, function parameter or function command in corresponding relationship.
Further, the total length occupies 4 bytes, and the device network number occupies 2 bytes, the device node
Number 2 bytes are occupied, substation number occupies 2 bytes, and the function number occupies 4 bytes.
The invention has the advantages that:The header information that the present invention is wrapped by prespecified communication, with anchor-frame
Format, and function coding, function parameter and the corresponding relationship of function command three are stored in communication packet, make to communicate
Packet forms pseudo-function, equipment function can be called by pseudo-function, when external demand changes, as function command becomes
Change, it is only necessary to change corresponding processing function, also only be told without developing a new driver again, and when debugging logical
The pseudo-function definition for interrogating the part that other side changes, greatly reduces the workload of debugging, improves and leads between equipment and host computer
The flexibility of news.
Specific embodiment
Include in the preferred embodiment of the pseudo-function means of communication of the invention:
Step S1, the format of pre-specified communication packet, the head for wrapping communication mainly by total length, device network number,
Device node number, substation number and function coding are constituted;In a specific embodiment, it is arranged as follows:The total length occupies 4
A byte, the device network number occupy 2 bytes, and the device node number occupies 2 bytes, and the substation number occupies 2
A byte, the function number occupy 4 bytes.
Step S2, the variant of the given function parameter number sent and each parameter is needed according to practical communication command
Value, the variant value are the actual storage byte of corresponding parameter;
Step S3, the coding of function required for equipment is listed, each function is listed according to function coding, each function is corresponding
One function command, and function coding, function parameter and the corresponding relationship of function command three are stored in communication packet
It is interior, so that communication packet is formed pseudo-function, the specific function of equipment can be called, by this pseudo-function thereby executing corresponding function
It can instruction;
About function parameter, it is known that function is usually by this four part groups of function name, equal sign, parantheses and parameter
At, therefore function parameter is the part in addition to function name, equal sign, parantheses, such as function "=SUM (1,2,3) ", 1,2 and 3 just
It is the parameter of SUM function, without parameter 1,2,3, function SUM then has no way of evaluation.Function "=VLOOKUP (2, A:C,3,)",2,
A:C and 3 is exactly the parameter of function VLOOKUP, without parameter 2, A:C and 3, function VLOOKUP then can not be in A:C regional search A
It is the numerical value of 2 that a line the 3rd column in column.
Step S4, when host computer and the equipment need to communicate, host computer and the equipment mutually send outs communication packet, equipment and
Host computer can be communicated according to the information in communication packet, and according to function coding, function parameter and function command
The corresponding relationship of three calls the power function of equipment to execute corresponding function command.
Step S5, it when external demand changes, such as when the function command changes, need to only modify in communication packet
Function coding, function parameter or function command in corresponding relationship.
As described above, header information of the present invention by prespecified communication packet, with fixed format and necessary
Communication information, and function coding, function parameter and the corresponding relationship of function command three are stored in communication packet, make
Communication packet forms pseudo-function, equipment function can be called by pseudo-function, when external demand changes, it is only necessary to change pair
The processing function answered, reduces the workload of debugging, improves the flexibility between communication.
Although specific embodiments of the present invention have been described above, those familiar with the art should be managed
Solution, we are merely exemplary described specific embodiment, rather than for the restriction to the scope of the present invention, it is familiar with this
The technical staff in field should be covered of the invention according to modification and variation equivalent made by spirit of the invention
In scope of the claimed protection.
Claims (3)
1. a kind of pseudo-function means of communication, it is characterised in that:Including:
Step S1, the format of pre-specified communication packet, the head for wrapping communication is mainly by total length, device network number, equipment
Node number, substation number and function coding are constituted;
Step S2, the variant value of the given function parameter number sent and each parameter, institute are needed according to practical communication command
State the actual storage byte that variant value is corresponding parameter;
Step S3, the coding of function required for equipment is listed, each function is listed according to function coding, each function is one corresponding
Function command, and function coding, function parameter and the corresponding relationship of function command three are stored in communication packet;
Step S4, host computer and the equipment are mutually sent out communication packet, equipment and host computer and are communicated according to the information in communication packet,
And the power function of equipment is called to execute according to function coding, function parameter and the corresponding relationship of function command three
Corresponding function command.
2. a kind of pseudo-function means of communication according to claim 1, it is characterised in that:It further include step S5, when the function
When energy instruction changes, function coding, function parameter or the function command in the interior corresponding relationship of communication packet need to be only modified.
3. a kind of pseudo-function means of communication according to claim 1, it is characterised in that:The total length occupies 4 bytes,
The device network number occupies 2 bytes, and the device node number occupies 2 bytes, and the substation number occupies 2 bytes,
The function number occupies 4 bytes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810359585.4A CN108924080A (en) | 2018-04-20 | 2018-04-20 | A kind of pseudo-function means of communication |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810359585.4A CN108924080A (en) | 2018-04-20 | 2018-04-20 | A kind of pseudo-function means of communication |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108924080A true CN108924080A (en) | 2018-11-30 |
Family
ID=64403011
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810359585.4A Pending CN108924080A (en) | 2018-04-20 | 2018-04-20 | A kind of pseudo-function means of communication |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108924080A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102411539A (en) * | 2011-12-01 | 2012-04-11 | 康佳集团股份有限公司 | Method and system for online debugging external device of mobile phone |
CN102722440A (en) * | 2012-06-07 | 2012-10-10 | 中兴通讯股份有限公司 | Debugging device of executive codes of embedded system, debugging method and embedded system |
US20130218711A1 (en) * | 2012-02-16 | 2013-08-22 | Heidi Johann | Message Types for Customer Quote and Customer Quote Request |
US20150154150A1 (en) * | 2003-09-16 | 2015-06-04 | Open Text S.A. | Client-side web service provider |
CN105094910A (en) * | 2015-07-31 | 2015-11-25 | 上海斐讯数据通信技术有限公司 | Driving function user state debugging system and method |
CN106411637A (en) * | 2016-09-13 | 2017-02-15 | 四川长虹电器股份有限公司 | Internet-of-things device scenario testing method |
-
2018
- 2018-04-20 CN CN201810359585.4A patent/CN108924080A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150154150A1 (en) * | 2003-09-16 | 2015-06-04 | Open Text S.A. | Client-side web service provider |
CN102411539A (en) * | 2011-12-01 | 2012-04-11 | 康佳集团股份有限公司 | Method and system for online debugging external device of mobile phone |
US20130218711A1 (en) * | 2012-02-16 | 2013-08-22 | Heidi Johann | Message Types for Customer Quote and Customer Quote Request |
CN102722440A (en) * | 2012-06-07 | 2012-10-10 | 中兴通讯股份有限公司 | Debugging device of executive codes of embedded system, debugging method and embedded system |
CN105094910A (en) * | 2015-07-31 | 2015-11-25 | 上海斐讯数据通信技术有限公司 | Driving function user state debugging system and method |
CN106411637A (en) * | 2016-09-13 | 2017-02-15 | 四川长虹电器股份有限公司 | Internet-of-things device scenario testing method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4972365A (en) | Executing downloaded user programs in a programmable controller | |
CN109508202A (en) | Drive development system, method and medium for embedded operating system | |
CN106302442B (en) | A kind of network communication resolve packet method based on Java language | |
CN104050080B (en) | User space debugs the method and system of linux kernel | |
CN102541630B (en) | Communicating method and system of inter-thread data communications in a computer processor | |
CN101699402B (en) | Multi-mode startup embedded system | |
CN109143953B (en) | PLC program verification method based on intermediate language | |
CN106707848A (en) | Control program organization structure of control system and download method | |
CN109117362B (en) | PLC program verification system based on intermediate language | |
CN103760810B (en) | A kind of long-haul telemetry terminal control unit | |
CN104965700A (en) | Method and system for implementing driving on SPI equipment under VxWorks operating system | |
CN104346274A (en) | Program debugger and program debugging method | |
CN101430662A (en) | Method for debugging Java language program and virtual machine program together | |
CN107992322B (en) | DSP code self-updating method for radar signal processor | |
CN114327776A (en) | Debugging method, debugging equipment and debugging system for intelligent contract | |
CN102063367B (en) | Off-line analysis method and device aiming at computer crash program | |
JP5841457B2 (en) | Test equipment and test modules | |
CN102915272B (en) | Method for testing software, test macro and television terminal | |
CN108924080A (en) | A kind of pseudo-function means of communication | |
CN107153561A (en) | The method of firmware, apparatus and system in a kind of renewal expansion card | |
CN104679648B (en) | Across the automated testing method of application | |
CN104238438A (en) | PLC universal platform and design method thereof | |
JP2013181834A (en) | Test device and test module | |
CN109857638A (en) | A kind of testing system software general framework | |
CN109870961A (en) | Support the time relay and correspondence system of running parameter NFC transmission |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181130 |
|
RJ01 | Rejection of invention patent application after publication |