Network starting method and device, computer equipment and computer readable storage medium
By receiving the startup command of the network function and determining the channel information, selecting different channels to start the first network function, solving the problem of channel interference of the network module in the terminal device and improving network stability and efficiency.
Patent Information
- Application Number
- CN202411341723.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2024-12-27
AI Technical Summary
When different network modules work simultaneously in terminal devices, channel interference is prone to occur.
通过接收网络功能的启动指令,确定各网络功能的开启状态及信道信息,选择不同的信道以启动第一网络功能,确保不同网络模块工作在不同的信道上。
It effectively avoids channel interference between different network modules and improves the stability and efficiency of network functions.
Smart Images

Figure CN119212045A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a network startup method, device, computer equipment, and computer-readable storage medium. Background Art
[0002] The terminal device can realize different network functions through different network modules. For example, the terminal device is equipped with two wifi chips at the same time. One wifi chip can realize the station (sta) function and peer-to-peer (p2p) function, and the other wifi chip can realize the access point (ap) function.
[0003] However, the physical distances between different network modules on the same terminal device are usually close. When different network modules work on the same channel at the same time, channel interference occurs between the different network modules. Summary of the invention
[0004] The embodiments of the present application provide a network startup method, apparatus, computer device, and computer-readable storage medium, which can enable different network modules to operate in different channels and avoid channel interference between different network modules.
[0005] The technical solution adopted by the present invention to solve the problem is as follows:
[0006] In a first aspect, the present application provides a network startup method, which is applied to a terminal device, wherein the terminal device includes at least three network functions, and the at least three network functions are respectively implemented by at least two different network modules, and the method includes:
[0007] receiving a start instruction of a first network function of at least three network functions, and determining the start status and corresponding channel information of other network functions of the at least three network functions;
[0008] Determine, according to the activation status of other network functions and corresponding channel information, a first channel for activating the first network function;
[0009] Among them, when the second network function among other network functions is turned on, and the second network function and the first network function are implemented through different network modules, the first channel is different from the second channel corresponding to the second network function.
[0010] In some embodiments of the present application, the other network functions further include a third network function, the first network function and the third network function are implemented by the first network module, the second network function is implemented by the second network module, and determining the activation status of other network functions among the at least three network functions and the corresponding channel information includes:
[0011] Determine whether the third network function is enabled;
[0012] If the third network function is not enabled, determining whether the second network function is enabled;
[0013] If the second network function is enabled, obtaining a second channel corresponding to the second network function;
[0014] Correspondingly, determining the first channel for starting the first network function according to the activation status of other network functions and corresponding channel information includes:
[0015] Based on the second channel, a first channel for starting the first network function is determined; the first channel and the second channel are different channels.
[0016] In some implementation schemes of the present application, after determining whether the third network function is enabled, the method further includes:
[0017] If the third network function is enabled, obtaining a third channel corresponding to the third network function;
[0018] Based on the third channel, the first network function is started.
[0019] In some implementation schemes of the present application, when the first network function is a point-to-point function, after determining whether the second network function is enabled, the method further includes:
[0020] If the second network function is not enabled, determining the first channel corresponding to the first network function based on the negotiation information between the terminal device and the screen projection device;
[0021] Based on the first channel, a first network function is started.
[0022] In some embodiments of the present application, the other network functions further include a third network function, the first network function is implemented by the first network module, the second network function and the third network function are implemented by the second network module, and determining the activation status of other network functions among the at least three network functions and the corresponding channel information includes:
[0023] Determine whether the second network function is enabled;
[0024] If the second network function is not enabled, determining whether the third network function is enabled;
[0025] If the third network function is enabled, obtaining a third channel corresponding to the third network function;
[0026] Correspondingly, determining the first channel for starting the first network function according to the activation status of other network functions and corresponding channel information includes:
[0027] Based on the third channel, a first channel for starting the first network function is determined; the first channel and the third channel are different channels.
[0028] In some implementation schemes of the present application, after determining whether the second network function is enabled, the method further includes:
[0029] If the second network function is enabled, obtaining a second channel corresponding to the second network function;
[0030] Based on the second channel, a first channel for starting the first network function is determined; the first channel and the second channel are different channels.
[0031] In some implementation schemes of the present application, when the first network function is a point-to-point function, after determining whether the third network function is enabled, the method further includes:
[0032] If the third network function is not enabled, determining the first channel corresponding to the first network function based on the negotiation information between the terminal device and the screen projection device;
[0033] Based on the first channel, a first network function is started.
[0034] In some embodiments of the present application, determining whether the third network function is enabled includes:
[0035] Obtaining identification information corresponding to the third network function;
[0036] If the identification information corresponding to the third network function meets the first preset condition, it is confirmed that the third network function is enabled.
[0037] In some embodiments of the present application, determining whether the second network function is enabled includes:
[0038] Obtaining identification information corresponding to the second network function;
[0039] If the identification information corresponding to the second network function meets the second preset condition, it is confirmed that the second network function is enabled.
[0040] In a second aspect, an embodiment of the present invention further provides a network startup device, which is applied to a terminal device, wherein the terminal device includes at least three network functions, and the at least three network functions are respectively implemented by at least two different network modules, and the network startup device includes:
[0041] A first determining module is used to receive a start instruction of a first network function of at least three network functions, and determine the start status and corresponding channel information of other network functions among the at least three network functions;
[0042] A second determining module, configured to determine a first channel for starting the first network function according to the activation status of other network functions and corresponding channel information;
[0043] Among them, when the second network function among other network functions is turned on, and the second network function and the first network function are implemented through different network modules, the first channel is different from the second channel corresponding to the second network function.
[0044] In a third aspect, the present application further provides a computer device, the computer device comprising:
[0045] one or more processors;
[0046] Memory; and
[0047] One or more applications, wherein the one or more applications are stored in a memory and configured to be executed by a processor to implement any network startup method in the first aspect.
[0048] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and the computer program is loaded by a processor to execute the steps in any one of the network startup methods in the first aspect.
[0049] The beneficial effects of the present invention are as follows: by receiving a startup instruction of a first network function of at least three network functions, determining the startup status and corresponding channel information of other network functions among the at least three network functions, and determining a first channel for starting the first network function according to the startup status and corresponding channel information of the other network functions, different network modules can be made to work in different channels, thereby avoiding channel interference between different network modules. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0051] Figure 1 is a schematic diagram of the structure of a terminal device provided by an embodiment of the present invention;
[0052] Figure 2 It is a flowchart of an embodiment of a network startup method provided by an embodiment of the present invention;
[0053] Figure 3 It is a flowchart of an embodiment of determining the opening state and channel information provided by an embodiment of the present invention;
[0054] Figure 4is a flowchart of another embodiment of determining the opening state and channel information provided by an embodiment of the present invention;
[0055] Figure 5 It is a principle block diagram of an embodiment of a network startup device provided by an embodiment of the present invention;
[0056] Figure 6 It is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0057] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0058] In the description of this application, the terms "first", "second", "third", etc. are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", "third", etc. may explicitly or implicitly include one or more of the features. In the description of this application.
[0059] In this application, the word "exemplary" is used to mean "used as an example, illustration, or description." Any embodiment described in this application as "exemplary" is not necessarily to be construed as being preferred or advantageous over other embodiments. The following description is given to enable any technician in the field to implement and use the present application. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present application can be implemented without using these specific details. In other instances, well-known structures and processes will not be elaborated in detail to avoid obscuring the description of the present application with unnecessary details. Therefore, the present application is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in the present application.
[0060] It should be noted that since the method of the embodiment of the present application is executed in a computer device, the processing objects of each computer device exist in the form of data or information. For example, time is actually time information. It can be understood that if size, quantity, position, etc. are mentioned in subsequent embodiments, they are all corresponding data for processing by the computer device. The details will not be repeated here.
[0061] The embodiments of the present application provide a network startup method, apparatus, computer device, and computer-readable storage medium, which are described in detail below.
[0062] The network startup method provided in the embodiment of the present application is applied to a terminal device, the terminal device includes at least three network functions, and the at least three network functions are respectively implemented by at least two different network modules. Figure 1 , Figure 1 A schematic diagram of a scenario of a terminal device provided in an embodiment of the present application, wherein the terminal device may include a first network module and a second network module, wherein the terminal device implements a first network function and a third network function through the first network module, and wherein the terminal device implements a second network function through the second network module. The first network function, the second network function, and the third network function are different network functions, for example, the first network function may be a station (sta) function, the second network function may be an access point (ap) function, and the third network function may be a peer-to-peer (p2p) function; for another example, the first network function may be a station (sta) function, the second network function may be a peer-to-peer (p2p) function, and the third network function may be an access point (ap) function; for another example, the first network function may be an access point (ap) function, the second network function may be a peer-to-peer (p2p) function, and the third network function may be a station (sta) function, which is not limited in this embodiment. Among them, the sta function (i.e., wireless terminal mode) is the WiFi scanning and connection function used in daily life. The terminal device can enable the sta function by connecting to a hotspot. When the terminal device is connected to the hotspot, the channel corresponding to the sta function is the same as the channel corresponding to the hotspot; the ap function represents the hotspot function; the p2p function represents point-to-point communication or WiFi direct connection function, which can directly establish a TCP / IP link between two stations without the participation of AP. This proposal represents the communication method used by the miracast screen projection function.
[0063] Continue to refer to Figure 1As shown, the terminal device also includes a first network management module, a second network management module, a third network management module, a first functional operation module, a second functional operation module, a first driver module and a second driver module. Among them, the first network management module, the second network management module and the third network management module are used to manage the first network function, the second network function and the third network function respectively, the first functional operation module is the underlying software for operating the first network function and the third network function, the second functional operation module is the underlying software for operating the second network function, the first functional operation module and the second functional operation module can be obtained by programming in C language, the first driver module and the second driver module are drivers of the first network module and the second network module respectively, and the first driver module and the second driver module can directly control various functions of their corresponding network modules.
[0064] For example, the first network module and the second network module are wifi chips, the first driver module and the second driver module are wifi drivers, the first network function is a p2p function, the second network function is an ap function, and the third network function is a sta function, the first network management module is WifiP2pManager, the second network management module is SoftApManeger, the third network management module is WifiManager, the first function operation module is wpa_supplicant, and the second function operation module is hostapd. The first driver module can directly control the sta function and p2p function of the first network module, and the second driver module can directly control the ap function of the second network module.
[0065] The terminal device used in the embodiments of the present application may be a device including both receiving and transmitting hardware, that is, a device having receiving and transmitting hardware capable of performing two-way communication on a two-way communication link. Such a device may include: a cellular or other communication device having a single-line display or a multi-line display or a cellular or other communication device without a multi-line display. The terminal device may specifically be a desktop terminal or a mobile terminal, and the terminal device may specifically be one of a mobile phone, a tablet computer, a laptop computer, etc.
[0066] It should be noted that Figure 1 The scenario diagram of the terminal device shown is only an example. The terminal device and scenario described in the embodiment of the present application are intended to more clearly illustrate the technical solution of the embodiment of the present application, and do not constitute a limitation on the technical solution provided by the embodiment of the present application. It is known to those skilled in the art that with the evolution of terminal devices and the emergence of new business scenarios, the technical solution provided by the embodiment of the present application is also applicable to similar technical problems. For example, Figure 1 The terminal device described includes only two network modules, and the terminal device may also include three or more network modules; for example, Figure 1 The described terminal device implements the first network function and the third network function through the first network module, and implements the second network function through the second network module. The terminal device can also implement the first network function through the first network module, and implement the second network function and the third network function through the second network module.
[0067] First, a network startup method, device, computer equipment and computer-readable storage medium are provided in an embodiment of the present application. The execution subject of the network startup method is a network startup device, and the network startup device is applied to a terminal device. The terminal device includes at least three network functions, and the at least three network functions are respectively implemented by at least two different network modules. The network startup method includes: receiving a startup instruction of a first network function of at least three network functions, determining the activation status and corresponding channel information of other network functions among the at least three network functions; determining a first channel for starting the first network function according to the activation status and corresponding channel information of the other network functions; wherein, when a second network function among the other network functions is activated, and the second network function and the first network function are implemented by different network modules, the first channel is different from the second channel corresponding to the second network function, so that different network modules can work in different channels, thereby avoiding channel interference between different network modules.
[0068] like Figure 2 As shown, it is a flow chart of an embodiment of a network startup method in an embodiment of the present application. The network startup method is applied to a terminal device, and the terminal device includes at least three network functions, and the at least three network functions are respectively implemented by at least two different network modules. The network startup method may include the following steps S201-S202, which are as follows:
[0069] Step S201: receiving a start instruction of a first network function of at least three network functions, and determining the start status and corresponding channel information of other network functions of the at least three network functions.
[0070] In a specific embodiment, at least three network functions include a first network function, and the startup instruction of the first network function is a startup request of the first network function, and the first network function may be an AP function or a P2P function. The startup instruction of the first network function varies with different first network functions. For example, when the first network function is a P2P function, the startup instruction of the first network function may be a miracast screen projection request sent to the terminal device through the screen projection device; when the first network function is an AP function, the startup instruction of the first network function may be a hotspot opening request.
[0071] Furthermore, the other network functions among the at least three network functions refer to the other network functions among the at least three network functions except the first network function. For example, the at least three network functions include AP function, P2P function and STA function. If the first network function is P2P function, the other network functions among the at least three network functions refer to AP function and STA function. For another example, if the first network function is AP function, the other network functions among the at least three network functions refer to P2P function and STA function.
[0072] In a specific embodiment, determining the activation status of other network functions among at least three network functions refers to determining whether the other network functions among at least three network functions are activated. When the network function is activated, the network function will occupy a channel. When receiving a startup instruction of the first network function, this embodiment determines the activation status of other network functions among at least three network functions and corresponding channel information, and activates the first network function based on the activation status of other network functions and the corresponding channel information, thereby avoiding channel interference caused by different network modules using the same channel.
[0073] Step S202: Determine a first channel for starting the first network function according to the start status of other network functions and corresponding channel information.
[0074] In a specific embodiment, the first channel is a channel used to start the first network function. The channel refers to a specific frequency range used to transmit data in a wireless network, that is, a channel formed by a transmission medium through which a signal is transmitted from a transmitting end to a receiving end. This embodiment determines the first channel based on the activation status of other network functions and the corresponding channel information, and starts the first network function based on the first channel, which can avoid channel interference caused by different network modules using the same channel.
[0075] In a specific embodiment, at least three network functions include a second network function in addition to the first network function. When the second network function is enabled and the second network function and the first network function are implemented through different network modules, the first channel is different from the second channel corresponding to the second network function, so that different network modules can work in different channels, thereby avoiding channel interference caused by different network modules using the same channel. For example, the first network function is a p2p function, and the second network function is an ap function. When the ap function is enabled and the ap function and the p2p function are implemented through different network modules, the first channel corresponding to the p2p function is channel 44, and the second channel corresponding to the ap function is channel 149.
[0076] In a specific embodiment, the other network functions include a first network function, a second network function and a third network function, the first network function and the third network function are implemented by the first network module, and the second network function is implemented by the second network module, referring to Figure 3 As shown, determining the activation status of other network functions and corresponding channel information of at least three network functions in the above step S202 may include steps S301-S303, which are specifically as follows:
[0077] S301: Determine whether a third network function is enabled.
[0078] In a specific embodiment, the step of determining whether the third network function is enabled specifically includes: obtaining identification information corresponding to the third network function; if the identification information corresponding to the third network function meets the first preset condition, confirming that the third network function is enabled.
[0079] In this embodiment, the identification information corresponding to the third network function is used to characterize whether the third network function is enabled. When the identification information corresponding to the third network function meets the first preset condition, it is determined that the third network function is enabled; when the identification information corresponding to the third network function does not meet the first preset condition, it is determined that the third network function is not enabled. Among them, the first preset condition can be set as needed. The first preset condition can be that the identification information corresponding to the third network function is not 0, the first preset condition can also be that the identification information corresponding to the third network function is the channel identifier of the third channel corresponding to the third network function, and the first preset condition can also be that the identification information corresponding to the third network function is the preset first reference information, which is not limited in this embodiment. For example, the first preset condition is that the identification information corresponding to the third network function is not 0. When the identification information corresponding to the third network function is not 0, it is determined that the third network function is enabled; when the identification information corresponding to the third network function is 0, it is determined that the third network function is not enabled.
[0080] S302: If the third network function is not enabled, determine whether the second network function is enabled.
[0081] In a specific embodiment, after determining that the third network function is not enabled, further determining whether the second network function is enabled. The step of determining whether the second network function is enabled specifically includes: obtaining identification information corresponding to the second network function; if the identification information corresponding to the second network function meets the second preset condition, confirming that the second network function is enabled.
[0082] In this embodiment, the identification information corresponding to the second network function is used to characterize whether the second network function is enabled. When the identification information corresponding to the second network function meets the second preset condition, it is determined that the second network function is enabled; when the identification information corresponding to the second network function does not meet the second preset condition, it is determined that the second network function is not enabled. Among them, the second preset condition can be set as needed. The second preset condition can be that the identification information corresponding to the second network function is not 0, the second preset condition can also be that the identification information corresponding to the second network function is the channel identification of the second channel corresponding to the second network function, and the second preset condition can also be that the identification information corresponding to the second network function is the preset second reference information, which is not limited in this embodiment. For example, the second preset condition is that the identification information corresponding to the second network function is not 0. When the identification information corresponding to the second network function is not 0, it is determined that the second network function is enabled; when the identification information corresponding to the second network function is 0, it is determined that the second network function is not enabled.
[0083] S303: If the second network function is enabled, obtain a second channel corresponding to the second network function.
[0084] In a specific embodiment, if the third network function is not enabled and the second network function is enabled, a second channel corresponding to the second network function is obtained, and a first channel for enabling the first network function is determined based on the second channel. Different network modules can be enabled to operate in different channels, thereby avoiding channel interference caused by different network modules using the same channel.
[0085] For example, the first network function is the p2p function, the second network function is the ap function, and the third network function is the sta function. After receiving the startup instruction of the p2p function, first determine whether the sta function is turned on. If the sta function is not turned on, determine whether the ap function is turned on. If the ap function is turned on, obtain the second channel corresponding to the ap function.
[0086] For another example, the first network function is the AP function, the second network function is the P2P function, and the third network function is the STA function. After receiving the startup instruction of the AP function, first determine whether the STA function is turned on. If the STA function is not turned on, determine whether the P2P function is turned on. If the P2P function is turned on, obtain the second channel corresponding to the P2P function.
[0087] In a specific embodiment, the step of determining the first channel for starting the first network function based on the activation status of other network functions and the corresponding channel information specifically includes: determining the first channel for starting the first network function based on the second channel; wherein the first channel and the second channel are different channels. For example, if the second channel is channel 149, channel 44 is selected as the first channel.
[0088] In a specific embodiment, after determining whether the third network function is enabled in the above S301, it also includes: if the third network function is enabled, obtaining the third channel corresponding to the third network function; based on the third channel, enabling the first network function. In this embodiment, the first network function and the third network function are implemented by the same network module (i.e., the first network module). If the third network function is enabled, the first network function can be enabled based on the third channel, i.e., the first network function and the third network function use the same channel, so that the network functions on the same network module are enabled using the same channel, which can avoid channel interference between different network modules. For example, the first network function is a p2p function, the second network function is an ap function, and the third network function is a sta function. If the sta function is enabled, the p2p function is enabled based on the channel of the sta function; for another example, the first network function is an ap function, the second network function is a p2p function, and the third network function is a sta function. If the sta function is enabled, the ap function is enabled based on the channel of the sta function.
[0089] In a specific embodiment, in combination Figure 1 As shown, the aforementioned steps mentioned that the terminal device includes a first driver module, and the first driver module can directly control various functions of the first network module. The above-mentioned step of starting the first network function based on the third channel specifically includes: generating a first network startup instruction based on the third channel; sending the first network startup instruction to the first driver module to control the startup of the first network function through the first driver module.
[0090] In a specific embodiment, when the first network function is a point-to-point function (i.e., a p2p function), after determining whether the second network function is enabled in the above S302, it also includes: if the second network function is not enabled, determining the first channel corresponding to the first network function based on the negotiation information between the terminal device and the projection device; and starting the first network function based on the first channel.
[0091] Among them, the screen projection device is a device that sends miracast screen projection to the terminal device. If the first network function is a point-to-point function, and the second network function and the third network function are not enabled, that is, the first network function will not cause channel interference when started in any channel, then the second network function can be enabled by selecting a suitable channel based on the negotiation information between the terminal device and the screen projection device.
[0092] In another specific embodiment, the other network functions include a first network function, a second network function and a third network function, the first network function is implemented by a first network module, and the second network function and the third network function are implemented by a second network module, referring to Figure 4As shown, determining the activation status of other network functions among the at least three network functions and the corresponding channel information in the above step S202 may include steps S401-S403, which are specifically as follows:
[0093] S401: Determine whether the second network function is enabled.
[0094] In a specific embodiment, the step of determining whether the second network function is enabled in step S401 is the same as the step of determining whether the second network function is enabled in the aforementioned step S302. For details, reference may be made to the discussion of the aforementioned step S302. To avoid repetition, this embodiment will not be repeated here.
[0095] S402: If the second network function is not enabled, determine whether the third network function is enabled.
[0096] In a specific embodiment, the step of determining whether the third network function is enabled in step S402 is the same as the step of determining whether the third network function is enabled in the aforementioned step S301. For details, reference may be made to the discussion of the aforementioned step S301. To avoid repetition, this embodiment will not be repeated here.
[0097] S403: If the third network function is enabled, obtain a third channel corresponding to the third network function.
[0098] In a specific embodiment, if the second network function is not enabled and the third network function is enabled, a third channel corresponding to the third network function is obtained, and a first channel for enabling the first network function is determined based on the third channel. Different network modules can be enabled to operate in different channels, thereby avoiding channel interference caused by different network modules using the same channel.
[0099] For example, the first network function is the p2p function, the second network function is the sta function, and the third network function is the ap function. After receiving the startup instruction of the p2p function, first determine whether the sta function is turned on. If the sta function is not turned on, then determine whether the ap function is turned on. If the ap function is turned on, obtain the third channel corresponding to the ap function.
[0100] For another example, the first network function is the AP function, the second network function is the STA function, and the third network function is the P2P function. After receiving the AP function startup instruction, first determine whether the STA function is turned on. If the STA function is not turned on, then determine whether the P2P function is turned on. If the P2P function is turned on, then obtain the third channel corresponding to the P2P function.
[0101] In a specific embodiment, the step of determining the first channel for starting the first network function based on the activation status of other network functions and the corresponding channel information specifically includes: determining the first channel for starting the first network function based on the third channel; the first channel and the third channel are different channels. For example, if the third channel is channel 149, then channel 44 is selected as the first channel.
[0102] In a specific embodiment, after determining whether the second network function is turned on in the above S401, it also includes: if the second network function is turned on, obtaining the second channel corresponding to the second network function; based on the second channel, determining the first channel for starting the first network function; the first channel and the second channel are different channels. In this embodiment, the first network function and the second network function are implemented by different network modules. If the second network function is turned on, a first channel different from the second channel corresponding to the second network function is selected to start the first network function, so that different network modules can work in different channels, thereby avoiding channel interference caused by different network modules using the same channel. For example, the first network function is a p2p function, the second network function is a sta function, and the third network function is an ap function. If the sta function is turned on, a channel different from the channel of the sta function is selected to start the p2p function; for another example, the first network function is an ap function, the second network function is a sta function, and the third network function is a p2p function. If the sta function is turned on, a channel different from the channel of the sta function is selected to start the ap function.
[0103] In a specific embodiment, when the first network function is a point-to-point function (i.e., a p2p function), after determining whether the third network function is enabled in the above S402, it also includes: if the third network function is not enabled, determining the first channel corresponding to the first network function based on the negotiation information between the terminal device and the projection device; and starting the first network function based on the first channel.
[0104] Among them, the screen projection device is a device that sends miracast screen projection to the terminal device. If the first network function is a point-to-point function, and the second network function and the third network function are not enabled, that is, the first network function will not cause channel interference when started in any channel, then the second network function can be enabled by selecting a suitable channel based on the negotiation information between the terminal device and the screen projection device.
[0105] In a specific embodiment, when the other network functions include a first network function, a second network function and a third network function, the first network function is implemented by a first network module, and the second network function and the third network function are implemented by a second network module, the step of determining the activation status of other network functions among at least three network functions and the corresponding channel information in the above step S202 specifically includes: determining whether the third network function is activated; if the third network function is not activated, determining whether the second network function is activated; if the second network function is activated, obtaining a second channel corresponding to the second network function.
[0106] That is to say, when the first network function is implemented through the first network module, and the second network function and the third network function are implemented through the second network module, after receiving the start instruction of the first network function, it is possible to first determine whether the second network function is turned on, and then determine whether the third network function is turned on, or first determine whether the third network function is turned on, and then determine whether the second network function is turned on. When the first network function and the third network function are implemented through the first network module, and the second network function is implemented through the second network module, it is necessary to first determine whether the third network function implemented through the same network module as the first network function is turned on, and when the third network function is not turned on, it is then determined whether the network functions on other network modules are turned on, so that the network functions on the same network module can be turned on using the same channel, and the network functions on different network modules can be turned on using different channels, so that different network modules work on different channels, avoiding channel interference caused by different network modules using the same channel.
[0107] In order to better implement the network startup method in the embodiment of the present application, based on the network startup method, a network startup device is also provided in the embodiment of the present application. The network startup device is applied to a terminal device, and the terminal device includes at least three network functions, and the at least three network functions are respectively implemented by at least two different network modules, such as Figure 5 As shown, the network startup device 600 includes:
[0108] A first determining module 610 is configured to receive a start instruction of a first network function of at least three network functions, and determine the start status and corresponding channel information of other network functions of the at least three network functions;
[0109] A second determination module 620, configured to determine a first channel for starting the first network function according to the activation status of other network functions and corresponding channel information;
[0110] Among them, when the second network function among other network functions is turned on, and the second network function and the first network function are implemented through different network modules, the first channel is different from the second channel corresponding to the second network function.
[0111] In an embodiment of the present application, by receiving a startup instruction of a first network function of at least three network functions, determining the startup status and corresponding channel information of other network functions among the at least three network functions, and determining the first channel for starting the first network function based on the startup status and corresponding channel information of the other network functions, different network modules can be made to operate in different channels, thereby avoiding channel interference between different network modules.
[0112] In some embodiments of the present application, the other network functions further include a third network function, the first network function and the third network function are implemented by the first network module, the second network function is implemented by the second network module, and the first determination module 610 determines the activation status of other network functions among the at least three network functions and the corresponding channel information, including:
[0113] Determine whether the third network function is enabled;
[0114] If the third network function is not enabled, determining whether the second network function is enabled;
[0115] If the second network function is enabled, a second channel corresponding to the second network function is obtained.
[0116] In some embodiments of the present application, the second determination module 620 determines the first channel for starting the first network function according to the activation status of other network functions and the corresponding channel information, including:
[0117] Based on the second channel, a first channel for starting the first network function is determined; the first channel and the second channel are different channels.
[0118] In some embodiments of the present application, after the first determination module 610 determines whether the third network function is enabled, the first determination module 610 is further configured to:
[0119] If the third network function is enabled, obtaining a third channel corresponding to the third network function;
[0120] Based on the third channel, the first network function is started.
[0121] In some embodiments of the present application, when the first network function is a point-to-point function, after the first determination module 610 determines whether the second network function is enabled, the first determination module 610 is further configured to:
[0122] If the second network function is not enabled, determining the first channel corresponding to the first network function based on the negotiation information between the terminal device and the screen projection device;
[0123] Based on the first channel, a first network function is started.
[0124] In some embodiments of the present application, the other network functions further include a third network function, the first network function is implemented by the first network module, the second network function and the third network function are implemented by the second network module, and the first determination module 610 determines the activation status of other network functions among the at least three network functions and the corresponding channel information, including:
[0125] Determine whether the second network function is enabled;
[0126] If the second network function is not enabled, determining whether the third network function is enabled;
[0127] If the third network function is enabled, a third channel corresponding to the third network function is obtained.
[0128] In some embodiments of the present application, the second determination module 620 determines the first channel for starting the first network function according to the activation status of other network functions and the corresponding channel information, including:
[0129] Based on the third channel, a first channel for starting the first network function is determined; the first channel and the third channel are different channels.
[0130] In some embodiments of the present application, after the first determination module 610 determines whether the second network function is enabled, the first determination module 610 is further configured to:
[0131] If the second network function is enabled, obtaining a second channel corresponding to the second network function;
[0132] Based on the second channel, a first channel for starting the first network function is determined; the first channel and the second channel are different channels.
[0133] In some embodiments of the present application, when the first network function is a point-to-point function, after the first determination module 610 determines whether the third network function is enabled, the first determination module 610 is further configured to:
[0134] If the third network function is not enabled, determining the first channel corresponding to the first network function based on the negotiation information between the terminal device and the screen projection device;
[0135] Based on the first channel, a first network function is started.
[0136] In some embodiments of the present application, the first determining module 610 determines whether the third network function is enabled, including:
[0137] Obtaining identification information corresponding to the third network function;
[0138] If the identification information corresponding to the third network function meets the first preset condition, it is confirmed that the third network function is enabled.
[0139] In some embodiments of the present application, the first determination module 610 determines whether the second network function is enabled, including:
[0140] Obtaining identification information corresponding to the second network function;
[0141] If the identification information corresponding to the second network function meets the second preset condition, it is confirmed that the second network function is enabled.
[0142] The embodiment of the present application further provides a computer device, which integrates any one of the network boot devices provided in the embodiment of the present application, and the computer device includes:
[0143] one or more processors;
[0144] Memory; and
[0145] One or more applications, wherein the one or more applications are stored in the memory and are configured to execute, by the processor, the steps of the network startup method in any of the above network startup method embodiments.
[0146] The present application also provides a computer device that integrates any network boot device provided in the present application. Figure 6 As shown, it shows a schematic diagram of the structure of the computer device involved in the embodiment of the present application, specifically:
[0147] The computer device may include one or more processing core processors 801, one or more computer-readable storage media memories 802, a power supply 803, an input unit 804 and other components. Those skilled in the art will appreciate that Figure 6 The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them:
[0148] The processor 801 is the control center of the computer device. It uses various interfaces and lines to connect various parts of the entire computer device. By running or executing software programs and / or modules stored in the memory 802 and calling data stored in the memory 802, it executes various functions of the computer device and processes data, thereby monitoring the computer device as a whole. Optionally, the processor 801 may include one or more processing cores; preferably, the processor 801 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 801.
[0149] The memory 802 can be used to store software programs and modules. The processor 801 executes various functional applications and data processing by running the software programs and modules stored in the memory 802. The memory 802 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 802 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 802 may also include a memory controller to provide the processor 801 with access to the memory 802.
[0150] The computer device also includes a power supply 803 for supplying power to each component. Preferably, the power supply 803 can be logically connected to the processor 801 through a power management system, so that the power management system can manage charging, discharging, power consumption and other functions. The power supply 803 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.
[0151] The computer device may further include an input unit 804, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0152] Although not shown, the computer device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 801 in the computer device will load the executable files corresponding to the processes of one or more application programs into the memory 802 according to the following instructions, and the processor 801 will run the application programs stored in the memory 802, thereby realizing various functions, as follows:
[0153] receiving a start instruction of a first network function of at least three network functions, and determining the start status and corresponding channel information of other network functions of the at least three network functions;
[0154] Determine, according to the activation status of other network functions and corresponding channel information, a first channel for activating the first network function;
[0155] Among them, when the second network function among other network functions is turned on, and the second network function and the first network function are implemented through different network modules, the first channel is different from the second channel corresponding to the second network function.
[0156] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0157] To this end, an embodiment of the present application provides a computer-readable storage medium, which may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in any network startup method provided in the embodiment of the present application. For example, the computer program can be loaded by the processor to execute the following steps:
[0158] receiving a start instruction of a first network function of at least three network functions, and determining the start status and corresponding channel information of other network functions of the at least three network functions;
[0159] Determine, according to the activation status of other network functions and corresponding channel information, a first channel for activating the first network function;
[0160] Among them, when the second network function among other network functions is turned on, and the second network function and the first network function are implemented through different network modules, the first channel is different from the second channel corresponding to the second network function.
[0161] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the detailed description of other embodiments above, and will not be repeated here.
[0162] In specific implementation, the above units or structures can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units or structures can refer to the previous method embodiments, which will not be repeated here.
[0163] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0164] The above is a detailed introduction to a network startup method, device, computer equipment and computer-readable storage medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A network startup method, characterized in that: Applied to a terminal device, the terminal device includes at least three network functions, and the at least three network functions are respectively implemented by at least two different network modules, and the method includes: receiving a start instruction of a first network function of the at least three network functions, and determining the start status and corresponding channel information of other network functions of the at least three network functions; Determining, according to the activation state of the other network function and the corresponding channel information, a first channel for activating the first network function; When a second network function among the other network functions is turned on, and the second network function and the first network function are implemented through different network modules, the first channel is different from the second channel corresponding to the second network function.
2. The method according to claim 1, characterized in that: The other network functions further include a third network function, the first network function and the third network function are implemented by a first network module, the second network function is implemented by a second network module, and the determining of the activation status of other network functions among the at least three network functions and the corresponding channel information includes: Determining whether the third network function is enabled; If the third network function is not enabled, determining whether the second network function is enabled; If the second network function is enabled, obtaining the second channel corresponding to the second network function; Correspondingly, determining the first channel for starting the first network function according to the activation state of the other network function and the corresponding channel information includes: Based on the second channel, a first channel for starting the first network function is determined; the first channel and the second channel are different channels.
3. The network startup method according to claim 2, characterized in that: After determining whether the third network function is enabled, the method further includes: If the third network function is enabled, obtaining a third channel corresponding to the third network function; Based on the third channel, the first network function is started.
4. The network startup method according to claim 2, characterized in that: When the first network function is a point-to-point function, after determining whether the second network function is enabled, the method further includes: If the second network function is not enabled, determining the first channel corresponding to the first network function based on negotiation information between the terminal device and the screen projection device; Based on the first channel, the first network function is started.
5. The method according to claim 1, characterized in that The other network functions further include a third network function, the first network function is implemented by a first network module, the second network function and the third network function are implemented by a second network module, and the determining of the activation status of other network functions among the at least three network functions and the corresponding channel information includes: Determining whether the second network function is enabled; If the second network function is not enabled, determining whether the third network function is enabled; If the third network function is enabled, obtaining a third channel corresponding to the third network function; Correspondingly, determining the first channel for starting the first network function according to the activation state of the other network function and the corresponding channel information includes: Based on the third channel, a first channel for starting the first network function is determined; the first channel and the third channel are different channels.
6. The method according to claim 5, characterized in that After determining whether the second network function is enabled, the method further includes: If the second network function is enabled, obtaining the second channel corresponding to the second network function; Based on the second channel, a first channel for starting the first network function is determined; the first channel and the second channel are different channels.
7. The network startup method according to claim 5, characterized in that: When the first network function is a point-to-point function, after determining whether the third network function is enabled, the method further includes: If the third network function is not enabled, determining the first channel corresponding to the first network function based on negotiation information between the terminal device and the screen projection device; Based on the first channel, the first network function is started.
8. The network startup method according to any one of claims 2 to 7, characterized in that: The determining whether the third network function is enabled includes: Obtaining identification information corresponding to the third network function; If the identification information corresponding to the third network function meets the first preset condition, it is confirmed that the third network function is enabled.
9. The network startup method according to any one of claims 2 to 7, characterized in that: The determining whether the second network function is enabled includes: Obtaining identification information corresponding to the second network function; If the identification information corresponding to the second network function meets the second preset condition, it is confirmed that the second network function is enabled.
10. A network startup device, characterized in that: Applied to a terminal device, the terminal device includes at least three network functions, the at least three network functions are respectively implemented by at least two different network modules, and the network startup device includes: A first determining module is used to receive a start instruction of a first network function of the at least three network functions, and determine the start status and corresponding channel information of other network functions of the at least three network functions; A second determining module, configured to determine a first channel for starting the first network function according to the activation state of the other network function and the corresponding channel information; When a second network function among the other network functions is turned on, and the second network function and the first network function are implemented through different network modules, the first channel is different from the second channel corresponding to the second network function.
11. A computer device, characterized in that: The computer device comprises: one or more processors; Memory; and One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the processor to implement the network startup method according to any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in the network startup method according to any one of claims 1 to 9.
Citation Information
Cited By
Network startup method and apparatus, and computer device
WO2026067163A1