A terminal network access method and device

By comparing the physical address of the visual network terminal and the variable parts of the visual network address, the target address is automatically determined to realize the automatic network access of the visual network terminal, which solves the problems of low network access efficiency and high labor cost in the existing technology, and improves the network access efficiency and Reduces the probability of conflict.

CN114697295BActive Publication Date: 2024-11-08VISIONVERA INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210311614.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-28
Publication Date
2024-11-08
Estimated Expiration
2042-03-28

AI Technical Summary

Technical Problem

The existing video networking terminal access method is inefficient and has high labor costs, so you need to manually configure the video networking address to access the network.

Method used

By receiving the video network broadcast packet, the variable address in the terminal's physical address and the variable address in the video network address are compared, and the target video network address is automatically determined to achieve network access.

Benefits of technology

It improves the network access efficiency of video network terminals, reduces labor costs, and reduces the process of manual configuration, and reduces the probability of video network address conflict determined by different terminals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114697295B_ABST
    Figure CN114697295B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention provide a method and device for terminal access to the network. The method includes: receiving a visual network broadcast packet, and obtaining therefrom a visual network address allocated to the terminal to be connected to the network; comparing the first sub-address of the variable address in the physical address of the visual network terminal with the second sub-address of the variable address in the visual network address, and obtaining a comparison result; determining a target visual network address in the visual network address according to the comparison result; and accessing the visual network based on the target visual network address. The technical solution provided by the embodiments of the present invention can enable the visual network terminal to automatically obtain the visual network address for accessing the visual network, which is beneficial to improving the network access efficiency of the visual network terminal, while also eliminating the process of manually configuring the visual network address and reducing labor costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a terminal network access method and device. Background Art

[0002] With the rapid development of visual networking technology, functions such as video surveillance, video conferencing and video teaching based on visual networking have been widely used in users' lives, work, study, etc. The premise for realizing these functions is that the visual networking terminals used by users can be successfully connected to the visual network, that is, the network access operation is the basic operation for the visual networking terminals to carry out other business processes.

[0003] In the prior art, the method for a visual network terminal to access the network is: first manually configure the visual network address on the visual network terminal, and then, if the visual network terminal receives a broadcast packet sent by a visual network server, the manually configured visual network address is compared with the visual network address in the broadcast packet. If the comparison is successful, the visual network terminal can access the visual network based on the manually configured visual network address; if the comparison fails, the visual network terminal fails to access the network.

[0004] However, as visual networking is increasingly widely used in various industries, the number of visual networking terminals is also increasing rapidly. If visual networking terminals are connected to the network through manual configuration, there will be problems such as low network access efficiency and high labor costs. Summary of the invention

[0005] In view of the above problems, embodiments of the present invention are proposed to provide a method and device for terminal network access that overcomes the above problems or at least partially solves the above problems.

[0006] In a first aspect, an embodiment of the present invention discloses a terminal network access method, which is applied to a visual network terminal, and the method includes:

[0007] Receive the video network broadcast packet, and obtain the video network address allocated to the terminal to be connected to the network;

[0008] Compare the first sub-address of the variable address in the physical address of the visual networking terminal with the second sub-address of the variable address in the visual networking address, and obtain a comparison result;

[0009] According to the comparison result, determining a target video network address in the video network addresses;

[0010] Accessing the video network based on the target video network address;

[0011] Among them, for a pair of the first sub-address and the second sub-address being compared, the sorting position of the first sub-address in the variable address of the physical address is the same as the sorting position of the second sub-address in the variable address of the visual network address.

[0012] In a second aspect, an embodiment of the present invention discloses a terminal network access device, which is applied to a visual network terminal, and the device includes:

[0013] A receiving module, used for receiving a video network broadcast packet and obtaining a video network address allocated to the terminal to be connected to the network;

[0014] A comparison module, used for comparing the first sub-address of the variable address in the physical address of the visual networking terminal with the second sub-address of the variable address in the visual networking address, and obtaining a comparison result;

[0015] A determination module, used to determine a target video network address in the video network addresses according to the comparison result;

[0016] A network access module, used for accessing the visual network based on the target visual network address;

[0017] Among them, for a pair of the first sub-address and the second sub-address being compared, the sorting position of the first sub-address in the variable address of the physical address is the same as the sorting position of the second sub-address in the variable address of the visual network address.

[0018] In a third aspect, an embodiment of the present invention further discloses an electronic device, including a memory and a processor, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the terminal access method described in the first aspect is implemented.

