CN106168934A - A kind of data transmission method and device - Google Patents
A kind of data transmission method and device Download PDFInfo
- Publication number
- CN106168934A CN106168934A CN201610494157.3A CN201610494157A CN106168934A CN 106168934 A CN106168934 A CN 106168934A CN 201610494157 A CN201610494157 A CN 201610494157A CN 106168934 A CN106168934 A CN 106168934A
- Authority
- CN
- China
- Prior art keywords
- bus
- programming device
- business module
- processing unit
- central processing
- 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; CALCULATING OR 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/36—Handling requests for interconnection or transfer for access to common bus or bus system
- G06F13/362—Handling requests for interconnection or transfer for access to common bus or bus system with centralised access control
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0016—Inter-integrated circuit (I2C)
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Programmable Controllers (AREA)
Abstract
Embodiments of the invention provide a kind of data transmission method and device, relate to the communications field, and conduct interviews to business module operation for main control module simultaneously.Including: main control module includes central processing unit and programming device, programming device includes logic gates, logic gates is for controlling the state machine of programming device, and central processing unit sends access request to programming device, and access request is write access or read access;Logic gates controls the state machine of programming device according to access request;At least two business module is conducted interviews operation by central processing unit by the link between main control module and each business module simultaneously.
Description
Technical field
The present invention relates to the communications field, particularly relate to a kind of data transmission method and device.
Background technology
At present, distributed network communication equipment include the main control module that connected by I2C bus (Inter-IC bus) and
Business module.The meaning of I2C bus is " specification or the agreement that complete information exchange between integrated circuit or functional unit ", it is provided that
Communication line between integrated circuit (ICs).I2C bus is released by Philips company the earliest, uses a data line (English
Full name: SerialData, English abbreviation: SDA), add a clock lines (English full name: clock line, English abbreviation: SCL)
Complete the transmission of data and the extension of peripheral components, be the two two-way continuous buses of line.
As shown in Figure 1a, a kind of distributed network communication device structure schematic diagram is provided for prior art.Main control module bag
The central processing unit (English full name: Central Processing Unit, English abbreviation: CPU) included, by I2C interface, connects
Multipath I 2 C extended function module, can connect multiple business module realizing main control module, carry out read access or write access.By
A kind of Serial Extension technology in I2C bus, main control module also can only serial business module is carried out read access or write access,
Can not be parallel multiple business modules are carried out simultaneously read access or write access.
As shown in Figure 1 b, the another kind of distributed network communication device structure schematic diagram provided for prior art.Master control mould
Block connects programming device, and programming device designs multiple I2C controller, each I2C controller and a business module
IC bus (English full name: Inter-Integrated Circuit, English abbreviation: IIC) interface is connected.Although,
It is capable of multiple business modules are carried out simultaneously read access or write access, but, owing to programming device contains more
I2C controller, the internal resource of programming device consumes more, and multiple business modules carries out read access or write access simultaneously
Inefficient.
So, how to realize the high efficiency read access to the distributed network communication each business module of equipment or write access is one
Individual problem demanding prompt solution.
Summary of the invention
It is an object of the invention to provide a kind of data transmission method and device, it is possible to utilize less programming device to patrol
Collect resource, it is achieved high efficiency read access or the write access to the distributed network communication each business module of equipment.
Above-mentioned target and other targets will be reached by the feature in independent claims.Further implementation exists
Dependent claims, specification and drawings embody.
First aspect, it is provided that a kind of data transmission method, is applied to distributed network communication equipment, distributed network communication
Equipment includes a main control module and N number of business module, and N is the integer more than or equal to 2, main control module include central processing unit and
Programming device, programming device includes logic gates, and logic gates is for controlling the state machine of programming device, described
Method includes:
Central processing unit sends access request to programming device, and access request is write access or read access;Gate electricity
Road controls the state machine of programming device according to access request so that main control module sets up the chain between each business module
Road;At least two business module is visited by central processing unit by the link between main control module and each business module simultaneously
Ask operation.
The data transmission method that above-mentioned first aspect provides, by programming device newly-increased in main control module, able to programme
The logic gates that device includes controls the shape of programming device according to the access request that the central processing unit of main control module sends
State machine, i.e. controls the link between main control module and each business module, in order to the central processing unit of main control module is by main
Business module is conducted interviews operation by the link between control module and each business module simultaneously, thus, it is possible to less utilizing
Programming device logical resource, the I2C Standard Interface that the central processing unit of main control module is universal can be used simultaneously, and use rule
The I2C of model accesses operation, it is achieved high efficiency read access or the write access to the distributed network communication each business module of equipment.
In conjunction with first aspect, can be in implementation at the first, central processing unit and programming device are total by an I2C
Line connects, and main control module is connected with N number of business module by N number of I2C bus, and the most each business module passes through an I2C bus
Being connected with main control module, the state machine of programming device is in the first state, and the first state is that programming device is internal by the
One logical signal line realizes being connected with the logic of N number of I2C bus and an I2C bus, and described access request is write access,
Business module is conducted interviews by central processing unit by the link between main control module and each business module simultaneously
Operation includes: central processing unit passes through an I2C bus, the first logical signal line and described N number of I2C bus simultaneously at least two
Individual business module carries out write access;Central processing unit is received by an I2C bus, the first logical signal line and N number of I2C bus
The response that the business module of write access sends.So, main control module is each by a first logical signal alignment
Business module sends write access, thus main control module can carry out write access at least two business module simultaneously.
In conjunction with first aspect, can be in implementation at the second, central processing unit and programming device are total by an I2C
Line connects, and main control module is connected with N number of business module by N number of I2C bus, and the state machine of programming device is in the first shape
State, the first state is that described programming device is internal to be realized and N number of I2C bus and an I2C by the first logical signal line
The logic of bus connects, and programming device also includes that N-1 data register, described access request are read access,
The state machine that logic gates controls programming device according to access request includes: logic gates is according to read access
The state machine controlling programming device is changed into the second state from the first state, and the second state is that programming device is internal by the
One logical signal line realizes being connected with the logic of the 2nd I2C bus and a described I2C bus, and the 2nd I2C bus is for connecting
Main control module and the bus of the first business module, and realized and N-1 by the second logical signal line to N logical signal line
The logic one to one of I2C bus connects, and N-1 I2C bus is that main control module is total with what N-1 business module was connected one to one
Line, and the second logical signal line is connected with N-1 data register logic one to one respectively to N logical signal line;Centre
The reason device operation that simultaneously conducted interviews business module by the link between main control module and each business module is included: centre
Reason device carries out read access by a described I2C bus, the first logical signal line and the 2nd I2C bus to the first business module,
In N-1 business module, each business module is connected by corresponding data register simultaneously I2C bus and logic are believed
Number line sends data to the data register of correspondence.Thus at least two business module can be read by main control module simultaneously
Access.
In conjunction with the second can implementation, can be in implementation at the third, at described central processing unit by described the
One I2C bus, described first logical signal line and described 2nd I2C bus carry out read access to described first business module, with
I2C bus that in N-1 business module of Shi Suoshu, each business module is connected by corresponding described data register and
After logical signal line sends data to the described data register of correspondence, described method also includes:
Logic gates controls the state machine of described programming device and is changed into the third state from described second state, described
The third state is that described N-1 data register head and the tail are logically contiguous, and described programming device inside is patrolled by described first
Collect holding wire to realize being connected with the logic of a described I2C bus and first described data register;Central processing unit is read continuously
Take the data in described N-1 data register.
In conjunction with the third can implementation, implementation can read institute continuously at described central processing unit at the 4th kind
After stating the data in N-1 data register, described method also includes: logic gates controls the state machine of programming device
Being changed into described first state from the described third state, central processing unit is by a described I2C bus, the first logical signal line
Response is sent to N number of business module with described N number of I2C bus.
In conjunction with the first can implementation or the 4th kind can implementation, can be in implementation at the 6th kind, in described
Central processor by the link between described main control module and each described business module simultaneously to business mould described at least two
Block conducts interviews before operation, and described method also includes:
Central processing unit sends the address of business module, locator service module;Central processing unit is total by a described I2C
Line, the first logical signal line and described N number of I2C bus receive the response that addressed business module sends.
In conjunction with the first can implementation to the 5th kind can in implementation any one, can implementation at the 6th kind
In, at least two business module is carried out by the link between main control module and each business module at central processing unit simultaneously
After accessing operation, described method also includes:
Central processing unit is sent to N number of business module by an I2C bus, the first logical signal line and N number of I2C bus
Stop operation.
Second aspect, it is provided that a kind of distributed network communication equipment, distributed network communication equipment includes a master control mould
Block and N number of business module, N is the integer more than or equal to 2, and main control module includes central processing unit and programming device, described can
Programming device includes logic gates, and described logic gates is used for controlling the state machine of programming device,
Central processing unit, for sending access request to programming device, access request is write access or read access;Logic
Gate circuit, for controlling the state machine of programming device so that main control module is set up and each business module according to access request
Between link;Central processing unit, is additionally operable to by the link between main control module and each business module simultaneously at least two
Individual business module conducts interviews operation.Concrete implementation mode is referred in the data transmission method that first aspect provides concrete
Behavioral function.
In the present invention, the name pair of central processing unit, programming device, main control module, business module and logic gates
Equipment itself does not constitute restriction, and in practical implementations, these equipment can occur with other titles.If the function of each equipment
Similar with the present invention, belong within the scope of the claims in the present invention and equivalent technologies thereof.
The aspects of the invention or other aspects be meeting more straightforward in the following description.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to
Other accompanying drawing is obtained according to these accompanying drawings.
A kind of distributed network communication device structure schematic diagram that Fig. 1 a provides for prior art;
The another kind of distributed network communication device structure schematic diagram that Fig. 1 b provides for prior art;
A kind of distributed network communication device structure schematic diagram that Fig. 2 provides for the embodiment of the present invention;
First view of the state machine of a kind of programming device that Fig. 3 provides for the embodiment of the present invention;
A kind of data transmission method flow chart that Fig. 4 provides for the embodiment of the present invention;
The another kind of data transmission method flow chart that Fig. 5 provides for the embodiment of the present invention;
The state machine of a kind of programming device that Fig. 6 provides for the embodiment of the present invention shows with the corresponding relation of write access process
It is intended to;
Another data transmission method flow chart that Fig. 7 provides for the embodiment of the present invention;
The state machine of a kind of programming device that Fig. 8 provides for the embodiment of the present invention shows with the corresponding relation of read access process
It is intended to;
Second view of the state machine of a kind of programming device that Fig. 9 provides for the embodiment of the present invention;
The third state schematic diagram of the state machine of a kind of programming device that Figure 10 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly retouched
State.
The present invention rationale here is that: conducts interviews business module operation for main control module in prior art, visits
Ask inefficient in the case of, the present invention by programming device newly-increased in main control module, what programming device included patrols
Collect gate circuit and control the state machine of programming device according to the access request that the central processing unit of main control module sends, i.e. control main
Link between control module and each business module, in order to the central processing unit of main control module is by main control module and each industry
Business module is conducted interviews operation, thus, it is possible to utilizing less programming device to patrol by the link between business module simultaneously
Collect resource, the I2C Standard Interface that the central processing unit of main control module is universal can be used simultaneously, and the I2C of operating specification accesses behaviour
Make, it is achieved high efficiency read access or the write access to the distributed network communication each business module of equipment.
The embodiment of the present invention provides a kind of distributed network communication device structure schematic diagram, as in figure 2 it is shown, include: one
Main control module and N number of business module, main control module is connected with N number of business module by N number of I2C bus, the most each business module
Being connected with main control module by an I2C bus, N is the integer more than or equal to 2, and wherein, main control module includes central processing unit
And programming device, central processing unit is connected by an I2C bus with programming device, and programming device includes gate electricity
Road, logic gates is for controlling the state machine of programming device.
Wherein, central processing unit, for sending access request to programming device, access request is write access or reads to visit
Ask;Logic gates, for controlling the state machine of programming device so that main control module is set up and each industry according to access request
Link between business module;Central processing unit, it is the most right to be additionally operable to by the link between main control module and each business module
At least two business module conducts interviews operation.
It should be noted that when central processing unit does not sends access request to programming device, the shape of programming device
State machine is in the first state, the first state be programming device internal by the first logical signal line realize with N number of I2C bus with
And the logic of a described I2C bus connects, the first state of the state machine of programming device is equivalent to original state, namely
Distributed network communication equipment does not carry out any state accessing operation.As it is shown on figure 3, the of the state machine of programming device
One state.
Concrete, at central processing unit after programming device sends write access request, logic gates judges able to programme
The state machine of device is original state, the i.e. first state, and the first state is that programming device is internal by the first logical signal line
Realizing being connected with the logic of N number of I2C bus and an I2C bus, central processing unit is by main control module during the first state
And the link between each business module carries out write access to business module simultaneously, namely by an I2C bus, first patrol
Collecting holding wire and N number of I2C bus carries out write access simultaneously at least two business module, finally, central processing unit passes through first
I2C bus, the first logical signal line and N number of I2C bus send to N number of business module and stop operation.
At central processing unit after programming device sends read access request, logic gates judges the shape of programming device
State machine is original state, the i.e. first state, central processing unit by main control module and each business module during the first state it
Between link be addressed operation, if address successfully, central processing unit receive read access business module transmission response
Response;Then, the state machine that logic gates controls programming device according to read access is changed into the second state from the first state,
Second state is that programming device is internal to be realized and the 2nd I2C bus and an I2C bus by the first logical signal line
Logic connects, and the 2nd I2C bus is to connect main control module and the bus of the first business module, and by the second logical signal line
Realizing being connected with the logic one to one of N-1 I2C bus to N logical signal line, N-1 I2C bus is main control module and N-1
The bus that individual business module connects one to one, and the second logical signal line to N logical signal line respectively with N-1 data register
Device logic one to one connects, and central processing unit passes through an I2C bus, the first logical signal line and the 2nd I2C bus to first
Business module carries out read access, and in N-1 business module, each business module is connected by corresponding data register simultaneously
The I2C bus connect and logical signal line send data to the data register of correspondence;Again, logic gates controls able to programme
The state machine of device is changed into the third state from the second state, and the third state is that N-1 data register head and the tail are logically contiguous, and
Programming device is internal to be realized being connected with the logic of an I2C bus and first data register by the first logical signal line,
Central processing unit reads the data in N-1 data register continuously;Finally, logic gates controls the state of programming device
Machine is changed into the first state from the third state, and central processing unit is total by an I2C bus, the first logical signal line and N number of I2C
The N number of business module of alignment sends response, and central processing unit is by an I2C bus, the first logical signal line and N number of I2C
Bus sends to N number of business module and stops operation.
It should be noted that need not to design I2C main frame or I2C inside programming device from machine, only comprise in part
Portion's signal connects logic and the part data register (I2C DAT2~I2C DATN) of controlled state machine.Programming device root
According to the difference of the central processing unit access process that main control module includes, the state machine that programming device switching is different, it is achieved concurrent
I2C read access or write access.Unified status information address distribution, i.e. one home address is realized inside each business module
The a certain characteristic monitor state information of corresponding business module, and this information type definition of all business modules is consistent.
Embodiment 1
The embodiment of the present invention provides a kind of data transmission method, based on the distributed network communication equipment shown in Fig. 2, such as figure
Shown in 4, including:
Step 201, central processing unit send access request to programming device.
Access request is write access or read access.
Step 202, programming device control the state machine of programming device according to access request so that main control module is set up
And the link between each business module.
Link between main control module and each business module includes the entity between main control module and each business module
Logical links between link, and main control module and each business module, i.e. programming device and main control module and business mould
The link of the I2C bus between block.
Step 203, central processing unit pass through the link between main control module and each business module simultaneously at least two
Business module conducts interviews operation.
So, by programming device newly-increased in main control module, the logic gates root that programming device includes
The access request sent according to the central processing unit of main control module controls the state machine of programming device, i.e. controls main control module with every
Link between individual business module, in order to the central processing unit of main control module is by between main control module and each business module
Link business module is conducted interviews operation, thus, it is possible to utilizing less programming device logical resource, simultaneously simultaneously
The I2C Standard Interface that the central processing unit of main control module is universal can be used, and the I2C of operating specification accesses operation, it is achieved to dividing
The high efficiency read access of each business module of cloth network communication equipment or write access.
Embodiment 2
The embodiment of the present invention provides a kind of data transmission method, based on the distributed network communication equipment shown in Fig. 2, can compile
The state machine of journey device is in the first state, and the first state is that programming device is internal to be realized and N by the first logical signal line
The logic of individual I2C bus and an I2C bus connects, and main control module initiates the write access to business module, as it is shown in figure 5,
Described method includes:
Step 301, central processing unit send to programming device and access startup operation symbol (STA).
Step 302, central processing unit send the address of business module, locator service module.
Step 303, central processing unit are received by an I2C bus, the first logical signal line and N number of I2C bus and are sought
The response that the business module of location sends.
Step 304, central processing unit pass through an I2C bus, the first logical signal line and N number of I2C bus simultaneously to extremely
Few two business modules carry out write access.
Step 305, central processing unit are received by an I2C bus, the first logical signal line and N number of I2C bus and write visit
The response that the business module asked sends.
Step 306, central processing unit pass through an I2C bus, the first logical signal line and N number of I2C bus to N number of business
Module sends and stops operation.
Write access refers to that main frame transmits to the data initiated from machine, and these data can be intercepted from machine and be saved in inside machine
Depositor in realize specific function.Central processing unit can include I2C main frame, and business module includes that I2C is from machine.
As shown in Figure 6, the state machine of programming device and the corresponding relation schematic diagram of write access process.
Startup operation (S) initiated by the I2C main frame of the central processing unit that main control module includes;I2C main frame sends device address
(DEVICE ADDRESS), addresses I2C to be accessed from machine;I2C main frame sends Read-write Catrol position, Read-write Catrol position
Numerical value be " 0 " and time represent write access, the numerical value of Read-write Catrol position for " 1 " time represent read access;I2C from machine listen to addressing with
The address of equipment of itself is consistent, feeding back ACK response (A), and numerical value represents effective ACK for " 0 ";I2C main frame listens to effective response
The data (DATA) of rear transmission write access, each data conveying length is 8bit;I2C, after machine receives 8bit data, feeds back
One response (A);Can also continue to write data herein, I2C main frame according to I2C from the response condition of machine and I2C master
The access of machine self is arranged, it may be judged whether terminate to access, and initiates to stop operation and i.e. terminates this access (P).
It should be noted that main control module can also be arranged, and which business module concrete is carried out write access.
Particularly, if I2C does not listens to address consistent with the address of equipment of itself from machine, I2C is loud from machine not feeding back ACK
Answer (A), or feedback NACK response (NA), numerical value represents invalid ACK for " 1 ".
So, by programming device newly-increased in main control module, the logic gates root that programming device includes
The write access sent according to the central processing unit of main control module controls the state machine of programming device, i.e. controls main control module with each
Link between business module, in order to the central processing unit of main control module is by between main control module and each business module
Link carries out write access to business module simultaneously, thus, it is possible to utilizing less programming device logical resource, can make simultaneously
With the I2C Standard Interface that the central processing unit of main control module is universal, and the I2C of operating specification accesses operation, it is achieved to distributed
The high efficiency write access of each business module of network communication equipment.
Embodiment 3
The embodiment of the present invention provides a kind of data transmission method, based on the distributed network communication equipment shown in Fig. 2, can compile
The state machine of journey device is in the first state, and the first state is that described programming device is internal to be realized by the first logical signal line
Being connected with the logic of described N number of I2C bus and a described I2C bus, main control module initiates the read access to business module,
As it is shown in fig. 7, described method includes:
Step 401, central processing unit send to programming device and access startup operation symbol (STA).
Step 402, central processing unit send the address of business module, locator service module.
Step 403, central processing unit are received by an I2C bus, the first logical signal line and N number of I2C bus and are sought
The response that the business module of location sends.
Read access refers to behavior that main frame is actively initiated, that control to transmit to main frame data from machine.Central processing unit is permissible
Including I2C main frame, business module includes that I2C is from machine.
As shown in Figure 8, the state machine of programming device and the corresponding relation of read access process.
When the state machine of programming device is the first state, first, the I2C master of the central processing unit that main control module includes
Startup operation (S) initiated by machine;I2C main frame sends device address (DEVICE ADDRESS), addresses I2C to be accessed from machine;I2C
Main frame sends Read-write Catrol position, the numerical value of Read-write Catrol position is " 0 " time represent write access, the numerical value of Read-write Catrol position
For " 1 " time represent read access;It is consistent with the address of equipment of itself that I2C listens to addressing from machine, feeding back ACK response (A), numerical value
For " 0 " represent effective ACK.Carry out read access again, i.e. perform step 404 to step 411.
Particularly, if I2C does not listens to address consistent with the address of equipment of itself from machine, I2C is loud from machine not feeding back ACK
Answer (A), or feedback NACK response (NA), numerical value represents invalid ACK for " 1 ".
The state machine that step 404, logic gates control programming device according to read access is changed into the from the first state
Two-state.
As it is shown in figure 9, the second state is programming device, the internal first logical signal line that passes through realizes and the 2nd I2C bus
And the oneth the logic of I2C bus connect, the i.e. first logical signal line had not only carried out logic with the 2nd I2C bus and had been connected but also with first
I2C bus carries out logic connection, and the 2nd I2C bus is to connect main control module and the bus of the first business module, and passes through the
Two logical signal lines to N logical signal line realizes being connected with the logic one to one of N-1 I2C bus, and N-1 I2C bus is
The bus that main control module is connected one to one with N-1 business module in addition to the first business module, i.e. one business module leads to
Cross an I2C bus to be connected with programming device, and the second logical signal line is individual with N-1 respectively to described N logical signal line
Data register logic one to one connects.Such as, the second business module is by the 3rd I2C bus and the second logical signal line and the
One data register connects.
Step 405, central processing unit pass through an I2C bus, the first logical signal line and the 2nd I2C bus to the first industry
Business module carries out read access.
When performing step 405, perform step 406 simultaneously.
The I2C that in step 406, N-1 business module, each business module is connected by corresponding data register
Bus and logical signal line send data to the data register of correspondence.
Such as, the second business module sends data to the of correspondence by the 3rd I2C bus and the second logical signal line
One data register.
Step 407, logic gates control the state machine of programming device and are changed into the third state from the second state.
As shown in Figure 10, the third state is that N-1 data register head and the tail are logically contiguous, and passes through inside programming device
First logical signal line realizes being connected with the logic of an I2C bus and first data register.
Step 408, central processing unit read the data in N-1 data register continuously.
N-1 data are sent, and perform step 409.
Step 409, logic gates control the state machine of programming device and are changed into the first state from the third state.
Step 410, central processing unit pass through an I2C bus, the first logical signal line and N number of I2C bus to N number of business
Module sends response.
Step 411, central processing unit pass through an I2C bus, the first logical signal line and N number of I2C bus to N number of business
Module sends and stops operation.
Concrete, as shown in Figure 8, the state machine of programming device and the corresponding relation schematic diagram of read access process.
The I2C of the first business module transfers data to the I2C main frame that the central authorities of main control module process, remaining business from machine
The I2C of module transfers data to the corresponding data depositor within programming device from machine and preserves.
Data (SDA) signal is kept high-impedance state (non-driven state) by the I2C main frame that the central authorities of main control module process, and drives
The height state switching of clock (SCL) signal, just cycle of states switches 8 times, from machine driving data when clock signal is low
The logic state of signal, keeps the logic state of data signal, by accessed I2C address register when clock signal is high
1, inside byte data corresponding to address is transferred to I2C main frame, it is achieved the read operation of 1 byte.
Optionally, after 1 byte data reads, I2C main frame is sent to the first business module by an I2C bus
Response.
Therefore, when first read operation, the data of the first business module are read successfully by I2C main frame, remaining business mould
The reading data of block are stored in the data register within programming device.
After the first character joint number that I2C transmits to I2C main frame from machine is according to being transmitted, all business modules and main control module
Link disconnect, finish up in order interconnection by each internal data registers, the stem of data register connection I2C main frame, can
Data register data within programming device are the most continuously by I2C main frame read access.
Therefore, the 2nd access to n-th data byte that I2C main frame is initiated continuously, really in programming device
The data message that portion keeps in is read out.
The each byte of N that I2C main frame one-time continuous reads, the I2C of the most corresponding N number of business module is from machine same internal address
Data message.Achieve the high efficiency I2C read operation to multiple I2C passages.
Until the I2C main frame read access of the central processing unit of main control module completes, I2C main frame actively initiates to stop operation.
During stopping operation, the state machine of programming device returns to the first state.
Finally, I2C main frame initiates to stop operation (STP), and the I2C of all business modules listens to STP operation from machine,
I2C accesses and terminates.
So, by programming device newly-increased in main control module, the logic gates root that programming device includes
The read access sent according to the central processing unit of main control module controls the state machine of programming device, i.e. controls main control module with each
Link between business module, in order to the central processing unit of main control module is by between main control module and each business module
Link carries out read access to business module simultaneously, thus, it is possible to utilizing less programming device logical resource, can make simultaneously
With the I2C Standard Interface that the central processing unit of main control module is universal, and the I2C of operating specification accesses operation, it is achieved to distributed
The high efficiency read access of each business module of network communication equipment.
It should be noted that for the ease of the technical scheme clearly describing the embodiment of the present invention, at embodiments of the invention
In, have employed the printed words such as " first ", " second " and function is made a distinction with the essentially identical identical entry of effect or similar item, ability
Field technique personnel are appreciated that quantity and execution order are not defined by the printed words such as " first ", " second ".
Those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, and the device of foregoing description
With the specific works process of unit, it is referred to the corresponding process in preceding method embodiment, does not repeats them here.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to
It is that the independent physics of unit includes, it is also possible to two or more unit are integrated in a unit.Above-mentioned integrated list
Unit both can realize to use the form of hardware, it would however also be possible to employ hardware adds the form of SFU software functional unit and realizes.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can be passed through
The hardware that programmed instruction is relevant completes, and aforesaid program can be stored in a computer read/write memory medium, this program
Upon execution, perform to include the step of said method embodiment;And aforesaid storage medium includes: read only memory is (English complete
Claim: Read-Only Memory, English abbreviation: ROM), random access memory (English full name: Random-Access
Memory, English abbreviation: RAM), the various media that can store program code such as magnetic disc or CD.
The above, the only detailed description of the invention of the present invention, but protection scope of the present invention is not limited thereto, and any
Those familiar with the art, in the technical scope that the invention discloses, can readily occur in change or replace, should contain
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with scope of the claims.
Claims (12)
1. a data transmission method, is applied to distributed network communication equipment, and described distributed network communication equipment includes one
Individual main control module and N number of business module, N is the integer more than or equal to 2, it is characterised in that described main control module includes centre
Reason device and programming device, described programming device includes that logic gates, described logic gates are used for controlling described can compiling
The state machine of journey device, described method includes:
Described central processing unit sends access request to described programming device, and described access request is write access or read access;
Described logic gates controls the state machine of described programming device according to described access request so that described main control module
Set up the link between each described business module;
Described central processing unit by the link between described main control module and each described business module simultaneously at least two
Described business module conducts interviews operation.
Method the most according to claim 1, it is characterised in that described central processing unit and described programming device are by the
One I2C bus connects, and described main control module is connected with described N number of business module by N number of I2C bus, described programming device
State machine be in the first state, described first state be described programming device internal by the first logical signal line realize with
The logic of described N number of I2C bus and a described I2C bus connects, and described access request is write access,
Described central processing unit by the link between described main control module and each described business module simultaneously to described business
The module operation that conducts interviews includes:
The while that described central processing unit being by a described I2C bus, described first logical signal line and described N number of I2C bus
Business module described at least two is carried out write access;
Described central processing unit is received by a described I2C bus, described first logical signal line and described N number of I2C bus
The response that the business module of described write access sends.
Method the most according to claim 1, it is characterised in that described central processing unit and described programming device are by the
One I2C bus connects, and described main control module is connected with described N number of business module by N number of I2C bus, described programming device
State machine be in the first state, described first state be described programming device internal by the first logical signal line realize with
The logic of described N number of I2C bus and a described I2C bus connects, and described programming device also includes N-1 data register
Device, described access request is read access,
The state machine that described logic gates controls described programming device according to described access request includes:
The state machine that described logic gates controls described programming device according to described read access changes from described first state
Being the second state, described second state is that described programming device is internal to be realized and second by described first logical signal line
The logic of I2C bus and a described I2C bus connects, and described 2nd I2C bus is for connecting described main control module and first
The bus of business module, and realize a pair with N-1 I2C bus by the second logical signal line to N logical signal line
One logic connects, and described N-1 I2C bus is the bus that described main control module is connected one to one with N-1 business module, and institute
State the second logical signal line to described N logical signal line to be connected with described N-1 data register logic one to one respectively;
Described central processing unit by the link between described main control module and each described business module simultaneously at least two
The operation that conducts interviews of described business module includes:
Described central processing unit by a described I2C bus, described first logical signal line and described 2nd I2C bus to institute
Stating the first business module and carry out read access, in the most described N-1 business module, each business module is by corresponding institute
I2C bus and the logical signal line of stating data register connection send data to corresponding described data register.
Method the most according to claim 3, it is characterised in that described central processing unit by a described I2C bus,
Described first logical signal line and described 2nd I2C bus carry out read access to described first business module, the most described N-1
I2C bus and logical signal line that in business module, each business module is connected by corresponding described data register will
After the described data register that data transmission is the most corresponding, described method also includes:
Described logic gates controls the state machine of described programming device and is changed into the third state from described second state, described
The third state is that described N-1 data register head and the tail are logically contiguous, and described programming device inside is patrolled by described first
Collect holding wire to realize being connected with the logic of a described I2C bus and first described data register;
Described central processing unit reads the data in described N-1 data register continuously.
Method the most according to claim 4, it is characterised in that read described N-1 number continuously at described central processing unit
After the data in depositor, described method also includes:
Described logic gates controls the state machine of described programming device and is changed into described first state from the described third state;
Described central processing unit by a described I2C bus, described first logical signal line and described N number of I2C bus to institute
State N number of business module and send response.
6. according to the method described in claim 2 or 5, it is characterised in that at described central processing unit by described main control module
And business module described at least two is conducted interviews before operation by the link between each described business module, described side simultaneously
Method also includes:
Described central processing unit sends the address of business module, addresses described business module;
Described central processing unit is received by a described I2C bus, described first logical signal line and described N number of I2C bus
The response that addressed described business module sends.
7. a distributed network communication equipment, described distributed network communication equipment includes a main control module and N number of business
Module, N is the integer more than or equal to 2, it is characterised in that described main control module includes central processing unit and programming device, institute
Stating programming device and include logic gates, described logic gates is used for controlling the state machine of described programming device,
Described central processing unit, for sending access request to described programming device, described access request is write access or reading
Access;
Described logic gates, for controlling the state machine of described programming device so that described master according to described access request
Control module sets up the link between each described business module;
Described central processing unit, is additionally operable to by the link between described main control module and each described business module simultaneously to extremely
Few two described business modules conduct interviews operation.
Distributed network the most according to claim 7 communication equipment, it is characterised in that described central processing unit with described can
Programming device is connected by an I2C bus, and described main control module is connected with described N number of business module by N number of I2C bus,
The state machine of described programming device is in the first state, and described first state is that described programming device is internal patrols by first
Collecting holding wire to realize being connected with the logic of described N number of I2C bus and a described I2C bus, described access request is for writing visit
Ask,
Described central processing unit, specifically for by a described I2C bus, described first logical signal line and described N number of I2C
Bus carries out write access to business module described at least two simultaneously;
Described central processing unit, is additionally operable to by a described I2C bus, described first logical signal line and described N number of I2C total
Line receives the response that the business module of described write access sends.
Distributed network the most according to claim 7 communication equipment, it is characterised in that described central processing unit with described can
Programming device is connected by an I2C bus, and described main control module is connected with described N number of business module by N number of I2C bus,
The state machine of described programming device is in the first state, and described first state is that described programming device is internal patrols by first
Collecting holding wire to realize being connected with the logic of described N number of I2C bus and a described I2C bus, described programming device also wraps
Including N-1 data register, described access request is read access,
Described logic gates, specifically for controlling the state machine of described programming device from described first according to described read access
State is changed into the second state, and described second state is that described programming device is internal to be realized by described first logical signal line
Being connected with the logic of the 2nd I2C bus and a described I2C bus, described 2nd I2C bus is for connecting described main control module
With the bus of the first business module, and by the second logical signal line to N logical signal line realize with N-1 I2C bus
Logic one to one connect, described N-1 I2C bus is that described main control module is total with what N-1 business module was connected one to one
Line, and described second logical signal line to described N logical signal line respectively with described N-1 data register logic one to one
Connect;
Described central processing unit, specifically for by a described I2C bus, described first logical signal line and described second
I2C bus carries out read access to described first business module, in the most described N-1 business module each business module by with
I2C bus and logical signal line that the described data register of its correspondence connects send data to corresponding described data register
Device.
Distributed network the most according to claim 9 communication equipment, it is characterised in that
Described logic gates, is changed into the 3rd specifically for controlling the state machine of described programming device from described second state
State, the described third state is that described N-1 data register head and the tail are logically contiguous, and passes through institute inside described programming device
State the first logical signal line to realize being connected with the logic of a described I2C bus and first described data register;
Described central processing unit, is additionally operable to read the data in described N-1 data register continuously.
11. distributed network according to claim 10 communication equipment, it is characterised in that
Described logic gates, is changed into described first state specifically for controlling the state machine of described programming device;
Described central processing unit, is additionally operable to by a described I2C bus, described first logical signal line and described N number of I2C total
N number of business module described in alignment sends response.
Distributed network communication equipment described in 12. according to Claim 8 or 11, it is characterised in that
Described central processing unit, is additionally operable to send the address of business module, addresses described business module;
Described central processing unit, is additionally operable to by a described I2C bus, described first logical signal line and described N number of I2C total
Line receives the response that addressed described business module sends.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610494157.3A CN106168934B (en) | 2016-06-29 | 2016-06-29 | A kind of data transmission method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610494157.3A CN106168934B (en) | 2016-06-29 | 2016-06-29 | A kind of data transmission method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106168934A true CN106168934A (en) | 2016-11-30 |
CN106168934B CN106168934B (en) | 2018-12-14 |
Family
ID=58064633
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610494157.3A Active CN106168934B (en) | 2016-06-29 | 2016-06-29 | A kind of data transmission method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106168934B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107239423A (en) * | 2017-08-02 | 2017-10-10 | 湖南利能科技股份有限公司 | A kind of device based on extension IIC interfaces |
CN107402899A (en) * | 2017-08-02 | 2017-11-28 | 湖南利能科技股份有限公司 | A kind of extended method of IIC interfaces |
WO2021068374A1 (en) * | 2019-10-10 | 2021-04-15 | 苏州浪潮智能科技有限公司 | Control system, switch, and method for controlling execution device |
CN113434442A (en) * | 2021-06-30 | 2021-09-24 | 新华三信息安全技术有限公司 | Switch and data access method |
CN113641606A (en) * | 2021-08-09 | 2021-11-12 | 国家计算机网络与信息安全管理中心 | Service board access method, device, equipment and readable storage medium |
WO2022198880A1 (en) * | 2021-03-25 | 2022-09-29 | 之江实验室 | Arbitrary byte read-write user-side logic controller |
CN115267757A (en) * | 2022-06-23 | 2022-11-01 | 斯凯瑞利(北京)科技有限公司 | Radar system, radar baseband structure and configuration method |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1581026A (en) * | 2004-05-19 | 2005-02-16 | 中兴通讯股份有限公司 | Device and method for operating multiple I2C sub device in communication equipment |
CN101140556A (en) * | 2007-09-11 | 2008-03-12 | 中兴通讯股份有限公司 | Method and device for realizing accessing multiple I2C slave device by programmable device |
CN102023953A (en) * | 2009-09-17 | 2011-04-20 | 研祥智能科技股份有限公司 | Control method of system having many inter-integrated circuit (I2C) buses |
CN102193889A (en) * | 2011-06-08 | 2011-09-21 | 杭州国芯科技股份有限公司 | I2C bus repeater and read-write method thereof |
CN103530261A (en) * | 2013-10-30 | 2014-01-22 | 广东威创视讯科技股份有限公司 | Circuit and management method for access to multiple slaves having same I2C address |
CN103577356A (en) * | 2013-11-06 | 2014-02-12 | 杭州华三通信技术有限公司 | Equipment and method for achieving IIC interface address extension |
CN104199796A (en) * | 2014-09-18 | 2014-12-10 | 歌尔声学股份有限公司 | IIC communication method and embedded system for implementing IIC communication |
CN105117319A (en) * | 2015-08-25 | 2015-12-02 | 烽火通信科技股份有限公司 | Method for realizing real-time monitoring of multi-channel MDIO (Management Data Input Output) devices based on FPGA |
CN105279130A (en) * | 2015-10-22 | 2016-01-27 | 北方工业大学 | Method for operating multiple I2C devices with same address |
-
2016
- 2016-06-29 CN CN201610494157.3A patent/CN106168934B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1581026A (en) * | 2004-05-19 | 2005-02-16 | 中兴通讯股份有限公司 | Device and method for operating multiple I2C sub device in communication equipment |
CN101140556A (en) * | 2007-09-11 | 2008-03-12 | 中兴通讯股份有限公司 | Method and device for realizing accessing multiple I2C slave device by programmable device |
CN102023953A (en) * | 2009-09-17 | 2011-04-20 | 研祥智能科技股份有限公司 | Control method of system having many inter-integrated circuit (I2C) buses |
CN102193889A (en) * | 2011-06-08 | 2011-09-21 | 杭州国芯科技股份有限公司 | I2C bus repeater and read-write method thereof |
CN103530261A (en) * | 2013-10-30 | 2014-01-22 | 广东威创视讯科技股份有限公司 | Circuit and management method for access to multiple slaves having same I2C address |
CN103577356A (en) * | 2013-11-06 | 2014-02-12 | 杭州华三通信技术有限公司 | Equipment and method for achieving IIC interface address extension |
CN104199796A (en) * | 2014-09-18 | 2014-12-10 | 歌尔声学股份有限公司 | IIC communication method and embedded system for implementing IIC communication |
CN105117319A (en) * | 2015-08-25 | 2015-12-02 | 烽火通信科技股份有限公司 | Method for realizing real-time monitoring of multi-channel MDIO (Management Data Input Output) devices based on FPGA |
CN105279130A (en) * | 2015-10-22 | 2016-01-27 | 北方工业大学 | Method for operating multiple I2C devices with same address |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107239423A (en) * | 2017-08-02 | 2017-10-10 | 湖南利能科技股份有限公司 | A kind of device based on extension IIC interfaces |
CN107402899A (en) * | 2017-08-02 | 2017-11-28 | 湖南利能科技股份有限公司 | A kind of extended method of IIC interfaces |
WO2021068374A1 (en) * | 2019-10-10 | 2021-04-15 | 苏州浪潮智能科技有限公司 | Control system, switch, and method for controlling execution device |
US11650950B2 (en) | 2019-10-10 | 2023-05-16 | Inspur Suzhou Intelligent Technology Co., Ltd. | Control system, switch, and method for controlling execution device |
WO2022198880A1 (en) * | 2021-03-25 | 2022-09-29 | 之江实验室 | Arbitrary byte read-write user-side logic controller |
CN113434442A (en) * | 2021-06-30 | 2021-09-24 | 新华三信息安全技术有限公司 | Switch and data access method |
CN113641606A (en) * | 2021-08-09 | 2021-11-12 | 国家计算机网络与信息安全管理中心 | Service board access method, device, equipment and readable storage medium |
CN113641606B (en) * | 2021-08-09 | 2024-04-19 | 国家计算机网络与信息安全管理中心 | Access method, device and equipment of service board and readable storage medium |
CN115267757A (en) * | 2022-06-23 | 2022-11-01 | 斯凯瑞利(北京)科技有限公司 | Radar system, radar baseband structure and configuration method |
Also Published As
Publication number | Publication date |
---|---|
CN106168934B (en) | 2018-12-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106168934A (en) | A kind of data transmission method and device | |
CN104572517B (en) | Method, controller and the computer system of requested date are provided | |
CN100568211C (en) | Realize method and the device of a plurality of I2C of visit with programming device from device | |
CN100507874C (en) | Memory hub and method for memory system performance monitoring | |
US7529862B2 (en) | System for providing access of multiple data buffers to a data retaining and processing device | |
CN105721357A (en) | Exchange device, and peripheral component interconnection express (PCIe) system and initialization method thereof | |
CN106951388A (en) | A kind of DMA data transfer method and system based on PCIe | |
KR20150047551A (en) | High performance interconnect coherence protocol | |
CN106959935A (en) | A kind of method that compatible I2C communications communicate with IPMB | |
CN104598402A (en) | Flash memory controller and control method of flash memory controller | |
CN103003808A (en) | System and method for accessing resources of a PCI Express compliant device | |
CN101539899A (en) | Usb controller and buffer memory control method | |
CN105373345A (en) | Memory devices and modules | |
CN106126465B (en) | A kind of data transmission method and device | |
CN100401279C (en) | Configurable multi-port multi-protocol network interface to support packet processing | |
CN105528314B (en) | A kind of data processing method and control equipment | |
CN101261611A (en) | Peripheral apparatus data-transmission apparatus and transmission method | |
CN101447982A (en) | Storage emulator and method thereof | |
US20100254173A1 (en) | Distributed flash memory storage manager systems | |
JPH07120320B2 (en) | Data transmission system between computer bus and high speed ring network | |
CN116486868A (en) | Computing high speed nonvolatile memory (NVMe) over high speed link (CXL) | |
US11301410B1 (en) | Tags for request packets on a network communication link | |
EP1761856A1 (en) | Computer system and method for queuing interrupt messages in a device coupled to a parallel communications bus | |
EP1596307B1 (en) | I/O configuration messaging within a link-based computing system | |
CN105591854A (en) | Interaction method, device and system based serial bus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |