CN102981827B - A kind of display interface data processing method based on middleware and platform - Google Patents

A kind of display interface data processing method based on middleware and platform Download PDF

Info

Publication number
CN102981827B
CN102981827B CN201210430493.3A CN201210430493A CN102981827B CN 102981827 B CN102981827 B CN 102981827B CN 201210430493 A CN201210430493 A CN 201210430493A CN 102981827 B CN102981827 B CN 102981827B
Authority
CN
China
Prior art keywords
interface
data
data processing
communication
display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210430493.3A
Other languages
Chinese (zh)
Other versions
CN102981827A (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.)
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 CN201210430493.3A priority Critical patent/CN102981827B/en
Publication of CN102981827A publication Critical patent/CN102981827A/en
Application granted granted Critical
Publication of CN102981827B publication Critical patent/CN102981827B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Digital Computer Display Output (AREA)
  • Communication Control (AREA)

Abstract

The invention discloses a kind of display interface data processing method based on middleware and platform, mainly provide a kind of train display interface data processing method of new hardware and software platform, be applicable to the intelligent human-machine interaction interface application system development of various rain model control system.Adopt the bridge of form as train terminal display device and Back end data signal acquiring system of " middleware ", by the interface of the large program module of C++/C language compilation one as train display interface and whistle control system, realize the hardware and software platform of display application systems development process.Display interface data processing method provided by the invention achieves the hardware and software platform of display application systems development process, has stronger portability, greatly reduces workload, improves the application and development efficiency of train display.

Description

