[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN102315997A - Multifunctional vehicle bus network communication method and system - Google Patents

Multifunctional vehicle bus network communication method and system Download PDF

Info

Publication number
CN102315997A
CN102315997A CN201110245885A CN201110245885A CN102315997A CN 102315997 A CN102315997 A CN 102315997A CN 201110245885 A CN201110245885 A CN 201110245885A CN 201110245885 A CN201110245885 A CN 201110245885A CN 102315997 A CN102315997 A CN 102315997A
Authority
CN
China
Prior art keywords
port data
period
cycle
basic
data
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
Application number
CN201110245885A
Other languages
Chinese (zh)
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.)
Zhuzhou CRRC Times Electric Co Ltd
Original Assignee
Zhuzhou CSR Times Electric Co Ltd
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 Zhuzhou CSR Times Electric Co Ltd filed Critical Zhuzhou CSR Times Electric Co Ltd
Priority to CN201110245885A priority Critical patent/CN102315997A/en
Publication of CN102315997A publication Critical patent/CN102315997A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention discloses a multifunctional vehicle bus network communication method and a system. The method comprises the steps of: aiming at port data and the eigenperiod of the port data, calculating the current network load of each basic period contained by the eigenperiod; and selecting to send the maximum port data with the maximum data quantity in the port data in the basic period of the lowest current network load according to the calculation results. Through the method and the system, provided by the invention, in the multifunctional vehicle bus network communication, the data packet loss caused by the concentrate sending of the port data in one basic period is avoided through calculating and selecting the basic period with small network load to send the port data.

Description

