CN106372019A - Processing method for response timeout of system bus equipment and timeout processor - Google Patents

Processing method for response timeout of system bus equipment and timeout processor Download PDF

Info

Publication number
CN106372019A
CN106372019A CN201510427662.1A CN201510427662A CN106372019A CN 106372019 A CN106372019 A CN 106372019A CN 201510427662 A CN201510427662 A CN 201510427662A CN 106372019 A CN106372019 A CN 106372019A
Authority
CN
China
Prior art keywords
equipment
timeout
response
time
response timeout
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
CN201510427662.1A
Other languages
Chinese (zh)
Other versions
CN106372019B (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.)
Shenzhen ZTE Microelectronics Technology Co Ltd
Original Assignee
Shenzhen ZTE Microelectronics Technology 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 Shenzhen ZTE Microelectronics Technology Co Ltd filed Critical Shenzhen ZTE Microelectronics Technology Co Ltd
Priority to CN201510427662.1A priority Critical patent/CN106372019B/en
Priority to PCT/CN2016/088131 priority patent/WO2017012459A1/en
Publication of CN106372019A publication Critical patent/CN106372019A/en
Application granted granted Critical
Publication of CN106372019B publication Critical patent/CN106372019B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0064Latency reduction in handling transfers

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Small-Scale Networks (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses a processing method for response timeout of system bus equipment. The method comprises the steps that response time of subordinate equipment in the system bus equipment is monitored in real time; when response timeout takes place to the monitored subordinate equipment, an importance grade of the subordinate equipment with the response timeout is judged; and the subordinate equipment with the response timeout is processed based on a judgment result. The embodiment of the invention also discloses a timeout processor.

Description

A kind of processing method of system bus devices response timeout and timeout treatment device
Technical field
The present invention relates to bus apparatus field, more particularly, to a kind of process side of system bus devices response timeout Method and timeout treatment device.
Background technology
At present, the bus bar module that one or more cascades are usually used realizes the communication of various bus apparatus Connect, various bus apparatus here may be located at same SOC(system on a chip) (system on chip, soc). Fig. 1 is the structural representation of the bus bar module that soc system adopts in prior art, as shown in figure 1, Have three main equipments and six from equipment, here, three main equipments are respectively main equipment 0, main equipments 1 With main equipment 2, six from equipment be respectively from equipment 3, from equipment 4, from equipment 5, from equipment 6, from Equipment 7 and from equipment 8;Main equipment and pass through two bus bar modules between equipment and realize communication connection, This two bus bar modules lead 4 from bus bar module and 1 main 3 from bus bar module, 3 masters 4 for 3 Connect three main equipments respectively from bus bar module, from equipment 3, from equipment 4, from equipment 5 and 1 main 3 From bus bar module, 1 main 3 from bus bar module connect respectively 3 main 4 from bus bar module, from Equipment 6, from equipment 7 with from equipment 8.
Under normal circumstances, bus apparatus are all based on the bus bar module shown in Fig. 1 to realize each other Communication connection, for example, central processing unit (cpu) in soc system, digital signal processor (dsp), High-speed intelligent peripheral hardware (intelligent peripheral, ip) and low speed ip, connect bus bar module Corresponding interface.
Here, main equipment and the process interacting from equipment are: it is mutual to bus that main equipment passes through EBI Gang mould block sends request of data, and request of data can be read from the data of equipment or write data to from equipment; Bus bar module is asked to from equipment sending data by corresponding EBI;Connect corresponding from equipment Receiving data request on mouth, and the request of data receiving is responded, response signal is passed through corresponding total Line interface sends to bus bar module, and response signal is sent out by bus bar module by corresponding EBI Deliver to main equipment.
For the circuit that demand is more various or design is complex, the species of bus apparatus or quantity are also just relatively Many, function is also relative complex;And, the ip that these bus apparatus are used may be from different manufacturers, Or developed by different team.Although the interface of these bus apparatus is all based on standard bus protocol carrying out Exploitation, but bus apparatus also can be in the impact of many extraneous factors, such as chip pin signal quality, list Electromagnetic interference, the working condition of external equipment and artificial incorrect operation that plate is subject to etc..In above-mentioned extraneous factor Under the influence of, the instruction that bus apparatus may be initiated to bus cannot respond in time, that is, bus The situation of equipment response timeout.
The existing scheme that bus apparatus response timeout is processed is there is problems in that can only be according to identical Mode response timeout process is carried out to each bus apparatus it is impossible to ring based on the importance of bus apparatus Answer timeout treatment, be easily reduced the treatment effeciency of bus apparatus response timeout and bus apparatus recover normal work Efficiency.
Content of the invention
For solving above-mentioned technical problem, embodiment of the present invention expectation provides a kind of system bus devices response timeout Processing method and timeout treatment device, can according to application scenarios neatly select system bus devices respond The process strategy of time-out, improves the treatment effeciency of system bus devices response timeout.
The technical scheme is that and be achieved in that:
Embodiments provide a kind of processing method of system bus devices response timeout, comprising:
From the response time of equipment in real-time monitoring system bus apparatus;
Monitored when equipment response timeout, judge the importance rate from equipment of response timeout;
Processing from equipment of response timeout is occurred to described based on judged result.
In such scheme, include from the response time of equipment in described real-time monitoring system bus apparatus: setting At least one of at least one timeout treatment device, each timeout treatment device and system bus devices is from equipment Corresponding;Using each timeout treatment device real-time monitoring corresponding time sending response signal from equipment respectively.
In such scheme, the described importance rate from equipment that response timeout occurs is the first importance rate Or second importance rate;
Described based on judged result to described occur response timeout from equipment carry out process include: if described The importance rate from equipment that response timeout occurs is the first importance rate, then corresponding timeout treatment dress Put and report time-out information to bus bar module, described bus bar module is used for realizing described system bus setting Standby middle main equipment and the data interaction between equipment;
If the described importance rate from equipment that response timeout occurs is the second importance rate, correspond to Timeout treatment device replace described occur response timeout send response signal from equipment.
In such scheme, corresponding timeout treatment device to described bus bar module report time-out information it Afterwards, methods described also includes:
Described bus bar module is to described each in the default coverage of equipment that response timeout occurs Bus apparatus carry out reset processing.
In such scheme, the described importance rate from equipment that response timeout occurs is the second importance rate When, methods described also includes: corresponding timeout treatment device occurs carrying out from equipment of response timeout to described Reset processing, and/or, report time-out information to described bus bar module.
In such scheme, described corresponding timeout treatment device replaces sending out from equipment of described generation response timeout Go out response signal, comprising:
If presently described occur response timeout from equipment be in order transmission the stage, corresponding time-out at That manages device replacement described generation response timeout sends response signal from equipment;
If presently described occur response timeout be in data transfer phase from equipment, corresponding time-out at That manages device replacement described generation response timeout sends response signal from equipment, and judges presently described sound Should time-out the data to be transmitted bag from equipment be whether this data transfer last packet;If It is last packet of this data transfer, then to described, resetting from equipment of response timeout occurs Process, and/or, report time-out information to described bus bar module.
In such scheme, in real-time monitoring system bus apparatus while the response time of equipment, described Method also includes:
Judge whether be more than or equal to timeout threshold from the response time of equipment in described system bus devices, if More than or equal to timeout threshold, then monitored from equipment response timeout.
In such scheme, in system bus devices described in real-time monitoring before the response time of equipment, institute Method of stating also includes:
Based on the demand of application scenarios, configure the importance rate from equipment in described system bus devices.
The embodiment of the present invention additionally provides a kind of timeout treatment device, including monitoring modular, judge module and place Reason module;Wherein,
Monitoring modular, for the response time from equipment in real-time monitoring system bus apparatus;
Judge module, in the monitored response timeout from equipment, judge to occur response timeout from setting Standby importance rate;
, there is processing from equipment of response timeout based on judged result to described in processing module.
In such scheme, at least one of described device and system bus devices is corresponding from equipment;
Each described device is respectively used to the corresponding response time from equipment of real-time monitoring.
In such scheme, the described importance rate from equipment that response timeout occurs is the first importance rate Or second importance rate;
Described processing module, being additionally operable in the described importance rate from equipment that response timeout occurs is first During importance rate, report time-out information to bus bar module, in described generation response timeout from equipment Importance rate be the second importance rate when, replace described occur response timeout send response from equipment Signal;Described bus bar module is used for realizing in described system bus devices main equipment and between equipment Data interaction.
In such scheme, described bus bar module, for after receiving time-out information, to described Each bus apparatus in the default coverage of equipment of raw response timeout carry out reset processing.
In such scheme, described processing module, it is additionally operable to, described, the important from equipment of response timeout occurs Property grade be the second importance rate when, to described occur response timeout carry out reset processing from equipment, and/ Or, reporting time-out information to described bus bar module.
In such scheme, described processing module, it is additionally operable in presently described generation response timeout at equipment When the order transmission stage, replace described generation response timeout sends response signal from equipment;In current institute State occur response timeout when equipment is in data transfer phase, replace described occur response timeout from setting Preparation goes out response signal, and whether judges the presently described data to be transmitted bag from equipment that response timeout occurs Last packet for this data transfer;If last packet of this data transfer, Then to described occur response timeout carry out reset processing from equipment, and/or, in described bus bar module Report time-out information.
A kind of processing method of system bus devices response timeout provided in an embodiment of the present invention and timeout treatment dress Put, by the response time from equipment in timeout treatment device real-time monitoring system bus apparatus, based on from equipment Importance response timeout is processed, so, can neatly select system bus according to application scenarios The process strategy of equipment response timeout, improves the treatment effeciency of system bus devices response timeout.
Brief description
Fig. 1 is the structural representation of the bus bar module that soc system adopts in prior art;
Fig. 2 is the flow chart of the first embodiment of processing method of present system bus apparatus response timeout;
Fig. 3 is bus transfer in the first embodiment of processing method of present system bus apparatus response timeout The schematic diagram of form;
Fig. 4 is the flow chart of the second embodiment of processing method of present system bus apparatus response timeout;
Fig. 5 is data transfer in the second embodiment of processing method of present system bus apparatus response timeout The process chart of response timeout;
Fig. 6 is bus transfer in the 3rd embodiment of processing method of present system bus apparatus response timeout The schematic diagram of form;
Fig. 7 carries out front two in the 3rd embodiment of processing method of present system bus apparatus response timeout Flow chart during secondary transmission;
Fig. 8 carries out the 3rd in the 3rd embodiment of processing method of present system bus apparatus response timeout Flow chart during secondary transmission;
Fig. 9 carries out the 4th in the 3rd embodiment of processing method of present system bus apparatus response timeout Flow chart during secondary transmission;
Figure 10 be present system bus apparatus response timeout the 3rd embodiment of processing method in carry out the Flow chart during five transmission;
Figure 11 is the composition structural representation of embodiment of the present invention timeout treatment device.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly Chu, it is fully described by.
First embodiment
Fig. 2 is the flow chart of the first embodiment of processing method of present system bus apparatus response timeout, As shown in Fig. 2 the method includes:
Step 200: the response time from equipment in system bus devices described in real-time monitoring.
Here, system bus devices include bus bar module, and at least one main equipment, at least one is from setting Standby, main equipment passes through bus bar module and connects from equipment, and bus bar module can be used for realizing main equipment And the data interaction between equipment.
Here, main equipment is the equipment sending request of data in system bus devices to bus bar module, number Can be to read some to write data from the data of equipment or to some from equipment according to request;From equipment it is Receive in system bus devices and from the request of data of bus bar module and this request of data to be responded Equipment.Main equipment connects bus bar module by main interface, passes through from Interface connection bus interconnection from equipment Module;If it should be noted that an equipment had not only supported main interface but also had supported from interface, this equipment exists It is main equipment when being communicated using main interface, be from equipment when interface is communicated using.
Here, refer to from the response time of equipment: from equipment from receive bus bar module request of data when It is carved into the time span of current time.
Specifically, in system bus devices described in described real-time monitoring from equipment send the response signal time bag Include: at least one timeout treatment device is set, each timeout treatment device and at least the one of system bus devices Individual corresponding from equipment;Using each timeout treatment device, corresponding the sending from equipment of real-time monitoring responds letter respectively Number time.Here, timeout treatment device with can be one-to-one relation it is also possible to one from equipment Timeout treatment device correspondence multiple from equipment.
Working condition it is possible to further configure timeout treatment device is opening or closed mode, can To be monitored it is impossible to using being in corresponding from equipment using being in the timeout treatment device of opening The timeout treatment device of closed mode is monitored from equipment to corresponding.Here it is possible to according to application scenarios Demand, be pre-configured with timeout treatment device and be in opening or closed mode;It should be noted that can With at carrying out time-out before equipment sends the response signal time in system bus devices described in real-time monitoring The configuration of the working condition of reason device it is also possible to carry out the work of timeout treatment device when changing application scenarios The configuration of state is it is also possible to be configured in real time in the case of not affecting system bus devices work.
Here, in system bus devices described in real-time monitoring before the time that equipment sends response signal, Methods described also includes: the demand based on application scenarios, configure in described system bus devices from equipment Importance rate;For example, two importances etc. are configured in described system bus devices from equipment altogether Level that is to say, that from the importance rate of equipment be the first importance rate or the second importance rate;From When the importance rate of equipment is the first importance rate, it is visual plant from equipment;Importance from equipment When grade is the second importance rate, it is insignificant equipment from equipment.
Specifically, can will be visual plant or insignificant equipment from device configuration according to the demand of application scenarios. It should be noted that with the change of application scenarios, in described system bus devices may be by weight from equipment Equipment is wanted to be changed into insignificant equipment it is also possible to there be insignificant equipment to be changed into visual plant.
Step 201: monitored when equipment response timeout, judge the weight from equipment of response timeout The property wanted grade.
Specifically, judge whether the response time from equipment in described system bus devices is more than or equal to time-out Threshold value, if greater than equal to timeout threshold, then monitored from equipment response timeout;Otherwise, monitored Have not timed out from equipment response.
Here it is possible to timeout threshold be configured according to the demand of application scenarios that is to say, that for same From equipment, under different application scenarios, different timeout thresholds can be configured, and then the different weight of correspondence The property wanted grade.
Step 202: processing from equipment of response timeout is occurred to described based on judged result.
Here, judged result is described generation response timeout from equipment importance rate;Can be according to important Property grade determine occur response timeout the classification from equipment, be greater than 1 nature from the classification sum of equipment Number;For example, if configuring two importances etc. in described system bus devices from equipment altogether Level, then can according to occur response timeout from equipment importance rate, judges this from equipment as visual plant Or insignificant equipment.
Illustrate in two kinds of situation below to the process being processed from equipment that response timeout occurs.
The first situation: occur response timeout from equipment be visual plant.
Described to described occur response timeout from equipment carry out process include: occur response timeout from equipment Corresponding timeout treatment device reports time-out information to described bus bar module, for example, bus bar module In be provided with processor, receive time-out information using processor, processor is after receiving time-out information, right Described each bus apparatus in the default coverage of equipment that response timeout occurs carry out reset processing, When carrying out reset processing, the processing business from equipment and data flow can be removed.
Here, from the default coverage of equipment can be one or more of system bus devices equipment, If the reset mode of any one equipment in the default coverage of equipment is special reset mode, Now processor can carry out reset processing according to this special reset mode to from equipment.For soc system In bus apparatus for, may be at whole soc system from the default coverage of equipment it is also possible to It is in the subsystem in soc system, for example, be in the storage soc system from the default coverage of equipment Subsystem.
Here, each being provided with timeout treatment device is connected with a status register from equipment;So, Timeout treatment device can report time-out information using two kinds of reporting schemes to processor;Wherein, on the first Report mode is:, by time-out information write state depositor, status register is open close in producing for timeout treatment device Know that processor reads this time-out information;Second reporting schemes are: time-out information is write by timeout treatment device Status register, waits processor to inquire about the content in status register.
Second situation: occur response timeout from equipment be non-visual plant.
Described generation response timeout is non-visual plant from equipment, then corresponding timeout treatment device replaces institute That states generation response timeout sends response signal from equipment.Specifically, timeout treatment device replaces described sending out That gives birth to response timeout sends response signal to bus bar module it is ensured that system bus can continue work from equipment Make, effectively improve the treatment effeciency to system bus devices response timeout.
Further, timeout treatment device replace described occur response timeout from equipment to bus bar mould While block sends response signal, to described occur response timeout carry out reset processing from equipment, and/or, Report time-out information to described bus bar module.There is resetting from equipment of response timeout to described During process, related to bus state before equipment response timeout can be understood;To described bus bar module When reporting time-out information, timeout treatment device, by time-out information write state depositor, waits processor inquiry Content in status register.
Below with explanation two as a example direct memory access (direct memory access, dma) equipment not With the timeout treatment strategy under scene, two different scenes here are scene 1 and scene 2.In scene 1 In, dma equipment is provided with timeout treatment device and timeout treatment device is in opening, and dma equipment is Visual plant, the time-out information reporting schemes of dma equipment are the first reporting schemes above-mentioned, dma equipment Timeout threshold be set to 100 clock cycle.Table 1 is that the timeout treatment strategy of bus apparatus in scene 1 is joined Put table, wherein, the equipment in scene 1 includes cpu, dsp, Double Data Rate synchronous DRAM (double data rate, ddr), dma, universal asynchronous receiving-transmitting transmitter (universal asynchronous Receiver/transmitter, uart), i2c (inter-integrated circuit) bus apparatus and Bus extender (general purpose input output, gpio), n/a represents corresponding bus apparatus It is not provided with timeout treatment device or timeout treatment device is closed, close and represent at timeout treatment device In closed mode, open and represent that timeout treatment device is in opening, the unit of timeout threshold is equipment institute Periodicity in clock zone.
In scene 2, dma equipment is provided with timeout treatment device and timeout treatment device is in opening, Dma equipment is insignificant equipment, and the timeout threshold of dma equipment is set to 1000 clock cycle.Table 2 For the timeout treatment strategy allocation list of bus apparatus in scene 2, wherein, the equipment in scene 2 and scene 1 In equipment identical, n/a represents that corresponding bus apparatus are not provided with timeout treatment device or timeout treatment device It is closed, close and represent that timeout treatment device is closed, open and represent timeout treatment device It is in opening, the unit of timeout threshold is the periodicity of equipment place clock zone.
Table 1
Table 2
In first embodiment of the invention, main equipment reads from the data of equipment or to during from equipment write data, It is divided into the order transmission stage data transmission stage, here, order transmission stage and corresponding data are passed The defeated stage is referred to as once transmitting total time.The bus protocol such as high-speed bus agreement commonly used at present not only has There is independent read/write channel, and for read channel or write access, also there is separate life simultaneously Make passage data passage, wherein command channel is used for realizing order transmission, and data channel is used for realizing data Transmission.
Further, in data transfer phase, the data if necessary to transmission is longer, then need the number transmitting Complete to transmit according to by the form of multiple packets.Fig. 3 is the place of present system bus apparatus response timeout The schematic diagram of bus transfer form in the first embodiment of reason method, as shown in figure 3, need the data of transmission It is made up of to packet n packet 1.
Here, it is likely to occur in the order transmission stage it is also possible to occur a certain from the response timeout of equipment The transmission stage of individual packet.If having occurred and that within current once transmission total time order passes from equipment Defeated response timeout or data transfer response timeout, then transmission current data packet will no practical significance, now only need The transmission response waiting last packet terminates, and then resets and corresponds to from equipment and report time-out information.
Specifically, described corresponding timeout treatment device replaces sending from equipment of described generation response timeout Response signal, comprising:
If presently described occur response timeout from equipment be in order transmission the stage, corresponding time-out at That manages device replacement described generation response timeout sends response signal from equipment.
If presently described occur response timeout be in data transfer phase from equipment, corresponding time-out at That manages device replacement described generation response timeout sends response signal from equipment, and judges presently described sound Should time-out the data to be transmitted bag from equipment be whether this data transfer last packet;If It is last packet of this data transfer, then to described, resetting from equipment of response timeout occurs Process, and/or, report time-out information to described bus bar module;If not this data transfer A packet afterwards, then terminate flow process.
If it should be noted that system bus enters line command transmission data transmission using same passage, Then there is when being non-visual plant from equipment of response timeout, corresponding timeout treatment device replaces described sending out That gives birth to response timeout directly sends response signal from equipment, now, will not be according to the different transmission stage point Other places are managed, so can be with the handling process of simplified system bus apparatus response timeout.
Second embodiment
In order to be able to more embody the purpose of the present invention, on the basis of first embodiment of the invention, enter traveling one The illustration of step.
Fig. 4 is the flow chart of the second embodiment of processing method of present system bus apparatus response timeout, As shown in figure 4, the method includes:
Step 400: judge whether be in opening from equipment corresponding timeout treatment device, if overtime Whether processing meanss are in opening, then execution step 401, otherwise, terminate flow process.
Here it is possible to be pre-configured with timeout treatment device to be in opening or closed mode.
Step 401: timeout treatment device record, from the current transmission solicited message of equipment, judges currently once Data transfer response timeout or order transmission response time-out whether has been occurred in that in transmission total time, if it is, Then execution step 403, otherwise, execution step 402.
Specifically, within current once transmission total time, if having occurred that packet transmission response surpasses When or order transmission response time-out, then illustrate before the moment from equipment to the response signal of bus bar module transmit In occurred in that data transfer response timeout or order transmission response time-out.
Here, due to once transmitting always to order transmission as starting in total time, if current time needs Order to be transmitted it is clear that also there is not packet transmission response time-out or order transmission response time-out, is then held Row step 402.
Step 402: judge whether send response signal at the appointed time from equipment, if it is, explanation , the situation of time-out response, now directly from equipment in being transmitted of current order transmission or packet Access node line journey;If it is not, then there is response timeout in the transmission of the current order transmission of explanation or packet, Execution step 403.
Step 403: judging whether from equipment be visual plant, if being visual plant from equipment, executing Step 404, if from equipment be non-visual plant, execution step 405.
Step 404: timeout treatment device reports time-out information to the processor in bus bar module, then Terminate flow process.
In this step, time-out information may include that from the current transmission solicited message of equipment, from device attribute Information and temporal information.Processor can select to continue waiting for from equipment according to the time-out information receiving Response signal or carry out reset processing to from equipment.
Step 405: timeout treatment device judges that current time is in order transmission stage or data from equipment The transmission stage, if being in the order transmission stage, execution step 406, if being in data transfer phase, Then execution step 407.
Specifically, timeout treatment device is according to the transmission solicited message current from equipment, judge current time from Equipment is in order transmission stage or data transfer phase.
Step 406: timeout treatment device obtains and responds authority from the bus of equipment, sends response signal, and Record time-out information, terminates flow process afterwards.
Due to from equipment once transmit the transmission in total time include order transmission data transmission, and Terminated with data transfer, therefore now can not carry out reset processing to from equipment, and be intended to wait number According to completing of transmission.In addition, timeout treatment device will not discharge the bus response authority from equipment in this step.
Step 407: timeout treatment device obtains and responds authority from the bus of equipment, sends response signal, note Record time-out information, execution step 408.
Fig. 5 is data transfer in the second embodiment of processing method of present system bus apparatus response timeout The process chart of response timeout, as shown in figure 5, step 407 specifically includes:
Step 500: judge whether the transmission of the order corresponding to this data transfer time-out response, if It is, then execution step 503;Otherwise, execution step 501.
Step 501: in current once transmission total time, judge whether that packet transmission time-out has occurred Response, if it is, execution step 503, otherwise, execution step 502.
Step 502: obtain bus response authority, execution step 503.
Step 503: timeout treatment device replaces sending response signal from equipment, records time-out information.
Step 408: judge whether the presently described data to be transmitted bag from equipment that response timeout occurs is this Last packet of data transfer;If it is, execution step 409;If not this secondary data Last packet of transmission, then terminate flow process.
Step 409: from equipment, reset processing, release bus response power are carried out to described generation response timeout Limit, execution step 404.
3rd embodiment
In order to be able to more embody the purpose of the present invention, on the basis of first embodiment of the invention and second embodiment On, further illustrated.
In third embodiment of the invention, taking be non-visual plant from equipment as a example illustrate, this is insignificant to set Standby it is provided with the timeout treatment device being in opening.Fig. 6 is present system bus apparatus response timeout The 3rd embodiment of processing method in bus transfer form schematic diagram, as shown in fig. 6, from equipment need Complete an order transmission and 4 packet transmission, this 4 packets are expressed as packet 1, number According to bag 2, packet 3 data bag 4 it is clear that needing to carry out 5 transmission from equipment, just can complete above-mentioned Order transmission and the transmission of 4 packets.Specifically, when equipment carries out transmitting for the first time, complete order Transmission;When equipment carries out second transmission, complete packet 1 and transmit;Carry out third time from equipment to transmit When, complete packet 2 and transmit;When equipment carries out the 4th transmission, complete packet 3 and transmit;From setting During for carrying out the 5th transmission, completing packet 4 and transmitting.
Fig. 7 carries out front two in the 3rd embodiment of processing method of present system bus apparatus response timeout Flow chart during secondary transmission, as shown in fig. 7, this flow process includes:
Step 700: judge whether be in opening it is clear that surpassing from equipment corresponding timeout treatment device When processing meanss be in opening, execution step 701.
Step 701: timeout treatment device record, from the current transmission solicited message of equipment, judges currently once Transmission total time in whether occurred in that data transfer response timeout or order transmission response time-out it is clear that When transmitting twice before carrying out, currently once transmission total time in also do not occur data transfer response timeout or The situation of order transmission response time-out, now, execution step 702.
Step 702: judge whether send response signal at the appointed time from equipment, pass twice before carrying out When defeated, can timely respond to from equipment, so now directly terminating flow process.
Fig. 8 carries out the 3rd in the 3rd embodiment of processing method of present system bus apparatus response timeout Flow chart during secondary transmission, as shown in figure 8, this flow process includes:
Step 800: judge whether be in opening it is clear that surpassing from equipment corresponding timeout treatment device When processing meanss be in opening, now execution step 801.
Step 801: timeout treatment device record, from the current transmission solicited message of equipment, judges currently once Transmission total time in whether occurred in that data transfer response timeout or order transmission response time-out it is clear that Carry out third time transmit when, currently once transmission total time in also do not occur data transfer response timeout or The situation of order transmission response time-out, now, execution step 802.
Step 802: judge whether send response signal at the appointed time from equipment, pass carrying out third time When defeated, that is, want during transmission packet 2 it may appear that response timeout, now execution step 803.
Step 803: judge whether from equipment be visual plant because from equipment be non-visual plant, now Execution step 804.
Step 804: timeout treatment device judges that current time is in order transmission stage or data from equipment The transmission stage it is clear that current time is in data transfer phase from equipment, now execution step 805.
Step 805: timeout treatment device obtains and responds authority from the bus of equipment, sends response signal, note Record time-out information, execution step 806.
Step 805 implement that process is consistent with step 407, I will not elaborate.
Step 806: judge whether the presently described data to be transmitted bag from equipment that response timeout occurs is this Last packet of data transfer;Current time is packet 2 from the data to be transmitted bag of equipment, Packet 2 is not last packet of this data transfer, now terminates flow process.
Fig. 9 carries out the 4th in the 3rd embodiment of processing method of present system bus apparatus response timeout Flow chart during secondary transmission, as shown in figure 9, this flow process includes:
Step 900: judge whether be in opening it is clear that surpassing from equipment corresponding timeout treatment device When processing meanss be in opening, now execution step 901.
Step 901: timeout treatment device record, from the current transmission solicited message of equipment, judges currently once Transmission total time in whether occurred in that data transfer response timeout or order transmission response time-out it is clear that When carrying out the 4th transmission, occur in that the situation of packet 2 transmission response time-out, now execute step Rapid 902.
Step 902: judge whether from equipment be visual plant, is non-visual plant from equipment, now executes Step 903.
Step 903: timeout treatment device judges that current time is in order transmission stage or data from equipment The transmission stage it is clear that current time is in data transfer phase from equipment, now execution step 904.
Step 904: timeout treatment device obtains and responds authority from the bus of equipment, sends response signal, note Record time-out information, execution step 905.
Step 904 implement that process is consistent with step 407, I will not elaborate.
Step 905: judge whether the presently described data to be transmitted bag from equipment that response timeout occurs is this Last packet of data transfer;Current time is packet 3 from the data to be transmitted bag of equipment, Packet 3 is not last packet of this data transfer, now terminates flow process.
Figure 10 be present system bus apparatus response timeout the 3rd embodiment of processing method in carry out the Flow chart during five transmission, as shown in Figure 10, this flow process includes:
Step 1000: judge whether be in opening it is clear that surpassing from equipment corresponding timeout treatment device When processing meanss be in opening, now execution step 1001.
Step 1001: timeout treatment device record, from the current transmission solicited message of equipment, judges currently once Transmission total time in whether occurred in that data transfer response timeout or order transmission response time-out it is clear that When carrying out the 4th transmission, occur in that the situation of packet 2 transmission response time-out, now execute step Rapid 1002.
Step 1002: judge whether from equipment be visual plant, is non-visual plant from equipment, now executes Step 1003.
Step 1003: timeout treatment device judges that current time is in order transmission stage or data from equipment The transmission stage it is clear that current time is in data transfer phase from equipment, now execution step 1004.
Step 1004: timeout treatment device obtains and responds authority from the bus of equipment, sends response signal, note Record time-out information, execution step 1005.
Step 1004 implement that process is consistent with step 407, I will not elaborate.
Step 1005: judge whether the presently described data to be transmitted bag from equipment that response timeout occurs is this Last packet of data transfer;Current time is packet 4 from the data to be transmitted bag of equipment, Packet 4 is last packet of this data transfer, now execution step 1006.
Step 1006: from equipment, reset processing, release bus response power are carried out to described generation response timeout Limit, reports time-out information to the processor in bus bar module, then terminates flow process.
Fourth embodiment
For the method for the embodiment of the present invention, the embodiment of the present invention also proposed a kind of timeout treatment device.
Figure 11 is the composition structural representation of embodiment of the present invention timeout treatment device, as shown in figure 11, should Device includes monitoring modular 1100, judge module 1101 and processing module 1102;Wherein,
Monitoring modular 1100, for the response time from equipment in system bus devices described in real-time monitoring.
Judge module 1101, in the monitored response timeout from equipment, judging response timeout Importance rate from equipment.
, there is processing from equipment of response timeout based on judged result to described in processing module 1102.
At least one, each institute corresponding from equipment of each described timeout treatment device and system bus devices State timeout treatment device and be respectively used to the corresponding response time from equipment of real-time monitoring.
Further, described device also includes configuration module 1103, is used for being pre-configured with timeout treatment device In opening or closed mode, the importance rate of HRP-configured slave device and timeout threshold, here, from equipment Importance rate be the first importance rate or the second importance rate;It is the from the importance rate of equipment During one importance rate, it is visual plant from equipment;It is the second importance rate from the importance rate of equipment When, it is insignificant equipment from equipment.Configuration module 1103, is additionally operable on the time-out information of configuration visual plant Report mode.
Described processing module 1102, is additionally operable in described when being visual plant from equipment of response timeout of generation, Report time-out information to bus bar module, in described when being non-visual plant from equipment of response timeout of generation, Replace described generation response timeout sends response signal from equipment.Described bus bar module is used for realizing institute State main equipment and the data interaction between equipment in system bus devices.
Described bus bar module, for after receiving time-out information, to described generation response timeout Each bus apparatus in the default coverage of equipment carry out reset processing.
Described processing module 1102, is additionally operable in described when being non-visual plant from equipment of response timeout of generation, To described occur response timeout carry out reset processing from equipment, and/or, report to described bus bar module Time-out information.
Described processing module 1102, be additionally operable to presently described occur response timeout from equipment be in order pass During the defeated stage, replace described generation response timeout sends response signal from equipment;Ring presently described Should time-out when equipment is in data transfer phase, replace described occur response timeout send sound from equipment Induction signal, and judge whether the presently described data to be transmitted bag from equipment that response timeout occurs is this number of times Last packet according to transmission;If last packet of this data transfer, then to described What response timeout occurred carries out reset processing from equipment, and/or, report time-out letter to described bus bar module Breath.
In actual applications, described monitoring modular 1100, judge module 1101, processing module 1102 and join Put module 1103 all can by soc system central processing unit (central processing unit, Cpu), microprocessor (micro processor unit, mpu), digital signal processor (digital signal Processor, dsp) or field programmable gate array (field programmable gate array, fpga) Deng realization.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or meter Calculation machine program product.Therefore, the present invention can using hardware embodiment, software implementation or combine software and The form of the embodiment of hardware aspect.And, the present invention can adopt and wherein include calculating one or more Computer-usable storage medium (including but not limited to disk memory and the optical storage of machine usable program code Device etc.) the upper computer program implemented form.
The present invention is with reference to method according to embodiments of the present invention, equipment (system) and computer program Flow chart and/or block diagram describing.It should be understood that can be by computer program instructions flowchart and/or side Each flow process in block diagram and/or the knot of the flow process in square frame and flow chart and/or block diagram and/or square frame Close.Can provide these computer program instructions to general purpose computer, special-purpose computer, Embedded Processor or The processor of other programmable data processing device with produce a machine so that by computer or other can The instruction of the computing device of programming data processing equipment produces for realizing in one flow process or multiple of flow chart The device of the function of specifying in flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing device So that being stored in this computer-readable memory in the computer-readable memory working in a specific way Instruction produces the manufacture including command device, and this command device is realized in one flow process of flow chart or multiple stream The function of specifying in journey and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, makes Obtain and series of operation steps is executed on computer or other programmable devices to produce computer implemented place Reason, thus the instruction of execution is provided for realizing in flow chart one on computer or other programmable devices The step of the function of specifying in flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
The above, only presently preferred embodiments of the present invention, it is not intended to limit the protection model of the present invention Enclose.

Claims (14)

1. a kind of processing method of system bus devices response timeout is it is characterised in that methods described includes:
From the response time of equipment in real-time monitoring system bus apparatus;
Monitored when equipment response timeout, judge the importance rate from equipment of response timeout;
Processing from equipment of response timeout is occurred to described based on judged result.
2. method according to claim 1 is it is characterised in that described real-time monitoring system bus apparatus In include from the response time of equipment: at least one timeout treatment device is set, each timeout treatment device with At least one of system bus devices is corresponding from equipment;Using each timeout treatment device real-time monitoring pair respectively The time sending response signal from equipment answered.
3. method according to claim 2 it is characterised in that described generation response timeout from equipment Importance rate be the first importance rate or the second importance rate;
Described based on judged result to described occur response timeout from equipment carry out process include: if described The importance rate from equipment that response timeout occurs is the first importance rate, then corresponding timeout treatment dress Put and report time-out information to bus bar module, described bus bar module is used for realizing described system bus setting Standby middle main equipment and the data interaction between equipment;
If the described importance rate from equipment that response timeout occurs is the second importance rate, correspond to Timeout treatment device replace described occur response timeout send response signal from equipment.
4. method according to claim 3 is it is characterised in that in corresponding timeout treatment device to institute State after bus bar module reports time-out information, methods described also includes:
Described bus bar module is to described each in the default coverage of equipment that response timeout occurs Bus apparatus carry out reset processing.
5. method according to claim 3 it is characterised in that described generation response timeout from equipment Importance rate be the second importance rate when, methods described also includes: corresponding timeout treatment device pair Described occur response timeout carry out reset processing from equipment, and/or, report super to described bus bar module When information.
6. method according to claim 3 is it is characterised in that described corresponding timeout treatment device generation For described occur response timeout send response signal from equipment, comprising:
If presently described occur response timeout from equipment be in order transmission the stage, corresponding time-out at That manages device replacement described generation response timeout sends response signal from equipment;
If presently described occur response timeout be in data transfer phase from equipment, corresponding time-out at That manages device replacement described generation response timeout sends response signal from equipment, and judges presently described sound Should time-out the data to be transmitted bag from equipment be whether this data transfer last packet;If It is last packet of this data transfer, then to described, resetting from equipment of response timeout occurs Process, and/or, report time-out information to described bus bar module.
7. the method according to any one of claim 1 to 6 is it is characterised in that in real-time monitoring system In bus apparatus while the response time of equipment, methods described also includes:
Judge whether be more than or equal to timeout threshold from the response time of equipment in described system bus devices, if More than or equal to timeout threshold, then monitored from equipment response timeout.
8. the method according to any one of claim 1 to 6 is it is characterised in that described in real-time monitoring In system bus devices before the response time of equipment, methods described also includes:
Based on the demand of application scenarios, configure the importance rate from equipment in described system bus devices.
9. a kind of timeout treatment device it is characterised in that described device include monitoring modular, judge module and Processing module;Wherein,
Monitoring modular, for the response time from equipment in real-time monitoring system bus apparatus;
Judge module, in the monitored response timeout from equipment, judge to occur response timeout from setting Standby importance rate;
, there is processing from equipment of response timeout based on judged result to described in processing module.
10. device according to claim 9 it is characterised in that
At least one of one described device and system bus devices is corresponding from equipment;
Each described device is respectively used to the corresponding response time from equipment of real-time monitoring.
11. devices according to claim 10 it is characterised in that described generation response timeout from setting Standby importance rate is the first importance rate or the second importance rate;
Described processing module, being additionally operable in the described importance rate from equipment that response timeout occurs is first During importance rate, report time-out information to bus bar module, in described generation response timeout from equipment Importance rate be the second importance rate when, replace described occur response timeout send response from equipment Signal;Described bus bar module is used for realizing in described system bus devices main equipment and between equipment Data interaction.
12. devices according to claim 11, it is characterised in that described bus bar module, are used for After receiving time-out information, there is the every in the default coverage of equipment of response timeout to described Individual bus apparatus carry out reset processing.
13. devices according to claim 11, it is characterised in that described processing module, are additionally operable to When the described importance rate from equipment that response timeout occurs is the second importance rate, ring to described That answers time-out carries out reset processing from equipment, and/or, report time-out information to described bus bar module.
14. devices according to claim 11, it is characterised in that described processing module, are additionally operable to Presently described occur response timeout from equipment be in order transmission the stage when, replace described generation response timeout Send response signal from equipment;Presently described occur response timeout be in data transfer phase from equipment When, replace described generation response timeout sends response signal from equipment, and judges presently described response Whether the data to be transmitted bag from equipment of time-out is last packet of this data transfer;If , then there is carrying out at reset from equipment of response timeout to described in last packet of this data transfer Reason, and/or, report time-out information to described bus bar module.
CN201510427662.1A 2015-07-20 2015-07-20 A kind of processing method and timeout treatment device of system bus devices response timeout Active CN106372019B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510427662.1A CN106372019B (en) 2015-07-20 2015-07-20 A kind of processing method and timeout treatment device of system bus devices response timeout
PCT/CN2016/088131 WO2017012459A1 (en) 2015-07-20 2016-07-01 System bus device response timeout processing method and apparatus, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510427662.1A CN106372019B (en) 2015-07-20 2015-07-20 A kind of processing method and timeout treatment device of system bus devices response timeout

Publications (2)

Publication Number Publication Date
CN106372019A true CN106372019A (en) 2017-02-01
CN106372019B CN106372019B (en) 2019-04-30

Family

ID=57833755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510427662.1A Active CN106372019B (en) 2015-07-20 2015-07-20 A kind of processing method and timeout treatment device of system bus devices response timeout

Country Status (2)

Country Link
CN (1) CN106372019B (en)
WO (1) WO2017012459A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022121470A1 (en) * 2020-12-07 2022-06-16 苏州浪潮智能科技有限公司 Method and system for processing instruction timeout, and device and medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021038784A1 (en) 2019-08-29 2021-03-04 日本たばこ産業株式会社 Program, method, and system for checking suction method of flavor suction instrument, etc.

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101000596A (en) * 2007-01-22 2007-07-18 北京中星微电子有限公司 Chip and communication method of implementing communicating between multi-kernel in chip and communication method
CN102025652A (en) * 2010-06-04 2011-04-20 西本新干线股份有限公司 Service bus and message processing method
CN104378724A (en) * 2014-11-18 2015-02-25 缪建民 MEMS silicon microphone without large back acoustic cavity

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101572702B (en) * 2009-05-27 2012-07-25 大连理工计算机控制工程有限公司 Method for scheduling high-speed bus master and slave network communication
CN102207918B (en) * 2011-06-07 2014-04-23 北京北大众志微***科技有限责任公司 On-chip bus arbitration method and on-chip bus arbitration device
CN104378274B (en) * 2014-11-20 2017-12-15 中国船舶重工集团公司第七二六研究所 Dereliction network communicating system based on CAN

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101000596A (en) * 2007-01-22 2007-07-18 北京中星微电子有限公司 Chip and communication method of implementing communicating between multi-kernel in chip and communication method
CN102025652A (en) * 2010-06-04 2011-04-20 西本新干线股份有限公司 Service bus and message processing method
CN104378724A (en) * 2014-11-18 2015-02-25 缪建民 MEMS silicon microphone without large back acoustic cavity

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022121470A1 (en) * 2020-12-07 2022-06-16 苏州浪潮智能科技有限公司 Method and system for processing instruction timeout, and device and medium

Also Published As

Publication number Publication date
CN106372019B (en) 2019-04-30
WO2017012459A1 (en) 2017-01-26

Similar Documents

Publication Publication Date Title
CN100546262C (en) A kind of broadband aviation electronic bus testing apparatus and method of operation thereof
CN102857397A (en) Multi-master asynchronous duplex differential bus and communication method
CN104699654B (en) One kind is based on interconnection interconnection adaption system and method between CHI on-chip interconnection buss and QPI pieces
CN107786405A (en) Multinode automatic network-building method based on CAN
CN109739786A (en) A kind of dma controller and isomery acceleration system
CN104035901A (en) TTCAN bus timing and data transmitting method
CN102496955B (en) Intelligent photovoltaic system and method for data detection and transmission
CN105490960B (en) Message forwarding method and system based on SDN framework
CN106372019A (en) Processing method for response timeout of system bus equipment and timeout processor
CN104022972A (en) Ethernet switch configuration method and switch applying the same
CN108173713A (en) A kind of more network interface card parallel test methods of list PC
CN202872468U (en) Real-time data access interface devic of SCADA (Supervisory Control and Data Acquisition) system
CN107070911A (en) The method and traffic comprehensive monitoring system of a kind of information transfer
CN106557362A (en) It is applied to the task immigration method and system of intelligent robot
CN201072431Y (en) Broadband aviation electronic bus testing device
CN104518929B (en) A kind of IPv6 protocol synthesises Auto-Test System
CN204595794U (en) USB computer switcher signal extender and extender system
CN109687985B (en) Automatic configuration method and system for process level network of transformer substation
CN206226346U (en) Electric machine control system
CN207209640U (en) A kind of elevator remote monitoring system
CN109062845A (en) multi-terminal control method and system
CN104113454A (en) Gasoline station intelligent controller and communication system based on the same
CN106708701A (en) Central maintenance device and method based on ARINC659 bus
CN103297439B (en) The control method of AC group facility based on SNMP, Apparatus and system
EP2911423A1 (en) Implementation method and device for virtual southbound interface and internet of things management platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20170201

Assignee: Xi'an Chris Semiconductor Technology Co. Ltd.

Assignor: SHENZHEN ZTE MICROELECTRONICS TECHNOLOGY CO., LTD.

Contract record no.: 2019440020036

Denomination of invention: Processing method for response timeout of system bus equipment and timeout processor

Granted publication date: 20190430

License type: Common License

Record date: 20190619

EE01 Entry into force of recordation of patent licensing contract