CN103825676B - A kind of method that MVB device status word based on load balancing transmits - Google Patents
A kind of method that MVB device status word based on load balancing transmits Download PDFInfo
- Publication number
- CN103825676B CN103825676B CN201410059466.9A CN201410059466A CN103825676B CN 103825676 B CN103825676 B CN 103825676B CN 201410059466 A CN201410059466 A CN 201410059466A CN 103825676 B CN103825676 B CN 103825676B
- Authority
- CN
- China
- Prior art keywords
- device status
- cycle
- status word
- load
- network
- 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
Links
Landscapes
- Small-Scale Networks (AREA)
Abstract
The invention discloses a kind of method that MVB device status word based on load balancing transmits, before bus resource distributes, calculate according to all cyclic loads in point pairing whole grand cycle of application port, and the result of calculating is carried out ascending sequence, insert the poll of device status word in the cycle that single cycle internal loading is less according to the result sorted.The present invention have principle simple, can the advantage such as optimized network load, the correctness ensureing equipment state display and stability.
Description
Technical field
The present invention is mainly concerned with vehicle control network technical field, refers in particular to a kind of method that MVB device status word based on load balancing being applicable to vehicle control network transmits.
Background technology
Based in the TCMS system of MVB, MVB communication have employed bus cycles property Time-sharing control, and defines the wire data type in each cycle in a standard, can carry out the transmission of process data, message data.Data frame transfer all in MVB all adopts the mode of question and answer to realize, and device status word is also carry out inquiry by MVB master control to the network equipment, and the network equipment sends correct acknowledgement frame after receiving inquiry frame.In the data of transmission, the device status word of MVB equipment is applied in multiple applied logic, and as the judgement of the primary, spare master of MVB, the display etc. of the AB line states of bus, the transmitting of device status word is relatively important in the entire system.
In existing carried network control system, all can use device status word, and be all carry out associated description according to IEC61375 standard.In TCMS system use procedure, the state display of network device state display and network link can be carried out by Vehicular display device, but in the process of application, there is the situation that equipment state is unstable or Link State display is unstable.
The current network equipment state of Vehicular display device display and the state of network link are all by VCM(vehicle control module) device status word of all devices on collection network, and device status word is analyzed, the result of analysis is sent to Vehicular display device carries out showing; And in the application of reality, by study for a long period of time the device status word finding VCM module each equipment in collection network time, there is equipment state clipping of words (under certain condition, VCM module cannot get the device status word of other equipment), cause Vehicular display device to show the problem of mistake, thus have influence on driver to the judgement of equipment state and have influence on normal operation.
Summary of the invention
The technical problem to be solved in the present invention is just: the technical problem existed for prior art, the invention provides a kind of principle simple, can optimized network load, ensure the method that the correctness of equipment state display and the MVB device status word based on load balancing of stability transmit.
For solving the problems of the technologies described above, the present invention by the following technical solutions:
A kind of method that MVB device status word based on load balancing transmits, before bus resource distributes, calculate according to all cyclic loads in point pairing whole grand cycle of application port, and the result of calculating is carried out ascending sequence, insert the poll of device status word in the cycle that single cycle internal loading is less according to the result sorted.
As a further improvement on the present invention: described method is according to following strategy:
(1), all loads be 0 basic cycle in all increase device status word inquiry frame;
(2), in the basic cycle that load is non-zero sort, according to ranking results, device status word is inquired about frame and be increased in respective cycle, until all device status words have been inquired about;
(3), at least complete all device status words of poll in the grand cycle;
(4), as three cycles of device status word do not upgrade, then carry out clearing process.
As a further improvement on the present invention: the concrete steps of described method are:
(1), system starts, and obtains all devices address in network; That is, from the configuration file of application item configuration, read the device address of all devices configured in current network;
(2), network load calculates; That is, according to network communications port and the cycle of application configuration, the load of all basic cycles in the grand cycle is calculated;
(3), all null cycles are all increased a device status word poll; That is, search from one-period, run within a grand cycle load be 0 basic cycle all increase the poll of a device status word;
(4), sorting network load; Namely, the network load of each basic cycle in Network Search from first basic cycle, if the load of certain basic cycle is the minimum load in the grand cycle, then within this basic cycle, increase device status word, the like, until all basic cycles have all inquired about or all device status words have all increased.
Compared with prior art, the invention has the advantages that:
1, the method that MVB device status word based on load balancing of the present invention transmits, do not affecting under application data prerequisite, the poll of device status word is carried out according to the load of network, the device status word poll of MVB is increased within the basic cycle that network load is lower, can be avoided the situation that the basic cycle occurs exceeding 100% like this, within a grand cycle, complete the poll of all device status words simultaneously, so not only optimize the network load also Simultaneous Stabilization poll of device status word, ensure that device status words all within each grand cycle can upgrade once.
2, the method transmitted of the MVB device status word based on load balancing of the present invention, in actual applications, the method is adopted to carry out the poll of device status word and carry out the display of display to equipment state according to the result of poll, ensure that the correctness that equipment state shows and stability, thus solve the unstable problem of former network device state display.
Accompanying drawing explanation
Fig. 1 is schematic flow sheet of the present invention.
Fig. 2 is the schematic diagram that the present invention inserts device status word in embody rule process.
Embodiment
Below with reference to Figure of description and specific embodiment, the present invention is described in further details.
Found by research, every 8 basic cycles are adopted to increase the device address poll of a network equipment by force during normally used device status word poll, but in actual use procedure, different application items, load in each basic cycle is not identical, and the basic cycle internal loading had is lower, the situation that some basic cycle internal loadings are higher, when increasing an equipment state polling frame by force within the basic cycle, as higher in the load in the basic cycle, the poll frame that then can there is increase can make load exceed 100%, and causes poll failure.Because the configured port number in each application item in use each cycle is different, the bus load that will inevitably exist in each cycle is different, has occurred higher load condition in partial periodicity.And the bus load that will to increase further the poll of device status word as now increased within this cycle in this cycle, even can cause data transmission fails.
The present invention is exactly under the prerequisite of the basic cycle of not revising application configuration, the poll frame of device status word is increased according to the cycle lower at network load of real network load, and ensure to be polled to equipment all in network within a grand cycle, the stability of the device status word of the network equipment is provided.
The present invention, under the prerequisite not affecting other transmission cycles of bus, carries out the poll of device status word.The method that MVB device status word based on load balancing of the present invention transmits, for: before bus resource distributes, calculate according to all cyclic loads in point pairing whole grand cycle of application port, and the result of calculating is carried out ascending sequence, insert the poll of device status word according to the result of sequence in single cycle internal loading less cycle, so not only achieve the simultaneously also balanced network load of whole bus of the poll of device status word.
Above-mentioned thinking should follow following strategy:
1, all loads be 0 basic cycle in all increase device status word inquiry frame;
2, sort in the basic cycle that load is non-zero, according to ranking results, device status word is inquired about frame and be increased in respective cycle, until all device status words have been inquired about;
3, at least complete all device status words of poll in the grand cycle;
4, as three cycles of device status word do not upgrade, then clearing process is carried out.
As depicted in figs. 1 and 2, in a particular embodiment, detailed step of the present invention is:
1, system starts, and obtains all devices address in network; That is, from the configuration file of application item configuration, read the device address of all devices configured in current network.(the corresponding device status word poll frame in each address)
2, network load calculates; That is, according to network communications port and the cycle of application configuration, the load of all basic cycles in the grand cycle is calculated.
3, all null cycles are all increased a device status word poll; That is, search from one-period, run within a grand cycle load be 0 basic cycle all increase the poll of a device status word.
4, sorting network load; Namely, the network load of each basic cycle in Network Search from first basic cycle, if the load of certain basic cycle is the minimum load in the grand cycle, then within this basic cycle, increase device status word, the like, until all basic cycles have all inquired about or all device status words have all increased.Network load is increased like this by increasing device status word poll frame, thus the equilibrium load of whole network.
As from the foregoing, the present invention adopts the method for equalizing network load to increase the poll frame of network device state word, thus network device state word is stablized and does not impact the process data etc. of application.
Below be only the preferred embodiment of the present invention, protection scope of the present invention be not only confined to above-described embodiment, all technical schemes belonged under thinking of the present invention all belong to protection scope of the present invention.It should be pointed out that for those skilled in the art, some improvements and modifications without departing from the principles of the present invention, should be considered as protection scope of the present invention.
Claims (2)
1. the method transmitted of the MVB device status word based on load balancing, the device status word of each MVB equipment is sent to Vehicular display device by network and shows, it is characterized in that, before bus resource distributes, calculate according to all cyclic loads in point pairing whole grand cycle of application port, and the result of calculating is carried out ascending sequence, insert the poll of device status word in the cycle that single cycle internal loading is less according to the result sorted;
Described method is according to following strategy:
(1), all loads be 0 basic cycle in all increase device status word inquiry frame;
(2), in the basic cycle that load is non-zero sort, according to ranking results, device status word is inquired about frame and be increased in respective cycle, until all device status words have been inquired about;
(3), at least complete all device status words of poll in the grand cycle;
(4), as three cycles of device status word do not upgrade, then carry out clearing process.
2. the method transmitted of the MVB device status word based on load balancing according to claim 1, it is characterized in that, the concrete steps of described method are:
(1), system starts, and obtains all devices address in network; That is, from the configuration file of application item configuration, read the device address of all devices configured in current network;
(2), network load calculates; That is, according to network communications port and the cycle of application configuration, the load of all basic cycles in the grand cycle is calculated;
(3), all null cycles are all increased a device status word poll; That is, search from one-period, run within a grand cycle load be 0 basic cycle all increase the poll of a device status word;
(4), sorting network load; Namely, the network load of each basic cycle in Network Search from first basic cycle, if the load of certain basic cycle is the minimum load in the grand cycle, then within this basic cycle, increase device status word, the like, until all basic cycles have all inquired about or all device status words have all increased.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410059466.9A CN103825676B (en) | 2014-02-21 | 2014-02-21 | A kind of method that MVB device status word based on load balancing transmits |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410059466.9A CN103825676B (en) | 2014-02-21 | 2014-02-21 | A kind of method that MVB device status word based on load balancing transmits |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103825676A CN103825676A (en) | 2014-05-28 |
CN103825676B true CN103825676B (en) | 2016-03-23 |
Family
ID=50760532
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410059466.9A Active CN103825676B (en) | 2014-02-21 | 2014-02-21 | A kind of method that MVB device status word based on load balancing transmits |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103825676B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109327373B (en) * | 2017-07-31 | 2021-06-01 | 中车株洲电力机车研究所有限公司 | WTB node polling method |
Citations (3)
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 |
CN101877697A (en) * | 2009-11-04 | 2010-11-03 | 北京交通大学 | Method for dispatching rail traffic vehicle grade network based on CANopen (Controller Area Networkopen) protocol |
CN102315997A (en) * | 2011-08-25 | 2012-01-11 | 株洲南车时代电气股份有限公司 | Multifunctional vehicle bus network communication method and system |
-
2014
- 2014-02-21 CN CN201410059466.9A patent/CN103825676B/en active Active
Patent Citations (3)
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 |
CN101877697A (en) * | 2009-11-04 | 2010-11-03 | 北京交通大学 | Method for dispatching rail traffic vehicle grade network based on CANopen (Controller Area Networkopen) protocol |
CN102315997A (en) * | 2011-08-25 | 2012-01-11 | 株洲南车时代电气股份有限公司 | Multifunctional vehicle bus network communication method and system |
Also Published As
Publication number | Publication date |
---|---|
CN103825676A (en) | 2014-05-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105700510B (en) | The disperse errors detection method and CAN communication system of CAN communication system | |
US20200143049A1 (en) | System and method for preventing malicious can bus attacks | |
CN110401509A (en) | For improving method, equipment, medium and the device of automobile CAN-bus efficiency of transmission | |
CN105119793A (en) | Identifier distribution method of sensor network CAN bus frame format | |
AU2015288023B2 (en) | System, method, and apparatus for generating vital messages on an on-board system of a vehicle | |
CN103780508A (en) | Software wave filtering method and system of CAN bus messages and electronic control unit | |
CN105807722A (en) | Numerical control system including internal register self-reset function with serial communication signal monitoring | |
CN106919622A (en) | For the method and apparatus of distributed data processing | |
CN103825676B (en) | A kind of method that MVB device status word based on load balancing transmits | |
CN203180949U (en) | A bus communication system based on UARTs | |
CN102594685A (en) | Communication method between ECUs (Electronic Control Units) based on message forwarding | |
US10574392B2 (en) | System. methods and devices for transmitting and/or receiving data using an inter communication link | |
CN104917731A (en) | Method and system for improving data display speed, server and browser | |
CN105957182B (en) | A kind of method and device of rectilinear direction that correcting instruction vehicle traveling | |
CN103997509A (en) | Service oriented architecture-based service processing method and apparatus | |
US9619310B2 (en) | High speed data transmission methods and systems upon error detection | |
CN106713093B (en) | A kind of avionics data distribution model and method | |
CN104834958A (en) | Method and device for evaluating steps of answer | |
CN103856373A (en) | Web system robustness testing method based on HTTP mutation | |
CN105282647B (en) | A kind of MPP speaker control method and access controller | |
CN104348641A (en) | Fault detection method and fault detection device | |
CN106681954A (en) | Method for parameter setting based on bus and controller for robot | |
CN105871917A (en) | Transmission control protocol TCP connection scheduling method and device | |
CN107895075B (en) | Method for developing general simulation framework of airborne bus | |
CN111240872A (en) | Self-service equipment diagnosis method based on cloud computing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: The age of 412001 in Hunan Province, Zhuzhou Shifeng District Road No. 169 Patentee after: ZHUZHOU CRRC TIMES ELECTRIC Co.,Ltd. Address before: The age of 412001 in Hunan Province, Zhuzhou Shifeng District Road No. 169 Patentee before: ZHUZH CSR TIMES ELECTRIC Co.,Ltd. |
|
CP01 | Change in the name or title of a patent holder |