[go: up one dir, main page]

WO2015192376A1 - Method and device for assigning ordered numbers to mounted nodes on bus - Google Patents

Method and device for assigning ordered numbers to mounted nodes on bus Download PDF

Info

Publication number
WO2015192376A1
WO2015192376A1 PCT/CN2014/080411 CN2014080411W WO2015192376A1 WO 2015192376 A1 WO2015192376 A1 WO 2015192376A1 CN 2014080411 W CN2014080411 W CN 2014080411W WO 2015192376 A1 WO2015192376 A1 WO 2015192376A1
Authority
WO
WIPO (PCT)
Prior art keywords
identifier
node
nodes
mount
control node
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.)
Ceased
Application number
PCT/CN2014/080411
Other languages
French (fr)
Chinese (zh)
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.)
NEW SINGULARITY INTERNATIONAL TECHNICAL DEVELOPMENT Co Ltd
Original Assignee
NEW SINGULARITY INTERNATIONAL TECHNICAL DEVELOPMENT 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 NEW SINGULARITY INTERNATIONAL TECHNICAL DEVELOPMENT Co Ltd filed Critical NEW SINGULARITY INTERNATIONAL TECHNICAL DEVELOPMENT Co Ltd
Priority to CN201480051299.1A priority Critical patent/CN105556903A/en
Priority to PCT/CN2014/080411 priority patent/WO2015192376A1/en
Publication of WO2015192376A1 publication Critical patent/WO2015192376A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

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
    • H04L12/403Bus networks with centralised control, e.g. polling

