Equipment physical sorting control method
Through a physical sorting control method of equipment, the automatic allocation of hardware device addresses is realized through device status detection and control signal transmission, and the work abnormality caused by repeated hardware device addresses is solved.
Patent Information
- Application Number
- CN202411774003.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-04
- Publication Date
- 2025-03-18
AI Technical Summary
When existing hardware devices are cascaded, address allocation is dialed or written, resulting in installation omissions that may cause duplication of address, resulting in abnormal working.
Through a physical sorting control method of equipment, the steps include stacking the devices and turning on all the devices. Before the address is allocated, the uppermost device is in the A state and the other devices are in the B state. When the device detects that it is in A state, confirm that it is the main one and sets the address to 1, sends a control signal to the downward port, so that the next connected device detects that it changes from state B to state C. The device detects itself in B state, enters the wait mode, sets it to 5S timeout, and waits for the upper port to change from B state to C state, and sends a command to request the configuration address to the main unit until the last device is configured.
Effectively avoid duplication of device address, thereby preventing work exceptions due to the same device address.
Smart Images

Figure CN119645913A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of physical sequencing, and in particular to a method for controlling physical sequencing of equipment. Background Art
[0002] Hardware is the abbreviation of computer hardware, which refers to the general term for various physical devices in the computer system composed of electronic, mechanical and optoelectronic components. These physical devices form an organic whole according to the requirements of the system structure to provide a material basis for the operation of computer software. In short, the function of hardware is to input and store programs and data, and to execute programs to process data into a usable form. From the appearance, the microcomputer consists of a main chassis and external devices. The main chassis mainly includes the CPU, memory, motherboard, hard disk drive, optical drive, various expansion cards, connecting cables, power supply, etc.; external devices include mouse, keyboard, etc.
[0003] When existing hardware devices are cascaded, the address allocation adopts the method of dialing or burning the address to set the physical address. When these two methods are used, if there are omissions in the installation, it will lead to devices with duplicate addresses, resulting in abnormal operation of the same address. Therefore, it is urgent to design a device physical sorting control method. Summary of the invention
[0004] The purpose of the present invention is to provide a device physical sequencing control method to solve the problem that when the existing hardware devices proposed in the above background technology are cascaded, the address allocation adopts the method of dialing or burning the address to set the physical address. When these two methods are used, if there are omissions in the installation, it will lead to devices with duplicate addresses, resulting in abnormal operation of the same address.
[0005] To achieve the above object, the present invention provides the following technical solutions:
[0006] A device physical sequencing control method, the method steps are as follows:
[0007] Step 1: After stacking the devices, turn on all of them. Before assigning addresses, the top device is in state A, and the other devices are in state B.
[0008] Step 2: When the device detects that it is in state A, it confirms that it is the master and sets its address to 1, sending a control signal to the lower port to change the next connected device detection from state B to state C;
[0009] Step 3: When the device detects that it is in B state and has not configured the address, it enters the waiting mode and sets the timeout to 5S. During the waiting process, when it finds that the upper port changes from B state to C state, it sends a command to request address configuration to the master. When the master receives the request command, it allocates the address. After receiving the address, the device sends a control signal to the lower port to make the next connected device detect that it changes from B state to C state, and repeats the above steps to configure;
[0010] Step 4: When the last device is configured, a control signal is sent to the lower port. If there is no response within 2S, it is confirmed that this device is the last one.
[0011] As a further solution of the present invention: the device is divided into an upper port and a lower port, the upper port is connected to the lower port of the upper device through an address distribution line, and the lower port is connected to the upper port of the lower device through an address distribution line.
[0012] As a further solution of the present invention: the A state is that there is no device at the upper part and the two address allocation lines are not connected.
[0013] As a further solution of the present invention: the B state is when there is a device on the upper part, and the device is not configured with an address, the two address allocation lines are connected, and the upper device does not give a configuration completion signal.
[0014] As a further solution of the present invention: the C state is to configure the current device address signal.
[0015] Compared with the prior art, the present invention has the following beneficial effects:
[0016] The device physical sequencing control method of the present invention is simple to operate and can effectively avoid the situation where addresses of devices are repeated, thereby further preventing work abnormalities caused by the same device addresses. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 The figure is a flow chart of the device physical sequencing control method.
[0018] Figure 2 An example schematic diagram of a stacked battery pack using the device physical sequencing control method. DETAILED DESCRIPTION
[0019] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0020] See also Figure 1-2 In an embodiment of the present invention, a device physical sequencing control method is provided, and the method steps are as follows:
[0021] Step 1: After stacking the devices, turn on all of them. Before assigning addresses, the top device is in state A, and the other devices are in state B.
[0022] Step 2: When the device detects that it is in state A, it confirms that it is the master and sets its address to 1, sending a control signal to the lower port to change the next connected device detection from state B to state C;
[0023] Step 3: When the device detects that it is in B state and has not configured the address, it enters the waiting mode and sets the timeout to 5S. During the waiting process, when it finds that the upper port changes from B state to C state, it sends a command to the master to request address configuration. When the master receives the request command, it allocates the address. After receiving the address, this device sends a control signal to the lower port to make the next connected device detect that it changes from B state to C state, and repeat the above steps to configure;
[0024] Step 4: When the last device is configured, a control signal is sent to the lower port. If there is no response within 2S, it is confirmed that this device is the last one.
[0025] The device is divided into an upper port and a lower port, the upper port is connected to the lower port of the upper device through an address distribution line, and the lower port is connected to the upper port of the lower device through an address distribution line to achieve a plug-in effect;
[0026] The A state means that there is no device on the upper part and the two address allocation lines are not connected;
[0027] The B state is when there is a device on the upper part, and the device is not configured with an address, the two address allocation lines are connected, and the upper device does not give a configuration completion signal;
[0028] The C state is to configure the current device address signal;
[0029] When there is only one device, the device is in state A when it is turned on. When the devices are stacked, the top device is in state A and the other devices are in state B. When the device is configured with a physical address and further sends out a signal, the downstream device will detect that its own state signal has changed and change from state B to state C.
[0030] Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments, or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A device physical sequencing control method, characterized in that: The method steps are as follows: Step 1: After stacking the devices, turn on all of them. Before assigning addresses, the top device is in state A, and the other devices are in state B. Step 2: When the device detects that it is in state A, it confirms that it is the master and sets its address to 1, sending a control signal to the lower port to change the next connected device detection from state B to state C; Step 3: When the device detects that it is in B state and has not configured the address, it enters the waiting mode and sets the timeout to 5S. During the waiting process, when it finds that the upper port changes from B state to C state, it sends a command to request address configuration to the master. When the master receives the request command, it allocates the address. After receiving the address, the device sends a control signal to the lower port to make the next connected device detect that it changes from B state to C state, and repeats the above steps to configure; Step 4: When the last device is configured, a control signal is sent to the lower port. If there is no response within 2S, it is confirmed that this device is the last one.
2. The device physical sequencing control method according to claim 1, characterized in that: The device is divided into an upper port and a lower port. The upper port is connected to the lower port of the upper device through an address distribution line, and the lower port is connected to the upper port of the lower device through an address distribution line.
3. The device physical sequencing control method according to claim 1, characterized in that: The A state means that there is no device at the top and the two address allocation lines are not connected.
4. The device physical sequencing control method according to claim 1, characterized in that: The B state is when there is a device on the upper part, and the device is not configured with an address, the two address allocation lines are connected, and the upper device does not give a configuration completion signal.
5. The device physical sequencing control method according to claim 1, characterized in that: The C state is to configure the current device address signal.