CN105530153A - Slave device communication method in network, communication network, master device and slave device - Google Patents

Slave device communication method in network, communication network, master device and slave device Download PDF

Info

Publication number
CN105530153A
CN105530153A CN201510917899.8A CN201510917899A CN105530153A CN 105530153 A CN105530153 A CN 105530153A CN 201510917899 A CN201510917899 A CN 201510917899A CN 105530153 A CN105530153 A CN 105530153A
Authority
CN
China
Prior art keywords
equipment
packet
input
logical address
attribute
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510917899.8A
Other languages
Chinese (zh)
Other versions
CN105530153B (en
Inventor
俞士磊
张金泽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Step Electric Corp
Shanghai Sigriner Step Electric Co Ltd
Original Assignee
Shanghai Step Electric Corp
Shanghai Sigriner Step Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Step Electric Corp, Shanghai Sigriner Step Electric Co Ltd filed Critical Shanghai Step Electric Corp
Priority to CN201510917899.8A priority Critical patent/CN105530153B/en
Publication of CN105530153A publication Critical patent/CN105530153A/en
Application granted granted Critical
Publication of CN105530153B publication Critical patent/CN105530153B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a slave device communication method in a network, a communication network, a master device and a slave device. The network comprises one master device and multiple slave devices. The method comprises following steps: distributing a logic address to every slave device according to the input output attribution of every slave device in advance, wherein same logic addresses are distributed to the input slave devices and corresponding output slave devices; if the logic addresses of the input slave devices are the same with the logic addresses carried in the data packet sent by the master device, writing the information needed to be transmitted to corresponding output slave devices by the input slave devices to the data packet; if the logic addresses of the output slave devices are the same with the logic addresses carried in the received data packet, reading the information of the input slave devices from the data packet by the output slave devices. According to the embodiment of the invention, direct communication is carried out among the slave devices in the same communication network; therefore, the communication delay is controlled within the shortest time to a certain degree.

Description

In network from devices communicating method, communication network, main equipment and from equipment
Technical field
The present invention relates to the communications field, in the network particularly in the communications field from devices communicating method, communication network, main equipment and from equipment.
Background technology
In recent years, along with the development of science and technology and the continuous progress in epoch, the living standard of people is also improving constantly, and the development of the network technology is also particularly rapid simultaneously.Present stage, the application of communications network system is also particularly extensive, and higher to the requirement of communication response in communications network system in each field.But in current communications network system, when transmitting, can there is the phenomenon postponed in information.
For current containing a main equipment and multiple communications network system from equipment, main equipment be respectively connected respectively by bus between equipment.But usually can not realize direct communication from equipment and between equipment in existing communications network system, all need through main equipment with from the intercommunication mutually between equipment from equipment.Therefore from equipment and particularly evident from the information transmission delay phenomenon between equipment, unexpected heavy losses can be caused to association area.
Summary of the invention
The object of the present invention is to provide in a kind of network from devices communicating method, communication network, main equipment and from equipment, making between slave station in same communication network and slave station can direct communication, thus can be controlled in the short period of time by communication delay to a certain extent.
For solving the problems of the technologies described above, embodiments of the present invention provide in a kind of network from devices communicating method, this network packet is containing a main equipment and multiple from equipment, comprise following steps: in advance according to the input and output attribute respectively from equipment, for each from equipment assignment logic address, wherein, the input with input attributes, from least corresponding output with output attribute of equipment from equipment, inputs and is assigned identical logical address with corresponding output from equipment from equipment; If input is from the logical address of equipment, identical with the logical address of carrying in the packet that main equipment sends, then this input need transfer to corresponding output from equipment and write this packet from the information of equipment; If export the logical address from equipment, identical with the logical address of carrying in the packet received, then this output reads the information of input from equipment write from equipment from this packet.
Embodiments of the present invention additionally provide a kind of communication network, comprise: a main equipment and multiple from equipment, main equipment comprises: dispensing unit, according to each input and output attribute from equipment, for each from equipment assignment logic address, wherein, the input with input attributes, from least corresponding output with output attribute of equipment from equipment, inputs and is assigned identical logical address with corresponding output from equipment from equipment; Transmitting element, for from equipment sending data bag; Comprise from equipment: address judging unit, for judging originally from the logical address of equipment, whether identical with the logical address of carrying in the packet received; Detection of attribute unit, for detecting originally from the attribute of equipment, attribute kit is containing input attributes and output attribute; Write operation unit, for judging that this is identical with the logical address of carrying the packet received from the logical address of equipment at address judging unit, and when detection of attribute unit inspection is input attributes to this from the attribute of equipment, corresponding output need be transferred to and write this packet from the information of equipment; Read operation unit, for judging that this is identical with the logical address of carrying the packet received from the logical address of equipment at address judging unit, and when detection of attribute unit inspection is output attribute to this from the attribute of equipment, from this packet, read the information of input from equipment write.
Embodiments of the present invention additionally provide a kind of main equipment, comprise: dispensing unit, according to each input and output attribute from equipment, for each from equipment assignment logic address, wherein, the input with input attributes, from least corresponding output with output attribute of equipment from equipment, inputs and is assigned identical logical address with corresponding output from equipment from equipment; Transmitting element, for from equipment sending data bag.
Whether embodiments of the present invention additionally provide a kind of from equipment, address judging unit, for judging originally from the logical address of equipment, identical with the logical address of carrying in the packet received; Detection of attribute unit, for detecting originally from the attribute of equipment, attribute kit is containing input attributes and output attribute; Write operation unit, for judging that this is identical with the logical address of carrying the packet received from the logical address of equipment at address judging unit, and when detection of attribute unit inspection is input attributes to this from the attribute of equipment, corresponding output need be transferred to and write this packet from the information of equipment; Read operation unit, for judging that this is identical with the logical address of carrying the packet received from the logical address of equipment at address judging unit, and when detection of attribute unit inspection is output attribute to this from the attribute of equipment, from this packet, read the information of input from equipment write.
Embodiment of the present invention in terms of existing technologies, by in advance according to the input and output attribute respectively from equipment, for each from equipment assignment logic address, wherein, the input with input attributes, from least corresponding output with output attribute of equipment from equipment, inputs and is assigned identical logical address with corresponding output from equipment from equipment.Make, when main equipment is when sending packet with predetermined period, to input and can judge originally from the logical address of equipment from equipment, whether identical with the logical address of carrying in the packet that main equipment sends.And when the described logical address from equipment is identical with the logical address of carrying the packet that main equipment sends, this input need transfer to corresponding output from equipment and write this packet from the information of equipment.In addition, export the logical address that can to judge self from equipment, with receive whether identical from inputting the logical address of carrying from the packet of device transmission.And when self logical address described is identical with the logical address of carrying in the packet received, this output reads the information of input from equipment write from equipment from this packet.Thus make from equipment and from can direct communication between equipment, and without the need to being realized from equipment and from the communication between equipment by main equipment.Can save to a certain extent from equipment by main equipment and other are from the communication cycle between equipment, thus can to a certain extent communication delay be controlled in the short period of time.
In addition, also following steps are comprised from devices communicating method in this network: be each mapping relations that logical address and local physical address are set from equipment in advance; Corresponding output need be transferred to from equipment and write the step of this packet in input from the information of equipment, comprise following sub-step: input from equipment according to the logical address of carrying packet and mapping relations, find corresponding local physical address; By the information stored in the local physical address found, write this packet as the information of corresponding output from equipment need be transferred to; Export and reads from this packet the step of the information that input writes from equipment from equipment, comprise following sub-step: to export from equipment according to the logical address of carrying packet and mapping relations, find corresponding local physical address; Export the information that will read from this packet from equipment, be stored in the local physical address that finds.Input by the way and can write to being stored in this in data load corresponding described packet from the information in a certain physical address of equipment from equipment.Export the information that also can will read from this packet from equipment, be stored in the local physical address corresponding with described logical address.Input can be undertaken storing corresponding information by the respective local physical address corresponding to described logical address from equipment and output from equipment; Thus input can by respective hardware implementing to the process of information and storage from equipment from equipment or output, processing speed is very fast, further shorten the time of communication delay.
In addition, the packet that main equipment sends comprises N number of subframe, and N is natural number; Logical address is carried in subframe; Corresponding output need be transferred to from equipment and write the step of this packet in input from the information of equipment, and input and need transfer to the information of corresponding output from equipment from equipment, write in this packet with this from the subframe at the identical logical address place of equipment; Export and from this packet, read input from the step of the information of equipment write from equipment, export from equipment from this packet with this from the subframe at the identical logical address place of equipment, read the information that input writes from equipment.By the way, the multiple subframes comprised in a packet of main equipment transmission corresponding to multiple logical address can be realized, namely can realize a packet for multiple input from equipment write information, or for multiple output from equipment read message.Make main device without the need to all sending a packet to each input from equipment, thus make the processing speed of main equipment very fast, further shorten communication delay.
In addition, in advance according to the input and output attribute respectively from equipment, for each from the step of equipment assignment logic address, utilize respectively from the register configuration logical address of equipment.Utilize and respectively make its configuration mode comparatively simple from the register configuration logical address of equipment, thus make embodiments of the present invention have more practicality.
Accompanying drawing explanation
Fig. 1 is the structured flowchart according to first embodiment of the invention communication network;
Fig. 2 is the structural representation according to inputting in first embodiment of the invention from equipment;
Fig. 3 is the workflow diagram according to inputting in first embodiment of the invention from equipment;
Fig. 4 stores schematic diagram for managing from the logical address of equipment and the register of local physical address mapping relations according in first embodiment of the invention;
Fig. 5 is the workflow diagram according to exporting in first embodiment of the invention from equipment;
Fig. 6 is the structured flowchart according to second embodiment of the invention communication network;
Fig. 7 is the structured flowchart according to third embodiment of the invention communication network.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, the embodiments of the present invention are explained in detail.But, persons of ordinary skill in the art may appreciate that in each execution mode of the present invention, proposing many ins and outs to make reader understand the application better.But, even without these ins and outs with based on the many variations of following execution mode and amendment, each claim of the application technical scheme required for protection also can be realized.
In embodiments of the present invention, as shown in Figure 1, a main equipment and multiple from equipment is comprised.In advance according to the input and output attribute respectively from equipment, for each from equipment assignment logic address.Wherein, the input with input attributes, from least corresponding output with output attribute of equipment from equipment, inputs and is assigned identical logical address with corresponding output from equipment from equipment; Make the input with same logical address can realize direct communication from equipment and each output between equipment.Can save to a certain extent export from equipment by main equipment and input from the communication cycle between equipment, thus can to a certain extent by communication delay control in the short period of time.Wherein, for each logical address of distributing from equipment comprises initial address and the length of logical address.
It should be noted that, in advance according to the input and output attribute respectively from equipment, for each from the step of equipment assignment logic address, utilize respectively from logical address described in the register configuration of equipment.Utilize and respectively make its configuration mode comparatively simple from the register configuration logical address of equipment, thus make the present invention have more practicality.
First execution mode of the present invention relate in a kind of network from devices communicating method.It should be noted that main equipment in present embodiment periodically to communicate to connect with it from equipment sending data bag.Wherein, the transmission cycle of packet can be set to 1 millisecond; Also according to the needs of actual design, other cycle can be designed to, not limit at this.
It is worth mentioning that, the input of present embodiment can be approximated to be collecting device from equipment, as shown in Figure 2, input the harvester at least comprising communication control module ESC, the processor CPU communicated with described ESC from equipment and communicate to connect with CPU, wherein acquisition module can be, but not limited to as signal lamp 1, and inputting can by the state information of the signal lamp 1 collected by being stored into the respective memory unit of described ESC from equipment after CPU process.
Input the workflow diagram from equipment, as shown in Figure 3, step is as follows: in a step 101, inputs and judges that whether this is identical with the logical address of carrying the packet that main equipment sends from the logical address of equipment from equipment.If identical, then enter step 102; Otherwise, enter step 101.
Specifically, input the logical address comprised the packet received by input interface from equipment Inspection, whether the logical address configured from equipment with this is consistent, when testing result is consistent, then enters step 102.Otherwise, enter step 101.
In a step 102, to input from equipment according to logical address and mapping relations, find corresponding local physical address.
It should be noted that, in present embodiment in advance for respectively from equipment arrange local physical address with above-mentioned be the mapping relations of each logical address of distributing from equipment in advance.Namely this input is the logical address that this distributes from equipment from the local physical address of equipment and main equipment is one to one.Wherein, input comprises FMMU (FMMU refers to field bus management unit) register from equipment, FMMU is used for management input from the logical address of equipment and the mapping relations of local physical address, as shown in Figure 4, the data of a-quadrant poke are the initial address of this input from the logical address of equipment.The data of B region poke are the length of this input from the logical address of equipment.The data of C region poke are the initial address of this input from the local physical address of equipment.It should be noted that, this input is exactly the length of described logical address from the length of the local physical address of equipment, stores without the need to arranging storage area in FMMU separately.
Specifically, inputting can according to the initial address of the logical address of carrying packet from equipment, the initial address of the physical address that the initial address of the known and described logical address of mapping relations stored in conjunction with FMMU is corresponding.The length of corresponding physical address is known according to the length of the logical address of carrying in packet.And then corresponding local physical address can be found.
Then, enter step 103, input the information will stored in the local physical address found from equipment, write this packet as the information of corresponding output from equipment need be transferred to.
It should be noted that, input, from equipment, there is input interface and output interface.In present embodiment, the packet that main equipment sends, through input from device transmission to exporting from equipment accordingly.The i.e. packet that sends of main equipment, through input from the input interface of equipment, and to be transferred to from the output interface of equipment by input and exports from equipment accordingly.
Export the workflow diagram from equipment, as shown in Figure 5, step is as follows: in step 104, exports and judges that whether this is identical with the logical address of carrying the packet received from the logical address of equipment from equipment.If identical, enter step 105, otherwise enter step 104.
This step is similar to step 101, does not repeat them here.
In step 105, to export from equipment according to the logical address of carrying packet and mapping relations, find corresponding local physical address.
This step is similar to step 102, does not repeat them here.
Then, enter step 106, export the information will read from this packet from equipment, be stored in the local physical address that finds.
In present embodiment, from equipment and from can direct communication between equipment, and without the need to being realized by main equipment from equipment and the indirect communication from equipment.Can save to a certain extent from equipment by main equipment and other are from the communication cycle between equipment, thus can to a certain extent communication delay be controlled in the short period of time.
Second execution mode of the present invention relate in a kind of network from devices communicating method.Second execution mode is roughly the same with the first execution mode, and main distinction part is: in the first embodiment, and the corresponding input of the packet that main equipment sends is from equipment.And in second embodiment of the invention, as shown in Figure 6, main equipment send a packet can corresponding multiple input from equipment.
Specifically, the packet that main equipment sends comprises N number of subframe, and wherein, N is natural number; Logical address is carried in subframe.
In the information that input will store in the local physical address found from equipment, write in the step this packet as the information of corresponding output from equipment need be transferred to: input and need transfer to the information of corresponding output from equipment from equipment, to write in this packet with this from the subframe at the identical logical address place of equipment.Exporting the information will read from this packet from equipment, be stored in the step in the local physical address that finds: export from equipment from this packet with this from the subframe at the identical logical address place of equipment, read the information that described input writes from equipment.
Such as, if a packet comprises 5 subframes, be respectively the first subframe, the second subframe, the 3rd subframe, the 4th subframe and the 5th subframe, and each subframe carries respective logical address.Be assumed to be from device A, from equipment B and the logical address that configures from equipment C all consistent with the logical address entrained by the first subframe.And hypothesis from device A be there is input attributes input from equipment, from equipment B and from equipment C be there is output attribute output from equipment, the data packet transmission that main equipment sends is to from device A.When judging that the logical address of self is consistent with the logical address that the first subframe is carried from device A, the information of corresponding output from equipment (as from equipment B with from equipment C) need be transferred to from device A, write in the data load in this packet in the first subframe.The packet that main equipment sends is in time transferring to from equipment B from device A, judge that the logical address of self is consistent with the logical address that the first subframe is carried from equipment B, in the first subframe, then read the information from device A write, and the information of reading is stored to this from the local physical address of equipment B.
It is worth mentioning that, in present embodiment, above-mentioned packet through can transfer to from equipment B other from equipment.Suppose that above-mentioned packet is through transferring to from equipment C from equipment B, when judging that the logical address of self is consistent with the logical address that the first subframe is carried from equipment C, from the data load in this packet first subframe, read the information from device A write from equipment C, and the information of reading is stored to this from the local physical address of equipment C.
The packet that in present embodiment, main equipment sends can be corresponding multiple from equipment.Namely the packet that main equipment sends can be used for and multiplely carries out the input of information or the reading of information from equipment, thus makes the processing speed of main equipment very fast, further shorten communication delay.
The step of various method divides above, just in order to be described clearly, can merge into a step or splitting some step, being decomposed into multiple step, when realizing as long as comprise identical logical relation, all in the protection range of this patent; To adding inessential amendment in algorithm or in flow process or introducing inessential design, but the core design not changing its algorithm and flow process is all in the protection range of this patent.
Third embodiment of the invention relates to a kind of communication network, as shown in Figure 7, comprise: a main equipment and multiple from equipment, main equipment comprises: dispensing unit, according to each input and output attribute from equipment, for each from equipment assignment logic address, wherein, the input with input attributes, from least corresponding output with output attribute of equipment from equipment, inputs and is assigned identical logical address with corresponding output from equipment from equipment; Transmitting element, for from equipment sending data bag; Comprise from equipment: address judging unit, for judging originally from the logical address of equipment, whether identical with the logical address of carrying in the packet received; Detection of attribute unit, for detecting originally from the attribute of equipment, attribute kit is containing input attributes and output attribute; Write operation unit, for judging that this is identical with the logical address of carrying the packet received from the logical address of equipment at address judging unit, and when detection of attribute unit inspection is input attributes to this from the attribute of equipment, corresponding output need be transferred to and write this packet from the information of equipment; Read operation unit, for judging that this is identical with the logical address of carrying the packet received from the logical address of equipment at address judging unit, and when detection of attribute unit inspection is output attribute to this from the attribute of equipment, from this packet, read the information of input from equipment write.
Further, also comprise from equipment: map unit, for arranging mapping relations for logical address and local physical address; Write operation unit, according to the logical address of carrying in packet and mapping relations, finds corresponding local physical address, by the information stored in the local physical address found, writes this packet as transferring to the information of corresponding output from equipment; Read operation unit, according to the logical address of carrying in packet and mapping relations, finds corresponding local physical address, by the information read from this packet, is stored in the local physical address that finds.
In present embodiment, by in advance according to the input and output attribute respectively from equipment, for each from equipment assignment logic address, wherein, the input with input attributes, from least corresponding output with output attribute of equipment from equipment, inputs and is assigned identical logical address with corresponding output from equipment from equipment.Make, when main equipment is when sending packet with predetermined period, to input and can judge originally from the logical address of equipment from equipment, whether identical with the logical address of carrying in the packet that main equipment sends.And when the described logical address from equipment is identical with the logical address of carrying the packet that main equipment sends, this input need transfer to corresponding output from equipment and write this packet from the information of equipment.In addition, export the logical address that can to judge self from equipment, with receive whether identical from inputting the logical address of carrying from the packet of device transmission.And when self logical address described is identical with the logical address of carrying in the packet received, this output reads the information of input from equipment write from equipment from this packet.Thus make from equipment and from can direct communication between equipment, and without the need to being realized by main equipment from equipment and the indirect communication from equipment.Can save to a certain extent from equipment by main equipment and other are from the communication cycle between equipment, thus can to a certain extent communication delay be controlled in the short period of time.
Be not difficult to find, present embodiment is the system embodiment corresponding with the first execution mode, and present embodiment can be worked in coordination with the first execution mode and be implemented.The relevant technical details mentioned in first execution mode is still effective in the present embodiment, in order to reduce repetition, repeats no more here.Correspondingly, the relevant technical details mentioned in present embodiment also can be applicable in the first execution mode.
It is worth mentioning that, each module involved in present embodiment is logic module, and in actual applications, a logical block can be a physical location, also can be a part for a physical location, can also realize with the combination of multiple physical location.In addition, in order to outstanding innovative part of the present invention, the unit not too close with solving technical problem relation proposed by the invention is not introduced in present embodiment, but this does not show the unit that there is not other in present embodiment.
Four embodiment of the invention relates to a kind of main equipment, dispensing unit, according to each input and output attribute from equipment, for each from equipment assignment logic address, wherein, the input with input attributes, from least corresponding output with output attribute of equipment from equipment, inputs and is assigned identical logical address with corresponding output from equipment from equipment; Transmitting element, for from equipment sending data bag.
In present embodiment, main equipment is respectively comparatively simple from the method for salary distribution of equipment assignment logic address, is easy to realize.It is worth mentioning that, each module involved in present embodiment is logic module, and in actual applications, a logical block can be a physical location, also can be a part for a physical location, can also realize with the combination of multiple physical location.In addition, in order to outstanding innovative part of the present invention, the unit not too close with solving technical problem relation proposed by the invention is not introduced in present embodiment, but this does not show the unit that there is not other in present embodiment.
Whether fifth embodiment of the invention relates to one from equipment, comprises: address judging unit, for judging originally from the logical address of equipment, identical with the logical address of carrying in the packet received; Detection of attribute unit, for detecting originally from the attribute of equipment, described attribute kit is containing input attributes and output attribute; Write operation unit, for judging that this is identical with the logical address of carrying the packet received from the logical address of equipment at address judging unit, and when detection of attribute unit inspection is input attributes to this from the attribute of equipment, corresponding output need be transferred to and write this packet from the information of equipment; Read operation unit, for judging that this is identical with the logical address of carrying the packet received from the logical address of equipment at address judging unit, and when detection of attribute unit inspection is output attribute to this from the attribute of equipment, from this packet, read the information of input from equipment write.
In present embodiment, thus make from equipment and from can direct communication between equipment, and without the need to being realized by main equipment from equipment and the indirect communication from equipment.Can save to a certain extent from equipment by main equipment and other are from the communication cycle between equipment, thus can to a certain extent communication delay be controlled in the short period of time.
It is worth mentioning that, each module involved in present embodiment is logic module, and in actual applications, a logical block can be a physical location, also can be a part for a physical location, can also realize with the combination of multiple physical location.In addition, in order to outstanding innovative part of the present invention, the unit not too close with solving technical problem relation proposed by the invention is not introduced in present embodiment, but this does not show the unit that there is not other in present embodiment.
Persons of ordinary skill in the art may appreciate that the respective embodiments described above realize specific embodiments of the invention, and in actual applications, various change can be done to it in the form and details, and without departing from the spirit and scope of the present invention.

Claims (10)

1. in network from a devices communicating method, described network packet, containing a main equipment and multiple from equipment, is characterized in that, comprises following steps:
In advance according to the input and output attribute respectively from equipment, for each from equipment assignment logic address, wherein, have the input of input attributes from least corresponding output with output attribute of equipment from equipment, described input is assigned identical logical address with corresponding output from equipment from equipment;
If described input is from the logical address of equipment, identical with the logical address of carrying in the packet that described main equipment sends, then this input need transfer to corresponding output from equipment and write this packet from the information of equipment;
If described output is from the logical address of equipment, identical with the logical address of carrying in the packet received, then this output reads from equipment the information that described input writes from equipment from this packet.
2. in network according to claim 1 from devices communicating method, it is characterized in that, also comprise following steps:
Be each mapping relations that described logical address and local physical address are set from equipment in advance;
Need transfer to corresponding output in described input from equipment writes the step of this packet from the information of equipment, comprises following sub-step:
Described input according to the logical address of carrying described packet and described mapping relations, finds corresponding local physical address from equipment;
By the information stored in the described local physical address found, transfer to corresponding output as described need and write this packet from the information of equipment;
Described output is read the step of the information that described input writes from equipment from this packet from equipment, comprises following sub-step:
Described output according to the logical address of carrying described packet and described mapping relations, finds corresponding local physical address from equipment;
The information that described output will be read from equipment from this packet, in the local physical address found described in being stored to.
3. in network according to claim 1 from devices communicating method, it is characterized in that, the packet that described main equipment sends comprises N number of subframe, and described N is natural number;
Described logical address is carried in described subframe;
Need transfer to corresponding output in described input from equipment writes the step of this packet from the information of equipment,
Described input need transfer to the information of corresponding output from equipment from equipment, write in this packet with this from the subframe at the identical logical address place of equipment;
Described output is read the step of the information that described input writes from equipment from equipment from this packet, described output from equipment from this packet with this from the subframe at the identical logical address place of equipment, read the information that described input writes from equipment.
4. in network according to claim 1 from devices communicating method, it is characterized in that,
The packet that described main equipment sends, through input from device transmission to exporting from equipment accordingly.
5. in network according to claim 1 from devices communicating method, it is characterized in that,
The transmission cycle of described packet is 1 millisecond.
6. in network according to claim 1 from devices communicating method, it is characterized in that, described in advance according to the input and output attribute respectively from equipment, for each from the step of equipment assignment logic address, utilize respectively from logical address described in the register configuration of equipment.
7. a communication network, comprise a main equipment and multiple from equipment, it is characterized in that, described main equipment comprises:
Dispensing unit, according to each input and output attribute from equipment, for each from equipment assignment logic address, wherein, have the input of input attributes from least corresponding output with output attribute of equipment from equipment, described input is assigned identical logical address with corresponding output from equipment from equipment;
Transmitting element, for from equipment sending data bag;
Describedly to comprise from equipment:
Whether address judging unit is for judging originally from the logical address of equipment, identical with the logical address of carrying in the packet received;
Detection of attribute unit, for detecting originally from the attribute of equipment, described attribute kit is containing input attributes and output attribute;
Write operation unit, for judging that this is identical with the logical address of carrying the packet received from the logical address of equipment at described address judging unit, and when described detection of attribute unit inspection is input attributes to this from the attribute of equipment, corresponding output need be transferred to and write this packet from the information of equipment;
Read operation unit, for judging that this is identical with the logical address of carrying the packet received from the logical address of equipment at described address judging unit, and when described detection of attribute unit inspection is output attribute to this from the attribute of equipment, from this packet, read the information of input from equipment write.
8. communication network according to claim 7, is characterized in that, describedly also comprises from equipment:
Map unit, for arranging mapping relations for described logical address and local physical address;
Described write operation unit is according to the logical address of carrying in described packet and described mapping relations, find corresponding local physical address, by the information stored in the described local physical address found, transfer to corresponding output as described need and write this packet from the information of equipment;
Described read operation unit, according to the logical address of carrying in described packet and described mapping relations, finds corresponding local physical address, by the information read from this packet, in the local physical address found described in being stored to.
9. a main equipment, is characterized in that, comprises:
Dispensing unit, according to each input and output attribute from equipment, for each from equipment assignment logic address, wherein, have the input of input attributes from least corresponding output with output attribute of equipment from equipment, described input is assigned identical logical address with corresponding output from equipment from equipment;
Transmitting element, for from equipment sending data bag.
10. from an equipment, it is characterized in that, comprise:
Whether address judging unit is for judging originally from the logical address of equipment, identical with the logical address of carrying in the packet received;
Detection of attribute unit, for detecting originally from the attribute of equipment, described attribute kit is containing input attributes and output attribute;
Write operation unit, for judging that this is identical with the logical address of carrying the packet received from the logical address of equipment at described address judging unit, and when described detection of attribute unit inspection is input attributes to this from the attribute of equipment, corresponding output need be transferred to and write this packet from the information of equipment;
Read operation unit, for judging that this is identical with the logical address of carrying the packet received from the logical address of equipment at described address judging unit, and when described detection of attribute unit inspection is output attribute to this from the attribute of equipment, from this packet, read the information of input from equipment write.
CN201510917899.8A 2015-12-11 2015-12-11 Slave equipment communication means, communication network, main equipment in network and from equipment Active CN105530153B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510917899.8A CN105530153B (en) 2015-12-11 2015-12-11 Slave equipment communication means, communication network, main equipment in network and from equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510917899.8A CN105530153B (en) 2015-12-11 2015-12-11 Slave equipment communication means, communication network, main equipment in network and from equipment

Publications (2)

Publication Number Publication Date
CN105530153A true CN105530153A (en) 2016-04-27
CN105530153B CN105530153B (en) 2019-02-05

Family

ID=55772156

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510917899.8A Active CN105530153B (en) 2015-12-11 2015-12-11 Slave equipment communication means, communication network, main equipment in network and from equipment

Country Status (1)

Country Link
CN (1) CN105530153B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106603357A (en) * 2016-11-11 2017-04-26 深圳怡化电脑股份有限公司 Sensor data reporting method, device and system
CN111367852A (en) * 2020-03-23 2020-07-03 广州视源电子科技股份有限公司 Operation method, device, equipment and storage medium of equipment
CN113805825A (en) * 2021-08-20 2021-12-17 荣耀终端有限公司 Method, device, storage medium, and program product for data communication between devices
CN114785828A (en) * 2022-04-22 2022-07-22 珠海格力电器股份有限公司 Data communication method, special equipment, electric appliance device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101464848A (en) * 2009-01-22 2009-06-24 成都市华为赛门铁克科技有限公司 Serial bus expansion method and apparatus
CN102314404A (en) * 2010-07-01 2012-01-11 鸿富锦精密工业(深圳)有限公司 I2C equipment communication circuit
CN101610192B (en) * 2008-06-18 2012-06-27 华为技术有限公司 Communication slave, bus cascading method and system
CN103279434A (en) * 2013-05-10 2013-09-04 青岛海信宽带多媒体技术有限公司 Method and device for modifying address of slave unit
US20150301965A1 (en) * 2014-04-17 2015-10-22 Robert Bosch Gmbh Interface unit

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610192B (en) * 2008-06-18 2012-06-27 华为技术有限公司 Communication slave, bus cascading method and system
CN101464848A (en) * 2009-01-22 2009-06-24 成都市华为赛门铁克科技有限公司 Serial bus expansion method and apparatus
CN102314404A (en) * 2010-07-01 2012-01-11 鸿富锦精密工业(深圳)有限公司 I2C equipment communication circuit
CN103279434A (en) * 2013-05-10 2013-09-04 青岛海信宽带多媒体技术有限公司 Method and device for modifying address of slave unit
US20150301965A1 (en) * 2014-04-17 2015-10-22 Robert Bosch Gmbh Interface unit

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106603357A (en) * 2016-11-11 2017-04-26 深圳怡化电脑股份有限公司 Sensor data reporting method, device and system
CN111367852A (en) * 2020-03-23 2020-07-03 广州视源电子科技股份有限公司 Operation method, device, equipment and storage medium of equipment
CN113805825A (en) * 2021-08-20 2021-12-17 荣耀终端有限公司 Method, device, storage medium, and program product for data communication between devices
CN113805825B (en) * 2021-08-20 2022-09-23 荣耀终端有限公司 Method for data communication between devices, device and readable storage medium
CN114785828A (en) * 2022-04-22 2022-07-22 珠海格力电器股份有限公司 Data communication method, special equipment, electric appliance device and storage medium

Also Published As

Publication number Publication date
CN105530153B (en) 2019-02-05

Similar Documents

Publication Publication Date Title
CN101853237B (en) On-chip system and AXI bus transmission method
CN108400880B (en) Network on chip, data transmission method and first switching node
CN105530153A (en) Slave device communication method in network, communication network, master device and slave device
CN102262590B (en) Method and system for rearranging request queue of hardware accelerator
CN101449253B (en) Multi-processor gateway
CN103077147B (en) A kind of global function 1553B bus IP Core based on chained list
CN103248526A (en) Communication equipment and method for achieving out-of-band monitoring and management, and master-slave switching method
CN101454763A (en) Gateway for data transfer between serial buses
CN102103565B (en) Advanced high-performance system bus connecting device and method
CN101944075B (en) Bus system and method and device for reading and writing low-speed bus device
CN104750649A (en) Synchronous sequential control method for opening topology structure bus
CN117076344A (en) Data sharing method, device and system and readable storage medium
CN104765701A (en) Data access method and device
CN105630727A (en) Access method, apparatus and system among multi-SoC nodes
CN103312614A (en) Multicast message processing method, line card and communication device
CN105373511A (en) Device and method for simultaneous communication with multiple optical modules
CN103995789B (en) A kind of direct memory access realizes system and method
CN106027397A (en) Network communication method for distributed measuring equipment of star expansion
CN101261611A (en) Peripheral apparatus data-transmission apparatus and transmission method
CN106059927A (en) Router device enabling star configured limited cascade automatic reconstruction network and network thereof
CN100559359C (en) Matrix type bus connection system
CN103106177A (en) Chip interconnection structure and chip interconnection method of multi-core network processor
CN104678815B (en) The interface structure and collocation method of fpga chip
CN104836710A (en) Method and apparatus based on one-master with multi-slaves communication of distributed system
CN104679687B (en) A kind of method and device for identifying interrupt source

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