CN106027292A - Device used for configuration and testing of FlexRay network - Google Patents
Device used for configuration and testing of FlexRay network Download PDFInfo
- Publication number
- CN106027292A CN106027292A CN201610320474.3A CN201610320474A CN106027292A CN 106027292 A CN106027292 A CN 106027292A CN 201610320474 A CN201610320474 A CN 201610320474A CN 106027292 A CN106027292 A CN 106027292A
- Authority
- CN
- China
- Prior art keywords
- flexray
- submodule
- usb
- module
- spi
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40169—Flexible bus arrangements
- H04L12/40176—Flexible bus arrangements involving redundancy
- H04L12/40182—Flexible bus arrangements involving redundancy by using a plurality of communication lines
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40208—Bus networks characterized by the use of a particular bus standard
- H04L2012/40241—Flexray
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Systems (AREA)
Abstract
The invention relates to a device used for configuration and testing of a FlexRay network and belongs to the communication technical field. The device comprises a power unit, a FlexRay communication device, a programmable logic device, a USB (Universal Serial Bus) communication device, a memory DRAM (Dynamic Random Access Memory) and an upper computer. The device solves the problems that the existing integrated FlexRay testing device only obtains the communication data and is inflexible; through the device, the data testing of a FlexRay bus is realized, the network operation parameters, the operating state and an interval between measurement data frames can be obtained while the on-line configuration of the network parameters can be carried out conveniently, and the device can help an engineer to design the FlexRay network more quickly and optimally.
Description
Technical field
The present invention relates to a kind of configuration for FlexRay network and test device, belong to communication technical field.
Background technology
FlexRay is as automobile-used network of future generation, owing to its high bandwidth, binary-channel redundancy, message send the time really
The advantage such as qualitative, has been obtained for relatively broad application at present, there are some relevant tests dresses on market simultaneously
Putting, the VN7600 of such as Vector company, can connect FlexRay network with one end, the other end is by USB even
Connect host computer, the data on network are uploaded to host computer and are analyzed.
But the test device of these commercializations, owing to it is by supplier integration, can only obtain communication data, it is impossible to
Carry out further network performance analysis, such as cannot obtain network operational parameter, can not obtain in network simultaneously and connect
Whether debit has had correctly received the status information of data, and also cannot solve that FlexRay network data caches in a large number asks
Topic, it is impossible to the interval etc. between measured data frame.
Summary of the invention
The invention aims to solve above-mentioned technical problem, propose a kind of configuration for FlexRay network with
Test device, in order to, in addition to receiving communication data, to analyze network performance further, it is possible to help engineer more
Quickly, FlexRay network is more optimally designed.
A kind of configuration for FlexRay network of the present invention and test device, including hardware and software part, outside
Equipment is to be configured or/and FlexRay network to be tested, and this FlexRay network packet contains two and above FlexRay
Passing node equipments and for connecting the connecting line of these equipment, these FlexRay passing node equipments use FLexRay network
Agreement communicates, and described interfacility link can be single channel, it is also possible to for the form of two-way redundancy;
Described hardware components includes that power-supply device, FlexRay communication equipment, PLD, usb communication set
Standby, DRAM memory and host computer;
Described power-supply device is for powering with test device for whole configuration;
Described FlexRay communication equipment is outside to be configured or/and FlexRay network to be tested and complete for connecting
Become and the data interaction of FlexRay passing node equipments in FlexRay network, contain with FlexRay procotol control
The single-chip microcomputer of device processed, two FlexRay network transceivers, external clock and reset circuit, described single-chip microcomputer with
SPI interface;
Described PLD, is used for and the single chip communication in FlexRay communication equipment, and by parallel
Bus is connected with USB communication device, then through USB communication device and host computer communication, and store from single-chip microcomputer
With the data of host computer, contain the employing CPU of IP core design, intervalometer, DRAM interface and one and more than
SPI interface;
Described host computer is the PC of band USB interface, for receiving the instruction of user's input, being led to by FlexRay
Letter data and operational factor show;
Described DRAM memory is for storing the data in PLD;
Described FlexRay communication equipment is led to the SPI interface in PLD by the SPI interface of single-chip microcomputer
Letter, wherein the SPI interface of programming device is from machine, and the SPI interface of single-chip microcomputer is main frame;
Described USB communication device is for the communication between host computer and PLD;
Described FlexRay communication equipment is by one or two FlexRay network transceivers and FlexRay network
Single channel or two-way interfacility link connect;
In described FlexRay communication equipment, single-chip microcomputer is connected by data wire and two FlexRay network transceivers, uses
In the data in FlexRay network transceivers acquisition FlexRay network or data are received and dispatched through FlexRay network
Device sends to FlexRay network;
In described PLD, intervalometer, DRAM interface and one and above SPI interface are all and CPU
It is connected and is controlled it by CPU and realize respective function;
Described PLD is connected by DRAM interface and DRAM memory.
A kind of configuration for FlexRay network with test device, software section include three partial functions perform modules:
CPU part and epigynous computer section in single chip part, PLD.
Described single chip part function executing module includes that single-chip microcomputer initialization module, FlexRay network monitoring interrupt mould
Block and timer interruption module, wherein single-chip microcomputer initialization module include FlexRay configuration parameter initialization submodule,
At the beginning of first SPI communication initialization submodule, FlexRay initialization submodule, intervalometer initialization submodule, interruption
Beginning beggar's module and the first idle loop submodule, network monitoring interrupt module includes resolving FlexRay network data submodule
Block, a SPI frame encapsulation submodule and a SPI drive submodule, and timer interruption module includes that FlexRay joins
Put parameter query submodule, FlexRay configuration parameter obtain submodule, FlexRay network service stop submodule,
FlexRay network configuration parameters reinitializes submodule and FlexRay network restarts submodule;
The execution flow process of described single-chip microcomputer initialization module is followed successively by: FlexRay configuration parameter initialization submodule,
One SPI communication initialization submodule, intervalometer initialization submodule, interruption initialization submodule, FlexRay are initial
Beggar's module, subsequently into the first idle loop submodule and circulates always at this and performs and wait that network monitoring interrupts mould
Block and the produced interruption of timer interruption module;
Described network monitoring interrupt module uses and interrupts executive mode, when having data to send then in outside FlexRay network
Triggering and interrupt, execution flow process of having no progeny in triggering is: calls parsing FlexRay network data submodule, call first
FlexRay network data is encapsulated as SPI frame, calls a SPI driving by packaged by SPI frame encapsulation submodule
SPI frame sends to PLD through SPI interface;
Described timer interruption module uses interrupts executive mode, when in the timing set in intervalometer to then triggering
Disconnected, execution flow process of having no progeny in triggering is: call the FlexRay configuration parameter inquiry submodule SPI by single-chip microcomputer
Whether interface polls PLD has new FlexRay configuration parameter, without in then stop timing device
Disconnected module, if having, calling FlexRay configuration parameter submodule and obtaining new from PLD
FlexRay configuration parameter, calls FlexRay network service and stops submodule to stop outside FlexRay network service,
Calling FlexRay network configuration parameters and reinitializing submodule is outside FlexRay network configuration parameters, calls
FlexRay network restarts submodule;
In described PLD CPU part function executing module comprise PLD initialization module,
SPI interrupt module and USB interrupt module, wherein to comprise usb communication initial for PLD initialization module
Beggar's module, the second SPI communication initialization submodule and the second idle loop submodule, SPI interrupt module comprises second
SPI frame encapsulation submodule, the parsing of SPI frame and sub module stored and the 2nd SPI drive submodule, USB interrupt module
Comprise the first USB frame encapsulation submodule, the first USB frame parsing and sub module stored and a USB drives submodule
Block;
The flow process that described PLD initialization module performs is followed successively by: intervalometer initialization submodule,
Usb communication initialization submodule and the second SPI communication initialization submodule, subsequently into the second idle loop submodule
And at this, circulation performs and waits to interrupt produced by SPI interrupt module and USB interrupt module always;
Described SPI interrupt module uses the executive mode interrupted, when the SPI interface of PLD receives list
Can interrupt during the data that sheet machine SPI interface sends, SPI interrupt module starts to perform, and execution process is: judge
The type of SPI frame, if the SPI frame with FlexRay network data, then calls SPI frame and resolves and storage
Module, parses network data and stores in DRAM;If carrying promising FlexRay configuration parameter querying command
SPI frame, then call the 2nd SPI frame encapsulation submodule and the FlexRay configuration parameter that store in DRAM encapsulated
For SPI frame, recall the 2nd SPI and drive submodule to be sent to single-chip microcomputer through SPI interface by packaged SPI frame;
Described USB interrupt module uses the mode interrupted to perform, when PLD finds USB communication device
On can interrupt when having data, USB interrupt module starts to perform, and execution process is: call the first USB frame solution
Analysis and sub module stored parse FlexRay configuration parameter and store in DRAM, recall the first USB frame envelope
The network data stored in DRAM is packaged into usb data frame by dress submodule, recalls a USB and drives son
Packaged usb data frame is sent to host computer by module through usb communication module.
Described epigynous computer section function executing module comprises the second USB frame encapsulation submodule, the second USB frame resolves
And sub module stored, the 2nd USB drive submodule, usb data display sub-module, data sub module stored, number
According to display sub-module, digital independent submodule, FlexRay network parameter input submodule and FlexRay network parameter
Generate submodule;
In host computer function executing module, each submodule is performed by after user's initiation of operation host computer, uses multi-thread
The mode of journey performs: when user initiates USB interface access instruction, calls the 2nd USB and drives submodule, now
If USB interface does not return data, terminate this USB interface and access thread, if the data of returning, then call
Second USB frame resolves and the data parsed out and are stored in data base by data parsing by data sub module stored
In, call usb data display sub-module afterwards and data are shown;When user initiates data query instruction,
Call the data that digital independent submodule will inquire about to read from data base, afterwards will by data display sub-module
The data read show;When user initiates to change the instruction of FlexRay network configuration, it will call FlexRay
Network parameter input submodule and user carry out the interactive operation of parameter input, user input FlexRay network ginseng
Number, can call FlexRay network parameter afterwards and generate submodule generation FlexRay network configuration parameters, if now
User selects to send FlexRay network configuration parameters, then recalling the second USB frame encapsulation submodule will
FlexRay network configuration parameters is packaged into USB frame, drives submodule by packaged by the 2nd USB afterwards
USB frame sends to PLD through usb communication module, if now user is non-selected by FlexRay net
Network configuration parameter sends and have selected cancellation operation, then exit this change FlexRay network configuration thread.
Beneficial effect
The present invention solves existing integrated FlexRay test device underaction, can only obtain communication data
Problem, is possible not only to realize the data test of FlexRay bus, and can obtain network operational parameter, run shape
Interval between state and measured data frame, simultaneously can also easily, carry out the configuration of network parameter online,
Can help engineer more rapid, more optimally design FlexRay network.
Accompanying drawing explanation
Fig. 1 is the connection block diagram of this device in the embodiment of the present invention;
Fig. 2 is that in the embodiment of the present invention, function of the MCU performs flow chart;
Fig. 3 is that in the embodiment of the present invention, in PLD, cpu function performs flow chart;
Fig. 4 is host computer function executing flow chart in the embodiment of the present invention.
Detailed description of the invention
The present invention will be further described with embodiment below in conjunction with the accompanying drawings.
Embodiment
A kind of configuration for FlexRay network and test device, as it is shown in figure 1, include power-supply device, FlexRay
Communication equipment, PLD, USB communication device, DRAM memory and host computer, external equipment is
To be configured or/and FlexRay network to be tested, this FlexRay network packet contains two and above FlexRay node
Equipment and for connecting the connecting line of these equipment, these FlexRay passing node equipments use FLexRay procotol
Communicating, described interfacility link can be single channel, it is also possible to for the form of two-way redundancy;
Described power-supply device is for powering with test device for whole configuration;
Described FlexRay communication equipment is outside to be configured or/and FlexRay network to be tested and complete for connecting
Become and the data interaction of FlexRay passing node equipments in FlexRay network, contain with FlexRay procotol control
The single-chip microcomputer of device processed, two FlexRay network transceivers, external clock and reset circuit, described single-chip microcomputer with
SPI interface;
Described PLD, is used for and the single chip communication in FlexRay communication equipment, and by parallel
Bus is connected with USB communication device, then through USB communication device and host computer communication, and store from single-chip microcomputer
With the data of host computer, contain the employing CPU of IP core design, intervalometer, DRAM interface and one and more than
SPI interface;
Described host computer is the PC of band USB interface, mutual, including receiving designer for designer
The network configuration of member instructs, FlexRay communication data and operational factor is shown to designer;
Described DRAM memory is for storing the data in PLD;
Described FlexRay communication equipment is led to the SPI interface in PLD by the SPI interface of single-chip microcomputer
Letter, wherein the SPI interface of programming device is from machine, and the SPI interface of single-chip microcomputer is main frame;
Described USB communication device is for the communication between host computer and PLD;
Described FlexRay communication equipment is by the list in or FlexRay network transceivers and FlexRay network
Road or two-way interfacility link connect;
In described FlexRay communication equipment, single-chip microcomputer is connected by data wire and two FlexRay network transceivers, uses
In the data in FlexRay network transceivers acquisition FlexRay network or data are received and dispatched through FlexRay network
Device sends to FlexRay network;
In described PLD, intervalometer, DRAM interface and one and above SPI interface are all and CPU
It is connected and is controlled it by CPU and realize respective function;
Described PLD is connected by DRAM interface and DRAM memory.
In the present embodiment, single-chip microcomputer uses MC9S12XF512, FlexRay communication module to use TJA1080, can
Programming device uses EP4CE10F17C8, and the master chip of usb communication module uses CY7C68013A,
DRAM uses H57V2562GTR.
A kind of configuration for FlexRay network of the present embodiment and test device, perform mould including three partial functions
Block: CPU part and epigynous computer section in single chip part, PLD.
Described single chip part function executing module is as in figure 2 it is shown, include single-chip microcomputer initialization module, FlexRay net
Network monitors interrupt module and timer interruption module, at the beginning of wherein single-chip microcomputer initialization module includes FlexRay configuration parameter
Beginning beggar's module, the first SPI communication initialization submodule, FlexRay initialization submodule, the initial beggar of intervalometer
Module, interruption initialization submodule and the first idle loop submodule, network monitoring interrupt module includes resolving FlexRay
Network data submodule, a SPI frame encapsulation submodule and a SPI drive submodule, timer interruption module bag
Include FlexRay configuration parameter inquiry submodule, FlexRay configuration parameter obtains submodule, FlexRay network service
Stop submodule, FlexRay network configuration parameters reinitializes submodule and FlexRay network restarts submodule
Block;
The execution flow process of described single-chip microcomputer initialization module is followed successively by: FlexRay configuration parameter initialization submodule,
One SPI communication initialization submodule, intervalometer initialization submodule, interruption initialization submodule, FlexRay are initial
Beggar's module, subsequently into the first idle loop submodule and circulates always at this and performs and wait that network monitoring interrupts mould
Block and the produced interruption of timer interruption module;
Described network monitoring interrupt module uses and interrupts executive mode, when having data to send then in outside FlexRay network
Triggering and interrupt, execution flow process of having no progeny in triggering is: calls parsing FlexRay network data submodule, call first
FlexRay network data is encapsulated as SPI frame, calls a SPI driving by packaged by SPI frame encapsulation submodule
SPI frame sends to PLD through SPI interface;
Described timer interruption module uses interrupts executive mode, when in the timing set in intervalometer to then triggering
Disconnected, execution flow process of having no progeny in triggering is: call the FlexRay configuration parameter inquiry submodule SPI by single-chip microcomputer
Whether interface polls PLD has new FlexRay configuration parameter, without in then stop timing device
Disconnected module, if having, calling the acquisition of FlexRay configuration parameter submodule and obtaining new from PLD
FlexRay configuration parameter, calls FlexRay network service and stops submodule to stop outside FlexRay network service,
Calling FlexRay network configuration parameters and reinitializing submodule is outside FlexRay network configuration parameters, calls
FlexRay network restarts submodule;
In described PLD, CPU part function executing module is as it is shown on figure 3, comprise programmable logic device
Part initialization module, SPI interrupt module and USB interrupt module, wherein PLD initialization module bag
Containing intervalometer initialization submodule, usb communication initialization submodule, the second SPI communication initialization submodule and
Two idle loop submodules, SPI interrupt module comprises the 2nd SPI frame encapsulation submodule, SPI frame resolves and storage submodule
Block and the 2nd SPI drive submodule, and USB interrupt module comprises the first USB frame encapsulation submodule, USB
Frame parsing and sub module stored and a USB drive submodule;
The flow process that described PLD initialization module performs is followed successively by: intervalometer initialization submodule,
Usb communication initialization submodule and the second SPI communication initialization submodule, subsequently into the second idle loop submodule
And at this, circulation performs and waits to interrupt produced by SPI interrupt module and USB interrupt module always;
Described SPI interrupt module uses the executive mode interrupted, when the SPI interface of PLD receives list
Can interrupt during the data that sheet machine SPI interface sends, SPI interrupt module starts to perform, and execution process is: judge
The type of SPI frame, if the SPI frame with FlexRay network data, then calls SPI frame and resolves and storage
Module, parses network data and stores in DRAM;If carrying promising FlexRay configuration parameter querying command
SPI frame, then call the 2nd SPI frame encapsulation submodule and the FlexRay configuration parameter that store in DRAM encapsulated
For SPI frame, recall the 2nd SPI and drive submodule to be sent to single-chip microcomputer through SPI interface by packaged SPI frame;
Described USB interrupt module uses the mode interrupted to perform, when PLD finds USB communication device
On can interrupt when having data, USB interrupt module starts to perform, and execution process is: call the first USB frame solution
Analysis and sub module stored parse FlexRay configuration parameter and store in DRAM, recall the first USB frame envelope
The network data stored in DRAM is packaged into usb data frame by dress submodule, recalls a USB and drives son
Packaged usb data frame is sent to host computer by module through usb communication module.
Described epigynous computer section function executing module as shown in Figure 4, comprise the second USB frame encapsulation submodule, the
Two USB frame resolve and sub module stored, the 2nd USB driving submodule, usb data display sub-module, data
Sub module stored, data display sub-module, digital independent submodule, FlexRay network parameter input submodule and
FlexRay network parameter generates submodule;
In host computer function executing module, each submodule is performed by after user's initiation of operation host computer, uses multi-thread
The mode of journey performs: when user initiates USB interface access, calls the 2nd USB and drives submodule, if now
USB interface does not return data and then terminates this USB interface access thread, if the data of returning, then calls second
USB frame resolves and the data parsed out and are stored in data base by data sub module stored by data parsing, it
After call usb data display sub-module data shown;When user initiates data query, call data and read
Take the data that submodule will inquire about to read from data base, the data that will be read by data display sub-module afterwards
Show;When user initiates to change FlexRay network configuration, it will call FlexRay network parameter input
Module and user carry out the interactive operation of parameter input, user input FlexRay network parameter, can call afterwards
FlexRay network parameter generate submodule generate FlexRay network configuration parameters, if now user select by
FlexRay network configuration parameters sends, then recall the second USB frame encapsulation submodule by FlexRay network
Configuration parameter is packaged into USB frame, drives submodule by packaged USB frame through USB by the 2nd USB afterwards
Communication module sends to PLD, is sent by FlexRay network configuration parameters if now user is non-selected
Go out and have selected cancellation operation, then exit this change FlexRay network configuration thread.
A kind of FlexRay Bus simulator described in above-described embodiment and measurement apparatus, its Network Data Capture flow process is such as
Under:
1) TJA1080 and accessory circuit thereof monitor the signal in bus, afterwards by incoming for data MC9S12XF512
In;
2) EP4CE10F17C8, MC9S12XF512 are passed data to after MC9S12XF512 receives data
Periodically ask whether FlexRay network configuration parameters;
3) EP4CE10F17C8 receives the data from MC9S12XF512, and data is stored in
In H57V2562GTR;When EP4CE10F17C8 receives the FlexRay network parameter that MC9S12XF512 sends
During configuring request, if host computer have sent FlexRay configuration parameter, then configuration parameter is sent out by EP4CE10F17C8
Deliver in MC9S12XF512.EP4CE10F17C8 occurs USB to be stored in by the usb data of main frame when interrupting
In H57V2562GTR, and the data from MC9S12XF512 are sent to CY7C68013A;
4) EP4CE10F17C8 receives the signal from extended SPI interface, is deposited in H57V2562GTR,
Wait that USB interrupts, send data in CY7C68013A.
A kind of FlexRay Bus simulator described in above-described embodiment and measurement apparatus, its network parameter configuration flow is such as
Under: FlexRay network configuration is sent to CY7C68013A by host computer by USB interface, afterwards
FlexRay network configuration is read by EP4CE10F17C8 from CY7C68013A, and data are stored in H57V2562GTR,
FlexRay network configuration is taken out from H57V2562GTR by last MC9S12XF512 by EP4CE10F17C8.
It is will by USB access CY7C68013A, CY7C68013A that host computer obtains the mode of FlexRay frame data
The FlexRay frame data that EP4CE10F17C8 sends send to host computer.
Above a kind of configuration for FlexRay network provided by the present invention is carried out detailed Jie with test device
Continuing, principle and embodiment to the present invention are set forth, and the explanation of above example is only intended to help to understand
The method of the present invention and core concept thereof;Simultaneously for one of ordinary skill in the art, according to the think of of the present invention
Thinking, the most all will change, in sum, this specification content should not
It is interpreted as limitation of the present invention.
Claims (2)
1. for configuration and the test device of FlexRay network, including hardware and software part, external equipment
For to be configured or/and FlexRay network to be tested, this FlexRay network packet contains two and above FlexRay knots
Point device and for connecting the connecting line of these equipment, these FlexRay passing node equipments use FLexRay network association
View communicates, and described interfacility link can be single channel, it is also possible to for the form of two-way redundancy, it is characterised in that
Hardware components includes power-supply device, FlexRay communication equipment, PLD, USB communication device, storage
Device DRAM and host computer;
Described power-supply device is for powering with test device for whole configuration;
Described FlexRay communication equipment is outside to be configured or/and FlexRay network to be tested and complete for connecting
Become and the data interaction of FlexRay passing node equipments in FlexRay network, contain with FlexRay procotol control
The single-chip microcomputer of device processed, two FlexRay network transceivers, external clock and reset circuit, described single-chip microcomputer with
SPI interface;
Described PLD, is used for and the single chip communication in FlexRay communication equipment, and by parallel
Bus is connected with USB communication device, then through USB communication device and host computer communication, and store from single-chip microcomputer
With the data of host computer, contain the employing CPU of IP core design, intervalometer, DRAM interface and one and more than
SPI interface;
Described host computer is the PC of band USB interface, for receiving the instruction of user's input, being led to by FlexRay
Letter data and operational factor show;
Described DRAM memory is for storing the data in PLD;
Described FlexRay communication equipment is led to the SPI interface in PLD by the SPI interface of single-chip microcomputer
Letter, wherein the SPI interface of programming device is from machine, and the SPI interface of single-chip microcomputer is main frame;
Described USB communication device is for the communication between host computer and PLD;
Described FlexRay communication equipment is by one or two FlexRay network transceivers and FlexRay network
Single channel or two-way interfacility link connect;
In described FlexRay communication equipment, single-chip microcomputer is connected by data wire and two FlexRay network transceivers, uses
In the data in FlexRay network transceivers acquisition FlexRay network or data are received and dispatched through FlexRay network
Device sends to FlexRay network;
In described PLD, intervalometer, DRAM interface and one and above SPI interface are all and CPU
It is connected and is controlled it by CPU and realize respective function;
Described PLD is connected by DRAM interface and DRAM memory.
A kind of configuration for FlexRay network the most according to claim 1 and test device, its feature exists
Include that three partial functions perform modules: CPU part in single chip part, PLD in, software section
And epigynous computer section;
Described single chip part function executing module includes that single-chip microcomputer initialization module, FlexRay network monitoring interrupt mould
Block and timer interruption module, wherein single-chip microcomputer initialization module include FlexRay configuration parameter initialization submodule,
At the beginning of first SPI communication initialization submodule, FlexRay initialization submodule, intervalometer initialization submodule, interruption
Beginning beggar's module and the first idle loop submodule, network monitoring interrupt module includes resolving FlexRay network data submodule
Block, a SPI frame encapsulation submodule and a SPI drive submodule, and timer interruption module includes that FlexRay joins
Put parameter query submodule, FlexRay configuration parameter obtain submodule, FlexRay network service stop submodule,
FlexRay network configuration parameters reinitializes submodule and FlexRay network restarts submodule;
The execution flow process of described single-chip microcomputer initialization module is followed successively by: FlexRay configuration parameter initialization submodule,
One SPI communication initialization submodule, intervalometer initialization submodule, interruption initialization submodule, FlexRay are initial
Beggar's module, subsequently into the first idle loop submodule and circulates always at this and performs and wait that network monitoring interrupts mould
Block and the produced interruption of timer interruption module;
Described network monitoring interrupt module uses and interrupts executive mode, when having data to send then in outside FlexRay network
Triggering and interrupt, execution flow process of having no progeny in triggering is: calls parsing FlexRay network data submodule, call first
FlexRay network data is encapsulated as SPI frame, calls a SPI driving by packaged by SPI frame encapsulation submodule
SPI frame sends to PLD through SPI interface;
Described timer interruption module uses interrupts executive mode, when in the timing set in intervalometer to then triggering
Disconnected, execution flow process of having no progeny in triggering is: call the FlexRay configuration parameter inquiry submodule SPI by single-chip microcomputer
Whether interface polls PLD has new FlexRay configuration parameter, without in then stop timing device
Disconnected module, if having, calling FlexRay configuration parameter submodule and obtaining new from PLD
FlexRay configuration parameter, calls FlexRay network service and stops submodule to stop outside FlexRay network service,
Calling FlexRay network configuration parameters and reinitializing submodule is outside FlexRay network configuration parameters, calls
FlexRay network restarts submodule;
In described PLD CPU part function executing module comprise PLD initialization module,
SPI interrupt module and USB interrupt module, wherein to comprise usb communication initial for PLD initialization module
Beggar's module, the second SPI communication initialization submodule and the second idle loop submodule, SPI interrupt module comprises second
SPI frame encapsulation submodule, the parsing of SPI frame and sub module stored and the 2nd SPI drive submodule, USB interrupt module
Comprise the first USB frame encapsulation submodule, the first USB frame parsing and sub module stored and a USB drives submodule
Block;
The flow process that described PLD initialization module performs is followed successively by: intervalometer initialization submodule,
Usb communication initialization submodule and the second SPI communication initialization submodule, subsequently into the second idle loop submodule
And at this, circulation performs and waits to interrupt produced by SPI interrupt module and USB interrupt module always;
Described SPI interrupt module uses the executive mode interrupted, when the SPI interface of PLD receives list
Can interrupt during the data that sheet machine SPI interface sends, SPI interrupt module starts to perform, and execution process is: judge
The type of SPI frame, if the SPI frame with FlexRay network data, then calls SPI frame and resolves and storage
Module, parses network data and stores in DRAM;If carrying promising FlexRay configuration parameter querying command
SPI frame, then call the 2nd SPI frame encapsulation submodule and the FlexRay configuration parameter that store in DRAM encapsulated
For SPI frame, recall the 2nd SPI and drive submodule to be sent to single-chip microcomputer through SPI interface by packaged SPI frame;
Described USB interrupt module uses the mode interrupted to perform, when PLD finds USB communication device
On can interrupt when having data, USB interrupt module starts to perform, and execution process is: call the first USB frame solution
Analysis and sub module stored parse FlexRay configuration parameter and store in DRAM, recall the first USB frame envelope
The network data stored in DRAM is packaged into usb data frame by dress submodule, recalls a USB and drives son
Packaged usb data frame is sent to host computer by module through usb communication module;
Described epigynous computer section function executing module comprises the second USB frame encapsulation submodule, the second USB frame resolves
And sub module stored, the 2nd USB drive submodule, usb data display sub-module, data sub module stored, number
According to display sub-module, digital independent submodule, FlexRay network parameter input submodule and FlexRay network parameter
Generate submodule;
In host computer function executing module, each submodule is performed by after user's initiation of operation host computer, uses multi-thread
The mode of journey performs: when user initiates USB interface access instruction, calls the 2nd USB and drives submodule, now
If USB interface does not return data, terminate this USB interface and access thread, if the data of returning, then call
Second USB frame resolves and the data parsed out and are stored in data base by data parsing by data sub module stored
In, call usb data display sub-module afterwards and data are shown;When user initiates data query instruction,
Call the data that digital independent submodule will inquire about to read from data base, afterwards will by data display sub-module
The data read show;When user initiates to change the instruction of FlexRay network configuration, it will call FlexRay
Network parameter input submodule and user carry out the interactive operation of parameter input, user input FlexRay network ginseng
Number, can call FlexRay network parameter afterwards and generate submodule generation FlexRay network configuration parameters, if now
User selects to send FlexRay network configuration parameters, then recalling the second USB frame encapsulation submodule will
FlexRay network configuration parameters is packaged into USB frame, drives submodule by packaged by the 2nd USB afterwards
USB frame sends to PLD through usb communication module, if now user is non-selected by FlexRay net
Network configuration parameter sends and have selected cancellation operation, then exit this change FlexRay network configuration thread.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610320474.3A CN106027292B (en) | 2016-05-16 | 2016-05-16 | A kind of configuration and test device for FlexRay network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610320474.3A CN106027292B (en) | 2016-05-16 | 2016-05-16 | A kind of configuration and test device for FlexRay network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106027292A true CN106027292A (en) | 2016-10-12 |
CN106027292B CN106027292B (en) | 2019-02-01 |
Family
ID=57096923
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610320474.3A Active CN106027292B (en) | 2016-05-16 | 2016-05-16 | A kind of configuration and test device for FlexRay network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106027292B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109547260A (en) * | 2018-12-07 | 2019-03-29 | 中国航空工业集团公司西安航空计算技术研究所 | A kind of FlexRay network collocating method and system |
CN109561007A (en) * | 2018-11-16 | 2019-04-02 | 安徽华明航空电子***有限公司 | A kind of navigation aircraft avionics system design method based on FlexRay bus |
CN110376938A (en) * | 2019-06-28 | 2019-10-25 | 中国航天***科学与工程研究院 | A kind of intelligence control system |
CN114172759A (en) * | 2021-11-01 | 2022-03-11 | 中国北方车辆研究所 | FlexRay communication acquisition box automatic test system based on configuration |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070081548A1 (en) * | 2005-10-12 | 2007-04-12 | Gm Global Technology Operations, Inc. | System and Method of Optimizing the Static Segment Schedule and Cycle Length of a Time Triggered Communication Protocol |
CN102325128A (en) * | 2011-07-11 | 2012-01-18 | 北京交通大学 | Protocol conversion device and method for FlexRay bus and LIN bus |
CN102868583A (en) * | 2012-06-06 | 2013-01-09 | 浙江吉利汽车研究院有限公司杭州分公司 | FlexRay bus joint with fault diagnosis function |
CN105486513A (en) * | 2016-01-20 | 2016-04-13 | 贵州师范大学 | Automobile engine fault detection device and detection method |
-
2016
- 2016-05-16 CN CN201610320474.3A patent/CN106027292B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070081548A1 (en) * | 2005-10-12 | 2007-04-12 | Gm Global Technology Operations, Inc. | System and Method of Optimizing the Static Segment Schedule and Cycle Length of a Time Triggered Communication Protocol |
CN102325128A (en) * | 2011-07-11 | 2012-01-18 | 北京交通大学 | Protocol conversion device and method for FlexRay bus and LIN bus |
CN102868583A (en) * | 2012-06-06 | 2013-01-09 | 浙江吉利汽车研究院有限公司杭州分公司 | FlexRay bus joint with fault diagnosis function |
CN105486513A (en) * | 2016-01-20 | 2016-04-13 | 贵州师范大学 | Automobile engine fault detection device and detection method |
Non-Patent Citations (1)
Title |
---|
王晓阳: "基于FlexRay轮毂电机汽车XCP标定***研究", 《中国优秀硕士学位论文全文数据库工程科技Ⅱ辑C035-515》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109561007A (en) * | 2018-11-16 | 2019-04-02 | 安徽华明航空电子***有限公司 | A kind of navigation aircraft avionics system design method based on FlexRay bus |
CN109547260A (en) * | 2018-12-07 | 2019-03-29 | 中国航空工业集团公司西安航空计算技术研究所 | A kind of FlexRay network collocating method and system |
CN110376938A (en) * | 2019-06-28 | 2019-10-25 | 中国航天***科学与工程研究院 | A kind of intelligence control system |
CN110376938B (en) * | 2019-06-28 | 2021-03-26 | 中国航天***科学与工程研究院 | Intelligent control system |
CN114172759A (en) * | 2021-11-01 | 2022-03-11 | 中国北方车辆研究所 | FlexRay communication acquisition box automatic test system based on configuration |
Also Published As
Publication number | Publication date |
---|---|
CN106027292B (en) | 2019-02-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106027292A (en) | Device used for configuration and testing of FlexRay network | |
EP1884789B1 (en) | Test apparatus and test method | |
CN111221694B (en) | Built-in self-test method and system for receiving and transmitting path of Ethernet controller | |
US7650555B2 (en) | Method and apparatus for characterizing components of a device under test using on-chip trace logic analyzer | |
CN105446860A (en) | Asynchronous concurrent mechanism based pressure test system and test method | |
CN108777649B (en) | Network interception device, system and method | |
CN110417780B (en) | Multi-channel high-speed data interface conversion module of customized data transmission protocol | |
US9379977B2 (en) | Techniques for a switch to receive network controller sideband interface control packets | |
CN112804124B (en) | Test bed and test method for time-sensitive network equipment | |
EP4191355A1 (en) | Uds-based communication method, ecu and upper computer | |
CN108896841A (en) | Test macro, test method and device | |
CN106502749A (en) | Based on the method and system that program write with a brush dipped in Chinese ink by CAN multimachine | |
CN102291274A (en) | System and method for realizing automatic adaptation of network testing instrument | |
CN108562805A (en) | A kind of interactive mode break-make electric test device, system and method | |
WO2017211061A1 (en) | Chip and method for acquiring chip debugging data | |
CN104184843A (en) | Data forwarding apparatus and method | |
CN110691128A (en) | Communication method, system, medium and device based on IPMI system health management middleware | |
CN108388228B (en) | Synchronous debugging method and device for multi-channel embedded control system | |
CN114116554B (en) | FPGA-based radar data forwarding architecture and forwarding method | |
CN106982156B (en) | Priority setting method, device, communication system, equipment and readable storage medium storing program for executing | |
GB2541215A (en) | Debug adapter | |
CN109617853B (en) | Gigabit network port auto-negotiation device and method based on FPGA | |
CN107844110A (en) | A kind of fault data recorder system for current transformer | |
CN105453480B (en) | Combining unit | |
CN107769968B (en) | Debugging and testing system of SNMP (simple network management protocol) agent in AFDX (avionics full Duplex switched Ethernet) network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20191014 Address after: 261000 room 511, building B2, star incubator, blue wisdom Valley, Weifang City, Shandong Province Patentee after: Shandong Dingrui New Energy Technology Co., Ltd. Address before: 100044 Beijing city Haidian District Xizhimen Shangyuan Village No. 3 Patentee before: Beijing Jiaotong University |