CN106372019B - A kind of processing method and timeout treatment device of system bus devices response timeout - Google Patents

A kind of processing method and timeout treatment device of system bus devices response timeout Download PDF

Info

Publication number
CN106372019B
CN106372019B CN201510427662.1A CN201510427662A CN106372019B CN 106372019 B CN106372019 B CN 106372019B CN 201510427662 A CN201510427662 A CN 201510427662A CN 106372019 B CN106372019 B CN 106372019B
Authority
CN
China
Prior art keywords
equipment
response
slave equipment
time
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.)
Active
Application number
CN201510427662.1A
Other languages
Chinese (zh)
Other versions
CN106372019A (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

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 kind of processing methods of system bus devices response timeout, comprising: from the response time of equipment in system bus devices described in real-time monitoring;When monitored slave equipment response timeout, the importance rate that the slave equipment of response timeout occurs is judged;The slave equipment that response timeout occurs is handled based on judging result.The embodiment of the invention also discloses a kind of timeout treatment devices.

Description

A kind of processing method and timeout treatment device of system bus devices response timeout
Technical field
The present invention relates to the processing methods of bus apparatus field more particularly to a kind of system bus devices response timeout and super When processing unit.
Background technique
Currently, the communication connection of various bus apparatus is realized usually using one or more cascade bus bar modules, Here various bus apparatus can be located at the same system on chip (System on Chip, SoC).Fig. 1 is in the prior art The structural schematic diagram for the bus bar module that SoC system uses, as shown in Figure 1, there are three main equipment and six altogether from equipment, this In, three main equipments are respectively main equipment 0, main equipment 1 and 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 from pass through between equipment two bus bar modules realize it is logical Letter connection, the two bus bar modules are 3 main 4 from bus bar module and 1 main 3 from bus bar module, and 3 main 4 from bus Interconnection module be separately connected three main equipments, from equipment 3, from equipment 4, from equipment 5 and 1 main 3 from bus bar module, 1 main 3 from Bus bar module is separately connected 3 main 4 from bus bar module, from equipment 6, from equipment 7 and from equipment 8.
Under normal conditions, bus apparatus is all based on bus bar module shown in FIG. 1 to realize mutual communication Connection, for example, central processing unit (CPU), digital signal processor (DSP), high-speed intelligent peripheral hardware in SoC system (Intelligent Peripheral, IP) and low speed IP connect the corresponding interface of bus bar module.
Here, main equipment and the process interacted from equipment are as follows: main equipment passes through bus interface to bus bar module Request of data is sent, request of data, which can be, to be read from the data of equipment or data are written to from equipment;Bus bar module is logical It crosses corresponding bus interface and sends request of data to from equipment;Request of data is received on corresponding interface from equipment, and is docked The request of data of receipts is responded, and response signal is sent to bus bar module, bus bar by corresponding bus interface Response signal is sent to main equipment by corresponding bus interface by module.
For demand more multiplicity or the more complicated circuit of design, the type or quantity of bus apparatus are also with regard to more, function It can be also relative complex;Also, IP used in these bus apparatus may be from different manufacturers, or be opened by different team Hair.Although the interface of these bus apparatus is all based on what standard bus protocol was developed, bus apparatus can also be all The influence of more extraneous factors, the working condition of the electromagnetic interference, external equipment that are subject to such as chip pin signal quality, veneer and Artificial incorrect operation etc..Under the influence of above-mentioned extraneous factor, the instruction that bus apparatus may initiate bus can not be made in time It responds out, that is, the case where bus apparatus response timeout occurs.
The existing scheme handled bus apparatus response timeout has the following problems: can only be according to identical mode Response timeout processing is carried out to each bus apparatus, response timeout processing cannot be carried out based on the importance of bus apparatus, be easy The treatment effeciency and bus apparatus for reducing bus apparatus response timeout restore the efficiency worked normally.
Summary of the invention
In order to solve the above technical problems, an embodiment of the present invention is intended to provide a kind of processing of system bus devices response timeout Method and timeout treatment device can neatly select the processing strategie of system bus devices response timeout according to application scenarios, Improve the treatment effeciency of system bus devices response timeout.
The technical scheme of the present invention is realized as follows:
The embodiment of the invention provides a kind of processing methods of system bus devices response timeout, comprising:
From the response time of equipment in real-time monitoring system bus apparatus;
When monitored slave equipment response timeout, the importance rate that the slave equipment of response timeout occurs is judged;
The slave equipment that response timeout occurs is handled based on judging result.
In above scheme, in the real-time monitoring system bus apparatus from the response time of equipment include: setting at least one A timeout treatment device, each timeout treatment device are corresponding from equipment at least one of system bus devices;Surpassed using each When processing unit difference real-time monitoring it is corresponding from equipment issue response signal time.
In above scheme, the importance rate of the slave equipment that response timeout occurs is the first importance rate or second Importance rate;
If it is described based on judging result to it is described occur response timeout slave equipment carry out processing include: described ring The importance rate for answering the slave equipment of time-out is the first importance rate, then corresponding timeout treatment device is to bus bar module Report time-out information, the bus bar module is for realizing main equipment in the system bus devices and from the number between equipment According to interaction;
If the importance rate of the slave equipment that response timeout occurs is the second importance rate, corresponding time-out Processing unit replaces the slave equipment that response timeout occurs to issue response signal.
In above scheme, after corresponding timeout treatment device reports time-out information to the bus bar module, institute State method further include:
The bus bar module is to each bus in the default coverage of the slave equipment that response timeout occurs Equipment carries out reset processing.
In above scheme, when the importance rate of the slave equipment that response timeout occurs is the second importance rate, institute State method further include: corresponding timeout treatment device carries out reset processing to the slave equipment that response timeout occurs, and/or, Time-out information is reported to the bus bar module.
In above scheme, the corresponding timeout treatment device replaces the slave equipment that response timeout occurs to issue response Signal, comprising:
If the presently described slave equipment that response timeout occurs is in order transmission stage, corresponding timeout treatment device Response signal is issued instead of the slave equipment that response timeout occurs;
If the presently described slave equipment that response timeout occurs is in data transfer phase, corresponding timeout treatment device Response signal is issued instead of the slave equipment that response timeout occurs, and judges the presently described slave equipment that response timeout occurs Data to be transmitted packet whether be this data transmission the last one data packet;If it is last number of this data transmission According to packet, then reset processing is carried out to the slave equipment that response timeout occurs, and/or, Xiang Suoshu bus bar module reports super When information.
In above scheme, while in real-time monitoring system bus apparatus from the response time of equipment, the method is also Include:
Judge whether be more than or equal to timeout threshold from the response time of equipment in the system bus devices, if it is greater than etc. In timeout threshold, then monitored slave equipment response timeout.
In above scheme, in the system bus devices described in real-time monitoring before the response time of equipment, the method Further include:
Demand based on application scenarios configures the importance rate of the slave equipment in the system bus devices.
The embodiment of the invention also provides a kind of timeout treatment devices, including monitoring modular, judgment module and processing module; Wherein,
Monitoring modular, for the response time in real-time monitoring system bus apparatus from equipment;
Judgment module, the weight of the slave equipment in monitored slave equipment response timeout, judging generation response timeout The property wanted grade;
Processing module is handled the slave equipment that response timeout occurs based on judging result.
In above scheme, a described device is corresponding from equipment at least one of system bus devices;
Each described device is respectively used to the real-time monitoring corresponding response time from equipment.
In above scheme, the importance rate of the slave equipment that response timeout occurs is the first importance rate or second Importance rate;
The processing module is also used in the importance rate of the slave equipment that response timeout occurs be the first importance When grade, time-out information is reported to bus bar module, is the in the importance rate of the slave equipment that response timeout occurs When two importance rates, response signal is issued instead of the slave equipment that response timeout occurs;The bus bar module is used for Realize in the system bus devices main equipment and from the data interaction between equipment.
In above scheme, the bus bar module, for being responded to the generation super after receiving time-out information When slave equipment default coverage in each bus apparatus carry out reset processing.
In above scheme, the processing module is also used to the importance rate in the slave equipment that response timeout occurs When for the second importance rate, reset processing is carried out to the slave equipment that response timeout occurs, and/or, Xiang Suoshu bus is mutual Gang mould block reports time-out information.
In above scheme, the processing module is also used to be in order in the presently described slave equipment that response timeout occurs When the transmission stage, response signal is issued instead of the slave equipment that response timeout occurs;In presently described generation response timeout When being in data transfer phase from equipment, response signal is issued instead of the slave equipment that response timeout occurs, and judge current It is described occur response timeout slave equipment data to be transmitted packet whether be this data transmission the last one data packet;If It is the last one data packet of this data transmission, then to the slave equipment progress reset processing that response timeout occurs, and/ Or, reporting time-out information to the bus bar module.
The processing method and timeout treatment device of a kind of system bus devices response timeout provided in an embodiment of the present invention, by It is super to response based on the importance from equipment from the response time of equipment in timeout treatment device real-time monitoring system bus apparatus Shi Jinhang processing improves in this way, can neatly select the processing strategie of system bus devices response timeout according to application scenarios The treatment effeciency of system bus devices response timeout.
Detailed description of the invention
Fig. 1 is the structural schematic diagram for the bus bar module that SoC system uses in the prior art;
Fig. 2 is the flow chart of the first embodiment of the processing method of present system bus apparatus response timeout;
Fig. 3 is bus transfer format in the first embodiment of the processing method of present system bus apparatus response timeout Schematic diagram;
Fig. 4 is the flow chart of the second embodiment of the processing method of present system bus apparatus response timeout;
Fig. 5 is that data transmission response is super in the second embodiment of the processing method of present system bus apparatus response timeout When process flow diagram;
Fig. 6 is bus transfer format in the 3rd embodiment of the processing method of present system bus apparatus response timeout Schematic diagram;
Fig. 7 is to transmit twice before carrying out in the 3rd embodiment of the processing method of present system bus apparatus response timeout When flow chart;
Fig. 8 is that third time transmission is carried out in the 3rd embodiment of the processing method of present system bus apparatus response timeout When flow chart;
Fig. 9 carries out the 4th transmission in the 3rd embodiment for the processing method of present system bus apparatus response timeout When flow chart;
Figure 10 carries out the 5th biography in the 3rd embodiment for the processing method of present system bus apparatus response timeout Flow chart when defeated;
Figure 11 is the composed structure schematic diagram of timeout treatment of embodiment of the present invention device.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description.
First embodiment
Fig. 2 is the flow chart of the first embodiment of the processing method of present system bus apparatus response timeout, such as Fig. 2 institute Show, this method comprises:
Step 200: the response time of the slave equipment in system bus devices described in real-time monitoring.
Here, system bus devices include bus bar module, at least one main equipment, at least one from equipment, master sets Standby to be connected by bus bar module from equipment, bus bar module can be used to implement main equipment and from the data between equipment Interaction.
Here, main equipment is the equipment for issuing request of data to bus bar module in system bus devices, request of data It can be and read some data are written from the data of equipment or to some from equipment;It from equipment is connect in system bus devices The equipment received the request of data from bus bar module and the request of data is responded.Main equipment is connected by main interface Bus bar module, from equipment by from Interface connection bus interconnection module;It should be noted that if an equipment was both supported Main interface supports again that from interface, then the equipment is main equipment when being communicated using main interface, is led in use from interface Believe Shi Weicong equipment.
Here, refer to from the response time of equipment: to working as at the time of from equipment from the request of data for receiving bus bar module The time span at preceding moment.
Specifically, the slave equipment sending response signal time in system bus devices described in the real-time monitoring includes: to set At least one timeout treatment device is set, each timeout treatment device is corresponding from equipment at least one of system bus devices; Utilize each timeout treatment device difference real-time monitoring corresponding time that response signal is issued from equipment.Here, timeout treatment fills It sets and can be one-to-one relationship from equipment, can also be corresponded to a timeout treatment device multiple from equipment.
It is open state or closed state it is possible to further configure the working condition of timeout treatment device, can use Timeout treatment device in the open state is monitored to corresponding from equipment, cannot be utilized at the time-out being in close state Reason device is monitored to corresponding from equipment.Here it is possible to be pre-configured with timeout treatment device according to the demand of application scenarios In the open state or closed state;It should be noted that can be in the slave equipment in system bus devices described in real-time monitoring Issue the response signal time before carry out timeout treatment device working condition configuration, can also when changing application scenarios into The configuration of the working condition of row timeout treatment device can also carry out real-time in the case where not influencing system bus devices work Configuration.
Here, described before the time that the slave equipment in the system bus devices described in real-time monitoring issues response signal Method further include: the demand based on application scenarios configures the importance rate of the slave equipment in the system bus devices;Example Such as, for the slave equipment in the system bus devices, two importance rates are configured altogether, that is to say, that from the important of equipment Property grade be the first importance rate or the second importance rate;From the importance rate of equipment be the first importance rate when, It is important equipment from equipment;From the importance rate of equipment be the second importance rate when, from equipment be insignificant equipment.
It specifically, can will be important equipment or insignificant equipment from device configuration according to the demand of application scenarios.It needs Illustrate, with the change of application scenarios, the slave equipment in the system bus devices may be become non-heavy from important equipment Want equipment, it is also possible to there is insignificant equipment to become important equipment.
Step 201: when the monitored response timeout from equipment, judging the importance etc. that the slave equipment of response timeout occurs Grade.
Specifically, judge whether the response time of the slave equipment in the system bus devices is more than or equal to timeout threshold, If it is larger than or equal to timeout threshold, then monitored slave equipment response timeout;Otherwise, monitored to be had not timed out from equipment response.
Here it is possible to configure timeout threshold according to the demand of application scenarios, that is to say, that for same from equipment, Under different application scenarios, different timeout thresholds, and then corresponding different importance rate can be configured.
Step 202: the slave equipment that response timeout occurs being handled based on judging result.
Here, judging result is the slave equipment importance rate that response timeout occurs;It can be according to importance rate It determines the classification that the slave equipment of response timeout occurs, 1 natural number is greater than from the classification sum of equipment;For example, if For the slave equipment in the system bus devices, configure two importance rates altogether, then it can be according to generation response timeout From equipment importance rate, determine should to be important equipment or insignificant equipment from equipment.
Illustrate the process handled the slave equipment that response timeout occurs in two kinds of situation below.
The first situation: the slave equipment that response timeout occurs is important equipment.
It is described to it is described occur response timeout slave equipment carry out processing include: occur response timeout slave equipment it is corresponding Timeout treatment device reports time-out information to the bus bar module, for example, being equipped with processor in bus bar module, utilizes Processor receives time-out information, and processor is after receiving time-out information, to the pre- of the slave equipment that response timeout occurs If each bus apparatus in coverage, which carries out reset processing, can remove the processing industry from equipment when carrying out reset processing Business and data flow.
Here, one or more equipment in system bus devices be can be from the default coverage of equipment, if from The reset mode of any one equipment in the default coverage of equipment is special reset mode, and processor can be by this time Reset processing is carried out to from equipment according to the special reset mode.For the bus apparatus in SoC system, from the pre- of equipment If coverage may be in entire SoC system, the subsystem in SoC system, such as presetting from equipment also may be at Coverage is in the storage subsystem in SoC system.
Here, it is provided with each of timeout treatment device and is connected with a status register from equipment;In this way, timeout treatment Device can report time-out information to processor using two kinds of reporting schemes;Wherein, the first reporting schemes are as follows: timeout treatment dress It sets time-out information write state register, status register generates interrupt notification processor and reads the time-out information;Second Reporting schemes are as follows: timeout treatment device waits time-out information write state register in processor inquiry status register Content.
Second situation: the slave equipment that response timeout occurs is non-important equipment.
The slave equipment that response timeout occurs is non-important equipment, then corresponding timeout treatment device replaces the generation The slave equipment of response timeout issues response signal.Specifically, timeout treatment device replace it is described occur response timeout from setting It is standby to issue response signal to bus bar module, guarantee that system bus can work on, effectively improves and system bus is set The treatment effeciency of standby response timeout.
Further, the slave equipment that response timeout occurs is replaced to issue to bus bar module in timeout treatment device While response signal, reset processing is carried out to the slave equipment that response timeout occurs, and/or, Xiang Suoshu bus bar mould Block reports time-out information.When carrying out reset processing to the slave equipment that response timeout occurs, can understand super from equipment response The relevant state of Shi Qianyu bus;When reporting time-out information to the bus bar module, timeout treatment device believes time-out Write state register is ceased, the content in processor inquiry status register is waited.
Below to illustrate two different scenes for direct memory access (Direct Memory Access, DMA) equipment Under timeout treatment strategy, two different scenes here are scene 1 and scene 2.In scene 1, dma device is equipped with time-out Processing unit and timeout treatment device is in the open state, dma device is important equipment, the time-out information side of reporting of dma device Formula is the first above-mentioned reporting schemes, and the timeout threshold of dma device is set as 100 clock cycle.Table 1 is that bus is set in scene 1 Standby timeout treatment strategy allocation list, wherein the equipment in scene 1 includes CPU, DSP, the storage of Double Data Rate synchronous dynamic random Device (Double Data Rate, DDR), DMA, universal asynchronous receiving-transmitting transmitter (Universal Asynchronous Receiver/Transmitter, UART), I2C (Inter-Integrated Circuit) bus apparatus and bus expand It opens up device (General Purpose Input Output, GPIO), N/A indicates the corresponding not set timeout treatment dress of bus apparatus It sets or timeout treatment device is in close state, closing indicates that timeout treatment device is in close state, and opening indicates at time-out Reason device is in the open state, and the unit of timeout threshold is the periodicity of clock domain where equipment.
In scene 2, dma device is equipped with timeout treatment device and timeout treatment device is in the open state, and dma device is Insignificant equipment, the timeout threshold of dma device are set as 1000 clock cycle.Table 2 is the timeout treatment of bus apparatus in scene 2 Tactful allocation list, wherein the equipment in scene 2 is identical as the equipment in scene 1, and N/A indicates that corresponding bus apparatus is not set Timeout treatment device or timeout treatment device are in close state, and closing indicates that timeout treatment device is in close state, and are opened Indicate that timeout treatment device is in the open state, the unit of timeout threshold is the periodicity of clock domain where equipment.
Table 1
Table 2
In first embodiment of the invention, main equipment is read from the data of equipment or to when data are written from equipment, is divided into Order transmission stage and corresponding data transfer phase are referred to as once by order transmission stage and data transfer phase here Transmit total time.Currently used bus protocol such as high-speed bus agreement not only has an independent read/write channel, and for For read channel or write access, also while there is mutually independent command channel and data channel, wherein command channel is for real Now order transmission, data channel is for realizing data transmission.
Further, in data transfer phase, the data if necessary to transmission are longer, then the data for needing to transmit pass through more The form of a data packet completes transmission.Fig. 3 is the first embodiment of the processing method of present system bus apparatus response timeout The schematic diagram of middle bus transfer format, as shown in figure 3, the data transmitted is needed to be made of data packet 1 to data packet n.
Here, the order transmission stage is likely to occur in from the response timeout of equipment, it is also possible to occur in some data The transmission stage of packet.If order transmission response time-out or data are had occurred and that within current primary transmission total time from equipment Transmission response time-out, then transmit current data packet only will need to wait the transmission of the last one data packet without practical significance at this time Response terminates, and then resets and corresponds to from equipment and report time-out information.
Specifically, the corresponding timeout treatment device replaces the slave equipment that response timeout occurs to issue response letter Number, comprising:
If the presently described slave equipment that response timeout occurs is in order transmission stage, corresponding timeout treatment device Response signal is issued instead of the slave equipment that response timeout occurs.
If the presently described slave equipment that response timeout occurs is in data transfer phase, corresponding timeout treatment device Response signal is issued instead of the slave equipment that response timeout occurs, and judges the presently described slave equipment that response timeout occurs Data to be transmitted packet whether be this data transmission the last one data packet;If it is last number of this data transmission According to packet, then reset processing is carried out to the slave equipment that response timeout occurs, and/or, Xiang Suoshu bus bar module reports super When information;If not the last one data packet of this data transmission, then terminate process.
It should be noted that being sent out if system bus carries out order transmission and data transmission using the same channel When the slave equipment of raw response timeout is non-important equipment, corresponding timeout treatment device replace it is described occur response timeout from setting Standby directly sending response signal can simplify system bus at this point, will not handle respectively according to the different transmission stages in this way The process flow of equipment response timeout.
Second embodiment
In order to more embody the purpose of the present invention, on the basis of first embodiment of the invention, further lifted Example explanation.
Fig. 4 is the flow chart of the second embodiment of the processing method of present system bus apparatus response timeout, such as Fig. 4 institute Show, this method comprises:
Step 400: judge it is whether in the open state from the corresponding timeout treatment device of equipment, if timeout treatment device It is whether in the open state, 401 are thened follow the steps, otherwise, terminates process.
Here it is possible to be pre-configured with, timeout treatment device is in the open state or closed state.
Step 401: timeout treatment device records the transmission solicited message current from equipment, when judgement currently once transmits total It is interior whether to have had already appeared data transmission response time-out or order transmission response time-out, if so, 403 are thened follow the steps, it is no Then, step 402 is executed.
Specifically, within current primary transmission total time, if having occurred that data packet transmission response time-out or life Enable transmission response overtime, then the moment has had already appeared data into the transmission of the response signal of bus bar module from equipment before illustrating Transmission response time-out or order transmission response time-out.
Here, due to once transmitting in total time always using order transmission as starting, if current time needs to transmit Order, it is clear that there are no data packet transmission response time-out or order transmission response time-out occurs, then follow the steps 402.
Step 402: judging whether issue response signal at the appointed time from equipment, if it is, the life that explanation is current It enables transmission or data packet be transmitted, does not occur from equipment the case where time-out response, directly terminate process at this time;If not, Then response timeout occurs for the current order transmission of explanation or the transmission of data packet, executes step 403.
Step 403: judge whether from equipment be important equipment, if being important equipment from equipment, thens follow the steps 404, If being non-important equipment from equipment, 405 are thened follow the steps.
Step 404: processor of the timeout treatment device into bus bar module reports time-out information, then terminates to flow Journey.
In this step, time-out information may include: from the current transmission solicited message of equipment, from device attribute information and Temporal information.Processor can select to continue waiting for from the response signal of equipment or to from setting according to the time-out information received It is standby to carry out reset processing.
Step 405: timeout treatment device judges that current time is in order transmission stage or data transmission rank from equipment Section thens follow the steps 406 if being in the order transmission stage, if being in data transfer phase, thens follow the steps 407.
Specifically, timeout treatment device judges current time from equipment according to the transmission solicited message current from equipment In order transmission stage or data transfer phase.
Step 406: timeout treatment device obtains from the bus of equipment and responds permission, issues response signal, and record time-out Information terminates process later.
It due to including order transmission and data transmission from transmission of the equipment within once transmission total time, and is with number The completion for terminating according to transmission, therefore cannot carrying out reset processing to from equipment at this time, but pending datas to be waited to transmit.Separately Outside, timeout treatment device will not be discharged from the bus of equipment response permission in this step.
Step 407: timeout treatment device obtains from the bus of equipment and responds permission, issues response signal, records time-out letter Breath executes step 408.
Fig. 5 is that data transmission response is super in the second embodiment of the processing method of present system bus apparatus response timeout When process flow diagram, as shown in figure 5, step 407 specifically includes:
Step 500: judging whether the corresponding order transmission of this data transmission overtime response occurs, if it is, holding Row step 503;Otherwise, step 501 is executed.
Step 501: in current primary transmission total time, judging whether to have already appeared data packet transmission time-out response, such as Fruit is to then follow the steps 503, otherwise, executes step 502.
Step 502: obtaining bus and respond permission, execute step 503.
Step 503: timeout treatment device replaces issuing response signal from equipment, records time-out information.
Step 408: whether the data to be transmitted packet for judging the presently described slave equipment that response timeout occurs is this data The last one data packet of transmission;If so, thening follow the steps 409;If not the last one data of this data transmission Packet, then terminate process.
Step 409: reset processing being carried out to the slave equipment that response timeout occurs, release bus responds permission, executes Step 404.
3rd embodiment
In order to more embody the purpose of the present invention, on the basis of first embodiment of the invention and second embodiment, into Row is further to be illustrated.
It in third embodiment of the invention, is illustrated for being non-important equipment from equipment, the insignificant equipment setting There is timeout treatment device in the open state.Fig. 6 is the third of the processing method of present system bus apparatus response timeout The schematic diagram of bus transfer format in embodiment, as shown in fig. 6, needing to complete an order transmission and 4 data packets from equipment Transmission, this 4 data packets are expressed as data packet 1, data packet 2, data packet 3 and data packet 4, it is clear that from equipment need into Row 5 times transmission could complete above-mentioned order transmission and 4 data packet transmission.Specifically, first time transmission is carried out from equipment When, complete order transmission;When carrying out second of transmission from equipment, completes data packet 1 and transmit;Third time transmission is carried out from equipment When, it completes data packet 2 and transmits;When carrying out the 4th transmission from equipment, completes data packet 3 and transmit;The 5th biography is carried out from equipment When defeated, complete data packet 4 and transmit.
Fig. 7 is to transmit twice before carrying out in the 3rd embodiment of the processing method of present system bus apparatus response timeout When flow chart, as shown in fig. 7, the process includes:
Step 700: judging whether in the open state from the corresponding timeout treatment device of equipment, it is clear that timeout treatment dress Set in the open state, execution step 701.
Step 701: timeout treatment device records the transmission solicited message current from equipment, when judgement currently once transmits total It is interior whether to have had already appeared data transmission response time-out or order transmission response time-out, it is clear that when being transmitted twice before progress, Occur the situation of data transmission response time-out or order transmission response time-out in current primary transmission total time not yet, at this point, Execute step 702.
Step 702: judge whether issue response signal at the appointed time from equipment, when being transmitted twice before progress, from Equipment can timely respond to, so directly terminating process at this time.
Fig. 8 is that third time transmission is carried out in the 3rd embodiment of the processing method of present system bus apparatus response timeout When flow chart, as shown in figure 8, the process includes:
Step 800: judging whether in the open state from the corresponding timeout treatment device of equipment, it is clear that timeout treatment dress Set it is in the open state, at this time execute step 801.
Step 801: timeout treatment device records the transmission solicited message current from equipment, when judgement currently once transmits total It is interior whether to have had already appeared data transmission response time-out or order transmission response time-out, it is clear that when carrying out third time transmission, Occur the situation of data transmission response time-out or order transmission response time-out in current primary transmission total time not yet, at this point, Execute step 802.
Step 802: judge whether issue response signal at the appointed time from equipment, when carrying out third time transmission, When seeking to transmission data packet 2, it may appear that response timeout executes step 803 at this time.
Step 803: judging whether from equipment be important equipment, because being non-important equipment from equipment, execute step at this time 804。
Step 804: timeout treatment device judges that current time is in order transmission stage or data transmission rank from equipment Section, it is clear that current time is in data transfer phase from equipment, executes step 805 at this time.
Step 805: timeout treatment device obtains from the bus of equipment and responds permission, issues response signal, records time-out letter Breath executes step 806.
The specific implementation process and step 407 of step 805 are consistent, and I will not elaborate.
Step 806: whether the data to be transmitted packet for judging the presently described slave equipment that response timeout occurs is this data The last one data packet of transmission;Current time is data packet 2 from the data to be transmitted packet of equipment, and data packet 2 is not this number According to the last one data packet of transmission, terminate process at this time.
Fig. 9 carries out the 4th transmission in the 3rd embodiment for the processing method of present system bus apparatus response timeout When flow chart, as shown in figure 9, the process includes:
Step 900: judging whether in the open state from the corresponding timeout treatment device of equipment, it is clear that timeout treatment dress Set it is in the open state, at this time execute step 901.
Step 901: timeout treatment device records the transmission solicited message current from equipment, when judgement currently once transmits total It is interior whether to have had already appeared data transmission response time-out or order transmission response time-out, it is clear that when carrying out the 4th transmission, The situation of data packet 2 transmission response time-out has been had already appeared, has executed step 902 at this time.
Step 902: judging whether from equipment be important equipment, be non-important equipment from equipment, execute step 903 at this time.
Step 903: timeout treatment device judges that current time is in order transmission stage or data transmission rank from equipment Section, it is clear that current time is in data transfer phase from equipment, executes step 904 at this time.
Step 904: timeout treatment device obtains from the bus of equipment and responds permission, issues response signal, records time-out letter Breath executes step 905.
The specific implementation process and step 407 of step 904 are consistent, and I will not elaborate.
Step 905: whether the data to be transmitted packet for judging the presently described slave equipment that response timeout occurs is this data The last one data packet of transmission;Current time is data packet 3 from the data to be transmitted packet of equipment, and data packet 3 is not this number According to the last one data packet of transmission, terminate process at this time.
Figure 10 carries out the 5th biography in the 3rd embodiment for the processing method of present system bus apparatus response timeout Flow chart when defeated, as shown in Figure 10, which includes:
Step 1000: judging whether in the open state from the corresponding timeout treatment device of equipment, it is clear that timeout treatment dress Set it is in the open state, at this time execute step 1001.
Step 1001: timeout treatment device records the transmission solicited message current from equipment, judges that current primary transmission is total Whether data transmission response time-out or order transmission response time-out have been had already appeared in time, it is clear that are carrying out the 4th transmission When, the situation of data packet 2 transmission response time-out has been had already appeared, has executed step 1002 at this time.
Step 1002: judging whether from equipment be important equipment, is non-important equipment from equipment, executes step at this time 1003。
Step 1003: timeout treatment device judges that current time is in order transmission stage or data transmission rank from equipment Section, it is clear that current time is in data transfer phase from equipment, executes step 1004 at this time.
Step 1004: timeout treatment device obtains from the bus of equipment and responds permission, issues response signal, records time-out letter Breath executes step 1005.
The specific implementation process and step 407 of step 1004 are consistent, and I will not elaborate.
Step 1005: whether the data to be transmitted packet for judging the presently described slave equipment that response timeout occurs is this data The last one data packet of transmission;Current time is data packet 4 from the data to be transmitted packet of equipment, and data packet 4 is this data The last one data packet of transmission executes step 1006 at this time.
Step 1006: reset processing being carried out to the slave equipment that response timeout occurs, release bus responds permission, to total Processor in line interconnection module reports time-out information, then terminates 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 composed structure schematic diagram of timeout treatment of embodiment of the present invention device, and as shown in figure 11, which includes Monitoring modular 1100, judgment module 1101 and processing module 1102;Wherein,
Monitoring modular 1100, for the response time in system bus devices described in real-time monitoring from equipment.
Judgment module 1101, for judging the slave equipment of generation response timeout in monitored slave equipment response timeout Importance rate.
Processing module 1102 is handled the slave equipment that response timeout occurs based on judging result.
Each timeout treatment device is corresponding from equipment at least one of system bus devices, each time-out Processing unit is respectively used to the real-time monitoring corresponding response time from equipment.
Further, described device further includes configuration module 1103, is in unlatching for being pre-configured with timeout treatment device State or closed state, the importance rate and timeout threshold of HRP-configured slave device are here first from the importance rate of equipment Importance rate or the second importance rate;From the importance rate of equipment be the first importance rate when, from equipment be it is important Equipment;From the importance rate of equipment be the second importance rate when, from equipment be insignificant equipment.Configuration module 1103, also For configuring the time-out information reporting schemes of important equipment.
The processing module 1102 is also used to when the slave equipment that response timeout occurs is important equipment, to bus Interconnection module reports time-out information, when the slave equipment that response timeout occurs is non-important equipment, rings instead of described The slave equipment of time-out is answered to issue response signal.The bus bar module for realizing main equipment in the system bus devices with From the data interaction between equipment.
The bus bar module, for after receiving time-out information, to the slave equipment that response timeout occurs Default coverage in each bus apparatus carry out reset processing.
The processing module 1102 is also used to when the slave equipment that response timeout occurs is non-important equipment, to institute The slave equipment progress reset processing that response timeout occurs is stated, and/or, Xiang Suoshu bus bar module reports time-out information.
The processing module 1102 is also used to be in the order transmission stage in the presently described slave equipment that response timeout occurs When, response signal is issued instead of the slave equipment that response timeout occurs;At the presently described slave equipment that response timeout occurs When data transfer phase, response signal is issued instead of the slave equipment that response timeout occurs, and judge presently described generation The data to be transmitted packet of the slave equipment of response timeout whether be this data transmission the last one data packet;If it is this number According to the last one data packet of transmission, then reset processing is carried out to the slave equipment that response timeout occurs, and/or, Xiang Suoshu Bus bar module reports time-out information.
In practical applications, the monitoring modular 1100, judgment module 1101, processing module 1102 and configuration module 1103 It can be by central processing unit (Central Processing Unit, CPU), the microprocessor (Micro in SoC system Processor Unit, MPU), digital signal processor (Digital Signal Processor, DSP) or field-programmable Gate array (Field Programmable Gate Array, FPGA) etc. is realized.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, the shape of hardware embodiment, software implementation or embodiment combining software and hardware aspects can be used in the present invention Formula.Moreover, the present invention, which can be used, can use storage in the computer that one or more wherein includes computer usable program code The form for the computer program product implemented on medium (including but not limited to magnetic disk storage and optical memory etc.).
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.

Claims (14)

1. a kind of processing method of system bus devices response timeout, which is characterized in that the described method includes:
From the response time of equipment in real-time monitoring system bus apparatus;
When monitored slave equipment response timeout, the importance rate that the slave equipment of response timeout occurs is judged, it is described to ring The importance rate for answering the slave equipment of time-out is the first importance rate or the second importance rate;
The slave equipment that response timeout occurs is handled based on judging result;The judging result that is based on is to the generation It includes: that the classification of the slave equipment that response timeout occurs is determined according to judging result that the slave equipment of response timeout, which carries out processing, When the importance rate that the judging result is the slave equipment that response timeout occurs is the first importance rate, institute is determined The slave equipment for stating generation response timeout is important equipment, executes the corresponding treatment process of important equipment to the important equipment;When The judging result be it is described occur response timeout slave equipment importance rate be the second importance rate when, determine described in The slave equipment that response timeout occurs is insignificant equipment, and it is corresponding processed to execute insignificant equipment to the insignificant equipment Journey.
2. the method according to claim 1, wherein from the sound of equipment in the real-time monitoring system bus apparatus It include: at least one that at least one timeout treatment device, each timeout treatment device and system bus devices are set between seasonable It is corresponding from equipment;Utilize each timeout treatment device difference real-time monitoring corresponding time that response signal is issued from equipment.
3. according to the method described in claim 2, it is characterized in that,
It is described based on judging result to it is described occur response timeout slave equipment carry out processing specifically include: if described ring The importance rate for answering the slave equipment of time-out is the first importance rate, then corresponding timeout treatment device is to bus bar module Report time-out information, the bus bar module is for realizing main equipment in the system bus devices and from the number between equipment According to interaction;
If the importance rate of the slave equipment that response timeout occurs is the second importance rate, corresponding timeout treatment Device replaces the slave equipment that response timeout occurs to issue response signal.
4. according to the method described in claim 3, it is characterized in that, in corresponding timeout treatment device to the bus bar mould After block reports time-out information, the method also includes:
The bus bar module is to each bus apparatus in the default coverage of the slave equipment that response timeout occurs Carry out reset processing.
5. according to the method described in claim 3, it is characterized in that, the importance rate of the slave equipment that response timeout occurs When for the second importance rate, the method also includes: corresponding timeout treatment device to it is described occur response timeout from setting Standby progress reset processing, and/or, Xiang Suoshu bus bar module reports time-out information.
6. according to the method described in claim 3, it is characterized in that, the corresponding timeout treatment device replaces described ring The slave equipment of time-out is answered to issue response signal, comprising:
If the presently described slave equipment that response timeout occurs is in the order transmission stage, corresponding timeout treatment device is replaced The slave equipment that response timeout occurs issues response signal;
If the presently described slave equipment that response timeout occurs is in data transfer phase, corresponding timeout treatment device is replaced The slave equipment that response timeout occurs issues response signal, and judges the to be passed of the presently described slave equipment that response timeout occurs Transmission of data packet whether be this data transmission the last one data packet;If it is the last one data of this data transmission Packet then carries out reset processing to the slave equipment that response timeout occurs, and/or, Xiang Suoshu bus bar module reports time-out Information.
7. method according to any one of claims 1 to 6, which is characterized in that in real-time monitoring system bus apparatus from While the response time of equipment, the method also includes:
Judge whether be more than or equal to timeout threshold from the response time of equipment in the system bus devices, if it is larger than or equal to super When threshold value, then monitored slave equipment response timeout.
8. method according to any one of claims 1 to 6, which is characterized in that the system bus devices described in real-time monitoring In before the response time of equipment, the method also includes:
Demand based on application scenarios configures the importance rate of the slave equipment in the system bus devices.
9. a kind of timeout treatment device, which is characterized in that described device includes monitoring modular, judgment module and processing module;Its In,
Monitoring modular, for the response time in real-time monitoring system bus apparatus from equipment;
Judgment module, the importance of the slave equipment in monitored slave equipment response timeout, judging generation response timeout Grade, the importance rate of the slave equipment that response timeout occurs are the first importance rate or the second importance rate;
Processing module is handled the slave equipment that response timeout occurs based on judging result;The processing module is specific For: the classification of the slave equipment that response timeout occurs is determined according to judging result, when the judging result is the generation When the importance rate of the slave equipment of response timeout is the first importance rate, determine that the slave equipment that response timeout occurs is Important equipment executes the corresponding treatment process of important equipment to the important equipment;When the judging result is described rings When the importance rate of the slave equipment of time-out being answered to be the second importance rate, determine that the slave equipment that response timeout occurs is non- Important equipment executes the corresponding treatment process of insignificant equipment to the insignificant equipment.
10. device according to claim 9, which is characterized in that
One described device is corresponding from equipment at least one of system bus devices;
Each described device is respectively used to the real-time monitoring corresponding response time from equipment.
11. device according to claim 10, which is characterized in that
The processing module is also used in the importance rate of the slave equipment that response timeout occurs be the first importance rate When, time-out information is reported to bus bar module, is the second weight in the importance rate of the slave equipment that response timeout occurs When the property wanted grade, response signal is issued instead of the slave equipment that response timeout occurs;The bus bar module for realizing Main equipment and from the data interaction between equipment in the system bus devices.
12. device according to claim 11, which is characterized in that the bus bar module, for receiving time-out After information, each bus apparatus in the default coverage of the slave equipment that response timeout occurs is carried out at reset Reason.
13. device according to claim 11, which is characterized in that the processing module is also used to respond described When the importance rate of the slave equipment of time-out is the second importance rate, the slave equipment that response timeout occurs is resetted Processing, and/or, Xiang Suoshu bus bar module reports time-out information.
14. device according to claim 11, which is characterized in that the processing module is also used in presently described generation When the slave equipment of response timeout is in the order transmission stage, response signal is issued instead of the slave equipment that response timeout occurs; When the presently described slave equipment that response timeout occurs is in data transfer phase, instead of the slave equipment that response timeout occurs Response signal is issued, and judges whether the data to be transmitted packet of the presently described slave equipment that response timeout occurs is that this data passes The last one defeated data packet;If it is the last one data packet of this data transmission, then to the generation response timeout Reset processing is carried out from equipment, and/or, Xiang Suoshu bus bar module reports time-out information.
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 CN106372019A (en) 2017-02-01
CN106372019B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7496360B2 (en) 2019-08-29 2024-06-06 日本たばこ産業株式会社 Program, method and system for checking how to inhale flavor inhalation devices, etc.
CN112631659B (en) * 2020-12-07 2022-08-19 苏州浪潮智能科技有限公司 Method, system, equipment and medium for processing instruction overtime

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

Also Published As

Publication number Publication date
WO2017012459A1 (en) 2017-01-26
CN106372019A (en) 2017-02-01

Similar Documents

Publication Publication Date Title
CN102946325B (en) Network diagnosis method, system and equipment based on software defined network
CN102647320B (en) Integrated circuit suitable for high-speed 1553 bus protocol control
CN104021102B (en) CPCI serial port plate based on state machine and on-chip bus and working method of CPCI serial port plate
CN105117319A (en) Method for realizing real-time monitoring of multi-channel MDIO (Management Data Input Output) devices based on FPGA
JP2006217476A (en) Communication method, communication system, and cable/radio bridge apparatus
CN103645975B (en) A kind of method of abnormal restoring and serial bus transmission device
US9019959B2 (en) Node, switch, and system
CN105024942A (en) Dynamic flow monitoring method
JP6242911B2 (en) Apparatus and method for encoding MDIO for SGMII transmission
CN103746889B (en) Half competitive mode RS-485 bus multi-master communication system and its working method
CN202872834U (en) Ship calling system based on CAN-to-Modbus/TCP-conversion
CN106959935A (en) A kind of method that compatible I2C communications communicate with IPMB
CN104008082A (en) Converter of 1553B bus remote terminal (RT) node and controller area network (CAN) bus
CN106372019B (en) A kind of processing method and timeout treatment device of system bus devices response timeout
CN104798010A (en) Serial storage protocol compatible frame conversion, at least in part
CN103810127B (en) USB low-speed devices data transfer control method and controller
JP2014021887A (en) Numerical control device communicating with io units
CN104022972A (en) Ethernet switch configuration method and switch applying the same
CN104158683A (en) Cross-device aggregation group rapid convergence method, and cross-device aggregation group rapid convergence device
CN104102607A (en) CAN (controlled area network) bus driving method and system based on VxWorks operating system environment
CN204117142U (en) Electronic device for providing instant switching and sharing of universal serial bus electronic equipment by host
CN101931642A (en) Multi-network control system communication management method
CN105591902A (en) Main-standby switching method and device
CN205647570U (en) EtherCAT and deviceNET's communication gateway
CN114513383B (en) Real-time Ethernet field bus data packet processing method based on original socket

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
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