Address identification method, device, computer equipment and storage medium
By recording the charging time of the charging capacitor in the address characteristic circuit, and determining the address code of the communication device based on the mapping relationship between the address code and the charging time range, the problem of low address identification efficiency in module networking is solved, and efficient address identification and Simplify the design.
Patent Information
- Application Number
- CN202410937481.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-07-12
AI Technical Summary
In the existing technology, the address identification efficiency of communication equipment in module networking is low, requiring additional analog-to-digital converter (ADC) external device support, which increases design complexity and calculation amount.
By recording the charging time of the charging capacitor in the address characteristic circuit, the address code of the communication device is determined based on the mapping relationship between the address code and the charging time range, thereby achieving efficient address identification.
It simplifies the communication equipment address identification process, improves the efficiency of module networking, and reduces design complexity.
Smart Images

Figure CN118474078B
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to an address identification method, device, computer equipment and storage medium. Background Art
[0002] The modules in the computer equipment and the modules between the computer equipment are usually connected to each other by serial communication buses, so as to realize the data interaction between the modules and the main control equipment in turn, and communicate with the monitoring equipment through the bus to realize the "four remotes" of each module, namely remote control, remote sensing, telemetry and telesignaling. For the main control equipment and the monitoring equipment to communicate with each module, it is necessary to distinguish them by the identifiers corresponding to each module of the communication equipment on the lower computer side. By assigning a unique identifier to each module, the networking can be made more efficient. However, in the related art, the support of an additional analog-to-digital converter (ADC) external device is required to add a corresponding identifier to each communication device, and the address information of the communication device can be identified only after reading and parsing through the ADC channel on the main control device. In this way, the complexity of the communication equipment design is increased, the calculation amount of the module networking is large, and the efficiency of address recognition of the communication device in the module networking is low. Summary of the invention
[0003] The purpose of the present application is to provide an address identification method, apparatus, computer equipment and storage medium to solve the problem of low efficiency of address identification of communication devices in module networking in the related art.
[0004] In order to achieve the above-mentioned object, the first aspect of the present application provides an address recognition method, which is applied to an address recognition device for identifying an address of a communication device, wherein the address recognition device is connected to an address feature circuit, and the address recognition method comprises:
[0005] When it is detected that the communication device is connected to the target network, the address characteristic circuit is controlled to be turned on to charge the charging capacitor in the address characteristic circuit, and the first time when the address characteristic circuit is turned on is recorded;
[0006] Acquire a second time when an output level of a target output port of the address feature circuit changes from a first level to a second level, wherein the output level of the target output port changes from the first level to the second level when the charging capacitor is charged to a set voltage;
[0007] Determine a target charging time according to a difference between the first time and the second time;
[0008] Based on the mapping relationship between the address code and the charging time range, a target address code corresponding to the target charging time is determined as the address identifier of the communication device.
[0009] In one embodiment of the present application, the address identification method further includes:
[0010] Numbering multiple communication devices to obtain multiple address codes;
[0011] Each address code is mapped to a charging time range to obtain a mapping library containing a mapping relationship between the address codes and the charging time ranges.
[0012] In one embodiment of the present application, a plurality of communication devices are numbered to obtain a plurality of address codes, including:
[0013] Get the set initial charging time;
[0014] Determine the set charging time corresponding to each communication device according to the product of the initial charging time and the set proportional coefficient;
[0015] The communication devices are numbered in ascending order according to the set charging time to obtain a plurality of address codes.
[0016] In one embodiment of the present application, each address code is mapped to a charging time range to obtain a mapping library containing a mapping relationship between the address code and the charging time range, including:
[0017] Determine the set error time according to the set charging time corresponding to the adjacent address codes;
[0018] Determine the mapping relationship between each address code and the charging time range according to the set charging time and the set error time;
[0019] Each address code and the corresponding charging time range are stored in a preset database to obtain a mapping library.
[0020] In one embodiment of the present application, determining a mapping relationship between each address code and a charging time range according to a set charging time and a set error time includes:
[0021] The first time obtained by subtracting the set error time from the set charging time corresponding to the address code is used as the starting value of the charging time range corresponding to the address code;
[0022] The second time obtained by adding the set charging time corresponding to the address code to the set error time is used as the end point value of the charging time range corresponding to the address code;
[0023] A half-open interval including the first time is established according to the first time and the second time, so as to obtain a charging time range corresponding to the address code.
[0024] In one embodiment of the present application, the address characteristic circuit includes a first address circuit and a second address circuit, and the address identification method further includes:
[0025] determining the target address code detected by the first address circuit as the first address code;
[0026] determining the target address code detected by the second address circuit as the second address code;
[0027] An address code of the communication device is determined based on the first address code and the second address code.
[0028] In one embodiment of the present application, the first address circuit includes a first switch tube, a first charging resistor and a first charging capacitor, the first switch tube includes a first control terminal for receiving a control signal, a first electrode connected to a voltage source and a second electrode connected to a first terminal of the first charging resistor, and the first charging capacitor is connected between the second terminal of the first charging resistor and a power ground;
[0029] The second address circuit includes a second switch tube, a second charging resistor and a second charging capacitor, the second switch tube includes a second control terminal for receiving a control signal, a third electrode connected to a voltage source and a fourth electrode connected to a first terminal of the second charging resistor, and the second charging capacitor is connected between the second terminal of the second charging resistor and a power ground;
[0030] The target output port includes a first output port connected to a first connection node between the first charging resistor and the first charging capacitor, and a second output port connected to a second connection node between the second charging resistor and the second charging capacitor.
[0031] In a second aspect of the present application, an address recognition device is provided for identifying an address of a communication device, the address recognition device communicates with an address feature circuit, each address code representing the address of the communication device has a mapping relationship with a charging time range, and the address recognition device includes:
[0032] A recording module, configured to record a first time when it is detected that the address characteristic circuit is turned on; and to record a second time when it is detected that the level of the address characteristic circuit changes from the first level to the second level;
[0033] The determination module is used to determine the target charging time according to the difference between the first time and the second time; and determine the target address code corresponding to the target charging time based on the mapping relationship between the charging time range and the address code.
[0034] A third aspect of the present application provides a computer device, including:
[0035] a memory configured to store instructions; and
[0036] The processor is configured to call instructions from a memory and implement the above-mentioned address identification method when executing the instructions.
[0037] A fourth aspect of the present application provides a machine-readable storage medium having instructions stored thereon, which, when executed by a processor, configure the processor to execute the above-mentioned address identification method.
[0038] In an embodiment of the present application, first, the target charging time is obtained by detecting the first time when the address characteristic circuit is turned on after the communication device is connected to the target network and the second time when the output level changes from the first level to the second level. Then, based on the mapping relationship between the address code and the charging time range, the target address code corresponding to the target charging time is determined as the address identifier of the communication device. In this way, the address of the communication device in the module networking can be identified more simply and efficiently, thereby improving the efficiency of the module networking.
[0039] Other features and advantages of the present application will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0041] Figure 1 A schematic diagram of an application scenario of an address recognition method provided in an embodiment of the present application;
[0042] Figure 2 A schematic diagram of an address characteristic circuit provided in an embodiment of the present application;
[0043] Figure 3 A flowchart of an address identification method provided in an embodiment of the present application;
[0044] Figure 4 A schematic diagram of the structure of an address recognition device provided in an embodiment of the present application;
[0045] Figure 5 A structural block diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0046] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0047] In the description of the present application, it should be understood that the terms "first" and "second" are used only for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined. In the present application, the word "exemplary" is used to mean "used as an example, illustration or description". Any embodiment described as "exemplary" in the present application is not necessarily interpreted as being more preferred or more advantageous than other embodiments. In order to enable any technician in the field to implement and use the present application, the following description is given. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present application can also be implemented without using these specific details. In other examples, well-known structures and processes will not be elaborated in detail to avoid unnecessary details that make the description of the present application obscure. Therefore, the present application is not intended to be limited to the embodiments shown, but is consistent with the widest range of principles and features disclosed in the present application.
[0048] See also Figure 1 , Figure 1 A schematic diagram of an application scenario of an address identification method provided in an embodiment of the present application, the application scenario of the address identification method in the embodiment of the present application may include a computer device 100, a communication device 200 and an address feature circuit 300. An address identification device is integrated in the computer device 100 to run a computer-readable storage medium corresponding to the address identification method to perform the steps of the address identification method. Each communication device 200 corresponds to a target address code. The address feature circuit 300 is respectively connected to the computer device 100 and the communication device 200, and is used to charge the charging capacitor when the communication device accesses the target network. The target charging time after each communication device accesses the target network is different. Therefore, the computer device 100 can determine the target address code of the communication device 200 based on the target charging time of the charging capacitor by the address feature circuit 300, thereby identifying the address of the communication device 200.
[0049] Understandably, Figure 1The computer devices in the application scenario of the address identification method shown, or the devices included in the electronic device, do not constitute a limitation on the embodiments of the present application. That is, the number of devices and types of devices included in the application scenario of the address identification method, or the number of devices and types of devices included in each device, do not affect the overall implementation of the technical solution in the embodiments of the present application, and can all be regarded as equivalent replacements or derivatives of the technical solution claimed to be protected in the embodiments of the present application.
[0050] The computer device 100 in the embodiment of the present application may be an independent device, or a device network or device cluster composed of devices. For example, the computer device 100 described in the embodiment of the present application includes but is not limited to a computer, a network host, a single network device, a set of multiple network devices, or a cloud device composed of multiple devices. The cloud device is composed of a large number of computers or network devices based on cloud computing.
[0051] Those skilled in the art will understand that Figure 1 The application scenario shown in the figure is only an application scenario corresponding to the technical solution of the present application, and does not constitute a limitation on the application scenario of the technical solution of the present application. Other application scenarios may also include Figure 1 More or fewer computer devices, or electronic device network connections, such as Figure 1 Only one computer device is shown. It can be understood that the scenario of the address identification method can also include one or more other computer devices, which are not limited here. The computer device 100 can also include a memory and a processor, and the memory is used to store information related to the address identification method.
[0052] It should be noted that Figure 1 The application scenario of the address recognition method shown is merely an example. The application scenario of the address recognition method described in the embodiment of the present application is intended to more clearly illustrate the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided in the embodiment of the present application.
[0053] Based on the application scenario of the above-mentioned address recognition method, an embodiment of the address recognition method is proposed, which is described in detail below with reference to the accompanying drawings.
[0054] In an embodiment of the present application, the address feature circuit may be a circuit for identifying the target address code of a communication device. In order to improve the address recognition speed of multiple communication devices, the multiple communication devices may be first divided into multiple groups, and the codes corresponding to the group addresses of the communication devices in each group are the same. Then the communication devices in each group are respectively encoded to obtain the intra-group address in each group. In this way, the target address code of each communication device may include a first address code representing the group address and a second address code representing the intra-group address. Therefore, the address feature circuit of the embodiment of the present application may include a first address circuit and a second address circuit. The first address circuit is used to detect the first address code in the target address code, and the second address circuit is used to detect the second address code in the target address code. In an embodiment of the present application, the target address code detected by the first address circuit is determined as the first address code, and the target address code detected by the second address circuit is determined as the second address code. Then, the address code of the communication device is determined based on the first address code and the second address code. In one example, the first address code and the second address code may be spliced to obtain the address code of the communication device. For example, if the first address code is 2 and the second address code is 1, the address code of the communication device is 21. In addition, other calculation methods can be used to obtain an address code that can represent the address of the communication device based on the first address code and the second address code. In this way, based on the first address code and the second address code, each communication device can have a unique identifier, thereby distinguishing different communication devices. Moreover, through the first address code and the second address code, the address of each communication device can be determined more efficiently.
[0055] Figure 2 A schematic diagram of an address characteristic circuit provided in an embodiment of the present application. Figure 2 In the embodiment of the present application, an RC circuit composed of a resistor and a capacitor can be used as an address characteristic circuit. The charge and discharge time constant of the RC circuit is defined as the product of the resistance and the resistance time, which determines the response speed of the circuit. Different communication devices have different target charging times. Therefore, the address of the communication device can be identified based on the target charging time.
[0056] In the embodiment of the present application, the address feature circuit may include a first address circuit 210 and a second address circuit 220. Among them, the first address circuit 210 may include a first switch tube K1, a first charging resistor R1 and a first charging capacitor C1. The first switch tube K1 may include a first control terminal a1 for receiving a control signal, a first electrode b1 connected to a voltage source VCC and a second electrode c1 connected to a first end of the first charging resistor R1, and the first charging capacitor C1 is connected between the second end of the first charging resistor R1 and the power ground GND. Taking the first switch tube as an NPN type triode as an example, the first control terminal a1 is the base, the first electrode b1 is the collector, and the second electrode c1 is the emitter. When the first control terminal a1 inputs a control signal for conduction, when the voltage between the first control terminal a1 and the second electrode c1 is greater than the forward cut-off voltage, the forward voltage applied by the first control terminal a1 will form an electron injection through the PN junction formed by the first control terminal a1 and the second electrode c1, so that the electrons of the first control terminal a1 are injected into the first electrode b1 to form a current, thereby turning on the first switch tube K1. At this time, the first charging capacitor C1 starts to charge, and when the charging is completed, the voltage value of the first charging capacitor C1 is close to the voltage of the voltage source VCC. At this time, the level output by the first address circuit 210 changes from a low level to a high level.
[0057] Similarly, the second address circuit 220 may include a second switch tube K2, a second charging resistor R2 and a second charging capacitor C2. The second switch tube K2 may include a second control terminal a2 for receiving a control signal, a third electrode b2 connected to a voltage source VCC and a fourth electrode c2 connected to a first end of the second charging resistor R2. The second charging capacitor C2 is connected between the second end of the second charging resistor R2 and the power ground GND. Taking the second switch tube as an NPN type triode as an example, the second control terminal a2 is the base, the third electrode b2 is the collector, and the fourth electrode c2 is the emitter. When the second control terminal a2 inputs a control signal for conduction, and the voltage between the second control terminal a2 and the third electrode b2 is greater than the forward cut-off voltage, the forward voltage applied by the second control terminal a2 will form an electron injection through the PN junction formed by the second control terminal a2 and the fourth electrode c2, so that the electrons of the second control terminal a2 are injected into the third electrode b2 to form a current, thereby turning on the second switch tube K2. At this time, the second charging capacitor C2 starts to charge, and when the charging is completed, the voltage value of the second charging capacitor C2 is close to the voltage of the voltage source VCC. At this time, the level output by the second address circuit 220 changes from a low level to a high level.
[0058] In the address characteristic circuit, a plurality of target output ports may also be included, and the target output ports may include a first output port e1 connected to a first connection node d1 between a first charging resistor R1 and a first charging capacitor C1, and a second output port e2 connected to a second connection node d2 between a second charging resistor R2 and a second charging capacitor C2. In addition, the target output port may also include a control port e3 connected to a first control terminal a1 and a second control terminal a2. The address recognition device controls the conduction of the address characteristic circuit by connecting the control port e3. Then, by connecting the first output port e1 and the second output port e2, the conduction status of the first address circuit 210 and the second address circuit 220, as well as the output level state, are obtained in real time, and the address of the communication device is identified based on this. In this way, through the address characteristic circuit, the address characteristics of the connected communication device can be obtained, thereby efficiently identifying the address of the communication device.
[0059] Figure 3 A flowchart of an address recognition method provided in an embodiment of the present application. Figure 3 In an embodiment of the present application, the address recognition method can execute steps 301-304 and the like through the address recognition device in the above-mentioned computer device 100, which will be described in detail below.
[0060] Step 301: When it is detected that the communication device is connected to the target network, the address characteristic circuit is controlled to be turned on to charge the charging capacitor in the address characteristic circuit, and the first time when the address characteristic circuit is turned on is recorded.
[0061] Step 302, obtaining a second time when the output level of the target output port of the address feature circuit changes from the first level to the second level, wherein the output level of the target output port changes from the first level to the second level when the charging capacitor is charged to a set voltage.
[0062] Step 303: Determine a target charging time according to the difference between the first time and the second time.
[0063] Step 304: Determine a target address code corresponding to the target charging time based on the mapping relationship between the address code and the charging time range as the address identifier of the communication device.
[0064] In an embodiment of the present application, the address identification method of the first address circuit and the second address circuit is based on the same inventive concept. The address characteristic circuit described below includes the first address circuit and the second address circuit, so the conduction of the described address characteristic circuit refers to the conduction of the first address circuit or the conduction of the second address circuit. For the first address circuit, the charging capacitor is the first charging capacitor. For the second address circuit, the charging capacitor is the second charging capacitor. In an embodiment of the present application, after different communication devices are connected to the address characteristic circuit, the charging time of the charging capacitor will be different, and there may be a certain error in the charging time of the charging capacitor. Therefore, the charging time range of the charging capacitor corresponding to each communication device after the communication device is connected to the address characteristic circuit can be determined in advance according to the address codes of multiple communication devices. Based on this, a mapping relationship between the address code and the charging time range is established.
[0065] When it is detected that the communication device is connected to the target network, a control signal of conduction can be sent to the address feature circuit to turn on the address feature circuit. Wherein, the target network is the network that the communication device needs to be networked. When the address feature circuit is turned on, the charging capacitor starts to charge, and the time at this time is recorded as the first time Ts. When the charging capacitor is fully charged, that is, when the charging capacitor is charged to the set voltage, for example, the set voltage can be half of the voltage of the voltage source. At this time, the output level of the target output port of the address feature circuit will change from the first level to the second level, the first level refers to the low level, and the second level refers to the high level. When the output level changes from the low level to the high level, the time at this time is recorded as the second time Te. Subtracting the first time Ts from the second time Te, the target charging time corresponding to the charging capacitor in the communication device accessing the address feature circuit can be obtained. According to the current target charging time and the charging time range established in advance, the charging time range into which the target charging time falls is determined, so that the address code corresponding to the target charging time can be determined.
[0066] In an embodiment of the present application, the target charging time is obtained by detecting the first time when the address characteristic circuit is turned on after the communication device is connected to the target network and the second time when the output level changes from the first level to the second level. Then, based on the mapping relationship between the address code and the charging time range, the target address code corresponding to the target charging time is determined as the address identifier of the communication device. In this way, the address of the communication device in the module networking can be identified more simply and efficiently, thereby improving the efficiency of the module networking.
[0067] As described above, the address identification method can establish a mapping library containing a mapping relationship between address codes and charging time ranges in advance. Specifically, multiple communication devices can be numbered first to obtain multiple address codes. Since the inventive concept of the first address code and the second address code is the same, the address code mentioned in the embodiment of the present application can be the first address code or the second address code.
[0068] In one example, the set initial charging time T0 can be obtained first. Then, the set charging time corresponding to each communication device is determined according to the product of the initial charging time T0 and the set proportional coefficient. Among them, the set charging time is the ideal charging time of the communication device. The model of the corresponding communication device can be selected based on the ideal charging time. The set proportional coefficient of each communication device can be increased at equal intervals or at unequal intervals. Finally, the communication devices are numbered in order from small to large according to the set charging time to obtain multiple address codes. For example, the initial charging time T0 is 100ms, and the proportional coefficient increases at equal intervals, which are 1, 2, 3, 4, 5 and 6 respectively. For example, assuming that there are six communication devices, the corresponding set charging times are 100ms, 200ms, 300ms, 400ms, 500ms and 600ms respectively.
[0069] Then, each address code is mapped to the charging time range to obtain a mapping library containing a mapping relationship between the address code and the charging time range. Since there is a high probability that the ideal charging time cannot be matched when selecting the communication device, there may be errors in the actual charging time of the communication device. Therefore, in an embodiment of the present application, the time range within a certain error range between the address code of each communication device and the ideal charging time is used as the charging time range, and the address code is mapped to the charging time range. The communication device corresponding to the address code in each charging time range can be considered as a communication device with the same address.
[0070] In one example, the set error time can be determined according to the set charging time corresponding to the adjacent address codes. Then, the mapping relationship between each address code and the charging time range is determined according to the set charging time and the set error time. Among them, the set error time is less than the difference between the set charging times corresponding to the adjacent address codes. In order to make the charging time range more balanced, preferably, half of the difference between the adjacent address codes can be used as the set error time. For example, assuming that the set charging time corresponding to each address code 1, 2, 3, 4, 5 and 6 is an equal interval ratio that increases in sequence, such as 100ms, 200ms, 300ms, 400ms, 500ms and 600ms, then the difference between the set charging time corresponding to the adjacent address codes is 100ms. Take 50ms as the set error time, then the charging time range can be an interval composed of each set charging time plus or minus 50ms. Specifically, the first time obtained by subtracting the set error time from the set charging time corresponding to the address code can be used as the starting value of the charging time range corresponding to the address code. The second time obtained by adding the set error time to the set charging time corresponding to the address code is used as the end value of the charging time range corresponding to the address code. Then, a half-open interval including the first time is established according to the first time and the second time, and the charging time range corresponding to the address code can be obtained. For example, for address code 1, the charging time range can be [0,150), for address code 2, the charging time range can be [150,250), for address code 3, the charging time range can be [250,350), for address code 4, the charging time range can be [350,450), for address code 4, the charging time range can be [450,550), for address code 5, the charging time range can be [350,450), for address code 6, the charging time range can be [550,650). In this way, the address codes of communication devices whose target charging time is within the charging time range can be identified as the address codes corresponding to the charging time range.
[0071] Finally, each address code and the corresponding charging time range are stored in a preset database to obtain a mapping library, so that the corresponding target address code can be determined based on any target charging time within the charging time range stored in the mapping library to identify the communication device corresponding to the target address code.
[0072] The target address code in the embodiment of the present application may include a first address code detected by a first address circuit and a second address code detected by a second address circuit. After the first address code and the second address code are obtained based on the same address recognition method, the address code of the communication device is obtained based on the first address code and the second address code.
[0073] Taking the mapping tables corresponding to the above six communication devices as an example, assuming that the mapping tables corresponding to the first address circuit and the second address circuit are the same, the first time is 500ms, the second time detected by the first address circuit is 820ms, and the second time detected by the second address circuit is 600ms. Then, the target charging time detected by the first address circuit is 320ms, and the target charging time detected by the second address circuit is 100ms. The first address code corresponding to the target charging time in the first address circuit is 3, and the second address code corresponding to the target charging time in the second address circuit is 1, then the address code of the communication device can be 31. In this way, the address of the communication device can be identified simply and efficiently.
[0074] Figure 4 This is a schematic diagram of the structure of an address recognition device 400 provided in an embodiment of the present application. Figure 4 , the address identification device 400 is used to identify the address of the communication device. The address identification device may include a recording module 401 and a determination module 402. The recording module 401 is used to record a first time when it is detected that the address characteristic circuit is turned on; and when it is detected that the level of the address characteristic circuit changes from the first level to the second level, record a second time. The determination module 402 is used to determine the target charging time according to the difference between the first time and the second time; and determine the target address code corresponding to the target charging time based on the mapping relationship between the charging time range and the address code.
[0075] Among them, the recording module 401 and the determination module 402 can be used to execute steps 301-304 in the embodiment corresponding to the above-mentioned address identification method respectively. For the specific implementation methods of these modules and more details, please refer to the corresponding method part, which will not be repeated here.
[0076] Figure 5 This is a structural block diagram of a computer device provided in an embodiment of the present application. Figure 5 , an embodiment of the present application provides a computer device 100, including:
[0077] Memory 110, configured to store instructions; and
[0078] The processor 120 is configured to call instructions from the memory 110 and implement the above-mentioned address identification method when executing the instructions.
[0079] An embodiment of the present application also provides a machine-readable storage medium, on which instructions are stored. When the instructions are executed by a processor, the processor is configured to execute the above-mentioned address identification method.
[0080] Since the instructions stored in the computer device and the machine-readable storage medium can execute the steps in any one of the address identification methods provided in the embodiments of the present application, the beneficial effects that can be achieved by any one of the address identification methods provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0081] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0082] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0083] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0084] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0085] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0086] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0087] Computer readable media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated communication signals and carrier waves.
[0088] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0089] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. An address recognition method, characterized in that: The invention is applied to an address recognition device, and is used to recognize the address of a communication device, wherein the address of the communication device corresponds to an address code, wherein the address code includes a first address code and a second address code, wherein the address recognition device is connected to an address characteristic circuit, wherein the address characteristic circuit includes a first address circuit and a second address circuit, and wherein the address recognition method includes: Divide the plurality of communication devices into a plurality of groups, wherein the communication devices in each group have the same first address code and different second address codes; For any one of the first address circuit and the second address circuit, when it is detected that the communication device is connected to the target network, the address characteristic circuit is controlled to be turned on to charge the charging capacitor in the address characteristic circuit, and a first time when the address characteristic circuit is turned on is recorded; Acquire a second time at which an output level of a target output port of the address feature circuit changes from a first level to a second level, wherein the output level of the target output port changes from the first level to the second level when the charging capacitor is charged to a set voltage; Determine a target charging time according to a difference between the first time and the second time; Determining a target address code corresponding to the target charging time based on a mapping relationship between the address code and the charging time range; determining the target address code detected by the first address circuit as a first address code; determining the target address code detected by the second address circuit as a second address code; An address code of the communication device is determined based on the first address code and the second address code.
2. The address recognition method according to claim 1, characterized in that: The address identification method further comprises: Numbering the plurality of communication devices to obtain a plurality of address codes; Each of the address codes is mapped to a charging time range to obtain a mapping library containing a mapping relationship between the address codes and the charging time ranges.
3. The address recognition method according to claim 2, characterized in that: The plurality of communication devices are numbered to obtain a plurality of address codes, including: Get the set initial charging time; Determine the set charging time corresponding to each of the communication devices according to the product of the initial charging time and the set proportional coefficient; The communication devices are numbered in ascending order according to the set charging time to obtain a plurality of address codes.
4. The address recognition method according to claim 3, characterized in that: The mapping of each of the address codes to the charging time range to obtain a mapping library containing a mapping relationship between the address codes and the charging time ranges includes: Determine the set error time according to the set charging time corresponding to the adjacent address codes; Determine a mapping relationship between each of the address codes and the charging time range according to the set charging time and the set error time; Each of the address codes and the corresponding charging time ranges are stored in a preset database to obtain the mapping library.
5. The address recognition method according to claim 4, characterized in that: The determining, according to the set charging time and the set error time, a mapping relationship between each of the address codes and the charging time range comprises: Subtracting the set error time from the set charging time corresponding to the address code to obtain a first time as the starting value of the charging time range corresponding to the address code; The second time obtained by adding the set charging time corresponding to the address code to the set error time is used as the end point value of the charging time range corresponding to the address code; A half-open interval including the first time is established according to the first time and the second time, so as to obtain a charging time range corresponding to the address code.
6. The address recognition method according to claim 1, characterized in that: The first address circuit includes a first switch tube, a first charging resistor and a first charging capacitor, the first switch tube includes a first control terminal for receiving a control signal, a first electrode connected to a voltage source and a second electrode connected to a first terminal of the first charging resistor, and the first charging capacitor is connected between the second terminal of the first charging resistor and a power ground; The second address circuit includes a second switch tube, a second charging resistor and a second charging capacitor, the second switch tube includes a second control terminal for receiving a control signal, a third electrode connected to a voltage source and a fourth electrode connected to a first terminal of the second charging resistor, and the second charging capacitor is connected between a second terminal of the second charging resistor and a power ground; The target output port includes a first output port connected to a first connection node between a first charging resistor and a first charging capacitor, and a second output port connected to a second connection node between the second charging resistor and the second charging capacitor.
7. An address recognition device, characterized in that: Used to identify the address of a communication device, the address of the communication device corresponds to an address code, the address code includes a first address code and a second address code, the address identification device is connected to an address feature circuit, the address feature circuit includes a first address circuit and a second address circuit, each address code representing the address of the communication device has a mapping relationship with a charging time range, and the address identification device includes: A grouping module, used for dividing the plurality of communication devices into a plurality of groups, wherein the communication devices in each group have the same first address code and different second address codes; a recording module, configured to record, for any one of the first address circuit and the second address circuit, a first time when it is detected that the address characteristic circuit is turned on; and a second time when it is detected that the level of the address characteristic circuit changes from the first level to the second level; A determination module, used to determine a target charging time according to a difference between the first time and the second time; and determine a target address code corresponding to the target charging time based on a mapping relationship between the charging time range and the address code; determine the target address code detected by the first address circuit as a first address code; determine the target address code detected by the second address circuit as a second address code; and determine the address code of the communication device based on the first address code and the second address code.
8. A computer device, characterized in that: include: a memory configured to store instructions; as well as A processor is configured to call the instruction from the memory and implement the address identification method according to any one of claims 1 to 6 when executing the instruction.
9. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores instructions, which, when executed by a processor, enable the processor to be configured to perform the address identification method according to any one of claims 1 to 6.
