Address identification method, device, system, computer equipment and storage medium
Patent Information
- Application Number
- CN202410937482.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-07-12
AI Technical Summary
In the existing technology, the address recognition 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 connecting with the time base circuit, the first level width and the second level width when the communication device accesses the network are detected, and combined with the first coefficient and the second coefficient associated with the communication device, the first address code and the first address code of the communication device are determined. The second address is encoded to obtain its address.
It achieves simple and efficient identification of communication device addresses in module networking, improves networking efficiency and reduces design complexity.
Smart Images

Figure CN118474079B
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to an address identification method, device, system, 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, device, system, computer equipment and storage medium to solve the problem of low efficiency of address identification of communication devices in module networking in related technologies.
[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 a timing circuit, and the address recognition method comprises:
[0005] determining a first coefficient associated with a first address code and a second coefficient associated with a second address code;
[0006] When it is detected that the communication device is connected to the target network, a first level width and a second level width of an output port of the time base circuit are acquired;
[0007] A first address code and a second address code are determined according to the first level width, the second level width, the first coefficient and the second coefficient, and an address of the communication device is obtained according to the first address code and the second address code.
[0008] In one embodiment of the present application, determining the first address code and the second address code according to the first level width, the second level width, the first coefficient and the second coefficient includes:
[0009] Determine a first address code according to the first level width and the first coefficient;
[0010] The second address code is determined according to the first level width, the second level width and the second coefficient.
[0011] In one embodiment of the present application, determining the first address code according to the first level width and the first coefficient includes:
[0012] Determining a ratio of the first level width to the first coefficient as a first address code;
[0013] Determining a second address code according to the first level width, the second level width, and the second coefficient includes:
[0014] A ratio of a difference between the second level width and the first level width to the second coefficient is determined as a second address code.
[0015] In one embodiment of the present application, the address identification method further includes:
[0016] grouping the communication devices having the difference between the second level width and the first level width in the time base circuit into one group;
[0017] Encode the second address based on the second coefficient to obtain multiple sets of second address encoding queues;
[0018] Encoding the communication devices in each group of second address coding queues based on the first coefficient to obtain a plurality of first address codes;
[0019] The first address code and the second address code are combined to obtain address codes corresponding to multiple communication devices.
[0020] In one embodiment of the present application, the product of the first address code of each communication device and the first coefficient is the first level width of the communication device in the timing circuit, and the product of the second address code of each communication device and the second coefficient is the difference between the second level width of the communication device in the timing circuit and the first level width.
[0021] In one embodiment of the present application, the time base circuit includes a first resistor and a second resistor, each communication device corresponds to a first resistance value of the first resistor and a second resistance value of the second resistor, and determining a first coefficient associated with the first address code and a second coefficient associated with the second address code includes:
[0022] Get the set initial time and initial capacitance;
[0023] The initial resistance is obtained according to the initial time and initial capacitance;
[0024] The first resistance value of each communication device is configured as the product of the initial resistance, the third coefficient and the first address code of the communication device, and the second resistance value is configured as the product of the initial resistance, the fourth coefficient and the second address code of the communication device;
[0025] determining the product of the third coefficient and the initial time as the first coefficient;
[0026] The product of the fourth coefficient and the initial time is determined as the second coefficient.
[0027] A second aspect of the present application provides an address recognition device for identifying an address of a communication device, wherein the address recognition device is connected to a timing circuit, and the address recognition device comprises:
[0028] an association module, configured to determine a first coefficient associated with a first address code and a second coefficient associated with a second address code;
[0029] An acquisition module, configured to acquire a first level width and a second level width of an output port of a timing circuit when it is detected that the communication device is connected to a target network;
[0030] The determination module is used to determine the first address code and the second address code according to the first level width, the second level width, the first coefficient and the second coefficient, and obtain the address of the communication device according to the first address code and the second address code.
[0031] A third aspect of the present application provides a computer device, including:
[0032] a memory configured to store instructions; and
[0033] The processor is configured to call instructions from a memory and implement the above-mentioned address identification method when executing the instructions.
[0034] A fourth aspect of the present application provides an address recognition system, comprising:
[0035] A communication device, wherein an address of the communication device is composed of a first address code and a second address code;
[0036] The computer device mentioned above comprises an address identification device for identifying the address of the communication device;
[0037] The time base circuit is connected to the communication device and the computer device respectively, and is used to generate a first level width and a second level width when the communication device is connected to the target network.
[0038] A fifth aspect of the present application 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.
[0039] In an embodiment of the present application, by detecting the first level width and the second level width generated by the communication device in the timing circuit, combining the first coefficient associated with the first address code of the communication device and the second coefficient associated with the second address code of the communication device, the first address code and the second address code of the communication device are determined, and the address of the communication device is obtained based on the first address code and the second address code. 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.
[0040] Other features and advantages of the present application will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] 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.
[0042] Figure 1 A schematic diagram of the structure of an address recognition system provided in an embodiment of the present application;
[0043] Figure 2 A flowchart of an address identification method provided in an embodiment of the present application;
[0044] Figure 3 A schematic diagram of the structure of a timing circuit provided in an embodiment of the present application;
[0045] Figure 4 A schematic diagram of an unstable waveform of a time base circuit provided in an embodiment of the present application;
[0046] Figure 5 A schematic diagram of the structure of an address recognition device provided in an embodiment of the present application;
[0047] Figure 6 This is a structural block diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0048] 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.
[0049] 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.
[0050] See also Figure 1 , Figure 1 Schematic diagram of the structure of an address recognition system in the embodiment of the present application. The application scenario of the address recognition method in the embodiment of the present application is as follows Figure 1 The address recognition system shown. The address recognition system may include a computer device 100, a communication device 200 and a timing circuit 300. An address recognition device is integrated in the computer device 100 to run a computer-readable storage medium corresponding to the address recognition method to perform the steps of the address recognition method. The address of the communication device 200 consists of a first address code and a second address code. The timing circuit 300 is connected to the computer device 100 and the communication device 200 respectively, and is used to generate a first level width and a second level width when the communication device accesses the target network. Among them, the first level width and the second level width are different types of level widths of the square wave generated by the timing circuit, for example, they can be a low level width and a high level width. The first level width and the second level width generated when each communication device accesses the target network are different, so the computer device 100 can identify the address of the communication device 200 based on the first level width and the second level width generated by the timing circuit 300.
[0051] Understandably, Figure 1The computer device in the application scenario of the address identification method shown, or the device included in the computer device, does 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.
[0052] 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.
[0053] 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 shown in, or computer device network connection relationships, 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.
[0054] 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.
[0055] 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.
[0056] In order to improve the address recognition efficiency of multiple communication devices, multiple communication devices can be divided into multiple groups first, 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 encoded separately to obtain the group address representing the same group and the intra-group address in each group. In an embodiment of the present application, the address of each communication device consists of a first address code and a second address code. Among them, the first address code is the code corresponding to the intra-group address in each group of communication devices, and the second address code is the code corresponding to the group address of the group to which the communication device belongs. By performing the first address coding and the second address coding on the communication device, each communication device can have a unique identification, thereby distinguishing different communication devices. In addition, the address of each communication device can be determined more quickly through the first address coding and the second address coding.
[0057] See also Figure 2 , Figure 2 The following is a flow chart of an address recognition method provided in an embodiment of the present application. In the embodiment of the present application, the address recognition method can be performed by the address recognition device in the computer device 100 to perform steps 201-203 and the like, which are described in detail below.
[0058] Step 201: Determine a first coefficient associated with a first address code and a second coefficient associated with a second address code.
[0059] Step 202: When it is detected that the communication device is connected to the target network, a first level width and a second level width of an output port of a timing circuit are obtained.
[0060] Step 203: determine a first address code and a second address code according to the first level width, the second level width, the first coefficient and the second coefficient, and obtain an address of the communication device according to the first address code and the second address code.
[0061] In the embodiment of the present application, the first coefficient and the second coefficient are coefficients used to determine the first address code and the second address code. The first coefficient is associated with the first address code, and the second coefficient is associated with the second address code. In order to better understand the first coefficient and the second coefficient, the principle of the time base circuit is first described below.
[0062] Figure 3 Schematic diagram of a time base circuit provided in an embodiment of the present application. Figure 3 , taking the 555 time base circuit as an example, the time base circuit is a circuit used to generate adjustable pulses. In the astable mode, the time base circuit will automatically trigger and output a square wave multivibrator. The square wave frequency and duty cycle output by the time base circuit can be adjusted by the first resistor RA, the second resistor RB and the capacitor C. Its trigger mode, charging time, discharging time and frequency are independent of the power supply voltage. Figure 4 Schematic diagram of a non-steady-state waveform of a time base circuit provided in an embodiment of the present application. Figure 4 , the high level width of the output TH = 0.693 × (RA + RB) × C, the low level width TL = 0.693 × RA × C. The width of one cycle T = TH + TL = 0.693 × (RB + 2RA) × C. The frequency f = 1 / T = 1.44 (RB × C + 2RA × C), the duty cycle D = TL / T = RA / (RB + 2RA).
[0063] The low level width TL is the first level width, the high level width Th is the second level width, the first address code is n, and the second address code is m. Assuming that the power supply voltage VCC=5V, the first level width and the second level width of the output are changed by adjusting the first resistor RA and the second resistor RB. It is known that the first level width TL=0.693×RA×C, and the second level width TH=0.693×(RA+RB)×C. When designing module networking, the first resistor and the second resistor corresponding to the selected communication device in the timing circuit are configured based on a reference resistor. Therefore, RA=n×a×R0 and RB=m×b×R0 can be set. Among them, R0 is a reference resistor, that is, the initial resistor. Based on the initial resistor, the values of RA and RB can be set proportionally, where a and b are two constants. At the same time, the initial capacitance C0=0.693×C. In this way, the first level width TL=n×a×C0×R0, and the second level width TH=m×b×C0×R0+n×a×C0×R0. A temporary variable TT=m×b×C0×R0 can be introduced to make TH=TL+TT. It is known that C0 and R0 are both constants. Let a×C0×R0 be the first coefficient Ka, and b×C0×R0 be the second coefficient Kb. In this way, TL=Ka×n, TT=Kb×m, TH=Ka×n+Kb×m. In this way, for any communication device, first obtain the first level width TL and the second level width TH obtained by connecting the timing circuit to the communication device, and then based on the first coefficient Ka and the second coefficient Kb, the first address code m and the second address code n of the communication device can be determined.
[0064] Based on the principle of the above-mentioned time base circuit, when encoding the address of the communication device, the embodiment of the present application can first assign values to the first coefficient and the second coefficient. Among them, the first coefficient Ka can represent the fixed proportional relationship between the first address code n and the first level width TL, and the second coefficient Kb can represent the fixed proportional relationship between the second address code m and the temporary variable TT. The temporary variable TT is the value obtained by subtracting the second level width TH from the first level width TL. In this way, the first address code n and the second address code m of the communication device are only related to the difference between the first level width TL and the second level width TH. When it is detected that the communication device is connected to the target network, the time base circuit is turned on. Among them, the target network is the network that the communication device needs to be networked. At this time, the first level width TL and the second level width TH of the output port of the time base circuit can be obtained. Then, according to the first level width TL, the second level width TH, the first coefficient KA and the second coefficient Kb, the first address code n and the second address code m of the communication device can be determined.
[0065] In the embodiment of the present application, by detecting the first level width and the second level width generated by the communication device in the time base circuit, combining the first coefficient associated with the first address code of the communication device and the second coefficient associated with the second address code of the communication device, the first address code and the second address code of the communication device are determined, and the address of the communication device is obtained according to the first address code and the second address code. 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.
[0066] In step 203 of the embodiment of the present application, the first address code n can be determined according to the first level width TL and the first coefficient Ka. Then, the second address code m can be determined according to the first level width TL, the second level width TH and the second coefficient Kb. Specifically, the ratio of the first level width TL and the first coefficient Ka can be determined as the first address code n, that is, n=TL / Ka. Then, the ratio of the temporary variable TT obtained by the difference between the second level width TH and the first level width TL and the second coefficient Kb is determined as the second address code m. In this way, the address code of the communication device can be obtained.
[0067] In an embodiment of the present application, in order to more quickly determine the addresses corresponding to multiple communication devices in the module networking, multiple communication devices can be grouped. In this way, each communication device includes a first address code n and a second address code m. Among them, the first address code n can be an intra-group address code, indicating the address of the communication device in each group, and the second address code m is a group address code, indicating the group address corresponding to the group divided by the communication device. The second address codes of the communication devices in the same group are the same. In an embodiment of the present application, the product of the first address code n of each communication device and the first coefficient Ka is the first level width TL of the communication device in the time base circuit, and the product of the second address code m of each communication device and the second coefficient Kb is the difference between the second level width TH of the communication device in the time base circuit and the first level width TL, that is, the temporary variable TT. Therefore, the difference between the second level width TH and the first level width TL, that is, the temporary variable TT, can be first grouped together. Then, the communication device is encoded based on the second coefficient Kb to obtain multiple groups of second address code queues, each of which includes multiple communication devices with the same second address code m. Next, the communication devices in each group of second address code queues are encoded based on the first coefficient Ka to obtain multiple first address codes n. Finally, the first address code n and the second address code m are combined to obtain address codes (m, n) corresponding to multiple communication devices.
[0068] For example, let Ka=100ms, Kb=200ms, and assume that there are six communication devices. Each communication identifier is marked with the temporary variable TT as the horizontal coordinate and the first level width TL as the vertical coordinate. Assuming that the coordinates (m, n) composed of the first level width and the second level width of the six communication devices in the time base circuit are (100ms, 200ms), (200ms, 200ms), (300ms, 200ms), (100ms, 400ms), (200ms, 400ms), (300ms, 400ms), then the communication devices with the same TT can be grouped together. Therefore, (100ms, 200ms) and (100ms, 400ms) are the first group, and the second address code of the first group is 1. (200ms, 200ms) and (200ms, 400ms) are the second group, and the second address code of the second group is 2. (300ms, 200ms) and (300ms, 400ms) are the third group, and the second address code of the third group is 3. For the first group, the first address code of (100ms, 200ms) is 1, and the first address code of (100ms, 400ms) is 2. Therefore, the address code corresponding to (100ms, 200ms) is (1, 1), and the address code corresponding to (100ms, 400ms) is (1, 2). Similarly, the address code corresponding to (200ms, 200ms) is (2, 1), the address code corresponding to (200ms, 400ms) is (2, 2), the address code corresponding to (300ms, 200ms) is (3, 1), and the address code corresponding to (300ms, 400ms) is (3, 2). In this way, the communication device can be encoded based on the first level width and the second level width of each communication device in the timing circuit and the first coefficient and the second coefficient determined in advance, so as to facilitate more efficient address identification of the communication device.
[0069] In an embodiment of the present application, the time base circuit may include a first resistor RA and a second resistor RB, and each communication device corresponds to a first resistance value of the first resistor RA and a second resistance value of the second resistor RB. When designing the module network, the first resistor RA and the second resistor RB may be configured according to a reference resistor, so that the first resistor RA and the second resistor RB are proportional to the initial resistor R0, and the communication device is encoded on this basis, the first address code n corresponds to a fixed coefficient, that is, the third coefficient a, and the second address code m corresponds to a fixed coefficient, that is, the fourth coefficient b, and the third coefficient a and the fourth coefficient b are coefficients that characterize the proportional relationship between the values of the first resistor RA and the second resistor RB corresponding to the communication device in the time base circuit and the first address code and the second address code. Based on the third coefficient a, Ka corresponding to the first address code n can be obtained, and based on the fourth coefficient b, Kb corresponding to the second address code m can be obtained, thereby obtaining the proportional relationship between the first address code n and the second address code m and the first level width TL and the second level width TH. The first address code n is the ratio of the first level width TL to the first coefficient Ka, and the second address code is the ratio of the difference between the second level width TH and the first level width TL to the second coefficient Kb.
[0070] Therefore, in step 201, the set initial time T0 and initial capacitance C0 can be first obtained, and the initial resistance R0 can be obtained according to the initial time T0 and the initial capacitance C0. Then, the first resistance value of each communication device is configured as the product of the initial resistance R0, the third coefficient a and the first address code n of the communication device, and the second resistance value is configured as the product of the initial resistance R0, the fourth coefficient b and the second address code m of the communication device. That is, RA=n×a×R0, RB=m×b×R0. Based on this, the product of the third coefficient a and the initial time T0 is determined as the first coefficient Ka, and the product of the fourth coefficient b and the initial time T0 is determined as the second coefficient Kb. Thus, the first coefficient Ka and the second coefficient Kb are obtained. In this way, the first address code n can be associated with the first coefficient Ka, and the second address code m can be associated with the second coefficient Kb, so that when the address is identified, the first address information and the second address information of the communication device are directly determined based on the first level width and the second level width output by the time base circuit, so that the address of the communication device can be efficiently and accurately identified when the module is networked.
[0071] Figure 5 Schematic diagram of the structure of an address recognition device 500 provided in an embodiment of the present application. Figure 5, the address identification device 500 is used to identify the address of the communication device. The address identification device may include: an association module 501, an acquisition module 502 and a determination module 503. The association module 501 is used to determine a first coefficient associated with a first address code, and a second coefficient associated with a second address code. The acquisition module 502 is used to acquire a first level width and a second level width of an output port of a timing circuit when it is detected that the communication device is connected to a target network. The determination module 503 is used to determine a first address code and a second address code according to the first level width, the second level width, the first coefficient and the second coefficient, and obtain the address of the communication device according to the first address code and the second address code.
[0072] Among them, the association module 501, the acquisition module 502 and the determination module 503 can be used to execute steps 201-203 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.
[0073] Figure 6 This is a structural block diagram of a computer device provided in an embodiment of the present application. Figure 6 , an embodiment of the present application provides a computer device 100, including:
[0074] Memory 110, configured to store instructions; and
[0075] The processor 120 is configured to call instructions from the memory 110 and implement the above-mentioned address identification method when executing the instructions.
[0076] 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.
[0077] 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.
[0078] 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.
[0079] 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.
[0080] 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.
[0081] 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 in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0082] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0083] 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.
[0084] 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.
[0085] 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.
[0086] 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 for identifying an address of a communication device, wherein the address recognition device is connected to a time base circuit, wherein the time base circuit includes a first resistor and a second resistor, and the address recognition method includes: Get the set initial time and initial capacitance; Obtaining an initial resistance according to the initial time and the initial capacitance; Configuring a first resistance value of the first resistor as a product of the initial resistance, a third coefficient, and a first address code of the communication device, and configuring a second resistance value of the second resistor as a product of the initial resistance, a fourth coefficient, and a second address code of the communication device; determining a product of the third coefficient and the initial time as a first coefficient; determining a product of the fourth coefficient and the initial time as a second coefficient; When it is detected that the communication device is connected to the target network, a first level width and a second level width of an output port of the time base circuit are acquired; The first address code and the second address code are determined according to the first level width, the second level width, the first coefficient, and the second coefficient, and the address of the communication device is obtained according to the first address code and the second address code.
2. The address recognition method according to claim 1, characterized in that: The determining the first address code and the second address code according to the first level width, the second level width, the first coefficient and the second coefficient comprises: Determine the first address code according to the first level width and the first coefficient; The second address code is determined according to the first level width, the second level width, and the second coefficient.
3. The address recognition method according to claim 2, characterized in that: The determining the first address code according to the first level width and the first coefficient includes: Determine a ratio of the first level width to the first coefficient as a first address code; The determining the second address code according to the first level width, the second level width and the second coefficient includes: The ratio of the difference between the second level width and the first level width to the second coefficient is determined as the second address code.
4. The address recognition method according to claim 1, characterized in that: The address identification method further comprises: Grouping the communication devices having the same difference between the second level width and the first level width in the time base circuit into one group; Encode the second address based on the second coefficient to obtain multiple groups of second address encoding queues; Encoding the communication devices in each group of second address coding queues based on the first coefficients to obtain a plurality of first address codes; The first address code and the second address code are combined to obtain address codes corresponding to a plurality of the communication devices.
5. The address recognition method according to claim 4, characterized in that: The product of the first address code of each communication device and the first coefficient is the first level width of the communication device in the timing circuit, and the product of the second address code of each communication device and the second coefficient is the difference between the second level width and the first level width of the communication device in the timing circuit.
6. An address recognition device, characterized in that: Used to identify the address of a communication device, the address identification device is connected to a time base circuit, the time base circuit includes a first resistor and a second resistor, and the address identification device includes: An association module, configured to obtain a set initial time and an initial capacitance; obtain an initial resistance according to the initial time and the initial capacitance; configure a first resistance value of the first resistor to be a product of the initial resistance, a third coefficient, and a first address code of the communication device, and configure a second resistance value of the second resistor to be a product of the initial resistance, a fourth coefficient, and a second address code of the communication device; determine a product of the third coefficient and the initial time as a first coefficient; and determine a product of the fourth coefficient and the initial time as a second coefficient; An acquisition module, configured to acquire a first level width and a second level width of an output port of the time base circuit when it is detected that the communication device is connected to a target network; A determination module is used to determine the first address code and the second address code according to the first level width, the second level width, the first coefficient and the second coefficient, and obtain the address of the communication device according to the first address code and the second address code.
7. 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 5 when executing the instruction.
8. An address recognition system, characterized in that: include: A communication device, wherein an address of the communication device is composed of a first address code and a second address code; The computer device according to claim 7, comprising address identification means for identifying the address of the communication device; The time base circuit is connected to the communication device and the computer device respectively, and is used to generate a first level width and a second level width when the communication device accesses a target network.
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 5.