[0019] In a fourth aspect, an embodiment of the present invention further discloses a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for implementing the terminal network access method as described in the first aspect.

[0020] The embodiments of the present invention include the following advantages:

[0021] In the embodiment of the present invention, when the visual network terminal accesses the visual network, the sub-address of the variable address in its own physical address (i.e., the first sub-address) is compared with the sub-address of the variable address in the visual network address (i.e., the second sub-address), and the visual network address used to access the visual network is determined, so that the visual network terminal can automatically obtain the visual network address used to access the visual network, thereby realizing automatic network access of the visual network terminal, which is conducive to improving the network access efficiency of the visual network terminal, and at the same time, it also saves the process of manually configuring the visual network address, thereby reducing labor costs. In addition, since the physical address is unique, therefore, by comparing with the physical address to determine the visual network address, the probability of conflict between the visual network addresses determined by different terminals can also be reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1is a flowchart of a method for accessing a terminal to a network according to an embodiment of the present invention;

[0023] Figure 2 It is a schematic diagram of the interaction of a terminal network access process of the present invention;

[0024] Figure 3 is an exemplary flow chart of an embodiment of a terminal network access method of the present invention;

[0025] Figure 4 It is a structural block diagram of an embodiment of a terminal network access device of the present invention. DETAILED DESCRIPTION

[0026] 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.

[0027] In the visual network, the network access operation is the basic operation for the visual network terminal to carry out other business processes. In the prior art, if a visual network terminal wants to access the network, an engineer generally needs to manually configure the visual network address for the visual network terminal before it can access the visual network. However, this method of manually configuring the visual network address to allow the visual network terminal to access the network has the problems of low network access efficiency and high labor costs. In the embodiment of the present invention, when the visual network terminal accesses the visual network, it determines the visual network address for accessing the visual network by comparing its own physical address with the visual network address, so that it is no longer necessary to manually configure the visual network address to access the visual network. In the process of the visual network terminal accessing the network, human participation is reduced, labor costs are reduced, and the visual network terminal is also automatically connected to the network, thereby improving network access efficiency.

[0028] Reference Figure 1 , shows a flowchart of a terminal network access method embodiment of the present invention, the terminal network access method is applied to a visual network terminal, and specifically may include the following steps:

[0029] Step 101: Receive a visual network broadcast packet, and obtain therefrom a visual network address allocated to the terminal to be connected to the network.

[0030] The visual network broadcast packet includes the visual network address (also called the visual network physical address) allocated to the terminal to be connected to the network, and the visual network terminal can access the visual network according to these visual network addresses. The visual network broadcast packet can be sent by the visual network server.

[0031] When applying for network access, the visual network terminal will first register the terminal number and register its own terminal number with the visual network server. For the visual network terminal that has registered the terminal number, it can be called a terminal to be networked in the embodiment of the present application.

[0032] The visual network server will broadcast all registered terminal numbers, asking the terminal number to be successfully registered in the visual network, whose number it is, and ask to use this number to access the network. At the same time, it will also send a visual network broadcast package including the visual network address allocated to the terminal to be connected to the network.

[0033] like Figure 2 As shown, the visual network server can broadcast the visual network address allocated to the terminal to be connected. The terminal to be connected can receive the broadcast packet sent by the visual network server and store the visual network address in the broadcast packet. Specifically, the network access module of the terminal to be connected can save the visual network address.

[0034] Step 102: Compare the first sub-address of the variable address in the physical address of the visual networking terminal with the second sub-address of the variable address in the visual networking address, and obtain a comparison result.

[0035] After receiving the visual network broadcast packet, the visual network terminal obtains its own physical address, compares the first sub-address of the variable address in the physical address with the second sub-address of the variable address in the visual network address, and obtains the comparison result.

[0036] Among them, the physical address is the network card address of the visual networking terminal, that is, the MAC address (Media Access Control Address). For a physical address, it generally includes two parts: a fixed address and a variable address. The fixed address is assigned to the manufacturer by the registration management agency of the Institute of Electrical and Electronics Engineers (IEEE), and the variable address is assigned by each manufacturer. The variable address also includes a preset number of sub-addresses. For example, for the physical address: 00-16-EA-AE-3C-40, "00-16-EA" is a fixed address, and "AE-3C-40" is a variable address. The variable address includes three sub-addresses: AE, 3C, and 40.

[0037] For the visual network address, it generally includes two parts: a fixed address and a variable address. The variable address includes a preset number of sub-addresses. For example, for the visual network address: 11-22-CD-BD-EF-41, "11-22-CD" is a fixed address, and "BD-EF-41" is a variable address, which includes three sub-addresses: BD, EF, and 41.

