CN110719213A - Data processing method and device, electronic equipment and storage medium - Google Patents

Data processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110719213A
CN110719213A CN201910911969.7A CN201910911969A CN110719213A CN 110719213 A CN110719213 A CN 110719213A CN 201910911969 A CN201910911969 A CN 201910911969A CN 110719213 A CN110719213 A CN 110719213A
Authority
CN
China
Prior art keywords
data
mvb
ethernet
communication state
normal
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.)
Granted
Application number
CN201910911969.7A
Other languages
Chinese (zh)
Other versions
CN110719213B (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.)
CRRC Qingdao Sifang Co Ltd
Original Assignee
CRRC Qingdao Sifang 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 CRRC Qingdao Sifang Co Ltd filed Critical CRRC Qingdao Sifang Co Ltd
Priority to CN201910911969.7A priority Critical patent/CN110719213B/en
Publication of CN110719213A publication Critical patent/CN110719213A/en
Application granted granted Critical
Publication of CN110719213B publication Critical patent/CN110719213B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0847Transmission error
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40267Bus for use in transportation systems
    • H04L2012/40293Bus for use in transportation systems the transportation system being a train

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Security & Cryptography (AREA)
  • Small-Scale Networks (AREA)

Abstract

The application discloses a data processing method, a device, equipment and a medium, wherein the method comprises the following steps: acquiring Ethernet data and MVB data for representing the operating state of a working system of each connection network of a train; judging whether the Ethernet communication state is normal or not by utilizing the Ethernet data; if the Ethernet communication state is normal, determining the Ethernet data as target data; if the Ethernet communication state is abnormal, whether the MVB communication state is normal is judged by using the MVB data; if the MVB communication state is normal, determining the MVB data as target data; and assigning the public array by using the target data so as to control the working system based on the public array. That is, this application preferentially uses ethernet to carry out data transmission, make full use of ethernet transmission quantity big, the fast advantage of transmission rate, improved data transmission speed, utilize MVB data as redundant data simultaneously, can avoid data loss, guaranteed the integrality and the accuracy of data.

Description

