Communication method and device, electronic equipment and storage medium
By converting the 20-digit identification number of the terminal device to 11 or 12-digit identification number in a hierarchical private network and providing a number mapping relationship, the interoperability problem between the hierarchical private network and the telephone number system is solved, and the number system integration and interoperability between the network is realized.
Patent Information
- Application Number
- CN202411929454.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-25
- Publication Date
- 2025-05-02
AI Technical Summary
The number system in a hierarchical private network is difficult to echo the phone number system, resulting in limited international communication interoperability and accessibility.
By obtaining the 20-digit identification number of the terminal device in the first network, the number is converted into the 11 or 12-digit identification number in the second network according to the hierarchical network level to which the terminal device belongs, and a number mapping relationship is provided to the gateway device to realize the integration of the number system between different networks.
The number system integration of the first network and the second network is realized, ensuring the uniqueness and reversibility of the number conversion, thereby realizing interoperability and accessibility between the two.
Smart Images

Figure CN119922167A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a communication method, a communication device, an electronic device and a computer-readable storage medium. Background Art
[0002] The telephone number system is a coding system used to identify and locate telephone users or terminal equipment. It consists of country codes, area codes, and user numbers. The specific format and rules vary depending on the telephone number standards of the country or region.
[0003] The telephone network has gone through several stages of development and currently includes the following main types of telephone networks, such as the Public Switched Telephone Network (PSTN), mobile phone networks, Voice over Internet Protocol (VoIP), Internet telephone services, etc.
[0004] As technology develops, multiple telephone networks have emerged. It is essential to achieve unified management and interoperability of numbers between different telephone networks. However, not all telephone networks use exactly the same telephone number system. Although many telephone networks use similar number systems, such as the International Telephone Numbering Plan (International Long Distance Telephone Numbering Plan), in some cases, different telephone networks may have their own unique number allocation plans.
[0005] The public switched telephone network, IP-based voice transmission network, mobile phone networks all use national telephone number systems, and Internet telephone services use private allocation plans. Although different telephone networks may have different number allocation plans, when it comes to international communications, they usually need to follow the international telephone number plan to ensure global communication interoperability and accessibility.
[0006] The visual networking protocol technology adopts a four-layer, eight-level hierarchical tree architecture mode for network devices, with a maximum support capacity of 2 128 The ordered number system is numbered separately and defines a clear hierarchical and domain exchange structure. Each exchange domain has its own level identifier, which is used to define the level attributes. Within the same exchange domain, there are independent number exchange and addressing capabilities. The identifier of each device consists of a 20-digit number, and the identifier of each layer consists of a 5-digit decimal number.
[0007] 20-digit number rules: prefix + local number. The first part of the prefix is fixed to 00999, which means "China". See Table 1.
[0008] Table 1:
[0009] Current floor number Prefix 20-digit number format Four layers ABCDE 00000-00000-00000 ABCDE-00000-00000-00000 Three-layer ABCDE 00999-00000-00000 00999-ABCDE-00000-00000 Second floor ABCDE 00999-00XXX-00000 00999-00XXX-ABCDE-00000 One layer ABCDE 00999-00XXX-00YYY 00999-00XXX-00YYY-ABCDE
[0010] Although it can support capacity 2 128 The ordered number system is used, but the 20-digit number is too long. In the tree-like hierarchical structure, only servers are deployed at the top of the fourth layer, and the number is fixed, which can be used as a prefix for improvement. In the third and second layers, only 3 digits are actually used. Although the number capacity is reduced, it can still meet the number of devices in practice and ensure the uniqueness of the device number. The actual valid number of the 20-digit number is 11 digits, as shown in Table 2 below.
[0011] Table 2:
[0012] Current floor number Prefix Valid number formats Four layers ABCDE 00000-00000-00000 No 11-digit number, no registration Three-layer ABCDE 00999-00000-00000 000-000-ABCDE Second floor ABCDE 00999-00XXX-00000 XXX-000-ABCDE One layer ABCDE 00999-00XXX-00YYY XXX-YYY-ABCDE
[0013] Through the above description of the telephone number system and the private video network number system, it can be seen that it is urgent to solve the problem of making the number system in the layered private network correspond to the telephone number system as much as possible. Summary of the invention
[0014] In view of the above problems, embodiments of the present invention are proposed to provide a communication method, a corresponding communication device, an electronic device and a computer-readable storage medium that overcome the above problems or at least partially solve the above problems.
[0015] In order to solve the above problem, an embodiment of the present invention discloses a communication method, which is applied to a management server in a hierarchically deployed first network, wherein the first network includes hierarchical networks connected layer by layer from the top layer to the bottom layer, and the method includes:
[0016] Obtaining a first identification number of the first digit of the terminal device in the first network; the first identification number is composed of the hierarchical identification numbers of each layer of the hierarchical network and the device identification number of the terminal device;
[0017] According to the hierarchical network to which the terminal device belongs, converting the first identification number into a second identification number of a second digit in a second network; wherein the first digit is higher than the second digit;
[0018] The mapping relationship between the first identification number and the second identification number is provided to a gateway device between the first network and the second network.
[0019] Optionally, the second identification number consists of a first number, a second number and a third number; and converting the first identification number into a second-digit second identification number in the second network according to the level of the hierarchical network to which the terminal device belongs comprises:
[0020] Determine a first number in the second identification number according to a hierarchical identification number corresponding to a top-level network in the first identification number, and determine a third number in the second identification number according to the device identification number;
[0021] According to the level of the hierarchical network to which the terminal device belongs, acquiring the target hierarchical identification number of the first identification number except the top hierarchical network and the hierarchical network to which the terminal device belongs;
[0022] According to the target hierarchical identification number, a second number in the second identification number is determined.
[0023] Optionally, the top-level hierarchical network has a level of four in a four-layer network, and when the level of the hierarchical network to which the terminal device belongs is three layers, the target hierarchical identification number includes target hierarchical identification numbers of a two-layer hierarchical network and a one-layer hierarchical network, and determining the second number in the second identification number according to the target hierarchical identification number includes:
[0024] According to the target hierarchical identification number, it is determined that the second numbers are all zero.
[0025] Optionally, the top-level hierarchical network is at layer 4 in a layer 4 network, and when the layer 2 of the hierarchical network to which the terminal device belongs is at layer 2, the target hierarchical identification number includes target hierarchical identification numbers of a layer 3 hierarchical network and a layer 1 hierarchical network, and determining the second number in the second identification number according to the target hierarchical identification number includes:
[0026] According to the target layer identification number, the target layer identification number of the three-layer hierarchical network is determined as the second number.
[0027] Optionally, the top-level hierarchical network has a level of four in a four-layer network, and when the level of the hierarchical network to which the terminal device belongs is one layer, the target hierarchical identification number includes target hierarchical identification numbers of a three-layer hierarchical network and a two-layer hierarchical network, and determining the second number in the second identification number according to the target hierarchical identification number includes:
[0028] Calculating the quotient of the target layer identification number of the three-layer hierarchical network and the first preset number of groups to obtain a first integer quotient and a first remainder, and calculating the quotient of the target layer identification number of the two-layer hierarchical network and the first preset number of groups to obtain a second integer quotient and a second remainder;
[0029] Using the first integer quotient and the second integer quotient to replace a first preset position number in the first number;
[0030] Calculate the quotient of the first remainder and the second preset grouping number to obtain a third integer quotient and a third remainder, and calculate the quotient of the second remainder and the second preset grouping number to obtain a fourth integer quotient and a fourth remainder;
[0031] The third integer quotient and the fourth integer quotient are determined as the second preset position number in the second number, and the third remainder and the fourth remainder are determined as the third preset position number in the second number.
[0032] Optionally, the first digit is 20 digits, the hierarchical identification number is 5 digits, the device identification number is 5 digits, and the first two digits of the hierarchical identification numbers of the two-layer hierarchical network and the three-layer hierarchical network are zero; when the level of the hierarchical network to which the terminal device belongs is three layers or two layers, the second digit is 11 digits; when the level of the hierarchical network to which the terminal device belongs is one layer, the second digit is 12 digits.
[0033] The embodiment of the present invention further discloses a communication device, which is applied to a management server, wherein the first network includes a hierarchical network connected layer by layer from the top layer to the bottom layer, and the device includes:
[0034] A number acquisition module, used to acquire a first identification number of a first digit of a terminal device in the first network; the first identification number is composed of hierarchical identification numbers of each layer of hierarchical network and a device identification number of the terminal device;
[0035] A number conversion module, configured to convert the first identification number into a second identification number of a second digit in a second network according to the level of the hierarchical network to which the terminal device belongs; wherein the first digit is higher than the second digit;
[0036] The relationship providing module is used to provide the mapping relationship between the first identification number and the second identification number to the gateway device between the first network and the second network.
[0037] Optionally, the second identification number consists of a first number, a second number and a third number; and the number conversion module includes:
[0038] a first number determination submodule, configured to determine a first number in the second identification number according to a hierarchical identification number corresponding to a top-level network in the first identification number, and to determine a third number in the second identification number according to the device identification number;
[0039] A number acquisition submodule, configured to acquire, according to the level of the hierarchical network to which the terminal device belongs, a target hierarchical identification number in the first identification number except for the top hierarchical network and the hierarchical network to which the terminal device belongs;
[0040] The second number determination submodule is used to determine the second number in the second identification number according to the target hierarchical identification number.
[0041] Optionally, the top-level hierarchical network has a level of four in a four-layer network, and when the level of the hierarchical network to which the terminal device belongs is three layers, the target hierarchical identification number includes target hierarchical identification numbers of a two-layer hierarchical network and a one-layer hierarchical network, and the second number determination submodule includes:
[0042] The first number determination unit is used to determine that the second numbers are all zero according to the target hierarchical identification number.
[0043] Optionally, the top-level hierarchical network is at layer 4 in a four-layer network, and when the hierarchical network to which the terminal device belongs is at layer 2, the target hierarchical identification number includes target hierarchical identification numbers of a three-layer hierarchical network and a one-layer hierarchical network, and the second number determination submodule includes:
[0044] The second number determination unit is used to determine the target layer identification number of the three-layer hierarchical network as the second number according to the target layer identification number.
[0045] Optionally, the top-level hierarchical network has a fourth layer in a four-layer network, and when the hierarchical network to which the terminal device belongs has a first layer, the target hierarchical identification number includes target hierarchical identification numbers of a three-layer hierarchical network and a two-layer hierarchical network, and the second number determination submodule includes:
[0046] a first calculation unit, configured to calculate a quotient of a target layer identification number of the three-layer hierarchical network and a first preset number of groups to obtain a first integer quotient and a first remainder, and to calculate a quotient of a target layer identification number of the two-layer hierarchical network and the first preset number of groups to obtain a second integer quotient and a second remainder;
[0047] a number replacing unit, configured to replace a first preset position number in the first number with the first integer quotient and the second integer quotient;
[0048] a second calculating unit, configured to calculate a quotient of the first remainder and a second preset grouping number to obtain a third integer quotient and a third remainder, and to calculate a quotient of the second remainder and a second preset grouping number to obtain a fourth integer quotient and a fourth remainder;
[0049] The number determination unit is used to determine the third integer quotient and the fourth integer quotient as the second preset position number in the second number, and determine the third remainder and the fourth remainder as the third preset position number in the second number.
[0050] Optionally, the first digit is 20 digits, the hierarchical identification number is 5 digits, the device identification number is 5 digits, and the first two digits of the hierarchical identification numbers of the two-layer hierarchical network and the three-layer hierarchical network are zero; when the level of the hierarchical network to which the terminal device belongs is three layers or two layers, the second digit is 11 digits; when the level of the hierarchical network to which the terminal device belongs is one layer, the second digit is 12 digits.
[0051] The embodiment of the present invention further discloses an electronic device, including:
[0052] one or more processors; and
[0053] One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, cause the apparatus to perform any of the methods described above.
[0054] The embodiment of the present invention further discloses a computer-readable storage medium, wherein a computer program stored in the storage medium enables a processor to execute any of the methods described above.
[0055] According to an embodiment of the present invention, a first identification number of a first digit of a terminal device in the first network is obtained; the first identification number is composed of hierarchical identification numbers of each layer of hierarchical network and the device identification number of the terminal device, and the first identification number is converted into a second identification number of a second digit in the second network according to the layer of the hierarchical network to which the terminal device belongs; wherein the first digit is higher than the second digit, and a mapping relationship between the first identification number and the second identification number is provided to a gateway device between the first network and the second network, so that based on the characteristics of the number system of the hierarchical network and the conversion of hierarchical management numbers, the integration of the number systems of the first network and the second network, as well as the uniqueness and reversibility of the number conversion are realized, thereby realizing the interoperability between the first network and the second network. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 is a flow chart of steps of an embodiment of a communication method of the present invention;
[0057] Figure 2 is a flow chart of steps of an embodiment of a communication method of the present invention;
[0058] Figure 3 is a structural block diagram of an embodiment of a communication device of the present invention;
[0059] Figure 4 The invention is a structural block diagram of an electronic device for communication according to an exemplary embodiment. DETAILED DESCRIPTION
[0060] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0061] Reference Figure 1 , showing a flow chart of steps of an embodiment of a communication method of the present invention, applied to a management server in a hierarchically deployed first network, wherein the first network includes hierarchical networks connected layer by layer from the top layer to the bottom layer, and the method may specifically include the following steps:
[0062] Step 101, obtaining a first identification number of a first digit of a terminal device in the first network; the first identification number is composed of hierarchical identification numbers of each layer of the hierarchical network and a device identification number of the terminal device.
[0063] In an embodiment of the present invention, the first network is a hierarchically deployed network, and the first network includes hierarchical networks connected layer by layer from the top layer to the bottom layer. The management server refers to a server used to manage the hierarchical network of the layer. Each hierarchical network of each layer has a corresponding management server.
[0064] For example, an autonomous domain is the basic structural unit of a network, which is equivalent to a hierarchical network of one level. Each autonomous domain can include nodes such as an autonomous server (also known as an autonomous integrated management system), a sub-control server (such as a sub-control 2K server), a border routing server and a terminal. Among them, the sub-control server is a network management device. Before the data packets of each service are transmitted, they need to communicate between the autonomous servers of each autonomous domain, and a data transmission link is configured according to each node in the autonomous domain. The data packets of each service are transmitted from the data sending node to the data receiving node through the data forwarding node according to the data transmission link. For example, the visual network autonomous domain is the basic substructure in the visual network network structure, and it is also the smallest structural unit that enables the visual network to operate normally. An autonomous domain can independently realize all the functions of the visual network within the autonomous domain if it is configured correctly. In this way, when the autonomous domain cannot connect to the upper and lower autonomous domains due to communication failure, the visual network service can still be realized within the autonomous domain. When the autonomous domain can communicate normally with the upper and lower autonomous domains, these autonomous domains form a larger visual network, which can realize cross-autonomous domain visual network services.
[0065] Among them, the autonomous server is the centralized control node of the autonomous domain. Its main functions include autonomous control of the registration and deregistration of devices in the autonomous domain, network entry and exit, cascading and access management across autonomous domains, etc., to realize the processing of management network control signaling and maintenance of business network transmission channels. The sub-control server is the data forwarding node of the autonomous domain, with an uplink interface and a downlink interface. The border routing server is a border device and a data forwarding node of the autonomous domain. It can be connected to two autonomous domains at the same time and can realize data forwarding across autonomous domains. As shown in the figure, the autonomous domain and the upper autonomous domain are connected through the border routing server, and the autonomous domain and the lower autonomous domain are also connected through the border routing server.
[0066] In an embodiment of the present invention, the management server can manage the first identification number of the terminal device in the hierarchical network of the current level. The first identification number refers to the identification number of the terminal device in the first network, and the number of digits of the first identification number is the first digit. For example, the number of digits of the first identification number of the terminal device in the private visual network hierarchical number system is 20 digits.
[0067] In an embodiment of the present invention, the first network is a hierarchically deployed network, and the first identification number is also hierarchical. The first identification number is composed of the hierarchical identification numbers of the hierarchical networks at each level and the device identification number of the terminal device. Among them, the hierarchical identification number refers to the number identifying the hierarchical network, and the device identification number refers to the number identifying the terminal device.
[0068] For example, the visual networking protocol technology adopts a four-layer, eight-level hierarchical tree architecture model for devices within the network. The top-level hierarchical network has four layers, and only servers are deployed at this layer. The 20-digit number format of a server is: ABCDE-00000-00000-00000, where ABCDE is the device identification number of the server. The 20-digit number format of the terminal device in the three-layer hierarchical network is: 00999-ABCDE-00000-00000, where 00999 is the hierarchical identification number of the four-layer hierarchical network, and ABCDE is the device identification number. The 20-digit number format of the terminal device in the two-layer hierarchical network is: 00999-00XXX-ABCDE-00000, where 00999 is the hierarchical identification number of the four-layer hierarchical network, 00XXX is the hierarchical identification number of the three-layer hierarchical network, and ABCDE is the device identification number. The 20-digit number format of a terminal device in a one-layer hierarchical network is: 00999-00XXX-00YYY-ABCDE, where 00999 is the hierarchical identification number of a four-layer hierarchical network, 00XXX is the hierarchical identification number of a three-layer hierarchical network, 00YYY is the hierarchical identification number of a three-layer hierarchical network, and ABCDE is the device identification number.
[0069] In the embodiment of the present invention, the management server of the hierarchical network to which the terminal device belongs may obtain the first identification number of the terminal device in the hierarchical network.
[0070] Step 102: Convert the first identification number into a second identification number of a second digit in a second network according to the hierarchical network to which the terminal device belongs; wherein the first digit is higher than the second digit.
[0071] In the embodiment of the present invention, the second network is a network outside the first network, for example, a public switched telephone network, an IP-based voice transmission network, a mobile phone network, etc. In order to make the number system in the first network correspond to the number system in the second network as much as possible, it is necessary to convert the first identification number into the second identification number.
[0072] In the embodiment of the present invention, the second identification number refers to the identification number of the terminal device in the second network, and the number of digits of the second identification number is the second digit. The first digit is higher than the second digit, so it is difficult to convert the first identification number into the second identification number. For example, the number system of the second network is a telephone number system, and the second digit is 11 digits.
[0073] In the embodiment of the present invention, a rule strategy is designed to integrate the number system of the second network according to the characteristics of the number system of the first network, so that the first network and the second network can be interoperable. The layering concept is integrated into the number system in the rule strategy, and the uniqueness and reversibility of the number conversion are achieved at the same time.
[0074] In an embodiment of the present invention, the management server can determine the corresponding number conversion rule strategy according to the level of the hierarchical network to which the terminal device belongs, and convert the first identification number into the second identification number according to the corresponding number conversion rule strategy. The number of terminal devices in different levels is different, so different number conversion rule strategies can be adopted.
[0075] In the embodiment of the present invention, the specific rule strategy may include multiple ones, which is not limited in the embodiment of the present invention.
[0076] For example, the first number in the second identification number is determined based on the hierarchical identification number corresponding to the top-level hierarchical network in the first identification number, and the third number in the second identification number is determined based on the device identification number; according to the level of the hierarchical network to which the terminal device belongs, the target hierarchical identification number in the first identification number excluding the top-level hierarchical network and the hierarchical network to which the terminal device belongs is obtained; and the second number in the second identification number is determined based on the target hierarchical identification number.
[0077] For another example, since there is only one top-level hierarchical network, the first number in the second identification number is determined according to the agreement; the device identification number is used as the third number in the second identification number; according to the level of the hierarchical network to which the terminal device belongs, the target hierarchical identification number in the first identification number excluding the top-level hierarchical network and the hierarchical network to which the terminal device belongs is obtained; and according to the target hierarchical identification number, the second number in the second identification number is determined.
[0078] Step 103: Provide a mapping relationship between the first identification number and the second identification number to a gateway device between the first network and the second network.
[0079] In an embodiment of the present invention, a gateway device refers to a gateway device between a first network and a second network. A terminal device in the second network can communicate with a terminal device in the first network using a second identification number. It is necessary to first send a communication request to the gateway device according to the second identification number. A mapping relationship between the first identification number and the second identification number is stored on the gateway device. Therefore, the second identification number can be converted into the first identification number, thereby sending the communication request to the terminal device in the first network.
[0080] In the embodiment of the present invention, after converting the first identification number into the second identification number, the management server establishes a mapping relationship between the first identification number and the second identification number, and sends the mapping relationship to a gateway device between the first network and the second network.
[0081] According to an embodiment of the present invention, a first identification number of a first digit of a terminal device in the first network is obtained; the first identification number is composed of hierarchical identification numbers of each layer of hierarchical network and the device identification number of the terminal device, and the first identification number is converted into a second identification number of a second digit in the second network according to the layer of the hierarchical network to which the terminal device belongs; wherein the first digit is higher than the second digit, and a mapping relationship between the first identification number and the second identification number is provided to a gateway device between the first network and the second network, so that based on the characteristics of the number system of the hierarchical network and the conversion of hierarchical management numbers, the integration of the number systems of the first network and the second network, as well as the uniqueness and reversibility of the number conversion are realized, thereby realizing the interoperability between the first network and the second network.
[0082] In an optional embodiment of the present invention, the first digit is 20 digits, the layer identification number is 5 digits, and the device identification number is 5 digits.
[0083] Since the actual number of two-layer and three-layer networks below the four-layer network is not too large, the five-digit hierarchical identification number is redundant, and the first two digits of the hierarchical identification numbers of the two-layer and three-layer networks are zero, that is, the two-layer and three-layer networks actually only need three digits to be identified.
[0084] When the hierarchical network to which the terminal device belongs is at layer 3 or layer 2, when converting the first identification number into the second identification number, 11 digits of the second digit can meet the requirement.
[0085] When the hierarchical network to which the terminal device belongs is the first layer, since the hierarchical identification number of the three-layer hierarchical network of the terminal device actually has 3 digits, the hierarchical identification number of the two-layer hierarchical network actually has 3 digits, and the device identification number has 5 digits, according to the existing number system in the first network, at least 1 digit needs to be added to identify the first network, that is, the four-layer hierarchical network. Therefore, the second digit must be 12 digits to meet the needs. The second identification number in the second network is generally 11 digits, 12 digits is close to 11 digits, and the number system in the first network should be as consistent as possible with the number system in the second network.
[0086] Reference Figure 2 , showing a flow chart of steps of an embodiment of a communication method of the present invention, applied to a management server in a hierarchically deployed first network, wherein the first network includes hierarchical networks connected layer by layer from the top layer to the bottom layer, and the method may specifically include the following steps:
[0087] Step 201, obtaining a first identification number of a first digit of a terminal device in the first network; the first identification number is composed of hierarchical identification numbers of each layer of the hierarchical network and a device identification number of the terminal device.
[0088] In the embodiment of the present invention, the specific implementation method of this step can refer to the description in the above embodiment and will not be repeated here.
[0089] Step 202: determine the first number in the second identification number according to the hierarchical identification number corresponding to the top-level network in the first identification number, and determine the third number in the second identification number according to the device identification number.
[0090] In the embodiment of the present invention, the second identification number consists of a first number, a second number and a third number.
[0091] In the embodiment of the present invention, in order to keep the number length consistent or substantially consistent with that in the number system of the second network, according to the hierarchical deployment characteristics of the first network, the top layer only needs to have one hierarchical identification number N1 N2N3, for example, 399. The valid digits in the hierarchical identification number corresponding to the top-level network in the first identification number are determined as the first number in the second identification number.
[0092] For example, the hierarchical identification number of the top-level hierarchical network in the visual network is used as a special number segment in the telephone number system. Using the special number segment, a special number segment can be applied for as the identifier of the private hierarchical system to avoid conflicts with the existing telephone number system. This special number segment can be identified as the identifier of the private hierarchical system in the existing system, and is also the top-level number of the hierarchical system, and corresponding call routing is performed.
[0093] In the embodiment of the present invention, the device identification number is used as the third number in the second identification number.
[0094] For example, in the telephone number system of the private video network, the device identification number is mainly 5 digits independently, represented by ABCDE, and placed at the end, so the current number format becomes N1 N2N3-T1 T2T3-ABCDE, where T1 T2T3 is the second number.
[0095] Step 203: According to the level of the hierarchical network to which the terminal device belongs, obtain the target hierarchical identification number in the first identification number except the top hierarchical network and the hierarchical network to which the terminal device belongs.
[0096] In the embodiment of the present invention, according to the level of the hierarchical network to which the terminal device belongs, the hierarchical identification numbers other than the top hierarchical network and the hierarchical network to which the terminal device belongs in the first identification number are obtained and recorded as target hierarchical identification numbers.
[0097] For example, T1 T2 T3 may be transformed from the combination rule of the hierarchical identification numbers of any two layers of the third, second, and first layers, such as X1 X2X3-Y1 Y2Y3 becomes T1 T2T3. The hierarchical private number system thus realized occupies a total of 11 digits. Specifically, the 3-digit number T1 T2T3 is transformed from the 6-digit number X1 X2X3-Y1 Y2Y3, which meets the uniqueness and reversibility.
[0098] Step 204: Determine a second number in the second identification number according to the target hierarchical identification number.
[0099] In the embodiment of the present invention, the second number in the second identification number is determined according to the target layer identification number. Specifically, any applicable implementation method may be included, and the embodiment of the present invention does not limit this.
[0100] In an optional embodiment of the present invention, the top-level hierarchical network is at layer four in a four-layer network. When the hierarchical network to which the terminal device belongs is at layer three, the target hierarchical identification number includes target hierarchical identification numbers of a two-layer hierarchical network and a one-layer hierarchical network. A specific implementation method of determining the second number in the second identification number based on the target hierarchical identification number may include: determining that the second numbers are all zero based on the target hierarchical identification number.
[0101] The first network is divided into four layers in total, and the top-level network has four layers. When the level of the hierarchical network to which the terminal device belongs is three layers, the target hierarchical identification number includes the target hierarchical identification numbers of the second-layer hierarchical network and the first-layer hierarchical network. At this time, since the level of the hierarchical network to which the terminal device belongs is three layers, the target hierarchical identification numbers of the second-layer hierarchical network and the first-layer hierarchical network are both zero. According to the target hierarchical identification numbers being all zero, it is determined that the second numbers are all zero.
[0102] For example, when the terminal device is at the third layer, the device identification number of the terminal device in the private system is ABCDE, and the 11-digit number is represented as: 000-000-ABCDE, where 000-000 represents the hierarchical identification number of the second layer and the first layer. In the corresponding number system, the 11-digit second identification number is: 399-000-ABCDE, where 000 is converted from 000-000.
[0103] In an optional embodiment of the present invention, the level of the top-level hierarchical network in a four-layer network is layer four. When the level of the hierarchical network to which the terminal device belongs is layer two, the target hierarchical identification number includes target hierarchical identification numbers of a three-layer hierarchical network and a one-layer hierarchical network. A specific implementation method of determining the second number in the second identification number based on the target hierarchical identification number may include: determining the target hierarchical identification number of the three-layer hierarchical network as the second number based on the target hierarchical identification number.
[0104] The first network is divided into four layers in total, and the layer of the top layer network is layer 4. When the layer of the layer network to which the terminal device belongs is layer 2, the target layer identification number includes the target layer identification number of the layer 3 layer network and the layer 1 layer network. At this time, since the layer of the layer network to which the terminal device belongs is layer 2, the target layer identification number of the layer 1 layer network is zero.
[0105] According to the target layer identification numbers of the three-layer hierarchical network and the one-layer hierarchical network, the target layer identification number of the three-layer hierarchical network is determined as the second number.
[0106] For example, when the terminal device is at the second layer, the device identification number of the terminal device in the private system is ABCDE, and the 11-digit number is represented as: X1 X2X3-000-ABCDE, where X1 X2X3-000 represents the hierarchical identification number of the third layer and the first layer. In the corresponding number system, the 11-digit second identification number is: 399-T1 T2T3-ABCDE, where T1 T2T3 is transformed from X1X2X3-000.
[0107] In an optional embodiment of the present invention, the level of the top-level hierarchical network in the four-layer network is four layers. When the level of the hierarchical network to which the terminal device belongs is one layer, the target hierarchical identification number includes the target hierarchical identification numbers of the three-layer hierarchical network and the two-layer hierarchical network. A specific implementation method of determining the second number in the second identification number according to the target hierarchical identification number may include: calculating the quotient of the target hierarchical identification number of the three-layer hierarchical network and the first preset grouping number to obtain a first integer quotient and a first remainder, and calculating the quotient of the target hierarchical identification number of the two-layer hierarchical network and the first preset grouping number to obtain a second integer quotient and a second remainder; using the first integer quotient and the second integer quotient to replace the first preset position number in the first number; calculating the quotient of the first remainder and the second preset grouping number to obtain a third integer quotient and a third remainder, and calculating the quotient of the second remainder and the second preset grouping number to obtain a fourth integer quotient and a fourth remainder; determining the third integer quotient and the fourth integer quotient as the second preset position number in the second number, and determining the third remainder and the fourth remainder as the third preset position number in the second number.
[0108] The first network is divided into four layers in total, and the layer of the top layer network is layer 4. When the layer of the layer network to which the terminal device belongs is layer 1, the target layer identification number includes the target layer identification numbers of the layer 3 layer network and the layer 2 layer network. At this time, since the layer of the layer network to which the terminal device belongs is layer 1, the second identification number needs to include information on the target layer identification numbers of the layer 3 layer network and the layer 2 layer network.
[0109] The quotient of the target layer identification number of the three-layer hierarchical network and the first preset grouping number is calculated to obtain a first integer quotient and a first remainder, and the quotient of the target layer identification number of the two-layer hierarchical network and the first preset grouping number is calculated to obtain a second integer quotient and a second remainder.
[0110] The first preset number of groups is determined according to actual needs. For example, the first preset number of groups is 100. It can be any applicable value, and the embodiment of the present invention does not limit this.
[0111] The first integer quotient and the second integer quotient are used to replace the first preset position number in the first number. The first preset position number refers to the number of two preset positions in the first number, for example, the second position and the third position.
[0112] For example, a collective mapping coding scheme is adopted. Two 3-digit numbers are transformed through the strategy of "split representation". The value range of the 3-digit decimal number X1 X2X3 / Y1 Y2Y3 is 0-999. According to the first preset grouping number 100, the following groups can be formed: (0-99) (100-199) (200-299) (300-399) (400-499) (500-599) (600-699) (700-799) (800-899) (900-999). X1 X2X is divided by 100, and Y1 Y2Y3 is divided by 100. The values are placed in the second and third digits of the special number segment, that is, N2N3 digits, with a value range of 0-9. Starting from the special number segment N1 N2N3, the original unique 399 (in the actual deployment of the visual network, if there are only the fourth layer, the third layer, and the second layer, only the special number segment 399 can be used) is changed to the range of 300-399.
[0113] The quotient of the first remainder and the second preset grouping number is calculated to obtain a third integer quotient and a third remainder, and the quotient of the second remainder and the second preset grouping number is calculated to obtain a fourth integer quotient and a fourth remainder.
[0114] The second preset number of groups is determined according to actual needs. For example, the second preset number of groups is 10. It can be any applicable value, and the embodiment of the present invention does not limit this.
[0115] The third integer quotient and the fourth integer quotient are determined as the second preset position number in the second number, and the third remainder and the fourth remainder are determined as the third preset position number in the second number. The second preset position number refers to the number of two preset positions in the second number, for example, the first position and the second position, and the third preset position number refers to the number of the other two preset positions in the second number, for example, the third position and the fourth position.
[0116] For example, after X1 X2X3 / Y1 Y2Y3 is divided, the remainder value range becomes 0-99, that is, X2X3 / X2X3. The strategy of segmentation representation is carried out again. According to the second preset grouping number 10, the following groups can be made (0-9) (10-19) (20-29) (30-39) (40-49) (50-59) (60-69) (70-79) (80-89) (90-99). X2X3 is divided by 10, and Y2Y3 is divided by 10. The values are placed in the first and second digits of T1T2T3, that is, T1 T2, and the value range is 0-9. After X2X3 / X2X3 is divided, the remainder value range becomes 0-9, that is, X3 / Y3. The third digit T3 of T1 T2T3 can only represent 0-9. It is a paradox that T3 can represent X3 and Y3 at the same time, and it cannot be realized to achieve reversibility. Therefore, it is necessary to add one digit and determine X3 and Y3 as the third and fourth digits in the second number, so that the second identification number is 12 digits.
[0117] Step 205: Provide a mapping relationship between the first identification number and the second identification number to a gateway device between the first network and the second network.
[0118] In the embodiment of the present invention, the specific implementation method of this step can refer to the description in the above embodiment and will not be repeated here.
[0119] According to an embodiment of the present invention, a first identification number of the first digit of a terminal device in the first network is obtained; the first identification number is composed of hierarchical identification numbers of each layer of hierarchical network and the device identification number of the terminal device; the first number in the second identification number is determined according to the hierarchical identification number corresponding to the top-level hierarchical network in the first identification number, and the third number in the second identification number is determined according to the device identification number; according to the level of the hierarchical network to which the terminal device belongs, the target hierarchical identification number other than the top-level hierarchical network and the hierarchical network to which the terminal device belongs in the first identification number is obtained; according to the target hierarchical identification number, the second number in the second identification number is determined, and the mapping relationship between the first identification number and the second identification number is provided to a gateway device between the first network and the second network, so that based on the characteristics of the number system of the hierarchical network and the conversion of the hierarchical management numbers, the number systems of the first network and the second network are integrated, and the uniqueness and reversibility of the number conversion are realized, thereby realizing the intercommunication and reachability of the first network and the second network.
[0120] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0121] Reference Figure 3 The structure block diagram of a communication device embodiment of the present invention is shown, which is applied to a management server in a hierarchically deployed first network, wherein the first network includes a hierarchical network connected layer by layer from the top layer to the bottom layer, and specifically may include the following modules:
[0122] The number acquisition module 301 is used to acquire a first identification number of a first digit of a terminal device in the first network; the first identification number is composed of hierarchical identification numbers of each layer of the hierarchical network and a device identification number of the terminal device;
[0123] A number conversion module 302, configured to convert the first identification number into a second identification number of a second digit in a second network according to the hierarchical network to which the terminal device belongs; wherein the first digit is higher than the second digit;
[0124] The relationship providing module 303 is used to provide the mapping relationship between the first identification number and the second identification number to a gateway device between the first network and the second network.
[0125] Optionally, the second identification number consists of a first number, a second number and a third number; and the number conversion module includes:
[0126] a first number determination submodule, configured to determine a first number in the second identification number according to a hierarchical identification number corresponding to a top-level network in the first identification number, and to determine a third number in the second identification number according to the device identification number;
[0127] A number acquisition submodule, configured to acquire, according to the level of the hierarchical network to which the terminal device belongs, a target hierarchical identification number in the first identification number except for the top hierarchical network and the hierarchical network to which the terminal device belongs;
[0128] The second number determination submodule is used to determine the second number in the second identification number according to the target hierarchical identification number.
[0129] Optionally, the top-level hierarchical network has a level of four in a four-layer network, and when the level of the hierarchical network to which the terminal device belongs is three layers, the target hierarchical identification number includes target hierarchical identification numbers of a two-layer hierarchical network and a one-layer hierarchical network, and the second number determination submodule includes:
[0130] The first number determination unit is used to determine that the second numbers are all zero according to the target hierarchical identification number.
[0131] Optionally, the top-level hierarchical network is at layer 4 in a four-layer network, and when the hierarchical network to which the terminal device belongs is at layer 2, the target hierarchical identification number includes target hierarchical identification numbers of a three-layer hierarchical network and a one-layer hierarchical network, and the second number determination submodule includes:
[0132] The second number determination unit is used to determine the target layer identification number of the three-layer hierarchical network as the second number according to the target layer identification number.
[0133] Optionally, the top-level hierarchical network has a fourth layer in a four-layer network, and when the hierarchical network to which the terminal device belongs has a first layer, the target hierarchical identification number includes target hierarchical identification numbers of a three-layer hierarchical network and a two-layer hierarchical network, and the second number determination submodule includes:
[0134] a first calculation unit, configured to calculate a quotient of a target layer identification number of the three-layer hierarchical network and a first preset number of groups to obtain a first integer quotient and a first remainder, and to calculate a quotient of a target layer identification number of the two-layer hierarchical network and the first preset number of groups to obtain a second integer quotient and a second remainder;
[0135] a number replacing unit, configured to replace a first preset position number in the first number with the first integer quotient and the second integer quotient;
[0136] a second calculating unit, configured to calculate a quotient of the first remainder and a second preset grouping number to obtain a third integer quotient and a third remainder, and to calculate a quotient of the second remainder and a second preset grouping number to obtain a fourth integer quotient and a fourth remainder;
[0137] The number determination unit is used to determine the third integer quotient and the fourth integer quotient as the second preset position number in the second number, and determine the third remainder and the fourth remainder as the third preset position number in the second number.
[0138] Optionally, the first digit is 20 digits, the hierarchical identification number is 5 digits, the device identification number is 5 digits, and the first two digits of the hierarchical identification numbers of the two-layer hierarchical network and the three-layer hierarchical network are zero; when the level of the hierarchical network to which the terminal device belongs is three layers or two layers, the second digit is 11 digits; when the level of the hierarchical network to which the terminal device belongs is one layer, the second digit is 12 digits.
[0139] According to an embodiment of the present invention, a first identification number of a first digit of a terminal device in the first network is obtained; the first identification number is composed of hierarchical identification numbers of each layer of hierarchical network and the device identification number of the terminal device, and the first identification number is converted into a second identification number of a second digit in the second network according to the layer of the hierarchical network to which the terminal device belongs; wherein the first digit is higher than the second digit, and a mapping relationship between the first identification number and the second identification number is provided to a gateway device between the first network and the second network, so that based on the characteristics of the number system of the hierarchical network and the conversion of hierarchical management numbers, the integration of the number systems of the first network and the second network, as well as the uniqueness and reversibility of the number conversion are realized, thereby realizing the interoperability between the first network and the second network.
[0140] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0141] Figure 4 1 is a block diagram of an electronic device 600 for communication according to an exemplary embodiment. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0142] Reference Figure 4 , the electronic device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .
[0143] The processing component 602 generally controls the overall operation of the electronic device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-mentioned communication. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.
[0144] The memory 604 is configured to store various types of data to support operations on the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0145] The power supply component 606 provides power to the various components of the electronic device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 600.
[0146] The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the electronic device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0147] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the electronic device 600 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.
[0148] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0149] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the electronic device 600. For example, the sensor assembly 614 can detect the open / closed state of the electronic device 600, the relative positioning of the components, such as the display and keypad of the electronic device 600, and the sensor assembly 614 can also detect the position change of the electronic device 600 or a component of the electronic device 600, the presence or absence of contact between the user and the electronic device 600, the orientation or acceleration / deceleration of the electronic device 600, and the temperature change of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0150] The communication component 616 is configured to facilitate wired or wireless communication between the electronic device 600 and other devices. The electronic device 600 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0151] In an exemplary embodiment, the electronic device 600 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above-mentioned shutdown control method.
[0152] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by a processor 620 of an electronic device 600 to complete the above-mentioned shutdown control method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0153] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enables a server to execute a communication method, applied to a management server in a hierarchically deployed first network, the first network comprising a hierarchical network connected layer by layer from a top layer to a bottom layer, the method comprising:
[0154] Obtaining a first identification number of the first digit of the terminal device in the first network; the first identification number is composed of the hierarchical identification numbers of each layer of the hierarchical network and the device identification number of the terminal device;
[0155] According to the hierarchical network to which the terminal device belongs, converting the first identification number into a second identification number of a second digit in a second network; wherein the first digit is higher than the second digit;
[0156] The mapping relationship between the first identification number and the second identification number is provided to a gateway device between the first network and the second network.
[0157] Optionally, the second identification number consists of a first number, a second number and a third number; and converting the first identification number into a second-digit second identification number in the second network according to the level of the hierarchical network to which the terminal device belongs comprises:
[0158] Determine a first number in the second identification number according to a hierarchical identification number corresponding to a top-level network in the first identification number, and determine a third number in the second identification number according to the device identification number;
[0159] According to the level of the hierarchical network to which the terminal device belongs, acquiring the target hierarchical identification number of the first identification number except the top hierarchical network and the hierarchical network to which the terminal device belongs;
[0160] According to the target hierarchical identification number, a second number in the second identification number is determined.
[0161] Optionally, the top-level hierarchical network has a level of four in a four-layer network, and when the level of the hierarchical network to which the terminal device belongs is three layers, the target hierarchical identification number includes target hierarchical identification numbers of a two-layer hierarchical network and a one-layer hierarchical network, and determining the second number in the second identification number according to the target hierarchical identification number includes:
[0162] According to the target hierarchical identification number, it is determined that the second numbers are all zero.
[0163] Optionally, the top-level hierarchical network is at layer 4 in a layer 4 network, and when the layer 2 of the hierarchical network to which the terminal device belongs is at layer 2, the target hierarchical identification number includes target hierarchical identification numbers of a layer 3 hierarchical network and a layer 1 hierarchical network, and determining the second number in the second identification number according to the target hierarchical identification number includes:
[0164] According to the target layer identification number, the target layer identification number of the three-layer hierarchical network is determined as the second number.
[0165] Optionally, the top-level hierarchical network has a level of four in a four-layer network, and when the level of the hierarchical network to which the terminal device belongs is one layer, the target hierarchical identification number includes target hierarchical identification numbers of a three-layer hierarchical network and a two-layer hierarchical network, and determining the second number in the second identification number according to the target hierarchical identification number includes:
[0166] Calculating the quotient of the target layer identification number of the three-layer hierarchical network and the first preset number of groups to obtain a first integer quotient and a first remainder, and calculating the quotient of the target layer identification number of the two-layer hierarchical network and the first preset number of groups to obtain a second integer quotient and a second remainder;
[0167] Using the first integer quotient and the second integer quotient to replace a first preset position number in the first number;
[0168] Calculate the quotient of the first remainder and the second preset grouping number to obtain a third integer quotient and a third remainder, and calculate the quotient of the second remainder and the second preset grouping number to obtain a fourth integer quotient and a fourth remainder;
[0169] The third integer quotient and the fourth integer quotient are determined as the second preset position number in the second number, and the third remainder and the fourth remainder are determined as the third preset position number in the second number.
[0170] Optionally, the first digit is 20 digits, the hierarchical identification number is 5 digits, the device identification number is 5 digits, and the first two digits of the hierarchical identification numbers of the two-layer hierarchical network and the three-layer hierarchical network are zero; when the level of the hierarchical network to which the terminal device belongs is three layers or two layers, the second digit is 11 digits; when the level of the hierarchical network to which the terminal device belongs is one layer, the second digit is 12 digits.
[0171] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0172] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention 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.
[0173] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks 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 terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal 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.
[0174] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including 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.
[0175] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement 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.
[0176] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0177] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal 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, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0178] The communication method and communication device provided by the present invention are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A communication method, characterized in that: Applied to a management server, the first network includes a hierarchical network connected layer by layer from the top layer to the bottom layer, and the method includes: Obtaining a first identification number of the first digit of the terminal device in the first network; the first identification number is composed of the hierarchical identification numbers of each layer of the hierarchical network and the device identification number of the terminal device; According to the hierarchical network to which the terminal device belongs, converting the first identification number into a second identification number of a second digit in a second network; wherein the first digit is higher than the second digit; The mapping relationship between the first identification number and the second identification number is provided to a gateway device between the first network and the second network.
2. The method according to claim 1, characterized in that The second identification number is composed of a first number, a second number and a third number; and converting the first identification number into a second-digit second identification number in the second network according to the level of the hierarchical network to which the terminal device belongs comprises: Determine a first number in the second identification number according to a hierarchical identification number corresponding to a top-level network in the first identification number, and determine a third number in the second identification number according to the device identification number; According to the level of the hierarchical network to which the terminal device belongs, acquiring the target hierarchical identification number of the first identification number except the top hierarchical network and the hierarchical network to which the terminal device belongs; According to the target hierarchical identification number, a second number in the second identification number is determined.
3. The method according to claim 2, characterized in that The top-level hierarchical network has a level of four in the four-layer network, and when the level of the hierarchical network to which the terminal device belongs is three layers, the target hierarchical identification number includes target hierarchical identification numbers of a two-layer hierarchical network and a one-layer hierarchical network, and determining the second number in the second identification number according to the target hierarchical identification number includes: According to the target hierarchical identification number, it is determined that the second numbers are all zero.
4. The method according to claim 2, characterized in that: The top-level hierarchical network has a level of four in the four-layer network, and when the level of the hierarchical network to which the terminal device belongs is two layers, the target hierarchical identification number includes target hierarchical identification numbers of a three-layer hierarchical network and a one-layer hierarchical network, and determining the second number in the second identification number according to the target hierarchical identification number includes: According to the target layer identification number, the target layer identification number of the three-layer hierarchical network is determined as the second number.
5. The method according to claim 2, characterized in that: The top-level hierarchical network has a level of four in the four-layer network. When the level of the hierarchical network to which the terminal device belongs is one, the target hierarchical identification number includes target hierarchical identification numbers of a three-layer hierarchical network and a two-layer hierarchical network. The determining, according to the target hierarchical identification number, the second number in the second identification number includes: Calculating the quotient of the target layer identification number of the three-layer hierarchical network and the first preset number of groups to obtain a first integer quotient and a first remainder, and calculating the quotient of the target layer identification number of the two-layer hierarchical network and the first preset number of groups to obtain a second integer quotient and a second remainder; Using the first integer quotient and the second integer quotient to replace a first preset position number in the first number; Calculate the quotient of the first remainder and the second preset grouping number to obtain a third integer quotient and a third remainder, and calculate the quotient of the second remainder and the second preset grouping number to obtain a fourth integer quotient and a fourth remainder; The third integer quotient and the fourth integer quotient are determined as the second preset position number in the second number, and the third remainder and the fourth remainder are determined as the third preset position number in the second number.
6. The method according to any one of claims 1 to 5, characterized in that: The first digit is 20 digits, the hierarchical identification number is 5 digits, the device identification number is 5 digits, and the first two digits of the hierarchical identification number of the two-layer hierarchical network and the three-layer hierarchical network are zero; when the level of the hierarchical network to which the terminal device belongs is three layers or two layers, the second digit is 11 digits; when the level of the hierarchical network to which the terminal device belongs is one layer, the second digit is 12 digits.
7. A communication device, characterized in that: Applied to a management server, the first network includes a hierarchical network connected layer by layer from the top layer to the bottom layer, and the device includes: A number acquisition module, used to acquire a first identification number of a first digit of a terminal device in the first network; the first identification number is composed of hierarchical identification numbers of each layer of hierarchical network and a device identification number of the terminal device; A number conversion module, configured to convert the first identification number into a second identification number of a second digit in a second network according to the level of the hierarchical network to which the terminal device belongs; wherein the first digit is higher than the second digit; The relationship providing module is used to provide the mapping relationship between the first identification number and the second identification number to the gateway device between the first network and the second network.
8. The device according to claim 7, characterized in that The second identification number is composed of a first number, a second number and a third number; the number conversion module includes: a first number determination submodule, configured to determine a first number in the second identification number according to a hierarchical identification number corresponding to a top-level network in the first identification number, and to determine a third number in the second identification number according to the device identification number; A number acquisition submodule, configured to acquire, according to the level of the hierarchical network to which the terminal device belongs, a target hierarchical identification number in the first identification number except for the top hierarchical network and the hierarchical network to which the terminal device belongs; The second number determination submodule is used to determine the second number in the second identification number according to the target hierarchical identification number.
9. An electronic device, characterized in that: include: one or more processors; and One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, cause the apparatus to perform the method of any one of claims 1 to 11.
10. A computer-readable storage medium, characterized in that: The computer program stored therein enables the processor to execute the method according to any one of claims 1 to 11.