Multifunctional vehicle bus network communication method and system
Technical Field
The invention relates to the technical field of train network communication, in particular to a multifunctional vehicle bus network communication method and system.
Background
With the development of network technology, the use of networks has also changed increasingly the railway transportation system. On various trains such as urban rail trains, motor train units, high-speed trains, subways and pendulum trains, the transmission of train control commands and state information, the diagnosis information of various parts of the trains, the transmission and display of train information and the like are established on the basis of a train communication network. A Train Communication Network (TCN) is composed of a Multifunction Vehicle Bus (MVB) and a Wire Train Bus (WTB). The MVB is a standard communication interface for interconnecting various vehicle-mounted devices in the vehicle.
The process data transmitted over the train network typically includes status information on the train, such as the speed at which the train is operating, the current of the motor, the current operating status of the train, etc. Data containing this information is periodically transmitted through the MVB. The MVB serves as a serial data communication bus between the in-vehicle interconnection devices, and the bus bandwidth is very limited. The transmission of the process data in the train is determined by the application transmitting the data through the port, but no effective method is available between the applications to obtain the load condition of the MVB network, which may cause a plurality of data to be transmitted in a basic period in a concentrated manner, so that the network load in the basic period is too large, and data packet loss is caused.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a method and a system for multifunctional vehicle bus network communication, so that in the multifunctional vehicle bus network communication, port data occurs by calculating and selecting a basic cycle with a small network load, and a packet loss caused by transmitting port data in a basic cycle is avoided.
In order to achieve the purpose, the invention provides the following scheme:
a method of multifunction vehicle bus network communication, comprising:
calculating the current network load of each basic period contained in the characteristic period aiming at the port data and the characteristic period thereof;
and according to the calculation result, selecting the port data with the largest data volume in the port data to be sent in the basic cycle with the lowest current network load.
Preferably, the calculating the current network load of each basic cycle included in the characteristic cycle specifically includes, for each basic cycle:
the network load is (transmission delay of all port data in the basic period + response delay of all ports in the basic period)/basic period.
Preferably, the method further comprises the following steps:
and aiming at the characteristic period of the port data, according to the transmitted port data and the basic period thereof for transmitting the port data, and through the transmitting sequence of the port data in the basic period, obtaining a port data sequence list of the characteristic period.
Preferably, the method further comprises the following steps:
and aiming at the characteristic period of the port data, obtaining a decomposition list of the characteristic period according to the transmitted port data and the basic period of the port data transmitted by the port data in the basic period and the transmission sequence of the port data in the basic period.
Preferably, the method further comprises the following steps:
and recording the transmitted port data and the corresponding basic period for transmitting the port data in a periodic scanning table.
Preferably, the method further comprises the following steps:
saving a periodic scanning table in a configuration file form;
when the multifunctional vehicle bus MVB network is initialized, the main device loads the configuration file containing the periodic scanning table information to obtain the periodic scanning table information, so that the main device controls polling and sending of port data in the MVB according to the periodic scanning table information.
A system for multifunction vehicle bus network communication, comprising:
the network load calculation unit is used for calculating the current network load of each basic period contained in the characteristic period aiming at the port data and the characteristic period thereof;
and the port data sending unit is used for selecting the port data with the largest data volume in the port data to be sent in the basic cycle with the lowest current network load according to the calculation result.
Preferably, the network load calculating unit is specifically configured to calculate the network load by the following method, for each basic cycle:
the network load is (transmission delay of all port data in the basic period + response delay of all ports in the basic period)/basic period.
Preferably, the method further comprises the following steps:
and the port data sequence list acquisition unit is used for acquiring a port data sequence list of the characteristic period according to the transmitted port data and the basic period of the port data transmitted by the port data and the sequence of the basic period aiming at the characteristic period of the port data.
Preferably, the method further comprises the following steps:
and the decomposition list acquisition unit is used for acquiring a decomposition list of the characteristic period according to the transmitted port data and the basic period of the port data transmitted by the port data and the sequence of the basic period aiming at the characteristic period of the port data.
Preferably, the method further comprises the following steps:
and the periodic scanning table recording unit is used for recording the transmitted port data and the corresponding basic period for transmitting the port data in the periodic scanning table.
Preferably, the method further comprises the following steps:
the periodic scanning table storage unit is used for storing the periodic scanning table in a configuration file form;
and the periodic scanning table loading unit is used for loading the configuration file containing the information of the periodic scanning table by the main equipment when the multifunctional vehicle bus MVB network is initialized, so that the main equipment can control polling and sending of port data in the MVB according to the information of the periodic scanning table.
According to the specific embodiment provided by the invention, the invention discloses the following technical effects:
since the port data and the characteristic periods are determined beforehand by the application, the port data contained in a circular list is determined. By calculating the current network load of each basic period included in the characteristic period, port data with a large data volume to be transmitted in a basic period with a low network load is selected. By the method, in the multifunctional vehicle bus MVB network communication, the network load achieves a more optimized effect, the data packet loss caused by overlarge network load due to the fact that port data are sent in a basic cycle in a centralized mode is avoided to the greatest extent, and therefore under the condition that the bandwidth is limited, the bandwidth is effectively utilized, and the reliability of process data is improved.
In addition, the corresponding relation between the port data obtained by the method and the basic period for sending the port data can further obtain a periodic scanning table, the periodic scanning table is stored in a configuration file form, when the MVB network is initialized, the main device loads the configuration file containing the periodic scanning table information to obtain the periodic scanning table information, and the main device can control the sending of the port data more quickly and conveniently by the method.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a schematic flow chart of a method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of network connection of MVB network communication;
fig. 3 is a system connection diagram according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present invention.
In a control system of a Multifunction Vehicle Bus (MVB) Bus structure, transmitted Data is divided into Process Data (Process Data) and aperiodic Data. The process data includes status information on the train, such as the speed of train operation, the current of the motor, the current operation status of the train, and the like. The process data is usually some important train state information, so the process data has strong timeliness, the transmission time of the process data must be determined to be bounded, and the process data is periodically transmitted in order to ensure that the process data is transmitted accurately and timely.
In order to ensure deterministic medium access, in the MVB bus structure, devices are divided into a master device and a slave device in a one-to-many master-slave manner. Devices with bus manager capabilities are called masters and others are slaves. The master device controls the access to the medium and in any case determines which slave devices can transmit process data from the active master device. The master divides the time it controls the bus into fixed time slices, which are called fundamental cycles.
Each master device is configured with a periodic scanning table, which is determined by an application, and polls a requesting device to transmit a frame of certain process data, i.e., a master frame, in a broadcast manner according to the periodic scanning table. The source device of the process data replies in the form of a broadcast to a frame containing the requested process data, i.e., a slave frame. In a basic period, the master device and the slave device sequentially carry out polling requests and data replies until all process data transmission in the basic period is completed.
A number of ports are provided at the link layer of the train network communication device for process data communication. A port is a shared memory structure that can be accessed by both applications and the network. As shown in fig. 2, the figure is a schematic diagram of network connection of MVB network communication;
each port is identified by a port address, which is represented by a four-bit hexadecimal number, a first bit function CODE (F _ CODE) indicating the length of the data set on the port, and the remaining three bits representing the port address. The value of F _ CODE and the length of the corresponding port data are shown in table 1. There is only one data set on each port, i.e., port data.
TABLE 1
F_CODE Length (bit) of corresponding port data
0 16
1 32
2 64
3 128
4 256
The example port identification 0010h indicates that the port address is 10h and the port data thereon is 16 bits long.
One port data can only be generated by one device. This device is referred to as the source device for the port data. There may be one or more devices that receive the port data, and the device that receives the port data is referred to as a sink device for the port data. Which ports the device uses, the size of the port data, the source device of the port, the sink device are all application dependent.
The message of the MVB consists of two frames, namely a master frame sent by the master device in the bus and a slave frame sent by the slave device in response to the master frame.
The size of the main frame is 33 fixed bits, including a 9 bit delimiter, a 16 bit data bit and an 8 bit frame check sequence. The upper 4 bits of the data bits are the function CODE F _ CODE, and the last 12 bits are the source port address or other parameters.
The slave frame includes a 9-bit delimiter, 16, 32, 64, 128 or 256 bits of data, and an 8-bit check sequence following each 64 bits of data, with less than 64 bits of data, e.g., 16, 32 bits of data also include an 8-bit check sequence. Therefore, the slave frame has 5 formats of 33, 49, 81, 153 or 297 bits according to different values of the F _ CODE in the master frame.
According to different F _ CODEs of the master frame, the sizes of the master frame, the slave frame and the corresponding message are respectively as shown in table 2:
TABLE 2
F_CODE Main frame (position) Slave frame (bit) Message (position)
0 1+8+16+8=33 1+8+16+8=33 66
1 1+8+16+8=33 1+8+32+8=49 82
2 1+8+16+8=33 1+8+64+8=81 114
3 1+8+16+8=33 1+8+64+8+64+8=153 186
4 1+8+16+8=33 1+8+64+8+64+8+64+8+64+8=297 330
A loop organizes periodic data having the same characteristic period into a group whose group name is expressed as a multiple of the characteristic period of the basic period.
The period of time that the master polls the slaves for process data also varies, i.e., the interval of time that the master polls the port data varies, depending on the timeliness requirements of the process data. The time interval during which the master polls port data is called the characteristic period and is denoted T _ ip. The characteristic period is 2 m-th basic periods, m is 0-10, and 11 characteristic periods are total, so that the relationship between the characteristic period and the basic period is as the following formula:
T_ip(i)=T_bp×2m,n=(1...10)
the characteristic period of each port data is determined by the application, and the master device polls each port data within its characteristic period T _ ip. Of all the port data, the value of the period having the largest characteristic period is referred to as a macrocycle.
According to the MVB standard, port data having the same characteristic period is put into the same cycle, and thus the master device has a periodic scan table with a maximum of 11 cycles. The basic cycle is numbered BP (j), where j ═ (0.. macro-1), e.g., BP (0) ═ the first cycle of the macrocycle, BP (macro-1) ═ the last cycle of the macrocycle.
The port data is classified by the characteristic period T _ ip (i) of the port data, that is, the port data is represented as different port data in a certain cycle. For example: the port data under Cycle _8 are 0010h, 0020h, 1030h and 1040h, namely, Cycle _8, and the characteristic period is T _ bp multiplied by 23I.e., 8T _ bp, loop, contains port data 0010h, 0020h, 1030h, 1040 h. The master device will poll the slave devices containing the port data 0010h, 0020h, 1030h and 1040h in a broadcast manner within 8T _ bp in sequence, and after receiving the poll of the master device, the slave device will transmit the corresponding port data in a broadcast manner.
Since the port data included in one cycle has the same characteristic period, the port data is polled one time in sequence in the characteristic period, but the characteristic period includes 2mA basic cycle, so that each port data is specifically in these 2mIt is uncertain which of the basic cycles is polled. To determine the base period in which port data is polled, a loop is further broken down into a plurality of sub-loops, each sub-loop defining a base period in which ports are polled. There are n sub-cycles for a Cycle _ n, for example 8 sub-cycles for Cycle _8. One sub-Cycle is defined by its index, with an example Cycle _4.0 being the first sub-Cycle of Cycle _4 and Cycle _4.1 being the second sub-Cycle of Cycle _4. In each sub-loop, the port data in the loop may or may not be polled. In addition, when the master device polls the port data, one or more port data may be polled sequentially in a basic cycle. For example:
the port data in the above example, 0010h, 0020h, 1030h, 1040h, may be polled in any of the 8 subcycles of Cycle _8. The following were used:
0010h poll in Cycle _8.0
0020h polling in Cycle _8.2
1030h poll in Cycle _8.4
1040h poll in Cycle _8.6
Or,
0010h 0020h sequentially polls in Cycle _8.0
1030h poll in Cycle _8.4
1040h poll in Cycle _8.6
The resolution list may further be defined according to the particular sub-cycle in which port data is polled. The decomposed list contains the number of the polled port data in each sub-cycle, namely each basic cycle, so as to determine the number of the messages sent in each basic cycle. Each feature period in the decomposed list has a decomposed list represented by its feature period. For example, Split _2 represents a decomposition list of Cycle _2.
In the above example, the breakdown list of the sub-loop polling is as follows:
Split_8
BP (0)01 h: 1 of Cycle 80010 h polls in Cycle _8.0
BP(1)00h:2 of Cycle 8
BP (2)01 h: 3 of Cycle 80020 h polls in Cycle _8.2
BP(3)00h:4 of Cycle 8
BP (4)01 h: 5 of Cycle 81030 h polls in Cycle _8.4
BP(5)00h:6 of Cycle 8
BP (6)01 h: 7 of Cycle 81040 h poll in Cycle _8.6
BP(7)00h:8 of Cycle 8
Or
Split_8
BP (0)02 h: 1 of Cycle 80010 h 0020h polls in Cycle _8.0
BP(1)00h:2 of Cycle 8
BP(2)00h:3 of Cycle 8
BP(3)00h:4 of Cycle 8
BP (4)01 h: 5 of Cycle 81030 h polls in Cycle _8.4
BP(5)00h:6 of Cycle 8
BP (6)01 h: 7 of Cycle 81040 h poll in Cycle _8.6
BP(7)00h:8 of Cycle 8
Since each port data has a characteristic period determined in advance by the application, the port data contained in one round list is determined. Selecting a basic period for port data transmission by calculating the current network load of each basic period contained in the characteristic period: selecting port data with large data volume to be transmitted in a basic period with low network load; the port data with small data volume is selected to be transmitted in the basic period with high network load. By the method, the network load achieves a more optimized effect in MVB communication, and the data packet loss caused by overlarge network load due to the fact that port data are transmitted in a basic period in a centralized mode is avoided to the greatest extent.
Referring to fig. 1, the MVB communication method provided by the present invention is specifically described by embodiments:
s101, aiming at port data and a characteristic cycle thereof, calculating the current network load of each basic cycle contained in the characteristic cycle.
The characteristic period of each port data is determined by the application, and the master device polls each port data within its characteristic period. Port data having the same characteristic period are put into the same cycle. For convenience of description, in this embodiment, it is assumed that there are four cycles Cycle _1, Cycle _2, Cycle _4, and Cycle _8, and the port data included in each Cycle are as follows:
Cycle_1 0001h
Cycle_2 1002h 2003h
Cycle_4 1004h 2005h
Cycle_8 4006h
under the condition of meeting the requirement of the characteristic period, the corresponding decomposition list under each cycle can be adjusted, so 3 decomposition lists are taken as an example.
First decomposition list:
Split_1
BP (0) 01: 1 of Cycle 10001h poll in Cycle _1.0
Split_2
BP (0) 01: 1 of Cycle 21002 h polls in Cycle _2.0
BP (1) 01: 1 of Cycle 22003 h polls in Cycle _2.1
Split_4
BP (0) 01: 1 of Cycle 41004 h polls in Cycle _4.0
BP(1)00
BP (2) 01: 1 of Cycle 42005 h polls in Cycle _4.2
BP(3)00:
Split_8
BP(0)00
BP (1) 01: 1 of Cycle 84006 h polls in Cycle _8.1
BP(2)00
BP(3)00
BP(4)00
BP(5)01
BP(6)01
BP(7)00
Cycle _1 is not partitioned, and port data 0001h appears in each Cycle.
Cycle _2 is divided into 2 subcycles, and according to the Split list Split _2, port data 1002h appears in the 0 th, 2 nd, 4 th, and 6 th basic cycles in a macro Cycle, and port data 2003h appears in the 1 st, 3 rd, 5 th, and 7 th basic cycles in a macro Cycle.
Cycle _4 is divided into 4 subcycles, and according to the partition list Split _4, port data 1004h appears in the 0 th and 4 th basic periods in a macro Cycle, and port data 2005h appears in the 2 nd and 6 th basic periods in a macro Cycle.
Cycle _8 is divided into 8 subcycles, and according to the Split list Split _8, the port data 4006h appears in the 1 st basic Cycle in one macro Cycle.
Table 3 is obtained for this decomposition list and its characteristic weeks:
TABLE 3
Figure BDA0000085955130000111
Therefore, 0001h, 1002h, 1004h will be polled in the BP (0) fundamental period.
In the second decomposition list, the basic period for transmitting port data in Split _2 is changed:
Split_2
BP (0) 01: 1 of Cycle 22003 h polls in Cycle _2.0
BP (1) 01: 1 of Cycle 21002 h polls in Cycle _2.1
At this time, Cycle _1 is not divided at all, and port data 0001h appears in each Cycle.
Cycle _2 is divided into 2 subcycles, and according to the Split list Split _2, port data 2003h appears in the 0 th, 2 nd, 4 th and 6 th basic cycles in a macro Cycle, and port data 1002h appears in the 1 st, 3 rd, 5 th and 7 th basic cycles in a macro Cycle.
Cycle _4 is divided into 4 subcycles, and according to the partition list Split _4, port data 1004h appears in the 0 th and 4 th basic periods in a macro Cycle, and port data 2005h appears in the 2 nd and 6 th basic periods in a macro Cycle.
Cycle _8 is divided into 8 subcycles, and according to the Split list Split _8, the port data 4006h appears in the 1 st basic Cycle in one macro Cycle.
Table 4 is obtained for this decomposition list and its characteristic weeks:
TABLE 4
Figure BDA0000085955130000121
Figure BDA0000085955130000131
At this time, in the BP (0) basic period, 0001h, 2003h, 1004h will be polled.
In the third decomposition list, the basic period for transmitting port data in Split _8 is changed:
Split_8
BP (0) 01: 1 of Cycle 84006 h polls in Cycle _8.1
BP(1)00
BP(2)00
BP(3)00
BP(4)00
BP(5)01
BP(6)01
BP(7)00
At this time, Cycle _1 is not divided at all, and port data 0001h appears in each Cycle.
Cycle _2 is divided into 2 subcycles, and according to the Split list Split _2, port data 1002h appears in the 0 th, 2 nd, 4 th, and 6 th basic cycles in a macro Cycle, and port data 2003h appears in the 1 st, 3 rd, 5 th, and 7 th basic cycles in a macro Cycle.
Cycle _4 is divided into 4 subcycles, and according to the partition list Split _4, port data 1004h appears in the 0 th and 4 th basic periods in a macro Cycle, and port data 2005h appears in the 2 nd and 6 th basic periods in a macro Cycle.
Cycle _8 is divided into 8 subcycles, and according to the Split list Split _8, the port data 4006h appears in the 1 st basic Cycle in one macro Cycle.
Table 5 is obtained for this decomposition list and its characteristic weeks:
TABLE 5
Figure BDA0000085955130000141
At this time, 0001h, 1003h, 1004h, 4006h will be polled in the BP (0) basic period.
According to the port data in each basic cycle, the network load of the basic cycle is calculated, and the specific calculation method can calculate according to the data transmission delay or the transmission data volume.
A method for calculating network load according to data transmission delay comprises the following steps:
the network load is (transmission delay of all port data in the basic period + response delay of all ports in the basic period)/basic period.
In this embodiment, the specific calculation formula is as follows:
network load (%) { (C0 × 66+ C1 × 82+ C2 × 114+ C3 × 186+ C4 × 330)/N + (C0+ C1+ C2+ C3+ C4) × T _ reply _ max }/T _ bp × 100
Wherein,
c0 represents the number of ports for which F _ CODE is 0;
c1 represents the number of ports for which F _ CODE is 1;
c2 represents the number of ports for which F _ CODE is 2;
c3 represents the number of ports with F _ CODE of 3;
c4 represents the number of ports with F _ CODE of 4;
66. 82, 114, 186, 330 are as described above, and are message lengths of various port data, including polling master frames sent by the master device and port data sent by the slave device;
(C0 × 66+ C1 × 82+ C2 × 114+ C3 × 186+ C4 × 330) indicates the size of the packet sent in the basic cycle;
n represents the transmission rate of the MVB bus, and is fixed 1.5 Mbps;
therefore, (C0 × 66+ C1 × 82+ C2 × 114+ C3 × 186+ C4 × 330)/N represents the packet transmission delay;
t _ re ply _ max represents the maximum possible delay from the end of the transmission of the master frame to the response of the slave frame to the master frame. Unit us;
t _ bp represents a basic cycle.
Typically, T _ re ply _ max, T _ bp are also application dependent.
From the above equation, assuming that T _ reply _ max is 42.7us and T _ BP is 1000us, the network load of BP (0) is calculated for three cases, and 28.1%, 30.3%, and 54.38% are obtained, respectively.
S102, according to the calculation result, selecting the port data with the largest data volume in the port data to be sent in the basic cycle with the lowest current network load.
According to the calculation result in S101, the current network load of the basic period BP (0) included in the characteristic period is calculated, and it can be seen that the network load is the minimum when polling 0001h, 1002h, 1004h is performed in the basic period BP (0), so that the three port data can be selected to be transmitted in the basic period BP (0).
And obtaining a port data sequence list of the characteristic period through the sequence of the basic period when the transmitted port data and the basic period for transmitting the port data are obtained. In this embodiment, the obtained port data sequence table is:
Cycle_1 0001h
Cycle_2 1002h 2003h
Cycle_4 1004h 2005h
Cycle_8 4006h
it should be noted that if the calculation and selection of S101 and S102 are not passed, the port data sequence table may exist as follows:
Cycle_1 0001h
Cycle_2 2003h 1002h
Cycle_4 1004h 2005h
Cycle_8 4006h
i.e., the order of polling 1002h and 2003h in Cycle _2 is different, resulting in a greater network load (30.3%) during the BP (0) fundamental Cycle.
In addition, for the characteristic period of the port data, according to the transmitted port data and the basic period thereof, a decomposition list of the characteristic period may also be obtained through the order of the basic periods.
In addition, the transmitted port data and the corresponding basic period for transmitting the port data are recorded in the periodic scanning table, so that the periodic scanning table with the minimum network load can be obtained, the periodic scanning table is stored in a configuration file form, and when the MVB network is initialized, the main equipment loads the configuration file containing the information of the periodic scanning table to obtain the information of the periodic scanning table, so that the main equipment can control the transmission of the port data more quickly and conveniently.
Referring to fig. 3, the following describes a system for MVB network communication according to an embodiment of the present invention, including:
the network load calculating unit 301 is configured to calculate, for the port data and the characteristic cycle thereof, a current network load of each basic cycle included in the characteristic cycle. The characteristic period of the port data is determined by an application, so that the port data is classified according to the characteristic period, namely, the port data included in each cycle is determined. The current network load of each elementary period comprised by the characteristic period.
The port data sending unit 302 selects, according to the calculation result, the port data with the largest data size among the port data to be sent in the basic cycle with the lowest current network load.
The network load calculating unit 301 calculates the network load of each basic cycle according to the port data in the basic cycle, and the specific calculation method may be calculated according to the data transmission delay or the transmission data amount.
A method of calculating network load from data transmission delay is as follows, for each fundamental cycle:
the network load is (transmission delay of all port data in the basic period + response delay of all ports in the basic period)/basic period.
And obtaining a port data sequence list of the characteristic period through the sequence of the basic period when the transmitted port data and the basic period for transmitting the port data are obtained. Therefore, the system may further comprise: and the port data sequence list acquisition unit is used for acquiring a port data sequence list of the characteristic period according to the transmitted port data and the basic period of the port data transmitted by the port data and the sequence of the basic period aiming at the characteristic period of the port data.
In addition, the periodic scan table with the minimum network load can be obtained by recording the transmitted port data and the basic period corresponding to the port data in the periodic scan table, and therefore, the periodic scan table recording unit can be further included and used for recording the transmitted port data and the basic period corresponding to the port data in the periodic scan table.
By saving the periodic scanning table in the form of a configuration file, when the MVB network is initialized, the main device loads the configuration file containing the periodic scanning table information to obtain the periodic scanning table information, and the main device can control the sending of port data more quickly and conveniently. Therefore, the method further comprises the following steps: the period list storage unit is used for storing the period scanning list in a configuration file form; and the period list loading unit is used for loading the configuration file containing the period scanning table information by the main equipment when the MVB network is initialized, so that the main equipment can control polling and sending of port data in the MVB according to the period scanning table information.
The method and the system for multifunctional vehicle bus network communication provided by the invention are described in detail, specific examples are applied in the description to explain the principle and the implementation mode of the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed. In view of the above, the present disclosure should not be construed as limiting the invention.