[0038] Since the structures of the variable addresses of the physical address and the visual network address are similar, the two are comparable. And since the fixed addresses in the physical address and the visual network address are fixed, it is sufficient to compare the variable addresses in the physical address and the visual network address in the embodiment of the present invention.

[0039] Specifically, when comparing variable addresses, the subaddresses in the corresponding order are compared according to the arrangement order of the subaddresses in the variable address, that is, for the first subaddress and the second subaddress to be compared, the sorting position of the first subaddress in the variable address of the physical address is the same as the sorting position of the second subaddress in the variable address of the visual network address. For example, for the physical address: 00-16-EA-AE-3C-40 and the visual network address: 11-22-CD-BD-EF-41, when comparing, the subaddress "AE" in the physical address is compared with the subaddress "BD" in the visual network address, the subaddress "3C" in the physical address is compared with the subaddress "EF" in the visual network address, and the subaddress "40" in the physical address is compared with the subaddress "41" in the visual network address.

[0040] The embodiment of the present invention specifically compares whether the first sub-address is the same as the second sub-address. Therefore, the comparison result may include: the first sub-address is the same as the second sub-address in the corresponding sequence bit or different.

[0041] Combine the following Figure 2 , an example is given to illustrate the scheme described in this step.

[0042] After the network access module of the terminal to be networked saves the visual network address obtained from the broadcast packet, the terminal to be networked can initiate a network access address request to the network access module, and the network access module will perform network access address selection calculation based on the request, that is, compare the physical address of the terminal to be networked with the obtained visual network address to obtain a comparison result.

[0043] Step 103: According to the comparison result, determine the target visual network address in the visual network address.

[0044] In the embodiment of the present invention, the target visual network address can be determined in the visual network address according to the comparison result of whether the first sub-address and the second sub-address on the corresponding sequence bits are the same or different.

[0045] Combine the following Figure 2 , an example is given to illustrate the scheme described in this step.

[0046] When the network access module performs network access address selection calculation, it determines the network access address used by the terminal to be connected to access the visual network according to the comparison result, and then feeds back the network access address so that the terminal to be connected to access the visual network according to the network access address fed back by the network access module.

[0047] Step 104: Access the visual network based on the target visual network address.

[0048] In the embodiment of the present invention, after determining the target visual network address, the visual network terminal can access the visual network based on the target visual network address to complete the network access operation.

[0049] Combine the following Figure 2 , an example is given to illustrate the scheme described in this step.

[0050] The terminal to be connected can initiate a connection request to the visual network server according to the visual network address fed back by the network access module. The visual network server processes the connection process according to the request, and then responds to the connection request, informing the terminal to be connected of the processing result of the connection request. If the processing result is that the connection is allowed, the terminal to be connected can access the visual network according to the visual network address fed back by the network access module.

[0051] In the embodiment of the present invention, when the visual network terminal accesses the visual network, the sub-address of the variable address in its own physical address (i.e., the first sub-address) is compared with the sub-address of the variable address in the visual network address (i.e., the second sub-address), and the visual network address used to access the visual network is determined, so that the visual network terminal can automatically obtain the visual network address used to access the visual network, thereby realizing automatic network access of the visual network terminal, which is conducive to improving the network access efficiency of the visual network terminal, and at the same time, it also saves the process of manually configuring the visual network address, thereby reducing labor costs. In addition, since the physical address is unique, therefore, determining the visual network address by comparing it with the physical address can also reduce the probability of conflict between visual network addresses determined by different terminals.

[0052] As an optional embodiment, step 101: receiving a visual network broadcast packet may include: receiving a visual network broadcast packet based on system preset configuration parameters.

[0053] In the embodiment of the present invention, a system preset configuration parameter is added for the reception of the visual network broadcast package by the terminal to be connected to the network. Through the system preset configuration parameter, the terminal to be connected to the network can automatically receive the visual network broadcast package without the need to manually configure the reception of the visual network broadcast package, which improves the automation of the visual network terminal and saves labor costs.

[0054] As an optional embodiment, when the visual network address allocated to the terminal to be connected to the network includes at least two visual network addresses, step 102: comparing the first sub-address of the variable address in the physical address of the visual network terminal with the second sub-address of the variable address in the visual network address and obtaining the comparison result may include:

[0055] The second sub-addresses in different visual network addresses are compared with the first sub-addresses in turn to determine whether the first sub-address is the same as the second sub-address and obtain a comparison result.

[0056] Accordingly, step 103: determining the target visual network address in the visual network address according to the comparison result may include:

[0057] The visual network address corresponding to the second sub-address that is the same as the first sub-address determined for the first time is determined as the target visual network address.

[0058] In an embodiment of the present invention, when a visual networking terminal obtains at least two visual networking addresses allocated to the terminal to be connected to the network, the second sub-addresses in different visual networking addresses can be compared with the first sub-addresses in the corresponding sequence positions in turn, and the visual networking address corresponding to the second sub-address that is the same as the first sub-address determined for the first time can be determined as the target visual networking address.

[0059] In order to better understand the above solution, an example is given below to illustrate.

[0060] Assume that the visual network terminal obtains two visual network addresses, namely visual network address A and visual network address B, and the physical address and the variable address of the visual network address both include three sub-addresses. When comparing, the first first sub-address in the variable address in the physical address can be compared with the first second sub-address of the variable address in the visual network address A. If they are the same, the visual network address A is determined as the target visual network address; if they are different, the second first sub-address in the variable address in the physical address is compared with the second second sub-address of the variable address in the visual network address A. If they are the same, the visual network address A is determined as the target visual network address; if they are different, the third first sub-address in the variable address in the physical address is compared with the third second sub-address of the variable address in the visual network address A. If they are the same, visual network address A is determined as the target visual network address. If they are different, the first sub-address in the variable address in the physical address is compared with the first second sub-address in the variable address in the visual network address B. If they are the same, visual network address B is determined as the target visual network address. If they are different, the second first sub-address in the variable address in the physical address is compared with the second second sub-address in the variable address in the visual network address B, and so on, until all sub-addresses are compared.

[0061] Optionally, generally a visual network broadcast packet includes a visual network address allocated to the terminal to be connected to the network. The visual network terminal can receive multiple visual network broadcast packets and sort the visual network addresses obtained from the broadcast packets in the order in which the broadcast packets are received. When comparing, the comparison can be carried out in sequence according to the time sequence. When specifically comparing, the comparison can be carried out in sequence according to the order in which the sub-addresses are arranged in the variable address.

[0062] As an optional embodiment, when the visual network address allocated to the terminal to be connected to the network includes at least two visual network addresses, step 102: comparing the first sub-address of the variable address in the physical address of the visual network terminal with the second sub-address of the variable address in the visual network address and obtaining the comparison result may include:

[0063] The first sub-address is compared with the second sub-addresses in different visual network addresses respectively to determine whether the first sub-address is the same as the second sub-address and obtain a comparison result.

[0064] Accordingly, step 103: determining the target visual network address in the visual network address according to the comparison result may include:

[0065] The target visual network address is determined as the visual network address that has the largest number of second sub-addresses that are identical to the first sub-address among all visual network addresses.

[0066] In the embodiment of the present invention, when the visual network terminal obtains at least two visual network addresses allocated to the terminal to be connected to the network, the first sub-address in the physical address is compared with the second sub-address in different visual network addresses to determine whether the first sub-address is the same as the second sub-address. After the comparison with the visual network address is completed, the visual network address with the largest number of second sub-addresses that are the same as the first sub-address among all the visual network addresses is determined as the target visual network address.

[0067] In order to better understand the above solution, an example is given below to illustrate.

[0068] Assume that the visual network terminal obtains two visual network addresses, namely visual network address A and visual network address B, and the physical address and the variable address of the visual network address both include three sub-addresses. When comparing, the three first sub-addresses in the physical address are compared with the three second sub-addresses in the visual network address A and the visual network address B, respectively, to obtain a comparison result. When the comparison result indicates that: there are two second sub-addresses in the visual network address A that are the same as the first sub-address, and there is one second sub-address in the visual network address B that is the same as the first sub-address, then the visual network address A with the largest number of second sub-addresses that are the same as the first sub-address is determined as the target visual network address.

[0069] As an optional embodiment, the step of “determining whether the first sub-address is the same as the second sub-address” in the above two embodiments may include:

[0070] Step A1: perform a bitwise XOR operation on each character in the first sub-address and each character in the second sub-address at the corresponding sequence position.

[0071] Step A2: When the results of the bitwise XOR operation of all bit characters are 0, it is determined that the first sub-address is the same as the second sub-address.

[0072] Step A3: When the result of the bitwise XOR operation of any character is not 0, it is determined that the first sub-address is different from the second sub-address.

[0073] The result of the bitwise XOR operation of the same value is 0, and the result of the bitwise XOR operation of different values ​​is 1.

