A method, apparatus, device, and storage medium for managing network capability parameters
By matching the system and custom NC lists in the SDK and adding tag information, the problem of collision detection between custom NC parameters and system NC parameters is solved, and the normal processing of network connection establishment requests initiated by the application is realized.
Patent Information
- Application Number
- CN202110095602.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-25
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2041-01-25
AI Technical Summary
The prior art cannot effectively determine whether the custom network capability parameters (NC parameters) conflict with the system NC parameters, resulting in the application-initiated network connection establishment request cannot be established normally.
By matching the system NC list and the custom NC list in the Software Development Toolkit (SDK), marking information is added to identify the consistency between the custom NC parameters and the system NC parameters, and searching when the application uploads the NC parameters to determine the conflict with the system NC parameters, so as to send appropriate NC parameters in a timely manner.
The collision detection of the NC parameters uploaded by the application and the NC parameters of the system is realized, ensuring that the network connection can still be established normally in the case of conflict, and avoiding the failure of the connection request caused by the operating system's inability to work normally.
Smart Images

Figure CN114793341B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technologies, and in particular, to a method, apparatus, device, and storage medium for managing network capability parameters. Background Art
[0002] In order to meet the differences in network performance requirements for different communication services, that is, to provide differentiated services for different communication services, the concept of network slice (NS) is introduced in the fifth-generation mobile communication system (5G).
[0003] Currently, in order to provide users with the required slice services, it is necessary to correspond user requirements to network slice capabilities, that is, to map and bind the data description (TD) to the single network slice selection assistance information (S-NSSAI). Implementing the binding of user requirements and the required slice capabilities through the data network name (DNN) is one of the solutions.
[0004] Taking the Android operating system of the user equipment as an example, when implementing the binding of user requirements and the required slice capabilities through the DNN, the specific process is as follows:
[0005] (1) When an application requests to establish a network connection, it passes the network capability (NC) parameter to the operating system;
[0006] (2) When the operating system receives the network connection request sent by the application, the Telephony module matches the DNN Type corresponding to the NC parameter;
[0007] (3) The data connection module selects the DNN that meets the network service requirements according to the DNN Type, and then passes it to the baseband modem to request the establishment of a mobile network connection.
[0008] Although this method can bind user requirements to the required slicing capabilities, since 64 NC parameters can be recorded in the NC list in the current Android system (hereinafter referred to as the operating system), that is, 64 DNNs can be corresponding, and only a small part of them is currently used. That is, the current operating system can only transfer the NC parameters that have been set in the NC list, such as IMS, MMS, INTERNET, etc. This may result in the custom NC list used for extension being overwritten after the operating system updates the NC list, and then conflicts may occur between the custom NC parameters defined by the application and the NC parameters at the same position in the NC list updated by the operating system. However, the related technology cannot know whether there is a conflict between the custom NC parameters and the system NC parameters. Summary of the Invention
[0009] Embodiments of the present invention provide a method, device, equipment and storage medium for managing network capability parameters to solve the problem in the prior art that it is impossible to know whether there is a conflict between custom NC parameters and system NC parameters.
[0010] In a first aspect, an embodiment of the present invention provides a method for managing network capability parameters, which is applied to a software development kit (SDK), including:
[0011] Obtain a system network capability (NC) list from the operating system;
[0012] Match the system NC parameters in the system NC list with the custom NC parameters in a preset custom NC list in the SDK;
[0013] According to the matching result, add marking information to the custom NC parameters in the custom NC list and update the custom NC list;
[0014] Wherein, the marking information is used to identify whether the custom NC parameters are consistent with the system NC parameters.
[0015] In addition, the matching of the system NC parameters in the system NC list with the custom NC parameters in the preset custom NC list in the SDK includes: traversing the system NC list and the custom NC list respectively; matching the system NC parameters and the custom NC parameters at the same position traversed. In the embodiment of the present invention, by matching the system NC parameters at the same position in the system NC list with the custom NC parameters at the same position in the custom NC list, the reference value of the matching result is ensured.
[0016] In addition, after matching the system NC parameters and the NC parameters at the same position to be traversed, the method further includes: if there are still unmatched custom NC parameters in the custom NC list, adding an available flag to the unmatched custom NC parameters to obtain the marking information corresponding to the unmatched custom NC parameters. In the embodiment of the present invention, for the custom NC parameters in the custom NC list that are the custom NC parameters of the empty positions not currently occupied in the system NC list, by adding an available flag to the custom NC parameter, the transmission of the custom NC parameter can be better adapted to the actual situation.
[0017] In addition, the obtaining the system NC list from the operating system includes: calling the getAllNetworks() interface to obtain all the system NC parameters supported by the operating system from the Network Capabilities class of the operating system, and generating the system NC list.
[0018] In addition, after adding tag information to the custom NC parameters in the custom NC list according to the matching result and updating the custom NC list, the method further includes: receiving NC parameters uploaded by the application; searching the custom NC list according to the NC parameters to obtain the tag information corresponding to the custom NC parameters matched by the NC parameters; if it is determined according to the tag information that the NC parameters are consistent with the system NC parameters at the same position in the system NC list, sending the NC parameters to the operating system; if it is determined according to the tag information that the NC parameters are inconsistent with the system NC parameters at the same position in the system NC list, sending the preset NC parameters to the operating system; if it is determined according to the tag information that the NC parameters carry an available identifier, sending the NC parameters to the operating system. In an embodiment of the present invention, when an application requests to establish a network connection, that is, initiates a network connection establishment request, the request is intercepted by a software development kit SDK, the NC parameters uploaded by the application are obtained, and a table lookup operation is performed on the custom NC list according to the obtained NC parameters to obtain tag information that can mark whether the current NC parameters are consistent with the system NC parameters at the same position in the system NC list in the operating system, so that it can be timely identified whether the NC parameters uploaded by the application conflict with the system NC parameters. In addition, in an embodiment of the present invention, when the SDK identifies that there is no conflict between the NC parameters uploaded by the application and the system NC parameters, the NC parameters uploaded by the application are directly sent to the operating system, so that the operating system can match a suitable DDN, and then the binding of user needs and required slicing capabilities is achieved through DDN; and when the SDK identifies that there is a conflict between the NC parameters uploaded by the application and the system NC parameters, the NC parameters uploaded by the application are changed to preset NC parameters, and the preset NC parameters are sent to the operating system, so that the operating system can match a suitable DDN according to the preset NC parameters, and then the binding of user needs and required slicing capabilities is achieved through DDN. In this way, it is ensured that when there is a conflict in NC parameters, the network connection establishment request initiated by the application can still be established normally, which solves the problem that when there is a conflict in the existing NC parameters, the operating system cannot work normally, thereby causing the network connection establishment request initiated by the application to fail to be established.
[0019] In addition, if it is determined according to the marking information that the NC parameter is inconsistent with the NC parameter at the same position in the system NC list, the method further includes: reporting an NC parameter conflict to the application program, so that the application program can directly transmit the preset NC parameter to the operating system before the NC parameter conflict is resolved. In the embodiment of the present invention, by reporting the NC parameter conflict to the application program, the application program can directly transmit the preset NC parameter to the operating system before the NC parameter conflict is resolved, so as to ensure that the network connection establishment request initiated by the application program can still be normally established during the period when the NC parameter conflict exists.
[0020] In addition, after reporting the NC parameter conflict to the application program, the method further includes: obtaining the updated system NC list from the operating system; matching the updated system NC list with the custom NC list; determining whether the NC parameter conflict is resolved according to the matching result; if the NC parameter conflict has been resolved, reporting it to the application program for the application program to upload the NC parameter to the SDK. In the embodiment of the present invention, after determining that the NC parameter conflict is resolved, when the application program requests to establish a network connection, the network connection establishment request first reaches the SDK for processing, so that the SDK can continue to monitor whether the NC parameter uploaded by the application program conflicts with the system NC parameter, so as to timely detect the NC parameter conflict and then timely resolve it during the process of the application program continuously requesting to initiate a network connection establishment request.
[0021] In a second aspect, an embodiment of the present invention further provides a management device for network capability parameters, including:
[0022] A system network capability list acquisition module, configured to obtain a system network capability NC list from an operating system;
[0023] A network capability parameter matching module, configured to match the system NC parameters in the system NC list with the custom NC parameters in a preset custom NC list in the SDK;
[0024] A custom network capability list update module, configured to add marking information to the custom NC parameters in the custom NC list according to the matching result, and update the custom NC list;
[0025] Wherein, the marking information is used to identify whether the custom NC parameter is consistent with the system NC parameter.
[0026] In addition, the network capability parameter matching module is specifically configured to traverse the system NC list and the custom NC list respectively; match the system NC parameter and the custom NC parameter at the same position traversed.
[0027] In addition, the system network capability list acquisition module is specifically configured to call the getAllNetworks() interface to obtain all the system NC parameters supported by the operating system from the Network Capabilities class of the operating system, and generate the system NC list.
[0028] In addition, the management device for network capability parameters further includes: a network capability parameter receiving module, configured to receive NC parameters uploaded by an application; a marking information lookup module, configured to look up the custom NC list according to the NC parameters to obtain the marking information corresponding to the custom NC parameters matching the NC parameters; a network capability parameter sending module, configured to send the NC parameters to the operating system when it is determined according to the marking information that the NC parameters are consistent with the system NC parameters at the same position in the system NC list; and when it is determined according to the marking information that the NC parameters carry an available identifier, send the NC parameters to the operating system; and when it is determined according to the marking information that the NC parameters carry an available identifier, send the NC parameters to the operating system.
[0029] In addition, the management device for network capability parameters further includes: a conflict reporting module, configured to report NC parameter conflicts to the application for the application to directly transmit the preset NC parameters to the operating system before the NC parameter conflicts are resolved.
[0030] In addition, the system network capability list acquisition module is further configured to obtain the updated system NC list from the operating system; the network capability parameter matching module is further configured to match the updated system NC list with the custom NC list; the conflict reporting module is further configured to determine whether the NC parameter conflicts are resolved according to the matching result, and when the NC parameter conflicts have been resolved, report to the application for the application to upload the NC parameters to the SDK.
[0031] In a third aspect, an embodiment of the present invention further provides a management device for network capability parameters, including: a processor and a transceiver;
[0032] The processor is configured to control the transceiver to obtain a system network capability NC list from an operating system; match the system NC parameters in the system NC list with the custom NC parameters of a custom NC list preset in an SDK; and add marking information to the custom NC parameters in the custom NC list according to the matching result and update the custom NC list, where the marking information is used to identify whether the custom NC parameters are consistent with the system NC parameters;
[0033] The transceiver is used to obtain a system network capabilities (NC) list from the operating system under the control of the processor.
[0034] In addition, the processor is further configured to traverse the system NC list and the custom NC list respectively, and match the system NC parameters and the custom NC parameters at the same position obtained by traversing.
[0035] In addition, when there are still unmatched NC parameters in the custom NC list, the processor is further configured to add an available identifier to the unmatched custom NC parameters to obtain the marking information corresponding to the unmatched custom NC parameters.
[0036] In addition, the processor is further configured to call the getAllNetworks() interface to obtain all the system NC parameters supported by the operating system from the Network Capabilities class of the operating system, and generate the system NC list.
[0037] In addition, the processor is further configured to control the transceiver to receive the NC parameters uploaded by the application program, search for the custom NC list according to the NC parameters to obtain the marking information corresponding to the custom NC parameters matched by the NC parameters. If it is determined according to the marking information that the NC parameters are consistent with the system NC parameters at the same position in the system NC list, control the transceiver to send the NC parameters to the operating system; if it is determined according to the marking information that the NC parameters are inconsistent with the system NC parameters at the same position in the system NC list, control the transceiver to send the preset NC parameters to the operating system; if it is determined according to the marking information that the NC parameters carry an available identifier, control the transceiver to send the NC parameters to the operating system.
[0038] The transceiver is further configured to receive the NC parameters uploaded by the application program under the control of the processor, and when it is determined by the processor according to the marking information that the NC parameters are consistent with the system NC parameters at the same position in the system NC list, send the NC parameters to the operating system; when it is determined by the processor according to the marking information that the NC parameters are inconsistent with the system NC parameters at the same position in the system NC list, send the preset NC parameters to the operating system; when it is determined by the processor according to the marking information that the NC parameters carry an available identifier, send the NC parameters to the operating system.
[0039] In addition, the processor is further configured to control the transceiver to report NC parameter conflicts to the application program, so that the application program directly transmits the preset NC parameters to the operating system before resolving the NC parameter conflicts.
[0040] The transceiver is further configured to report an NC parameter conflict to the application under the control of the processor, so that the application can directly transmit the preset NC parameters to the operating system before the NC parameter conflict is resolved.
[0041] In addition, the processor is further configured to control the transceiver to obtain the updated system NC list from the operating system; match the updated system NC list with the custom NC list; determine whether the NC parameter conflict is resolved according to the matching result; if the NC parameter conflict has been resolved, control the transceiver to report to the application for the application to upload the NC parameters to the SDK;
[0042] The transceiver is further configured to obtain the updated system NC list from the operating system under the control of the processor; when the processor determines that the NC parameter conflict has been resolved, report to the application for the application to upload the NC parameters to the SDK.
[0043] In a fourth aspect, an embodiment of the present invention further provides a management device for network capability parameters, including: a transceiver, a memory, a processor, and a program stored on the memory and executable on the processor. The processor is configured to read the program in the memory to implement the steps in the above-mentioned method for managing network capability parameters.
[0044] In a fifth aspect, an embodiment of the present invention further provides a readable storage medium, on which a program is stored. When the program is executed by a processor, the steps in the above-mentioned method for managing network capability parameters are implemented.
[0045] In an embodiment of the present invention, before an application initiates a network connection establishment request and uploads NC parameters, by comparing the custom NC parameters in the custom NC list preset locally in the SDK with the system NC parameters in the system NC list obtained from the operating system, the marking information of each custom NC parameter in the custom NC list can be obtained, so that when the NC parameters uploaded by the application are received subsequently, it can be directly determined according to the marking information of the NC parameter in the custom NC list whether the NC parameters currently uploaded by the application conflict with the system NC parameters, achieving timely discovery of NC parameter conflicts for timely resolution. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 is one of the flowcharts of the method for managing network capability parameters provided by an embodiment of the present invention;
[0047] Figure 2It is the second flowchart of the network capability parameter management method provided by the embodiments of the present invention;
[0048] Figure 3 It is the third flowchart of the network capability parameter management method provided by the embodiments of the present invention;
[0049] Figure 4 It is a schematic diagram of the relationship among the application program, software development kit, and operating system involved in the network capability parameter management method provided by the embodiments of the present invention;
[0050] Figure 5 It is for Figure 4 An interaction schematic diagram of implementing the network capability parameter management method provided by the embodiments of the present invention for the involved application program, software development kit, and operating system;
[0051] Figure 6 It is a structural diagram of the functional modules involved in the network capability parameter management device provided by the embodiments of the present invention;
[0052] Figure 7 It is one of the structural diagrams of the network capability parameter management device provided by the embodiments of the present invention;
[0053] Figure 8 It is the second structural diagram of the network capability parameter management device provided by the embodiments of the present invention. Detailed implementation manners
[0054] In the embodiments of the present invention, the term "and / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after.
[0055] In the embodiments of the present invention, the term "plurality" refers to two or more, and other quantifiers are similar.
[0056] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0057] Refer to Figure 1 , Figure 1 It is a flowchart of the network capability parameter management method provided by the embodiments of the present invention. In this embodiment, the method is mainly applied to a software development kit (SDK).
[0058] As Figure 1 shown, the method for managing network capability parameters provided in this embodiment includes the following steps:
[0059] Step 101: Obtain the system network capability NC list from the operating system.
[0060] For ease of explanation, this embodiment takes the operating system type as Android as an example. Specifically, when the operating system is Android, the operation of obtaining the system network capability (Network capability, NC) list from the operating system in Step 101 is to call the getAllNetworks() interface to obtain all the system NC parameters supported by the operating system from the Network Capabilities class of the operating system, and then generate the system NC list.
[0061] It can be understood that for the Android type of operating system, currently the Network Capabilities class can support 64 NC parameters, and the 26 positions from the 0th to the 25th have been used.
[0062] In addition, it should be noted that currently in the Android type of operating system, the 26 positions from the 0th to the 25th have been used for the NC parameters, and currently the positions occupied by each system NC parameter are fixed. For ease of understanding, this embodiment gives a specific form of the system NC list, as shown in Table 1:
[0063] Table 1 records the system NC list of the system NC parameters from the 0th to the 25th
[0064]
[0065]
[0066] Regarding the corresponding slice functions of each system NC parameter in Table 1 in actual applications, they are fixed. The specific meanings can be queried in the Android development manual for the introductions of each parameter in the Network Capabilities class. For example, the "NET_CAPABILITY_INTERNET" parameter at the 12th position specifically indicates that the network can access the Internet, and the "NET_CAPABILITY_VALIDATED" parameter at the 16th position specifically indicates that the connection on the network has been successfully verified.
[0067] Step 102: Match the system NC parameters in the system NC list with the custom NC parameters in the custom NC list preset in the SDK.
[0068] Specifically, to ensure the reference value of the matching results, when matching the system NC list with the custom NC list, the NC parameters at the same position in the two tables are specifically matched.
[0069] Therefore, when implementing the operation of step 102, specifically, by traversing the system NC list and the custom NC list respectively, and then matching the system NC parameters and the custom NC parameters at the same position that are traversed.
[0070] For the sake of easy understanding, the following is illustrated with an example:
[0071] Still taking the operating system type as Android as an example, assume that the content of the 0th to 25th positions of the custom NC list is the same as that of the 0th to 25th positions of the system NC list given in Table 1, and the content after the 26th position is not completely the same. The following only takes the content after the 26th position as an example for illustration.
[0072] If the custom NC list only records up to the 27th position, and the content of the 26th and 27th positions is as shown in Table 2:
[0073] Table 2 Custom NC list recording the NC parameters of the 26th and 27th positions
[0074] NC Parameter Name Position NET_CAPABILITY_NR1 26 NET_CAPABILITY_NR2 27
[0075] Correspondingly, if by calling the getAllNetworks() interface, all the system NC parameters supported by the operating system are obtained from the NetworkCapabilities class of the operating system, and then in addition to recording the system NC parameters of the 0th to 25th positions given in Table 1 in the system NC list, the system NC parameters of the 26th and 27th positions given in Table 3 are also recorded:
[0076] Table 3 System NC list recording the system NC parameters of the 26th and 27th positions
[0077] System NC Parameter Name Position NET_CAPABILITY_NR1 26 NET_CAPABILITY_NR2 27
[0078] Correspondingly, based on the matching method given in step 102, specifically, the "NET_CAPABILITY_NR1" parameter at position 26 in Table 2 is matched with the "NET_CAPABILITY_NR1" parameter at position 26 in Table 3, and the "NET_CAPABILITY_NR2" parameter at position 27 in Table 2 is matched with the "NET_CAPABILITY_NR2" parameter at position 27 in Table 3.
[0079] Further, if all the system NC parameters supported by the operating system are obtained from the NetworkCapabilities class of the operating system by calling the getAllNetworks() interface, and then in addition to the system NC parameters from the 0th to the 25th recorded in Table 1 in the generated system NC list, the system NC parameters at the 26th and 27th recorded in Table 4 are also recorded:
[0080] Table 4 records the system NC list of the system NC parameters at the 26th and 27th
[0081] System NC Parameter Name Position NET_CAPABILITY_NR1 26 NET_CAPABILITY_XX1 27
[0082] Then, based on the matching method given in step 102, specifically, the "NET_CAPABILITY_NR1" parameter at position 26 in Table 2 is matched with the "NET_CAPABILITY_NR1" parameter at position 26 in Table 4, and the "NET_CAPABILITY_NR2" parameter at position 27 in Table 2 is matched with the "NET_CAPABILITY_XX1" parameter at position 27 in Table 4.
[0083] It should be understood that the above examples are only examples listed for better understanding of the technical solution of this embodiment and do not serve as the sole limitation of this embodiment.
[0084] Step 103, according to the matching result, add marking information to the custom NC parameters in the custom NC list and update the custom NC list.
[0085] Specifically, in this embodiment, the marking information added to each custom NC parameter in the custom NC list is used to identify whether the custom NC parameter is consistent with the system NC parameter.
[0086] In addition, from the above description, it can be seen that when matching the system NC parameters in the system NC list with the custom NC parameters in the custom NC list, the NC parameters at the same position in the two lists are compared. Therefore, the marking information finally added to each custom NC parameter in the custom NC list is actually used to identify whether the custom NC parameter is consistent with the system NC parameter at the same position in the operating system.
[0087] For ease of understanding, the following is illustrated with examples:
[0088] Taking the matching of Table 2 and Table 3 as an example, through matching, it is found that the NC parameters at the 26th position and the 27th position in both tables are the same. Therefore, the marks for the NC parameters at the 26th position and the 27th position in Table 2 are finally both marked as the same. That is, according to the matching result, the NC parameters in Table 2 are marked, and the final custom NC list recording the marking information corresponding to the NC parameters, that is, the updated custom NC list, can be shown in Table 5 as follows:
[0089] Table 5 Custom NC list recording the marking information of the NC parameters at the 26th and 27th positions
[0090] NC Parameter Name Position Marking Information NET_CAPABILITY_NR1 26 Consistent NET_CAPABILITY_NR2 27 Consistent
[0091] Correspondingly, taking the matching of Table 2 and Table 4 as an example, through matching, it is found that the NC parameters at the 26th position in both tables are the same, and the NC parameters at the 27th position are different. Therefore, the mark for the NC parameter at the 26th position in Table 2 is finally marked as the same, and the marks for the NC parameters at the 27th position are all marked as different. That is, according to the matching result, the NC parameters in Table 2 are marked, and the final custom NC list recording the marking information corresponding to the NC parameters, that is, the updated custom NC list, can be shown in Table 6 as follows:
[0092] Table 6 Custom NC list recording the marking information of the NC parameters at the 26th and 27th positions
[0093] NC Parameter Name Position Marking Information NET_CAPABILITY_NR1 26 Consistent NET_CAPABILITY_NR2 27 Inconsistent
[0094] It should be understood that the above examples are only examples listed for better understanding of the technical solutions of this embodiment and do not serve as the sole limitation of this embodiment. In practical applications, the custom NC list recording the marking information of the NC parameters can also record the corresponding slicing ability, such as constructing a custom NC list in the style shown in Table 7.
[0095] Table 7 Custom NC list recording the slicing ability
[0096]
[0097]
[0098] In addition, it is worth mentioning that in practical applications, there may be cases where the custom NC parameters in the custom NC list are the phrase NC parameters in the empty positions that are not currently occupied in the system NC list. For such cases, it can be considered that there is no conflict between the custom NC parameters and the system NC parameters, that is, in this case, the marking information corresponding to the custom NC parameters in the custom NC list is consistent, or directly non-conflicting, that is, an available identifier is added, so that when the SDK subsequently receives a network connection establishment request initiated by the application, the marking information corresponding to the NC parameters reported is the available identifier, and the NC parameters reported by the application can be directly sent to the operating system.
[0099] Regarding the determination of this situation, in this embodiment, it is specifically determined by detecting whether there are custom NC parameters in the custom NC list that have not been matched with the system NC list.
[0100] Correspondingly, if there are still unmatched custom NC parameters in the custom NC list, an available identifier is added to the unmatched custom NC parameters, and then the marking information corresponding to the unmatched NC parameters is obtained.
[0101] For the sake of easy understanding, a new custom NC parameter is added based on Table 2 below, that is, the 28th bit is customized. See Table 8 for details:
[0102] Table 8 records the custom NC list of the NC parameters from the 26th bit to the 28th bit
[0103] NC Parameter Name Position NET_CAPABILITY_NR1 26 NET_CAPABILITY_NR2 27 NET_CAPABILITY_NR3 28
[0104] If the system NC parameters recorded in the system NC list only reach the 27th bit, such as the system NC list given in Table 3.
[0105] Then, based on the matching method given in Step 102, specifically, the "NET_CAPABILITY_NR1" parameter at position 26 in Table 8 is matched with the "NET_CAPABILITY_NR1" parameter at position 26 in Table 3, and the "NET_CAPABILITY_NR2" parameter at position 27 in Table 8 is matched with the "NET_CAPABILITY_NR2" parameter at position 27 in Table 3, while the "NET_CAPABILITY_NR3" parameter at position 28 in Table 8 is not given in Table 3 at all.
[0106] Therefore, based on the above matching results, the updated custom NC list recording the marking information of the custom NC parameters is shown in Table 9:
[0107] Table 9 Custom NC List
[0108] NC Parameter Name Position Marking Information NET_CAPABILITY_NR1 26 Consistent NET_CAPABILITY_NR2 27 Consistent NET_CAPABILITY_NR3 28 Available
[0109] It should be understood that the above examples are only examples listed for better understanding the technical solution of this embodiment, and do not serve as the only limitation to this embodiment.
[0110] Thus, for the network parameter transmission method provided by this embodiment, before the application program initiates a network connection establishment request and uploads the NC parameters, by comparing the custom NC parameters in the locally preset custom NC list of the SDK with the system NC parameters in the system NC list obtained from the operating system, the marking information of each custom NC parameter in the custom NC list can be obtained. As a result, after receiving the NC parameters uploaded by the application program subsequently, it can be directly determined whether the currently uploaded NC parameters of the application program conflict with the system NC parameters according to the marking information of the NC parameter in the custom NC list, achieving timely detection of NC parameter conflicts for timely resolution.
[0111] In addition, it can be understood that in actual applications, the operating system includes but is not limited to operating systems applicable to computers, such as DOS, Windows, Linux, FreeBSD, NetWare, Unix, Mac OS, and operating systems applicable to mobile terminals, such as mobile phones, such as Symbiain, Windows Mobile, Windows CE, Iphone OS, BlackBerry, Palm, Palm WebOS, Linux, Android, etc.
[0112] Therefore, for different operating systems, the interfaces called when obtaining the system NC list in actual applications are different.
[0113] However, the overall idea of implementing the network capability parameter management method is similar, that is, for each type of operating system, the system NC list is obtained by using its respective corresponding interface, and then the NC parameters in the system NC list and the custom NC list are marked, and then the marking information corresponding to each NC parameter in the custom NC list is obtained. Then, when receiving the NC parameters reported by the APP installed on the device using the current operating system, a look-up table operation is performed in the custom NC list according to the received NC parameters, and then the marking information corresponding to the currently received NC parameters is determined, and it is determined whether the currently received NC parameters conflict with the system NC parameters at the same position in the system NC list according to the marking information. Finally, according to the recognition result, the NC parameters suitable for the current actual situation are sent.
[0114] See Figure 2 , Figure 2It is a flowchart of the method for managing network capability parameters provided by an embodiment of the present invention. This embodiment is substantially the same as the Figure 1 corresponding method embodiment. The main difference is that after the SDK obtains the marking information of each custom NC parameter in the custom NC list, it identifies the NC parameters reported by the application program that initiates a network connection establishment request based on the marking information, so as to send appropriate NC parameters to the operating system according to the corresponding marking information. As Figure 2 shown, it includes the following steps:
[0115] Step 201, obtain the system network capability NC list from the operating system.
[0116] Step 202, match the system NC parameters in the system NC list with the custom NC parameters in the preset custom NC list in the SDK.
[0117] Step 203, according to the matching result, add marking information to the custom NC parameters in the custom NC list and update the custom NC list.
[0118] It is not difficult to find that steps 201 to 203 in this embodiment are substantially the same as steps 101 to 103 in the Figure 1 corresponding embodiment. Therefore, the implementation of steps 201 to 203 can refer to the description in steps 101 to 103. To avoid repetition, it will not be elaborated here.
[0119] Step 204, receive the NC parameters uploaded by the application program.
[0120] Specifically, in actual applications, the above-mentioned received network capability (NC) parameters are set when the application program (APP) requests the establishment of a network connection.
[0121] In addition, it can be understood that in actual applications, when the APP performs network interactions, it interacts with the outside world through a pre-compiled application programming interface (API). Therefore, the NC parameters uploaded by the APP are specifically passed to the SDK through the API interface.
[0122] In addition, it is worth mentioning that for the SDK that executes the method for managing network capability parameters provided by this embodiment, in actual applications, it can be directly integrated into the operating system or independent of the operating system. This embodiment does not limit this.
[0123] Step 205: Search the custom NC list according to the NC parameters to obtain the marking information corresponding to the custom NC parameters that match the NC parameters.
[0124] Specifically, in this embodiment, the marking information corresponding to each custom NC parameter in the custom NC list is used to identify whether the current custom NC parameter is consistent with the system NC parameter at the same position in the system NC list in the operating system.
[0125] That is, according to the marking information corresponding to the custom NC parameters that match the current NC parameters found in the custom NC list, it can be determined whether the current NC parameters conflict with the system NC parameters.
[0126] The custom NC list mentioned above is specifically a table storing the preset slicing capabilities and the corresponding custom NC parameter names, as well as the locations of the custom NC parameters, as shown in the above embodiment. Figure 7 .
[0127] Still taking the Android operating system as an example, the NetworkCapabilities class provided by the current operating system can support 64 NC parameters, of which 26 positions from the 0th to the 15th have been used, that is, the positions that can be customized are the 26th and later positions.
[0128] Therefore, the customized NC list given in Table 7 records the customized NC parameters and corresponding slicing capabilities for the two positions of bit 26 and bit 27.
[0129] It can be understood that for the 26th bit "NET_CAPABILITY_NR1" parameter, its corresponding slice capability is "ServiceGame", which means that the APP reporting the "NET_CAPABILITY_NR1" parameter is a game APP, and the network establishment request initiated by it is to establish a game connection service.
[0130] Correspondingly, for the 27th "NET_CAPABILITY_NR2" parameter, its corresponding slice capability is "ServiceMusic", which means that the APP that reports the "NET_CAPABILITY_NR2" parameter is a music APP, and the network establishment request initiated by it is to establish a music connection service.
[0131] It should be understood that the above examples are merely examples listed for a better understanding of the technical solution of this embodiment and are not intended to be the sole limitation to this embodiment.
[0132] Step 206, if it is determined according to the marking information that the NC parameter is consistent with the system NC parameter at the same position in the system NC list, send the NC parameter to the operating system.
[0133] Step 207, if it is determined according to the marking information that the NC parameter is inconsistent with the system NC parameter at the same position in the system NC list, send a preset NC parameter to the operating system;
[0134] Step 208, if it is determined according to the marking information that the NC parameter carries an available identifier, send the NC parameter to the operating system.
[0135] As can be seen from the description of the above embodiments, the marking information includes three types: the custom NC parameter is consistent with the system NC parameter, the custom NC parameter is inconsistent with the system NC parameter, and the custom NC parameter is available. For the marking information including these three types of information, if it is determined according to the marking information that the NC parameter is consistent with the system NC parameter at the same position in the system NC list, then step 206 is executed; if it is determined according to the marking information that the NC parameter is inconsistent with the system NC parameter at the same position in the system NC list, then step 207 is executed; if it is determined according to the marking information that the NC parameter carries an available identifier, then step 208 is executed.
[0136] For ease of understanding, taking Table 9 given in the above embodiment as an example, when the NC parameter uploaded by the APP received is the "NET_CAPABILITY_NR1" parameter at the 26th position in Table 9, according to this NC parameter, the marking information found in the custom NC list given in Table 9 is "consistent", so step 206 is directly executed.
[0137] Correspondingly, when the NC parameter uploaded by the APP received is the "NET_CAPABILITY_NR2" parameter at the 27th position in Table 9, according to this NC parameter, the marking information found in the custom NC list given in Table 9 is "inconsistent", so step 207 is directly executed.
[0138] Correspondingly, when the NC parameter uploaded by the APP received is the "NET_CAPABILITY_NR3" parameter at the 28th position in Table 9, according to this NC parameter, the marking information found in the custom NC list given in Table 9 is "available", so step 208 is directly executed.
[0139] It is not difficult to find from the above description that if it is determined according to the marking information that the currently received NC parameter is consistent with the system NC parameter or is available, it means that there is no conflict between the NC parameter at the current position in the custom NC list and the system NC parameter at the current position in the system NC list. The SDK does not need to process the NC parameter reported by the APP and can directly send the NC parameter reported by the APP to the operating system.
[0140] For the case where the NC parameter is inconsistent with the system NC parameter at the same position in the system NC list, that is, for the NC parameter at the 27th position in the custom NC list given in Table 9, it is inconsistent with the system NC parameter at the 27th position in the system NC list. In this case, it is determined that there is a conflict between the NC parameter at the current position in the custom NC list and the system NC parameter at the current position in the system NC list. The SDK needs to process the NC parameter reported by the APP and then send the processed NC parameter to the operating system.
[0141] Still taking the Android system as an example of the operating system, the NC parameter at the 12th position in the currently supported NetworkCapabilities is specifically "NET_CAPABILITY_INTERNET". The slice capability corresponding to this NC parameter is that the network can access the Internet. Therefore, in this embodiment, by adjusting the NC parameter reported by the APP to "NET_CAPABILITY_INTERNET" and then sending the adjusted NC parameter, that is, "NET_CAPABILITY_INTERNET", to the operating system, it can be determined that the network connection establishment request initiated by the APP can be successfully established.
[0142] Therefore, in this embodiment, the so-called sending the preset NC parameter to the operating system in step 207 actually means sending the "NET_CAPABILITY_INTERNET" parameter to the operating system.
[0143] Thus, for the network parameter transmission method provided in this embodiment, when the application requests to establish a network connection, that is, initiates a network connection establishment request, the SDK intercepts the request, obtains the NC parameter uploaded by the application from it, and performs a look-up operation on the locally preset custom NC list according to the obtained NC parameter to obtain the marking information that can mark whether the current NC parameter is consistent with the system NC parameter at the same position in the system NC list in the operating system, so as to timely identify whether the NC parameter uploaded by the application conflicts with the system NC parameter.
[0144] In addition, when the SDK determines that there is no conflict between the NC parameters uploaded by the application and the system NC parameters, it directly sends the NC parameters uploaded by the application to the operating system, so that the operating system can match a suitable DDN, and then bind the user requirements to the required slice capabilities through the DDN; when the SDK determines that there is a conflict between the NC parameters uploaded by the application and the system NC parameters, it modifies the NC parameters uploaded by the application to preset NC parameters. Specifically, it modifies the NC parameters uploaded by the application to the "NET_CAPABILITY_INTERNET" parameter, and sends the modified NC parameters to the operating system, so that the operating system can match a suitable DDN according to the preset NC parameters, and then bind the user requirements to the required slice capabilities through the DDN. In this way, when there is a conflict in the NC parameters, the network connection establishment request initiated by the application can still be successfully established, solving the problem that when there is a conflict in the existing NC parameters, the operating system cannot work properly, and thus the network connection establishment request initiated by the application cannot be established.
[0145] In addition, it should be noted that in this embodiment, the APP that uploads the NC parameters, the SDK that receives the NC parameters, and the operating system that finally performs the network connection establishment operation are all located on the same device. That is, the management method of the network capability parameters provided in this embodiment can detect the conflict of the NC parameters without relying on other third-party devices, and when detecting the conflict of the NC parameters, it adjusts the NC parameters sent to the operating system, thus ensuring that when there is a conflict in the NC parameters, the network connection establishment request initiated by the APP can also be completed.
[0146] See Figure 3 , Figure 3 is the flowchart of the management method of the network capability parameters provided by the embodiment of the present invention. This embodiment is substantially the same as the Figure 1 or Figure 2 corresponding method embodiment. The main difference is that when it is determined according to the marking information that the NC parameters reported by the APP are inconsistent with the system NC parameters at the same position in the system NC list and the preset NC parameters are sent to the operating system, the APP will also be reported the conflict of the NC parameters, so that the APP directly transmits the preset NC parameters to the operating system before the conflict of the NC parameters is resolved.
[0147] For the sake of convenience of description, this embodiment is based on the management method of the network capability parameters provided by the Figure 2 given embodiment and makes the above improvements.
[0148] As Figure 3 shown, the management method of the network capability parameters provided in this embodiment includes the following steps:
[0149] Step 301: Obtain the system network capability NC list from the operating system.
[0150] Step 302: Match the system NC parameters in the system NC list with the custom NC parameters in the custom NC list preset in the SDK.
[0151] Step 303: According to the matching result, add marking information to the custom NC parameters in the custom NC list and update the custom NC list.
[0152] Step 304: Receive the NC parameters uploaded by the application.
[0153] Step 305: According to the NC parameters, search the custom NC list to obtain the marking information corresponding to the custom NC parameters matched by the NC parameters.
[0154] Step 306: If it is determined according to the marking information that the NC parameters are consistent with the system NC parameters at the same position in the system NC list, send the NC parameters to the operating system.
[0155] It is not difficult to find that steps 301 to 306 in this embodiment are substantially the same as steps 201 to 206 in the Figure 2 corresponding embodiment. Therefore, the implementation of steps 301 to 306 can refer to the description in steps 201 to 206. To avoid repetition, it will not be elaborated here.
[0156] Step 307: If it is determined according to the marking information that the NC parameters are inconsistent with the system NC parameters at the same position in the system NC list, send the preset NC parameters to the operating system, report the NC parameter conflict to the application, and supply the application to directly transmit the preset NC parameters to the operating system before the NC parameter conflict is resolved.
[0157] Furthermore, in practical applications, after determining the NC parameter conflict and reporting the NC parameter conflict to the APP, it is also possible to monitor whether the system NC list of the operating system has been updated.
[0158] Correspondingly, if the system NC list has been updated, obtain the system NC list from the operating system again.
[0159] It is understandable that the system NC list re-obtained here is actually the updated system NC list.
[0160] Then, match the updated system NC list with the custom NC list, and further determine whether the NC parameter conflict is resolved according to the matching result.
[0161] Specifically, if it is found through matching that the current NC parameter with NC parameter conflict is the same as the system NC parameter, it is considered that the NC parameter conflict has been resolved. At this time, a message indicating that the NC parameter conflict has been resolved can be reported to the APP, so that when the APP initiates a network connection establishment request, it can send the parameter "NET_CAPABILITY_INTERNET" to the operating system and transmit the actual corresponding NC parameter to the SDK.
[0162] Step 308, if it is determined according to the marking information that the NC parameter carries an available identifier, send the NC parameter to the operating system.
[0163] It is not difficult to find that step 308 in this embodiment is substantially the same as Figure 2 step 208 in the corresponding embodiment. Therefore, the implementation of step 308 can refer to the description in step 208. To avoid repetition, it will not be elaborated here.
[0164] For ease of understanding, the following takes Figure 4 the relationship between the application program, software development tool, and operating system given as an example, and combines Figure 5 the interaction schematic diagram given to specifically illustrate the network capability parameter management method provided in this embodiment:
[0165] Specifically, before the software development kit (SDK) starts to identify whether the NC parameters uploaded by the application program (APP) conflict with the system NC parameters, that is, before receiving the NC parameters uploaded by the application program, it first obtains the system NC list from the operating system, and then matches the system NC parameters in the obtained system NC list with the custom NC parameters at the same position in the custom NC list pre-stored in the SDK, so as to obtain the marking information of each NC parameter in the custom NC list, so as to determine whether the corresponding NC parameter conflicts with the system NC parameter according to the marking information subsequently.
[0166] Next, after completing the above matching operation and obtaining the custom NC list recording the marking information of each NC parameter, the main process of the network capability parameter management method provided in this embodiment can be entered.
[0167] Specifically, at this stage, by monitoring whether the application program calls the corresponding API interface, if the corresponding API interface is called, and the NC parameters uploaded when the application program initiates a network connection establishment request are obtained from the API interface, and then according to the obtained NC parameters, the custom NC list recording the marking information of each NC parameter obtained above is searched, so as to obtain the marking information corresponding to the NC parameters uploaded by the application program.
[0168] Next, determine whether the current NC parameter conflicts with the system NC parameter according to the found marker information. If there is no conflict, that is, the current NC parameter is the same as the system NC parameter at the same position in the system NC list, the SDK can directly send the received NC parameter to the operating system; if there is a conflict, that is, the current NC parameter is different from the system NC parameter at the same position in the system NC list, the SDK directly sends the preset NC parameter, that is, the "NET_CAPABILITY_INTERNET" parameter, to the operating system, and reports the NC parameter conflict to the APP at the same time, so that the APP can directly transmit the preset NC parameter, that is, the "NET_CAPABILITY_INTERNET" parameter, to the operating system during the NC parameter conflict period.
[0169] In addition, after the SDK reports the NC parameter conflict to the APP, it continues to monitor whether the system NC list of the operating system is updated.
[0170] Correspondingly, after monitoring the update of the system NC list of the operating system, obtain the updated system NC list from the operating system, and match the custom NC list with the updated system NC list, so as to determine whether the problem of NC parameter conflict has been solved.
[0171] Correspondingly, if the NC parameter conflict has been resolved, report to the APP that the NC parameter conflict has been resolved, so that the APP can resume sending the actual corresponding NC parameter to the SDK normally.
[0172] Thus, in the network capability parameter management method provided in this embodiment, when the SDK determines that there is a conflict between the current NC parameter reported by the APP and the system NC parameter at the same position, while sending the preset "NET_CAPABILITY_INTERNET" parameter to the operating system to ensure that the network connection establishment request initiated by the APP can be normally established, by reporting the NC parameter conflict to the APP, the APP can know that the currently reported NC parameter conflicts with the system NC parameter, that is, the operating system cannot implement the network connection establishment request according to the current NC parameter. If you want to ensure the network connection establishment, you need to transmit the preset "NET_CAPABILITY_INTERNET" parameter to the operating system.
[0173] In addition, since the APP has been informed that there is an abnormality between the currently reported NC parameter and the system NC parameter, during the NC parameter conflict period, by setting the APP to directly transmit the preset "NET_CAPABILITY_INTERNET" parameter to the operating system after receiving the NC parameter conflict reported by the SDK, without having to go through the SDK for processing, it also effectively reduces the occupation of SDK resources.
[0174] SeeFigure 6 , Figure 6 is a structural diagram of a functional module involved in a management device for network capability parameters provided by an embodiment of the present invention.
[0175] As Figure 6 shown, the management device 600 for network capability parameters provided in this embodiment includes: a system network capability list acquisition module 601, a network capability parameter matching module 602, and a custom network capability list update module 603.
[0176] Among them, the system network capability list acquisition module 601 is used to obtain a system network capability NC list from the operating system; the network capability parameter matching module 602 is used to match the system NC parameters in the system NC list with the custom NC parameters in a preset custom NC list in the SDK; the custom network capability list update module 603 is used to add marking information to the custom NC parameters in the custom NC list according to the matching result and update the custom NC list.
[0177] It should be noted that in this embodiment, the marking information is used to identify whether the custom NC parameter is consistent with the system NC parameter.
[0178] Optionally, in an example, the network capability parameter matching module 602 is specifically used to traverse the system NC list and the custom NC list respectively; match the system NC parameter and the custom NC parameter at the same position obtained by traversing.
[0179] Optionally, in an example, the system network capability list acquisition module 601 is specifically used to call the getAllNetworks() interface to obtain all the system NC parameters supported by the operating system from the NetworkCapabilities class of the operating system and generate the system NC list.
[0180] Optionally, in an example, the management device 600 for network capability parameters further includes: a network capability parameter receiving module, a marking information searching module, and a network capability parameter sending module ( Figure 6 not shown in all).
[0181] Specifically, the network capability parameter receiving module is configured to receive the NC parameters uploaded by the application; the marking information searching module is configured to search the custom NC list according to the NC parameters to obtain the marking information corresponding to the custom NC parameters matched by the NC parameters; the network capability parameter sending module is configured to send the NC parameters to the operating system when it is determined according to the marking information that the NC parameters are consistent with the system NC parameters at the same position in the system NC list; and send the NC parameters to the operating system when it is determined according to the marking information that the NC parameters carry an available identifier; and send the NC parameters to the operating system when it is determined according to the marking information that the NC parameters carry an available identifier.
[0182] Optionally, in another example, the network capability parameter management device 600 further includes: a conflict reporting module ( Figure 6 not shown in the figure).
[0183] Specifically, the conflict reporting module is configured to report the NC parameter conflict to the application, so that the application can directly transmit the preset NC parameters to the operating system before the NC parameter conflict is resolved.
[0184] In addition, the system network capability list obtaining module 601 is further configured to obtain the updated system NC list from the operating system; the network capability parameter matching module is further configured to match the updated system NC list with the custom NC list; the conflict reporting module is further configured to determine whether the NC parameter conflict is resolved according to the matching result, and report to the application when the NC parameter conflict has been resolved, for the application to upload the NC parameters to the SDK.
[0185] Thus, before the application initiates a network connection establishment request and uploads the NC parameters, the network capability parameter management device provided by the embodiment of the present invention compares the custom NC parameters in the custom NC list preset locally in the SDK with the system NC parameters in the system NC list obtained from the operating system, and then obtains the marking information of each custom NC parameter in the custom NC list, so that after receiving the NC parameters uploaded by the application subsequently, it can directly determine whether the currently uploaded NC parameters of the application conflict with the system NC parameters according to the marking information of the NC parameters in the custom NC list, achieving timely discovery of NC parameter conflicts for timely resolution.
[0186] In addition, for the management device of network capability parameters provided by the embodiments of the present invention, when an application requests to establish a network connection, that is, when a network connection establishment request is initiated, the network capability parameter receiving module intercepts the request, obtains the NC parameters uploaded by the application from it, and the marking information searching module performs a look-up operation on the locally preset custom NC list according to the obtained NC parameters to obtain marking information that can mark whether the current NC parameters are consistent with the system NC parameters at the same position in the system NC list in the operating system, so that it can be timely identified whether the NC parameters uploaded by the application conflict with the system NC parameters.
[0187] In addition, when the marking information searching module identifies that the NC parameters uploaded by the application do not conflict with the system NC parameters, the network capability parameter sending module directly sends the NC parameters uploaded by the application to the operating system, so that the operating system can match a suitable DDN, and then realizes the binding of user requirements and the required slice capabilities through the DDN; while when the marking information searching module identifies that the NC parameters uploaded by the application conflict with the system NC parameters, the network capability parameter sending module modifies the NC parameters uploaded by the application to preset NC parameters. Specifically, the NC parameters uploaded by the application are modified to the "NET_CAPABILITY_INTERNET" parameter, and the modified NC parameters are sent to the operating system, so that the operating system can match a suitable DDN according to the preset NC parameters, and then realizes the binding of user requirements and the required slice capabilities through the DDN. In this way, it is ensured that when there is a conflict in the NC parameters, the network connection establishment request initiated by the application can still be normally established, solving the problem that when there is a conflict in the existing NC parameters, the operating system cannot work properly, and further causing the network connection establishment request initiated by the application not to be established.
[0188] In addition, it is not difficult to find that this embodiment is a device embodiment corresponding to the above method embodiment, and this embodiment can be implemented in cooperation with the above method embodiment. The relevant technical details mentioned in the above method embodiment are still valid in this embodiment. To avoid repetition, they will not be elaborated here. Correspondingly, the relevant technical details mentioned in this embodiment can also be applied to the above method embodiment.
[0189] In addition, it should be noted that the division of units in the embodiments of the present invention is illustrative, only a logical function division, and there may be other division methods in actual implementation. In addition, in each embodiment of the present invention, the functional units can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above integrated units can be implemented in the form of hardware or in the form of software functional units.
[0190] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a processor-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs that can store program codes.
[0191] See Figure 7 , Figure 7 is the structural diagram of the management device for network capability parameters provided by an embodiment of the present invention.
[0192] It can be understood that the management device for network capability parameters mentioned in this embodiment essentially refers to the device on the base station side, and can be equivalent to the base station in actual applications.
[0193] Since the principle of solving problems on the base station side is similar to the method for managing network capability parameters given in the above embodiments, the implementation of the management device for network capability parameters provided in this embodiment can refer to the method embodiments provided in the above embodiments, and the repeated parts will not be elaborated.
[0194] Such as Figure 7 shown, the management device for network capability parameters of an embodiment of the present invention includes: a processor 701 and a transceiver 702.
[0195] Among them, the processor 701 is used to control the transceiver 702 to obtain a system network capability NC list from the operating system; match the system NC parameters in the system NC list with the custom NC parameters in a preset custom NC list in the SDK; according to the matching result, add marking information to the custom NC parameters in the custom NC list, and update the custom NC list.
[0196] It should be noted that in this embodiment, the marking information is used to identify whether the custom NC parameters are consistent with the system NC parameters.
[0197] The transceiver 702 is used to obtain a system network capability NC list from the operating system under the control of the processor 701.
[0198] Among them, in Figure 7Among them, the bus architecture may include any number of interconnected buses and bridges, specifically linked together by various circuits of one or more processors represented by processor 701. The bus architecture may also link together various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art, and thus will not be further described herein. The bus interface provides an interface. The transceiver 702 may be a plurality of components, that is, including a transmitter and a transceiver, and provides a unit for communicating with various other devices on the transmission medium. The processor 701 is responsible for managing the bus architecture and general processing.
[0199] The processor 701 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or a complex programmable logic device (CPLD). The processor may also adopt a multi-core architecture.
[0200] In addition, the processor 701 is further configured to traverse the system NC list and the custom NC list respectively; and match the system NC parameters and the custom NC parameters located at the same position after traversal.
[0201] In addition, when there are still unmatched NC parameters in the custom NC list, the processor 701 is further configured to add an available identifier to the unmatched custom NC parameters to obtain the marking information corresponding to the unmatched custom NC parameters.
[0202] In addition, the processor 701 is further configured to call the getAllNetworks() interface to obtain all the system NC parameters supported by the operating system from the NetworkCapabilities class of the operating system, and generate the system NC list.
[0203] In addition, the processor 701 controls the transceiver 702 to receive the NC parameters uploaded by the application program; according to the NC parameters, searches the custom NC list to obtain the marker information corresponding to the custom NC parameter that matches the NC parameters; if it is determined according to the marker information that the NC parameters are consistent with the system NC parameters at the same position in the system NC list, controls the transceiver 702 to send the NC parameters to the operating system; if it is determined according to the marker information that the NC parameters are inconsistent with the system NC parameters at the same position in the system NC list, controls the transceiver 702 to send the preset NC parameters to the operating system; if it is determined according to the marker information that the NC parameters carry an available identifier, controls the transceiver 702 to send the NC parameters to the operating system.
[0204] In addition, the transceiver 702 is further configured to, under the control of the processor 701, receive the NC parameters uploaded by the application program; when the processor 701 determines according to the marker information that the NC parameters are consistent with the system NC parameters at the same position in the system NC list, send the NC parameters to the operating system; when the processor 701 determines according to the marker information that the NC parameters are inconsistent with the system NC parameters at the same position in the system NC list, send the preset NC parameters to the operating system; when the processor 701 determines according to the marker information that the NC parameters carry an available identifier, send the NC parameters to the operating system.
[0205] In addition, the processor 701 is further configured to control the transceiver 702 to report NC parameter conflicts to the application program, so that the application program directly transmits the preset NC parameters to the operating system before the NC parameter conflicts are resolved.
[0206] In addition, the transceiver 702 is further configured to, under the control of the processor 701, report NC parameter conflicts to the application program, so that the application program directly transmits the preset NC parameters to the operating system before the NC parameter conflicts are resolved.
[0207] In addition, the processor 701 is further configured to control the transceiver 702 to obtain the updated system NC list from the operating system; match the updated system NC list with the custom NC list; determine whether the NC parameter conflicts are resolved according to the matching result; if the NC parameter conflicts have been resolved, control the transceiver 702 to report to the application program for the application program to upload the NC parameters to the SDK.
[0208] In addition, the transceiver 702 is further configured to obtain the updated system NC list from the operating system under the control of the processor 701; when the processor 701 determines that the NC parameter conflict has been resolved, report it to the application program for the application program to upload the NC parameter to the SDK.
[0209] Since the network capability parameter management device provided by the embodiment of the present invention can execute the above method embodiment, and its implementation principle and technical effect are similar, they will not be elaborated here in this embodiment.
[0210] See Figure 8 , Figure 8 which is the structural diagram of the network capability parameter management device provided by the embodiment of the present invention.
[0211] It can be understood that the network capability parameter management device mentioned in this embodiment actually refers to the device of the client, and in practical applications, it can be any terminal device installed with an application program and capable of accessing the network.
[0212] Since the principle of the client device to solve problems is similar to the network capability parameter management method given in the above embodiments of the present invention, the implementation of the network capability parameter management device provided in this embodiment can refer to the method embodiments provided in the above embodiments, and the repeated parts will not be elaborated.
[0213] Such as Figure 8 shown, the network capability parameter management device of the embodiment of the present invention includes: a processor 801, a transceiver 802, a memory 803, and a user interface 804.
[0214] The processor 801 is configured to read the program in the memory 803 and execute the following processes:
[0215] Obtain the system network capability NC list from the operating system through the transceiver 802;
[0216] Match the system NC parameters in the system NC list with the custom NC parameters in the custom NC list preset in the SDK;
[0217] According to the matching result, add marking information to the custom NC parameters in the custom NC list and update the custom NC list.
[0218] It should be noted that in this embodiment, the marking information is used to identify whether the custom NC parameter is consistent with the system NC parameter.
[0219] The transceiver 802 is configured to obtain the system network capability NC list from the operating system under the control of the processor 801.
[0220] Among them, inFigure 8 Among them, the bus architecture may include any number of interconnected buses and bridges, specifically, various circuits represented by one or more processors represented by processor 801 and a memory represented by memory 803 are linked together. The bus architecture may also link together various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art, and thus will not be further described herein. The bus interface provides an interface. The transceiver 802 may be a plurality of components, that is, including a transmitter and a transceiver, and provides a unit for communicating with various other devices on the transmission medium. For different user devices, the user interface 804 may also be an interface capable of externally connecting and internally connecting required devices, and the connected devices include but are not limited to a keypad, a display, a speaker, a microphone, a joystick, etc.
[0221] The processor 801 is responsible for managing the bus architecture and general processing, and the memory 803 may store data used by the processor 801 when performing operations.
[0222] The processor 801 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or a complex programmable logic device (CPLD), and the processor may also adopt a multi-core architecture.
[0223] In addition, the processor 801 is further configured to read the program and execute the following steps:
[0224] Traverse the system NC list and the custom NC list respectively;
[0225] Match the system NC parameter and the custom NC parameter that are traversed to the same position.
[0226] In addition, the processor 801 is further configured to read the program and execute the following steps:
[0227] If there are still unmatched NC parameters in the custom NC list, add an available identifier to the unmatched custom NC parameters to obtain the marker information corresponding to the unmatched custom NC parameters.
[0228] In addition, the processor 801 is further configured to read the program and execute the following steps:
[0229] Call the getAllNetworks() interface to obtain all the system NC parameters supported by the operating system from the NetworkCapabilities class of the operating system, and generate the system NC list.
[0230] In addition, the processor 801 is further configured to read the program and execute the following steps:
[0231] Control the transceiver 802 to receive the NC parameters uploaded by the application program;
[0232] According to the NC parameters, search the custom NC list to obtain the marking information corresponding to the custom NC parameters that match the NC parameters;
[0233] If it is determined according to the marking information that the NC parameters are consistent with the system NC parameters at the same position in the system NC list, control the transceiver 802 to send the NC parameters to the operating system;
[0234] If it is determined according to the marking information that the NC parameters are inconsistent with the system NC parameters at the same position in the system NC list, control the transceiver 802 to send the preset NC parameters to the operating system;
[0235] If it is determined according to the marking information that the NC parameters carry an available identifier, control the transceiver 802 to send the NC parameters to the operating system.
[0236] In addition, the transceiver 802 is configured to execute the following steps under the control of the processor 801:
[0237] When the processor 801 determines according to the marking information that the NC parameters are consistent with the system NC parameters at the same position in the system NC list, send the NC parameters to the operating system;
[0238] When the processor 801 determines according to the marking information that the NC parameters are inconsistent with the system NC parameters at the same position in the system NC list, send the preset NC parameters to the operating system;
[0239] When the processor 801 determines according to the marking information that the NC parameters carry an available identifier, send the NC parameters to the operating system.
[0240] In addition, the processor 801 is further configured to read the program and execute the following steps:
[0241] Control the transceiver 802 to report NC parameter conflicts to the application program, so that the application program can directly transmit the preset NC parameters to the operating system before resolving the NC parameter conflicts.
[0242] In addition, a transceiver 802 is configured to perform the following steps under the control of a processor 801:
[0243] Report an NC parameter conflict to the application program, so that the application program directly transmits the preset NC parameters to the operating system before the NC parameter conflict is resolved.
[0244] In addition, the processor 801 is further configured to read the program and perform the following steps:
[0245] Control the transceiver 801 to obtain the updated system NC list from the operating system;
[0246] Match the updated system NC list with the custom NC list;
[0247] Determine whether the NC parameter conflict is resolved according to the matching result;
[0248] If the NC parameter conflict has been resolved, control the transceiver 801 to report to the application program for the application program to upload the NC parameters to the SDK.
[0249] In addition, the transceiver 802 is further configured to perform the following steps under the control of the processor 801:
[0250] Obtain the updated system NC list from the operating system;
[0251] When the processor 801 determines that the NC parameter conflict has been resolved, report to the application program for the application program to upload the NC parameters to the SDK.
[0252] Since the network capability parameter management device provided by the embodiments of the present invention can execute the above method embodiments, and the implementation principles and technical effects are similar, they will not be elaborated here in this embodiment.
[0253] Embodiments of the present invention further provide a storage medium, which is a readable storage medium for storing a program, and the program can be executed by a processor to implement the following steps:
[0254] Obtain a system network capability NC list from an operating system;
[0255] Match the system NC parameters in the system NC list with the custom NC parameters in a preset custom NC list in an SDK;
[0256] According to the matching result, add marking information to the custom NC parameters in the custom NC list and update the custom NC list;
[0257] Among them, the marking information is used to identify whether the custom NC parameters are consistent with the system NC parameters.
[0258] In addition, the program can also be processed and executed to implement the following steps:
[0259] Traverse the system NC list and the custom NC list respectively;
[0260] Match the system NC parameters and the custom NC parameters at the same position obtained by traversal.
[0261] In addition, the program can also be processed and executed to implement the following steps:
[0262] If there are still unmatched custom NC parameters in the custom NC list, add an available identifier to the unmatched custom NC parameters to obtain the marking information corresponding to the unmatched custom NC parameters.
[0263] In addition, the program can also be processed and executed to implement the following steps:
[0264] Receive the NC parameters uploaded by the application program;
[0265] According to the NC parameters, search the custom NC list to obtain the marking information corresponding to the custom NC parameters matched by the NC parameters;
[0266] If it is determined according to the marking information that the NC parameters are consistent with the system NC parameters at the same position in the system NC list, send the NC parameters to the operating system;
[0267] If it is determined according to the marking information that the NC parameters are inconsistent with the system NC parameters at the same position in the system NC list, send the preset NC parameters to the operating system;
[0268] If it is determined according to the marking information that the NC parameters carry an available identifier, send the NC parameters to the operating system.
[0269] In addition, the program can also be processed and executed to implement the following steps:
[0270] Report NC parameter conflicts to the application program, so that the application program can directly transmit the preset NC parameters to the operating system before resolving the NC parameter conflicts.
[0271] In addition, the program can also be processed and executed to implement the following steps:
[0272] Obtain the updated system NC list from the operating system;
[0273] Match the updated system NC list with the custom NC list;
[0274] Determine whether the NC parameter conflict is resolved according to the matching result;
[0275] If the NC parameter conflict has been resolved, report it to the application for the application to upload the NC parameters to the SDK.
[0276] It should be noted that in this article, the terms "including", "comprising" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the presence of additional identical elements in the process, method, article or device including that element.
[0277] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as ROM / RAM, disk, optical disc) and includes several instructions for causing a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0278] The embodiments of the present invention have been described above in conjunction with the accompanying drawings. However, the present invention is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Under the inspiration of the present invention, those of ordinary skill in the art can also make many forms without departing from the spirit and scope protected by the claims of the present invention, and all of them belong to the protection scope of the present invention.
Claims
1. A method for managing network capability parameters, characterized in that, applied to a software development kit (SDK), it includes: Obtaining a system network capability (NC) list from the operating system; Matching the system NC parameters in the system NC list with the custom NC parameters in a preset custom NC list in the SDK; According to the matching result, adding marking information to the custom NC parameters in the custom NC list and updating the custom NC list; wherein, the marking information is used to identify whether the custom NC parameter is consistent with the system NC parameter.
2. The method according to claim 1, characterized in that, The matching of the system NC parameters in the system NC list with the custom NC parameters in the preset custom NC list in the SDK includes: Traversing the system NC list and the custom NC list respectively; Matching the system NC parameter and the custom NC parameter at the same position traversed.
3. The method according to claim 2, characterized in that, After the matching of the system NC parameter and the NC parameter at the same position traversed, the method further includes: If there are still unmatched custom NC parameters in the custom NC list, adding an available identifier to the unmatched custom NC parameters to obtain the marking information corresponding to the unmatched custom NC parameters.
4. The method according to claim 1, characterized in that, The obtaining of the system NC list from the operating system includes: Invoking the getAllNetworks() interface to obtain all the system NC parameters supported by the operating system from the NetworkCapabilities class of the operating system and generating the system NC list.
5. The method according to any one of claims 1 to 4, characterized in that, After adding the marking information to the custom NC parameters in the custom NC list and updating the custom NC list according to the matching result, the method further includes: Receiving NC parameters uploaded by an application; According to the NC parameters, searching the custom NC list to obtain the marking information corresponding to the custom NC parameter matched by the NC parameters; If it is determined according to the marking information that the NC parameter is consistent with the system NC parameter at the same position in the system NC list, sending the NC parameter to the operating system; If it is determined according to the marking information that the NC parameter is inconsistent with the system NC parameter at the same position in the system NC list, sending preset NC parameters to the operating system; If it is determined according to the marking information that the NC parameter carries an available identifier, sending the NC parameter to the operating system.
6. The method according to claim 5, characterized in that, If it is determined according to the marking information that the NC parameter is inconsistent with the NC parameter at the same position in the system NC list, the method further includes: Report the NC parameter conflict to the application, so that the application can directly transmit the preset NC parameters to the operating system before resolving the NC parameter conflict.
7. The method according to claim 6, wherein, after reporting the NC parameter conflict to the application, the method further includes: Obtain the updated system NC list from the operating system; Match the updated system NC list with the custom NC list; Determine whether the NC parameter conflict is resolved according to the matching result; If the NC parameter conflict has been resolved, report it to the application for the application to upload the NC parameters to the SDK.
8. A management device for network capability parameters, wherein, comprising: A system network capability list acquisition module, configured to obtain a system network capability NC list from an operating system; A network capability parameter matching module, configured to match the system NC parameters in the system NC list with the custom NC parameters in a preset custom NC list in an SDK; A custom network capability list update module, configured to add mark information to the custom NC parameters in the custom NC list and update the custom NC list according to the matching result; wherein, the mark information is used to identify whether the custom NC parameter is consistent with the system NC parameter.
9. A management device for network capability parameters, comprising: A processor and a transceiver; wherein, The processor is configured to control the transceiver to obtain a system network capability NC list from an operating system; match the system NC parameters in the system NC list with the custom NC parameters in a preset custom NC list in an SDK; according to the matching result, add mark information to the custom NC parameters in the custom NC list and update the custom NC list; wherein, the mark information is used to identify whether the custom NC parameter is consistent with the system NC parameter; The transceiver is configured to obtain a system network capability NC list from an operating system under the control of the processor.
10. A management device for network capability parameters, comprising: A transceiver, a memory, a processor, and a program stored on the memory and executable on the processor; wherein, the processor is configured to read the program in the memory to implement the steps in the management method for network capability parameters according to any one of claims 1 to 7.
11. A readable storage medium for storing a program, wherein, the program, when executed by a processor, implements the steps in the management method for network capability parameters according to any one of claims 1 to 7.
Citation Information
Patent Citations
Method and system for automatically matching web application with terminal and network side equipment
CN102339285A
Communication network power opening system and communication network power opening method
CN106357709A