Physical Layer Collision Avoidance (PLCA) Devices and How to Automatically Determine the Node ID of PLCA Devices
The PLCA device automatically determines node IDs through random number generation and synchronization packet processing to resolve conflicts, stabilizing network operation and enhancing data transmission efficiency.
Patent Information
- Application Number
- JP2023092090
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2023-01-13
- Filing Date
- 2023-06-05
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2043-06-05
AI Technical Summary
Existing PLCA technologies require manual setting of node IDs and node numbers, leading to system instability and prolonged backoff times, resulting in data packet transmission failures.
A physical layer collision avoidance device and method that automatically determines node IDs by generating random numbers for identification, comparing with received synchronization packets, and updating an identification information table to resolve conflicts, ensuring proper network operation.
Enables stable and efficient PLCA network operation by automatically assigning unique node IDs, reducing system instability and backoff times, thus ensuring smooth data transmission.
Smart Images

Figure 0007575529000002 
Figure 0007575529000003 
Figure 0007575529000004
Abstract
Description
[Technical field]
[0001] The present invention relates to physical layer collision avoidance (PLCA) technology, and in particular to a method for automatically determining a PLCA device and a node ID of a PLCA device. [Background technology]
[0002] Although PLCA defined in IEEE802.3cg can efficiently operate a multi-drop network, there is a problem that cannot be ignored in practical applications: users need to set the node ID and the number of nodes before the PLCA mechanism is activated, otherwise PLCA will not work properly. Summary of the Invention [Problem to be solved by the invention]
[0003] Several methods have been proposed to solve this problem, but most of them have problems such as the system being prone to instability or data packets being unable to be sent or being discarded due to a backoff time that is too long. [Means for solving the problem]
[0004] The present invention provides a physical layer collision avoidance device and a method for automatically determining a node ID of a physical layer collision avoidance device, which can be used to solve the above technical problems.
[0005] One embodiment of the present invention provides a physical layer collision avoidance device including a communication circuit and a controller. The communication circuit is used to receive a first synchronization packet. The first synchronization packet includes a first identification information of the first physical layer collision avoidance device. The controller is coupled to the communication circuit and maintains an identification information table and a device count. The controller is configured to: generate a random number as the identification information of the physical layer collision avoidance device; determine a first comparison result between the identification information of the physical layer collision avoidance device and the first identification information of the first physical layer collision avoidance device; update the identification information table and the device count based on the first comparison result; control the communication circuit to transmit a synchronization packet corresponding to the physical layer collision avoidance device based on the identification information table; determine a node ID of the physical layer collision avoidance device in the physical layer collision avoidance network based on the identification information table.
[0006] One embodiment of the present invention provides a method for automatically determining a node ID of a physical layer collision avoidance device. The method is applicable to a physical layer collision avoidance device and includes the following steps: Generate a random number as an identification information of the physical layer collision avoidance device. The physical layer collision avoidance device maintains an identification information table and a device count. Receive a first synchronization packet. The first synchronization packet includes a first identification information of the first physical layer collision avoidance device. Determine a first comparison result between the identification information of the physical layer collision avoidance device and the first identification information of the first physical layer collision avoidance device. Update the identification information table and the device count based on the first comparison result. Control a communication circuit to send a synchronization packet corresponding to the physical layer collision avoidance device based on the first comparison result. Determine a node ID of the physical layer collision avoidance device in the physical layer collision avoidance network based on the identification information table. Effect of the Invention
[0007] The physical layer collision avoidance device and the method for automatically determining the node ID of the physical layer collision avoidance device can be used to solve the above technical problems. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is a schematic diagram of a physical layer collision avoidance (PLCA) network according to one embodiment of the present invention. [Diagram 2] 4 is a flow chart of a method for automatically determining a node ID of a PLCA device according to one embodiment of the present invention. [Diagram 3] FIG. 2 is a schematic diagram of a packet format according to one embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Referring to Fig. 1, Fig. 1 is a schematic diagram of a physical layer collision avoidance (PLCA) network according to one embodiment of the present invention. In Fig. 1, the PLCA network 100 includes PLCA devices 10-1N, which may have the same or similar structures. Taking the PLCA device 10 as an example, the PLCA device 10 includes a communication circuit 101, a random number generator 102, a comparator 103, and a controller 104.
[0010] In one embodiment, the communication circuitry 101 can be used, for example, to realize communication between the PLCA device 10 and other PLCA devices in the PLCA network 100, and the communication circuitry 101 can be implemented as a communication module having a corresponding communication function according to a communication protocol used to exchange packets between the PLCA devices 10 to 1N.
[0011] In one embodiment, the PLCA devices 10-1N may use, for example, a carrier sense multiple access with collision detection (CSMA / CD) protocol for packet switching, in which case the communication circuit 101 may be implemented as a communication module with CSMA / CD functionality, although the invention is not limited thereto.
[0012] In one embodiment, the random number generator 102 can be used to generate a random number as, for example, the identification information ID0 of the PLCA device 10. Also, the comparator 103 can be used to compare, for example, the identification information ID0 of the PLCA device 10 with the identification information of another PLCA device, but the present invention is not limited thereto.
[0013] The controller 104 is coupled to the communications circuit 101, the random number generator 102, and the comparator 103, and may be a general purpose processor, an application specific processor, a conventional processor, a digital signal processor, multiple microprocessors, one or more microprocessors in combination with a digital signal processor core, a microcontroller, an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), any other type of integrated circuit, state machine, an ARM (advanced RISC machines) based processor, etc.
[0014] In one embodiment, the random number generator 102 and the comparator 103 can be controlled by the controller 104 to perform the above functions. In another embodiment, the random number generator 102 and the comparator 103 can be implemented as modules integrated into the controller 104 to perform the above functions, although the invention is not limited thereto.
[0015] In FIG. 1, the structures of the PLCA devices 11 to 1N can be referred to in the relevant description of the PLCA device 10, and therefore will not be described repeatedly here.
[0016] In an embodiment of the present invention, the controller 104 can access certain modules and program codes to implement the method proposed by the present invention for automatically determining the node ID of a PLCA device, which will be described in detail below.
[0017] Please refer to Fig. 2, which is a flow chart of a method for automatically determining a node ID of a PLCA device according to an embodiment of the present invention. The method of the present embodiment can be performed by the PLCA device 10 of Fig. 1, and the details of each step of Fig. 2 will be described below in conjunction with the elements shown in Fig. 1.
[0018] Generally, before the PLCA network 100 actually executes the PLCA mechanism, the embodiment of the present invention can first automatically determine the node ID of the PLCA device 10 by the method shown in Fig. 2, and other PLCA devices 11-1N can also determine their node IDs based on the same mechanism. After determining the individual node IDs of the PLCA devices 10-1N, the PLCA network 100 can actually execute the PLCA mechanism between the PLCA devices 10-1N based on the determined node IDs.
[0019] First, in step S210, the communication circuit 101 receives a first synchronization packet, where the first synchronization packet includes first identification information of a first PLCA device in the PLCA network 100. In different embodiments, the first PLCA device considered may be any one of the PLCA devices 11 to 1N.
[0020] For example, assuming that a first synchronization packet PA1 comes from the PLCA device 11, the PLCA device 11 is regarded as the first PLCA device under consideration. In this case, the first synchronization packet is, for example, the first synchronization packet PA1 from the PLCA device 11, and the first identification information therein is, for example, the identification information ID1 of the PLCA device 11. For ease of explanation, in FIG. 1, the first PLCA device under consideration is assumed to be the PLCA device 11, which is merely used as an example and is not intended to limit the operability of the present invention.
[0021] In one embodiment, the controller 104 maintains an identification table and a device count, where the identification table can, for example, record identification information in all received synchronization packets, and the device count is, for example, the total number of PLCA devices in the PLCA network 100 determined by the controller 104 based on all received synchronization packets.
[0022] Based on this, in step S220, the controller 104 generates a random number as the identification information ID0 of the PLCA device 10, and in step S230, determines a first comparison result between the identification information ID0 of the PLCA device 10 and the first identification information (e.g., the identification information ID1) of the first PLCA device.
[0023] In one embodiment, the controller 104 can request the random number generator 102 to generate a random number as the identification information ID0 and request the comparator 103 to determine a first comparison result between the identification information ID0 and a first identification information (e.g., the identification information ID1). In one embodiment, the first identification information (e.g., the identification information ID1) is another random number generated by a random number generator in the first PLCA device (e.g., the PLCA device 11).
[0024] In one embodiment, the first comparison result may indicate, for example, whether the identification information ID0 is the same as or different from the first identification information, but the present invention is not limited thereto.
[0025] In step S240, the controller 104 updates the identification information table and the device count based on the first comparison result. In step S250, the controller 104 controls the communication circuit 101 to transmit a synchronization packet PA0 corresponding to the PLCA device 10 based on the first comparison result.
[0026] In one embodiment, if the first comparison result indicates that the identification information ID0 of the PLCA device 10 is different from the first identification information (e.g., identification information ID1) of the first PLCA device, it means that the PLCA device 10 and the first PLCA device do not use overlapping identification information. In this case, the controller 104 can determine whether the first identification information of the first PLCA device is recorded in the identification information table of the PLCA device 10.
[0027] In the first embodiment, when it is determined that the first identification information (e.g., identification information ID1) of the first PLCA device is not recorded in the identification information table of the PLCA device 10, this means that the first PLCA device is currently an unknown PLCA device to the PLCA device 10. In this case, the controller 104 updates the identification information table by adding the first identification information (e.g., identification information ID1) of the first PLCA device to the identification information table, and updates the device count by incrementing the device count.
[0028] Then, the controller 104 controls the communication circuit 101 to transmit a synchronization packet PA0 corresponding to the PLCA device, and the synchronization packet PA0 includes the identification information ID0 of the PLCA device. That is, when the PLCA device 10 receives a synchronization packet from the unknown first PLCA device, the PLCA device 10 not only updates the identification information table and the device count, but also transmits (e.g., broadcasts) the synchronization packet PA0 including its own identification information ID0. In this case, when the first PLCA device receives the synchronization packet PA0, the first PLCA device can also determine whether to update the identification information table and the device count maintained by the first PLCA device based on the above-mentioned mechanism. Similarly, when other PLCA devices receive the first synchronization packet PA1 and / or the synchronization packet PA0, the other PLCA devices can also determine whether to update the identification information table and the device count maintained by them based on the first synchronization packet PA1 and / or the synchronization packet PA0.
[0029] In the second embodiment, when it is determined that the first identification information (e.g., identification information ID1) of the first PLCA device is recorded in the identification information table of the PLCA device 10, it means that the PLCA device 10 has previously received another synchronization packet from the first PLCA device and recorded the corresponding first identification information ID1 in the identification information table. In other words, the first PLCA device is not currently an unknown PLCA device to the PLCA device 10. In this case, the controller 104 can reset the packet detection time of the PLCA device without updating the identification information table and the device count.
[0030] In one embodiment, the packet detection time is, for example, the accumulated time during which the PLCA device 10 has not received a synchronization packet from another PLCA device. In an embodiment of the present invention, if the accumulated packet detection time of the PLCA device 10 is equal to or greater than a preset time threshold (determined by a designer as necessary), it means that the information possessed by the PLCA devices 10-1N (e.g., the identification information tables and device counts individually maintained by the PLCA devices 10-1N) is sufficient to be used to determine the node ID of each of the PLCA devices 10-1N, but the present invention is not limited thereto.
[0031] In the third embodiment, if the first comparison result determines that the identification information ID0 of the PLCA device 10 is the same as the first identification information (e.g., identification information ID1) of the first PLCA device, this means that the PLCA device 10 and the first PLCA device are using duplicate identification information (also referred to as an identification information conflict). In this case, the controller 104 updates the identification information table by resetting (e.g., erasing) the identification information table, and updates the device count by resetting (e.g., erasing) the device count.
[0032] Furthermore, the controller 104 can control the communication circuit 101 to generate (control the random number generator 102 to generate) another random number as new identification information ID0 of the PLCA device, and transmit the resynchronization packet RS and a synchronization packet PA0 corresponding to the PLCA device 10, and the synchronization packet PA0 includes the new identification information ID0 of the PLCA device 10. Since the new identification information ID0 at this time corresponds to a different random number, the new identification information ID0 should be different from the (old) identification information ID0 included in the synchronization packet PA0 in the first embodiment.
[0033] In the third embodiment, the resynchronization packet RS is used to trigger the first PLCA device to reset a corresponding identification table, reset at least a corresponding device count, regenerate the corresponding first identification ID1, and send a first synchronization packet PA1 including the new first identification ID1. Similarly, when other PLCA devices receive the resynchronization packet, they also reset a corresponding identification table, reset a corresponding device count, regenerate the corresponding identification, and send a synchronization packet including the newly generated identification.
[0034] In other words, if the PLCA device 10 detects that an identification information conflict has occurred, the PLCA device 10 can request the other PLCA devices 11 to 1N to reset the corresponding identification information table, reset the corresponding device count, regenerate the corresponding identification information, and send a synchronization packet including the newly generated identification information via a resynchronization packet RS.
[0035] For example, when PLCA device 12 receives resynchronization packet RS, PLCA device 12 resets its identification table, resets its device count, regenerates corresponding identification information ID2 (e.g., a random number), and transmits (e.g., broadcasts) synchronization packet PA2 including the newly generated identification information ID2. As another example, when PLCA device 1N receives resynchronization packet RS, PLCA device 1N resets its identification table, resets its device count, regenerates corresponding identification information IDN (e.g., a random number), and transmits (e.g., broadcasts) synchronization packet PAN including the newly generated identification information IDN.
[0036] In this case, the PLCA device 10 receives corresponding synchronization packets PA1 to PAN from each of the PLCA devices 11 to 1N, and the synchronization packets PA1 to PAN individually include the newly generated identification information of the corresponding PLCA device.
[0037] In the third embodiment, the PLCA device 10 resets (e.g., erases) the identification information table and resets (e.g., erases) the device count, so that the PLCA devices 11 to 1N are all unknown to the PLCA device 10. Therefore, every time any of the synchronization packets PA1 to PAN is received, the PLCA device 10 records the identification information therein in the identification information table maintained by the PLCA device 10 and increments the device count.
[0038] In one embodiment, if the identification information ID0-IDN are different from each other (i.e., there is no identification information conflict), the PLCA device 10 records the corresponding identification information ID1-IDN in an identification information table maintained by the PLCA device 10 by synchronization packets PA1-PAN, and gradually increments the device count.
[0039] As mentioned in the first embodiment, when the PLCA device 10 receives a synchronization packet from an unknown PLCA device, not only does the PLCA device 10 update the identification information table and the device count based on the received synchronization packet, but the PLCA device 10 also transmits the synchronization packet PA0. That is, the PLCA device 10 can repeatedly transmit the synchronization packet PA0.
[0040] Based on the same principle, other PLCA devices can also repeatedly transmit corresponding synchronization packets, so that the PLCA device 10 repeatedly receives the same synchronization packet. In this case, the PLCA device 10 can update the packet detection time based on the teaching of the second embodiment, but the present invention is not limited thereto.
[0041] In the scenario of FIG. 1, assuming there are no identification information conflicts, the identification information table maintained by the PLCA device 10 will eventually record the identification information ID1 to IDN of at least the PLCA devices 11 to 1N, and the recorded device count will be greater than or equal to the total number of the PLCA devices 11 to 1N.
[0042] In one embodiment, after resetting the identification information table and the device count, the controller 104 can add new identification information ID0 to the identification information table at any time, and the device count can also be incremented by the PLCA device 10 itself. In this case, the identification information table maintained by the PLCA device 10 will eventually record the identification information ID0 to IDN of the PLCA devices 10 to 1N, and the recorded device count will be equal to the total number of the PLCA devices 10 to 1N, but the present invention is not limited thereto.
[0043] Similarly, if there is no identification information conflict, the identification information tables individually maintained by the other PLCA devices 11 to 1N also eventually record the identification information ID0 to IDN of the PLCA devices 10 to 1N, and the recorded device count also becomes equal to the total number of the PLCA devices 10 to 1N.
[0044] However, if any one of the PLCA devices 10 to 1N determines that there is an identification information conflict again, the mechanism of the third embodiment is executed again until the identification information conflict is eliminated, but the present invention is not limited to this.
[0045] In one embodiment, if the controller 104 determines that the synchronization packet PA0 has experienced a packet collision (e.g., the synchronization packet PA0 collides with another synchronization packet), the controller 104 may increment the cumulative collision count for the synchronization packet PA0 and wait a backoff time before retransmitting the synchronization packet PA0, where the backoff time is related to the cumulative collision count.
[0046] In one embodiment, the backoff time is characterized by D*k, where D is a particular bit time and k is an integer multiple of 2. n -1, and n is the cumulative number of collisions.
[0047] In one embodiment, the specific bit time may vary according to the considered communication environment. For example, in the 10BASE-T1S communication specification, the corresponding specific bit time can be selected as 192BT (bit time), which corresponds to 19.2μs. Furthermore, in a different embodiment, when n is greater than the corresponding upper limit value (represented by p), k can be set to a fixed value (e.g., 2^p-1).
[0048] In one embodiment, assuming that the upper limit value corresponding to n is 6 and the particular bit time is 192BT, the corresponding backoff time can be shown in Table 1 below.
[0049] [Table 1]
[0050] Next, in step S260, the controller 104 determines the node ID of the PLCA device 10 in the PLCA network 100 based on the identification information table.
[0051] In one embodiment, the controller 104 may execute step S260 after determining that the cumulative packet detection time is equal to or greater than a preset time threshold. Specifically, when the controller 104 determines that the cumulative packet detection time is equal to or greater than a preset time threshold, it means that there is no PLCA device that transmits its own synchronization packet in response to a synchronization packet from an unknown PLCA device. In other words, none of the PLCA devices 10 to 1N are unknown to each other. In this case, the controller 104 may determine the node ID of the PLCA device 10 based on the maintained identification information table, but the present invention is not limited thereto.
[0052] In one embodiment, the controller 104 sorts the identification information ID0-IDN of the PLCA devices 10-1N in the maintained identification information table in descending or ascending order, and determines the node ID of the PLCA device 10 in the PLCA network 100 based on the order of the identification information ID0 of the PLCA device 10.
[0053] In one embodiment, the node ID of the PLCA device 10 is, for example, a node number, and the node number corresponds to the order of the identification information ID0 of the PLCA device 10 in the identification information table. For example, taking descending sorting as an example, if the order of the identification information ID0 of the PLCA device 10 in the identification information table is 9, the node number of the PLCA device 10 is, for example, 9, and this node number can be used as the node ID of the PLCA device 10. As another example, if the order of the identification information ID0 of the PLCA device 10 in the identification information table is 21, the node number of the PLCA device 10 is, for example, 21, and this node number can be used as the node ID of the PLCA device 10, but the present invention is not limited thereto.
[0054] Also, the other PLCA devices 11 to 1N can determine their own node numbers and / or node IDs based on the same principle.
[0055] As can be seen from the above, the method provided by the embodiment of the present invention allows the PLCA devices 10 to 1N in the PLCA network 100 to automatically determine the node IDs in the PLCA network 100.
[0056] After determining the node ID of the PLCA device 10, the controller 104 may also determine a transmission opportunity (TO) for the PLCA device 10 in the PLCA network 100 based thereon.
[0057] In one embodiment, the transmission opportunity of a PLCA device 10 in the PLCA network 100 may correspond to the node number of the PLCA device 10. For example, if the node number of the PLCA device 10 is 9, the controller 104 may determine that the transmitting PLCA device 10 is 9th among the PLCA devices 10-1N. As another example, if the node number of the PLCA device 10 is 21, the controller 104 may determine that the transmitting PLCA device 10 is 21st among the PLCA devices 10-1N, although the present invention is not limited thereto.
[0058] As described above, after determining the individual node IDs of the PLCA devices 10-1N, the PLCA network 100 can actually execute the PLCA mechanism among the PLCA devices 10-1N accordingly.
[0059] In the PLCA mechanism, the PLCA devices 10 to 1N transmit based on the corresponding transmission opportunity. For example, assuming that the PLCA devices 10 to 1N correspond to node numbers 0 to N, respectively, the PLCA devices 10 to 1N transmit in order. After the transmission opportunity for the PLCA device 1N ends, it is the turn of the PLCA device 10 to transmit again.
[0060] In one embodiment, the present invention further proposes a method for a new PLCA device to join the PLCA network 100 after the execution of the PLCA mechanism. Specifically, for a newly added PLCA device (hereinafter referred to as a second PLCA device), the second PLCA device can generate a random number as its own identification information (hereinafter referred to as a second identification information), and then transmit (e.g., broadcast) a second synchronization packet including the second identification information to the PLCA network 100.
[0061] In this case, after the communication circuit 101 receives the second synchronization packet, the PLCA device 10 can determine a second comparison result between the identification information ID0 of the PLCA device 10 and the second identification information of the second PLCA device by the comparator 103. Then, the controller 104 can update the identification information table and the device count based on the second comparison result, and control the communication circuit 101 to send a synchronization packet PA0 corresponding to the PLCA device 10 based on the second comparison result.
[0062] In one embodiment, the second comparison result may, for example, specify whether the identification information ID0 is the same as or different from the second identification information, but the present invention is not limited thereto.
[0063] In the same manner, other PLCA devices can also perform the above operations by using the second synchronization packet.
[0064] In the fourth embodiment, if the second comparison result indicates that the identification information ID0 is different from the second identification information and it is determined that the second identification information is not recorded in the identification information table, it means that the second PLCA device is an unknown PLCA device to the PLCA device 10. Based on this, the controller 104 can update the identification information table by resetting the identification information table, and update the device count by resetting the device count. Thereafter, the controller 104 can control the communication circuit 101 to transmit a synchronization packet PA0 corresponding to the PLCA device 10.
[0065] In this case, the second PLCA device adds the identification ID0 to the identification table maintained by the second PLCA device through the synchronization packet PA0 and increments the device count. The second PLCA device can then retransmit the second synchronization packet.
[0066] Similarly, the other PLCA devices 11 to 1N also reset their identification information tables and device counts individually using the second synchronization packets, and transmit the corresponding synchronization packets PA1 to PAN.
[0067] Since the identification information table and the device count of the PLCA device 10 have been reset, all other PLCA devices are unknown to the PLCA device 10. Based on this, the PLCA device 10 continuously updates the identification information table and the device count by the synchronization packets PA1-PAN and the second synchronization packet. Similarly, the other PLCA devices 11-1N and the second PLCA device also continuously update their identification information tables and device counts maintained by the synchronization packets PA1-PAN and / or the second synchronization packet.
[0068] In this case, the identification information table maintained by the PLCA device 10 finally records the identification information ID0-IDN and the second identification information, and the recorded device count is equal to the total number of the PLCA devices 10-1N and the second PLCA devices, but the present invention is not limited to this. Similarly, the identification information tables maintained individually by the other PLCA devices 11-1N and the second PLCA device finally record the identification information ID0-IDN and the second identification information, and the recorded device count is equal to the total number of the PLCA devices 10-1N and the second PLCA devices.
[0069] Thereafter, PLCA device 10 (and other PLCA devices in PLCA network 100) can determine its own node ID and / or node number based on the teachings of the above-described embodiments and execute the PLCA mechanism again based on the corresponding transmission opportunity, although the present invention is not limited thereto.
[0070] In the fifth embodiment, if it is determined that the second comparison result indicates that the identification information ID0 is the same as the second identification information, this means that the PLCA device 10 and the second PLCA device are using duplicate identification information (i.e., an identification information conflict occurs). In this case, the controller 104 updates the identification information table by resetting (e.g., erasing) the identification information table, and updates the device count by resetting (e.g., erasing) the device count.
[0071] Further, the controller 104 can control the communication circuit 101 to generate (control the random number generator 102 to generate) another random number as the new identification information ID0 of the PLCA device, and transmit the resynchronization packet RS and a synchronization packet PA0 corresponding to the PLCA device 10, where the synchronization packet PA0 includes the new identification information ID0 of the PLCA device 10.
[0072] From another perspective, when the PLCA device 10 determines that the PLCA device 10 and the second PLCA device use overlapping identification information, the PLCA device 10 can execute the content of the third embodiment accordingly. For related details, the description of the third embodiment can be referred to, and therefore will not be repeated here.
[0073] In the sixth embodiment, if it is determined that a packet collision is detected when the PLCA device 10 executes a corresponding transmission opportunity, this means that an unknown PLCA device is transmitting a packet. Specifically, when any one of the PLCA devices 10 to 1N determines its own transmission opportunity, it also knows the transmission opportunities corresponding to the other PLCA devices at the same time. Therefore, if a PLCA device transmits a packet when the other PLCA device executes a corresponding transmission opportunity, this means that the PLCA device is not an original component of the PLCA network 100 (i.e., it is a new PLCA device).
[0074] Thus, if the PLCA device 10 detects a packet collision when executing a corresponding transmission opportunity, the controller 104 can correspondingly reset the identification table, reset the device count, and generate another random number as the new identification ID0 of the PLCA device 10. The controller 104 can then control the communication circuit 101 to transmit a resynchronization packet RS and a synchronization packet PA0 corresponding to the PLCA device 10, where the synchronization packet PA0 includes the new identification ID0 of the PLCA device.
[0075] From another perspective, if the PLCA device 10 determines that a packet collision is detected when the PLCA device 10 executes a transmission opportunity, the PLCA device 10 can execute the content of the third embodiment accordingly. For related details, the reader may refer to the description of the third embodiment, and thus the description will not be repeated here.
[0076] In one embodiment, after the PLCA devices 10-1N determine their own node IDs and / or node numbers, the PLCA devices 10-1N can also determine whether they are primary nodes in the PLCA network 100 based thereon.
[0077] In an embodiment of the present invention, a PLCA device having a particular node ID and / or a particular node number is referred to as a primary node. For ease of explanation, it is assumed that a PLCA device having node number 0 is a primary node in the PLCA network 100, but the present invention is not limited thereto.
[0078] In the seventh embodiment, assuming that the PLCA device 10 is a primary node, the controller 104 can determine whether a specific PLCA device exists among the other PLCA devices 11-1N, and the specific PLCA device does not perform any transmission operation during the corresponding transmission opportunity.
[0079] If it is determined that a PLCA device exists, it means that there is an idle PLCA device or a deleted PLCA device that is not actually transmitting in the PLCA network 100. In this case, the controller 104 can reset the identification table, reset the device count, and generate another random number as the new identification ID0 of the PLCA device 10. Then, the controller 104 can control the communication circuit 101 to transmit a resynchronization packet RS and a synchronization packet PA0 corresponding to the PLCA device 10, and the synchronization packet PA0 includes the new identification ID0 of the PLCA device 10.
[0080] From another perspective, when the PLCA device 10 determines that an idle PLCA device or a deleted PLCA device exists, the PLCA device 10 can execute the content of the third embodiment accordingly. For related details, reference can be made to the description of the third embodiment, and therefore the description will not be repeated here.
[0081] Referring to Figure 3, Figure 3 is a schematic diagram of a packet format according to one embodiment of the present invention. In Figure 3, the packet format 300 includes, for example, a preamble 311, a start of frame delimiter (SFD) 312, a destination address (DA) 313, a source address (SA) 314, a size 315, a payload 316, and a frame check sequence (FCS) 317.
[0082] In different embodiments, both the sync packet and the resync packet may have the format shown in FIG. 3, however the difference between the sync packet and the resync packet is in the contents of the payload 316.
[0083] In one embodiment, when packet format 300 is used to implement a synchronization packet, the contents of payload 316 are, for example, "0x0000_0000_nodeID_0000", where nodeID is, for example, the identification information of the PLCA device sending the synchronization packet, and when packet format 300 is used to implement a resync packet, the contents of payload 316 are, for example, "0x0000_0000_nodeID_00FF", where nodeID is, for example, the identification information of the PLCA device sending the resync packet.
[0084] Also, the destination address 313 records, for example, the address of a PLCA device that should receive the synchronization packet and / or the resynchronization packet. In Fig. 3, when the destination address 313 is set to the form shown, it is understood that the packet is broadcast, but the present invention is not limited thereto.
[0085] Also, for example, the address of the PLCA device that transmits the synchronization packet and / or the resynchronization packet is recorded in the source address 314. In Fig. 3, the address of the PLCA device that transmits the synchronization packet and / or the resynchronization packet can be represented as "0x0000_0000_nodeID", but the present invention is not limited thereto.
[0086] As described above, according to the method of the embodiment of the present invention, each PLCA device in the PLCA network can automatically determine its corresponding node ID before executing the PLCA mechanism, and can smoothly execute the subsequent PLCA mechanism based on the determined node ID. In addition, the embodiment of the present invention further proposes a mechanism for automatically re-determining the node ID of each PLCA device according to a newly added PLCA device, an idle PLCA device, and / or a deleted PLCA device after the execution of the PLCA mechanism. In this way, it is possible to avoid the node ID of each PLCA device being erroneously set, which causes the PLCA mechanism to fail to execute correctly.
[0087] Although the present invention has been disclosed in the above embodiments, these embodiments are not intended to limit the present invention. Those skilled in the art can make some changes and modifications without departing from the spirit and scope of the present invention. The protection scope of the present invention should be defined by the appended claims. [Industrial Applicability]
[0088] The physical layer collision avoidance device and the method for automatically determining the node ID of the physical layer collision avoidance device can be applied to a multi-drop network. [Explanation of symbols]
[0089] 100 PLCA Network 10~1N PLCA device 101 Communication Circuit 102 Random Number Generator 103 Comparator 104 Controller 300 Packet Format 311 Preamble 312 Start of Frame Delimiter 313 Destination Address 314 Source Address 315 Size 316 Payload 317 Frame Check Sequence ID0~IDN Identification information PA0~PAN sync packet RS resynchronization packets S210~S260 Step
Claims
1. a communication circuit used to receive a first synchronization packet including a first identification information of a first physical layer collision avoidance device; a device count table connected to said communication circuit; Generating a random number as an identification information of a physical layer collision avoidance device; determining a first comparison result between the identification information of the physical layer collision avoidance device and the first identification information of the first physical layer collision avoidance device; updating the identification information table and the device count based on a result of the first comparison; controlling the communication circuitry to transmit a synchronization packet corresponding to the physical layer collision avoidance device based on a result of the first comparison; determining a node ID of the physical layer collision avoidance device in a physical layer collision avoidance network based on the identification information table; A controller configured to execute Includes a physical layer collision avoidance device.
2. The controller: determining whether the first identification information of the first physical layer collision avoidance device is recorded in the identification information table of the physical layer collision avoidance device in response to determining that the first comparison result indicates that the identification information of the physical layer collision avoidance device is different from the first identification information of the first physical layer collision avoidance device; updating the identification information table by adding the first identification information of the first physical layer collision avoidance device to the identification information table and updating the device count by incrementing the device count in response to determining that the first identification information of the first physical layer collision avoidance device is not recorded in the identification information table of the physical layer collision avoidance device; 2. The physical layer collision avoidance device of claim 1 configured to perform:
3. The controller further comprises: The physical layer collision avoidance device of claim 2, configured to reset a packet detection time of the physical layer collision avoidance device in response to determining that the first identification information of the first physical layer collision avoidance device is recorded in the identification information table of the physical layer collision avoidance device.
4. In response to determining that the first identification information of the first physical layer collision avoidance device is not recorded in the identification information table of the physical layer collision avoidance device, the controller further:
3. The physical layer collision avoidance device of claim 2, configured to control the communication circuitry to transmit the synchronization packet corresponding to the physical layer collision avoidance device, the synchronization packet including the identification information of the physical layer collision avoidance device.
5. The controller:
2. The physical layer collision avoidance device of claim 1, configured to update the identification information table by resetting the identification information table and update the device count by resetting the device count in response to determining that the first comparison result indicates that the identification information of the physical layer collision avoidance device is the same as the first identification information of the first physical layer collision avoidance device.
6. The controller: generating another random number as a new identification of the physical layer collision avoidance device in response to determining that the first comparison indicates that the identification of the physical layer collision avoidance device is the same as the first identification of the first physical layer collision avoidance device; controlling the communication circuitry to transmit a resynchronization packet and the synchronization packet corresponding to the physical layer collision avoidance device; 2. The physical layer collision avoidance device of claim 1, configured to perform the above-mentioned synchronization packet, wherein the synchronization packet includes the new identification information of the physical layer collision avoidance device.
7. 7. The physical layer collision avoidance device of claim 6, wherein the resynchronization packet is used at least to trigger the first physical layer collision avoidance device to reset the corresponding identification table, reset the corresponding device count, regenerate the corresponding first identification, and transmit the first synchronization packet including the first identification.
8. The controller further comprises: accumulating a packet detection time when no synchronization packet is received; determining, in response to determining that the packet detection time is equal to or greater than a predetermined time threshold, the node ID of the physical layer collision avoidance device in the physical layer collision avoidance network based on the identification information table; 2. The physical layer collision avoidance device of claim 1 configured to perform:
9. The physical layer collision avoidance network includes at least the physical layer collision avoidance device and at least one other physical layer collision avoidance device, the identification information table records the identification information of the physical layer collision avoidance device and each of the at least one other physical layer collision avoidance devices, and the controller: sorting the identity of the physical layer collision avoidance device and the identity of each of the at least one other physical layer collision avoidance device in the identity table in descending order; determining the node IDs of the physical layer collision avoidance devices in the physical layer collision avoidance network based on an order of the identities of the physical layer collision avoidance devices in the identity table; 9. The physical layer collision avoidance device of claim 8, configured to perform:
10. 10. The physical layer collision avoidance device of claim 9, wherein the node ID of the physical layer collision avoidance device is a node number, and the node number corresponds to the order of the identification information of the physical layer collision avoidance device in the identification information table.
11. The controller further comprises:
2. The physical layer collision avoidance device of claim 1, configured to determine a transmission opportunity for the physical layer collision avoidance device in the physical layer collision avoidance network based on the node ID of the physical layer collision avoidance device in the physical layer collision avoidance network.
12. After determining the transmission opportunities of the physical layer collision avoidance devices in the physical layer collision avoidance network, the controller: In response to determining that the communication circuit has received a second synchronization packet including a second identification of a second physical layer collision avoidance device, determining a second comparison result between the identification of the physical layer collision avoidance device and the second identification of the second physical layer collision avoidance device; updating the identification information table and the device count based on a result of the second comparison; controlling the communication circuitry to transmit the synchronization packet corresponding to the physical layer collision avoidance device based on a result of the second comparison; 12. The physical layer collision avoidance device of claim 11 configured to perform:
13. The controller: updating the identification information table by resetting the identification information table and updating the device count by resetting the device count in response to the second comparison result indicating that the identification information of the physical layer collision avoidance device is different from the second identification information of the second physical layer collision avoidance device and determining that the second identification information is not recorded in the identification information table; controlling the communication circuitry to transmit the synchronization packets corresponding to the physical layer collision avoidance device; 13. The physical layer collision avoidance device of claim 12 configured to perform:
14. The controller: updating the identification information table by resetting the identification information table and updating the device count by resetting the device count in response to determining that the second comparison result indicates that the identification information of the physical layer collision avoidance device is the same as the second identification information of the second physical layer collision avoidance device; generating another random number as a new identification of the physical layer collision avoidance device; controlling the communication circuitry to transmit a resynchronization packet and the synchronization packet corresponding to the physical layer collision avoidance device; 13. The physical layer collision avoidance device of claim 12, configured to perform the following: wherein the synchronization packet includes the new identification information of the physical layer collision avoidance device.
15. The controller: resetting the identification table, resetting the device count, and generating another random number as a new identification of the physical layer collision avoidance device in response to determining that a packet collision was detected when the physical layer collision avoidance device executed a corresponding transmission opportunity; controlling the communication circuitry to transmit a resynchronization packet and the synchronization packet corresponding to the physical layer collision avoidance device; 12. The physical layer collision avoidance device of claim 11, configured to perform the following: wherein the synchronization packet includes the new identification information of the physical layer collision avoidance device.
16. the physical layer collision avoidance network includes at least the physical layer collision avoidance device and at least one other physical layer collision avoidance device, each of the at least one other physical layer collision avoidance device having a corresponding transmission opportunity, and the controller: In response to determining that the node ID of the physical layer collision avoidance device indicates that the physical layer collision avoidance device is a primary node in the physical layer collision avoidance network, determining whether there is a specific physical layer collision avoidance device among the at least one other physical layer collision avoidance device that does not perform any transmission operation at the corresponding transmission opportunity; in response to determining that the particular physical layer collision avoidance device is present, resetting the identification table, resetting the device count, and generating another random number as a new identification of the physical layer collision avoidance device; controlling the communication circuitry to transmit a resynchronization packet and the synchronization packet corresponding to the physical layer collision avoidance device; 12. The physical layer collision avoidance device of claim 11, configured to perform the following: wherein the synchronization packet includes the new identification information of the physical layer collision avoidance device.
17. The controller:
2. The physical layer collision avoidance device of claim 1, configured to increment a cumulative collision count for the synchronization packet in response to determining that the synchronization packet has experienced a packet collision and wait a backoff time before retransmitting the synchronization packet, the backoff time being related to the cumulative collision count.
18. The backoff time is characterized by D*k, where D is a particular bit time and k is a factor of 2. n 18. The physical layer collision avoidance device of claim 17, wherein n is −1, and n is the cumulative number of collisions.
19. a random number generator used to generate the random number as the identification information of the physical layer collision avoidance device; a comparator used to determine the first comparison result between the identification information of the physical layer collision avoidance device and the first identification information of the first physical layer collision avoidance device; The physical layer collision avoidance device of claim 1 , further comprising:
20. 1. A method for automatically determining a node ID of a physical layer collision avoidance device, the method being applied to the physical layer collision avoidance device, comprising: generating a random number as an identification information of the physical layer collision avoidance device, the physical layer collision avoidance device maintaining an identification information table and a device count; receiving a first synchronization packet including a first identification of a first physical layer collision avoidance device; determining a first comparison result between the identification information of the physical layer collision avoidance device and the first identification information of the first physical layer collision avoidance device; updating the identification information table and the device count based on a result of the first comparison; controlling a communication circuit to transmit a synchronization packet corresponding to the physical layer collision avoidance device based on the first comparison result; determining the node ID of the physical layer collision avoidance device in a physical layer collision avoidance network based on the identification information table; The method includes:
Citation Information
Patent Citations
EMI reduction in PLCA-based networks through beacon temporal spreading
WO2022046962A1
