CN115834444A - Automatic topology identification method and device for indoor distribution system equipment and indoor distribution system - Google Patents

Automatic topology identification method and device for indoor distribution system equipment and indoor distribution system Download PDF

Info

Publication number
CN115834444A
CN115834444A CN202211086506.XA CN202211086506A CN115834444A CN 115834444 A CN115834444 A CN 115834444A CN 202211086506 A CN202211086506 A CN 202211086506A CN 115834444 A CN115834444 A CN 115834444A
Authority
CN
China
Prior art keywords
polling
slave
information
equipment
host
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.)
Pending
Application number
CN202211086506.XA
Other languages
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.)
Lanzhou Feitian Netscape Information Industry Co ltd
Original Assignee
Lanzhou Feitian Netscape Information Industry 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 Lanzhou Feitian Netscape Information Industry Co ltd filed Critical Lanzhou Feitian Netscape Information Industry Co ltd
Priority to CN202211086506.XA priority Critical patent/CN115834444A/en
Publication of CN115834444A publication Critical patent/CN115834444A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses an automatic topology identification method and device for an indoor distribution system device and an indoor distribution system, wherein the method comprises the steps that a host terminal executes polling on a plurality of slave terminals, sends number distribution starting information to the slave terminals when a polling response instruction of the slave terminals is received, stores the number distribution response information when the number distribution response information of the slave terminals is received, and sends device number distribution information to the slave terminals corresponding to the number distribution response information; the slave end sends polling response information to the host end when receiving a polling instruction of the host end, and sends number distribution response information to the host end when receiving the number distribution starting information. The invention uses the polling time slot to sense the on-site state of the slave end and obtain the running state information of the slave end through the host end, and allocates the equipment number for the slave end which is not allocated with the equipment number through allocating the time slot, thereby solving the technical problems of low efficiency and high installation cost of the room distribution system when the room distribution system is allocated with the slave equipment number at present.

Description