Claims (12)

1. A method of multifunction vehicle bus network communication, comprising:
calculating the current network load of each basic period contained in the characteristic period aiming at the port data and the characteristic period thereof;
and according to the calculation result, selecting the port data with the largest data volume in the port data to be sent in the basic cycle with the lowest current network load.
2. The method according to claim 1, wherein the calculating the current network load of each basic cycle included in the characteristic cycle includes, for each basic cycle:
the network load is (transmission delay of all port data in the basic period + response delay of all ports in the basic period)/basic period.
3. The method of claim 1 or 2, further comprising:
and aiming at the characteristic period of the port data, according to the transmitted port data and the basic period thereof for transmitting the port data, and through the transmitting sequence of the port data in the basic period, obtaining a port data sequence list of the characteristic period.
4. The method of claim 1 or 2, further comprising:
and aiming at the characteristic period of the port data, obtaining a decomposition list of the characteristic period according to the transmitted port data and the basic period of the port data transmitted by the port data in the basic period and the transmission sequence of the port data in the basic period.
5. The method of claim 1 or 2, further comprising:
and recording the transmitted port data and the corresponding basic period for transmitting the port data in a periodic scanning table.
6. The method of claim 5, further comprising:
saving a periodic scanning table in a configuration file form;
when the multifunctional vehicle bus MVB network is initialized, the main device loads the configuration file containing the periodic scanning table information to obtain the periodic scanning table information, so that the main device controls polling and sending of port data in the MVB according to the periodic scanning table information.
7. A system for multifunction vehicle bus network communication, comprising:
the network load calculation unit is used for calculating the current network load of each basic period contained in the characteristic period aiming at the port data and the characteristic period thereof;
and the port data sending unit is used for selecting the port data with the largest data volume in the port data to be sent in the basic cycle with the lowest current network load according to the calculation result.
8. The system according to claim 7, wherein the network load calculation unit is specifically configured to calculate the network load by, for each fundamental cycle:
the network load is (transmission delay of all port data in the basic period + response delay of all ports in the basic period)/basic period.
9. The system of claim 7 or 8, further comprising:
and the port data sequence list acquisition unit is used for acquiring a port data sequence list of the characteristic period according to the transmitted port data and the basic period of the port data transmitted by the port data and the sequence of the basic period aiming at the characteristic period of the port data.
10. The system of claim 7 or 8, further comprising:
and the decomposition list acquisition unit is used for acquiring a decomposition list of the characteristic period according to the transmitted port data and the basic period of the port data transmitted by the port data and the sequence of the basic period aiming at the characteristic period of the port data.
11. The system of claim 7 or 8, further comprising:
and the periodic scanning table recording unit is used for recording the transmitted port data and the corresponding basic period for transmitting the port data in the periodic scanning table.
12. The system of claim 11, further comprising:
the periodic scanning table storage unit is used for storing the periodic scanning table in a configuration file form;
and the periodic scanning table loading unit is used for loading the configuration file containing the information of the periodic scanning table by the main equipment when the multifunctional vehicle bus MVB network is initialized, so that the main equipment can control polling and sending of port data in the MVB according to the information of the periodic scanning table.
CN201110245885A 2011-08-25 2011-08-25 Multifunctional vehicle bus network communication method and system Pending CN102315997A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110245885A CN102315997A (en) 2011-08-25 2011-08-25 Multifunctional vehicle bus network communication method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110245885A CN102315997A (en) 2011-08-25 2011-08-25 Multifunctional vehicle bus network communication method and system