A kind of display interface data processing method based on middleware and platform
Technical field
The present invention relates to a kind of processing method of communication data, particularly a kind of display interface data processing method based on middleware and platform.
Background technology
Along with the fast development of railway construction, the type of rail vehicle is also increasing, which kind of vehicle all can't do without train intelligent display, driver understands the information of each system and equipment on train by display, display device has become the vitals of train network control system and information system, the status information display of primary responsibility train, as the intelligent human-machine interaction interface of train control system.
At present, the operating system platform that display application software development uses is built-in Linux, and gui tool integrates as FLTK.Linux is the class unix operating system of a set of free use and Free propagation.It both can do desktop system, also may be used in embedded system.Embedded Linux is called for embedded system, refer to Linux after miniaturization cutting, in the memory chip that the capacity that can be solidificated in only has hundreds of thousands byte or a few gigabyte or single-chip microcomputer, be applied to the special (SuSE) Linux OS of specific embedded occasion.GUI is graphical user interface.FLTK is a cross-platform gui tool collection write with c++.May be used for Linux, the operating systems such as Microsoft Windows and MacOS X, it provide the function of a lot of GUI.
The software development of existing train display application is mainly divided into two parts, and one is interface portion, mainly the outward appearance of design interface, and determines to use which type of control to show data; Another is process communication data division, and data are also assigned to control display by this part Treated Base data.Display development is generally the content according to user's request and data stream, determines the detailed content at each interface according to classifying content.The Primary communication mode of current display has MVB, Lonworks, RS485, CAN, and display Software for Design personnel go according to different communication mode the function library calling different communication mode, to realize the data communication with control system when developing.Due to increasing of rain model, the communication mode that different vehicle displays adopts is different, major part communication data is but very similar, the content of display interface is also mostly similar, makes display software design engineering teacher in compiling procedure, all want these similar data displaying contents of repeated encoding at every turn.Existing train display application software development methodology portability is not strong, and development efficiency is not high, and the workload of developer is large.
Summary of the invention
Technical matters to be solved by this invention is, not enough for prior art, a kind of the display interface data processing method based on middleware and the platform that are applicable to various rain model control system are provided, realize the hardware and software platform of display application systems development process, improve display application system portability, reduce workload, improve the application and development efficiency of train display.
For solving the problems of the technologies described above, the technical solution adopted in the present invention is: a kind of display interface data processing method based on middleware, and the method step is as follows:
1) start: system initialization, communication initialization, interface initialization, timer initialization;
2) judge whether the timer performance period arrives, and if so, enters 3); If not, Interruption is waited for;
3) judge whether interface defines, if define, then pre-service has the control property in interface, with variable one_to_one corresponding predefined in program; If interface is also undefined, then define the interface do not related to, then pre-service has the control property in interface, with predefined variable one_to_one corresponding;
4) set up the data structure of the corresponding program of interface control: in units of interface, each interface definition is become the structure variable that corresponding, set up the structure variable with uniform characteristics;
5) set up the corresponding relation of data structure and data buffer storage: by structure variable correspondingly assignment to the control defined in interface;
6) judge whether have logical process between the data stream in data buffer storage and data communication, if having, enter 7); If nothing, enter 8);
7) corresponding relation of data buffer storage and data stream is set up;
8) process the logical relation of data buffer storage and data stream, make data buffer storage and data stream equity;
9) interface control is refreshed;
10) timer is finished, and waits for next cycle, returns 2).
Control property: control is the functional block used in interface programming, and its attribute comprises: display format, color, font, size etc.
Predefined variable: refer to the variable first defined in interface.Comprise the variable used in the interfaces such as BOX, Value output, Slider box, Clock box, Button.
Data structure: according to predefined control, the structure variable with uniform characteristics of foundation.The structure defined in the present invention is unit according to interface, and each interface definition becomes a corresponding structure variable, and interface definition as first in program becomes: Struct MAIN{unsigned char speed; , structure variable and the first interface of other interface definition are similar; The structure variable defined in the present invention comprises: first interface: Struct MAIN{}; Primary data interface: Struct MAINDATA{}; Configuration of locomotives interface: StructLOCOSTATE{}; Maintenance interface: Struct MANTEANCE{}; Send structure: Struct SENDCMD{} etc.
Corresponding relation: the present invention specially refers to the assignment relation between variable.Mainly comprise: structure variable correspondingly assignment to the control defined in interface, the control input value of the transmitting portion defined in interface correspondingly assignment to sending structure variable.
Logical process, logical relation: special secondary school index of the present invention is according to dealing with relationship, and the computing formula of this relation main in the present invention is as follows: the structure variable x correction coefficient of the control=correspondence defined in interface; Structure variable ± the correction coefficient of the control=correspondence defined in interface, communication protocol packet selects the computing formula of the control defined in interface as the case may be.
The invention provides a kind of display interface data processing platform (DPP) based on middleware, comprise communication interface, standard interface, communication protocol packet and interface data interface, also comprise part in the middle of multiple data processing, described communication interface and described communication protocol packet two-way communication, described communication protocol packet and the middle part two-way communication of described data processing, part and the two-way communication of described interface data interface in the middle of described data processing, described standard interface and described interface data interface communication; In the middle of described data processing part comprise communicate successively data streaming file sorting module, data streaming file and data buffer storage relationship module, data buffer storage and data relation module, data structure and interface control relationship module, interface information processing module.
Principal feature of the present invention is solved by the thought of hardware and software platform the bulk redundancy work of developing now, mainly provide a kind of train display interface data processing method of new hardware and software platform, be applicable to the intelligent human-machine interaction interface application system development of various rain model control system.Adopt the bridge of form as train terminal display device and Back end data signal acquiring system of " middleware ", by the interface of the large program module of C++/C language compilation one as train display interface and whistle control system, realize the hardware and software platform of display application systems development process.
Compared with prior art, the beneficial effect that the present invention has is: the present invention is in train display application software development process, adopt the bridge of form as train terminal display device and Back end data signal acquiring system of " middleware ", the essential information state encapsulation of each for train equipment is got up and directly calls; Display interface data processing method provided by the invention achieves the hardware and software platform of display application systems development process, has stronger portability, greatly reduces workload, improves the application and development efficiency of train display.
Accompanying drawing explanation
Fig. 1 is one embodiment of the invention process flow diagram;
Fig. 2 is one embodiment of the invention Middleware Model schematic diagram;
Fig. 3 is the display interface data processing platform (DPP) structured flowchart based on middleware of the present invention.
Embodiment
As shown in Figure 1, method step of the present invention is as follows:
1) start: system initialization, communication initialization, interface initialization, timer initialization;
2) judge whether the timer performance period arrives, and if so, enters 3); If not, Interruption is waited for;
3) judge whether interface defines, if define, then pre-service has the control property in interface, with variable one_to_one corresponding predefined in program; If interface is also undefined, then define the interface do not related to, then pre-service has the control property in interface, with predefined variable one_to_one corresponding;
4) set up the data structure of the corresponding program of interface control: in units of interface, each interface definition is become the structure variable that corresponding, set up the structure variable with uniform characteristics;
5) set up the corresponding relation of data structure and data buffer storage: by structure variable correspondingly assignment to the control defined in interface;
6) judge whether have logical process between the data stream in data buffer storage and data communication, if having, enter 7); If nothing, enter 8);
7) corresponding relation of data buffer storage and data stream is set up;
8) process the logical relation of data buffer storage and data stream, make data buffer storage and data stream equity;
9) interface control is refreshed;
10) timer is finished, and waits for next cycle, returns 2).
By train display development process platform.As shown in Figure 1, fundamental purpose of the present invention is by the interface data interface of train display, part and communication protocol packet three parts encapsulate in the middle of data processing, and after encapsulation, display application Software for Design personnel only need do the exploitation of interface modification among a small circle and part of data acquisition according to user's request.
As shown in Figure 3, based on the display interface data processing platform (DPP) of middleware, comprise communication interface, standard interface, communication protocol packet and interface data interface, also comprise part in the middle of multiple data processing, described communication interface and described communication protocol packet two-way communication, described communication protocol packet and the middle part two-way communication of described data processing, part and the two-way communication of described interface data interface in the middle of described data processing, described standard interface and described interface data interface communication; In the middle of described data processing part comprise communicate successively data streaming file sorting module, data streaming file and data buffer storage relationship module, data buffer storage and data relation module, data structure and interface control relationship module, interface information processing module.
What be in the bottom is communication interface between train control system and display, and communication interface and communication protocol parlor bi-directional data, generally realize intercommunication by port.Communication protocol packet comprises the protocol package of MVB, Lonworks, RS485 and CAN tetra-kinds of communication modes usually, and the difference according to communication mode calls different communication protocol bag function, with the communication realized and between control system.
The focus of work of whole invention be in data handling between on part (as shown in Figure 2), using middleware as the interface of interface display and vehicle network communication data, interface display and concrete network communication protocol are had nothing to do.The status information that each equipment of car load exists is contained in part in the middle of data processing, the data message source of communication protocol packet also comes from part in the middle of data processing substantially, user only need obtain data message by simple function call, or data message is fed back to middleware.Similarly, in the middle of data processing, part also and between interface data interface can carry out two-way exchange, also realizes this function by intrinsic function.Middleware mainly encapsulates with class and structure, and with category information or contact data more closely, be packaged into a class/structure, so the information of a vehicle just can encapsulate with multiple middleware.The increase of later stage information of vehicles can complete supplementary by inheriting the class/structure first had.The increase (as heavily joined) of number of vehicles can be realized by definition middleware array.Interface data is directed to middleware, so no matter which kind of vehicle, how agreement changes, and interface program and middleware all need not change, and network data directly passes to middleware, thus completes the assignment to middleware.
The superiors of software are the interfaces with user, i.e. standard interface, and it and interface data interface direct are connected and believed.Standard interface mainly refers to that display application Software for Design personnel determine the displaying contents at interface on stream according to the demand of user, and contents displayed on interface can arrive in interface data interface and call.
The interface mentioned in the present invention adopts the graphical development tool definition of the interface programming instrument FLUID+FLTK under Linux, and the control used in interface provides by FLUID instrument.

Claims (6)

1. based on a display interface data processing method for middleware, it is characterized in that, the method step is as follows:
1) start: system initialization, communication initialization, interface initialization, timer initialization;
2) judge whether the timer performance period arrives, and if so, enters 3); If not, the waiting timer performance period;
3) judge whether interface defines, if define, then pre-service has the control property in interface, with variable one_to_one corresponding predefined in program; If interface is also undefined, then define the interface do not related to, then pre-service has the control property in interface, with predefined variable one_to_one corresponding;
4) set up the data structure of the corresponding program of interface control: in units of interface, each interface definition is become the structure variable that corresponding, set up the structure variable with uniform characteristics;
5) set up the corresponding relation of data structure and data buffer storage: by structure variable correspondingly assignment to the control defined in interface;
6) judge whether have logical process between the data stream in data buffer storage and data communication, if having, enter 7); If nothing, enter 8);
7) corresponding relation of data buffer storage and data stream is set up;
8) process the logical relation of data buffer storage and data stream, make data buffer storage and data stream equity;
9) interface control is refreshed;
10) timer is finished, and waits for next cycle, returns 2).
2. the display interface data processing method based on middleware according to claim 1, is characterized in that, in described step 3), control property comprises display format, color, font and size.
3. the display interface data processing method based on middleware according to claim 1, is characterized in that, in described step 4), the structure variable of definition is: first interface: Struct MAIN{}; Primary data interface: Struct MAINDATA{}; Configuration of locomotives interface: Struct LOCOSTATE{}; Maintenance interface: Struct MANTEANCE{}; Send structure: Struct SENDCMD{}.
4. the display interface data processing platform (DPP) based on middleware, comprise communication interface, standard interface, communication protocol packet and interface data interface, it is characterized in that, also comprise part in the middle of multiple data processing, described communication interface and described communication protocol packet two-way communication, described communication protocol packet and the middle part two-way communication of described data processing, part and the two-way communication of described interface data interface in the middle of described data processing, described standard interface and described interface data interface communication; In the middle of described data processing part comprise communicate successively data streaming file sorting module, data streaming file and data buffer storage relationship module, data buffer storage and data relation module, data structure and interface control relationship module, interface information processing module; Described data structure refers in units of interface, each interface definition is become the structure variable that corresponding, sets up the structure variable with uniform characteristics; In the middle of described data processing, part comprises each status information of equipment existence of car load, the data message source of communication protocol packet.
5. the display interface data processing platform (DPP) based on middleware according to claim 4, it is characterized in that, described communication protocol packet comprises the protocol package of MVB, Lonworks, RS485 and CAN communication mode.
6. the display interface data processing platform (DPP) based on middleware according to claim 4, is characterized in that, described communication interface and described communication protocol packet pass through port communication.
CN201210430493.3A 2012-11-01 2012-11-01 A kind of display interface data processing method based on middleware and platform Active CN102981827B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210430493.3A CN102981827B (en) 2012-11-01 2012-11-01 A kind of display interface data processing method based on middleware and platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210430493.3A CN102981827B (en) 2012-11-01 2012-11-01 A kind of display interface data processing method based on middleware and platform