Definitions

  • the present invention relates to the field of communications, and more particularly to a method and apparatus for assigning an ordered number to a mount node on a bus.
  • a control node and a mount node mounted on the bus are included, and the control node and the mount node communicate through the 485 bus.
  • the control node In the 485 bus system, the control node often needs to understand the order of the mounted nodes on the bus, in order to understand the relative position between the mounted nodes and the relative position between the control node and the mounted node, so as to better match the bus.
  • the upper mount node performs control; moreover, in order to perform separate communication with each mount node mounted on the bus, the control node first needs to obtain the Sn number (ie, the serial number) of each mount node on the bus, so that the control node is
  • Each mount node on the bus is assigned a unique identification number (ID) in the 485 bus system, so that each mount node uses its own identification number to identify whether the command issued by the control node via the bus belongs to itself. Control separate communication between nodes.
  • ID unique identification number
  • Embodiments of the present invention provide a method and apparatus for allocating an ordered number to a mount node on a bus, so that the control node can learn the order of the mount nodes on the bus, and realize that the control node communicates with each mount node separately.
  • a method for assigning an ordered number to a mount node on a bus comprising a control node and at least one mount node, the control node and the mount node Communication between the buses; the method includes:
  • the control node acquires a first identifier of each mounted node
  • the control node separately measures each of the mount nodes and the control node according to the first identifier of each mount node. The distance between the nodes is obtained, and the distance characteristic information of each mount node is obtained;
  • the control node assigns an ordered sequence number to each of the mount nodes according to the distance feature information of each mount node; the control node sends the ordered sequence number to the corresponding mount node.
  • control node acquires the first identifier of each of the mounted nodes, including:
  • the control node sends a report command, where the report command is used to indicate that each of the mount nodes reports the first identifier, and the report command includes the report delay generation algorithm identifier, and the report delay generation algorithm identifier is used to indicate each mount node.
  • the reporting delay generation algorithm used when reporting the first identifier, so that each of the mount nodes determines the delay time for sending the first identifier by itself;
  • the control node receives the first identifier sent by each of the mount nodes
  • the control node sends an acknowledgement command, where the acknowledgement command includes a first identifier received by the control node after the report command is sent, so that each mount node confirms whether the control node receives its first identifier.
  • the method further includes:
  • the control node sends a report of the report of the next round; the report of the report delay generation algorithm included in the report of the two adjacent rounds is different;
  • the control node receives the first identifier sent by the mount node that is confirmed by the control node; the control node sends an acknowledgement command, where the acknowledgement command includes the first identifier received by the control node after sending the report command of the next round.
  • control node separately measures the distance between each of the mounted nodes and the control node according to the first identifier of each of the mounted nodes, and obtains the distance characteristic information of each of the mounted nodes, including:
  • the control node allocates a ranging identifier to each of the mounting nodes, and sends a corresponding relationship between the first identifier and the ranging identifier, so that each of the mounting nodes obtains its own ranging identifier according to the first identifier of the mounting node;
  • the control node uses the ranging identifier to measure the distance between each of the mounted nodes, and obtains the distance characteristic information of each of the mounted nodes.
  • control node uses the ranging identifier to measure the distance between each of the mounted nodes, and obtains the distance characteristic information of each of the mounted nodes, including:
  • the control node For each of the mount nodes, the control node sends a ranging command, where the ranging command includes a ranging identifier of the mounted node;
  • the control node determines a length of time from the sending of the ranging command to the receipt of the reply command of the mounted node; the control node determines the distance characteristic information of the mounted node according to the length of time.
  • control node uses the ranging identifier to measure a distance between each mounted node, and obtains The distance characteristic information of each mount node further includes:
  • the control node repeats the steps of transmitting the ranging command and determining the length of time, and obtaining N time lengths corresponding to the respective mounting nodes; N is an integer greater than or equal to 2;
  • Determining the distance characteristic information of the mounting node according to the length of time includes: the control node filtering the obtained N time lengths;
  • the control node performs statistical value calculation according to the filtering result, obtains a statistical value of the length of time, and determines the statistical value of the length of time as the distance characteristic information of the mounted node.
  • control node performs filtering processing on the obtained N time lengths, including: for the N time lengths, the control node removes a length of time in which the value is greater than or equal to the first set threshold, and the value is less than or equal to
  • the second set threshold is a time length, and the first set threshold is greater than the second set threshold.
  • control node separately measures the distance between each of the mounted nodes and the control node according to the first identifier of each of the mounted nodes, and obtains the distance characteristic information of each of the mounted nodes, including:
  • the control node uses the first identifier to measure the distance between each of the mount nodes, and obtains the distance feature information of each of the mount nodes.
  • control node allocates an ordered sequence number to each of the mount nodes according to the distance feature information of each of the mount nodes, including:
  • the control node sorts the distance feature information of each of the mounted nodes according to a preset order.
  • the control node assigns the ordered serial numbers to the respective mount nodes according to the sorting result of the distance feature information of the mounted nodes.
  • control node sends the sequenced sequence number to the corresponding mount node, where: the control node sends a sequence number to send a command, where the sequence number issuing command includes: the first identifier and the order of each mount node The corresponding relationship of the serial numbers, so that each of the mount nodes obtains the ordered sequence number corresponding to the first identifier according to the first identifier of the first identifier.
  • a device for assigning an ordered number to a mount node on a bus which is applied to a control node in a bus system, and the control node communicates with a mount node in the bus system via a bus;
  • An obtaining unit configured to acquire a first identifier of each mounted node
  • a measuring unit configured to respectively measure a distance between each of the mounting nodes and the control node according to the first identifier of each of the mounting nodes, to obtain distance characteristic information of each of the mounting nodes;
  • An allocation unit configured to allocate an ordered order to each mounted node according to distance feature information of each mounted node Serial number
  • a sending unit configured to send the ordered sequence number to the corresponding mount node.
  • the acquiring unit is specifically configured to:
  • the report command is used to instruct each of the mount nodes to report the first identifier, and the report command includes a report delay generation algorithm identifier, where the report delay generation algorithm identifier is used to indicate that each mount node reports The reporting delay generation algorithm used in the identification, so that each of the mounting nodes determines the delay time for sending the first identifier by itself;
  • the acquiring unit is further configured to:
  • the next round of the reporting command is sent; the reporting delay generation algorithm identifier included in the adjacent two rounds of reporting commands is different; receiving the first identifier sent by the mounting node that is not confirmed by the control node; sending a confirmation command
  • the confirmation command includes a first identifier that is received after the control node sends the reporting command of the next round.
  • the measuring unit includes:
  • An allocation subunit configured to allocate a ranging identifier to each of the mount nodes
  • a sending subunit configured to send a correspondence between the first identifier and the ranging identifier, so that each of the mounting nodes acquires its own ranging identifier according to the first identifier of the first mounting node;
  • a measuring subunit configured to measure a distance between each of the mounting nodes by using the ranging identifier, and obtain distance characteristic information of each of the mounting nodes.
  • the measuring subunit is specifically configured to: send a ranging command to each of the mounting nodes, where the ranging command includes a ranging identifier of the mounting node; determining, from sending the ranging command to receiving The length of the reply command of the mount node; determining the distance feature information of the mount node according to the length of time.
  • the measuring subunit is further configured to: repeatedly perform the step of transmitting the ranging command N-1 times and determining the length of time, and obtain N time lengths corresponding to the respective mounting nodes; N is greater than or equal to An integer of 2; filtering the obtained N time lengths; performing statistical value calculation according to the filtering result, obtaining a statistical value of the length of time, and determining the statistical value of the time length as the distance characteristic information of the mounted node.
  • the measuring subunit is further configured to: remove the N time lengths The value is greater than or equal to the length of time of the first set threshold and the length of time is less than or equal to the second set threshold.
  • the first set threshold is greater than the second set threshold.
  • the measuring unit is specifically configured to:
  • the distance feature information of each mount node is obtained.
  • the allocating unit is configured to: sort the distance feature information of each of the mounted nodes according to a preset order; and assign the ordered serial numbers to the respective mounting nodes according to the sorting result of the distance feature information of the mounted nodes.
  • the sending unit is specifically configured to: send a sequence number to send a command, where the sequence number issuing command includes: a correspondence between a first identifier and an ordered sequence number of each mounted node, so that each of the mounting nodes according to the self The first identifier obtains an ordered sequence number corresponding to the first identifier.
  • the control node acquires the first identifier of each of the mounted nodes; the control node separately measures the distance between each of the mounted nodes and the control node according to the first identifier of each of the mounted nodes, and obtains the distance of each of the mounted nodes. Feature information; The control node assigns an ordered sequence number to each of the mount nodes according to the distance feature information of each mount node; the control node sends the ordered sequence number to the corresponding mount node. Therefore, the control node acquires the first identifier of each of the mount nodes, and can learn each mount node in the bus system, and then measure the distance between each mount node and the control node according to the first identifier of each mount node.
  • the distance feature information of each of the mount nodes is assigned an ordered sequence number to each of the mount nodes according to the distance feature information of each mount node, and the ordered sequence number is sent to the corresponding mount node, so that the control node can be based on the mount node.
  • the ordered number is informed of the order in which the mount nodes are arranged on the bus, and the control node is individually communicated with each of the mount nodes.
  • FIG. 1 is a schematic diagram of an application scenario according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of a first embodiment of a method for assigning an ordered number to a mount node on a bus according to an embodiment of the present invention
  • FIG. 3 is a second embodiment of a method for assigning an ordered number to a mount node on a bus according to an embodiment of the present invention
  • step 301 is a schematic diagram of an implementation method of step 301 according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of an implementation manner of step 305 according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of an apparatus for assigning an ordered number to a mount node on a bus according to an embodiment of the present invention.
  • BEST MODE FOR CARRYING OUT THE INVENTION Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. The following description of the drawings refers to the same or similar elements, unless otherwise indicated.
  • the embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with aspects of the invention as detailed in the appended claims.
  • FIG. 1 is a schematic diagram showing an example of a method and an apparatus for assigning an ordered number to a mount node on a bus according to an embodiment of the present invention.
  • the method and apparatus for assigning an ordered number to a mount node on a bus in the embodiment of the present invention may be applied to a bus system, where the bus system includes a control node 110, at least one mount node 120, and a bus 130;
  • the control node 110 communicates with each of the mount nodes 120 via the bus 130, and each of the mount nodes 120 is mounted on the bus 130.
  • the bus system can be a 485 bus system.
  • the ordered number assigned to the mount node in the embodiment of the present invention refers to the number that the control node assigns to each mount node according to the order of the mount nodes on the bus, and uniquely identifies each mount node.
  • the order of the ordered numbers of the mounted nodes corresponds to the order in which the mounted nodes are arranged on the bus, and can represent the relative positional relationship between the mounted nodes and between the control nodes and the mounted nodes; and the ordered number can be used as The communication address at which the mount node communicates with the control node enables separate communication between the control node and the mount node.
  • FIG. 2 is a schematic diagram of a first embodiment of a method for assigning an ordered number to a mount node on a bus according to an embodiment of the present invention, where the method includes:
  • Step 201 The control node acquires a first identifier of each mounted node.
  • Step 202 The control node separately measures the distance between each of the mounted nodes and the control node according to the first identifier of each of the mounted nodes, and obtains the distance characteristic information of each of the mounted nodes.
  • Step 203 The control node allocates each of the mount nodes according to the distance feature information of each mount node. Ordered serial number
  • Step 204 The control node sends the ordered sequence number to the corresponding mount node.
  • the control node acquires the first identifier of each of the mounted nodes, thereby obtaining each of the mounted nodes in the bus system, and then measuring the relationship between each of the mounted nodes and the control node according to the first identifier of each of the mounted nodes.
  • the distance information of each of the mounted nodes is obtained, and the ordered number is assigned to each of the mounted nodes according to the distance characteristic information of each of the mounted nodes, and the ordered serial number is sent to the corresponding mounting node, so that the control node can
  • the ordered number of the mounted node learns the order of the mounted nodes on the bus, and realizes that the control node communicates with each of the mounted nodes separately.
  • FIG. 3 is a schematic diagram of a first embodiment of a method for assigning an ordered number to a mount node on a bus according to an embodiment of the present invention, where the method includes:
  • Step 301 The control node acquires a first identifier of each mounted node.
  • the first identifier of the mount node may be the information that the mount node uniquely identifies the mount node before being shipped from the factory or used by the user, for example, may be the Sn number of the mount node, etc. .
  • the Sn number can be generally 32-bit coded, and the Sn numbers of different mount nodes are different.
  • the first identifier of each of the mount nodes for example, the Sn number, may be preset in the Flash of the mount node. When the mount node needs to obtain its first identifier, it is from its own Flash. You can read your first ID.
  • the control node therein acquires all the mount nodes in the bus system. Information, thereby providing basic data for subsequent control nodes to control the mounted nodes in the bus system.
  • Step 302 The control node allocates a ranging identifier to each of the mounted nodes, and obtains a correspondence between the first identifier of the mounted node and the ranging identifier.
  • the ranging identifier allocated by the control node for each of the mounting nodes can uniquely identify the corresponding mounting node in the bus system, so that the mounting node and the control node cooperate to perform ranging in the ranging process.
  • This step is an optional step.
  • the control node may not allocate a ranging identifier to the mounted node.
  • the first identifier is directly used to schedule the mounted node.
  • the first identifier of the mount node for example, the general data bit of the Sn number is large, and the bus resource occupied by the mount node corresponding to the first identifier is directly used in the ranging process, and the information transmission time is relatively relatively Long, has a greater impact on ranging efficiency. Therefore, in the embodiment of the present invention, after obtaining the first identifier of each of the mounted nodes, a ranging identifier with a shorter data bit may be allocated for each of the mounted nodes, thereby relatively reducing the occupation in the ranging process. Bus resources, shorten information transmission time, and improve range efficiency.
  • the number of bits of the ranging identifier may be determined according to the number of mounting nodes that obtain the first identifier.
  • Step 303 The control node sends a relationship to send a command, where the relationship includes: a correspondence between the first identifier and the ranging identifier;
  • the step 302 may be performed before the step 407.
  • the correspondence between the first identifier and the ranging identifier may be carried in the confirmation command and sent to each mount. node.
  • Step 304 The mounting node receives the relationship issuing command, and finds its own ranging identifier from the corresponding relationship according to the first identifier of the first node.
  • the ranging identifier of the mounted node can be obtained from the correspondence of Table 1.
  • Step 305 The control node uses the ranging identifier to measure the distance between each of the mounted nodes, and obtains the distance characteristic information of each of the mounted nodes.
  • the distance characteristic information of the mounting node is used to represent the distance between the control node and the mounting node.
  • the distance characteristic information may be a parameter that can represent the distance information, such as a distance value, an information transmission time, and a proportional value.
  • the information transmission time may be a length of time that the control node detects that the information is sent from the control node to the first mount node, for example, 4s, or may be measured from the control node to the first node.
  • the length of time that the carrier node sends the information to the first mount node feedback information for example, 8s;
  • the distance value may be a physical distance between the control node and the first mount node, for example, 50 m;
  • the proportional value may be a ratio of the length of the current first mount node measured by the control node to the length of the mount node farthest from the control node, for example, 5%, and the proportional value may also be measured by the control node.
  • the ratio of the length of the current first mount node to the length of the mount node closest to the control node, for example, 3, is not limited in this embodiment of the present invention.
  • the length of time for transmitting information between the control node and the mount node is used as the distance feature information, as shown in FIG. 5, and details are not described herein again.
  • Step 306 The control node sorts the distance feature information of each of the mounted nodes according to a preset order.
  • the preset sequence may be ascending or descending, etc., and is not limited herein.
  • the distance characteristic information of each of the mounted nodes is as shown in Table 2. Then, the sorting result shown in Table 3 can be obtained by sorting them in ascending order.
  • Step 307 The control node sequentially assigns an ordered sequence number to each of the mounted nodes according to the sorting result of the distance feature information of the mounted node.
  • the order of the ordered sequence numbers of the mount nodes and the order of the distance feature information of the mount nodes should generally be the same. Specifically, for the sort result shown in Table 3, assuming that the assigned ordered sequence number is a natural number starting from 1, then the assigned ordered sequence number result can be as shown in Table 4:
  • AAABBBCC1 500ms 1
  • the control node may fail to obtain the distance feature information of the mounted node.
  • the first identifier is a mount node of AAABBBCC3
  • the control node fails to obtain the distance feature information of the mount node.
  • the distance characteristic information in Table 2 and Table 3 is 0.
  • the distance feature information of the mount nodes that are not acquired by the control node can be inferred from the known distance information of the mount node. For example, if the control node fails to obtain the distance feature information of the mount node whose first identifier is AAABBBCC3, if the known mount nodes are known to be equally spaced, the known distance feature information is 500ms, 600ms, and 803ms, respectively.
  • the mount node with the first identifier AAABBBCC5 and the mount node with the first identifier AAABBBCC4 are obviously located at the first identifier.
  • the distance feature information of the first node identified as AAABBBCC3 may be added to the corresponding relationship according to the inferred distance feature information.
  • the mounted node may or may not be ignored. The mount node is ignored, and the present invention is not limited.
  • Step 308 The control node sends a sequence number to send a command, where the sequence number issuing command includes: a correspondence between the first identifier and the ordered sequence number of each of the mounted nodes.
  • Step 309 The mounting node receives the serial number issuing command, and obtains its own ordered serial number from the corresponding relationship according to the first identifier of the self.
  • FIG. 4 is an example of how the control node obtains the first identifier of the mounted node in step 301. Referring to Figure 4, the method includes:
  • Step 401 The control node sends a report command, where the report command includes: a report delay generation algorithm identifier.
  • the reporting delay generation algorithm identifier is used to indicate that each of the mount nodes on the bus is used by Report delay generation algorithm.
  • the reason for using the report delay generation algorithm is: When the number of bits of the first identifier is large, if the first identifier is directly used as the delay time, for example, when the first identifier of a mount node is 32-bit 10011000101111011001101010001011, As a delay time, it is 2562562699 ms, which is about 700 hours. This speed collection of the first identifier is obviously unbearable. Therefore, in this embodiment, the reporting delay generation algorithm is used according to the first identifier.
  • the number of bits is less than the conversion value of the first identifier to shorten the delay time of each mount node. For example, when the conversion value obtained by converting the first identifier of a mount node is 10010010, if the delay time is 1 times of the conversion value, the delay time for the mount node to send the first identifier will be shortened. It is 146ms, which is in the normal range.
  • the value of the first identifier may be directly used as the delay time, which may be determined according to the number of digits of the first identifier.
  • the reporting delay generation algorithm in the embodiment of the present invention may be an algorithm capable of avoiding reporting conflicts, such as a hash algorithm, a set-digit pseudo-random number generation algorithm, and a random back-off algorithm.
  • the above-mentioned time delay generation algorithm is an example of a hash algorithm, and at least one hash algorithm and an identifier of each hash algorithm may be configured in the control node and each of the mount nodes in advance, and then the control is performed in this step.
  • the node can directly indicate the specific hash algorithm to each mount node by using the hash algorithm identifier in the report command.
  • the hash algorithm identifier may be composed of numbers, characters, and the like, and is not limited herein.
  • the identifier of the hash algorithm 1 is "1”
  • the identifier of the hash algorithm 2 is "2”
  • the identifier of the hash algorithm 3 is "3"
  • this step is The hash algorithm identifier included in the report command is "3”, indicating that the control node indicates that each mount node on the bus uses the hash algorithm 3.
  • the hash algorithm identifier indicated in the reporting command may be determined by the control node, and the specific determining method is not limited, for example, may be randomly determined by the control node, or set a certain order for the hash algorithm identifier, and the hash algorithm is used each time the reporting command is sent.
  • the order of the identification determines the hash algorithm identifier and the like included in the present report command.
  • the order of the hash algorithm is: 1, 3, 2.
  • the report command can include the hash algorithm identifier 1.
  • the report command can be used.
  • the hash algorithm identifier 3 is included.
  • the report command may include the hash algorithm identifier 2
  • the report command may include the hash algorithm identifier 1, and so on.
  • the processing steps on each of the mount nodes are described in the following steps 402 to 405.
  • the mount node in step 402 to step 405 can be any mount node mounted on the bus:
  • Step 402 The mount node receives the report command, and obtains a report delay generation algorithm flag from the report command. Knowledge.
  • Step 403 The mounting node obtains the first identifier of the self, and uses the reporting delay generation algorithm indicated by the reporting delay generation algorithm identifier to convert the first identifier to obtain a converted value.
  • the number of converted digits is less than the first digit. The number of digits identified;
  • the mount node can obtain its first identifier from its own Flash.
  • the first identifier may be a 32-bit Sn number
  • the converted value may be a 8-bit value
  • Step 404 The mount node determines, according to the converted value, a delay time for the mount node to send the first identifier.
  • the mount node may determine a preset multiple of the converted value as the delay time.
  • the preset multiple can be any value greater than 0, and can be set autonomously in practical applications.
  • Step 405 The mount node sends its first identifier to the control node when receiving the reporting command and starting the timing to the delay time.
  • Step 406 The control node receives the first identifier sent by each of the mount nodes.
  • the embodiment of the present invention may further solve the problem by confirming that the first identifier received in the control node and the control node send the M (M ⁇ 2) round report command.
  • the embodiment of the present invention may further include:
  • Step 407 The control node sends an acknowledgement command through the bus, where the acknowledgement command includes the received first identifier of each of the mounted nodes.
  • Step 408 The mounting node receives the confirmation command, and determines whether the first identifier of the confirmation command is included in the confirmation command. If the command is sent, the first identifier of the control node is not sent. When not included, if the report command sent by the control node is received again, the mount node sends its first identifier to the control node through the bus.
  • Steps 401 to 408 above are when the control node sends a round of reporting commands, and the control node hangs with each The processing steps between the nodes.
  • the control node may also send a second round of reporting commands.
  • the processing steps between the control node and each of the mounting nodes may refer to steps 402 to 408.
  • the difference is only: 1.
  • the second round of reporting sent by the control node Preferably, the report delay generation algorithm identifier included in the command is different from the report delay generation algorithm identifier included in the first round of the report command; 2. when the second round of the report command is sent, the mount node interacting with the control node Only the mount node that does not include its first identifier in the confirmation command in the first round determines that the mount node including the first identifier of the confirmation command no longer sends the first identifier.
  • the specific value of M can be set autonomously, and the invention is not limited.
  • the reporting delay generation algorithm identifier included in the adjacent two rounds of reporting commands sent by the control node is different.
  • the control node can obtain the first identifier of each mounted node.
  • the control node uses the ranging identifier to measure the distance between each mounting node in step 305, and obtains an example of the implementation of the distance characteristic information of each mounting node.
  • FIG. 5 a ranging process between a control node and a certain mounting node is illustrated.
  • the control node sequentially performs the ranging process shown in FIG. 5 with each mounting node by using the ranging identifier, that is, The distance characteristic information of each mount node is obtained.
  • the method includes:
  • Step 501 The control node sends a ranging command to the mounting node, where the ranging command includes a ranging identifier of the mounting node.
  • Step 502 After receiving the ranging command, the mounting node immediately sends a reply command to the control node.
  • control node when the control node determines the length of time, it may be implemented by timing, or may be implemented by measuring the number of pulses.
  • a timer when implemented by timing, may be set in the control node, starting from the ranging command sent by the control node, and ending when the control node receives the reply command.
  • the pulse of a certain preset frequency may be preset, the ranging command sent from the control node starts counting, and the control node receives the reply command end counting.
  • the accuracy of the adjustment time length can be adjusted by adjusting the frequency of the pulse, thereby adjusting the accuracy of the distance characteristic information. Specifically, the higher the frequency of the pulse, the higher the accuracy of the time length. The accuracy of the distance feature information is higher.
  • Step 504 The control node determines distance feature information of the mount node according to the length of time.
  • the control node may directly determine the length of time as the distance feature information of the mount node. In another implementation manner, the control node may repeatedly perform step 501 to step 503 N times to obtain N time lengths of the mounted node.
  • N is an integer greater than or equal to 2. The specific value of the N may be set autonomously in an actual application, and is not limited herein.
  • step 504 can include:
  • the control node filters the obtained N time lengths
  • the control node performs statistical calculation according to the filtering result, and obtains a statistical value of the length of time, and determines the statistical value of the time length as the distance characteristic information of the mounted node.
  • the control node may remove the time length in which the value is greater than or equal to the first set threshold, and the time length in which the value is less than or equal to the second set threshold, thereby implementing the filtering process, where The first set threshold is greater than the second set threshold.
  • the specific value of the first setting threshold is greater than the specific value of the second setting threshold, which can be set autonomously in practical applications, and is not limited herein.
  • the five time lengths obtained by the control node are: 508ms, 501ms, 498ms,
  • the filtering process is completed, and the filtering result is: 501ms, 498ms Mouth 501ms.
  • the control node performs statistical calculation according to the filtering result, and obtains a statistical value of the length of time;
  • the statistical calculations here can be arithmetic calculations, geometric mean calculations, calculations based on weight coefficients, and so on.
  • FIG. 6 is a schematic structural diagram of an apparatus for assigning an ordered number to a mount node on a bus according to an embodiment of the present invention.
  • the apparatus may be applied to a control node in a bus system, and the mount node in the control node and the bus system.
  • Communicating through the bus; the device 600 includes:
  • the obtaining unit 610 is configured to obtain a first identifier of each of the mounted nodes.
  • the measuring unit 620 is configured to separately measure the distance between each of the mounting nodes and the control node according to the first identifier of each of the mounting nodes, and obtain distance characteristic information of each of the mounting nodes;
  • the allocating unit 630 is configured to allocate an ordered sequence number to each of the mounted nodes according to the distance feature information of each of the mounted nodes;
  • the sending unit 640 is configured to send the ordered sequence number to the corresponding mount node.
  • the obtaining unit 610 may be specifically configured to:
  • the report command is used to instruct each of the mount nodes to report the first identifier, where the report command includes a report delay generation algorithm identifier, and the report delay generation algorithm identifier is used to indicate that each mount node reports An reporting delay generation algorithm used for identifying, so that each of the mounting nodes determines the delay time for sending the first identifier by itself;
  • the obtaining unit 610 is further specifically configured to:
  • the next round of the reporting command is sent; the reporting delay generation algorithm identifier included in the adjacent two rounds of reporting commands is different; receiving the first identifier sent by the mounting node that is not confirmed by the control node; sending a confirmation command
  • the confirmation command includes the first identifier received by the control node after sending the reporting command of the next round.
  • the measuring unit 620 may include:
  • An allocation subunit configured to allocate a ranging identifier to each of the mount nodes
  • a sending subunit configured to send a correspondence between the first identifier and the ranging identifier, so that each of the mounting nodes obtains its own ranging identifier according to the first identifier of the first loading node;
  • a measuring subunit configured to measure a distance between each of the mounting nodes by using the ranging identifier, and obtain distance characteristic information of each of the mounting nodes.
  • the measuring subunit may be specifically configured to: send a ranging command to each of the mounting nodes, where the ranging command includes a ranging identifier of the mounting node; and determine to send a ranging command to receive The length of the reply command to the mount node; determining the distance feature information of the mount node according to the length of time.
  • the measuring subunit may be further configured to: repeatedly perform the step of transmitting the ranging command N-1 times and determining the length of time, and obtain N time lengths corresponding to the respective mounting nodes; An integer equal to 2; filtering the obtained N time lengths; performing statistical value calculation according to the filtering result, obtaining a statistical value of the length of time, and determining the statistical value of the time length as the distance characteristic information of the mounted node.
  • the measuring subunit may be further configured to: remove, for the N time lengths, a first quantity of time length in which the value is the largest and a second quantity of time length in which the value is the smallest, the first quantity And the sum of the second quantity is less than ?.
  • the measuring unit 620 may be specifically configured to: use the first identifier to measure a distance between each of the mounting nodes, and obtain distance feature information of each of the mounting nodes.
  • the allocating unit 630 may be specifically configured to: sort the distance feature information of each of the mounted nodes according to a preset order; and sequentially assign the ordered nodes to the mounted nodes according to the sorting result of the distance feature information of the mounted node. Serial number.
  • the sending unit is specifically configured to: send a sequence number to send a command, where the sequence number issuing command includes: a correspondence between a first identifier of each mounted node and an ordered sequence number, so that each of the mounting nodes is configured according to The first identifier of the first identifier is obtained by the first identifier corresponding to the first identifier.
  • the device acquires the first identifier of each of the mounted nodes, thereby learning each of the mounted nodes in the bus system, and then measuring the relationship between each of the mounted nodes and the control node according to the first identifier of each of the mounted nodes.
  • the distance information of each of the mounted nodes is obtained, and the ordered number is assigned to each of the mounted nodes according to the distance characteristic information of each of the mounted nodes, and the ordered serial number is sent to the corresponding mounting node, so that the control node can According to the ordered number of the mount node, the order of the mount nodes on the bus is known, and the separate communication between the control node and each mount node is realized.
  • the techniques in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform.
  • the technical solution in the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product, and the computer software product may be stored in a storage medium such as a ROM/RAM. , a diskette, an optical disk, etc., comprising instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention or in certain portions of the embodiments.
  • a computer device which may be a personal computer, server, or network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