Automatic topology identification method and device for indoor distribution system equipment and indoor distribution system
Technical Field
The invention relates to the technical field of indoor distribution systems, in particular to an automatic identification method and device for equipment topology of an indoor distribution system and the indoor distribution system.
Background
The indoor distribution system is an indoor distribution system, mainly introduces base station signals indoors, solves signal extension and coverage, improves indoor communication quality, and is an indispensable component of mobile communication in a metropolis.
An indoor subsystem generally comprises a host (near-end unit) and a slave (far-end unit), wherein the host mainly has the function of accessing signals from a base station, and is also called an access end; the slave is mainly responsible for signal zooming and covering; the master and the slaves are connected through cables, and one master is generally connected with and communicates with dozens of slaves.
The indoor distribution system comprises the processes of equipment site selection, cable arrangement, equipment installation, equipment power-on station opening, equipment performance debugging, delivery and use and the like from planning to opening and using, wherein a main machine is mainly installed in a relatively open place such as a weak current well, and a slave machine is generally installed in a relatively narrow place such as an indoor ceiling.
In order to monitor the running state of each device in the indoor distribution system in real time in the monitoring center, the indoor distribution system devices are visually displayed on a monitoring interface in a connection topological graph mode, and the monitoring center needs to keep communication with each device in the time-sharing system; or the monitoring center keeps communication with the host, the host keeps communication with the slave, and the state information of the slave is transmitted to the monitoring center through the host. In order to ensure normal and smooth communication, the devices in the mobile communication protocol room subsystem must have a unique number (one byte) in their system (a master and its connected slaves constitute a system) for distinguishing each other, wherein the master number is fixedly allocated to 0x00, the slave number is allocatable to [0x01,0xFE ], and in order to facilitate mass production of the devices, the device numbers of all slave devices at the time of factory shipment are identically configured to 0xFF. The device number of the slave must be reconfigured in the project before the device is turned on.
The traditional method for configuring the slave equipment numbers in engineering is that all equipment is electrified after being installed and detected to be correct, then the installed slave equipment is found out one by one according to a drawing, and the equipment numbers are redistributed to the slave equipment through a serial port or a network port.
This operation causes the following problems:
(1) Communication interfaces are required to be reserved in the slave equipment, so that the dustproof and waterproof performance of the equipment is reduced;
(2) The slave machine is arranged in narrow places such as a ceiling, the operation space is extremely limited, the operation is extremely difficult, sometimes even the ceiling or other equipment needs to be removed to finish the operation, and the hidden cost of the equipment is increased;
(3) The same equipment needs to be operated at least twice (installation and numbering configuration), so that the installation cost is increased;
(4) The risk resistance of the equipment is reduced, the configured equipment number must be ensured to be correctly stored and read, and if the storage medium of the equipment is damaged due to external factors, the equipment cannot be correctly monitored, so that the equipment is out of service.
Therefore, how to improve the equipment installation opening efficiency of the indoor distribution system and reduce the equipment installation cost and the later maintenance cost is a technical problem which needs to be solved urgently.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide an automatic identification method and device for equipment topology of an indoor subsystem and the indoor subsystem, and aims to solve the technical problems that the efficiency of configuring slave equipment numbers by the current indoor subsystem is not high, and the installation cost of the indoor subsystem is high.
In order to achieve the above object, the present invention provides an automatic topology identification method for indoor distribution system equipment, which is used at a host side, and comprises the following steps:
acquiring polling time slot information, and polling a plurality of slave terminals based on polling serial numbers;
when a polling response instruction of a slave terminal is received, judging whether current polling is finished or not, if so, sending number distribution starting information to a plurality of slave terminals;
and when the number assignment response information of the slave end is received, storing the number assignment response information and sending the equipment number assignment information to the slave end corresponding to the number assignment response information.
Optionally, the method further includes:
when a polling response instruction of a slave end is received, if the polling response instruction of the target slave end is overtime, adding 1 to an overtime count, and judging whether the overtime count exceeds a preset value or not;
if yes, deleting the polling information of the target slave terminal; if not, executing the step of judging whether the current polling is finished or not.
Optionally, when determining whether the current polling is completed, if not, adding 1 to the polling sequence number, and returning to execute the polling step performed on the plurality of slave terminals based on the polling sequence number.
Optionally, when a polling response instruction from the slave end is received, the timeout count is cleared.
Optionally, the method further includes:
after equipment number distribution information is sent to the slave end corresponding to the number distribution response information, number distribution end information is sent to the slave end, and whether the current polling sequence number exceeds the stored slave end number or not is judged;
if yes, clearing the polling sequence number; if not, the polling sequence number is increased by 1.
In addition, in order to achieve the above object, the present invention further provides an automatic topology identification method for indoor distribution system equipment, which is used at a slave end, and the method includes the following steps:
when a polling instruction at a host end is received, judging whether the polling instruction is a polling instruction for a local machine, and if so, sending polling response information to the host end;
when receiving the number distribution starting information, judging whether the coding counter is 0, if so, sending number distribution response information to the host end, and resetting the coding counter; if not, subtracting 1 from the encoding counter, and returning to execute the step of judging whether the encoding counter is 0;
and controlling the encoding counter to stop decrementing when the number distribution end information is received.
Optionally, the method further includes:
reading the equipment serial number of the slave end;
if the equipment serial number is successfully read, generating a random number by taking the equipment serial number as a seed, and taking the random number as an extension number;
if the reading of the equipment serial number is unsuccessful, generating a random number by taking system count as a seed, taking the random number as a serial number, generating a random number by taking the serial number as a seed, and taking the random number as an extension number;
and generating a number counter by taking the extension number as a seed.
In order to achieve the above object, the present invention provides an automatic topology identification device for an indoor distribution system device, which is disposed on a host side, the automatic topology identification device comprising:
the polling module is used for acquiring polling time slot information and polling a plurality of slave terminals based on polling serial numbers;
the first judging module is used for judging whether the current polling is finished or not when a polling response instruction of the slave terminal is received, and if so, sending number distribution starting information to a plurality of slave terminals;
and the sending module is used for storing the number distribution response information and sending the equipment number distribution information to the slave end corresponding to the number distribution response information when the number distribution response information of the slave end is received.
In order to achieve the above object, the present invention provides an automatic topology identification device for an indoor distribution system device, which is disposed on a slave side, the automatic topology identification device comprising:
the second judgment module is used for judging whether the polling instruction is a polling instruction for the host computer or not when receiving the polling instruction from the host computer, and if so, sending polling response information to the host computer;
the third judging module is used for judging whether the code counter is 0 or not when the number distribution starting information is received, if so, sending number distribution response information to the host end, and resetting the code counter; if not, subtracting 1 from the encoding counter, and returning to execute the step of judging whether the encoding counter is 0;
and the stopping module is used for controlling the coding counter to stop decreasing when the number distribution ending information is received.
In addition, in order to achieve the above object, the present invention provides an indoor distribution system, including:
the system comprises a host end and a plurality of slave ends connected with the host end; wherein:
the host side includes: the system comprises a memory, a processor and an automatic identification method program of the topology of the indoor distribution system equipment, wherein the automatic identification method program of the topology of the indoor distribution system equipment is stored in the memory and can be operated on the processor;
the slave end comprises a memory, a processor and an automatic identification method program of the topology of the indoor subsystem equipment, wherein the automatic identification method program of the topology of the indoor subsystem equipment is stored in the memory and can be operated on the processor, and when the automatic identification method program of the topology of the indoor subsystem equipment is executed by the processor, the step that the host end corresponds to the automatic identification method of the topology of the indoor subsystem equipment is realized.
In addition, in order to achieve the above object, the present invention further provides a storage medium, in which an automatic topology identification method program for an indoor distribution system device is stored, and the automatic topology identification method program for an indoor distribution system device realizes the above steps of the automatic topology identification method for an indoor distribution system device when executed by a processor.
The method comprises the steps that a host terminal executes polling on a plurality of slave terminals, sends number distribution starting information to the slave terminals when a polling response instruction of the slave terminals is received, stores the number distribution response information when the number distribution response information of the slave terminals is received, and sends equipment number distribution information to the slave terminals corresponding to the number distribution response information; and the slave end sends polling response information to the host end when receiving a polling instruction of the host end, and sends number distribution response information to the host end when receiving the number distribution starting information. The invention uses the polling time slot to sense the on-site state of the slave and obtain the running state information of the slave through the host, and allocates the equipment number for the slave which is not allocated with the equipment number through allocating the time slot, thereby solving the technical problems of low efficiency and high installation cost of the room distribution system when the room distribution system is allocated with the slave equipment number at present.
Drawings
FIG. 1 is a schematic diagram of a room distribution system according to the present invention;
fig. 2 is a schematic structural diagram of a master end or a slave end according to the present invention;
FIG. 3 is a schematic flow chart of a method for automatically identifying topology of indoor distribution system equipment according to the present invention;
FIG. 4 is a schematic diagram illustrating a method for automatically identifying topology of indoor distribution system equipment by a host according to the present invention;
FIG. 5 is a schematic flow chart of an automatic topology identification method for indoor distribution system equipment according to the present invention;
FIG. 6 is a schematic diagram of the slave-end implementation of automatic topology identification of the indoor distribution system equipment according to the present invention;
FIG. 7 is a schematic diagram of two principles of the present invention for implementing automatic topology identification of an indoor distribution system from a client;
FIG. 8 is a block diagram of an automatic topology identification apparatus for an indoor distribution system according to the present invention;
fig. 9 is a block diagram of two structures of an automatic topology identification device of an indoor distribution system device according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
At present, in the related technical field, the efficiency of configuring slave equipment numbers by the existing room distribution system is not high, and the installation cost of the room distribution system is high.
In order to solve the problem, various embodiments of the automatic topology identification method of the indoor distribution system equipment are provided. The automatic identification method for the equipment topology of the room distribution system, provided by the invention, senses the in-place state of the slave machines and acquires the running state information of the slave machines by utilizing the polling time slot through the host machine end, and allocates the equipment numbers to the slave machines which are not allocated with the equipment numbers through allocating the time slots, so that the technical problems that the efficiency of allocating the slave machine equipment numbers to the room distribution system is not high and the installation cost of the room distribution system is high are solved.
Referring to fig. 1, fig. 1 is a schematic structural view of a chamber division system according to an embodiment of the present invention.
In the present embodiment, the indoor subsystem includes a host side 100 and a plurality of slave sides 200. The master end 100 is a near-end device accessing signals from a base station, the slave end 200 is a far-end device pulling and covering the accessed signals, and the master end 100 and the plurality of slave ends 200 are connected and communicated through cables.
It should be noted that, in this embodiment, the master end 100 cooperates with a plurality of slave ends 200 to realize automatic topology identification of the indoor distribution system device.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a host side and a slave side according to an embodiment of the present invention.
Typically, the master and slave sides include: at least one processor 301, a memory 302, and an automatic identification method program of the topology of the room subsystem equipment stored in the memory and operable on the processor, the automatic identification method program of the topology of the room subsystem equipment being configured to implement the steps of the automatic identification method of the topology of the room subsystem equipment as described above.
The processor 301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 301 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 301 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 301 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. The processor 301 may further include an AI (Artificial Intelligence) processor for processing operations related to the automatic topology identification method of the room subsystem equipment, so that the automatic topology identification method model of the room subsystem equipment can be trained and learned autonomously, thereby improving efficiency and accuracy.
Memory 302 may include one or more computer-readable storage media, which may be non-transitory. Memory 302 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 302 is used to store at least one instruction for execution by processor 301 to implement the method for automatic identification of topology of room subsystem equipment provided by method embodiments herein.
In some embodiments, the terminal may further optionally include: a communication interface 303 and at least one peripheral device. The processor 301, the memory 302 and the communication interface 303 may be connected by a bus or signal lines. Various peripheral devices may be connected to communication interface 303 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 304, a display screen 305, and a power source 306.
The communication interface 303 may be used to connect at least one peripheral device related to I/O (Input/Output) to the processor 301 and the memory 302. The communication interface 303 is used for receiving the movement tracks of the plurality of mobile terminals uploaded by the user and other data through the peripheral device. In some embodiments, the processor 301, memory 302, and communication interface 303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 301, the memory 302 and the communication interface 303 may be implemented on a single chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 304 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuit 304 communicates with a communication network and other communication devices through electromagnetic signals, so as to obtain the movement tracks and other data of a plurality of mobile terminals. The rf circuit 304 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 304 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 304 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 304 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 305 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 305 is a touch display screen, the display screen 305 also has the ability to capture touch signals on or above the surface of the display screen 305. The touch signal may be input to the processor 301 as a control signal for processing. At this point, the display screen 305 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display screen 305 may be one, the front panel of the electronic device; in other embodiments, the display screens 305 may be at least two, which are respectively disposed on different surfaces of the electronic device or in a foldable design; in still other embodiments, the display screen 305 may be a flexible display screen disposed on a curved surface or a folded surface of the electronic device. Even further, the display screen 305 may be arranged in a non-rectangular irregular figure, i.e. a shaped screen. The Display screen 305 may be made of LCD (liquid crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The power supply 306 is used to power various components in the electronic device. The power source 306 may be alternating current, direct current, disposable or rechargeable. When the power source 306 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery can also be used to support fast charge technology.
Those skilled in the art will appreciate that the configuration shown in fig. 2 does not constitute a definition of master and slave sides, and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
An embodiment of the invention provides an automatic topology identification method for indoor distribution system equipment, and referring to fig. 3, fig. 3 is a schematic flow diagram of a first embodiment of the automatic topology identification method for indoor distribution system equipment.
In this embodiment, the method for automatically identifying a topology of indoor distribution system equipment, which is used at a host side, includes the following steps:
and S100, acquiring polling time slot information, and polling a plurality of slave terminals based on polling serial numbers.
Specifically, before the host performs polling, it needs to acquire polling slot information, and then perform a polling process on a plurality of slave terminals according to polling sequence numbers according to the polling slot information.
It should be noted that the polling timeslot information is a host/slave communication timeslot table pre-stored at the host, and the host completes communication between the slave terminals at the host through timeslot allocation by recording the timeslot name, timeslot number, timeslot maximum length, and timeslot function.
Figure BDA0003833463130000081
Table 1: master/slave communication time slot table
In this embodiment, when the master performs polling on a plurality of slaves, the polling time slot of each slave is preset to 80ms, and after each slave performs the internal polling process, the master allocates a number to each slave in its allocated time slot, and the allocated time slot is preset to 300ms.
As shown in fig. 4, the master sends a polling command to each slave according to a polling sequence number during polling, so that the slave feeds back a polling response command to the master when receiving the polling command.
Step S200, when receiving the polling response instruction from the slave end, judging whether the current polling is finished, if so, sending number distribution initial information to a plurality of slave ends.
Specifically, when the master side is polling, after sending a polling instruction to the slave side, if a polling response instruction of the slave side is received, whether current polling is completed is judged, and if yes, number allocation starting information is sent to a plurality of slave sides.
As shown in fig. 4, it should be noted that, when waiting for receiving a polling response instruction, if the polling response instruction at the target slave end is overtime, the overtime count is incremented by 1, and it is determined whether the overtime count exceeds a preset value; if yes, deleting the polling information of the target slave terminal; if not, executing the step of judging whether the current polling is finished or not.
In a preferred embodiment, if the current polling is determined not to be completed, the polling sequence number is increased by 1, and the polling step is executed on a plurality of slave terminals based on the polling sequence number.
And step S300, when the number distribution response information of the slave end is received, storing the number distribution response information and sending the equipment number distribution information to the slave end corresponding to the number distribution response information.
Specifically, the master side waits for the slave side to feed back the number assignment response information to the master side after sending the number assignment start information to the slave side.
As shown in fig. 4, when the number assignment response information of the slave side is received thereafter, it is necessary to store the number assignment response information and transmit the device number assignment information to the corresponding slave side based on the number assignment response information.
It should be noted that, when the host receives a polling response instruction fed back by the slave according to the polling instruction, the timeout count is cleared.
As shown in fig. 4, in a preferred embodiment, after sending the device number assignment information to the slave side corresponding to the number assignment response information, the master side sends number assignment end information to the slave side, and determines whether the current polling sequence number exceeds the stored number of the slave sides;
if yes, clearing the polling sequence number; if not, the polling sequence number is increased by 1.
The embodiment of the invention also provides an automatic topology identification method for the indoor distribution system equipment, and referring to fig. 5, fig. 5 is a flow diagram of a second embodiment of the automatic topology identification method for the indoor distribution system equipment.
Step S400, when a polling instruction of a host end is received, judging whether the polling instruction is a polling instruction for the host, if so, sending polling response information to the host end.
Specifically, the slave is used as a communication receiving end, and is prepared to receive information sent by the master at any time and to respond or not to respond according to the content of the information.
As shown in fig. 6, in this embodiment, when the slave receives the host information, if the information is polling information, it is determined whether the polling information is a polling command of the slave.
It should be noted that, when receiving the polling command from the host, the slave sends the polling response message to the host only when the polling command is a polling command of the host.
Step S500, when the number distribution starting information is received, judging whether the code counter is 0, if so, sending number distribution response information to the host end, and resetting the code counter; if not, the coding counter is decreased by 1, and the step of judging whether the coding counter is 0 is returned to be executed.
Specifically, if the master information received from the slave is code allocation start information and a code is not allocated, it is determined whether the code counter is 0.
As shown in fig. 6, further, when the encoding counter is 0, the slave side sends the encoding allocation response message to the host side, and resets the encoding counter; and when the coding counter is not 0, subtracting 1 from the coding counter, returning to the step of judging whether the coding counter is 0 until the coding counter is 0, and sending coding distribution response information to the host side again.
In step S600, the code counter is controlled to stop decrementing when the number assignment end information is received.
Specifically, when the slave receives the code allocation end information from the host, the slave controls the code counter to stop decrementing.
In a preferred embodiment, as shown in fig. 7, the number counter is obtained by:
(1) Reading the equipment serial number of the slave end;
(2) If the equipment serial number is successfully read, generating a random number by taking the equipment serial number as a seed, and taking the random number as an extension number;
(3) If the reading of the equipment serial number is unsuccessful, generating a random number by taking system count as a seed, taking the random number as a serial number, generating a random number by taking the serial number as a seed, and taking the random number as an extension number;
(4) And generating a number counter by taking the extension number as a seed.
The embodiment provides an automatic identification method for equipment topology of an indoor subsystem, which uses polling time slots to sense the in-place state of slave machines and acquire running state information of the slave machines through a host machine end, and allocates equipment numbers to slave machines which are not allocated with equipment numbers through allocating time slots, so that the technical problems that the efficiency of allocating the slave machine numbers to the existing indoor subsystem is low, and the installation cost of the indoor subsystem is high are solved.
Referring to fig. 8, fig. 8 is a block diagram illustrating a first embodiment of an automatic topology identifier of an indoor distribution system.
As shown in fig. 8, an automatic topology identification apparatus for an indoor distribution system device according to an embodiment of the present invention is configured at a host, and includes:
the polling module 10 is configured to acquire polling timeslot information and perform polling on a plurality of slave terminals based on polling sequence numbers;
the first judging module 20 is configured to, when receiving a polling response instruction from the slave, judge whether current polling is completed, and if yes, send number allocation start information to a plurality of slave;
and a sending module 30, configured to store the number assignment response information when receiving the number assignment response information from the slave side, and send the device number assignment information to the slave side corresponding to the number assignment response information.
Referring to fig. 9, fig. 9 is a block diagram of a second embodiment of the automatic topology identification apparatus for indoor distribution system equipment according to the present invention.
As shown in fig. 9, an automatic topology identification apparatus for an indoor distribution system, configured at a host, according to an embodiment of the present invention includes:
the second judging module 40 is configured to, when receiving a polling instruction from the host, judge whether the polling instruction is a polling instruction for the host, and if so, send polling response information to the host;
a third judging module 50, configured to, when the number assignment start information is received, judge whether the coding counter is 0, if yes, send a number assignment response message to the host, and reset the coding counter; if not, subtracting 1 from the encoding counter, and returning to execute the step of judging whether the encoding counter is 0;
a stop module 60, configured to control the code counter to stop decrementing when the number assignment end message is received.
Other embodiments or specific implementation manners of the automatic topology identification device of the indoor distribution system equipment can refer to the above method embodiments, and are not described herein again.
In addition, an embodiment of the present invention further provides a storage medium, where the storage medium stores an automatic identification method program of an indoor distribution system device topology, and the automatic identification method program of an indoor distribution system device topology, when executed by a processor, implements the steps of the automatic identification method of an indoor distribution system device topology as described above. Therefore, a detailed description thereof will be omitted. In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in the embodiments of the computer-readable storage medium referred to in the present application, reference is made to the description of the embodiments of the method of the present application. It is determined that, by way of example, the program instructions may be deployed to be executed on one computing device or on multiple computing devices at one site or distributed across multiple sites and interconnected by a communication network.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
It should be noted that the above-described embodiments of the apparatus are merely schematic, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. In addition, in the drawings of the embodiment of the apparatus provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present invention may be implemented by software plus necessary general hardware, and may also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components and the like. Generally, functions performed by computer programs can be easily implemented by corresponding hardware, and specific hardware structures for implementing the same functions may be various, such as analog circuits, digital circuits, or dedicated circuits. However, the implementation of a software program is a more preferable embodiment for the present invention. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a readable storage medium, such as a floppy disk, a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk of a computer, and includes instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.

Claims (10)

1. An automatic topology identification method for indoor distribution system equipment is used for a host terminal, and comprises the following steps:
acquiring polling time slot information, and polling a plurality of slave terminals based on polling serial numbers;
when a polling response instruction of a slave terminal is received, judging whether current polling is finished or not, if so, sending number distribution starting information to a plurality of slave terminals;
and when the number assignment response information of the slave end is received, storing the number assignment response information and sending the equipment number assignment information to the slave end corresponding to the number assignment response information.
2. The method for automatically identifying the topology of indoor subsystem equipment as recited in claim 1, said method further comprising:
when a polling response instruction of a slave end is received, if the polling response instruction of the target slave end is overtime, adding 1 to an overtime count, and judging whether the overtime count exceeds a preset value or not;
if yes, deleting the polling information of the target slave terminal; if not, executing the step of judging whether the current polling is finished or not.
3. The method for automatically identifying topology of indoor subsystem equipment according to claim 2, wherein when determining whether the current polling is completed, if not, the polling sequence number is increased by 1, and the polling procedure is returned to be executed for several slave terminals based on the polling sequence number.
4. The automatic topology identification method for indoor system equipment according to claim 3, wherein said timeout count is cleared when a polling response command from a slave side is received.
5. The method for automatically identifying the topology of indoor subsystem equipment as recited in claim 4, said method further comprising:
after equipment number distribution information is sent to the slave end corresponding to the number distribution response information, number distribution end information is sent to the slave end, and whether the current polling sequence number exceeds the stored slave end number or not is judged;
if yes, clearing the polling sequence number; if not, the polling sequence number is increased by 1.
6. An automatic topology identification method for indoor distribution system equipment is used at a slave end, and comprises the following steps:
when a polling instruction of a host end is received, judging whether the polling instruction is a polling instruction for the host, and if so, sending polling response information to the host end;
when the number distribution starting information is received, judging whether the code counter is 0, if so, sending number distribution response information to the host end, and resetting the code counter; if not, subtracting 1 from the encoding counter, and returning to execute the step of judging whether the encoding counter is 0;
and controlling the encoding counter to stop decrementing when the number distribution end information is received.
7. The method for automatically identifying the topology of indoor subsystem equipment as recited in claim 6, said method further comprising:
reading the equipment serial number of the slave end;
if the equipment serial number is successfully read, generating a random number by taking the equipment serial number as a seed, and taking the random number as an extension number;
if the reading of the serial number of the equipment is unsuccessful, generating a random number by taking system counting as a seed, taking the random number as the serial number, taking the serial number as the seed to generate the random number, and taking the random number as an extended number;
and generating a number counter by taking the extension number as a seed.
8. An automatic topology recognition device for indoor distribution system equipment, which is configured at a host, the automatic topology recognition device for indoor distribution system equipment comprising:
the polling module is used for acquiring polling time slot information and polling a plurality of slave terminals based on polling serial numbers;
the first judging module is used for judging whether the current polling is finished or not when a polling response instruction of the slave terminal is received, and if so, sending number distribution starting information to a plurality of slave terminals;
and the sending module is used for storing the number distribution response information and sending the equipment number distribution information to the slave end corresponding to the number distribution response information when the number distribution response information of the slave end is received.
9. An automatic topology recognition device for an indoor distribution system device, which is provided at a slave side, the automatic topology recognition device for an indoor distribution system device comprising:
the second judgment module is used for judging whether the polling instruction is a polling instruction for the host computer or not when receiving the polling instruction from the host computer, and if so, sending polling response information to the host computer;
the third judging module is used for judging whether the code counter is 0 or not when the number distribution starting information is received, if so, sending number distribution response information to the host end, and resetting the code counter; if not, subtracting 1 from the encoding counter, and returning to execute the step of judging whether the encoding counter is 0;
and the stopping module is used for controlling the coding counter to stop decreasing when the number distribution ending information is received.
10. A room distribution system, the system comprising:
the system comprises a host end and a plurality of slave ends connected with the host end; wherein:
the host side includes: a memory, a processor, and an automatic identification method program for a topology of an indoor subsystem equipment stored in the memory and executable on the processor, the automatic identification method program for a topology of an indoor subsystem equipment implementing the steps of the automatic identification method for a topology of an indoor subsystem equipment according to any one of claims 1 to 5 when executed by the processor;
the slave side includes a memory, a processor, and an automatic identification method program of an indoor subsystem equipment topology stored in the memory and operable on the processor, and when executed by the processor, the automatic identification method program of an indoor subsystem equipment topology realizes the steps of the automatic identification method of an indoor subsystem equipment topology according to claim 6 or 7.
CN202211086506.XA 2022-09-06 2022-09-06 Automatic topology identification method and device for indoor distribution system equipment and indoor distribution system Pending CN115834444A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211086506.XA CN115834444A (en) 2022-09-06 2022-09-06 Automatic topology identification method and device for indoor distribution system equipment and indoor distribution system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211086506.XA CN115834444A (en) 2022-09-06 2022-09-06 Automatic topology identification method and device for indoor distribution system equipment and indoor distribution system

Publications (1)

Publication Number Publication Date
CN115834444A true CN115834444A (en) 2023-03-21

Family

ID=85523404

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211086506.XA Pending CN115834444A (en) 2022-09-06 2022-09-06 Automatic topology identification method and device for indoor distribution system equipment and indoor distribution system

Country Status (1)

Country Link
CN (1) CN115834444A (en)

Similar Documents

Publication Publication Date Title
CN111147619B (en) Method and system for realizing automatic address allocation of RS485 slave equipment locally
CN108540965B (en) Internet of things communication method and device based on LoRa technology and storage medium
CN110687820B (en) Control method and device of intelligent household equipment, terminal equipment and storage medium
CN110442386A (en) A kind of BMC starting method, system, electronic equipment and computer storage medium
CN114237676B (en) FPGA logic updating method, device, equipment and readable storage medium
CN105975303A (en) Upgrade control method and device
CN107402893A (en) USB switching method and device, system
CN105792025A (en) Device information obtaining method and terminal
CN115834444A (en) Automatic topology identification method and device for indoor distribution system equipment and indoor distribution system
CN105487621A (en) Electronic device
KR20180003334A (en) Smart electric outlet
CN207010837U (en) A kind of intelligence divides householder's machine and visible dialogue system
CN110850737A (en) Socket and timing method, system and computer readable storage medium
CN111542037B (en) Instruction transmission method, apparatus and storage medium
CN108848182B (en) Updating method of BMC firmware, related equipment and system
CN114490134A (en) Event processing method, system, device, computer equipment and storage medium
CN114130039A (en) Live-action entertainment scene control method and device
CN219477981U (en) Intelligent remote start-up monitoring system
CN105450725A (en) Wireless router system supporting centralized management of cloud AC and communication method thereof
CN106101784B (en) A kind of repositioning method and device of smart television control Bluetooth chip
CN110824963A (en) Control device in multimedia equipment cluster
CN109343961A (en) Processing method, device, storage medium and the terminal of memory information
KR20180026708A (en) Smart electric outlet
CN216649886U (en) Electric power acquisition terminal
CN113938332B (en) Control method and communication device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination