CN105897513B - A kind of data transmission method containing time-parameters - Google Patents

A kind of data transmission method containing time-parameters Download PDF

Info

Publication number
CN105897513B
CN105897513B CN201610329154.4A CN201610329154A CN105897513B CN 105897513 B CN105897513 B CN 105897513B CN 201610329154 A CN201610329154 A CN 201610329154A CN 105897513 B CN105897513 B CN 105897513B
Authority
CN
China
Prior art keywords
data
code
time
parameters
real time
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.)
Active
Application number
CN201610329154.4A
Other languages
Chinese (zh)
Other versions
CN105897513A (en
Inventor
李雪
张科
邓涛
张建国
俞光炜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aerospace Tai Xin Technology Co., Ltd.
Original Assignee
Beijing Research Institute of Precise Mechatronic Controls
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Research Institute of Precise Mechatronic Controls filed Critical Beijing Research Institute of Precise Mechatronic Controls
Priority to CN201610329154.4A priority Critical patent/CN105897513B/en
Publication of CN105897513A publication Critical patent/CN105897513A/en
Application granted granted Critical
Publication of CN105897513B publication Critical patent/CN105897513B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports
    • H04L49/3009Header conversion, routing tables or routing tags
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/003Arrangements for allocating sub-channels of the transmission path
    • H04L5/0048Allocation of pilot signals, i.e. of signals known to the receiver

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Data Mining & Analysis (AREA)
  • Communication Control (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The invention discloses a kind of data transmission methods containing time-parameters, belong to field of data transmission, this method includes using real time data frame, the real time data frame includes the frame head as the real time data frame lead-in, with the postamble as real time data frame end word, the real time data frame further includes the time variable code for recording time-parameters variable quantity, for judging the whether changed mask off code of every kind of time-parameters, and the device data code for recording equipment acquisition data, the time variable code, between the byte that the byte that the mask off code and the device data code are included is located at the frame head byte for being included and the postamble is included, pass through the time variable code, temporal information is produced with the mask off code.Above-mentioned data transmission method provided by the invention transmits temporal information using the transmission thought of increment, and the number that temporal information occupies word is greatly decreased, improves the efficiency of transmission of real time data frame.

Description

A kind of data transmission method containing time-parameters
Technical field
The present invention relates to field of data transmission more particularly to a kind of data transmission methods containing time-parameters.
Background technique
Under the application of hard real-time and high reliability, in order to monitor the operating status for using equipment and processing in time Using equipment fault, need to be transmitted in monitoring device in real time using the operation data of equipment by high-speed figure bus. In order to guarantee to transmit the real-time and accuracy of data, it usually needs transmission data meet following require: 1, the mistake of data transmission The temporal information 3 ' namely usual data that must be instantaneously captured comprising equipment operating data and when acquiring equipment operating data in journey Real time data frame in transport protocol is by frame head 1 ', alphanumeric code 2 ', 5 ' group of temporal information 3 ', device data code 4 ' and postamble At;2, higher data transmission frequencies are needed, usual data transfer cycle is the Millisecond period, and should also ensure that bus bandwidth It is sufficiently wide.
The word occupied in existing data transmission frames is more, and transmission efficiency is low for data, for example, as shown in figure 3, life is auxiliary The temporal information 3 ' for helping the data transmission frames in pumping system includes the information such as year, month, day, hour, min, second and millisecond, Mei Gexin Breath, which occupies, includes at least 7 words in a word namely temporal information 3 ', device data code 4 ' include voltage, electric current, revolving speed with And 4 words are included at least in the information such as flow namely device data code 4 ', in addition frame head 1 ', postamble 5 ' and alphanumeric code 2 ' are each Account for a word namely existing life auxiliary pumping system in real time data frame include at least 14 words, and wherein 7 be used for word Indicate temporal information 3 ', only 4 words are used for device data, and this occupancy of data transmission method temporal information 3 ' word is too many, transmission Efficiency is lower.
Summary of the invention
In order to overcome the drawbacks of the prior art, a kind of containing time-parameters technical problem to be solved by the present invention lies in proposing Data transmission method, using the transmission thought of increment temporal information is transmitted, temporal information is greatly decreased and occupies word Number improves the efficiency of transmission of real time data frame.
To achieve this purpose, the present invention adopts the following technical scheme:
A kind of data transmission method containing time-parameters provided by the invention carries out bus data biography using real time data frame Defeated step, the real time data frame include the frame head as the real time data frame lead-in, and as the real time data frame The postamble of last word, the real time data frame further include for recording the time variable code of time-parameters variable quantity, for judging often The whether changed mask off code of the kind time-parameters and the device data code that data are acquired for recording equipment, it is described The byte that time variable code, the mask off code and the device data code are included be located at byte that the frame head is included with Between the byte that the postamble is included, temporal information is produced by the time variable code and the mask off code.
Further technical solution of the present invention: the time variable code and the mask off code are each configured to by a word group At.
Further technical solution of the present invention: the mask off code is configured to the word being made of 16bit, wherein and bit8~ The state value of bit16 be always 0, bit7~bit0 state value be respectively used to indicate in the time-parameters corresponding year, the moon, Day, when, whether minute, second and millisecond change.
When one or more state value in bit7~bit0 is 1, one in the corresponding time parameter is indicated It is a or multiple change;
When one or more state value in bit7~bit0 is 0, one in the corresponding time parameter is indicated It is a or multiple do not change.
Further technical solution of the present invention: the real time data frame further includes alphanumeric code, and the alphanumeric code is for recording The sum for the word for including in the real time data frame.
Further technical solution of the present invention: the byte that the alphanumeric code is included is located at the byte that the frame head is included Between the byte for being included with the mask off code.
Further technical solution of the present invention: the real time data frame is used for pump control system, the device data code packet Include voltage data, current data, rotary speed data and data on flows.
Further technical solution of the present invention: the voltage data, the current data, the rotary speed data and described Between the byte that the byte that data on flows is included is located at the time variable code byte for being included and the postamble is included.
Further technical solution of the present invention: the voltage data, the current data, the rotary speed data and described Data on flows is each configured to be made of a word.
Further technical solution of the present invention: when the temporal information changes, the time variable code, the screen The a part for covering code as the real time data frame is transmitted by data/address bus;When the temporal information does not change When, the time variable code, the mask off code are not transmitted.
The invention has the benefit that
Data transmission method provided by the invention containing time-parameters, the time variable code provided with producible temporal information And mask off code, the number of words that time variable code and mask off code occupy is far less than times such as year, month, day, hour, min, second and milliseconds The number of words that information occupies improves efficiency of transmission so that total number of word shared by real time data frame substantially reduces.Further, Time variable code and mask off code are each configured to be made of a word, for assisting pumping system at this point for life, entire number in real time It reduces according to number of words to 9 words and forms, wherein 4 words are used for device data, life auxiliary pumping system compared to the prior art is adopted For mode with 14 words, using the data transmission method in the application, efficiency of transmission will be greatly improved.
Detailed description of the invention
Fig. 1 is the signal of the transport protocol for the data transmission method containing time-parameters that the specific embodiment of the invention provides Figure;
Fig. 2 is the schematic diagram for the mask off code that the specific embodiment of the invention provides;
Fig. 3 is the signal of the transport protocol of the data transmission method containing time-parameters provided in background of invention Figure.
In figure:
1, frame head;2, alphanumeric code;3, mask off code;4, time variable code;5, device data code;51, voltage data;52, electric Flow data;53, rotary speed data;54, data on flows;6, postamble;1 ', frame head;2 ', alphanumeric code;3 ', temporal information;4 ', number of devices According to code;5 ', postamble.
Specific embodiment
To further illustrate the technical scheme of the present invention below with reference to the accompanying drawings and specific embodiments.
Embodiment one
As shown in Figure 1, a kind of data transmission method containing time-parameters provided in the present embodiment one, including real time data Frame, real time data frame are transmitted in the bus, and real time data frame includes frame head 1, alphanumeric code 2, mask off code 3, time variable code 4, device data code 5 and postamble 6.Lead-in of the frame head 1 as real time data frame can use hexadecimal number for fixed frame head 0xAA55 is indicated;Last word of the postamble 6 as real time data frame is also fixed frame head, can be indicated with hexadecimal number 0x55AA.Word The sum of word of the number 2 for including in recording real-time data frame, i.e. real time data frame includes how many a words in total.Mask off code 3 For judging whether every kind of time-parameters change, if certain changes, the state value of corresponding positions is 1;If generation Variation, the state value of corresponding positions are 0.Time variable code 4 is used to record the increasing of time-parameters variable quantity namely time parameter Amount can be one or more sixteen bit word, such as: every 10s carries out a data transmission, then the millisecond number of time variable code 4 It just updates once, and updates for the every transmission of second data 100 times primary according to every transmission 1 time.Device data code 5 is acquired for recording equipment Data, such as: the data such as voltage or electric current.Alphanumeric code 2, time variable code 4, mask off code 3 and device data code 5 are included Between the byte that byte is located at the byte for being included of frame head 1 and postamble 6 is included, and become according to alphanumeric code 2, mask off code 3, time The sequence of amount code 4 and device data code 5 is arranged successively.Temporal information is produced by time variable code 4 and mask off code 3, and The number for the word that time variable code 4 and mask off code 3 occupy is far less than temporal informations such as year, month, day, hour, min, second and milliseconds The number of words of occupancy improves the efficiency of transmission of real time data frame so that total number of word shared by real time data frame greatly reduces, Data-signal real-time delivery is also achieved the effect that simultaneously.
Further technical solution, time variable code 4 and mask off code 3 are each configured to be made of a word, at this point for life For life auxiliary pumping system, entire real time data number of words is reduced to 9 words and is formed, life auxiliary pump system compared to the prior art For system is by the way of 14 words, efficiency of transmission is greatly improved.
Further technical solution, as shown in Fig. 2, be the hexadecimal bitmap of mask off code 3, mask off code 3 be configured to by The word of 16bit composition, when wherein the state value of bit8~bit16 is always that 0, bit7~bit0 state value is respectively used to indicate Between in parameter corresponding year, month, day, hour, min, second and millisecond whether change, certainly, in the quantity variation of time-parameters, It can also increase or reduce the digit that state value is always 0 to be adjusted.When one or more shape in bit7~bit0 When state value is 1, one or more for indicating in corresponding time parameter changes;When one in bit7~bit0 or When multiple state values are 0, one or more for indicating in corresponding time parameter does not change.Such as: every 10s carries out one Secondary data transmission, then the millisecond of mask off code 3 is always 1 in place, and is updated for the every transmission in place of second institute 100 times primary.
Further technical solution, real time data frame assist pump control system for life, and device data code 5 includes voltage Data 51, current data 52, rotary speed data 53 and data on flows 54, voltage data 51, current data 52, rotary speed data 53 with And data on flows 54 respectively represents life auxiliary pump control system voltage value, current value, tachometer value and flow value.Voltage data 51, the byte that current data 52, rotary speed data 53 and data on flows 54 are included is respectively positioned on the word that time variable code 4 is included Between the byte that section and postamble 6 are included.It is further preferred that voltage data 51, current data 52, rotary speed data 53 and stream Amount data 54 are each configured to be made of a word, to reduce the total number of word of real time data frame.
Further technical solution, when temporal information changes, time variable code 4, mask off code 3 are used as real time data A part of frame is transmitted by data/address bus, and when temporal information does not change, time variable code 4, mask off code 3 are not passed It is defeated, i.e., do not include time variable code 4,3 information of mask off code in real time data frame, only includes other information.
The present invention is described with reference to the preferred embodiments, and those skilled in the art know, of the invention not departing from In the case where spirit and scope, various changes or equivalence replacement can be carried out to these features and embodiment.The present invention is not by this The limitation of specific embodiment disclosed in place, other embodiments fallen into claims hereof belong to protection of the present invention Range.

Claims (9)

1. a kind of data transmission method containing time-parameters includes the steps that carrying out bus data transfer using real time data frame, The real time data frame includes the frame head (1) as the real time data frame lead-in, and as real time data frame end word Postamble (6), it is characterised in that:
The real time data frame further includes for recording the time variable code (4) of time-parameters variable quantity, for judging every kind of institute State the whether changed mask off code (3) of time-parameters and the device data code (5) for recording equipment acquisition data, institute It states the byte that time variable code (4), the mask off code (3) and the device data code (5) are included and is located at the frame head (1) Between the byte that the byte for being included and the postamble (6) are included;
Temporal information is produced by the time variable code (4) and the mask off code (3).
2. the data transmission method according to claim 1 containing time-parameters, it is characterised in that:
The time variable code (4) and the mask off code (3) are each configured to be made of a word.
3. the data transmission method according to claim 2 containing time-parameters, it is characterised in that:
The mask off code (3) is configured to the word being made of 16bit;
Wherein the state value of bit8~bit16 is always that 0, bit7~bit0 state value is respectively used to indicate the time-parameters In corresponding year, month, day, hour, min, second and millisecond whether change;
When one or more state value in bit7~bit0 is 1, indicate one in the corresponding time-parameters or Person is multiple to change;
When one or more state value in bit7~bit0 is 0, indicate one in the corresponding time-parameters or Person is multiple not to change.
4. the data transmission method according to claim 1 or 2 or 3 containing time-parameters, it is characterised in that:
The real time data frame further includes alphanumeric code (2);
The alphanumeric code (2) is used to record the sum for the word for including in the real time data frame.
5. the data transmission method according to claim 4 containing time-parameters, it is characterised in that:
The byte that the alphanumeric code (2) is included is located at the byte that the frame head (1) is included Byte between.
6. the data transmission method according to claim 1 or 2 or 3 containing time-parameters, it is characterised in that:
The real time data frame is used for pump control system;
The device data code (5) includes voltage data (51), current data (52), rotary speed data (53) and data on flows (54)。
7. the data transmission method according to claim 6 containing time-parameters, it is characterised in that:
The voltage data (51), the current data (52), the rotary speed data (53) and the data on flows (54) institute Between the byte that the byte for including is respectively positioned on time variable code (4) byte for being included and the postamble (6) is included.
8. the data transmission method according to claim 6 containing time-parameters, it is characterised in that:
The voltage data (51), the current data (52), the rotary speed data (53) and the data on flows (54) are equal It is configured to be made of a word.
9. the data transmission method according to claim 1 containing time-parameters, it is characterised in that:
When the temporal information changes, the time variable code (4), the mask off code (3) are used as the real time data A part of frame is transmitted by data/address bus;
When the temporal information does not change, the time variable code (4), the mask off code (3) are not transmitted.
CN201610329154.4A 2016-05-18 2016-05-18 A kind of data transmission method containing time-parameters Active CN105897513B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610329154.4A CN105897513B (en) 2016-05-18 2016-05-18 A kind of data transmission method containing time-parameters

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610329154.4A CN105897513B (en) 2016-05-18 2016-05-18 A kind of data transmission method containing time-parameters

Publications (2)

Publication Number Publication Date
CN105897513A CN105897513A (en) 2016-08-24
CN105897513B true CN105897513B (en) 2019-01-15

Family

ID=56716923

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610329154.4A Active CN105897513B (en) 2016-05-18 2016-05-18 A kind of data transmission method containing time-parameters

Country Status (1)

Country Link
CN (1) CN105897513B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107968782A (en) * 2017-11-29 2018-04-27 北京经纬恒润科技有限公司 A kind of message compression storage method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1158721A2 (en) * 2000-05-25 2001-11-28 Sony Corporation Method of controlling transmission and apparatus for controlling transmission
CN104935527A (en) * 2015-06-12 2015-09-23 福建新大陆电脑股份有限公司 Data packing method of audio communication

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1158721A2 (en) * 2000-05-25 2001-11-28 Sony Corporation Method of controlling transmission and apparatus for controlling transmission
CN104935527A (en) * 2015-06-12 2015-09-23 福建新大陆电脑股份有限公司 Data packing method of audio communication

Also Published As

Publication number Publication date
CN105897513A (en) 2016-08-24

Similar Documents

Publication Publication Date Title
CN109787833B (en) Network abnormal event sensing method and system
US9197577B2 (en) Policy control method and system, and relevant apparatus
CN102047188B (en) Method, system and bus coupler for exchanging data between an overlay network and an underlay network
CN108762210A (en) A kind of industrial intelligent manufaturing data harvester and method based on Internet of Things
US20090185503A1 (en) Network traffic analyzing device, network traffic analyzing method and network traffic analyzing system
CN104126285A (en) Method and apparatus for rapid disaster recovery preparation in a cloud network
CN104487989B (en) Autonomous network sentry
US20090238088A1 (en) Network traffic analyzing device, network traffic analyzing method and network traffic analyzing system
CN106066192A (en) A kind of low-voltage platform area fault diagnosis system
CN104660520B (en) Block processing device
CN106709057A (en) Distributed cluster visualized database
CN105897513B (en) A kind of data transmission method containing time-parameters
CN208227042U (en) A kind of real-time automatic fault warning device of server
CN105763387A (en) Network traffic monitoring method and device
CN105635317A (en) Wireless communication method and system applied to bridge detection
CN106911800A (en) A kind of water purifier data collecting system and method based on GPRS
CN103517292B (en) Mobile terminal information reporting method and apparatus
CN105530121B (en) A kind of principal and subordinate's management board method for handover control and device
CN106100918A (en) A kind of substation data based on EMS system does not refresh detection method
CN113301115A (en) Information acquisition system for data transmission among communication devices
CN113949669B (en) Vehicle-mounted network switching device and system capable of automatically configuring and analyzing according to flow
US20220053373A1 (en) Communication apparatus, communication method, and program
CN103179047B (en) The resource regulating method of business, Apparatus and system
CN105743726A (en) Traffic statistics and analysis method for feature data message and corresponding device
CN104734884B (en) A kind of GOOSE communication means and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200103

Address after: 300457 workshop b3-04, b3-05 and b3-06, No. 17, No. 80, Haiyun street, Binhai New Area, Tianjin

Patentee after: Aerospace Tai Xin Technology Co., Ltd.

Address before: 100076 Beijing City, Fengtai District Dahongmen South East Highland Road No. 1

Patentee before: Beijing Research Institute of Precise Mechatronic Controls