Data processing method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data processing method and apparatus, an electronic device, and a computer-readable storage medium.
Background
In the traditional technology, a train network control system mostly adopts an MVB communication protocol, the bandwidth of the MVB communication protocol is small, the maximum bandwidth is only 1.5Mbps, and the transmission speed is low.
Therefore, how to provide the data transmission rate is a problem to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide a data processing method and device, an electronic device and a computer readable storage medium, which improve the data transmission speed, can avoid data loss and ensure the integrity and accuracy of data.
In order to achieve the above object, the present application provides a data processing method, including:
acquiring Ethernet data and MVB data for representing the operating state of a working system of each connection network of a train;
judging whether the Ethernet communication state is normal or not by utilizing the Ethernet data;
if the Ethernet communication state is normal, determining the Ethernet data as target data;
if the Ethernet communication state is abnormal, judging whether the MVB communication state is normal by using the MVB data;
if the MVB communication state is normal, determining the MVB data as the target data;
and assigning a value to the public array by using the target data so as to control the working system based on the public array.
Optionally, the acquiring ethernet data and MVB data used for characterizing the operating state of the operating system of each connection network of the train includes:
and acquiring Ethernet data and MVB data for representing the operating state of the operating system of each connection network of the train according to a preset working period.
Optionally, the MVB data is data with a size of 32 bytes, where the first two bytes are used to characterize a vital signal of the MVB data; the first four bytes of the ethernet data are used to characterize the vital signs of the ethernet data.
Optionally, the determining, by using the ethernet data, whether the ethernet communication state is normal includes:
determining a first life signal corresponding to Ethernet data in the current working period;
acquiring a second vital signal corresponding to the Ethernet data in the previous working cycle;
determining whether the first vital signal is greater than the second vital signal;
if yes, the Ethernet communication state is judged to be normal.
If not, acquiring historical Ethernet vital signals corresponding to the Ethernet data in the historical working period;
judging whether the historical Ethernet vital signals are not changed in a first preset number of historical working cycles or not;
if yes, judging that the Ethernet communication state is abnormal.
Optionally, the determining, by using the MVB data, whether the MVB communication state is normal includes:
determining a third life signal in the MVB data of the current work period;
acquiring a fourth vital signal in MVB data of the previous work period;
judging whether the third vital signal and the fourth vital signal are consistent;
if not, judging that the MVB communication state is normal;
if yes, acquiring a historical MVB vital signal corresponding to the MVB data in the historical work period;
judging whether the historical MVB vital signals are not changed in a second preset number of historical working cycles or not;
if yes, judging that the MVB communication state is abnormal.
Optionally, after the determining whether the MVB communication state is normal by using the MVB data, the method further includes:
and if the MVB communication state is abnormal, clearing the public array.
Optionally, after the assigning is performed on the public array by using the target data, the method further includes:
and displaying the data in the public array by using a preset visual element.
To achieve the above object, the present application provides a data processing apparatus comprising:
the data acquisition module is used for acquiring Ethernet data and MVB data for representing the operating state of a working system of each connection network of the train;
the first judging module is used for judging whether the Ethernet communication state is normal by utilizing the Ethernet data;
a first determining module, configured to determine the ethernet data as target data if the ethernet communication state is normal;
the second judgment module is used for judging whether the MVB communication state is normal or not by utilizing the MVB data if the Ethernet communication state is abnormal;
a second determining module, configured to determine, if the MVB communication state is normal, the MVB data as the target data;
and the array assignment module is used for assigning the public array by using the target data so as to control the working system based on the public array.
To achieve the above object, the present application provides an electronic device including:
a memory for storing a computer program;
a processor for implementing the steps of the data processing method when executing the computer program.
To achieve the above object, the present application provides a computer-readable storage medium having stored thereon a computer program, which when executed by a processor, implements the steps of the data processing method as described above.
According to the above scheme, the data processing method provided by the application comprises the following steps: acquiring Ethernet data and MVB data for representing the operating state of a working system of each connection network of a train; judging whether the Ethernet communication state is normal or not by utilizing the Ethernet data; if the Ethernet communication state is normal, determining the Ethernet data as target data; if the Ethernet communication state is abnormal, judging whether the MVB communication state is normal by using the MVB data; if the MVB communication state is normal, determining the MVB data as the target data; and assigning a value to the public array by using the target data so as to control the working system based on the public array. As can be seen from the above, the ethernet data and MVB data of each working system are obtained, and whether the ethernet communication state is normal or not is preferentially judged, and if so, the ethernet data can be directly used; if the MVB data is abnormal, further judging whether the MVB communication state is normal, and determining whether to use the MVB data according to the judgment result. That is, preferentially use the ethernet to carry out data transmission, make full use of the advantage that ethernet transmission quantity is big, transmission rate is fast, improved data transmission speed, utilize MVB data as redundant data simultaneously, can avoid data loss, guaranteed the integrality and the accuracy of data.
The application also discloses a data processing device, an electronic device and a computer readable storage medium, which can also realize the technical effects.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a data processing method disclosed in an embodiment of the present application;
fig. 2 is a flowchart of a process of determining whether an ethernet communication state is normal according to an embodiment of the present application;
fig. 3 is a flowchart of a process of determining whether an MVB communication state is normal according to an embodiment of the present application;
FIG. 4 is a flow chart of a specific data processing method disclosed in an embodiment of the present application;
fig. 5 is a block diagram of a data processing apparatus according to an embodiment of the present application;
fig. 6 is a block diagram of an electronic device disclosed in an embodiment of the present application;
fig. 7 is a block diagram of another electronic device disclosed in the embodiments of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the prior art, most train network control systems adopt an MVB communication protocol, and the MVB communication protocol has a small bandwidth of only 1.5Mbps at most and a low transmission speed.
Therefore, the embodiment of the application discloses a data processing method, which improves the data transmission speed, can avoid data loss and ensures the integrity and accuracy of data.
Referring to fig. 1, a data processing method disclosed in an embodiment of the present application includes:
s101: acquiring Ethernet data and MVB data for representing the operating state of a working system of each connection network of a train;
in this step, ethernet data and MVB data are respectively obtained through the ethernet port and the MVB port, and the ethernet data and the MVB data are used for representing the operating states of all the operating systems in the train. Specifically, the work system may include, but is not limited to: a train control system, a monitoring system, a traction system, a braking system, a fire alarm system, a passenger information system, a storage battery control system, a vehicle door control system and other network connection systems.
When the ethernet data and the MVB data are obtained, the ethernet data and the MVB data may be obtained periodically according to a preset duty cycle by using a preset application program, such as a CCU (central control Unit), an HMI (Human Machine Interface), or a preset process. The preset duty cycle may be set according to specific conditions during the implementation process, and this embodiment does not limit this.
It should be noted that, in the embodiment of the present application, the MVB data may specifically be data with a size of 32 bytes, and the first two bytes of the data are life signals for characterizing the MVB data. The size of the ethernet data may be determined according to the actual data size, with the first four bytes being the vital signal used to characterize the ethernet data.
S102: judging whether the Ethernet communication state is normal or not by utilizing the Ethernet data; if yes, go to step S103; if not, the step S104 is entered;
s103: determining the Ethernet data as target data, and entering step S106;
in the embodiment of the application, after the ethernet data and the MVB data are acquired, whether the ethernet communication state is normal at the present time is determined based on the ethernet data. If the Ethernet communication state is normal, the current Ethernet data is represented to be correct, and the current Ethernet data can be directly determined as the target data.
S104: judging whether the MVB communication state is normal or not by using the MVB data; if yes, go to step S105;
s105: determining the MVB data as the target data, and entering step S106;
if the ethernet communication state is abnormal, it represents that there may be an error in the currently acquired ethernet data, and at this time, it is determined whether the MVB communication state is normal at the current time. If the MVB communication state is normal, the corresponding MVB data may be determined as the target data.
S106: and assigning a value to the public array by using the target data so as to control the working system based on the public array.
After the target data is determined, the target data is assigned to the common array. The public array is used for providing data to management workers, so that each working system can be controlled by the data in the public array, and train logic control is achieved. In specific implementation, the public array may take the MVB data format as a basic storage unit, which is beneficial to the subsequent data processing process.
As a preferred implementation manner, in the embodiment of the present application, after determining whether the MVB communication state is normal by using the MVB data, if it is determined that the MVB communication state is abnormal, an emptying operation is performed on the public array. This is because when data interaction is performed through ethernet and MVB communication, there may be errors in data transmitted before an abnormal communication state occurs, and if historical data is not cleared, it is likely that erroneous data is used after communication is recovered to normal.
It can be understood that, in the embodiment of the present application, after the target data is used to assign a value to the public array, the public array may be further displayed, and specifically, the preset visual elements may be used to display the data in the public array, for example, the data of each system may be displayed in a different classification manner, so that the manager may know the operating state of the system in time.
According to the above scheme, the data processing method provided by the application comprises the following steps: acquiring Ethernet data and MVB data for representing the operating state of a working system of each connection network of a train; judging whether the Ethernet communication state is normal or not by utilizing the Ethernet data; if the Ethernet communication state is normal, determining the Ethernet data as target data; if the Ethernet communication state is abnormal, whether the MVB communication state is normal is judged by using the MVB data; if the MVB communication state is normal, determining the MVB data as target data; and assigning the public array by using the target data so as to control the working system based on the public array. As can be seen from the above, the ethernet data and MVB data of each working system are obtained, and whether the ethernet communication state is normal or not is preferentially judged, and if so, the ethernet data can be directly used; if the MVB data is abnormal, further judging whether the MVB communication state is normal, and determining whether to use the MVB data according to the judgment result. That is, preferentially use the ethernet to carry out data transmission, make full use of the advantage that ethernet transmission quantity is big, transmission rate is fast, improved data transmission speed, utilize MVB data as redundant data simultaneously, can avoid data loss, guaranteed the integrality and the accuracy of data.
The following describes and explains the process of determining whether the ethernet communication state is normal in step S102 in the data processing method disclosed in the embodiment of the present application in detail. Referring to fig. 2, specifically:
s1021: determining a first life signal corresponding to Ethernet data in the current working period;
s1022: acquiring a second vital signal corresponding to the Ethernet data in the previous working cycle;
s1023: determining whether the first vital signal is greater than the second vital signal; if yes, go to step S1024; if not, go to step S1025;
s1024: judging that the Ethernet communication state is normal;
s1025: acquiring historical Ethernet life signals corresponding to Ethernet data in a historical working period;
s1026: judging whether the historical Ethernet vital signals are not changed in a first preset number of historical working cycles or not; if so, go to step S1027;
s1027: and judging that the Ethernet communication state is abnormal.
In the embodiment of the application, the Ethernet data is acquired according to the preset work cycle. Wherein the ethernet data comprises a vital signal. After the Ethernet data of the current working period is obtained, the first life signal is determined, the Ethernet data corresponding to the previous working period of the current working period is further obtained, and the second life signal of the Ethernet data of the previous working period is determined. It can be understood that the vital signal value is continuously changed when the communication procedure is normally operated, so that whether the ethernet communication state is normal can be determined by determining whether the first vital signal is greater than the second vital signal.
It should be noted that, if it is determined that the first vital signal is not greater than the second vital signal, in this embodiment, to avoid misjudgment, instead of directly determining that the ethernet communication state is abnormal, the ethernet data in the historical operating period is acquired, and the historical ethernet vital signal corresponding to the ethernet data is determined, and if the historical ethernet vital signal does not change in the continuous historical operating period, and the number of the historical operating periods reaches the first preset number, the ethernet communication state is determined to be abnormal. Specifically, when the ethernet data in the historical operating cycles are obtained, the ethernet data in a plurality of the historical operating cycles corresponding to the first preset number may be directly obtained, and if the historical ethernet vital signals corresponding to the plurality of ethernet data are the same, it is determined that the ethernet communication state is abnormal. The first preset number may be limited according to specific situations in the implementation process, and for example, it may be set to 8, that is, if the vital signal corresponding to the ethernet data of 8 consecutive work cycles does not change, it is determined that the ethernet communication state is abnormal.
The following describes and explains the process of determining whether the MVB communication state is normal in step S104 in the data processing method disclosed in the embodiment of the present application in detail. Referring to fig. 3, specifically:
s1041: determining a third life signal in the MVB data of the current work period;
s1042: acquiring a fourth vital signal in MVB data of the previous work period;
s1043: judging whether the third vital signal and the fourth vital signal are consistent; if yes, go to step S1045; if not, the step S1044 is executed;
s1044: judging that the MVB communication state is normal;
s1045: acquiring historical MVB vital signals corresponding to MVB data in a historical work period;
s1046: judging whether the historical MVB vital signals are not changed in a second preset number of historical working cycles or not; if yes, go to step S1047;
s1047: and judging that the MVB communication state is abnormal.
In the embodiment of the present application, the MVB data includes a vital signal. Firstly, MVB data corresponding to the current working period is obtained, a third vital signal is determined, MVB data corresponding to the previous working period of the current working period is further obtained, and a fourth vital signal is determined. It should be noted that the value of the vital signal is constantly changing during the normal operation of the communication program, the maximum MVB port can only be defined as 32 bytes, which is limited by the number of ports, and the MVB data generally uses two bytes to represent the vital signal, so it is difficult to ensure that the vital signal keeps increasing.
In a specific implementation, if the third vital signal is determined to be consistent with the fourth vital signal, in order to avoid misdetermination, the MVB communication state is not directly determined to be abnormal, but the MVB data in the historical working period is acquired, and the corresponding historical MVB vital signal is determined. And if the historical MVB vital signals are not changed in the continuous second preset number of historical working cycles, judging that the MVB communication state is abnormal. The second predetermined number may be specifically limited according to specific implementation situations, for example, the second predetermined number may be set to 8, that is, if none of the MVB vital signals of 8 consecutive duty cycles has changed, the MVB communication status is determined to be abnormal.
A data processing method provided in the embodiments of the present application is described below with a specific application example. Referring to fig. 4, specifically:
firstly, the embodiment of the application defines the format of the communication protocol of Ethernet and MVB: the size of the MVB communication port is uniformly set to be 32 bytes, as shown in table 1 below, the first two bytes of data are vital signals, and the remaining bytes of data are interactive data of the port. The size of the ethernet communication port may be determined according to the actual data size, as shown in table 2 below, where the first four bytes are vital signals, and the remaining bytes of data write the same data as the MVB communication port in sequence according to the MVB communication port number. In consideration of the everyday running time of the vehicle and the running time of a TCMS (Train Control and Management System) program, the embodiment of the present application defines the size of the ethernet vital signal as 4 bytes, so as to ensure that the vital signal received in each working cycle is greater than the vital signal value in the previous working cycle in a normal communication state, and reduce the interference of other factors of the vehicle to the communication.
TABLE 1
Figure BDA0002214967880000091
TABLE 2
Figure BDA0002214967880000092
Further, the embodiment of the application defines and receives an ethernet array and an MVB array of each train system, and after data processing, the data needs to be stored in a public array for data processing. The data definition in the public array is the same as that of the MVB array, namely, the MVB data format is used as a basic storage unit, which is beneficial to the subsequent data processing process.
In specific implementation, the CCU and HMI application programs are used to periodically acquire the ethernet data and MVB data of each subsystem every period, and determine whether the communication states of the ethernet and MVB of the system are normal according to the life signals of the ethernet and MVB ports.
Specifically, the communication status of each ethernet port is determined first. If the life signal value of the Ethernet port in the current period is larger than the life signal value of the Ethernet port in the previous period, judging that the current Ethernet port is normal in communication; and if the vital signal value of the continuous 8 cycles does not change, judging that the current Ethernet port communication is abnormal. And if all the Ethernet ports are in normal communication, judging that the Ethernet communication is normal.
And if the Ethernet communication is judged to be abnormal, further determining the communication state of the MVB port. If the life signal value of the MVB port in the current period is different from the life signal value of the MVB port in the previous period, judging that the current MVB port is normal in communication; and if the vital signal values of the continuous 8 periods are not changed, judging that the communication of the current MVB port is abnormal. And if all the MVB ports are normally communicated, judging that the MVB is normally communicated.
If the Ethernet communication is judged to be normal, assigning the Ethernet data of all the Ethernet ports to the corresponding public arrays; if the Ethernet communication is abnormal and the MVB communication is normal, assigning the MVB data of all the MVB ports to the corresponding public array; and if the Ethernet communication and the MVB communication are abnormal, clearing the data in the corresponding public array.
In the embodiment of the application, by utilizing the advantages of large data transmission amount and high speed of Ethernet, the Ethernet communication mode is preferentially selected for data communication between systems, and MVB data is used as complete redundant backup, so that the data communication efficiency can be ensured, and data redundancy can be realized. In addition, through the scheme, the data processing process can be separated from the subsequent logic control and state display according to the data, so that the program structures of the central controller and the display are simplified.
In the following, a data processing apparatus provided in an embodiment of the present application is introduced, and a data processing apparatus described below and a data processing method described above may be referred to each other.
Referring to fig. 5, a data processing apparatus provided in an embodiment of the present application includes:
a data obtaining module 201, configured to obtain ethernet data and MVB data used for representing operation states of working systems of each connection network of a train;
a first determining module 202, configured to determine whether an ethernet communication state is normal by using the ethernet data; if yes, starting the work flow of the first determination module 203; if not, starting the working process of the second judgment module 204;
a first determining module 203, configured to determine the ethernet data as target data, and start a workflow of the array assigning module 206;
a second determining module 204, configured to determine whether the MVB communication state is normal by using the MVB data; if so, initiating a workflow of the second determination module 205;
a second determining module 205, configured to determine the MVB data as the target data;
an array assignment module 206, configured to assign a common array with the target data so as to control the work system based on the common array.
For the specific implementation process of the modules 201 to 206, reference may be made to the corresponding content disclosed in the foregoing embodiments, and details are not repeated here.
On the basis of the foregoing embodiment, as a preferred implementation manner, the data obtaining module 201 is specifically configured to:
and acquiring Ethernet data and MVB data for representing the operating state of the operating system of each connection network of the train according to a preset working period.
On the basis of the above embodiment, as a preferred implementation, the MVB data is data with a size of 32 bytes, where the first two bytes are used to characterize the vital signal of the MVB data; the first four bytes of the ethernet data are used to characterize the vital signs of the ethernet data.
On the basis of the foregoing embodiment, as a preferred implementation, the data processing apparatus further includes:
and the array clearing module is used for clearing the public array if the MVB communication state is abnormal after judging whether the MVB communication state is normal by using the MVB data.
On the basis of the foregoing embodiment, as a preferred implementation, the data processing apparatus further includes:
and the data display module is used for displaying the data in the public array by using a preset visual element after the target data is used for assigning values to the public array.
The present application further provides an electronic device, and as shown in fig. 6, an electronic device provided in an embodiment of the present application includes:
a memory 100 for storing a computer program;
the processor 200, when executing the computer program, may implement the steps provided by the above embodiments.
Specifically, the memory 100 includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer-readable instructions, and the internal memory provides an environment for the operating system and the computer-readable instructions in the non-volatile storage medium to run. The processor 200 may be a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor or other data processing chip in some embodiments, and provides computing and controlling capability for the electronic device, and when executing the computer program stored in the memory 100, the steps of the data processing method disclosed in any of the foregoing embodiments may be implemented.
On the basis of the above embodiment, as a preferred implementation, referring to fig. 7, the electronic device further includes:
and an input interface 300 connected to the processor 200, for acquiring computer programs, parameters and instructions imported from the outside, and storing the computer programs, parameters and instructions into the memory 100 under the control of the processor 200. The input interface 300 may be connected to an input device for receiving parameters or instructions manually input by a user. The input device may be a touch layer covered on a display screen, or a button, a track ball or a touch pad arranged on a terminal shell, or a keyboard, a touch pad or a mouse, etc.
And a display unit 400 connected to the processor 200 for displaying data processed by the processor 200 and for displaying a visualized user interface. The display unit 400 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch panel, or the like.
And a network port 500 connected to the processor 200 for performing communication connection with each external terminal device. The communication technology adopted by the communication connection can be a wired communication technology or a wireless communication technology, such as a mobile high definition link (MHL) technology, a Universal Serial Bus (USB), a High Definition Multimedia Interface (HDMI), a wireless fidelity (WiFi), a bluetooth communication technology, a low power consumption bluetooth communication technology, an ieee802.11 s-based communication technology, and the like.
While fig. 7 shows only an electronic device having the assembly 100 and 500, those skilled in the art will appreciate that the configuration shown in fig. 7 is not intended to be limiting of electronic devices and may include fewer or more components than those shown, or some components may be combined, or a different arrangement of components.
The present application also provides a computer-readable storage medium, which may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk. The storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the data processing method disclosed in any of the foregoing embodiments.
The method and the device regularly acquire the Ethernet data and the MVB data of each working system, preferentially judge whether the Ethernet communication state is normal, and directly use the Ethernet data if the Ethernet communication state is normal; if the MVB data is abnormal, further judging whether the MVB communication state is normal, and determining whether to use the MVB data according to the judgment result. That is, preferentially use the ethernet to carry out data transmission, make full use of the advantage that ethernet transmission quantity is big, transmission rate is fast, improved data transmission speed, utilize MVB data as redundant data simultaneously, can avoid data loss, guaranteed the integrality and the accuracy of data.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the system disclosed by the embodiment, the description is relatively simple because the system corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A data processing method, comprising:
acquiring Ethernet data and MVB data for representing the operating state of a working system of each connection network of a train;
judging whether the Ethernet communication state is normal or not by utilizing the Ethernet data;
if the Ethernet communication state is normal, determining the Ethernet data as target data;
if the Ethernet communication state is abnormal, judging whether the MVB communication state is normal by using the MVB data;
if the MVB communication state is normal, determining the MVB data as the target data;
and assigning a value to the public array by using the target data so as to control the working system based on the public array.
2. The data processing method according to claim 1, wherein the acquiring ethernet data and MVB data for characterizing the operating state of the operating system of each connection network of the train comprises:
and acquiring Ethernet data and MVB data for representing the operating state of the operating system of each connection network of the train according to a preset working period.
3. The data processing method of claim 1, wherein the MVB data is 32 bytes of data, wherein the first two bytes are used to characterize the vital sign of the MVB data; the first four bytes of the ethernet data are used to characterize the vital signs of the ethernet data.
4. The data processing method according to claim 1, wherein the determining whether the ethernet communication status is normal by using the ethernet data comprises:
determining a first life signal corresponding to Ethernet data in the current working period;
acquiring a second vital signal corresponding to the Ethernet data in the previous working cycle;
determining whether the first vital signal is greater than the second vital signal;
if yes, judging that the Ethernet communication state is normal;
if not, acquiring historical Ethernet vital signals corresponding to the Ethernet data in the historical working period;
judging whether the historical Ethernet vital signals are not changed in a first preset number of historical working cycles or not;
if yes, judging that the Ethernet communication state is abnormal.
5. The data processing method of claim 1, wherein the determining whether the MVB communication status is normal by using the MVB data comprises:
determining a third life signal in the MVB data of the current work period;
acquiring a fourth vital signal in MVB data of the previous work period;
judging whether the third vital signal and the fourth vital signal are consistent;
if not, judging that the MVB communication state is normal;
if yes, acquiring a historical MVB vital signal corresponding to the MVB data in the historical work period;
judging whether the historical MVB vital signals are not changed in a second preset number of historical working cycles or not;
if yes, judging that the MVB communication state is abnormal.
6. The data processing method according to any one of claims 1 to 5, wherein after determining whether the MVB communication status is normal by using the MVB data, the method further comprises:
and if the MVB communication state is abnormal, clearing the public array.
7. The data processing method according to any one of claims 1 to 5, wherein after assigning the common array with the target data, further comprising:
and displaying the data in the public array by using a preset visual element.
8. A data processing apparatus, comprising:
the data acquisition module is used for acquiring Ethernet data and MVB data for representing the operating state of a working system of each connection network of the train;
the first judging module is used for judging whether the Ethernet communication state is normal by utilizing the Ethernet data;
a first determining module, configured to determine the ethernet data as target data if the ethernet communication state is normal;
the second judgment module is used for judging whether the MVB communication state is normal or not by utilizing the MVB data if the Ethernet communication state is abnormal;
a second determining module, configured to determine, if the MVB communication state is normal, the MVB data as the target data;
and the array assignment module is used for assigning the public array by using the target data so as to control the working system based on the public array.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the data processing method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the data processing method according to any one of claims 1 to 7.
CN201910911969.7A 2019-09-25 2019-09-25 Data processing method and device, electronic equipment and storage medium Active CN110719213B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910911969.7A CN110719213B (en) 2019-09-25 2019-09-25 Data processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910911969.7A CN110719213B (en) 2019-09-25 2019-09-25 Data processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110719213A true CN110719213A (en) 2020-01-21
CN110719213B CN110719213B (en) 2021-08-06