[0074] The following is an example of the scheme described in steps A1 to A3 of the specific embodiment. For example, the existing physical address: 00-16-EA-AF-3D-42 is compared with the visual network address A: 11-22-CD-AE-3D-40. "AF-3D-42" is a variable address in the physical address, and AF, 3D and 42 are the three first sub-addresses in the variable address. "AE-3D-40" is a variable address in the visual network address A, and AE, 3D and 40 are the three second sub-addresses in the variable address. Each sub-address includes two characters, such as the sub-address AE includes the two characters "A" and "E".

[0075] When performing a bitwise XOR operation on the first sub-address AF in the physical address and the first second sub-address AE in the visual network address, the two sub-addresses can be converted into binary numbers first. A and F in AF are converted into binary numbers: 1010 and 1111 respectively, and A and E in AE are converted into binary numbers: 1010 and 1110 respectively.

[0076] Then, convert A in AF to get binary number: 1010 and convert A in AE to get binary number: 1010 and perform bitwise XOR operation, the result is: 0000. Then convert F in AF to get binary number: 1111 and convert E in AE to get binary number: 1110 and perform bitwise XOR operation, the result is: 0001.

[0077] In the bitwise XOR operation results of AF and AE, the bitwise XOR operation result of one character is not 0, indicating that the first sub-address in the physical address is the same as the first second sub-address in the visual network address.

[0078] When performing a bitwise XOR operation on the second first sub-address 3D in the physical address and the second second sub-address 3D in the visual network address, the two sub-addresses are first converted into binary numbers. Among them, the 3 and D in 3D are converted into binary numbers: 0011 and 1101 respectively, and then a bitwise XOR operation is performed on each bit character in 3D, and the operation results are: 0000 and 0000. It can be seen that the bitwise XOR operation results of all bit characters are 0, indicating that the second first sub-address in the physical address is the same as the second second sub-address in the visual network address.

[0079] It is understandable that, during the bitwise XOR operation, the characters in the sub-address may not be converted into binary numbers, but the bitwise XOR operation may be performed directly. For example, the bitwise XOR operation result of the character "A" and the character "A" is 0, and the bitwise XOR operation result of the character "B" and the character "A" is 1. The specific situation can be selected according to actual needs.

[0080] As an optional embodiment, when the visual network address allocated to the terminal to be connected to the network includes at least two visual network addresses, step 103: determining the target visual network address from the visual network addresses according to the comparison result may include:

[0081] When it is determined according to the comparison result that the second sub-address identical to the first sub-address does not exist, the visual network address corresponding to the target variable address having the greatest similarity to the variable address of the physical address is determined as the target visual network address.

[0082] In the two embodiments described above of the present invention, how to determine the target visual network address is described respectively when there is a second sub-address that is the same as the first sub-address according to the comparison result. When it is determined according to the comparison result that there is no second sub-address that is the same as the first sub-address, that is, the second sub-addresses in all visual network addresses are different from the first sub-address in the physical address, as in the two examples above, after comparison, it is found that the second sub-addresses in the visual network address A and the visual network address B are different from the first sub-address in the physical address, then the target visual network address can be determined based on the similarity of the variable address, that is to say, the visual network address corresponding to the target variable address with the greatest similarity to the variable address of the physical address can be determined as the target visual network address.

[0083] Optionally, the aforementioned step of “determining the visual network address corresponding to the target variable address having the greatest similarity to the variable address of the physical address as the target visual network address” may include:

[0084] Step B1: When the comparison result is the bitwise XOR operation result of each character in the first sub-address and each character in the second sub-address at the corresponding sequence bit, determine the sum of the bitwise XOR operation results of the characters in the variable address of the physical address and the characters in the variable address of each visual network address.

[0085] Step B2: Determine the variable address in the visual network address corresponding to the minimum sum of the calculation results as the target variable address with the highest similarity to the variable address of the physical address.

[0086] Step B3: Determine the visual network address corresponding to the target variable address as the target visual network address.

[0087] The above scheme is illustrated below with specific examples. For example, the existing physical address 00-16-EA-AE-D7-26 is compared with the visual network address A: 11-22-CD-BB-CC-DE and the visual network address B: 11-22-CD-31-38-88. Since the three first sub-addresses in the physical address are different from the three second sub-addresses in the visual network addresses A and B, it is necessary to obtain the sum of the bitwise XOR operation results of the binary numbers corresponding to the three sub-addresses in the physical address and the binary numbers corresponding to the three sub-addresses in the visual network addresses A and B.