Publications (1)

Publication Number Publication Date
CN102315997A true CN102315997A (en) 2012-01-11

Family

ID=45428833

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110245885A Pending CN102315997A (en) 2011-08-25 2011-08-25 Multifunctional vehicle bus network communication method and system

Country Status (1)

Country Link
CN (1) CN102315997A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103825676A (en) * 2014-02-21 2014-05-28 株洲南车时代电气股份有限公司 MVB device status word transmission method based on load balance
CN105407136A (en) * 2015-10-20 2016-03-16 江苏国恩信息科技有限公司 Train network communication realization method
CN105577478A (en) * 2016-01-05 2016-05-11 中车株洲电力机车有限公司 Train network control system based on TCN (Train Communication Network)
CN109327373A (en) * 2017-07-31 2019-02-12 中车株洲电力机车研究所有限公司 WTB node polls method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1874348A (en) * 2006-01-10 2006-12-06 华为技术有限公司 Method for balancing load in multiprocessing unit, and system of multiprocessing unit
CN101237374A (en) * 2007-02-02 2008-08-06 北京三星通信技术研究有限公司 Self-adapted multi-hop time division multiplexing dispatching method
CN101753451A (en) * 2009-12-23 2010-06-23 卡斯柯信号有限公司 Network load balance track traffic signal equipment state collection method and device
CN101877697A (en) * 2009-11-04 2010-11-03 北京交通大学 Vehicle-level Network Scheduling Method for Rail Transit Based on CANopen Protocol

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1874348A (en) * 2006-01-10 2006-12-06 华为技术有限公司 Method for balancing load in multiprocessing unit, and system of multiprocessing unit
CN101237374A (en) * 2007-02-02 2008-08-06 北京三星通信技术研究有限公司 Self-adapted multi-hop time division multiplexing dispatching method
CN101877697A (en) * 2009-11-04 2010-11-03 北京交通大学 Vehicle-level Network Scheduling Method for Rail Transit Based on CANopen Protocol
CN101753451A (en) * 2009-12-23 2010-06-23 卡斯柯信号有限公司 Network load balance track traffic signal equipment state collection method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103825676A (en) * 2014-02-21 2014-05-28 株洲南车时代电气股份有限公司 MVB device status word transmission method based on load balance
CN103825676B (en) * 2014-02-21 2016-03-23 株洲南车时代电气股份有限公司 A kind of method that MVB device status word based on load balancing transmits
CN105407136A (en) * 2015-10-20 2016-03-16 江苏国恩信息科技有限公司 Train network communication realization method
CN105577478A (en) * 2016-01-05 2016-05-11 中车株洲电力机车有限公司 Train network control system based on TCN (Train Communication Network)
CN109327373A (en) * 2017-07-31 2019-02-12 中车株洲电力机车研究所有限公司 WTB node polls method
CN109327373B (en) * 2017-07-31 2021-06-01 中车株洲电力机车研究所有限公司 WTB node polling method