Family

ID=69210873

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910911969.7A Active CN110719213B (en) 2019-09-25 2019-09-25 Data processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110719213B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112214365A (en) * 2020-09-22 2021-01-12 珠海格力电器股份有限公司 Data debugging method and device for electric vehicle

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105591774A (en) * 2014-10-23 2016-05-18 中车大连电力牵引研发中心有限公司 Data processing method, TCN (Train Communication Network) standby gateway device and data processing system
US20160355198A1 (en) * 2008-08-04 2016-12-08 General Electric Company Vehicle communication systems and control systems
CN106240601A (en) * 2016-08-26 2016-12-21 中车唐山机车车辆有限公司 Train network system
CN106375072A (en) * 2016-08-29 2017-02-01 中车大连机车车辆有限公司 Redundancy control method for locomotive communication network
CN206374759U (en) * 2016-12-19 2017-08-04 比亚迪股份有限公司 The redundancy control system and train of train central control unit
CN109889383A (en) * 2019-02-22 2019-06-14 中车青岛四方机车车辆股份有限公司 A kind of train network control system, method and apparatus and train

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160355198A1 (en) * 2008-08-04 2016-12-08 General Electric Company Vehicle communication systems and control systems
CN105591774A (en) * 2014-10-23 2016-05-18 中车大连电力牵引研发中心有限公司 Data processing method, TCN (Train Communication Network) standby gateway device and data processing system
CN106240601A (en) * 2016-08-26 2016-12-21 中车唐山机车车辆有限公司 Train network system
CN106375072A (en) * 2016-08-29 2017-02-01 中车大连机车车辆有限公司 Redundancy control method for locomotive communication network
CN206374759U (en) * 2016-12-19 2017-08-04 比亚迪股份有限公司 The redundancy control system and train of train central control unit
CN109889383A (en) * 2019-02-22 2019-06-14 中车青岛四方机车车辆股份有限公司 A kind of train network control system, method and apparatus and train

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112214365A (en) * 2020-09-22 2021-01-12 珠海格力电器股份有限公司 Data debugging method and device for electric vehicle

Also Published As

Publication number Publication date
CN110719213B (en) 2021-08-06

Similar Documents

Publication Publication Date Title
CN105808407B (en) Method, equipment and the equipment management controller of management equipment
CN110535978B (en) Data transmission method, device and system, intelligent wearable device and storage medium
CN106874237A (en) Method of data synchronization and system based on two lines bus
CN109254839B (en) Method for determining task trigger time, method and system for constructing task timer
CN109639489A (en) A kind of RabbitMQ clustered deploy(ment) method, system, equipment and medium
CN110969198A (en) Distributed training method, device, equipment and storage medium for deep learning model
CN110891087B (en) Log transmission method and device, electronic equipment and storage medium
WO2015124030A1 (en) Wireless energy transmission method and device
CN102970104A (en) Method for acquiring data and server
CN109582521B (en) Method, device, equipment and medium for testing read-write performance of storage system
CN110719213B (en) Data processing method and device, electronic equipment and storage medium
CN110460653A (en) The method and device of automatic driving vehicle data transmission
CN104320285A (en) Website running status monitoring method and device
CN106126362A (en) A kind of optical module I2C bus unrest sequential diagnosis method and device
CN105739694B (en) A kind of method, terminal and the Wearable of Wearable interaction
CN108388108A (en) The method and device of synchrodata in a kind of multiple redundancy control system
CN107168846A (en) The monitoring method and device of electronic equipment
CN109270885B (en) Data communication method, device and equipment for monitoring PLC system and storage medium
CN113110970B (en) Method, device, equipment and medium for monitoring all parts in server working mode
CN109379211B (en) Network monitoring method and device, server and storage medium
US10848400B2 (en) Network entity for monitoring a plurality of processes of a communication system
CN111860560A (en) Model parameter adjusting method and device, electronic equipment and readable storage medium
CN111884921A (en) Communication method, system, equipment and computer readable storage medium
CN106302031B (en) System for monitoring state of communication line in real time
CN111367852B (en) Operation method, device, equipment and storage medium of equipment

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
GR01 Patent grant
GR01 Patent grant