[0088] Among them, the sum of the bitwise exclusive OR operation results of the three first sub-addresses in the physical address: AE, D7, 26 corresponding to the binary numbers 10101110, 11010111, 00100110 and the three second sub-addresses in the visual network address A: BB, CC, DE corresponding to the binary numbers 10111011, 11001100, 11011110 is 12. The sum of the bitwise exclusive OR operation results of the three first sub-addresses in the physical address: AE, D7, 26 corresponding to the binary numbers 10101110, 11010111, 00100110 and the three second sub-addresses in the visual network address B: 31, 38, 88 is 18.

[0089] Since 12 is less than 18, the variable address formed by the three second sub-addresses in the visual network address A is determined as the target variable address with the highest similarity to the variable address of the physical address, and then the visual network address A is determined as the target visual network address.

[0090] Finally, combine Figure 3 , further explains the terminal network access method provided by an embodiment of the present invention.

[0091] like Figure 3As shown, as an optional embodiment, the terminal network access method can be compatible with the new and old network access operation methods.

[0092] When accessing the network, the visual network terminal first determines whether it has the function of automatically obtaining the visual network address by reading the automatic acquisition of the visual network address mode configuration item.

[0093] In the case that the visual networking terminal has a function of automatically acquiring a visual networking address, it is determined whether to enable a mode of automatically acquiring a visual networking address.

[0094] When the visual network terminal does not have the mode of automatically obtaining the visual network address turned on, read whether the visual network address is saved in the configuration file. If the visual network address is saved in the configuration file, it means that the visual network terminal has accessed the visual network based on the visual network address, and then enter the network access process based on the visual network address. If the visual network address is not saved in the configuration file, manually enter the visual network address, synchronize the visual network address to the configuration file, and then enter the network access process based on the visual network address.

[0095] When the visual network terminal turns on the mode of automatically obtaining the visual network address, read whether the visual network address is saved in the configuration file. If the visual network address is saved in the configuration file, the network access process is entered based on the visual network address. If the visual network address is not saved in the configuration file, the visual network address is automatically obtained from the broadcast packet sent by the visual network server, and then the network access process is entered based on the automatically obtained visual network address.

[0096] When the visual network terminal does not originally have the function of automatically obtaining the visual network address, but is upgraded to have the function of automatically obtaining the visual network address, read whether the visual network address is saved in the configuration file. In the case where a manually configured visual network address is saved in the configuration file, add a manual configuration field to the visual network address, set the visual network address to a fixed visual network address, and then synchronize the aforementioned information to the configuration file. Then, based on the visual network address, enter the network access process. In the case where the manually configured visual network address is not saved in the configuration file, the visual network address is automatically obtained from the broadcast packet sent by the visual network server, and then an automatic configuration field is added to the visual network address, and the visual network address is set to an automatically selected visual network address. Then, based on the visual network address, enter the network access process.

[0097] For the automatic network access method, after the network terminal enters the network access process, it determines the network access status. If it has been connected to the network, it means that the network access is successful; if it has not been connected to the network, it will automatically obtain the network access network address again after exceeding the preset time (such as 5s) until the network access is successful.

[0098] In the embodiment of the present invention, since the visual network terminal that has not been connected to the network has achieved compatibility with the new automatic network access operation method and the old manual network access operation method, it not only improves the network access efficiency and reduces labor costs, but also avoids the waste of visual network terminals that use manual network access operation methods to access the network, so that such visual network terminals can also realize the automatic network access function.

[0099] It should be noted that, after the visual network terminal determines the target visual network address, it can inform the visual network server of the event of using the target visual network address to access the visual network, and the visual network server will no longer broadcast the target visual network address. For other situations where the target visual network address has been received and the target visual network address is also used as the visual network address for accessing the visual network, the visual network server can allocate the target visual network address according to the event reporting time of the visual network terminal. For example, the target visual network address is preferentially allocated to the visual network terminal that reports the event earliest, and other visual network terminals can re-determine the visual network address for accessing the visual network according to the method provided in the embodiment of the present invention. In summary, when different visual network terminals determine the same target visual network address according to the method provided in the embodiment of the present invention, the target visual network terminal is preferentially allocated to the visual network terminal that first reports the event of accessing the visual network using the target visual network address.

[0100] Finally, it should be noted that for the method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know 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 know 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.

[0101] In an embodiment of the present invention, when a visual network terminal accesses the visual network, it determines the visual network address used to access the visual network by comparing the variable address of its own physical address with the visual network address in the received broadcast packet, so that the visual network terminal can automatically obtain the visual network address used to access the visual network, thereby realizing zero-configuration network access for the visual network terminal, which is beneficial to improving the network access efficiency of the visual network terminal, and at the same time eliminates the process of manually configuring the visual network address, thereby reducing labor costs.

