CN102981827A - Display interface data treatment method and platform based on middle piece - Google Patents

Display interface data treatment method and platform based on middle piece Download PDF

Info

Publication number
CN102981827A
CN102981827A CN2012104304933A CN201210430493A CN102981827A CN 102981827 A CN102981827 A CN 102981827A CN 2012104304933 A CN2012104304933 A CN 2012104304933A CN 201210430493 A CN201210430493 A CN 201210430493A CN 102981827 A CN102981827 A CN 102981827A
Authority
CN
China
Prior art keywords
interface
data
communication
display
middleware
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
CN2012104304933A
Other languages
Chinese (zh)
Other versions
CN102981827B (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

Images

Landscapes

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

Abstract

The invention discloses a display interface data treatment method and a platform based on a middle piece, mainly provides a novel platformization train display interface data treatment method and is suitable for developing of intelligent man-machine interaction interface application systems of control systems of varied train models. A middle piece is used as a bridge between train terminal display equipment and a rear end data signal collection system. A C++ or C language is used to program a large program module which serves as a port between a train display interface and the signal control system so as to achieve platformization in developing display application systems. The display interface data treatment method achieves platformization in developing the display application systems, reduces a working load and improves efficiency of applying and developing a train display and is strong in transportability.

Description

A kind of display interface data processing method and platform based on middleware
Technical field
The present invention relates to a kind of processing method of communication data, particularly a kind of display interface data processing method and platform based on middleware.
Background technology
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 turns into the important component of train network control system and information system, the status information of main responsible train is shown, is used as the intelligent human-machine interaction interface of train control system.
At present, the operating system platform that display application software development is used is built-in Linux, and gui tool integrates as FLTK.Linux is a set of free class unix operating systems using with Free propagation.It can both do desktop system, can be used in embedded system.It is referred to as embedded Linux for embedded system, refer to Linux after miniaturization is cut, it can be solidificated in memory chip or single-chip microcomputer that capacity only has hundreds of thousands byte or a few gigabytes, the special (SuSE) Linux OS applied to specific embedded occasion.GUI is graphical user interface.FLTK is a cross-platform gui tool collection write with c++.It can be used for Linux, the operating system such as Microsoft Windows and MacOS X, it provides many GUI function.
Existing train display application software development is broadly divided into two parts, and one is interface portion, mainly the outward appearance of design interface, and determines which type of control to carry out display data using;Another is processing communication data division, and data are simultaneously assigned to control and shown by this part Treated Base data.Display development is usually, according to user's request and the content of data flow, the detailed content at each interface to be determined according to classifying content.The Primary communication mode of current display has MVB, Lonworks, RS485, CAN, and display software designer goes to call the function library of different communication mode in exploitation according to different communication mode, to realize the data communication with control system.Due to increasing for rain model, the communication mode that different vehicle displays is used is different, most of communication data is much like, and the content of display interface is also mostly similar so that display software design engineering teacher every time will repeated encoding these similar data display contents in compiling procedure.Existing train display application software development methodology is not portable strong, and development efficiency is not high, and the workload of developer is big.
The content of the invention
The technical problems to be solved by the invention are, it is not enough for prior art, a kind of display interface data processing method and platform based on middleware suitable for various rain model control systems are provided, realize the hardware and software platform of display application systems development process, improve display application system portability, workload is reduced, the application and development efficiency of train display is improved.
In order to solve the above technical problems, the technical solution adopted in the present invention is:A kind of display interface data processing method based on middleware, this method step is as follows:
1)Start:System initialization, communication initialization, interface initialization, timer initialization;
2)Judge that timer performs whether the cycle reaches, if so, into 3);If it is not, waiting Interruption;
3)Judge whether interface is defined, if defined, the control property in the existing interface of pretreatment is corresponded with predefined variable in program;If interface is also undefined, the interface being not directed to is defined, the control property in existing interface is then pre-processed, is corresponded with predefined variable;
4)Set up the data structure of interface control correspondence program:In units of interface, by each interface definition into a corresponding structure variable, the structure variable with uniform characteristics is set up;
5)Set up the corresponding relation of data structure and data buffer storage:Structure variable is assigned to the control defined in interface correspondingly;
6)Judge whether there is logical process between the data flow in data buffer storage and data communication, if so, into 7);If nothing, into 8);
7)Set up data buffer storage and the corresponding relation of data flow;
8)Processing data caches the logical relation with data flow, makes data buffer storage and data flow equity;
9)Refresh interface control;
10)Timer is finished, and waits next cycle, returns to 2).
Control property:Control is the functional block used in interface programming, and its attribute includes:Display format, color, font, size etc..
Predefined variable:Refer to variable good first defined in interface.Including 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.Structure defined in the present invention is unit according to interface, each interface definition into a corresponding structure variable, the first interface definition of such as program into:Struct MAIN{unsigned char speed;..., the structure variable of other interface definitions is similar with first interface;Structure variable defined in the present invention includes:First interface:Struct MAIN{};Primary data interface:Struct MAINDATA{};Configuration of locomotives interface:Struct LOCOSTATE{};Maintenance interface:Struct MANTEANCE{};Send structure:Struct SENDCMD { } etc..
Corresponding relation:The present invention refers exclusively to the assignment relation between variable.Mainly include:Structure variable is assigned to control defined in interface correspondingly, the control input value of the transmitting portion defined in interface is assigned to correspondingly transmission structure variable.
Logical process, logical relation:Special secondary school of the present invention refers to data and dealt with relationship, and the computing formula of this relation in the present invention mainly is as follows:Control=corresponding structure variable x correction coefficient defined in interface;Control=corresponding structure variable ± correction coefficient defined in interface, the computing formula of the control of communication protocol packet as the case may be defined in selection interface.
The invention provides a kind of display interface data processing platform (DPP) based on middleware, including communication interface, standard interface, communication protocol packet and interface data interface, also include part in the middle of multiple data processings, the communication interface and the communication protocol packet two-way communication, part two-way communication in the middle of the communication protocol packet and the data processing, part and the interface data interface two-way communication in the middle of the data processing, the standard interface and the interface data interface communication;Part includes 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, the interface information processing module communicated successively in the middle of the data processing.
The present invention be mainly characterized by by the bulk redundancy developed now work solved by the thought of hardware and software platform, mainly provide a kind of train display interface data processing method of new hardware and software platform, it is adaptable to the intelligent human-machine interaction interface application system development of various rain model control systems.Train terminal display device and the bridge of Back end data signal acquiring system are used as using the form of " middleware ", one big program module is write as train display interface and the interface of whistle control system by C++/C language, the hardware and software platform of display application systems development process is realized.
Compared with prior art, the advantageous effect of present invention is that:The present invention, using the form of " middleware " as train terminal display device and the bridge of Back end data signal acquiring system, the essential information state encapsulation of each equipment of train is got up to directly invoke in train display application software development process;The display interface data processing method that the present invention is provided realizes 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.
Brief description of the drawings
Fig. 1 is one embodiment of the invention flow chart;
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 invention.
Embodiment
As shown in figure 1, method of the present invention step is as follows:
1)Start:System initialization, communication initialization, interface initialization, timer initialization;
2)Judge that timer performs whether the cycle reaches, if so, into 3);If it is not, waiting Interruption;
3)Judge whether interface is defined, if defined, the control property in the existing interface of pretreatment is corresponded with predefined variable in program;If interface is also undefined, the interface being not directed to is defined, the control property in existing interface is then pre-processed, is corresponded with predefined variable;
4)Set up the data structure of interface control correspondence program:In units of interface, by each interface definition into a corresponding structure variable, the structure variable with uniform characteristics is set up;
5)Set up the corresponding relation of data structure and data buffer storage:Structure variable is assigned to the control defined in interface correspondingly;
6)Judge whether there is logical process between the data flow in data buffer storage and data communication, if so, into 7);If nothing, into 8);
7)Set up data buffer storage and the corresponding relation of data flow;
8)Processing data caches the logical relation with data flow, makes data buffer storage and data flow equity;
9)Refresh interface control;
10)Timer is finished, and waits next cycle, returns to 2).
By train display development process platform.As shown in Figure 1, the main object of the present invention is to be packaged three parts of part and communication protocol packet in the middle of the interface data interface of train display, data processing, and display application software designer need to only do the interface modification of small range and the exploitation of part of data acquisition according to user's request after encapsulation.
As shown in Figure 3, display interface data processing platform (DPP) based on middleware, including communication interface, standard interface, communication protocol packet and interface data interface, also include part in the middle of multiple data processings, the communication interface and the communication protocol packet two-way communication, part and the interface data interface two-way communication in the middle of part two-way communication in the middle of the communication protocol packet and the data processing, the data processing, the standard interface and the interface data interface communication;Part includes 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, the interface information processing module communicated successively in the middle of the data processing.
What it is in the bottom is the communication interface between train control system and display, communication interface and communication protocol parlor bi-directional data, typically realizes intercommunication by port.Communication protocol packet generally comprises the protocol package of tetra- kinds of communication modes of MVB, Lonworks, RS485 and CAN, and the difference according to communication mode calls different communication protocol bag function, with the communication between realization and control system.
The focus of work entirely invented be in data handling between part(As shown in Figure 2)On, using middleware as interface display with the interface of vehicle network communication data so that interface display is unrelated with specific network communication protocol.The status information that each equipment of vehicle is present is contained in the middle of data processing in part, the data message source of communication protocol packet is also substantially from part in the middle of data processing, user only need to obtain data message by simple function call, or data message is fed back into middleware.Similarly, part can also carry out two-way exchange between interface data interface in the middle of data processing, and this function is realized also by intrinsic function.Middleware is mainly packaged with class and structure, with category information or contacts more close data, is packaged into a class/structure, then the information of a vehicle just can be packaged with multiple middlewares.The increase of later stage information of vehicles can complete to supplement by inheriting the class first having/structure.The increase of number of vehicles(Such as join again)It can be realized by defining middleware array.Interface data is directed to middleware, thus no matter which kind of vehicle, how agreement to change, and interface program is with middleware without change, and network data is directly transmitted to middleware, so as to complete the assignment to middleware.
The superiors of software are the interface with user, i.e. standard interface, it and interface data interface direct communication.Standard interface is primarily referred to as the display content that display application software designer determines interface according to the demand of user on stream, and contents displayed on interface can be arrived to be called in interface data interface.
The interface referred in the present invention uses the control used in the graphical development tool definition of the interface programming instrument FLUID+FLTK under Linux, interface to be provided by FLUID instruments.

Claims (6)

1. a kind of display interface data processing method based on middleware, it is characterised in that this method step is as follows:
1)Start:System initialization, communication initialization, interface initialization, timer initialization;
2)Judge that timer performs whether the cycle reaches, if so, into 3);If it is not, waiting timer performs the cycle;
3)Judge whether interface is defined, if defined, the control property in the existing interface of pretreatment is corresponded with predefined variable in program;If interface is also undefined, the interface being not directed to is defined, the control property in existing interface is then pre-processed, is corresponded with predefined variable;
4)Set up the data structure of interface control correspondence program:In units of interface, by each interface definition into a corresponding structure variable, the structure variable with uniform characteristics is set up;
5)Set up the corresponding relation of data structure and data buffer storage:Structure variable is assigned to the control defined in interface correspondingly;
6)Judge whether there is logical process between the data flow in data buffer storage and data communication, if so, into 7);If nothing, into 8);
7)Set up data buffer storage and the corresponding relation of data flow;
8)Processing data caches the logical relation with data flow, makes data buffer storage and data flow equity;
9)Refresh interface control;
10)Timer is finished, and waits next cycle, returns to 2).
2. the display interface data processing method according to claim 1 based on middleware, it is characterised in that the step 3)In, control property includes display format, color, font and size.
3. the display interface data processing method according to claim 1 based on middleware, it is characterised in that the step 4)In, 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. a kind of display interface data processing platform (DPP) based on middleware, including communication interface, standard interface, communication protocol packet and interface data interface, it is characterized in that, also include part in the middle of multiple data processings, the communication interface and the communication protocol packet two-way communication, part and the interface data interface two-way communication in the middle of part two-way communication in the middle of the communication protocol packet and the data processing, the data processing, the standard interface and the interface data interface communication;Part includes 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, the interface information processing module communicated successively in the middle of the data processing;The data structure refers in units of interface, by each interface definition into a corresponding structure variable, sets up the structure variable with uniform characteristics.
5. the display interface data processing platform (DPP) according to claim 4 based on middleware, it is characterised in that the communication protocol packet includes the protocol package of MVB, Lonworks, RS485 and CAN communication mode.
6. the display interface data processing platform (DPP) according to claim 4 based on middleware, it is characterised in that the communication interface passes through port communication with the communication protocol packet.
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 true CN102981827A (en) 2013-03-20
CN102981827B 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)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104144169A (en) * 2014-08-20 2014-11-12 株洲南车时代电气股份有限公司 Display method and device of train control system
CN104423930A (en) * 2013-08-19 2015-03-18 联想(北京)有限公司 Information processing method and device
CN105210034A (en) * 2013-05-14 2015-12-30 株式会社电装 Display control device, display control method, and program
CN105229607A (en) * 2013-05-14 2016-01-06 株式会社电装 Display control unit and display control method and program
CN110727461A (en) * 2019-10-12 2020-01-24 深圳市芯智科技有限公司 Method for transplanting real-time operating system for display
CN112233277A (en) * 2020-10-23 2021-01-15 中车株洲电力机车有限公司 Rail transit vehicle data display method and system and rail transit vehicle
CN114047848A (en) * 2021-10-29 2022-02-15 中车株洲电力机车有限公司 Rail transit vehicle data display method and device and rail transit vehicle

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0652665A2 (en) * 1993-10-22 1995-05-10 AT&T Corp. Graphical display of network data
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0652665A2 (en) * 1993-10-22 1995-05-10 AT&T Corp. Graphical display of network data
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

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
孙晓昆 等: "基于MCGSE的机车智能显示单元软件设计开发", 《内燃机车》, no. 7, 31 July 2006 (2006-07-31) *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105210034A (en) * 2013-05-14 2015-12-30 株式会社电装 Display control device, display control method, and program
CN105229607A (en) * 2013-05-14 2016-01-06 株式会社电装 Display control unit and display control method and program
CN105229607B (en) * 2013-05-14 2019-01-25 株式会社电装 Display control unit and display control method
CN105210034B (en) * 2013-05-14 2019-05-31 株式会社电装 Display control unit and display control method
CN104423930A (en) * 2013-08-19 2015-03-18 联想(北京)有限公司 Information processing method and device
CN104423930B (en) * 2013-08-19 2017-12-26 联想(北京)有限公司 The method and apparatus of information processing
CN104144169A (en) * 2014-08-20 2014-11-12 株洲南车时代电气股份有限公司 Display method and device of train control system
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
CN112233277A (en) * 2020-10-23 2021-01-15 中车株洲电力机车有限公司 Rail transit vehicle data display method and system and rail transit vehicle
CN114047848A (en) * 2021-10-29 2022-02-15 中车株洲电力机车有限公司 Rail transit vehicle data display method and device and rail transit vehicle
CN114047848B (en) * 2021-10-29 2023-10-13 中车株洲电力机车有限公司 Rail transit vehicle data display method and device and rail transit vehicle