A method and device for assigning ordered numbers to mounted nodes on a bus, applicable in a bus system. The method comprises: a control node acquires a first identity of each mounted node; the control node measures the distance between each mounted node and the control node on the basis of the first identity of each mounted node to acquire distance characteristic information of each mounted node; the control node assigns an ordered serial number to each mounted node on the basis of the distance characteristic information of each mounted node; and, the control node transmits the ordered serial number to a corresponding mounted node. The method and deice allows the control node to learn the order in which the mounted nodes are arranged on the bus, thus implementing individual communication between the control node and each mounted node.

Description

一种为总线上的挂载节点分配有序编号的方法及装置  Method and device for assigning ordered numbers to mount nodes on bus

技术领域 本发明涉及通信领域,尤其涉及一种为总线上的挂载节点分配有序编号的方 法及装置。 背景技术 在 485总线系统中, 包括控制节点以及挂载在总线上的挂载节点, 控制节点 与挂载节点之间通过 485总线进行通信。 TECHNICAL FIELD The present invention relates to the field of communications, and more particularly to a method and apparatus for assigning an ordered number to a mount node on a bus. BACKGROUND OF THE INVENTION In a 485 bus system, a control node and a mount node mounted on the bus are included, and the control node and the mount node communicate through the 485 bus.

在 485总线系统中, 控制节点往往需要了解挂载节点在总线上的排列顺序, 以便了解挂载节点之间的相对位置以及控制节点与挂载节点之间的相对位置, 从 而更好地对总线上的挂载节点进行控制; 而且, 为了与挂载在总线上的各个挂载 节点进行单独通信, 需要控制节点首先获得总线上各个挂载节点的 Sn号 (即序 列号), 以便控制节点为总线上的每个挂载节点分配一个在 485 总线系统中独一 无二的身份识别号 (ID ), 使得每个挂载节点利用自身的身份识别号识别控制节 点通过总线发布的命令是否属于自身, 实现与控制节点之间的单独通信。  In the 485 bus system, the control node often needs to understand the order of the mounted nodes on the bus, in order to understand the relative position between the mounted nodes and the relative position between the control node and the mounted node, so as to better match the bus. The upper mount node performs control; moreover, in order to perform separate communication with each mount node mounted on the bus, the control node first needs to obtain the Sn number (ie, the serial number) of each mount node on the bus, so that the control node is Each mount node on the bus is assigned a unique identification number (ID) in the 485 bus system, so that each mount node uses its own identification number to identify whether the command issued by the control node via the bus belongs to itself. Control separate communication between nodes.

目前, 一般都是人为将 485总线系统中各个挂载节点的 Sn号输入控制节点 中, 但是, 对于一个不知道包含多少挂载节点、 不知道各个挂载节点的 Sn号的 485总线系统, 控制节点无法获知总线上各个挂载节点的 Sn号等信息, 进而也无 法获知挂载节点在总线上的排列顺序, 无法与各个挂载节点单独通信。 发明内容 本发明实施例提供一种为总线上的挂载节点分配有序编号的方法及装置,能 够使得控制节点获知挂载节点在总线上的排列顺序, 实现控制节点与各个挂载节 点单独通信。  At present, it is generally artificial to input the Sn number of each mount node in the 485 bus system into the control node, but for a 485 bus system that does not know how many mount nodes are included and does not know the Sn number of each mount node, control The node cannot know the information such as the Sn number of each mount node on the bus, and thus cannot know the order of the mount nodes on the bus, and cannot communicate with each mount node separately. SUMMARY OF THE INVENTION Embodiments of the present invention provide a method and apparatus for allocating an ordered number to a mount node on a bus, so that the control node can learn the order of the mount nodes on the bus, and realize that the control node communicates with each mount node separately. .

第一方面, 提供一种为总线上的挂载节点分配有序编号的方法, 应用于总线 系统, 所述总线系统包括控制节点和至少一个挂载节点, 所述控制节点和所述挂 载节点之间通过总线通信; 该方法包括:  In a first aspect, a method for assigning an ordered number to a mount node on a bus is provided, the bus system comprising a control node and at least one mount node, the control node and the mount node Communication between the buses; the method includes:

控制节点获取各个挂载节点的第一标识;  The control node acquires a first identifier of each mounted node;

控制节点根据各个挂载节点的第一标识分别测量各个挂载节点与控制节点 之间的距离, 得到各个挂载节点的距离特征信息; The control node separately measures each of the mount nodes and the control node according to the first identifier of each mount node. The distance between the nodes is obtained, and the distance characteristic information of each mount node is obtained;

控制节点根据各个挂载节点的距离特征信息为各个挂载节点分配有序序号; 控制节点将所述有序序号发送给对应的挂载节点。  The control node assigns an ordered sequence number to each of the mount nodes according to the distance feature information of each mount node; the control node sends the ordered sequence number to the corresponding mount node.

可选地, 控制节点获取各个挂载节点的第一标识, 包括:  Optionally, the control node acquires the first identifier of each of the mounted nodes, including:

控制节点发送上报命令, 所述上报命令用于指示各个挂载节点上报第一标 识, 所述上报命令中包括上报时延生成算法标识, 所述上报时延生成算法标识用 于指示各个挂载节点上报第一标识时采用的上报时延生成算法, 以便各个挂载节 点确定自身发送第一标识的延时时间;  The control node sends a report command, where the report command is used to indicate that each of the mount nodes reports the first identifier, and the report command includes the report delay generation algorithm identifier, and the report delay generation algorithm identifier is used to indicate each mount node. The reporting delay generation algorithm used when reporting the first identifier, so that each of the mount nodes determines the delay time for sending the first identifier by itself;

控制节点接收各个挂载节点发送的第一标识;  The control node receives the first identifier sent by each of the mount nodes;

控制节点发送确认命令,所述确认命令中包括控制节点发送所述上报命令后 接收到的第一标识, 以便各个挂载节点确认控制节点是否接收到自身的第一标 识。  The control node sends an acknowledgement command, where the acknowledgement command includes a first identifier received by the control node after the report command is sent, so that each mount node confirms whether the control node receives its first identifier.

可选地, 控制节点发送确认命令之后, 还包括:  Optionally, after the control node sends the confirmation command, the method further includes:

控制节点发送下一轮的上报命令;相邻两轮上报命令中包括的上报时延生成 算法标识不同;  The control node sends a report of the report of the next round; the report of the report delay generation algorithm included in the report of the two adjacent rounds is different;

控制节点接收确认未被控制节点确认的挂载节点发送的第一标识; 控制节点发送确认命令,所述确认命令中包括控制节点发送所述下一轮的上 报命令后接收到的第一标识。  The control node receives the first identifier sent by the mount node that is confirmed by the control node; the control node sends an acknowledgement command, where the acknowledgement command includes the first identifier received by the control node after sending the report command of the next round.

可选地,控制节点根据各个挂载节点的第一标识分别测量各个挂载节点与控 制节点之间的距离, 得到各个挂载节点的距离特征信息, 包括:  Optionally, the control node separately measures the distance between each of the mounted nodes and the control node according to the first identifier of each of the mounted nodes, and obtains the distance characteristic information of each of the mounted nodes, including:

控制节点为各个挂载节点分配测距标识,发送第一标识与测距标识之间的对 应关系, 以便各个挂载节点根据自身的第一标识获取自身的测距标识;  The control node allocates a ranging identifier to each of the mounting nodes, and sends a corresponding relationship between the first identifier and the ranging identifier, so that each of the mounting nodes obtains its own ranging identifier according to the first identifier of the mounting node;

控制节点使用所述测距标识测量与各个挂载节点之间的距离,得到各个挂载 节点的距离特征信息。  The control node uses the ranging identifier to measure the distance between each of the mounted nodes, and obtains the distance characteristic information of each of the mounted nodes.

可选地, 控制节点使用所述测距标识测量与各个挂载节点之间的距离, 得到 各个挂载节点的距离特征信息, 包括:  Optionally, the control node uses the ranging identifier to measure the distance between each of the mounted nodes, and obtains the distance characteristic information of each of the mounted nodes, including:

对于每个挂载节点, 控制节点发送测距命令, 所述测距命令中包括该挂载节 点的测距标识;  For each of the mount nodes, the control node sends a ranging command, where the ranging command includes a ranging identifier of the mounted node;

控制节点确定从发送测距命令到接收到该挂载节点的回复命令的时间长度; 控制节点根据所述时间长度确定该挂载节点的距离特征信息。  The control node determines a length of time from the sending of the ranging command to the receipt of the reply command of the mounted node; the control node determines the distance characteristic information of the mounted node according to the length of time.

可选地, 控制节点使用所述测距标识测量与各个挂载节点之间的距离, 得到 各个挂载节点的距离特征信息, 还包括: Optionally, the control node uses the ranging identifier to measure a distance between each mounted node, and obtains The distance characteristic information of each mount node further includes:

控制节点再重复执行 N-1次所述发送测距命令、确定时间长度的步骤, 得到 各个挂载节点对应的 N个时间长度; N是大于等于 2的整数;  The control node repeats the steps of transmitting the ranging command and determining the length of time, and obtaining N time lengths corresponding to the respective mounting nodes; N is an integer greater than or equal to 2;

控制节点根据所述时间长度确定该挂载节点的距离特征信息包括: 所述控制节点对得到的 N个时间长度进行过滤处理;  Determining the distance characteristic information of the mounting node according to the length of time includes: the control node filtering the obtained N time lengths;

所述控制节点根据过滤结果进行统计值计算, 得到时间长度的统计值, 将所 述时间长度的统计值确定为该挂载节点的距离特征信息。  The control node performs statistical value calculation according to the filtering result, obtains a statistical value of the length of time, and determines the statistical value of the length of time as the distance characteristic information of the mounted node.

可选地, 所述控制节点对得到的 N个时间长度进行过滤处理, 包括: 对于所述 N个时间长度, 所述控制节点去除其中数值大于等于第一设定门 限的时间长度以及数值小于等于第二设定门限的时间长度, 所述第一设定门限大 于第二设定门限。  Optionally, the control node performs filtering processing on the obtained N time lengths, including: for the N time lengths, the control node removes a length of time in which the value is greater than or equal to the first set threshold, and the value is less than or equal to The second set threshold is a time length, and the first set threshold is greater than the second set threshold.

可选地,控制节点根据各个挂载节点的第一标识分别测量各个挂载节点与控 制节点之间的距离, 得到各个挂载节点的距离特征信息, 包括:  Optionally, the control node separately measures the distance between each of the mounted nodes and the control node according to the first identifier of each of the mounted nodes, and obtains the distance characteristic information of each of the mounted nodes, including:

控制节点使用所述第一标识测量与各个挂载节点之间的距离,得到各个挂载 节点的距离特征信息。  The control node uses the first identifier to measure the distance between each of the mount nodes, and obtains the distance feature information of each of the mount nodes.

可选地,控制节点根据各个挂载节点的距离特征信息为各个挂载节点分配有 序序号, 包括:  Optionally, the control node allocates an ordered sequence number to each of the mount nodes according to the distance feature information of each of the mount nodes, including:

控制节点按照预设顺序对各个挂载节点的距离特征信息进行排序; 控制节点按照挂载节点的距离特征信息的排序结果依次为各个挂载节点分 配有序序号。  The control node sorts the distance feature information of each of the mounted nodes according to a preset order. The control node assigns the ordered serial numbers to the respective mount nodes according to the sorting result of the distance feature information of the mounted nodes.

可选地, 控制节点将所述有序序号发送给对应的挂载节点, 包括: 控制节点发送序号下发命令, 所述序号下发命令中包括: 各个挂载节点的第 一标识及有序序号的对应关系, 以便各个挂载节点根据自身的第一标识得到第一 标识对应的有序序号。  Optionally, the control node sends the sequenced sequence number to the corresponding mount node, where: the control node sends a sequence number to send a command, where the sequence number issuing command includes: the first identifier and the order of each mount node The corresponding relationship of the serial numbers, so that each of the mount nodes obtains the ordered sequence number corresponding to the first identifier according to the first identifier of the first identifier.

第二方面, 提供一种为总线上的挂载节点分配有序编号的装置, 应用于总线 系统中的控制节点, 所述控制节点与总线系统中的挂载节点之间通过总线通信; 该装置包括:  In a second aspect, a device for assigning an ordered number to a mount node on a bus is provided, which is applied to a control node in a bus system, and the control node communicates with a mount node in the bus system via a bus; Includes:

获取单元, 用于获取各个挂载节点的第一标识;  An obtaining unit, configured to acquire a first identifier of each mounted node;

测量单元,用于根据各个挂载节点的第一标识分别测量各个挂载节点与控制 节点之间的距离, 得到各个挂载节点的距离特征信息;  a measuring unit, configured to respectively measure a distance between each of the mounting nodes and the control node according to the first identifier of each of the mounting nodes, to obtain distance characteristic information of each of the mounting nodes;

分配单元,用于根据各个挂载节点的距离特征信息为各个挂载节点分配有序 序号; An allocation unit, configured to allocate an ordered order to each mounted node according to distance feature information of each mounted node Serial number

发送单元, 用于将所述有序序号发送给对应的挂载节点。  And a sending unit, configured to send the ordered sequence number to the corresponding mount node.

可选地, 所述获取单元具体用于:  Optionally, the acquiring unit is specifically configured to:

发送上报命令, 所述上报命令用于指示各个挂载节点上报第一标识, 所述上 报命令中包括上报时延生成算法标识, 所述上报时延生成算法标识用于指示各个 挂载节点上报第一标识时采用的上报时延生成算法, 以便各个挂载节点确定自身 发送第一标识的延时时间;  Sending a report command, the report command is used to instruct each of the mount nodes to report the first identifier, and the report command includes a report delay generation algorithm identifier, where the report delay generation algorithm identifier is used to indicate that each mount node reports The reporting delay generation algorithm used in the identification, so that each of the mounting nodes determines the delay time for sending the first identifier by itself;

接收各个挂载节点发送的第一标识;  Receiving a first identifier sent by each of the mount nodes;

发送确认命令,所述确认命令中包括控制节点发送所述上报命令后接收到的 第一标识, 以便各个挂载节点确认控制节点是否接收到自身的第一标识。  Sending a confirmation command, where the confirmation command includes a first identifier received by the control node after sending the report command, so that each of the mount nodes confirms whether the control node receives its first identifier.

可选地, 所述获取单元还用于:  Optionally, the acquiring unit is further configured to:

发送确认命令之后, 发送下一轮的上报命令; 相邻两轮上报命令中包括的上 报时延生成算法标识不同; 接收确认未被控制节点确认的挂载节点发送的第一标 识; 发送确认命令, 所述确认命令中包括控制节点发送所述下一轮的上报命令后 接收到的第一标识。  After the confirmation command is sent, the next round of the reporting command is sent; the reporting delay generation algorithm identifier included in the adjacent two rounds of reporting commands is different; receiving the first identifier sent by the mounting node that is not confirmed by the control node; sending a confirmation command The confirmation command includes a first identifier that is received after the control node sends the reporting command of the next round.

