CN109471818A - Bus structures implementation method and device - Google Patents
Bus structures implementation method and device Download PDFInfo
- Publication number
- CN109471818A CN109471818A CN201811404319.5A CN201811404319A CN109471818A CN 109471818 A CN109471818 A CN 109471818A CN 201811404319 A CN201811404319 A CN 201811404319A CN 109471818 A CN109471818 A CN 109471818A
- Authority
- CN
- China
- Prior art keywords
- data
- identification information
- input data
- equipment
- bus
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/20—Handling requests for interconnection or transfer for access to input/output bus
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Bus Control (AREA)
- Small-Scale Networks (AREA)
Abstract
The present invention provides a kind of bus structures implementation method and device, is related to field of computer technology, this method comprises: obtaining the data identification information of bus input data, matches to data identification information and pre-set equipment identification information;If data identification information and equipment identification information successful match, bus input data is received.By obtaining the data identification information of bus input data, data identification information and pre-set equipment identification information are matched;If data identification information and equipment identification information successful match, bus input data is received.Received bus input data is handled, so that master-slave equipment is combined into an equipment, does not need to be parsed and arbitrated by bus bar module, improves the efficiency between the transmission of bus input data.
Description
Technical field
The present invention relates to field of computer technology, in particular to a kind of bus structures implementation method and device.
Background technique
With the development of integrated circuit, the function of SoC (System on a Chip, system on chip) becomes increasingly complex.Phase
It answers, the bus topolopy in SoC also becomes increasingly complex, to connect each functional module.
Existing bus topolopy uses star wired bus topology structure or tree-like bus topolopy, is set by master
It standby, bus bar module and is constituted from equipment, main equipment and equipment connect with bus bar module, and main equipment initiation is to from setting
Standby access request, bus bar module needs to initiate access request to main equipment to be parsed and arbitrated, if main equipment is initiated
Access request by parsing and arbitration, can to from equipment send access request, so that main equipment accesses to from equipment.
But during main equipment access slave, part access needs not move through bus bar module and is parsed
And arbitration, but still can be parsed and be arbitrated by bus bar module, cause the low efficiency of main equipment access slave
The problem of.
Summary of the invention
It is an object of the present invention in view of the deficiency of the prior art, provide a kind of bus structures implementation method and
Device, to solve the problems, such as main equipment access slave low efficiency in bus structures.
To achieve the above object, technical solution used in the embodiment of the present invention is as follows:
In a first aspect, the embodiment of the invention provides a kind of bus structures implementation methods;
The described method includes:
The data identification information of bus input data is obtained, the data identification information, which is used to indicate, inputs the bus
The equipment that data are handled;
The data identification information and pre-set equipment identification information are matched;
If the data identification information and the equipment identification information successful match, receive the bus input data.
Further, before the data identification information for obtaining bus input data, the method also includes:
Whether detection bus sends the bus input data;
The data identification information for obtaining bus input data, comprising:
If the bus sends the bus input data, the data identification information of the bus input data is obtained.
Further, after the reception bus input data, the method also includes:
Event table according to the pre-stored data, determine the corresponding data type of the bus input data whether with the equipment
The corresponding data type of identification information is consistent;
If it is determined that the corresponding data type of bus input data data type corresponding with the equipment identification information
Unanimously, then bus input data is handled, the bus input data that obtains that treated;
Treated described in display, and bus input data is in completion status.
Further, in the event table according to the pre-stored data, the corresponding data class of the bus input data is determined
After whether corresponding with the equipment identification information type data type be consistent, the method also includes:
If it is determined that the corresponding data type of bus input data data type corresponding with the equipment identification information
It is inconsistent, then data processing request is generated, the data processing request includes target device identification information;
The data processing request is sent, so that target device receives and processes institute according to the target device identification information
Data processing request is stated, target processing information is obtained;
Receive the target processing information that the target device is sent.
Further, the method also includes:
If it fails to match for the data identification information and the equipment identification information, the bus input data is not received.
Second aspect, the embodiment of the invention also provides a kind of bus structures realization devices;
Described device includes:
First obtains module, and for obtaining the data identification information of bus input data, the data identification information is used for
Indicate the equipment handled the bus input data;
Matching module, for being matched to the data identification information and pre-set equipment identification information;
First receiving module receives institute if being used for the data identification information and the equipment identification information successful match
State bus input data.
Further, described device further include:
Detection module, for detecting whether bus sends the bus input data;
Module is obtained, if being specifically used for the bus sends the bus input data, obtains the bus input data
Data identification information.
Further, described device further include:
First judgment module is used for event table according to the pre-stored data, determines the corresponding data of the bus input data
Whether corresponding with the equipment identification information type data type be consistent;
Second obtains module, is used for if it is determined that the corresponding data type of the bus input data and the device identification are believed
It is consistent to cease corresponding data type, then bus input data is handled, the bus input data that obtains that treated;
Display module, for showing that described treated that bus input data is in completion status.
Further, described device further include:
Processing module is used for if it is determined that the corresponding data type of the bus input data and the equipment identification information pair
The data type answered is inconsistent, then generates data processing request, and the data processing request includes target device identification information;
Sending module is believed for sending the data processing request so that target device is identified according to the target device
Breath receives and processes the data processing request, obtains target processing information;
Second receiving module handles information for receiving the target that the target device is sent.
Further, described device further include:
Second judgment module does not receive if it fails to match for the data identification information and the equipment identification information
The bus input data.
In conclusion bus structures implementation method provided by the invention, by judging that equipment obtains bus input data
After data identification information is consistent with the identification information of equipment, bus input data, the bus input data that equipment interconnection is received are received
It is handled, so that master-slave equipment is combined into an equipment and does not need to be parsed and arbitrated by bus bar module, is solved
The problem of main equipment is to main equipment access slave low efficiency is caused from the access of equipment improves the transmission of bus input data
Efficiency.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 is a kind of system on chip structure schematic diagram provided by the invention;
Fig. 2 is the flow diagram for the bus structures implementation method that one embodiment of the invention provides;
Fig. 3 is the flow diagram for the bus structures implementation method that one embodiment of the invention provides;
Fig. 4 is the schematic diagram for the bus structures realization device that one embodiment of the invention provides;
Fig. 5 is the schematic diagram for the bus structures realization device that one embodiment of the invention provides.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.
Fig. 1 is a kind of structural schematic diagram of system on chip provided by the invention;As shown in Figure 1, the system includes at least one
A equipment, at least one equipment may include the first equipment 110, the second equipment 120 and third equipment 130.
Wherein, the output port of the first equipment 110 is connect with the input port of the second equipment 120, the second equipment 120 it is defeated
Exit port is connect with the input port of third equipment 130, the input terminal of the output port of third equipment 130 and the first equipment 110
Mouth connection.Moreover, each equipment is connect by bus with other equipment.
During passing through bus transfer bus input data, each equipment requires to carry out bus input data
Detection, to determine whether to receive bus input data, to execute different operations according to judging result.
Specifically, if the first equipment 110 detects bus input data, the data of bus input data available first
Identification information, and the data identification information is matched with the equipment identification information of the first equipment 110, if successful match,
It can receive bus input data, and bus input data handled.
But if it fails to match, the first equipment 110 does not receive bus input data, but forwards to the second equipment 120
The bus input data determines Data Identification correspondingly, the second equipment 120 can then execute the operation similar with the above process
Whether information matches with the equipment identification information of the second equipment 120, thereby executing different operations.
It should be noted that each equipment may each comprise bus parsing module and functional module, bus parsing module is used
Whether can be received by the device in the bus input data of analysis judgment bus transfer, functional module is for judging the total of bus transfer
Can line input data be handled by equipment, and each equipment can parse bus input data and initiate data processing request, no
Bus bar resume module is relied on, equipment is added in systems or sweep equipment does not interfere with whole system tray
Structure, without redesigning bus structures.
When the equipment identification information successful match of the data identification information of bus input data and the first equipment 110, connect
Receive bus input data.Judged in bus input data according to pre-set event table, the first equipment in the first equipment 110
Whether data type and the data type of 110 identification information of the first equipment consistent, if the data type in bus input data and
The data type of first equipment, 110 identification information is consistent, then is handled according to data type bus input data, after processing
Display processing completion status.The data class of pre-stored event table instruction 110 identification information of the first equipment of first equipment 110
Type.
Wherein, according to pre-stored event table in the first equipment 110, if the data type of bus input data and first
The data type of 110 identification information of equipment is inconsistent, then the first equipment 110 generates number according to the data type of bus input data
It is requested according to processing, if being stored with the data type of bus input data in the event table in third equipment 130, data processing is asked
It include 130 identification information of third equipment of setting in asking, by 130 identification information of third equipment in data processing request, the
Three equipment 130 receive data processing request, and handle data processing request, and target processing letter is obtained after the completion of processing
Breath, so that third equipment 130, which sends target to the first equipment 110, handles information, the first equipment 110 receives target and handles information,
And the processing of show bus input data is completed.
Fig. 2 is the flow diagram for the bus structures implementation method that one embodiment of the invention provides, and is applied to as shown in Figure 1
System on chip any one equipment in, as shown in Fig. 2, this method comprises:
Step 201, the data identification information for obtaining bus input data.
Wherein, data identification information is used to indicate the equipment handled bus input data.
Since bus input data is during passing through bus transfer, need in the bus structures by system on chip
Equipment handles bus input data, and before treatment, the equipment in bus structures will first judge whether to need to total
The bus input data of line transmission is handled.
Therefore, the equipment in system on chip can first obtain the data identification information in bus input data, so as to rear
In continuous step, it can be determined the need for handling the bus input data according to the data identification information.
Specifically, equipment can with real-time detection bus whether transfer bus input data, if detect bus to equipment send out
Bus input data is sent, then can first obtain the data of specific field in the bus input data, to obtain bus input number
Data identification information in.
It should be noted that each equipment has different functional modules, bus input in the bus structures of system on chip
For data identification information in data for judging that can equipment receive bus input data, data identification information can be IP
(Internet Protocol, Internet protocol) address, is also possible to other information, it is not limited in the embodiment of the present invention.
Step 202 matches data identification information and pre-set equipment identification information.
After equipment obtains the data identification information of bus input data, it can be sentenced according to the data identification information of acquisition
It is disconnected, determine whether data identification information is consistent with equipment identification information, it, can be according to the judgment result so as in the next steps
Different operations is executed to bus input data.
Specifically, the data identification information of bus input data can be matched with the identification information of equipment, is judged
Whether data identification information is consistent with the identification information of pre-set equipment, if the identification information of data identification information and equipment
Unanimously, then illustrate data identification information and pre-set equipment identification information successful match.If data identification information and equipment
Identification information it is inconsistent, then illustrate that it fails to match for data identification information and pre-set equipment identification information.
It should be noted that pre-set equipment identification information and the equipment received in bus input data are used to refer to
Show same equipment.When bus input data is transmitted in system on chip, each equipment requires to obtain bus input data
Data identification information, and matched by the data identification information and equipment identification information of the bus input data obtained.
If step 203, data identification information and equipment identification information successful match, bus input data is received.
After successful match, the equipment in system on chip can receive the bus input data of bus transfer, and to reception
Bus input data handled.
Specifically, after equipment receives bus input data, bus can be inputted according to the event table stored in equipment
The data type of data and the data type of equipment identification information are matched, if the data type and bus of equipment identification information
Data type in input data is consistent, then can handle bus input data.To the data type of bus input data and set
The standby consistent data type of ID information data type is handled.
Such as: the equipment is analog-to-digital conversion device, and the data type of meeting can be shown analog signal in the event table in equipment
Digital signal is converted to, the data type in data type indicating equipment identification information in event table, when bus input data
Data type in exist when converting digital signal for analog signal, the data type of bus input data and device identification letter
Data type in breath is consistent, can handle bus input data, the analog signal of bus input data is turned
Change, obtain that treated digital signal, equipment completion processing.
It should be noted that at least one data type is stored in event table in each equipment, it can be according to storage
The data type of event table, data type and equipment identification information to bus input data matches, if bus inputs number
According to data type and equipment identification information data type successful match, then bus input data is handled.
In conclusion bus structures implementation method provided by the invention, by judging that equipment obtains bus input data
After data identification information is consistent with the identification information of equipment, bus input data, the bus input data that equipment interconnection is received are received
It is handled, so that master-slave equipment is combined into an equipment, is not needed to be parsed and arbitrated by bus bar module, solve
The problem of main equipment is to the low efficiency of main equipment access slave is caused from the access of equipment in the prior art, it is defeated to improve bus
Enter data transmission efficiency.
Fig. 3 be another embodiment of the present invention provides bus structures implementation method flow diagram, as shown in figure 3, should
Method includes:
Whether step 301, detection bus send bus input data.
In at least one equipment of bus structures in system on chip, each equipment requires to detect whether bus is sent out constantly
Bus input data is sent, if bus input data is not detected, needs to continue to test bus input data;If detecting total
The bus input data that line is sent then can execute corresponding operation to the bus input data of transmission in the next steps.
Wherein, it is defeated can to continue the bus sent to bus after detecting the bus input data that bus is sent for equipment
Enter data to be detected.
Specifically, if needing to do subsequent processing to bus input data, if not after equipment detects bus input data
It detects bus input data, then needs always to detect the bus input data in bus transfer.
If step 302, bus send bus input data, the data identification information of bus input data is obtained.
Step 303 matches data identification information and pre-set equipment identification information.
It is similar with the process of step 201 to step 202 due to the process in step 302 to step 303, it is no longer superfluous herein
It states.
If it fails to match for step 304, data identification information and equipment identification information, bus input data is not received.
If it fails to match for data identification information and equipment identification information, do not receive bus input data, but to other
The bus input data that device forwards bus is sent, so that other equipment execute and step for the bus input data that bus is sent
Rapid 301 operations similar to step 311.
Specifically, corresponding with the system on chip of Fig. 1, when the identification information of bus input data and setting for the first equipment
When standby identification information is inconsistent, then the first equipment does not receive bus input data, and to the second device forwards bus input data,
Second equipment obtains the equipment identification information of bus input data, and the equipment identification information of the second equipment and bus are inputted number
According to identification information matched, when the identification information of the second equipment identification information and bus input data is inconsistent, then
Two equipment are to third device forwards bus input data, until there is the equipment identification information and bus input data of a certain equipment
Identification information it is consistent when, then the equipment receive bus input data.
If step 305, data identification information and equipment identification information successful match, bus input data is received.
Step 305, process are similar with the process of step 203, and details are not described herein.
Step 306, event table according to the pre-stored data, determine the corresponding data type of bus input data whether with equipment
The corresponding data type of identification information is consistent.
It is stored corresponding to the event that the equipment is capable of handling in each equipment in the bus structures of system on chip
Event table, and the event table stored in each equipment is different from, pre-stored event table may include that this sets in equipment
The data type of standby identification information, for indicating the manageable data type of the equipment, according to being stored in advance in a device
Event table, the corresponding data of data type and equipment identification information after receiving bus input data, to bus input data
Type is matched, and the data type that whether there is bus input data in event table is judged, if setting in the event table of equipment
There are the data types of bus input data in the data type of standby identification information, then need to bus input data in subsequent step
It is continued in rapid.
Specifically, after equipment receives bus input data, it can first judge that can the equipment handle the bus received
Input data, if judging the data in the data type and equipment identification information of bus input data according to the event table in equipment
Type-Inconsistencies show that the equipment can not handle the received bus input data of the equipment.
Such as: the event table stored in the first equipment indicates the data type that the first equipment can be handled, the first equipment thing
The data type of equipment identification information shows to be gone to handle these data types by the first equipment in part table.It is deposited in second equipment
The event table of storage indicates the data type that the second equipment is capable of handling, the data of equipment identification information in the second device events table
Type, can only the second equipment go to handle.
It should be noted that the event table of each equipment is all different, if the equipment is analog-to-digital conversion device, the equipment
In event table in equipment identification information data type be convert analog signals into digital signal, when bus input data
Data type is when converting analog signals into digital signal, which can input bus after receiving bus input data
Data are handled.
Step 307, if it is determined that the corresponding data type of bus input data data type corresponding with equipment identification information
Unanimously, then bus input data is handled, the bus input data that obtains that treated.
The data type successful match in data type and equipment identification information in the received bus input data of equipment
Afterwards, then equipment handles bus input data, and the data type of processing is the equipment identification information stored in the event table
Data type, the bus input data that finally obtains that treated.
Specifically, equipment receives bus input data, according to the event table being stored in advance in a device, inputs number to bus
According to data type and equipment identification information in data type matched, if the data type and equipment of bus input data
Data type in identification information is consistent, then equipment handles bus input data, the bus input number that obtains that treated
According to.
Such as: if equipment is analog-digital converter, after equipment receives bus input data, if being stored in analog-to-digital conversion device
Event table in equipment identification information data type it is consistent with the data type of bus input data, then analog-digital converter can
To handle bus input data, digital signal is converted by the analog signal of bus input data.
It should be noted that in practical applications, bus input data may include the data of multiple data types, bus
Data type in the data type of partial data in input data data type corresponding with equipment identification information is consistent, but
Be data type in bus input data in the data type of remaining data and the corresponding data type of equipment identification information not
Unanimously, then equipment can handle bus input data data type it is consistent in data type corresponding in equipment identification information
Data type, for different in some data types and the corresponding data type of equipment identification information in bus input data
The data type of cause, then can according in the corresponding data type of data type and equipment identification information of bus input data not
Consistent data type generates at least one data processing request, sends the processing request of at least one target, and equipment can receive
At least one target device, which sends the processing of treated at least one target, requests at least one corresponding target to handle information.
Such as: if bus input data is sentenced according to the event table being stored in advance in the first equipment after the first equipment receives
There are the data type of bus input data is inconsistent in data type in the disconnected equipment identification information for obtaining the first equipment, then
Data type to equipment identification information in the first equipment and in the data type of bus input data consistent data type into
Row processing, the data type of equipment identification information and the inconsistent data class of the data type of bus input data in the first equipment
Type, the first equipment can not be handled, at least one data processing request is generated, comprising extremely at least one data processing request
The identification information of a few target device, if target device includes: the second equipment and third equipment, the second equipment and third are set
Back-up is other to handle at least one data processing request, and equipment receives the second equipment and third equipment respectively at least one
Data processing request treated target handles information.Bus input data that final first equipment obtains that treated.
It should be noted that when the data class for being stored with bus input data in the event table of analog-to-digital conversion device storage
Type can then handle for this data type, become after the analog signal of received bus input data is converted
Digital signal.
Step 308, treated that bus input data is in completion status for display.
After the bus input data that equipment interconnection receives is handled, the bus input data that obtains that treated, at this time
The equipment completes the processing to bus input data, and shows the processing status of the bus input data on the device to complete
State, the completion status is for indicating that the processing of bus input data is completed.Certainly, display state can also include: wait state
With processing failure state, this pending state is for indicating that bus handles data present.Processing failure state is for indicating
Equipment is to bus processing data processing failure.
In addition, user can observe the processing status of bus input data on the device by the equipment, convenient for pair
The real-time monitoring of processing condition data in the bus structures of system on chip.
Specifically, after equipment receives bus input data, when handling bus input data, equipment can be shown always
Line input data is being handled, and asks wait state, when equipment causes bus to input to going wrong in the processing of bus input data
Data processing fail when, equipment can show bus input data processing failure state, equipment can to bus input data again into
Row processing.
It should be noted that equipment can be updated each processing stage that bus input data is handled, it is final to locate
After the completion of managing bus input data, equipment meeting show bus input data processing is in completion status.
Step 309, if it is determined that the corresponding data type of bus input data data type corresponding with equipment identification information
It is inconsistent, generate data processing request.
Wherein, data processing request includes target device identification information.
If it is determined that the corresponding data type of bus input data data type corresponding with the equipment identification information is inconsistent,
Then it fails to match, shows the data type of bus input data not among the corresponding data type of equipment identification information, into one
Step shows that the equipment can not be handled bus input data, then generates data processing request, needs other equipment auxiliary pair
Bus input data is handled.
Specifically, when equipment can not be handled the bus input data received, number will be inputted according to bus
According to data type generate data processing request, in order to which the bus input data that other equipment can not handle the equipment carries out
Processing.
It should be noted that data processing request be generated according to the equipment identification information in device events table, for example,
If the data type of the equipment identification information of the first equipment and received bus input data in the event table in the first equipment
Data type is inconsistent, then needs to generate data processing request, if in the event table of third equipment the first equipment device identification
The data type of information is consistent with the data type of bus input data, then may include third in the data processing request generated
The equipment identification information of equipment, by the third equipment identification information in data processing request, third equipment receives data processing
Request.
Step 310 sends data processing request, so that target device receives and processes number according to target device identification information
It is requested according to processing, obtains target processing information.
After the equipment for receiving bus input data can not handle bus input data, generates data processing request and sends,
So that target device is matched according to the target device identification information carried in data processing request, target is set after successful match
It is standby to receive data processing request.
Specifically, after the equipment for receiving bus input data sends data processing request to target device, so that target is set
It is standby to be matched according to the data type of the equipment identification information in event table and the data type of data processing request, if
The data type of storing data processing request in the data type of equipment identification information in the event table of target device storage, then
Target device handles data processing request, the target processing information that obtains that treated, and to sending data processing request
Equipment feedback data processing request treated as a result, fed back target processing information.
Step 311 receives the target processing information that target device is sent.
After target device handles data processing request, target processing information is obtained, target device sends target
Handle information.
Specifically, after equipment receives the data processing request feedback result that target device is sent, to bus input data
Processing status is updated, and is updated to bus input data processing completion status by bus input data processing wait state, with
Just show that bus input data handles completion status to user.
In conclusion bus structures implementation method provided in an embodiment of the present invention, equipment passes through the number of bus input data
It is matched according to identification information and equipment identification information, after successful match, if the equipment can handle bus input data, the equipment
It after handling bus input data and shows processing completion status, generates data processing if the equipment can not be handled and ask
It asks, data processing request is sent to target device, so that the mark for the target device that target device is carried by data processing request
Know information, the identification information for the target device that target device is carried by data processing request receives data processing request, and right
Data processing request is handled, and target processing information is obtained.Final equipment receives target device and sends target processing information,
And the processing of show bus input data is completed, and the efficiency of transmission of bus input data in bus transfer is improved.
Fig. 4 is the schematic diagram for the bus structures realization device that one embodiment of the invention provides, as shown in figure 4, the device can
To include:
First obtains module 401, and for obtaining the data identification information of bus input data, data identification information is for referring to
Show the equipment handled bus input data;
Matching module 402, for being matched to data identification information and pre-set equipment identification information;
First receiving module 403 receives bus input if being used for data identification information and equipment identification information successful match
Data.
Optionally, the device further include:
Detection module, for detecting whether bus sends bus input data;
Module is obtained, if being specifically used for bus sends bus input data, obtains the Data Identification letter of bus input data
Breath.
Optionally, the device further include:
First judgment module is used for event table according to the pre-stored data, determines the corresponding data type of bus input data
Whether data type corresponding with equipment identification information is consistent;
Second obtains module, for if it is determined that the corresponding data type of bus input data is corresponding with equipment identification information
Data type is consistent, then handles bus input data, the bus input data that obtains that treated;
Display module, for showing that treated that bus input data is in completion status.
Optionally, the device further include:
Processing module, for if it is determined that the corresponding data type of bus input data data corresponding with equipment identification information
Type-Inconsistencies, then generate data processing request, and data processing request includes target device identification information;
Sending module, for sending data processing request, so that target device receives simultaneously according to target device identification information
Data processing request is handled, target processing information is obtained;
Second receiving module, the target for receiving target device transmission handle information.
Optionally, the device further include:
Second judgment module does not receive bus input if it fails to match for data identification information and equipment identification information
Data.
In conclusion bus structures realization device provided by the invention, by judging that equipment obtains bus input data
After data identification information is consistent with the identification information of equipment, bus input data, the bus input data that equipment interconnection is received are received
It is handled, so that master-slave equipment is combined into an equipment and does not need to be parsed and arbitrated by bus bar module, is solved
The problem of main equipment is to the low efficiency of main equipment access slave is caused from the access of equipment in the prior art, it is defeated to improve bus
Enter the efficiency between data transmission.
The method that above-mentioned apparatus is used to execute previous embodiment offer, it is similar that the realization principle and technical effect are similar, herein not
It repeats again.
The above module can be arranged to implement one or more integrated circuits of above method, such as: one
Or multiple specific integrated circuits (Application Specific Integrated Circuit, abbreviation ASIC), or, one
Or multi-microprocessor (digital singnal processor, abbreviation DSP), or, one or more field programmable gate
Array (Field Programmable Gate Array, abbreviation FPGA) etc..For another example, when some above module passes through processing elements
When the form of part scheduler program code is realized, which can be general processor, such as central processing unit (Central
Processing Unit, abbreviation CPU) or it is other can be with the processor of caller code.For another example, these modules can integrate
Together, it is realized in the form of system on chip (system-on-a-chip, abbreviation SOC).
Fig. 5 is the schematic diagram for the bus structures realization device that one embodiment of the invention provides, which can integrate in end
The chip of end equipment or terminal device, the terminal can be the calculating equipment for having processing function.
The device includes: memory 501, processor 502.
Memory 501 is for storing program, the program that processor 502 calls memory 501 to store, to execute the above method
Embodiment.Specific implementation is similar with technical effect, and which is not described herein again.
Optionally, the present invention also provides a kind of program product, such as computer readable storage medium, including program, the journeys
Sequence is when being executed by processor for executing above method embodiment.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of unit, only
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit
It connects, can be electrical property, mechanical or other forms.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unit
Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks
On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) or processor (English: processor) execute this hair
The part steps of bright each embodiment method.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (English:
Read-Only Memory, referred to as: ROM), random access memory (English: Random Access Memory, referred to as:
RAM), the various media that can store program code such as magnetic or disk.
Claims (10)
1. a kind of bus structures implementation method, which is characterized in that the described method includes:
The data identification information of bus input data is obtained, the data identification information is used to indicate to the bus input data
The equipment handled;
The data identification information and pre-set equipment identification information are matched;
If the data identification information and the equipment identification information successful match, receive the bus input data.
2. bus structures implementation method as described in claim 1, which is characterized in that in the number for obtaining bus input data
Before identification information, the method also includes:
Whether detection bus sends the bus input data;
The data identification information for obtaining bus input data, comprising:
If the bus sends the bus input data, the data identification information of the bus input data is obtained.
3. bus structures implementation method as described in claim 1, which is characterized in that receive the bus input data described
Later, the method also includes:
Event table according to the pre-stored data, determine the corresponding data type of the bus input data whether with the device identification
The corresponding data type of information is consistent;
If it is determined that the corresponding data type of bus input data data type corresponding with the equipment identification information is consistent,
Then bus input data is handled, the bus input data that obtains that treated;
Treated described in display, and bus input data is in completion status.
4. bus structures implementation method as claimed in claim 3, which is characterized in that in the event according to the pre-stored data
Table determines that whether corresponding with the equipment identification information the corresponding data type of bus input data data type be consistent
Later, the method also includes:
If it is determined that the corresponding data type of bus input data data type corresponding with the equipment identification information is different
It causes, then generates data processing request, the data processing request includes target device identification information;
The data processing request is sent, so that target device receives and processes the number according to the target device identification information
It is requested according to processing, obtains target processing information;
Receive the target processing information that the target device is sent.
5. the bus structures implementation method as described in claim 1-4 is any, which is characterized in that the method also includes:
If it fails to match for the data identification information and the equipment identification information, the bus input data is not received.
6. a kind of bus structures realization device, which is characterized in that described device includes:
First obtains module, and for obtaining the data identification information of bus input data, the data identification information is used to indicate
The equipment that the bus input data is handled;
Matching module, for being matched to the data identification information and pre-set equipment identification information;
First receiving module receives described total if being used for the data identification information and the equipment identification information successful match
Line input data.
7. bus structures realization device as claimed in claim 6, which is characterized in that described device further include:
Detection module, for detecting whether bus sends the bus input data;
Module is obtained, if being specifically used for the bus sends the bus input data, obtains the number of the bus input data
According to identification information.
8. bus structures realization device as claimed in claim 6, which is characterized in that described device further include:
First judgment module is used for event table according to the pre-stored data, determines the corresponding data type of the bus input data
Whether data type corresponding with the equipment identification information is consistent;
Second obtains module, is used for if it is determined that the corresponding data type of the bus input data and the equipment identification information pair
The data type answered is consistent, then handles bus input data, the bus input data that obtains that treated;
Display module, for showing that described treated that bus input data is in completion status.
9. bus structures realization device as claimed in claim 8, which is characterized in that described device further include:
Processing module, for if it is determined that the corresponding data type of the bus input data is corresponding with the equipment identification information
Data type is inconsistent, then generates data processing request, and the data processing request includes target device identification information;
Sending module, for sending the data processing request, so that target device connects according to the target device identification information
The data processing request is received and handled, target processing information is obtained;
Second receiving module handles information for receiving the target that the target device is sent.
10. the bus structures realization device as described in claim 6-9 is any, which is characterized in that described device further include:
Second judgment module does not receive described if it fails to match for the data identification information and the equipment identification information
Bus input data.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811404319.5A CN109471818B (en) | 2018-11-22 | 2018-11-22 | Bus structure implementation method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811404319.5A CN109471818B (en) | 2018-11-22 | 2018-11-22 | Bus structure implementation method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN109471818A true CN109471818A (en) | 2019-03-15 |
| CN109471818B CN109471818B (en) | 2021-08-31 |
Family
ID=65674014
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811404319.5A Active CN109471818B (en) | 2018-11-22 | 2018-11-22 | Bus structure implementation method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109471818B (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111541598A (en) * | 2020-04-21 | 2020-08-14 | 重庆欢腾科技有限公司 | Distributed multi-host communication system, functional module and communication method thereof |
| CN112288990A (en) * | 2019-07-24 | 2021-01-29 | 上海东方富联科技有限公司 | Method, system, medium and device for generating internet of things event based on internet of things data |
| CN113067760A (en) * | 2021-03-10 | 2021-07-02 | 深圳市智莱科技股份有限公司 | Communication method, system, equipment and storage medium of power transformation cabinet |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101169771A (en) * | 2007-11-30 | 2008-04-30 | 华为技术有限公司 | An external interface device of a multi-channel internal bus and a data transmission method thereof |
| US20080313373A1 (en) * | 2007-06-12 | 2008-12-18 | Samsung Electronics Co., Ltd. | Electronic apparatus and data sending/receiving method thereof |
| CN102262572A (en) * | 2011-07-19 | 2011-11-30 | 浙江大学 | Inter integrated circuit (IIC) bus interface controller with cyclic redundancy checking (CRC) function |
| CN103491017A (en) * | 2012-06-12 | 2014-01-01 | Ls产电株式会社 | Method for configurating canopen network, method for operating slave device of canopen network and system for controlling plc device using canopen network |
| CN104794089A (en) * | 2015-05-12 | 2015-07-22 | 中国电子科技集团公司第四十七研究所 | Improved UART communication method, device and system suitable for single chip microcomputers |
| CN105243039A (en) * | 2015-11-13 | 2016-01-13 | 上海斐讯数据通信技术有限公司 | Serial port communication system and method |
| CN105847456A (en) * | 2015-01-13 | 2016-08-10 | 浙江大华技术股份有限公司 | RS485 automatic address distribution method, device and system |
| CN106506306A (en) * | 2016-12-10 | 2017-03-15 | 锐捷网络股份有限公司 | A kind of method and apparatus of data-message transmission |
-
2018
- 2018-11-22 CN CN201811404319.5A patent/CN109471818B/en active Active
Patent Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20080313373A1 (en) * | 2007-06-12 | 2008-12-18 | Samsung Electronics Co., Ltd. | Electronic apparatus and data sending/receiving method thereof |
| CN101169771A (en) * | 2007-11-30 | 2008-04-30 | 华为技术有限公司 | An external interface device of a multi-channel internal bus and a data transmission method thereof |
| CN101169771B (en) * | 2007-11-30 | 2010-06-02 | 华为技术有限公司 | A kind of external interface device of AXI internal bus and data transmission method thereof |
| CN102262572A (en) * | 2011-07-19 | 2011-11-30 | 浙江大学 | Inter integrated circuit (IIC) bus interface controller with cyclic redundancy checking (CRC) function |
| CN103491017A (en) * | 2012-06-12 | 2014-01-01 | Ls产电株式会社 | Method for configurating canopen network, method for operating slave device of canopen network and system for controlling plc device using canopen network |
| CN105847456A (en) * | 2015-01-13 | 2016-08-10 | 浙江大华技术股份有限公司 | RS485 automatic address distribution method, device and system |
| CN104794089A (en) * | 2015-05-12 | 2015-07-22 | 中国电子科技集团公司第四十七研究所 | Improved UART communication method, device and system suitable for single chip microcomputers |
| CN105243039A (en) * | 2015-11-13 | 2016-01-13 | 上海斐讯数据通信技术有限公司 | Serial port communication system and method |
| CN106506306A (en) * | 2016-12-10 | 2017-03-15 | 锐捷网络股份有限公司 | A kind of method and apparatus of data-message transmission |
Non-Patent Citations (2)
| Title |
|---|
| SUN,XUFEI等: "A Fieldbus applied to sensor-actuator monitoring network", 《JOURNAL OF COMPUTATIONAL METHODS IN SCIENCES AND ENGINEERING》 * |
| 范勇: "多处理器片上系统高性能总线互联关键技术研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112288990A (en) * | 2019-07-24 | 2021-01-29 | 上海东方富联科技有限公司 | Method, system, medium and device for generating internet of things event based on internet of things data |
| CN111541598A (en) * | 2020-04-21 | 2020-08-14 | 重庆欢腾科技有限公司 | Distributed multi-host communication system, functional module and communication method thereof |
| CN111541598B (en) * | 2020-04-21 | 2021-08-03 | 重庆欢腾科技有限公司 | Distributed multi-host communication system, function module and communication method thereof |
| CN113067760A (en) * | 2021-03-10 | 2021-07-02 | 深圳市智莱科技股份有限公司 | Communication method, system, equipment and storage medium of power transformation cabinet |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109471818B (en) | 2021-08-31 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109471818A (en) | Bus structures implementation method and device | |
| US20180278352A1 (en) | Slave device, serial communications system, and communication method for serial communications system | |
| CN115309685B (en) | EtherCAT bus topology configuration method, device, equipment and storage medium | |
| CN115865654A (en) | Method for communicating with server, electronic device and storage medium | |
| US20100257400A1 (en) | Network loop healing apparatus and methods | |
| JP2012058958A (en) | Reduction operation device, processor, and computer system | |
| CN104852823A (en) | Process monitoring method, device and system | |
| CN103457797A (en) | Method and device for detecting validity of RCPU port | |
| CN116431202A (en) | Lossless publishing method and device based on micro-service system and electronic equipment | |
| CN113596189B (en) | Parallel addressing method, battery pack and parallel addressing system | |
| KR20170122483A (en) | System for detecting communication network | |
| CN118337552A (en) | Data transmission method and device | |
| CN109218156A (en) | A kind of management method of Dynamic link library data | |
| CN108390924A (en) | Order fulfillment method and device | |
| US8566630B2 (en) | Apparatus, methods and computer program products supporting automatic network identification for power supplies | |
| CN119363740B (en) | A device sharing method, apparatus, network device, and storage medium | |
| CN114546929B (en) | Methods and apparatus for implementing pipeline synchronization mechanisms, storage media and electronic equipment | |
| CN111965655A (en) | Multimedia system applying time-of-flight ranging and operation method thereof | |
| CN115002193B (en) | Multipath remote service selection method, equipment, storage medium and device | |
| CN107809325B (en) | Topology method, network topology system and network topology method for peripheral element interconnection | |
| CN113820160B (en) | Detection method, detection device and detection system of OBD (on-Board diagnostics) equipment | |
| CN108881424A (en) | Interaction storage/acquisition methods/system, readable storage medium storing program for executing and terminal of data | |
| JPH10285207A (en) | Communication system | |
| JP2000341279A (en) | How to prevent loops in your network | |
| CN114385066A (en) | Data processing system and method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | 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 |