Similar Documents

Publication Publication Date Title
CN114079528B (en) Sensing method and device thereof
JP2014239521A (en) Data transmission over network with channel bonding
KR20110058709A (en) Recovery Method of Transmission Failure Frame in Multi-User Based Wireless Communication Systems
CN109561464B (en) Method and equipment for reporting buffer state and allocating resources
US20150092639A1 (en) Indicating a busy period in a wireless network
CN112995542B (en) Data transmission method and device, electronic equipment and computer readable storage medium
CN111328105A (en) BSR reporting method and device
KR101719734B1 (en) Apparatus and method for managing slot
US10715417B2 (en) Method for configuring stream communication path in network
JP2017139774A (en) Enabling distributed channel access for plural access terminals transmitting in wireless communication environment
US20050002420A1 (en) Method and device for managing the transmission of data in a station of a wireless network
WO2016041420A1 (en) Time slot selection method and apparatus
CN102315997A (en) Multifunctional vehicle bus network communication method and system
CN103686800B (en) A kind of single list processing method and device of multi-slot resource
CN103841212B (en) Vehicle signal encapsulation method for automobile CAN bandwidth consumption optimization
CN106856445B (en) Motor train unit braking system and working method thereof
CN104284351B (en) A kind of distance-finding method and device
CN109429347A (en) Slot allocation method and device
CN113939024A (en) Transmission method, terminal and network side equipment
CN106953809B (en) 485 time-sharing communication-based equipment resource acquisition method
JP2011087295A (en) Method for allocating slot for emergency data, and method for transmitting emergency data by using the same
CN106161595B (en) Industrial Internet-based process control real-time communication method, device and system
CN106130858A (en) Data transmission method based on the Internet, Apparatus and system
KR100583811B1 (en) Method of Approving Identifier of Can Message to Humanoid Robot and Arbitration Method of Can Message Transmission
KR101573549B1 (en) Data transmission system and method for transmitting data between different type protocols

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120111