可选地, 所述测量单元包括:  Optionally, the measuring unit includes:

分配子单元, 用于为各个挂载节点分配测距标识;  An allocation subunit, configured to allocate a ranging identifier to each of the mount nodes;

发送子单元, 用于发送第一标识与测距标识之间的对应关系, 以便各个挂载 节点根据自身的第一标识获取自身的测距标识;  a sending subunit, configured to send a correspondence between the first identifier and the ranging identifier, so that each of the mounting nodes acquires its own ranging identifier according to the first identifier of the first mounting node;

测量子单元, 用于使用所述测距标识测量与各个挂载节点之间的距离, 得到 各个挂载节点的距离特征信息。  And a measuring subunit, configured to measure a distance between each of the mounting nodes by using the ranging identifier, and obtain distance characteristic information of each of the mounting nodes.

可选地, 所述测量子单元具体用于: 对于每个挂载节点, 发送测距命令, 所 述测距命令中包括该挂载节点的测距标识; 确定从发送测距命令到接收到该挂载 节点的回复命令的时间长度; 根据所述时间长度确定该挂载节点的距离特征信 息。  Optionally, the measuring subunit is specifically configured to: send a ranging command to each of the mounting nodes, where the ranging command includes a ranging identifier of the mounting node; determining, from sending the ranging command to receiving The length of the reply command of the mount node; determining the distance feature information of the mount node according to the length of time.

可选地,所述测量子单元还具体用于:再重复执行 N-1次所述发送测距命令、 确定时间长度的步骤, 得到各个挂载节点对应的 N个时间长度; N是大于等于 2 的整数; 对得到的 N个时间长度进行过滤处理; 根据过滤结果进行统计值计算, 得到时间长度的统计值, 将所述时间长度的统计值确定为该挂载节点的距离特征 信息。  Optionally, the measuring subunit is further configured to: repeatedly perform the step of transmitting the ranging command N-1 times and determining the length of time, and obtain N time lengths corresponding to the respective mounting nodes; N is greater than or equal to An integer of 2; filtering the obtained N time lengths; performing statistical value calculation according to the filtering result, obtaining a statistical value of the length of time, and determining the statistical value of the time length as the distance characteristic information of the mounted node.

可选地, 所述测量子单元还具体用于: 对于所述 N个时间长度, 去除其中 数值大于等于第一设定门限的时间长度以及数值小于等于第二设定门限的时间 长度, 所述第一设定门限大于第二设定门限。 Optionally, the measuring subunit is further configured to: remove the N time lengths The value is greater than or equal to the length of time of the first set threshold and the length of time is less than or equal to the second set threshold. The first set threshold is greater than the second set threshold.

可选地, 所述测量单元具体用于:  Optionally, the measuring unit is specifically configured to:

使用所述第一标识测量与各个挂载节点之间的距离,得到各个挂载节点的距 离特征信息。  Using the first identifier to measure the distance between each of the mount nodes, the distance feature information of each mount node is obtained.

可选地, 所述分配单元具体用于: 按照预设顺序对各个挂载节点的距离特征 信息进行排序; 按照挂载节点的距离特征信息的排序结果依次为各个挂载节点分 配有序序号。  Optionally, the allocating unit is configured to: sort the distance feature information of each of the mounted nodes according to a preset order; and assign the ordered serial numbers to the respective mounting nodes according to the sorting result of the distance feature information of the mounted nodes.

可选地, 所述发送单元具体用于: 发送序号下发命令, 所述序号下发命令中 包括: 各个挂载节点的第一标识及有序序号的对应关系, 以便各个挂载节点根据 自身的第一标识得到第一标识对应的有序序号。  Optionally, the sending unit is specifically configured to: send a sequence number to send a command, where the sequence number issuing command includes: a correspondence between a first identifier and an ordered sequence number of each mounted node, so that each of the mounting nodes according to the self The first identifier obtains an ordered sequence number corresponding to the first identifier.

本发明实施例中, 控制节点获取各个挂载节点的第一标识; 控制节点根据各 个挂载节点的第一标识分别测量各个挂载节点与控制节点之间的距离, 得到各个 挂载节点的距离特征信息; 控制节点根据各个挂载节点的距离特征信息为各个挂 载节点分配有序序号; 控制节点将所述有序序号发送给对应的挂载节点。 从而, 控制节点获取各个挂载节点的第一标识, 可以获知总线系统中的各个挂载节点, 进而根据各个挂载节点的第一标识分别测量各个挂载节点与控制节点之间的距 离, 得到各个挂载节点的距离特征信息, 根据各个挂载节点的距离特征信息为各 个挂载节点分配有序序号, 将所述有序序号发送给对应的挂载节点, 从而控制节 点能够根据挂载节点的有序编号获知挂载节点在总线上的排列顺序, 实现控制节 点与各个挂载节点单独通信。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例 或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的 附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造 性劳动性的前提下, 还可以根据这些附图获得其他的附图。  In the embodiment of the present invention, the control node acquires the first identifier of each of the mounted nodes; the control node separately measures the distance between each of the mounted nodes and the control node according to the first identifier of each of the mounted nodes, and obtains the distance of each of the mounted nodes. Feature information; The control node assigns an ordered sequence number to each of the mount nodes according to the distance feature information of each mount node; the control node sends the ordered sequence number to the corresponding mount node. Therefore, the control node acquires the first identifier of each of the mount nodes, and can learn each mount node in the bus system, and then measure the distance between each mount node and the control node according to the first identifier of each mount node. The distance feature information of each of the mount nodes is assigned an ordered sequence number to each of the mount nodes according to the distance feature information of each mount node, and the ordered sequence number is sent to the corresponding mount node, so that the control node can be based on the mount node. The ordered number is informed of the order in which the mount nodes are arranged on the bus, and the control node is individually communicated with each of the mount nodes. BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, and obviously, in the following description The drawings are only some of the embodiments of the present invention, and other drawings may be obtained from those skilled in the art without departing from the drawings.

图 1为本发明实施例应用场景示例图;  FIG. 1 is a schematic diagram of an application scenario according to an embodiment of the present invention;

图 2 为本发明实施例为总线上的挂载节点分配有序编号的方法第一实施例 示意图;  2 is a schematic diagram of a first embodiment of a method for assigning an ordered number to a mount node on a bus according to an embodiment of the present invention;

图 3 为本发明实施例为总线上的挂载节点分配有序编号的方法第二实施例 示意图; 3 is a second embodiment of a method for assigning an ordered number to a mount node on a bus according to an embodiment of the present invention Schematic diagram

图 4为本发明实施例步骤 301的实现方法实例示意图;  4 is a schematic diagram of an implementation method of step 301 according to an embodiment of the present invention;

图 5为本发明实施例步骤 305的实现方式实例示意图;  FIG. 5 is a schematic diagram of an implementation manner of step 305 according to an embodiment of the present invention;

图 6为本发明实施例为总线上的挂载节点分配有序编号的装置示意图。 具体实施方式 这里将详细地对示例性实施例进行说明, 其示例表示在附图中。下面的描述 涉及附图时, 除非另有表示, 不同附图中的相同数字表示相同或相似的要素。 以 下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。 相反, 它们仅是与如所附权利要求书中所详述的、 本发明的一些方面相一致的装 置和方法的例子。  FIG. 6 is a schematic diagram of an apparatus for assigning an ordered number to a mount node on a bus according to an embodiment of the present invention. BEST MODE FOR CARRYING OUT THE INVENTION Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. The following description of the drawings refers to the same or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with aspects of the invention as detailed in the appended claims.

参见图 1, 为本发明实施例为总线上的挂载节点分配有序编号的方法及装置 所应用场景示例图。 如图 1所示, 本发明实施例为总线上的挂载节点分配有序编 号的方法及装置可以应用于总线系统中, 总线系统中包括控制节点 110、 至少一 个挂载节点 120以及总线 130; 其中, 控制节点 110与各个挂载节点 120之间通 过总线 130进行通信, 各个挂载节点 120均挂载在总线 130上。  FIG. 1 is a schematic diagram showing an example of a method and an apparatus for assigning an ordered number to a mount node on a bus according to an embodiment of the present invention. As shown in FIG. 1, the method and apparatus for assigning an ordered number to a mount node on a bus in the embodiment of the present invention may be applied to a bus system, where the bus system includes a control node 110, at least one mount node 120, and a bus 130; The control node 110 communicates with each of the mount nodes 120 via the bus 130, and each of the mount nodes 120 is mounted on the bus 130.

所述总线系统可以为 485总线系统。  The bus system can be a 485 bus system.

在以上场景示例的基础上对本发明实施例为总线上的挂载节点分配有序编 号的方法进行更为详细的说明。  Based on the above scenario example, a method for assigning an ordered number to a mount node on a bus in the embodiment of the present invention is described in more detail.

其中,本发明实施例中为挂载节点分配的有序编号是指控制节点按照挂载节 点在总线上的排列顺序为各个挂载节点分配的、 唯一标识各个挂载节点的编号。 挂载节点的有序编号的顺序与挂载节点在总线上的排列顺序对应, 能够表征挂载 节点之间以及控制节点与挂载节点之间的相对位置关系; 且所述有序编号可以作 为挂载节点与控制节点进行通信的通信地址, 使得控制节点与挂载节点之间能够 单独通信。  The ordered number assigned to the mount node in the embodiment of the present invention refers to the number that the control node assigns to each mount node according to the order of the mount nodes on the bus, and uniquely identifies each mount node. The order of the ordered numbers of the mounted nodes corresponds to the order in which the mounted nodes are arranged on the bus, and can represent the relative positional relationship between the mounted nodes and between the control nodes and the mounted nodes; and the ordered number can be used as The communication address at which the mount node communicates with the control node enables separate communication between the control node and the mount node.

参见图 2, 为本发明实施例为总线上的挂载节点分配有序编号的方法第一实 施例示意图, 该方法包括:  2 is a schematic diagram of a first embodiment of a method for assigning an ordered number to a mount node on a bus according to an embodiment of the present invention, where the method includes:

步骤 201 : 控制节点获取各个挂载节点的第一标识;  Step 201: The control node acquires a first identifier of each mounted node.

步骤 202: 控制节点根据各个挂载节点的第一标识分别测量各个挂载节点与 控制节点之间的距离, 得到各个挂载节点的距离特征信息;  Step 202: The control node separately measures the distance between each of the mounted nodes and the control node according to the first identifier of each of the mounted nodes, and obtains the distance characteristic information of each of the mounted nodes.

步骤 203 : 控制节点根据各个挂载节点的距离特征信息为各个挂载节点分配 有序序号; Step 203: The control node allocates each of the mount nodes according to the distance feature information of each mount node. Ordered serial number

步骤 204 : 控制节点将所述有序序号发送给对应的挂载节点。  Step 204: The control node sends the ordered sequence number to the corresponding mount node.

本实施例中, 控制节点获取各个挂载节点的第一标识, 从而获知总线系统中 的各个挂载节点, 进而根据各个挂载节点的第一标识分别测量各个挂载节点与控 制节点之间的距离, 得到各个挂载节点的距离特征信息, 根据各个挂载节点的距 离特征信息为各个挂载节点分配有序序号, 将所述有序序号发送给对应的挂载节 点, 从而控制节点能够根据挂载节点的有序编号获知挂载节点在总线上的排列顺 序, 实现控制节点与各个挂载节点单独通信。 参见图 3, 为本发明实施例为总线上的挂载节点分配有序编号的方法第一实 施例示意图, 该方法包括:  In this embodiment, the control node acquires the first identifier of each of the mounted nodes, thereby obtaining each of the mounted nodes in the bus system, and then measuring the relationship between each of the mounted nodes and the control node according to the first identifier of each of the mounted nodes. The distance information of each of the mounted nodes is obtained, and the ordered number is assigned to each of the mounted nodes according to the distance characteristic information of each of the mounted nodes, and the ordered serial number is sent to the corresponding mounting node, so that the control node can The ordered number of the mounted node learns the order of the mounted nodes on the bus, and realizes that the control node communicates with each of the mounted nodes separately. FIG. 3 is a schematic diagram of a first embodiment of a method for assigning an ordered number to a mount node on a bus according to an embodiment of the present invention, where the method includes:

步骤 301 : 控制节点获取各个挂载节点的第一标识;  Step 301: The control node acquires a first identifier of each mounted node.

其中,本步骤的具体实现将在图 4所示的方法流程中详细描述,这里不赘述。 其中, 挂载节点的第一标识一般可以指挂载节点在出厂或者被使用者使用 前, 为该挂载节点分配的唯一标识该挂载节点的信息, 例如可以为挂载节点的 Sn 号等。 所述 Sn号一般可以为 32位编码, 不同挂载节点的 Sn号不同。 在一种可 能的实现方式中, 每个挂载节点的第一标识例如 Sn号可以预先设置于该挂载节 点的 Flash中, 当挂载节点需要获取自身的第一标识时,从自身的 Flash中即可以 读取自身的第一标识。  The specific implementation of this step will be described in detail in the method flow shown in FIG. 4, and details are not described herein. The first identifier of the mount node may be the information that the mount node uniquely identifies the mount node before being shipped from the factory or used by the user, for example, may be the Sn number of the mount node, etc. . The Sn number can be generally 32-bit coded, and the Sn numbers of different mount nodes are different. In a possible implementation, the first identifier of each of the mount nodes, for example, the Sn number, may be preset in the Flash of the mount node. When the mount node needs to obtain its first identifier, it is from its own Flash. You can read your first ID.

通过本步骤的执行, 可以在一个不知道包含多少挂载节点、不知道各个挂载 节点的任何标识信息例如 Sn号的总线系统中, 使得其中的控制节点获取到总线 系统中所有挂载节点的信息, 从而为后续控制节点对总线系统中挂载节点的控制 提供基础数据。  Through the execution of this step, in a bus system that does not know how many mount nodes are included, and does not know any identification information of each mount node, such as the Sn number, the control node therein acquires all the mount nodes in the bus system. Information, thereby providing basic data for subsequent control nodes to control the mounted nodes in the bus system.

步骤 302: 控制节点为各个挂载节点分配测距标识, 得到挂载节点的第一标 识与测距标识之间的对应关系。  Step 302: The control node allocates a ranging identifier to each of the mounted nodes, and obtains a correspondence between the first identifier of the mounted node and the ranging identifier.

其中,控制节点为各个挂载节点分配的测距标识在总线系统中能够唯一标识 对应的挂载节点, 以便在测距过程中调度挂载节点与控制节点配合进行测距。 本 步骤为可选步骤, 在实际应用中, 控制节点也可以不为挂载节点分配测距标识, 在测距过程中直接使用第一标识对挂载节点进行调度。  The ranging identifier allocated by the control node for each of the mounting nodes can uniquely identify the corresponding mounting node in the bus system, so that the mounting node and the control node cooperate to perform ranging in the ranging process. This step is an optional step. In the actual application, the control node may not allocate a ranging identifier to the mounted node. In the ranging process, the first identifier is directly used to schedule the mounted node.

一般的, 挂载节点的第一标识例如 Sn号一般数据位较多, 在测距过程中直 接使用第一标识调度对应的挂载节点所占用的总线资源、 信息传输时间均相对较 长, 对测距效率影响较大。 为此, 本发明实施例中在获取到各个挂载节点的第一 标识后, 可以相应的为各个挂载节点分配数据位较短的测距标识, 从而可以相对 减少测距过程中所占用的总线资源、 缩短信息传输时间, 提高测距效率。 Generally, the first identifier of the mount node, for example, the general data bit of the Sn number is large, and the bus resource occupied by the mount node corresponding to the first identifier is directly used in the ranging process, and the information transmission time is relatively relatively Long, has a greater impact on ranging efficiency. Therefore, in the embodiment of the present invention, after obtaining the first identifier of each of the mounted nodes, a ranging identifier with a shorter data bit may be allocated for each of the mounted nodes, thereby relatively reducing the occupation in the ranging process. Bus resources, shorten information transmission time, and improve range efficiency.

在一种可能的实现方式中,测距标识的位数可以根据获取到第一标识的挂载 节点的数量确定。  In a possible implementation manner, the number of bits of the ranging identifier may be determined according to the number of mounting nodes that obtain the first identifier.

步骤 303 : 控制节点发送关系下发命令, 所述关系下发命令中包括: 第一标 识与测距标识之间的对应关系;  Step 303: The control node sends a relationship to send a command, where the relationship includes: a correspondence between the first identifier and the ranging identifier;

其中, 当步骤 301通过图 4所示的方法实现时, 步骤 302可以在步骤 407 之前执行, 本步骤中第一标识与测距标识之间的对应关系可以携带在确认命令中 发送至各个挂载节点。  When the step 301 is implemented by the method shown in FIG. 4, the step 302 may be performed before the step 407. In this step, the correspondence between the first identifier and the ranging identifier may be carried in the confirmation command and sent to each mount. node.

步骤 304: 挂载节点接收所述关系下发命令, 根据自身的第一标识从所述对 应关系中查找到自身的测距标识;  Step 304: The mounting node receives the relationship issuing command, and finds its own ranging identifier from the corresponding relationship according to the first identifier of the first node.

假设关系下发命令中的对应关系如下表 1所示:  Assume that the corresponding relationship in the command issued by the relationship is as shown in Table 1:

表 1  Table 1

Figure imgf000009_0001
Figure imgf000009_0001

贝 1」, 如果挂载节点的第一标识为 AAABBBCC2, 则可以从表 1 的对应关系 中得到挂载节点的测距标识为 12。  If the first identifier of the mounted node is AAABBBCC2, the ranging identifier of the mounted node can be obtained from the correspondence of Table 1.

步骤 305: 控制节点使用所述测距标识测量与各个挂载节点之间的距离, 得到 各个挂载节点的距离特征信息。  Step 305: The control node uses the ranging identifier to measure the distance between each of the mounted nodes, and obtains the distance characteristic information of each of the mounted nodes.

挂载节点的距离特征信息用于表征控制节点与该挂载节点之间的距离, 所述距 离特征信息可以为距离值、 信息传输时间、 比例值等能够表征距离信息的参数。  The distance characteristic information of the mounting node is used to represent the distance between the control node and the mounting node. The distance characteristic information may be a parameter that can represent the distance information, such as a distance value, an information transmission time, and a proportional value.

其中, 信息传输时间可以为控制节点测得的从控制节点开始发送信息至第一 挂载节点接收到该信息的时间长度, 例如 4s, 也可以为控制节点测得的从控制节 点向第一挂载节点发送信息至接收到第一挂载节点反馈信息的时间长度, 例如 8s;  The information transmission time may be a length of time that the control node detects that the information is sent from the control node to the first mount node, for example, 4s, or may be measured from the control node to the first node. The length of time that the carrier node sends the information to the first mount node feedback information, for example, 8s;

距离值可以为控制节点与第一挂载节点之间的物理距离, 例如 50m;  The distance value may be a physical distance between the control node and the first mount node, for example, 50 m;

比例值可以为控制节点测得的当前第一挂载节点的时间长度与离控制节点 最远的挂载节点的时间长度的比例值, 例如 5%, 比例值也可以为控制节点测得 的当前第一挂载节点的时间长度与离控制节点最近的挂载节点的时间长度的比 例值, 例如 3, 本发明实施例对此不作限定。 The proportional value may be a ratio of the length of the current first mount node measured by the control node to the length of the mount node farthest from the control node, for example, 5%, and the proportional value may also be measured by the control node. The ratio of the length of the current first mount node to the length of the mount node closest to the control node, for example, 3, is not limited in this embodiment of the present invention.

在图 5所示的实现方法中, 将控制节点与挂载节点之间传输信息的时间长度作 为距离特征信息, 详见图 5, 这里不再赘述。  In the implementation method shown in FIG. 5, the length of time for transmitting information between the control node and the mount node is used as the distance feature information, as shown in FIG. 5, and details are not described herein again.

步骤 306: 控制节点按照预设顺序对各个挂载节点的距离特征信息进行排序; 其中, 所述预设顺序可以为升序或者降序等, 这里不限制。  Step 306: The control node sorts the distance feature information of each of the mounted nodes according to a preset order. The preset sequence may be ascending or descending, etc., and is not limited herein.

例如, 在图 5所示的实施例中, 得到各个挂载节点的距离特征信息如表 2所示, 则可以对其进行升序排序得到表 3所示排序结果。  For example, in the embodiment shown in FIG. 5, the distance characteristic information of each of the mounted nodes is as shown in Table 2. Then, the sorting result shown in Table 3 can be obtained by sorting them in ascending order.

表 2  Table 2

Figure imgf000010_0001
Figure imgf000010_0001

步骤 307:控制节点按照挂载节点的距离特征信息的排序结果依次为各个挂载节 点分配有序序号。  Step 307: The control node sequentially assigns an ordered sequence number to each of the mounted nodes according to the sorting result of the distance feature information of the mounted node.

挂载节点的有序序号的顺序与挂载节点的距离特征信息的顺序一般应该相同。 具体的, 对于表 3所示的排序结果, 假设分配的有序序号为从 1开始的自然数, 那么分配的有序序号结果可以如表 4所示:  The order of the ordered sequence numbers of the mount nodes and the order of the distance feature information of the mount nodes should generally be the same. Specifically, for the sort result shown in Table 3, assuming that the assigned ordered sequence number is a natural number starting from 1, then the assigned ordered sequence number result can be as shown in Table 4:

表 4  Table 4

挂载节点的第一标识 距离特征信息 有序序号  First identifier of the mount node Distance feature information Ordered sequence number

AAABBBCC1 500ms 1  AAABBBCC1 500ms 1

AAABBBCC5 600ms 2 AAABBBCC3 701ms 3 AAABBBCC5 600ms 2 AAABBBCC3 701ms 3

AAABBBCC4 803ms 4  AAABBBCC4 803ms 4

AAABBBCC2 906ms 5  AAABBBCC2 906ms 5

在实际应用中,可能出现控制节点未能获取到挂载节点的距离特征信息的情况, 例如假设第一标识为 AAABBBCC3的挂载节点, 控制节点未能获取到该挂载节点的 距离特征信息, 其在表 2和表 3中的距离特征信息为 0, 那么本发明实施例在为挂载 节点分配有序序号时, 可以忽略该挂载节点。  In practical applications, the control node may fail to obtain the distance feature information of the mounted node. For example, if the first identifier is a mount node of AAABBBCC3, the control node fails to obtain the distance feature information of the mount node. The distance characteristic information in Table 2 and Table 3 is 0. When the embodiment of the present invention allocates an ordered sequence number to the mount node, the mount node can be ignored.

但是, 如果已知挂载节点是等间距分布, 在某些情况下, 是可以通过已知的挂 载节点的距离特征信息来推断出控制节点未获取到的挂载节点的距离特征信息的。仍 以控制节点未能获取到第一标识为 AAABBBCC3的挂载节点的距离特征信息为例, 如果已知挂载节点是等间距分布的,那么已知的距离特征信息分别为 500ms、 600ms, 803ms 和 906ms, 那么显然在第一标识为 AAABBBCC5 的挂载节点和第一标识为 AAABBBCC4的挂载节点之间存在失效的挂载节点, 则第一标识为 AAABBBCC3的 挂载节点显然位于第一标识为 AAABBBCC5的挂载节点和第一标识为 AAABBBCC4 的挂载节点之间; 在实际应用中, 这种推断可以人为完成, 或者也可以通过控制节点 自动对距离特征信息进行条件判断完成, 具体实现步骤这里不再赘述。这时, 可以将 第一标识为 AAABBBCC3的挂载节点的距离特征信息按照推断的距离特征信息补充 至对应关系中,在为挂载节点分配有序序号时,可以忽略该挂载节点也可以不忽略该 挂载节点, 本发明并不限定。  However, if the mount nodes are known to be equally spaced, in some cases, the distance feature information of the mount nodes that are not acquired by the control node can be inferred from the known distance information of the mount node. For example, if the control node fails to obtain the distance feature information of the mount node whose first identifier is AAABBBCC3, if the known mount nodes are known to be equally spaced, the known distance feature information is 500ms, 600ms, and 803ms, respectively. And 906ms, then obviously there is a failed mount node between the mount node with the first identifier AAABBBCC5 and the mount node with the first identifier AAABBBCC4, and the mount node with the first identifier AAABBBCC3 is obviously located at the first identifier. The mount node of AAABBBCC5 and the mount node whose first identifier is AAABBBCC4; in practical applications, this inference can be done manually, or the conditional judgment of the distance feature information can be automatically completed by the control node, and the specific implementation steps are here. No longer. At this time, the distance feature information of the first node identified as AAABBBCC3 may be added to the corresponding relationship according to the inferred distance feature information. When the ordered node is assigned to the mounted node, the mounted node may or may not be ignored. The mount node is ignored, and the present invention is not limited.

步骤 308: 控制节点发送序号下发命令, 所述序号下发命令中包括: 各个挂载节 点的第一标识和有序序号的对应关系。  Step 308: The control node sends a sequence number to send a command, where the sequence number issuing command includes: a correspondence between the first identifier and the ordered sequence number of each of the mounted nodes.

步骤 309:挂载节点接收所述序号下发命令,根据自身的第一标识从所述对应关 系中得到自身的有序序号。  Step 309: The mounting node receives the serial number issuing command, and obtains its own ordered serial number from the corresponding relationship according to the first identifier of the self.

图 3 所示的本发明实施例中, 控制节点在获取到各个挂载节点的第一标识 后, 为各个挂载节点分配数据位相对较短的测距标识, 从而可以相对减少测距过 程中所占用的总线资源、 缩短信息传输时间, 提高测距效率。 以下, 通过图 4为步骤 301中控制节点如何获取挂载节点第一标识的实现举例 说明。 参见图 4, 该方法包括:  In the embodiment of the present invention shown in FIG. 3, after acquiring the first identifier of each of the mounted nodes, the control node allocates a relatively short ranging identifier for each of the mounted nodes, thereby relatively reducing the ranging process. The occupied bus resources, shorten the information transmission time, and improve the ranging efficiency. In the following, FIG. 4 is an example of how the control node obtains the first identifier of the mounted node in step 301. Referring to Figure 4, the method includes:

步骤 401 :控制节点发送上报命令,所述上报命令包括:上报时延生成算法标识。 其中, 所述上报时延生成算法标识用于指示总线上的各个挂载节点所使用的上 报时延生成算法。采用上报时延生成算法的原因是: 当第一标识的位数较多时, 如果 直接采用第一标识作为延时时间, 例如当某一挂载节点的第一标识为 32 位的 10011000101111011001101010001011时, 若将其作为延时时间, 则为 2562562699ms, 约 700多小时,这个速度收集第一标识显然是无法忍受的, 因此对这种情况本发明实 施例采用上报时延生成算法,根据第一标识转换出位数少于第一标识的转换数值,来 缩短每个挂载节点的延时时间。例如, 当某一挂载节点的第一标识经转换后得到的转 换数值为 10010010时, 若延时时间为该转换数值的 1倍, 则该挂载节点发送第一标 识的延时时间将缩短为 146ms, 属于正常范围。 Step 401: The control node sends a report command, where the report command includes: a report delay generation algorithm identifier. The reporting delay generation algorithm identifier is used to indicate that each of the mount nodes on the bus is used by Report delay generation algorithm. The reason for using the report delay generation algorithm is: When the number of bits of the first identifier is large, if the first identifier is directly used as the delay time, for example, when the first identifier of a mount node is 32-bit 10011000101111011001101010001011, As a delay time, it is 2562562699 ms, which is about 700 hours. This speed collection of the first identifier is obviously unbearable. Therefore, in this embodiment, the reporting delay generation algorithm is used according to the first identifier. The number of bits is less than the conversion value of the first identifier to shorten the delay time of each mount node. For example, when the conversion value obtained by converting the first identifier of a mount node is 10010010, if the delay time is 1 times of the conversion value, the delay time for the mount node to send the first identifier will be shortened. It is 146ms, which is in the normal range.

对于第一标识位数较少 (例如 8位) 的情况, 也可直接以第一标识的值作为延 时时间, 具体可根据第一标识的位数情况而定。  For the case where the number of the first identifier is small (for example, 8 bits), the value of the first identifier may be directly used as the delay time, which may be determined according to the number of digits of the first identifier.

本发明实施例中的上报时延生成算法可以为 hash算法、 设定位数伪随机数生成 算法、 随机回退算法等能够避免上报冲突的算法。  The reporting delay generation algorithm in the embodiment of the present invention may be an algorithm capable of avoiding reporting conflicts, such as a hash algorithm, a set-digit pseudo-random number generation algorithm, and a random back-off algorithm.

在一种可能的实现方式中, 以上报时延生成算法为 hash算法为例, 可以预先在 控制节点和各个挂载节点中配置至少一种 hash算法以及每种 hash算法的标识, 则本 步骤中控制节点直接通过上报命令中的 hash算法标识就可以向各个挂载节点指示具 体的 hash算法。 其中, 所述 hash算法标识可以通过数字、 字符等构成, 这里并不限 定。 例如, 可以在控制节点和各个挂载节点中配置: hash算法 1的标识为 " 1 ", hash 算法 2的标识为 "2", hash算法 3的标识为 "3 "等, 则如果本步骤的上报命令中包 括的 hash算法标识为 "3 ", 则表示控制节点指示总线上的各个挂载节点使用 hash算 法 3。  In a possible implementation manner, the above-mentioned time delay generation algorithm is an example of a hash algorithm, and at least one hash algorithm and an identifier of each hash algorithm may be configured in the control node and each of the mount nodes in advance, and then the control is performed in this step. The node can directly indicate the specific hash algorithm to each mount node by using the hash algorithm identifier in the report command. The hash algorithm identifier may be composed of numbers, characters, and the like, and is not limited herein. For example, it can be configured in the control node and each of the mount nodes: the identifier of the hash algorithm 1 is "1", the identifier of the hash algorithm 2 is "2", and the identifier of the hash algorithm 3 is "3", etc., if this step is The hash algorithm identifier included in the report command is "3", indicating that the control node indicates that each mount node on the bus uses the hash algorithm 3.

其中, 上报命令中指示的 hash算法标识可以由控制节点确定, 具体确定方法并 不限制, 例如可以由控制节点随机确定, 或者为 hash算法标识设定某种顺序每次发 送上报命令时按照 hash算法标识的顺序确定本次上报命令中包括的 hash算法标识 等。例如, 假设 hash算法标识的顺序为: 1、 3、 2, 控制节点第一次发送上报命令时, 上报命令中可以包括 hash算法标识 1,控制节点第二次发送上报命令时,上报命令中 可以包括 hash算法标识 3, 控制节点第三次发送上报命令时, 上报命令中可以包括 hash算法标识 2, 控制节点第四次发送上报命令时, 上报命令中可以包括 hash算法 标识 1, 以此类推。  The hash algorithm identifier indicated in the reporting command may be determined by the control node, and the specific determining method is not limited, for example, may be randomly determined by the control node, or set a certain order for the hash algorithm identifier, and the hash algorithm is used each time the reporting command is sent. The order of the identification determines the hash algorithm identifier and the like included in the present report command. For example, the order of the hash algorithm is: 1, 3, 2. When the control node sends the report command for the first time, the report command can include the hash algorithm identifier 1. When the control node sends the report command for the second time, the report command can be used. The hash algorithm identifier 3 is included. When the control node sends the report command for the third time, the report command may include the hash algorithm identifier 2, and when the control node sends the report command for the fourth time, the report command may include the hash algorithm identifier 1, and so on.

以下通过步骤 402〜步骤 405说明每个挂载节点侧的处理步骤, 步骤 402〜步骤 405中的所述挂载节点可以为挂载在总线上的任一挂载节点:  The processing steps on each of the mount nodes are described in the following steps 402 to 405. The mount node in step 402 to step 405 can be any mount node mounted on the bus:

步骤 402:挂载节点接收所述上报命令,从上报命令中获取上报时延生成算法标 识。 Step 402: The mount node receives the report command, and obtains a report delay generation algorithm flag from the report command. Knowledge.

步骤 403:挂载节点获取自身的第一标识,使用所述上报时延生成算法标识所指 示的上报时延生成算法对第一标识进行转换,得到转换数值; 转换数值的位数少于第 一标识的位数;  Step 403: The mounting node obtains the first identifier of the self, and uses the reporting delay generation algorithm indicated by the reporting delay generation algorithm identifier to convert the first identifier to obtain a converted value. The number of converted digits is less than the first digit. The number of digits identified;

其中, 挂载节点具体如何使用上报时延生成算法对第一标识进行转换这里不再 赘述。  The how to use the reporting delay generation algorithm to convert the first identifier is not described here.

其中,如果挂载节点的第一标识预先存储于挂载节点的 Flash中,则挂载节点可 以从自身的 Flash中获取自身的第一标识。  If the first identifier of the mount node is pre-stored in the Flash of the mount node, the mount node can obtain its first identifier from its own Flash.

在一种可能的实现方式中, 所述第一标识可以为 32位的 Sn号, 所述转换数值 可以为 8位的数值。  In a possible implementation manner, the first identifier may be a 32-bit Sn number, and the converted value may be a 8-bit value.

步骤 404: 挂载节点根据所述转换数值确定挂载节点发送第一标识的延时时间。 在一种可能的实现方式中, 挂载节点可以将所述转换数值的预设倍数确定为所 述延时时间。 所述预设倍数可以为大于 0的任意数值, 在实际应用中可以自主设定。  Step 404: The mount node determines, according to the converted value, a delay time for the mount node to send the first identifier. In a possible implementation manner, the mount node may determine a preset multiple of the converted value as the delay time. The preset multiple can be any value greater than 0, and can be set autonomously in practical applications.

当预设倍数为 1时, 则挂载节点直接将所述转换数值确定为所述延时时间。 步骤 405:挂载节点从接收到所述上报命令开始计时至所述延时时间时,将自身 的第一标识发送给所述控制节点。  When the preset multiple is 1, the mount node directly determines the converted value as the delay time. Step 405: The mount node sends its first identifier to the control node when receiving the reporting command and starting the timing to the delay time.

步骤 406: 控制节点接收各个挂载节点发送的第一标识。  Step 406: The control node receives the first identifier sent by each of the mount nodes.

由于步骤 401〜步骤 406所示的方法中各个挂载节点使用相同的上报时延生成算 法来进行第一标识的转换,因此对于不同的第一标识其转换得到的转换数值也有可能 是相同的,这时转换数值相同的两个甚至多个挂载节点将同时通过总线向控制节点发 送第一标识,仍然可能产生命令碰撞, 使得控制节点无法接收到这些挂载节点发送的 第一标识, 因此,本发明实施例还可以进一步通过确认控制节点中接收到的第一标识 以及控制节点发送 M (M^2) 轮上报命令的方式解决该问题。 此时, 本发明实施例 还可以包括:  Since each of the mount nodes in the method shown in steps 401 to 406 uses the same report delay generation algorithm to perform the conversion of the first identifier, the converted values obtained by the different first identifiers may also be the same. At this time, two or more mount nodes having the same conversion value will simultaneously send the first identifier to the control node through the bus, and may still generate a command collision, so that the control node cannot receive the first identifier sent by the mount nodes, therefore, The embodiment of the present invention may further solve the problem by confirming that the first identifier received in the control node and the control node send the M (M^2) round report command. In this case, the embodiment of the present invention may further include:

步骤 407:控制节点通过总线发送确认命令,所述确认命令中包括接收到的各个 挂载节点的第一标识。  Step 407: The control node sends an acknowledgement command through the bus, where the acknowledgement command includes the received first identifier of each of the mounted nodes.

步骤 408:挂载节点接收所述确认命令,判断所述确认命令中是否包括自身的第 一标识, 包括时, 如果再接收到所述控制节点发送的上报命令, 不再发送自身的第一 标识; 不包括时, 如果再接收到所述控制节点发送的上报命令, 所述挂载节点将自身 的第一标识通过总线发送给所述控制节点。  Step 408: The mounting node receives the confirmation command, and determines whether the first identifier of the confirmation command is included in the confirmation command. If the command is sent, the first identifier of the control node is not sent. When not included, if the report command sent by the control node is received again, the mount node sends its first identifier to the control node through the bus.

以上步骤 401〜步骤 408是控制节点发送一轮的上报命令时, 控制节点与各个挂 载节点之间的处理步骤。 Steps 401 to 408 above are when the control node sends a round of reporting commands, and the control node hangs with each The processing steps between the nodes.

控制节点还可以发送第二轮的上报命令, 此时, 控制节点与各个挂载节点之间 的处理步骤可以参考步骤 402〜步骤 408, 区别仅在于: 1、 控制节点发送的第二轮的 上报命令中包括的上报时延生成算法标识最好与第一轮的上报命令中包括的上报时 延生成算法标识不同; 2、 发送第二轮的上报命令时, 与控制节点进行交互的挂载节 点仅为第一轮中判断确认命令中不包括自身的第一标识的挂载节点,判断确认命令中 包括自身的第一标识的挂载节点不再发送第一标识。  The control node may also send a second round of reporting commands. In this case, the processing steps between the control node and each of the mounting nodes may refer to steps 402 to 408. The difference is only: 1. The second round of reporting sent by the control node Preferably, the report delay generation algorithm identifier included in the command is different from the report delay generation algorithm identifier included in the first round of the report command; 2. when the second round of the report command is sent, the mount node interacting with the control node Only the mount node that does not include its first identifier in the confirmation command in the first round determines that the mount node including the first identifier of the confirmation command no longer sends the first identifier.

控制节点发送的第二轮之后的各轮的上报命令时, 控制节点与各个挂载节点之 间的处理步骤以此类推不再赘述。  When the control node sends a report command for each round after the second round, the processing steps between the control node and each of the mount nodes are not repeated here.

在实际应用中, M的具体取值可以自主设定, 本发明并不限制。 优选地, 所述 控制节点发送的相邻两轮上报命令中包括的上报时延生成算法标识不同。  In practical applications, the specific value of M can be set autonomously, and the invention is not limited. Preferably, the reporting delay generation algorithm identifier included in the adjacent two rounds of reporting commands sent by the control node is different.

通过以上处理, 控制节点即可以获取到各个挂载节点的第一标识。 以下, 通过图 5为步骤 305中控制节点使用测距标识测量与各个挂载节点之间 的距离, 得到各个挂载节点的距离特征信息的实现举例说明。 参见图 5, 示出了控制 节点与某一个挂载节点之间的测距过程,在实际应用中,控制节点通过测距标识依次 与各个挂载节点执行图 5所示的测距过程, 即得到各个挂载节点的距离特征信息。如 图 5所示, 该方法包括:  Through the above processing, the control node can obtain the first identifier of each mounted node. In the following, the control node uses the ranging identifier to measure the distance between each mounting node in step 305, and obtains an example of the implementation of the distance characteristic information of each mounting node. Referring to FIG. 5, a ranging process between a control node and a certain mounting node is illustrated. In an actual application, the control node sequentially performs the ranging process shown in FIG. 5 with each mounting node by using the ranging identifier, that is, The distance characteristic information of each mount node is obtained. As shown in Figure 5, the method includes:

步骤 501 :控制节点向挂载节点发送测距命令,所述测距命令中包括该挂载节点 的测距标识;  Step 501: The control node sends a ranging command to the mounting node, where the ranging command includes a ranging identifier of the mounting node.

步骤 502: 挂载节点接收到所述测距命令后, 立即向控制节点发送回复命令; 步骤 503 :控制节点接收所述回复命令,确定从发送测距命令到接收到所述回复 命令的时间长度。  Step 502: After receiving the ranging command, the mounting node immediately sends a reply command to the control node. Step 503: The control node receives the reply command, and determines a length of time from when the ranging command is sent to when the reply command is received. .

其中, 本步骤中控制节点确定所述时间长度时, 可以通过计时的方式实现, 或 者也可以通过计量脉冲数量的方式实现。  In this step, when the control node determines the length of time, it may be implemented by timing, or may be implemented by measuring the number of pulses.

具体的, 当通过计时的方式实现时, 可以在控制节点中设置计时器, 从控制节 点发送的测距命令开始计时, 到控制节点接收到回复命令结束计时。  Specifically, when implemented by timing, a timer may be set in the control node, starting from the ranging command sent by the control node, and ending when the control node receives the reply command.

当通过计量脉冲数量的方式实现时, 可以预先设定某一预设频率的脉冲, 从控 制节点发送的测距命令开始计数, 到控制节点接收到回复命令结束计数。  When the number of pulses is measured, the pulse of a certain preset frequency may be preset, the ranging command sent from the control node starts counting, and the control node receives the reply command end counting.

在计量脉冲数量的方式下, 可以通过调整脉冲的频率来对应调整时间长度的精 度,进而调整距离特征信息的精度。具体的,脉冲的频率越高, 时间长度的精度越高, 距离特征信息的精度越高。 In the mode of measuring the number of pulses, the accuracy of the adjustment time length can be adjusted by adjusting the frequency of the pulse, thereby adjusting the accuracy of the distance characteristic information. Specifically, the higher the frequency of the pulse, the higher the accuracy of the time length. The accuracy of the distance feature information is higher.

步骤 504: 控制节点根据所述时间长度确定该挂载节点的距离特征信息。  Step 504: The control node determines distance feature information of the mount node according to the length of time.

其中, 控制节点可以直接将所述时间长度确定为挂载节点的距离特征信息。 在另一种实现方式中, 控制节点可以重复执行 N次步骤 501〜步骤 503, 得到挂 载节点的 N个时间长度。 N是大于等于 2的整数。 其中, 所述 N的具体取值可以在 实际应用中自主设置, 这里并不限制。  The control node may directly determine the length of time as the distance feature information of the mount node. In another implementation manner, the control node may repeatedly perform step 501 to step 503 N times to obtain N time lengths of the mounted node. N is an integer greater than or equal to 2. The specific value of the N may be set autonomously in an actual application, and is not limited herein.

此时, 步骤 504可以包括:  At this time, step 504 can include:

控制节点对得到的 N个时间长度进行过滤处理;  The control node filters the obtained N time lengths;

控制节点根据过滤结果进行统计计算, 得到时间长度的统计值, 将所述时间长 度的统计值确定为该挂载节点的距离特征信息。  The control node performs statistical calculation according to the filtering result, and obtains a statistical value of the length of time, and determines the statistical value of the time length as the distance characteristic information of the mounted node.

可选地, 对于所述 N个时间长度, 控制节点可以去除其中数值大于等于第一设 定门限的时间长度以及数值小于等于第二设定门限的时间长度,从而实现所述过滤处 理, 所述第一设定门限大于第二设定门限。其中, 所述第一设定门限大于第二设定门 限的具体取值可以在实际应用中自主设定, 这里不限制。  Optionally, for the N time lengths, the control node may remove the time length in which the value is greater than or equal to the first set threshold, and the time length in which the value is less than or equal to the second set threshold, thereby implementing the filtering process, where The first set threshold is greater than the second set threshold. The specific value of the first setting threshold is greater than the specific value of the second setting threshold, which can be set autonomously in practical applications, and is not limited herein.

例如,假设 N=5,控制节点得到的 5个时间长度分别为: 508ms, 501ms, 498ms, For example, assuming N=5, the five time lengths obtained by the control node are: 508ms, 501ms, 498ms,

492ms和 501ms, 第一设定门限为 508ms、 第二设定门限为 492ms, 贝 lj, 去掉数值大 于等于 508ms以及数值小于等于 492ms的时间长度, 完成过滤处理, 得到过滤结果 为: 501ms、 498ms禾口 501ms。 492ms and 501ms, the first set threshold is 508ms, the second set threshold is 492ms, the shell lj, the value is greater than or equal to 508ms and the value is less than or equal to 492ms, the filtering process is completed, and the filtering result is: 501ms, 498ms Mouth 501ms.

控制节点根据过滤结果进行统计计算, 得到时间长度的统计值;  The control node performs statistical calculation according to the filtering result, and obtains a statistical value of the length of time;

此处的统计计算可以是算数平均计算、 几何平均计算、 根据权重系数计算等计 算方式。  The statistical calculations here can be arithmetic calculations, geometric mean calculations, calculations based on weight coefficients, and so on.

仍以步骤 504为例, 过滤结果为 501ms、 498ms和 501ms, 若此处采用的是算 数平均计算, 则计算得到时间长度的平均值为: (501+498+501 ) /3=500ms。  Still taking step 504 as an example, the filtering results are 501ms, 498ms, and 501ms. If the arithmetic average calculation is used here, the average value of the calculated time length is: (501+498+501) /3=500ms.

通过以上处理, 控制节点即可以得到各个挂载节点的距离特征信息。 参见图 6, 为本发明实施例为总线上的挂载节点分配有序编号的装置结构示意 图, 该装置可以应用于总线系统中的控制节点,所述控制节点与总线系统中的挂载节 点之间通过总线通信; 该装置 600包括:  Through the above processing, the control node can obtain the distance characteristic information of each mounted node. 6 is a schematic structural diagram of an apparatus for assigning an ordered number to a mount node on a bus according to an embodiment of the present invention. The apparatus may be applied to a control node in a bus system, and the mount node in the control node and the bus system. Communicating through the bus; the device 600 includes:

获取单元 610, 用于获取各个挂载节点的第一标识;  The obtaining unit 610 is configured to obtain a first identifier of each of the mounted nodes.