[0102] Reference Figure 4 , shows a structural block diagram of an embodiment of a terminal network access device of the present invention, the terminal network access device is applied to a visual network terminal to be connected to the visual network, and specifically may include the following modules:

[0103] The receiving module 401 is used to receive the visual network broadcast packet and obtain the visual network address allocated to the terminal to be connected to the network.

[0104] The comparison module 402 is used to compare the first sub-address of the variable address in the physical address of the visual networking terminal with the second sub-address of the variable address in the visual networking address, and obtain a comparison result.

[0105] The determination module 403 is used to determine the target visual network address in the visual network address according to the comparison result.

[0106] The network access module 404 is used to access the visual network based on the target visual network address.

[0107] Among them, for a pair of the first sub-address and the second sub-address being compared, the sorting position of the first sub-address in the variable address of the physical address is the same as the sorting position of the second sub-address in the variable address of the visual network address.

[0108] As an optional embodiment, the visual network address allocated to the terminal to be connected to the network includes at least two visual network addresses.

[0109] The comparison module 402 may include:

[0110] The first comparison submodule is used to compare the second sub-address in different visual network addresses with the first sub-address in turn to determine whether the first sub-address is the same as the second sub-address.

[0111] The determining module 403 may include:

[0112] The first determination submodule is used to determine the visual network address corresponding to the second sub-address that is determined for the first time and is the same as the first sub-address as the target visual network address.

[0113] As an optional embodiment, the visual network address allocated to the terminal to be connected to the network includes at least two visual network addresses.

[0114] The comparison module 402 may include:

[0115] The second comparison submodule is used to compare the first sub-address with the second sub-address in different visual network addresses, determine whether the first sub-address is the same as the second sub-address, and obtain a comparison result.

[0116] The determining module 403 may include:

[0117] The second determination submodule is used to determine the target visual network address by selecting the visual network address having the largest number of second sub-addresses identical to the first sub-address among all the visual network addresses.

[0118] As an optional embodiment, the visual network address allocated to the terminal to be connected to the network includes at least two visual network addresses.

[0119] The determining module 403 may include:

[0120] The third determination submodule is used to determine the visual network address corresponding to the target variable address with the greatest variable address similarity to the physical address as the target visual network address when it is determined according to the comparison result that there is no second sub-address identical to the first sub-address.

[0121] As an optional embodiment, the first comparison submodule and the second comparison submodule may include:

[0122] The operation unit is used to perform a bitwise exclusive OR operation on each character in the first sub-address and each character in the second sub-address.

[0123] The first comparing unit is used to determine that the first sub-address is the same as the second sub-address when the operation results of the bitwise exclusive OR operation of all bit characters are 0.

[0124] The second comparison unit is used to determine that the first sub-address is different from the second sub-address when the result of the bitwise XOR operation of any character is not 0.

[0125] As an optional embodiment, the third determining submodule may include:

[0126] The first determination unit is used to respectively determine the sum of the bitwise exclusive OR operation results of the character in the variable address of the physical address and the character in the variable address of each visual network address.

[0127] The second determination unit is used to determine the variable address in the visual network address corresponding to the sum of the minimum operation results as the target variable address with the highest similarity to the variable address of the physical address.

[0128] The third determination unit is used to determine the visual network address corresponding to the target variable address as the target visual network address.

[0129] As an optional embodiment, the receiving module 401 may include:

[0130] The receiving submodule is used to receive the visual network broadcast packet based on the system preset configuration parameters.

[0131] To summarize, in the embodiments of the present invention, when a visual network terminal accesses the visual network, it determines the visual network address for accessing the visual network by comparing the variable address of its own physical address with the visual network address in the received broadcast packet, so that the visual network terminal can automatically obtain the visual network address for accessing the visual network, thereby realizing zero-configuration network access of the visual network terminal, which is beneficial to improving the network access efficiency of the visual network terminal, and at the same time eliminates the process of manually configuring the visual network address, thereby reducing labor costs.

[0132] 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.

[0133] According to another aspect of an embodiment of the present invention, an electronic device is provided, including: a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the terminal network access method described above are implemented.

[0134] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, which stores a computer program for implementing the terminal network access method as described above.

[0135] 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.

[0136] 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.

[0137] 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.

[0138] 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.

[0139] 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 A step that specifies a function in one or more boxes.

[0140] 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.

[0141] 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.

Claims

1. A terminal network access method, applied to a visual network terminal, It is characterized in that The method comprises: Receive a video network broadcast packet, and obtain at least two video network addresses allocated to the terminal to be connected to the network; Compare the first sub-address of the variable address in the physical address of the visual networking terminal with the second sub-address of the variable address in the visual networking address, and obtain a comparison result; According to the comparison result, determining a target video network address in the video network addresses; Accessing the video network based on the target video network address; Among them, for a pair of the first sub-address and the second sub-address being compared, the sorting position of the first sub-address in the variable address of the physical address is the same as the sorting position of the second sub-address in the variable address of the visual network address.

2. The terminal network access method according to claim 1, It is characterized in that The visual network address allocated to the terminal to be connected to the network includes at least two visual network addresses, and the first sub-address of the variable address in the physical address of the visual network terminal is compared with the second sub-address of the variable address in the visual network address, and the comparison result is obtained, including: Comparing the second sub-addresses in different visual network addresses with the first sub-addresses in sequence, determining whether the first sub-address is the same as the second sub-address, and obtaining the comparison result; Determining the target visual network address in the visual network address according to the comparison result includes: The visual network address corresponding to the second sub-address that is the same as the first sub-address determined for the first time is determined as the target visual network address.

3. The terminal network access method according to claim 1, It is characterized in that The visual network address allocated to the terminal to be connected to the network includes at least two visual network addresses, and the first sub-address of the variable address in the physical address of the visual network terminal is compared with the second sub-address of the variable address in the visual network address, and the comparison result is obtained, including: Compare the first sub-address with the second sub-addresses in different visual network addresses respectively, determine whether the first sub-address is the same as the second sub-address, and obtain a comparison result; Determining the target visual network address in the visual network address according to the comparison result includes: The target visual network address is determined as the visual network address that has the largest number of second sub-addresses that are identical to the first sub-address among all visual network addresses.

4. The terminal network access method according to claim 2 or 3, It is characterized in that The visual network address allocated to the terminal to be connected to the network includes at least two visual network addresses, and the step of determining the target visual network address from the visual network addresses according to the comparison result includes: When it is determined according to the comparison result that the second sub-address identical to the first sub-address does not exist, the visual network address corresponding to the target variable address having the greatest variable address similarity to the physical address is determined as the target visual network address.

5. The terminal network access method according to claim 2 or 3, It is characterized in that The determining whether the first sub-address is the same as the second sub-address includes: Perform a bitwise XOR operation on each character in the first sub-address and each character in the second sub-address; When the operation results of the bitwise exclusive OR operation of all bit characters are 0, determining that the first sub-address is the same as the second sub-address; When the result of the bitwise XOR operation of any character is not 0, it is determined that the first sub-address and the second sub-address are different.

6. The terminal network access method according to claim 4, It is characterized in that The step of determining the visual network address corresponding to the target variable address having the greatest similarity to the variable address of the physical address as the target visual network address comprises: respectively determining the sum of the bitwise exclusive OR operation results of the character in the variable address of the physical address and the character in the variable address of each visual network address; Determine the variable address in the visual network address corresponding to the minimum sum of the operation results as the target variable address having the highest similarity to the variable address of the physical address; The visual network address corresponding to the target variable address is determined as the target visual network address.

7. A terminal access device, applied to a visual network terminal to be connected to a visual network, It is characterized in that The device comprises: A receiving module, used for receiving a visual network broadcast packet, and obtaining at least two visual network addresses allocated to the terminal to be connected to the network; A comparison module, used for comparing the first sub-address of the variable address in the physical address of the visual networking terminal with the second sub-address of the variable address in the visual networking address, and obtaining a comparison result; A determination module, used to determine a target video network address in the video network addresses according to the comparison result; A network access module, used for accessing the visual network based on the target visual network address; Among them, for a pair of the first sub-address and the second sub-address being compared, the sorting position of the first sub-address in the variable address of the physical address is the same as the sorting position of the second sub-address in the variable address of the visual network address.

8. The terminal network access device according to claim 7, It is characterized in that The visual network address allocated to the terminal to be connected to the network includes at least two visual network addresses, and the comparison module includes: A first comparison submodule, used to compare the second sub-addresses in different visual network addresses with the first sub-address in turn to determine whether the first sub-address is the same as the second sub-address; The determination module comprises: The first determination submodule is used to determine the visual network address corresponding to the second sub-address that is determined for the first time and is the same as the first sub-address as the target visual network address.

9. An electronic device, comprising a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the terminal network access method according to any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program for implementing the terminal network access method according to any one of claims 1 to 6.