Summary of the invention
It is a kind of based on bus data transmission method that the embodiment of the present invention provides, by determining the data mode output in bus, set up with data mode the level signal that has corresponding relation, carry out the processing being associated with level signal, just can avoid extra condition prompting line, and the problem of wiring cost, the efficiency of data transmission is able to further raising simultaneously.
It is a kind of based on bus data transmission method that the embodiment of the present invention provides, and comprising:
Determine the data transmission state in bus;
According to described data transmission state, determine corresponding level signal output;
According to the information equity data waiting for transmission of described level signal, process.
Alternatively, determine the data transmission state in bus, according to described data transmission state, determine that corresponding level signal output specifically comprise:
Data transmission state in described bus is judged, if described data transmission state is idle condition, export high level signal;
If described data transmission state is busy state, output low level signal.
Alternatively, data transmission state in described bus is judged, if described data transmission state is idle condition, export high level signal, if described data transmission state is busy state, output does not specifically comprise higher than the described level signal of described level intermediate value:
Data transmission state in described bus is judged, and level intermediate value is set;
If described data transmission state is idle condition, export level signal high and described level intermediate value;
If described data transmission state is busy state, output is not higher than the level signal of described level intermediate value.
Alternatively, according to the information equity data waiting for transmission of described level signal, process specifically and comprise:
If output, higher than the described level signal of described level intermediate value, allows described data to transmit by described bus.
Or
If output, not higher than the described level signal of described level intermediate value, is refused described data and is transmitted by described bus.
Alternatively, determine the data transmission state in bus, according to described data transmission state, determine that corresponding level signal output specifically comprise:
According to described data, take bus number percent and determine described data transmission state;
According to described data transmission state, determine corresponding level signal output.
Alternatively, according to described data, take bus number percent and determine described data transmission state, according to described data transmission state, determine that corresponding level signal output specifically comprise:
If described data take bus number percent and are less than 30%, determine first data transmission state;
If it is 30% to 70% that described data take the scope of bus number percent, determine the second data transmission state;
If described data take bus number percent and are greater than 70%, determine the 3rd data transmission state;
According to described data transmission state, determine corresponding level signal output.
Alternatively, according to described data transmission state, determine that corresponding level signal output specifically comprise:
If determine, the data status in bus is first data transmission state, and output sets up with described transmission state the first level signal that has corresponding relation.
Alternatively, according to described data transmission state, determine that corresponding level signal output specifically comprise:
If determine, the data status in bus is the second transmission status, and output sets up with described transmission state the second electrical level signal that has corresponding relation.
Alternatively, according to described data transmission state, determine that corresponding level signal output specifically comprise:
If determine, the data status in bus is the 3rd data transmission state, and output sets up with described data transmission state the three level signal that has corresponding relation.
Alternatively, according to the information equity data waiting for transmission of described level signal, process specifically and comprise:
If export described the first level signal, equity described data waiting for transmission are carried out parallel transmission processing;
If export described second electrical level signal, equity described data waiting for transmission limit transmission process;
If export described three level signal, equity described data waiting for transmission keep waiting status to process.
As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages:
The embodiment of the present invention provides a kind of and has comprised based on bus data transmission method: determine the data transmission state in bus, according to data transmission state, determine corresponding level signal output, according to the information equity data waiting for transmission of level signal, process.In the present embodiment, by exporting the level signal relative with data transmission state according to the data transmission state in bus, according to the information equity data waiting for transmission of level signal, process again, just can effectively avoid extra condition prompting signal wire or condition prompting instruction, and also solved because growing the problem that causes cost rising or condition prompting instruction to take communication time when distance connects up, meanwhile, also solved the low technical matters of transfer efficiency of data.
Embodiment
It is a kind of based on bus data transmission method that the embodiment of the present invention provides, by determining the data mode output in bus, set up with data mode the level signal that has corresponding relation, carry out the processing being associated with level signal, just can reduce wiring difficulty, and the problem of wiring cost, the efficiency of data transmission is able to further raising simultaneously.
For making goal of the invention of the present invention, feature, advantage can be more obvious and understandable, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, the embodiments described below are only the present invention's part embodiment, but not whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making all other embodiment that obtain under creative work prerequisite, belong to the scope of protection of the invention.
Refer to Fig. 1, for an a kind of embodiment based on bus data transmission method who provides in the embodiment of the present invention comprises:
101, determine the data transmission state in bus;
In the present embodiment, when the enterprising row data communication of bus of system multiterminal networking, need to first determine the state of the data transmission in this bus.
102, according to data transmission state, determine corresponding level signal output;
After data mode on determining bus, according to this data mode output, set up with data mode the level signal that has corresponding relation.
It should be noted that, before carrying out specified data state, need to set up in advance the level signal that possesses corresponding relation with this data mode, this level signal includes level value.
103, according to the information equity data waiting for transmission of level signal, process;
In the present embodiment, after output and the corresponding level signal of data mode, need to waiting for the data of transmission, process according to the level value of this level signal, it should be noted that, the mode of processing can be set up in advance possess the processing mode of corresponding relation with aforesaid level signal.
The embodiment of the present invention provides a kind of and has comprised based on bus data transmission method: determine the data transmission state in bus, according to data transmission state, determine corresponding level signal output, according to the information equity data waiting for transmission of level signal, process.In the present embodiment, by exporting the level signal relative with data transmission state according to the data transmission state in bus, according to the information equity data waiting for transmission of level signal, process again, just can effectively avoid extra condition prompting signal wire or condition prompting instruction, and cost can rise or condition prompting instruction takies the problem of communication time during long distance wiring, meanwhile, also solved the low technical matters of transfer efficiency of data.
That a kind of detailed process based on bus data transmission method that the embodiment of the present invention is provided is described in detail above, below method and the subsequent process of the data mode in definite bus are described in detail, in actual applications, determine that data mode in bus has multiple, be described respectively below:
One, data mode is busy state or idle condition;
Refer to Fig. 2, for a kind of another embodiment based on bus data transmission method providing in the embodiment of the present invention comprises:
201, level intermediate value is set;
In the present embodiment, when the enterprising row data communication of bus of system multiterminal networking, before the data mode of determining in this bus, set in advance a level intermediate value, be understandable that, this level intermediate value can be for example 80V, does not specifically limit herein.
202, the data transmission state in bus is judged, if data status is idle condition, perform step 203, if data status is busy state, perform step 205.
In the present embodiment, when the enterprising row data communication of bus of system multiterminal networking, after being provided with a level intermediate value, need first the data transmission state in this bus to be judged, if judgement data status is idle condition, perform step 203, if judgement data transmission state is busy state, perform step 205.
Be understandable that, the judgement of aforesaid idle condition and busy state, if for example can there is no data in transmission in bus, is idle condition, if having data in bus in transmission, is busy state, does not specifically limit herein.
203, output is higher than the level signal of level intermediate value;
After judgement data transmission state is defined as idle condition, export a level signal higher than aforesaid level intermediate value, be understandable that, this level signal can be for example all level values that are greater than 80V, for example the level signal of all level values more than 81V does not specifically limit herein.
It should be noted that,
204, allow data to transmit by bus;
In the present embodiment, after exporting a level signal higher than level intermediate value, according to preset conditions permit data, by bus, transmit.
205, output is not higher than the level signal of level intermediate value;
After judgement data transmission state is defined as busy state, export one and be understandable that not higher than the level signal of aforesaid level intermediate value, this level signal can be to be for example not more than 80V, for example the level signal of all level values below 80V does not specifically limit herein.
206, refusal data are transmitted by bus;
In the present embodiment, when one of output is not after the level signal higher than level intermediate value, according to preset condition refusal data, by bus, transmit, be understandable that, these data can be to continue the states waiting for transmission such as maintenance.
In the present embodiment, by setting up with data mode the level signal that has corresponding relation according to the data mode output in bus, whether the level signal of judgement output is higher than preset level intermediate value again, equity data waiting for transmission are carried out the processing being associated with judged result, just can effectively avoid extra condition prompting line, and the problem that cost can rise during long distance wiring, simultaneously, speed at specified data state is also improved, thereby has solved the technical matters of the inefficiency of data transmission.
Two, data take bus number percent specified data state
Refer to Fig. 3, for a kind of another embodiment based on bus data transmission method providing in the embodiment of the present invention comprises:
301, data are taken to bus number percent and judge, if data take bus, number percent is less than 30%, performs step 302, if it is 30% to 70% that data take the scope of bus number percent, perform step 305, if data take bus, number percent is greater than 70%, performs step 308;
In the present embodiment, when the enterprising row data communication of bus of system multiterminal networking, needing that first the data in this bus are taken to the number percent that bus used judges, if data take the number percent of bus service condition and are less than 30%, perform step 302, if data take the scope of number percent of bus service condition between 30% to 70%, perform step 305, if data take the number percent of bus service condition and are greater than 70%, perform step 308.
302, specified data is first data transmission state;
The number percent that data in this bus of judgement take bus use is less than after 30%, contrasts with the condition of the data transmission state setting in advance, and the state of determining these data is first data transmission state.
303, output sets up with data transmission state the first level signal that has corresponding relation;
In the present embodiment, after determining that the state of these data is the first data mode, according to first data transmission State-output and the first data mode, there is the first level signal of corresponding relation.
It should be noted that, this first level signal sets in advance corresponding with first data transmission state, and for example this first level signal can be 70V, does not specifically limit herein.
304, etc. data waiting for transmission are carried out parallel transmission processing;
In the present embodiment, after output the first level, reciprocity data waiting for transmission are carried out the processing of parallel transmission, be understandable that, this parallel transmission can be a plurality of data groups, can also be that a plurality of packets transmit based on unified the first level signal, is not specifically limited herein.
305, determine the second data transmission state;
The scope that takies the number percent that bus used when the data of judgement in this bus, contrasts with the condition of the data transmission state setting in advance 30% after 70%, and the transmission state of determining these data is the second data transmission state.
306, output sets up with data transmission state the second electrical level signal that has corresponding relation;
In the present embodiment, after determining that the transmission state of these data is the second data transmission state, according to the second data transmission state output and the second data mode, there is the second electrical level signal of corresponding relation.
It should be noted that, this second electrical level signal sets in advance corresponding with the second data transmission state, and for example this second electrical level signal can be 100V, does not specifically limit herein.
307, reciprocity data waiting for transmission limit transmission process;
In the present embodiment, after output second electrical level, reciprocity data waiting for transmission are carried out the processing of condition restriction transmission, be understandable that, this condition restriction transmission can be a plurality of data, acts on the rule of first-in first-out, based on unified second electrical level signal, transmit, be not specifically limited herein.
308, determine the 3rd data transmission state;
The scope that data in this bus of judgement take the number percent of bus use is being greater than after 70%, contrasts with the condition of the data transmission state setting in advance, and the transmission state of determining these data is the 3rd data transmission state.
309, output sets up with data transmission state the three level signal that has corresponding relation;
In the present embodiment, after determining that the transmission state of these data is the 3rd data transmission state, according to the 3rd data transmission state output and the 3rd data transmission state, there is the three level signal of corresponding relation.
It should be noted that, this three level signal sets in advance corresponding with the 3rd data transmission state, and for example this three level signal can be 110V, does not specifically limit herein.
310, reciprocity data waiting for transmission keep waiting status to process;
In the present embodiment, after output three level signal, the busy extent that the means bus state that reaches capacity, equity data waiting for transmission continue to keep waiting status to process, it should be noted that, this continues the data that keep waiting status to process, in the time of can being the present embodiment step 302 or step 305 at the state of the transmission data in judgement bus, according to step 302 and step 305, process, specifically do not limit herein.
In the present embodiment, by setting up with data mode the level signal that has corresponding relation according to three kinds of data transmission state outputs in bus, according to the level signal equity data waiting for transmission of output, carry out the processing being associated with judged result again, just can effectively avoid extra condition prompting line, and the problem that cost can rise during long distance wiring,, in the speed of specified data state, be also improved meanwhile, thereby solved the technical matters of the inefficiency of data transmission.
To determining that method and the subsequent process of the data transmission state in bus is described in detail above, for ease of understanding, below will be with a concrete application scenarios, to embodiment illustrated in fig. 3, be described in detail, a kind of another embodiment based on bus data transmission method providing in the embodiment of the present invention comprises:
In the present embodiment, when the enterprising row data communication of bus of system multiterminal networking, needing that first the data in this bus are taken to the number percent that bus used judges, if data take the number percent of bus service condition and are less than 30%, contrast with the condition of the data transmission state setting in advance, the transmission state of determining these data is first data transmission state, after determining that the transmission state of these data is first data transmission state, first level signal according to first data transmission State-output and first data transmission state with corresponding relation, it should be noted that, this first level signal sets in advance corresponding with first data transmission state, for example this first level signal can be 70V, specifically do not limit herein, after exporting the first level, equity data waiting for transmission are carried out the processing of parallel transmission, be understandable that, this parallel transmission can be a plurality of data groups, can also be that a plurality of packets transmit based on unified the first level signal, be not specifically limited herein, if data take the scope of number percent of bus service condition between 30% to 70%, contrast with the condition of the data transmission state setting in advance, the transmission state of determining these data is the second data transmission state, after determining that the transmission state of these data is the second data transmission state, the second electrical level signal according to the second data transmission state output and the second data transmission state with corresponding relation, it should be noted that, this second electrical level signal sets in advance corresponding with first data transmission state, for example this second electrical level signal can be 100V, specifically do not limit herein, after determining that the transmission state of these data is the second data transmission state, the second electrical level signal according to the second data transmission state output and the second data transmission state with corresponding relation, this second electrical level signal sets in advance corresponding with first data transmission state, for example this second electrical level signal can be 100V, specifically do not limit herein, after output second electrical level, equity data waiting for transmission are carried out the processing of condition restriction transmission, be understandable that, this condition restriction transmission can be a plurality of data, act on the rule of first-in first-out, based on unified second electrical level signal, transmit, be not specifically limited herein, if data take the number percent of bus service condition and are greater than 70%, contrast with the condition of the data transmission state setting in advance, the transmission state of determining these data is the 3rd data transmission state, after determining that the transmission state of these data is the 3rd data transmission state, the three level signal according to the 3rd data transmission state output and the 3rd data transmission state with corresponding relation, it should be noted that, this three level signal sets in advance corresponding with the 3rd data transmission state, for example this three level signal can be 110V, specifically do not limit herein, after output three level signal, the busy extent that the means bus state that reaches capacity, equity data waiting for transmission continue to keep waiting status to process, it should be noted that, this continues the data that keep waiting status to process, in the time of can being the present embodiment step 302 or step 305 at the state of the transmission data in judgement bus, according to step 302 and step 305, process, specifically do not limit herein.
In the present embodiment, by setting up with data mode the level signal that has corresponding relation according to three kinds of data transmission state outputs in bus, according to the level signal equity data waiting for transmission of output, carry out the processing being associated with judged result again, just can effectively avoid extra condition prompting line, and the problem that cost can rise during long distance wiring,, in the speed of specified data state, be also improved meanwhile, thereby solved the technical matters of the inefficiency of data transmission.
Those skilled in the art can be well understood to, for convenience and simplicity of description, the system of foregoing description, the specific works process of device and unit, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
In the several embodiment that provide in the application, should be understood that, disclosed system, apparatus and method, can realize by another way.For example, device embodiment described above is only schematic, for example, the division of described unit, be only that a kind of logic function is divided, during actual realization, can have other dividing mode, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
The described unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in a plurality of network element.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and also can adopt the form of SFU software functional unit to realize.
If the form of SFU software functional unit of usining described integrated unit realizes and during as production marketing independently or use, can be stored in a computer read/write memory medium.Understanding based on such, the all or part of of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) carry out all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CDs.
The above, above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.