测量单元 620,用于根据各个挂载节点的第一标识分别测量各个挂载节点与控制 节点之间的距离, 得到各个挂载节点的距离特征信息; 分配单元 630,用于根据各个挂载节点的距离特征信息为各个挂载节点分配有序 序号; The measuring unit 620 is configured to separately measure the distance between each of the mounting nodes and the control node according to the first identifier of each of the mounting nodes, and obtain distance characteristic information of each of the mounting nodes; The allocating unit 630 is configured to allocate an ordered sequence number to each of the mounted nodes according to the distance feature information of each of the mounted nodes;

发送单元 640, 用于将所述有序序号发送给对应的挂载节点。  The sending unit 640 is configured to send the ordered sequence number to the corresponding mount node.

可选地, 所述获取单元 610具体可以用于:  Optionally, the obtaining unit 610 may be specifically configured to:

发送上报命令, 所述上报命令用于指示各个挂载节点上报第一标识, 所述上报 命令中包括上报时延生成算法标识,所述上报时延生成算法标识用于指示各个挂载节 点上报第一标识时采用的上报时延生成算法,以便各个挂载节点确定自身发送第一标 识的延时时间;  Sending a report command, the report command is used to instruct each of the mount nodes to report the first identifier, where the report command includes a report delay generation algorithm identifier, and the report delay generation algorithm identifier is used to indicate that each mount node reports An reporting delay generation algorithm used for identifying, so that each of the mounting nodes determines the delay time for sending the first identifier by itself;

接收各个挂载节点发送的第一标识;  Receiving a first identifier sent by each of the mount nodes;

发送确认命令, 所述确认命令中包括控制节点发送所述上报命令后接收到的第 一标识, 以便各个挂载节点确认控制节点是否接收到自身的第一标识。  And sending a confirmation command, where the confirmation command includes a first identifier received by the control node after the sending the report command, so that each of the mount nodes confirms whether the control node receives its first identifier.

可选地, 所述获取单元 610还可以具体用于:  Optionally, the obtaining unit 610 is further specifically configured to:

发送确认命令之后, 发送下一轮的上报命令; 相邻两轮上报命令中包括的上报 时延生成算法标识不同; 接收确认未被控制节点确认的挂载节点发送的第一标识; 发 送确认命令,所述确认命令中包括控制节点发送所述下一轮的上报命令后接收到的第 一标识。  After the confirmation command is sent, the next round of the reporting command is sent; the reporting delay generation algorithm identifier included in the adjacent two rounds of reporting commands is different; receiving the first identifier sent by the mounting node that is not confirmed by the control node; sending a confirmation command The confirmation command includes the first identifier received by the control node after sending the reporting command of the next round.

可选地, 所述测量单元 620可以包括:  Optionally, the measuring unit 620 may include:

分配子单元, 用于为各个挂载节点分配测距标识;  An allocation subunit, configured to allocate a ranging identifier to each of the mount nodes;

发送子单元, 用于发送第一标识与测距标识之间的对应关系, 以便各个挂载节 点根据自身的第一标识获取自身的测距标识;  a sending subunit, configured to send a correspondence between the first identifier and the ranging identifier, so that each of the mounting nodes obtains its own ranging identifier according to the first identifier of the first loading node;

测量子单元, 用于使用所述测距标识测量与各个挂载节点之间的距离, 得到各 个挂载节点的距离特征信息。  And a measuring subunit, configured to measure a distance between each of the mounting nodes by using the ranging identifier, and obtain distance characteristic information of each of the mounting nodes.

可选地, 所述测量子单元具体可以用于: 对于每个挂载节点, 发送测距命令, 所述测距命令中包括该挂载节点的测距标识;确定从发送测距命令到接收到该挂载节 点的回复命令的时间长度; 根据所述时间长度确定该挂载节点的距离特征信息。  Optionally, the measuring subunit may be specifically configured to: send a ranging command to each of the mounting nodes, where the ranging command includes a ranging identifier of the mounting node; and determine to send a ranging command to receive The length of the reply command to the mount node; determining the distance feature information of the mount node according to the length of time.

可选地, 所述测量子单元还可以具体用于: 再重复执行 N-1次所述发送测距命 令、确定时间长度的步骤, 得到各个挂载节点对应的 N个时间长度; N是大于等于 2 的整数; 对得到的 N个时间长度进行过滤处理; 根据过滤结果进行统计值计算, 得 到时间长度的统计值, 将所述时间长度的统计值确定为该挂载节点的距离特征信息。  Optionally, the measuring subunit may be further configured to: repeatedly perform the step of transmitting the ranging command N-1 times and determining the length of time, and obtain N time lengths corresponding to the respective mounting nodes; An integer equal to 2; filtering the obtained N time lengths; performing statistical value calculation according to the filtering result, obtaining a statistical value of the length of time, and determining the statistical value of the time length as the distance characteristic information of the mounted node.

可选地, 所述测量子单元还可以具体用于: 对于所述 N个时间长度, 去除其中 数值最大的第一数量个时间长度以及数值最小的第二数量个时间长度,所述第一数量 和第二数量的总和小于? 。 Optionally, the measuring subunit may be further configured to: remove, for the N time lengths, a first quantity of time length in which the value is the largest and a second quantity of time length in which the value is the smallest, the first quantity And the sum of the second quantity is less than ?.

所述测量单元 620具体可以用于: 使用所述第一标识测量与各个挂载节点之间 的距离, 得到各个挂载节点的距离特征信息。  The measuring unit 620 may be specifically configured to: use the first identifier to measure a distance between each of the mounting nodes, and obtain distance feature information of each of the mounting nodes.

可选地, 所述分配单元 630具体可以用于: 按照预设顺序对各个挂载节点的距 离特征信息进行排序;按照挂载节点的距离特征信息的排序结果依次为各个挂载节点 分配有序序号。  Optionally, the allocating unit 630 may be specifically configured to: sort the distance feature information of each of the mounted nodes according to a preset order; and sequentially assign the ordered nodes to the mounted nodes according to the sorting result of the distance feature information of the mounted node. Serial number.

可选地, 所述发送单元具体可以用于: 发送序号下发命令, 所述序号下发命令 中包括: 各个挂载节点的第一标识及有序序号的对应关系, 以便各个挂载节点根据自 身的第一标识得到第一标识对应的有序序号。  Optionally, the sending unit is specifically configured to: send a sequence number to send a command, where the sequence number issuing command includes: a correspondence between a first identifier of each mounted node and an ordered sequence number, so that each of the mounting nodes is configured according to The first identifier of the first identifier is obtained by the first identifier corresponding to the first identifier.

本实施例中, 该装置获取各个挂载节点的第一标识, 从而获知总线系统中的各 个挂载节点,进而根据各个挂载节点的第一标识分别测量各个挂载节点与控制节点之 间的距离,得到各个挂载节点的距离特征信息,根据各个挂载节点的距离特征信息为 各个挂载节点分配有序序号,将所述有序序号发送给对应的挂载节点, 从而使得控制 节点能够根据挂载节点的有序编号获知挂载节点在总线上的排列顺序,实现控制节点 与各个挂载节点的单独通信。 本领域的技术人员可以清楚地了解到本发明实施例中的技术可借助软件加 必需的通用硬件平台的方式来实现。 基于这样的理解, 本发明实施例中的技术方 案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来, 该 计算机软件产品可以存储在存储介质中, 如 ROM/RAM、 磁碟、 光盘等, 包括若 干指令用以使得一台计算机设备(可以是个人计算机, 服务器, 或者网络设备等) 执行本发明各个实施例或者实施例的某些部分所述的方法。  In this embodiment, the device acquires the first identifier of each of the mounted nodes, thereby learning each of the mounted nodes in the bus system, and then measuring the relationship between each of the mounted nodes and the control node according to the first identifier of each of the mounted nodes. The distance information of each of the mounted nodes is obtained, and the ordered number is assigned to each of the mounted nodes according to the distance characteristic information of each of the mounted nodes, and the ordered serial number is sent to the corresponding mounting node, so that the control node can According to the ordered number of the mount node, the order of the mount nodes on the bus is known, and the separate communication between the control node and each mount node is realized. It will be apparent to those skilled in the art that the techniques in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on such understanding, the technical solution in the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product, and the computer software product may be stored in a storage medium such as a ROM/RAM. , a diskette, an optical disk, etc., comprising instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention or in certain portions of the embodiments.

本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似 的部分互相参见即可, 每个实施例重点说明的都是与其他实施例的不同之处。 尤 其, 对于系统实施例而言, 由于其基本相似于方法实施例, 所以描述的比较简单, 相关之处参见方法实施例的部分说明即可。  The various embodiments in the specification are described in a progressive manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.

以上所述的本发明实施方式, 并不构成对本发明保护范围的限定。任何在本 发明的精神和原则之内所作的修改、 等同替换和改进等, 均应包含在本发明的保 护范围之内。  The embodiments of the present invention described above are not intended to limit the scope of the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the invention are intended to be included within the scope of the invention.

Claims