Publications (2)

Publication Number Publication Date
CN102981827A CN102981827A (en) 2013-03-20
CN102981827B true CN102981827B (en) 2015-10-21

Family

ID=47855892

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210430493.3A Active CN102981827B (en) 2012-11-01 2012-11-01 A kind of display interface data processing method based on middleware and platform

Country Status (1)

Country Link
CN (1) CN102981827B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6011452B2 (en) * 2013-05-14 2016-10-19 株式会社デンソー Display control apparatus and program
JP6171549B2 (en) * 2013-05-14 2017-08-02 株式会社デンソー Display control apparatus and program
CN104423930B (en) * 2013-08-19 2017-12-26 联想(北京)有限公司 The method and apparatus of information processing
CN104144169B (en) * 2014-08-20 2017-09-22 株洲南车时代电气股份有限公司 The methods of exhibiting and device of a kind of train control system
CN110727461A (en) * 2019-10-12 2020-01-24 深圳市芯智科技有限公司 Method for transplanting real-time operating system for display
CN112233277B (en) * 2020-10-23 2023-01-20 中车株洲电力机车有限公司 Rail transit vehicle data display method and system and rail transit vehicle
CN114047848B (en) * 2021-10-29 2023-10-13 中车株洲电力机车有限公司 Rail transit vehicle data display method and device and rail transit vehicle

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5596703A (en) * 1993-10-22 1997-01-21 Lucent Technologies Inc. Graphical display of relationships
CN101840349A (en) * 2010-04-02 2010-09-22 深圳市汉音科技有限公司 Application information processing method, middleware and system
CN102508925A (en) * 2011-11-25 2012-06-20 上海锅炉厂有限公司 Method for implement of utility boiler operational performance analyzing system

Also Published As

Publication number Publication date
CN102981827A (en) 2013-03-20

Similar Documents

Publication Publication Date Title
CN102981827B (en) A kind of display interface data processing method based on middleware and platform
CN106612141B (en) A kind of fiber channel protocol common simulation test card and its data interactive method
CN103944895A (en) Data fusing device of heterogeneous sensor network
US9684583B2 (en) Trace data export to remote memory using memory mapped write transactions
CN203812236U (en) Data exchange system based on processor and field programmable gate array
CN101364346A (en) Embedded real-time intelligent traffic monitoring system based on video stream
CN103530211A (en) PCIE loop back self-test method based on UVM platform
CN103984240A (en) Distributed real-time simulation method based on reflective memory network
WO2022126930A1 (en) Drive system and method for embedded device
CN104699654A (en) Interconnection adapting system and method based on CHI on-chip interaction bus and QPI inter-chip interaction bus
CN105281433A (en) Distribution terminal communication system
CN103592549A (en) Intelligent power system fault recorder
CN102253916B (en) Double-end double-channel first in first out (FIFO) for synchronous-to-asynchronous conversion
CN103378994A (en) Method and terminal for testing communication equipment
CN112671936B (en) Special transmission module adapting method and device for different domestic systems
CN117278890B (en) Optical module access method, device and system, electronic equipment and readable storage medium
CN101763324A (en) Method for realizing equipment simulating and device thereof
CN106896956B (en) The implementation method of multi-point touch under one kind " road " system
CN103984663A (en) Diverse satellite-borne electronic equipment in parallel system
CN113341853B (en) IP core, FPGA chip, alternating current servo driver and communication method
CN110442338A (en) A kind of emulation mode of Structural analysis and design language AADL model
CN113312394B (en) Method and device for constructing data acquisition system
CN103106174A (en) Complex system on-chip (SOC) communication method
Guo et al. A SPI interface module verification method based on UVM
CN107423249A (en) It is a kind of based on AHB lite bus protocols from end bus control unit design method

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
CP03 Change of name, title or address
CP03 Change of name, title or address

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

Patentee before: ZHUZH CSR TIMES ELECTRIC Co.,Ltd.