Also Published As

Publication number Publication date
CN102981827B (en) 2015-10-21

Similar Documents

Publication Publication Date Title
CN102981827A (en) Display interface data treatment method and platform based on middle piece
US9684583B2 (en) Trace data export to remote memory using memory mapped write transactions
CN105824729B (en) A kind of virtual verification platform having versatility and implementation method
CN107911391A (en) A kind of AXI protocol based on FPGA and the method for SPI protocol conversion
CN105808396A (en) Chip debugging device, debugging method and SOC (System of Chip) chip system
WO2021259106A1 (en) Method, system, and device for optimizing neural network chip, and storage medium
CN109683882B (en) NB-IOT terminal software development method based on mobile terminal in visual environment
CN110119282A (en) A kind of internet-of-things terminal and system based on general-purpose built-in type computer
CN104850516B (en) A kind of DDR Frequency Conversion Designs method and apparatus
CN114817114B (en) MIPI interface, control method, device and medium thereof
CN103378994A (en) Method and terminal for testing communication equipment
CN105487403A (en) Establishment of motion control system based on CAN and simulation modeling method
CN101763324A (en) Method for realizing equipment simulating and device thereof
Barba et al. A comprehensive integration infrastructure for embedded system design
CN103793263A (en) DMA transaction-level modeling method based on Power PC processor
CN106896956B (en) The implementation method of multi-point touch under one kind " road " system
CN117278890A (en) Optical module access method, device and system, electronic equipment and readable storage medium
CN115134427B (en) Communication protocol coordination method, device, computer equipment and storage medium
CN111176926A (en) IP (Internet protocol) core simulation system and simulation method based on double-port SRAM (static random Access memory)
CN103678244A (en) Intelligent device without application processor
CN113341853B (en) IP core, FPGA chip, alternating current servo driver and communication method
CN115776653A (en) Vehicle-mounted data acquisition method, device, equipment and medium
WO2022111703A1 (en) Method, device and system for acquiring hardware performance data
Guo et al. A SPI interface module verification method based on UVM
CN113609052A (en) Chip simulation system based on FPGA and microprocessor and implementation 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

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.

CP03 Change of name, title or address