^ ^ ^ ^ 1、 一种为总线上的挂载节点分配有序编号的方法, 其特征在于, 应用于 总线系统,所述总线系统包括控制节点和至少一个挂载节点, 所述控制节点和所 述挂载节点之间通过总线通信; 该方法包括:  What is claimed is: 1. A method for assigning an ordered number to a mount node on a bus, the method comprising: applying to a bus system, the bus system comprising a control node and at least one mount node, the control node and the mount The nodes communicate via the bus; the method includes: 控制节点获取各个挂载节点的第一标识;  The control node acquires a first identifier of each mounted node; 控制节点根据各个挂载节点的第一标识分别测量各个挂载节点与控制节点 之间的距离, 得到各个挂载节点的距离特征信息;  The control node separately measures the distance between each of the mounted nodes and the control node according to the first identifier of each of the mounted nodes, and obtains the distance characteristic information of each of the mounted nodes; 控制节点根据各个挂载节点的距离特征信息为各个挂载节点分配有序序号; 控制节点将所述有序序号发送给对应的挂载节点。  The control node assigns an ordered sequence number to each of the mount nodes according to the distance feature information of each mount node; the control node sends the ordered sequence number to the corresponding mount node. 2、 根据权利要求 1所述的方法, 其特征在于, 控制节点获取各个挂载节点 的第一标识, 包括:  The method according to claim 1, wherein the control node acquires the first identifier of each of the mount nodes, including: 控制节点发送上报命令, 所述上报命令用于指示各个挂载节点上报第一标 识,所述上报命令中包括上报时延生成算法标识, 所述上报时延生成算法标识用 于指示各个挂载节点上报第一标识时采用的上报时延生成算法,以便各个挂载节 点确定自身发送第一标识的延时时间;  The control node sends a report command, where the report command is used to indicate that each of the mount nodes reports the first identifier, and the report command includes the report delay generation algorithm identifier, where the report delay generation algorithm identifier is used to indicate each mount node. The reporting delay generation algorithm used when reporting the first identifier, so that each of the mount nodes determines the delay time for sending the first identifier by itself; 控制节点接收各个挂载节点发送的第一标识;  The control node receives the first identifier sent by each of the mount nodes; 控制节点发送确认命令,所述确认命令中包括控制节点发送所述上报命令后 接收到的第一标识, 以便各个挂载节点确认控制节点是否接收到自身的第一标 识。  The control node sends an acknowledgement command, where the acknowledgement command includes a first identifier received by the control node after the report command is sent, so that each mount node confirms whether the control node receives its first identifier. 3、根据权利要求 2所述的方法, 其特征在于, 控制节点发送确认命令之后, 还包括:  The method according to claim 2, wherein after the control node sends the confirmation command, the method further includes: 控制节点发送下一轮的上报命令;相邻两轮上报命令中包括的上报时延生成 算法标识不同;  The control node sends a report of the report of the next round; the report of the report delay generation algorithm included in the report of the two adjacent rounds is different; 控制节点接收确认未被控制节点确认的挂载节点发送的第一标识; 控制节点发送确认命令,所述确认命令中包括控制节点发送所述下一轮的上 报命令后接收到的第一标识。  The control node receives the first identifier sent by the mount node that is confirmed by the control node; the control node sends an acknowledgement command, where the acknowledgement command includes the first identifier received by the control node after sending the report command of the next round. 4、 根据权利要求 1至 3任一项所述的方法, 其特征在于, 控制节点根据各 个挂载节点的第一标识分别测量各个挂载节点与控制节点之间的距离,得到各个 挂载节点的距离特征信息, 包括:  The method according to any one of claims 1 to 3, wherein the control node separately measures the distance between each of the mount nodes and the control node according to the first identifier of each of the mount nodes, and obtains each mount node. Distance characteristic information, including: 控制节点为各个挂载节点分配测距标识,发送第一标识与测距标识之间的对 应关系, 以便各个挂载节点根据自身的第一标识获取自身的测距标识; 控制节点使用所述测距标识测量与各个挂载节点之间的距离,得到各个挂载 节点的距离特征信息。 The control node allocates a ranging identifier to each of the mounting nodes, and sends a correspondence between the first identifier and the ranging identifier, so that each of the mounting nodes obtains its own ranging identifier according to the first identifier of the mounting node; The control node uses the ranging identifier to measure the distance between each of the mounted nodes, and obtains the distance characteristic information of each of the mounted nodes. 5、 根据权利要求 4所述的方法, 其特征在于, 控制节点使用所述测距标识 测量与各个挂载节点之间的距离, 得到各个挂载节点的距离特征信息, 包括: 对于每个挂载节点, 控制节点发送测距命令, 所述测距命令中包括该挂载节 点的测距标识;  The method according to claim 4, wherein the control node uses the ranging identifier to measure the distance between each of the mounted nodes, and obtains the distance characteristic information of each of the mounted nodes, including: a load node command, where the control node sends a ranging command, where the ranging command includes a ranging identifier of the mount node; 控制节点确定从发送测距命令到接收到该挂载节点的回复命令的时间长 度;  The control node determines a length of time from the sending of the ranging command to the receipt of the reply command of the mount node; 控制节点根据所述时间长度确定该挂载节点的距离特征信息。  The control node determines distance feature information of the mount node according to the length of time. 6、 根据权利要求 5所述的方法, 其特征在于, 控制节点使用所述测距标 识测量与各个挂载节点之间的距离,得到各个挂载节点的距离特征信息,还包括: 控制节点再重复执行 N-1次所述发送测距命令、确定时间长度的步骤,得到 各个挂载节点对应的 N个时间长度; N是大于等于 2的整数;  The method according to claim 5, wherein the control node uses the ranging identifier to measure the distance between each of the mounted nodes, and obtains the distance characteristic information of each of the mounted nodes, and further includes: Repeating the steps of transmitting the ranging command for N-1 times and determining the length of time, and obtaining N time lengths corresponding to the respective mounting nodes; N is an integer greater than or equal to 2; 控制节点根据所述时间长度确定该挂载节点的距离特征信息包括: 所述控制节点对得到的 N个时间长度进行过滤处理;  Determining the distance characteristic information of the mounting node according to the length of time includes: the control node filtering the obtained N time lengths; 所述控制节点根据过滤结果进行统计值计算, 得到时间长度的统计值, 将所 述时间长度的统计值确定为该挂载节点的距离特征信息。  The control node performs statistical value calculation according to the filtering result, obtains a statistical value of the length of time, and determines the statistical value of the length of time as the distance characteristic information of the mounted node. 7、 根据权利要求 6所述的方法, 其特征在于, 所述控制节点对得到的 N个 时间长度进行过滤处理, 包括:  The method according to claim 6, wherein the control node performs filtering processing on the obtained N time lengths, including: 对于所述 N个时间长度, 所述控制节点去除其中数值大于等于第一设定门 限的时间长度以及数值小于等于第二设定门限的时间长度,所述第一设定门限大 于第二设定门限。  For the N time lengths, the control node removes a time length in which the value is greater than or equal to the first set threshold and a time length in which the value is less than or equal to the second set threshold, where the first set threshold is greater than the second setting Threshold. 8、 根据权利要求 1至 3任一项所述的方法, 其特征在于, 控制节点根据各 个挂载节点的第一标识分别测量各个挂载节点与控制节点之间的距离,得到各个 挂载节点的距离特征信息, 包括:  The method according to any one of claims 1 to 3, wherein the control node separately measures the distance between each of the mount nodes and the control node according to the first identifier of each of the mount nodes, and obtains each mount node. Distance characteristic information, including: 控制节点使用所述第一标识测量与各个挂载节点之间的距离,得到各个挂载 节点的距离特征信息。  The control node uses the first identifier to measure the distance between each of the mount nodes, and obtains the distance feature information of each of the mount nodes. 9、 根据权利要求 1至 8任一项所述的方法, 其特征在于, 控制节点根据各 个挂载节点的距离特征信息为各个挂载节点分配有序序号, 包括:  The method according to any one of claims 1 to 8, wherein the control node assigns an ordered sequence number to each of the mount nodes according to the distance feature information of each of the mount nodes, including: 控制节点按照预设顺序对各个挂载节点的距离特征信息进行排序; 控制节点按照挂载节点的距离特征信息的排序结果依次为各个挂载节点分 配有序序号。 The control node sorts the distance feature information of each of the mounted nodes according to a preset order; the control node sequentially assigns an ordered sequence number to each of the mounted nodes according to the sorting result of the distance feature information of the mounted nodes. 10、根据权利要求 1至 9任一项所述的方法, 其特征在于, 控制节点将所述 有序序号发送给对应的挂载节点, 包括: The method according to any one of claims 1 to 9, wherein the control node sends the ordered sequence number to the corresponding mount node, including: 控制节点发送序号下发命令, 所述序号下发命令中包括: 各个挂载节点的第 一标识及有序序号的对应关系,以便各个挂载节点根据自身的第一标识得到第一 标识对应的有序序号。  The control node sends a sequence number to send a command, where the sequence number issuing command includes: a correspondence between the first identifier and the ordered sequence number of each of the mounted nodes, so that each of the mount nodes obtains the first identifier according to the first identifier of the first node. Ordered serial number. 11、 一种为总线上的挂载节点分配有序编号的装置, 其特征在于, 应用于 总线系统中的控制节点,所述控制节点与总线系统中的挂载节点之间通过总线通 信; 该装置包括: 11. An apparatus for assigning an ordered number to a mount node on a bus, characterized in that it is applied to a control node in a bus system, and the control node communicates with a mount node in the bus system via a bus; The device includes: 获取单元, 用于获取各个挂载节点的第一标识;  An obtaining unit, configured to acquire a first identifier of each mounted node; 测量单元,用于根据各个挂载节点的第一标识分别测量各个挂载节点与控制 节点之间的距离, 得到各个挂载节点的距离特征信息;  a measuring unit, configured to respectively measure a distance between each of the mounting nodes and the control node according to the first identifier of each of the mounting nodes, to obtain distance characteristic information of each of the mounting nodes; 分配单元,用于根据各个挂载节点的距离特征信息为各个挂载节点分配有序 序号;  An allocating unit, configured to allocate an ordered serial number to each of the mounted nodes according to the distance characteristic information of each of the mounted nodes; 发送单元, 用于将所述有序序号发送给对应的挂载节点。  And a sending unit, configured to send the ordered sequence number to the corresponding mount node. 12、 根据权利要求 11所述的装置, 其特征在于, 所述获取单元具体用于: 发送上报命令, 所述上报命令用于指示各个挂载节点上报第一标识, 所述上 报命令中包括上报时延生成算法标识,所述上报时延生成算法标识用于指示各个 挂载节点上报第一标识时采用的上报时延生成算法,以便各个挂载节点确定自身 发送第一标识的延时时间;  The device according to claim 11, wherein the acquiring unit is specifically configured to: send a report command, where the report command is used to instruct each of the mount nodes to report the first identifier, and the report command includes the report a delay generation algorithm identifier, where the report delay generation algorithm identifier is used to indicate a report delay generation algorithm used by each of the mount nodes to report the first identifier, so that each mount node determines a delay time for sending the first identifier by itself; 接收各个挂载节点发送的第一标识;  Receiving a first identifier sent by each of the mount nodes; 发送确认命令,所述确认命令中包括控制节点发送所述上报命令后接收到的 第一标识, 以便各个挂载节点确认控制节点是否接收到自身的第一标识。  Sending a confirmation command, where the confirmation command includes a first identifier received by the control node after sending the report command, so that each of the mount nodes confirms whether the control node receives its first identifier. 13、 根据权利要求 12所述的装置, 其特征在于, 所述获取单元还用于: 发送确认命令之后, 发送下一轮的上报命令; 相邻两轮上报命令中包括的上 报时延生成算法标识不同;接收确认未被控制节点确认的挂载节点发送的第一标 识; 发送确认命令, 所述确认命令中包括控制节点发送所述下一轮的上报命令后 接收到的第一标识。  The device according to claim 12, wherein the acquiring unit is further configured to: after sending the confirmation command, send a report command of the next round; and generate a report delay generation algorithm included in the report of the two adjacent rounds of reporting The identifier is different; receiving the first identifier sent by the mount node that is not confirmed by the control node; and sending a confirmation command, where the confirmation command includes the first identifier received by the control node after sending the report command of the next round. 14、 根据权利要求 11至 13任一项所述的装置, 其特征在于, 所述测量单元 包括:  The device according to any one of claims 11 to 13, wherein the measuring unit comprises: 分配子单元, 用于为各个挂载节点分配测距标识;  An allocation subunit, configured to allocate a ranging identifier to each of the mount nodes; 发送子单元, 用于发送第一标识与测距标识之间的对应关系, 以便各个挂载 节点根据自身的第一标识获取自身的测距标识; a sending subunit, configured to send a correspondence between the first identifier and the ranging identifier, so that each mounting The node obtains its own ranging identifier according to its first identifier; 测量子单元, 用于使用所述测距标识测量与各个挂载节点之间的距离, 得到 各个挂载节点的距离特征信息。  And a measuring subunit, configured to measure a distance between each of the mounting nodes by using the ranging identifier, and obtain distance characteristic information of each of the mounting nodes. 15、根据权利要求 14所述的装置, 其特征在于, 所述测量子单元具体用于: 对于每个挂载节点,发送测距命令,所述测距命令中包括该挂载节点的测距标识; 确定从发送测距命令到接收到该挂载节点的回复命令的时间长度; 根据所述 时间长度确定该挂载节点的距离特征信息。  The device according to claim 14, wherein the measuring subunit is specifically configured to: send a ranging command to each of the mounting nodes, where the ranging command includes ranging of the mounting node Determining: determining a length of time from the sending of the ranging command to receiving the reply command of the mounting node; determining the distance characteristic information of the mounting node according to the length of time. 16、 根据权利要求 15所述的装置, 其特征在于, 所述测量子单元还具体 用于: 再重复执行 N-1次所述发送测距命令、确定时间长度的步骤, 得到各个挂 载节点对应的 N个时间长度; N是大于等于 2的整数; 对得到的 N个时间长度 进行过滤处理; 根据过滤结果进行统计值计算, 得到时间长度的统计值, 将所述 时间长度的统计值确定为该挂载节点的距离特征信息。  The device according to claim 15, wherein the measuring subunit is further configured to: repeatedly perform the step of transmitting the ranging command N-1 times and determining the length of time, and obtain each of the mounting nodes. Corresponding N time lengths; N is an integer greater than or equal to 2; filtering the obtained N time lengths; performing statistical value calculation according to the filtering result, obtaining a statistical value of the length of time, and determining the statistical value of the time length The distance characteristic information of the mount node. 17、 根据权利要求 16所述的装置, 其特征在于, 所述测量子单元还具体用 于: 对于所述 N个时间长度, 去除其中数值大于等于第一设定门限的时间长度 以及数值小于等于第二设定门限的时间长度,所述第一设定门限大于第二设定门 限。  The device according to claim 16, wherein the measuring subunit is further configured to: remove, for the N time lengths, a length of time in which the value is greater than or equal to the first set threshold, and the value is less than or equal to The second set threshold is for a length of time, and the first set threshold is greater than the second set threshold. 18、 根据权利要求 11至 13任一项所述的装置, 其特征在于, 所述测量单元 具体用于:  The device according to any one of claims 11 to 13, wherein the measuring unit is specifically configured to: 使用所述第一标识测量与各个挂载节点之间的距离,得到各个挂载节点的距 离特征信息。  Using the first identifier to measure the distance between each of the mount nodes, the distance feature information of each mount node is obtained. 19、 根据权利要求 11至 18任一项所述的装置, 其特征在于, 所述分配单元 具体用于: 按照预设顺序对各个挂载节点的距离特征信息进行排序; 按照挂载节 点的距离特征信息的排序结果依次为各个挂载节点分配有序序号。  The device according to any one of claims 11 to 18, wherein the allocating unit is specifically configured to: sort the distance feature information of each of the mounting nodes according to a preset order; according to the distance of the mounting node The sorting result of the feature information sequentially assigns an ordered sequence number to each of the mount nodes. 20、 根据权利要求 11至 19任一项所述的装置, 其特征在于, 所述发送单元 具体用于: 发送序号下发命令, 所述序号下发命令中包括: 各个挂载节点的第一 标识及有序序号的对应关系,以便各个挂载节点根据自身的第一标识得到第一标 识对应的有序序号。  The device according to any one of claims 11 to 19, wherein the sending unit is specifically configured to: send a serial number issuing command, where the serial number issuing command includes: a first of each mounting node Corresponding relationship between the identifier and the ordered sequence number, so that each of the mount nodes obtains the ordered sequence number corresponding to the first identifier according to the first identifier of the first identifier.
PCT/CN2014/080411 2014-06-20 2014-06-20 Method and device for assigning ordered numbers to mounted nodes on bus Ceased WO2015192376A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201480051299.1A CN105556903A (en) 2014-06-20 2014-06-20 Method and device for assigning ordered numbers to mounted nodes on bus
PCT/CN2014/080411 WO2015192376A1 (en) 2014-06-20 2014-06-20 Method and device for assigning ordered numbers to mounted nodes on bus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/080411 WO2015192376A1 (en) 2014-06-20 2014-06-20 Method and device for assigning ordered numbers to mounted nodes on bus

Publications (1)

Publication Number Publication Date
WO2015192376A1 true WO2015192376A1 (en) 2015-12-23

Family

ID=54934728

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/080411 Ceased WO2015192376A1 (en) 2014-06-20 2014-06-20 Method and device for assigning ordered numbers to mounted nodes on bus

Country Status (2)

Country Link
CN (1) CN105556903A (en)
WO (1) WO2015192376A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117009598A (en) * 2023-08-03 2023-11-07 上海轩邑新能源发展有限公司 A slave number allocation method and allocation system
WO2024208439A1 (en) * 2023-04-04 2024-10-10 Siemens Schweiz Ag Efficient addressing and commissioning of io modules

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1266574A (en) * 1997-08-05 2000-09-13 西门子公司 Method and bus system for automatic address allocation and communication station adaptable to the same
US20120271924A1 (en) * 2011-04-19 2012-10-25 Spitaels James S System and method for automatically addressing devices in a multi-drop network
CN202870292U (en) * 2012-07-09 2013-04-10 中国矿业大学(北京) Distance-constraint-based electromagnetic and ultrasound wave combined positioning system for down holes
CN103826252A (en) * 2014-01-16 2014-05-28 京信通信系统(中国)有限公司 Method of acquiring and sending sequence numbers among main and slave devices and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101631147A (en) * 2009-08-07 2010-01-20 华为技术有限公司 Method, electronic device and system for distributing serial bus slave node addresses
CN202583451U (en) * 2012-05-03 2012-12-05 中国矿业大学(北京) Downhole electromagnetic wave ultrasound union positioning system
CN102868751B (en) * 2012-09-24 2016-01-27 中国矿业大学(北京) Based on the down-hole object localization method of distance restraint

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1266574A (en) * 1997-08-05 2000-09-13 西门子公司 Method and bus system for automatic address allocation and communication station adaptable to the same
US20120271924A1 (en) * 2011-04-19 2012-10-25 Spitaels James S System and method for automatically addressing devices in a multi-drop network
CN202870292U (en) * 2012-07-09 2013-04-10 中国矿业大学(北京) Distance-constraint-based electromagnetic and ultrasound wave combined positioning system for down holes
CN103826252A (en) * 2014-01-16 2014-05-28 京信通信系统(中国)有限公司 Method of acquiring and sending sequence numbers among main and slave devices and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024208439A1 (en) * 2023-04-04 2024-10-10 Siemens Schweiz Ag Efficient addressing and commissioning of io modules
CN117009598A (en) * 2023-08-03 2023-11-07 上海轩邑新能源发展有限公司 A slave number allocation method and allocation system

Also Published As

Publication number Publication date
CN105556903A (en) 2016-05-04

Similar Documents

Publication Publication Date Title
CN103119916B (en) To the method for similar bus user automatic distributing address
CN113038609B (en) Method, device and equipment for allocating bandwidth resources based on communication demands
CN106681826A (en) Resource planning method, system and device for cluster computing architecture
US20180109398A1 (en) Master communication device for a token network
CN116319683B (en) Method, system and device for distributing networking address and electronic equipment
JP2018518917A (en) Resource allocation method, UE, and base station
CN106100955A (en) A kind of industry internet field layer wideband bus data depth detection implementation method
CN105045743A (en) Multi-protocol conversion method capable of realizing priority scheduling
CN108111337B (en) Method and equipment for arbitrating main nodes in distributed system
CN102438050A (en) IPv6 (Internet Protocol Version 6) address configuration method and sensor nodes
WO2015192376A1 (en) Method and device for assigning ordered numbers to mounted nodes on bus
CN111371659B (en) Method for automatically allocating RS485 slave equipment address
CN103812791B (en) A kind of data packet sending method and device
CN107454208B (en) Method for distributing network address for slave node equipment
CN114173396B (en) Method and device for determining terminal networking time, electronic equipment and storage medium
CN108881514A (en) Address distribution method, communication apparatus and the bus system of bus system
GB2415855A (en) Variable network address lengths
WO2015123817A1 (en) Network data channel allocation method and allocation device, and terminal
CN103138894A (en) Method and nodes and data network of data transmission
CN107548155A (en) Reduce processing method, base station and the terminal device of uplink time delay
CN115334041A (en) Method for automatically allocating addresses to communication equipment of master station and slave station, master station, slave station and system
CN102457977B (en) A kind of data dispatching method and system and relevant device
JP4440951B2 (en) Network system
CN113612868A (en) Equipment address allocation method, device and system
CN104221409B (en) Data transmission method, device, network side equipment and terminal

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201480051299.1

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14894992

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 24.05.2017)

122 Ep: pct application non-entry in european phase

Ref document number: 14894992

Country of ref document: EP

Kind code of ref document: A1