[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN117915371A - Distribution network method of terminal equipment and distribution network device of terminal equipment - Google Patents

Distribution network method of terminal equipment and distribution network device of terminal equipment Download PDF

Info

Publication number
CN117915371A
CN117915371A CN202410083766.4A CN202410083766A CN117915371A CN 117915371 A CN117915371 A CN 117915371A CN 202410083766 A CN202410083766 A CN 202410083766A CN 117915371 A CN117915371 A CN 117915371A
Authority
CN
China
Prior art keywords
target
equipment
distance
determining
connection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410083766.4A
Other languages
Chinese (zh)
Inventor
韦春梅
黄智聪
周轩禹
黄鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202410083766.4A priority Critical patent/CN117915371A/en
Publication of CN117915371A publication Critical patent/CN117915371A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S11/00Systems for determining distance or velocity not using reflection or reradiation
    • G01S11/02Systems for determining distance or velocity not using reflection or reradiation using radio waves
    • G01S11/06Systems for determining distance or velocity not using reflection or reradiation using radio waves using intensity measurements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a network distribution method of terminal equipment and a network distribution device of the terminal equipment, wherein the method comprises the following steps: acquiring communication data of a plurality of target peripheral devices to obtain a plurality of data to be matched, wherein the peripheral devices are positioned around the current device and normally communicate with the current device, the distance between the target peripheral devices and the current device is smaller than a distance threshold, and the communication data are used for representing the communication state of the target peripheral devices; according to the mapping relation between the communication data and the distances, determining the distance corresponding to the communication data corresponding to each data to be matched as a matching distance; determining the minimum value of the plurality of matching distances as a target distance; and determining target surrounding equipment corresponding to the target distance as target equipment, and establishing communication connection with the target equipment. The problem of among the prior art because the unstable equipment distribution network inefficiency that leads to of service environment and signal is solved.

Description

Distribution network method of terminal equipment and distribution network device of terminal equipment
Technical Field
The present application relates to the field of wireless communications, and in particular, to a network allocation method for a terminal device, a network allocation apparatus for a terminal device, a computer readable storage medium, and a communication system.
Background
With the increasing number of intelligent devices, many home appliances have been configured with wireless devices such as WiFi or bluetooth, and in order to ensure that one network can connect more devices, a networking manner is adopted, and the connection of the sub-devices is gradually increased from the main device. However, in many cases, the sub-devices are randomly connected to a certain stage, and due to the complex use environment, the devices cannot be efficiently distributed with a network and ensure the stability of use, so that the user experience is poor.
Therefore, a method is needed to solve the problem of low equipment network distribution efficiency caused by unstable use environment and signals in the prior art.
Disclosure of Invention
The application mainly aims to provide a network distribution method of terminal equipment, a network distribution device of the terminal equipment, a computer readable storage medium and a communication system, which are used for at least solving the problem of low network distribution efficiency of equipment caused by unstable use environment and signals in the prior art.
According to an aspect of the present application, there is provided a network allocation method of a terminal device, the method including: the method comprises the steps of obtaining communication data of a plurality of target peripheral devices to obtain a plurality of data to be matched, wherein the peripheral devices are located around current devices and normally communicate with the current devices, the distance between the target peripheral devices and the current devices is smaller than a distance threshold, and the communication data are used for representing the communication state of the target peripheral devices; a first determining step of determining that the distance corresponding to the communication data corresponding to each data to be matched is a matching distance according to the mapping relation between the communication data and the distance; a second determining step of determining a minimum value among the plurality of matching distances as a target distance; and a third determining step, wherein the target surrounding equipment corresponding to the target distance is determined to be target equipment, and communication connection is established with the target equipment.
Optionally, the communication data includes signal strength, and acquiring communication data of a plurality of target peripheral devices includes: transmitting broadcast request information to a plurality of prepared surrounding devices, wherein the broadcast request information is used for requesting to establish communication connection with the prepared surrounding devices, and the prepared surrounding devices are located around the current device and have a distance from the current device smaller than the distance threshold; receiving response information of the broadcast request information, and determining that the prepared surrounding equipment corresponding to the response information is the target surrounding equipment; and calculating the signal intensity of the equipment around the target according to the response information.
Optionally, the response information at least includes power of the target peripheral device and signal-to-noise ratio of the target peripheral device, and the signal strength of the target peripheral device is calculated according to the response information, including one of the following: according to the formulaCalculating the signal strength dB, wherein A is the power of equipment around the target, and B is preset reference power; the signal strength dB is calculated according to the formula db=10×lg (SNR), where SNR is the signal-to-noise ratio of the devices surrounding the target.
Optionally, after establishing a communication connection with the target device, the method further comprises: acquiring communication data of the target equipment to obtain first data; and if the first data is smaller than a first threshold value, repeating the acquisition step, the first determination step, the second determination step and the third determination step in sequence once to update the target device.
Optionally, after establishing a communication connection with the target device, the method further comprises: acquiring communication data of the target equipment, wherein the communication data comprises a communication connection state, and the connection state at least comprises the number of connection equipment and the number of connection replacement times; and determining that the communication connection between the current equipment and the target equipment is failed according to the communication data.
Optionally, determining, according to the communication data, that the current device is connected to the target device, including at least one of: determining that the current equipment and the target equipment are in communication connection failure under the condition that the number of the connected equipment is smaller than a second threshold value, wherein the number of the connected equipment is the number of the equipment which is in communication connection with the target equipment; and under the condition that the connection replacement times are larger than a third threshold value, determining that the current equipment and the target equipment are in connection failure, wherein the connection replacement times are times when the target equipment replaces communication connection with the connection equipment in a preset time period, and the connection equipment is equipment in communication connection with the target equipment.
Optionally, after determining that the current device has failed in communication connection with the target device, the method further comprises: and cutting off the communication connection with the target equipment.
According to another aspect of the present application, there is provided a network configuration apparatus of a terminal device, the apparatus including: the device comprises an acquisition unit, a comparison unit and a comparison unit, wherein the acquisition unit is used for acquiring communication data of a plurality of target peripheral devices to obtain a plurality of data to be matched, the peripheral devices are positioned around current devices and normally communicate with the current devices, the distance between the target peripheral devices and the current devices is smaller than a distance threshold, and the communication data are used for representing the communication state of the target peripheral devices; the first determining unit is used for determining that the distance corresponding to the communication data corresponding to each data to be matched is a matching distance according to the mapping relation between the communication data and the distance; a second determining unit configured to determine a minimum value among the plurality of matching distances as a target distance; and the third determining unit is used for determining the target surrounding equipment corresponding to the target distance as target equipment and establishing communication connection with the target equipment.
According to still another aspect of the present application, there is provided a computer readable storage medium including a stored program, wherein the program when run controls a device in which the computer readable storage medium is located to perform any one of the methods.
According to yet another aspect of the present application, there is provided a communication system including: one or more processors, memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing any of the methods.
By applying the technical scheme, communication data of a plurality of target peripheral devices are acquired to obtain a plurality of data to be matched, wherein the peripheral devices are positioned around the current device and normally communicate with the current device, the distance between the target peripheral devices and the current device is smaller than a distance threshold, and the communication data are used for representing the communication state of the target peripheral devices; determining the distance corresponding to the communication data corresponding to each data to be matched as a matching distance according to the mapping relation between the communication data and the distance; then, determining the minimum value in the plurality of matching distances as a target distance; and finally, determining the target surrounding equipment corresponding to the target distance as target equipment, and establishing communication connection with the target equipment. The distance between surrounding equipment and the current equipment can be accurately estimated through the pre-constructed mapping relation between the signal strength and the distance, so that the minimum distance value is selected, the efficient network distribution of the current equipment is realized, and the problem of low network distribution efficiency of the equipment due to the unstable use environment and signals in the prior art is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application. In the drawings:
fig. 1 is a block diagram showing a hardware configuration of a mobile terminal for performing a network allocation method of a terminal device according to an embodiment of the present application;
Fig. 2 is a schematic flow chart of a network allocation method of a terminal device according to an embodiment of the present application;
Fig. 3 is a schematic flowchart of a network configuration method of a terminal device according to an embodiment of the present application;
Fig. 4 shows a block diagram of a configuration of a network device of a terminal device according to an embodiment of the present application.
Wherein the above figures include the following reference numerals:
102. a processor; 104. a memory; 106. a transmission device; 108. and an input/output device.
Detailed Description
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The application will be described in detail below with reference to the drawings in connection with embodiments.
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the application herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
As described in the background art, in the prior art, because the use environment is complex, the equipment cannot efficiently allocate a network and ensure the use stability, so that the user experience is poor.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
The method embodiments provided in the embodiments of the present application may be performed in a mobile terminal, a computer terminal or similar computing device. Taking the mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of a mobile terminal of a network allocation method of a terminal device according to an embodiment of the present application. As shown in fig. 1, a mobile terminal may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, the mobile terminal may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a network allocation method of a terminal device in an embodiment of the present invention, and the processor 102 executes the computer program stored in the memory 104, thereby performing various functional applications and data processing, that is, implementing the above-mentioned method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as a NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is configured to communicate with the internet wirelessly.
In the present embodiment, a network allocation method of a terminal device operating on a mobile terminal, a computer terminal, or a similar computing device is provided, it should be noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different from that herein.
Fig. 2 is a flowchart of a network allocation method of a terminal device according to an embodiment of the present application. As shown in fig. 2, the method comprises the steps of:
Step S201, obtaining communication data of a plurality of target peripheral devices to obtain a plurality of data to be matched, wherein the peripheral devices are positioned around the current device and normally communicate with the current device, the distance between the target peripheral devices and the current device is smaller than a distance threshold, and the communication data are used for representing the communication state of the target peripheral devices;
Specifically, the target peripheral device is located in an area corresponding to a circle with a radius of the distance threshold value by taking the current device as a circle center, and the target peripheral device can normally communicate with the current device. The communication data may include, but is not limited to, the following: connection state, transmission rate, error rate, signal strength, network type, etc., where the connection state is used to represent whether the current device is connected to a network or other devices, the transmission rate is used to represent the speed of data transmission, and may be represented by bit rate or other rate units, the error rate is used to represent the ratio of errors or losses occurring during data transmission, the signal strength is used to represent the strength of a wireless signal, and the network type is used to represent the network type of device connection, such as a mobile network of 2G, 3G, 4G, 5G, etc., or a wireless network of Wi-Fi, bluetooth, etc.
Step S202, a first determining step, namely determining that the distance corresponding to the communication data corresponding to each data to be matched is a matching distance according to the mapping relation between the communication data and the distance;
Specifically, since the wireless signal intensity between devices is attenuated with increasing distance, a large amount of data is obtained through multiple experiments, and the mapping relation can be constructed. The signal intensity data of a plurality of devices are adopted for multi-azimuth detection and analysis, and a more accurate data model of signal intensity and distance can be constructed. The more the communication data are, the more perfect the obtained mapping relation is, and the more accurate the determined matching distance is. The mapping relationship may be a one-to-one mapping relationship or a many-to-one mapping relationship.
Step S203, a second determining step, determining the minimum value of the matching distances as the target distance;
In particular, since the nearest device can generally obtain a stronger signal, the connection is more stable, the transmission speed is faster, and the possibility of signal interference is reduced. In addition, the topological structure of the whole network can be optimized by selecting the nearest equipment, network congestion and delay are reduced, and overall performance is improved. Devices that are closest often require less power to communicate, which helps to extend the battery life of the device or reduce power consumption.
Step S204, a third determining step, wherein the target surrounding equipment corresponding to the target distance is determined to be target equipment, and communication connection is established with the target equipment.
Specifically, taking a terminal as an example, the specific steps of the wireless distribution network are as follows: first, devices such as routers, smart phones, computers, etc. which need to be connected to a network are prepared; opening the router and the equipment to be connected and ensuring the router and the equipment to be connected are in a working state; the router is powered on and waits for a period of time until the indicator light displays a normal working state; opening a wireless network function on a computer or a mobile phone, and searching a router name; inputting a wireless network password of the router, and if the wireless network password is connected for the first time, the default password of the router may need to be input; after the connection is successful, the equipment can display that the wireless network is connected and can normally surf the internet; a browser or other application is opened to ensure that the network functions are properly accessed and used.
Through the embodiment, a network allocation method of terminal equipment is provided, firstly, communication data of a plurality of target peripheral equipment are obtained, and a plurality of data to be matched are obtained, wherein the peripheral equipment is located around the current equipment and normally communicates with the current equipment, the distance between the target peripheral equipment and the current equipment is smaller than a distance threshold, and the communication data are used for representing the communication state of the target peripheral equipment; determining the distance corresponding to the communication data corresponding to each data to be matched as a matching distance according to the mapping relation between the communication data and the distance; then, determining the minimum value in the plurality of matching distances as a target distance; and finally, determining the target surrounding equipment corresponding to the target distance as target equipment, and establishing communication connection with the target equipment. The distance between surrounding equipment and the current equipment can be accurately estimated through the pre-constructed mapping relation between the signal strength and the distance, so that the minimum distance value is selected, the efficient network distribution of the current equipment is realized, and the problem of low network distribution efficiency of the equipment due to the unstable use environment and signals in the prior art is solved.
In a specific implementation process, the communication data includes signal strength, and the step S201 may be implemented by the following steps: step S2011, transmitting broadcast request information to a plurality of standby peripheral devices, wherein the broadcast request information is used for requesting to establish a communication connection with the standby peripheral devices, and the standby peripheral devices are located around the current device and have a distance from the current device smaller than the distance threshold; step S2012, receiving response information of the broadcast request information, and determining the prepared peripheral device corresponding to the response information as the target peripheral device; step S2013, calculating the signal strength of the target peripheral device according to the response information. The method can further rapidly acquire the signal intensity of the equipment around the target.
Specifically, the specific steps for acquiring the signal intensity of the device around the target are as follows: after the current equipment is started, broadcasting a request signal; after the preparation surrounding equipment receives the broadcast request signal, responding and sending self signal information to the current equipment; after receiving the signal information of the prepared surrounding equipment, the current equipment records the signal intensity and other related information of each target surrounding equipment; processing the received signal information by the current equipment, calculating the signal intensity of each node, performing preliminary sequencing, and performing preliminary screening on the prepared surrounding equipment according to the signal intensity to determine which equipment is worth further docking and connection; according to the preliminary screening result, further butting and communicating with equipment with stronger signal strength; the signal strength information of surrounding nodes is continuously updated to maintain the real-time node connection state.
In order to further accurately calculate the signal strength of the target peripheral device, the response information includes at least the power of the target peripheral device and the signal-to-noise ratio of the target peripheral device, and the step S2013 of the present application may be implemented by: step S20131, according to the formulaCalculating the signal strength dB, wherein A is the power of the equipment around the target, and B is preset reference power; in step S20132, the signal strength dB is calculated according to the formula db=10×lg (SNR), where SNR is a signal-to-noise ratio of the target peripheral device.
In particular, the method of calculating the signal strength value depends on the type of signal used and the receiving device, whichever calculation method is used, the larger the signal strength value, the stronger the representative signal, and the smaller the value the weaker the representative signal.
The above step S204 may be implemented in other manners, for example: step S205, obtaining communication data of the target equipment to obtain first data; step S206, when the first data is smaller than the first threshold value, repeating the acquiring step, the first determining step, the second determining step, and the third determining step in order once to update the target device. The method can further ensure the signal transmission quality of the current equipment distribution network.
Specifically, in practical application, the signal intensity of the target device can be detected regularly, and when the signal intensity of the target device connected with the current device is found to be weakened, other better nodes are selected again for connection, so that the connection stability is further ensured.
The above step S204 may also be implemented in other manners, for example: step S207, obtaining communication data of the target device, wherein the communication data comprises a communication connection state, and the connection state at least comprises the number of connection devices and the number of connection replacement times; step S208, according to the communication data, determining that the communication connection between the current device and the target device is faulty. The method may further quickly determine a connection failure between the current device and the target device communication.
Specifically, increasing the number of connected devices increases the power consumption of the devices, and frequent connection replacement times also increase the power consumption of the devices, thereby affecting the battery life and endurance of the devices; also, an increase in the number of connected devices increases network congestion and interference, thereby affecting the network stability and data transmission speed of the devices. Frequent connection changes may also lead to unstable network connections, affecting the use experience of the device. An increase in the number of connected devices increases the load on the devices, possibly affecting the performance and response speed of the devices. Frequent connection changes may also cause equipment to get stuck and delay, affecting the use of the equipment.
In some embodiments, the step S208 may be specifically implemented by at least one of the following steps: step S2081, determining that the current device and the target device have communication connection failure when the number of the connected devices is smaller than a second threshold, wherein the number of the connected devices is the number of the devices which are in communication connection with the target device; and step S2082, determining that the current device and the target device are in connection failure when the connection replacement number is greater than a third threshold, wherein the connection replacement number is the number of times that the target device replaces a communication connection with a connection device in a predetermined time period, and the connection device is a device that performs communication connection with the target device. The method can further quickly determine that the communication connection between the current device and the target device is faulty.
Specifically, if the number of the connection devices is smaller than the second threshold, it indicates that the signal strength of the target device is weak, no other device selects to connect with the target device, and a communication connection fault occurs between the current device and the target device. The number of connection replacement times is larger than the third threshold value, which also indicates that the signal intensity of the target device is weaker, and other devices are selected to be replaced for connection after the other devices are connected with the target device due to the fact that the signal intensity is not ideal, so that communication connection faults can occur between the current device and the target device.
After the step S208, the method further includes: step S209, cutting off the communication connection with the target device. The method can further improve the network distribution effect of the current equipment.
Specifically, in addition to the above-described manner, the connection switching of the device may also be realized by manually replacing the connection.
In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the implementation process of the network allocation method of the terminal device of the present application will be described in detail below with reference to specific embodiments.
The embodiment relates to a specific network distribution method of terminal equipment, as shown in fig. 3, comprising the following steps:
Step S1: the equipment sends out a broadcast request;
step S2: detecting the signal intensity of surrounding nodes;
step S3: comparing with predefined model data;
Step S4: judging the optimal node and establishing connection;
step S5: and accessing to the network with good group.
The embodiment of the application also provides a network distribution device of the terminal equipment, and the network distribution device of the terminal equipment can be used for executing the network distribution method for the terminal equipment. The device is used for realizing the above embodiments and preferred embodiments, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
The network configuration device of the terminal device provided by the embodiment of the application is described below.
Fig. 4 is a schematic diagram of a network configuration device of a terminal device according to an embodiment of the present application. As shown in fig. 4, the apparatus includes:
An obtaining unit 10, configured to obtain communication data of a plurality of target peripheral devices, to obtain a plurality of data to be matched, where the peripheral devices are located around a current device and normally communicate with the current device, a distance between the target peripheral device and the current device is smaller than a distance threshold, and the communication data is used to characterize a communication state of the target peripheral device;
Specifically, the target peripheral device is located in an area corresponding to a circle with a radius of the distance threshold value by taking the current device as a circle center, and the target peripheral device can normally communicate with the current device. The communication data may include, but is not limited to, the following: connection state, transmission rate, error rate, signal strength, network type, etc., where the connection state is used to represent whether the current device is connected to a network or other devices, the transmission rate is used to represent the speed of data transmission, and may be represented by bit rate or other rate units, the error rate is used to represent the ratio of errors or losses occurring during data transmission, the signal strength is used to represent the strength of a wireless signal, and the network type is used to represent the network type of device connection, such as a mobile network of 2G, 3G, 4G, 5G, etc., or a wireless network of Wi-Fi, bluetooth, etc.
A first determining unit 20, configured to determine, according to a mapping relationship between communication data and distances, that the distance corresponding to the communication data corresponding to each data to be matched is a matching distance;
Specifically, since the wireless signal intensity between devices is attenuated with increasing distance, a large amount of data is obtained through multiple experiments, and the mapping relation can be constructed. The signal intensity data of a plurality of devices are adopted for multi-azimuth detection and analysis, and a more accurate data model of signal intensity and distance can be constructed. The more the communication data are, the more perfect the obtained mapping relation is, and the more accurate the determined matching distance is. The mapping relationship may be a one-to-one mapping relationship or a many-to-one mapping relationship.
A second determining unit 30 configured to determine a minimum value among the plurality of matching distances as a target distance;
In particular, since the nearest device can generally obtain a stronger signal, the connection is more stable, the transmission speed is faster, and the possibility of signal interference is reduced. In addition, the topological structure of the whole network can be optimized by selecting the nearest equipment, network congestion and delay are reduced, and overall performance is improved. Devices that are closest often require less power to communicate, which helps to extend the battery life of the device or reduce power consumption.
And a third determining unit 40, configured to determine the target peripheral device corresponding to the target distance as a target device, and establish a communication connection with the target device.
Specifically, taking a terminal as an example, the specific steps of the wireless distribution network are as follows: first, devices such as routers, smart phones, computers, etc. which need to be connected to a network are prepared; opening the router and the equipment to be connected and ensuring the router and the equipment to be connected are in a working state; the router is powered on and waits for a period of time until the indicator light displays a normal working state; opening a wireless network function on a computer or a mobile phone, and searching a router name; inputting a wireless network password of the router, and if the wireless network password is connected for the first time, the default password of the router may need to be input; after the connection is successful, the equipment can display that the wireless network is connected and can normally surf the internet; a browser or other application is opened to ensure that the network functions are properly accessed and used.
According to the network configuration device of the terminal equipment, an acquisition unit acquires communication data of a plurality of target peripheral equipment to obtain a plurality of data to be matched, wherein the peripheral equipment is located around the current equipment and normally communicates with the current equipment, the distance between the target peripheral equipment and the current equipment is smaller than a distance threshold, and the communication data are used for representing the communication state of the target peripheral equipment; the first determining unit determines that the distance corresponding to the communication data corresponding to each data to be matched is a matching distance according to the mapping relation between the communication data and the distance; the second determining unit determines a minimum value among the plurality of matching distances as a target distance; and the third determining unit determines target surrounding equipment corresponding to the target distance as target equipment and establishes communication connection with the target equipment. The distance between surrounding equipment and the current equipment can be accurately estimated through the pre-constructed mapping relation between the signal strength and the distance, so that the minimum distance value is selected, the efficient network distribution of the current equipment is realized, and the problem of low network distribution efficiency of the equipment due to the unstable use environment and signals in the prior art is solved.
In a specific implementation process, the communication data includes signal strength, the acquiring unit includes a sending module, a first determining module and a calculating module, where the sending module is configured to send broadcast request information to a plurality of preparation surrounding devices, where the broadcast request information is used to request to establish communication connection with the preparation surrounding devices, and the preparation surrounding devices are located around the current device and have a distance from the current device smaller than the distance threshold; the first determining module is used for receiving response information of the broadcast request information and determining that the prepared surrounding equipment corresponding to the response information is the target surrounding equipment; the calculating module is used for calculating the signal intensity of the equipment around the target according to the response information. The device can further rapidly acquire the signal intensity of the equipment around the target.
Specifically, the specific steps for acquiring the signal intensity of the device around the target are as follows: after the current equipment is started, broadcasting a request signal; after the preparation surrounding equipment receives the broadcast request signal, responding and sending self signal information to the current equipment; after receiving the signal information of the prepared surrounding equipment, the current equipment records the signal intensity and other related information of each target surrounding equipment; processing the received signal information by the current equipment, calculating the signal intensity of each node, performing preliminary sequencing, and performing preliminary screening on the prepared surrounding equipment according to the signal intensity to determine which equipment is worth further docking and connection; according to the preliminary screening result, further butting and communicating with equipment with stronger signal strength; the signal strength information of surrounding nodes is continuously updated to maintain the real-time node connection state.
In order to further accurately calculate the signal strength of the target peripheral device, the response information at least includes the power of the target peripheral device and the signal to noise ratio of the target peripheral device, the calculation module of the present application includes a first calculation submodule and a second calculation submodule, where the first calculation submodule is used to calculate the signal strength of the target peripheral device according to the formula Calculating the signal strength dB, wherein A is the power of the equipment around the target, and B is preset reference power; the second calculation submodule is used for calculating the signal strength dB according to the formula db=10×lg (SNR), wherein the SNR is the signal-to-noise ratio of the target surrounding equipment.
In particular, the method of calculating the signal strength value depends on the type of signal used and the receiving device, whichever calculation method is used, the larger the signal strength value, the stronger the representative signal, and the smaller the value the weaker the representative signal.
The device further comprises a first acquisition module and a repetition module, wherein the first acquisition module is used for acquiring communication data of the target equipment to obtain first data; and the repeating module is used for sequentially repeating the acquiring step, the first determining step, the second determining step and the third determining step once when the first data is smaller than a first threshold value so as to update the target equipment. The device can further ensure the signal transmission quality of the current equipment distribution network.
Specifically, in practical application, the signal intensity of the target device can be detected regularly, and when the signal intensity of the target device connected with the current device is found to be weakened, other better nodes are selected again for connection, so that the connection stability is further ensured.
The device further comprises a second acquisition module and a second determination module, wherein the second acquisition module is used for acquiring communication data of the target equipment, the communication data comprise communication connection states, and the connection states at least comprise the number of the connection equipment and the number of connection replacement times; and the second determining module is used for determining the communication connection fault between the current equipment and the target equipment according to the communication data. The apparatus may further quickly determine a connection failure between the current device and the target device communication.
Specifically, increasing the number of connected devices increases the power consumption of the devices, and frequent connection replacement times also increase the power consumption of the devices, thereby affecting the battery life and endurance of the devices; also, an increase in the number of connected devices increases network congestion and interference, thereby affecting the network stability and data transmission speed of the devices. Frequent connection changes may also lead to unstable network connections, affecting the use experience of the device. An increase in the number of connected devices increases the load on the devices, possibly affecting the performance and response speed of the devices. Frequent connection changes may also cause equipment to get stuck and delay, affecting the use of the equipment.
In some embodiments, the second determining module includes a first determining submodule and a second determining submodule, where the first determining submodule is configured to determine that the current device has a communication connection failure with the target device if the number of connected devices is less than a second threshold, where the number of connected devices is the number of devices that are communicatively connected with the target device; and the second determining submodule is used for determining that the current equipment and the target equipment are in connection failure under the condition that the connection replacement times are larger than a third threshold value, wherein the connection replacement times are times of the target equipment replacing communication connection with the connection equipment in a preset time period, and the connection equipment is equipment in communication connection with the target equipment. The apparatus may further quickly determine that the current device is in communication connection with the target device.
Specifically, if the number of the connection devices is smaller than the second threshold, it indicates that the signal strength of the target device is weak, no other device selects to connect with the target device, and a communication connection fault occurs between the current device and the target device. The number of connection replacement times is larger than the third threshold value, which also indicates that the signal intensity of the target device is weaker, and other devices are selected to be replaced for connection after the other devices are connected with the target device due to the fact that the signal intensity is not ideal, so that communication connection faults can occur between the current device and the target device.
The apparatus further comprises a processing unit for cutting off the communication connection with the target device. The device can further improve the network distribution effect of the current equipment.
Specifically, in addition to the above-described manner, the connection switching of the device may also be realized by manually replacing the connection.
The network allocation device of the terminal equipment comprises a processor and a memory, wherein the acquisition unit, the first determination unit, the second determination unit, the third determination unit and the like are all stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions. The modules are all located in the same processor; or the above modules may be located in different processors in any combination.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one, and the network distribution of the terminal equipment is realized by adjusting kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
The embodiment of the invention provides a computer readable storage medium, which comprises a stored program, wherein the program is used for controlling a device where the computer readable storage medium is located to execute a network allocation method of the terminal device.
Specifically, the network allocation method of the terminal equipment comprises the following steps:
Step S201, obtaining communication data of a plurality of target peripheral devices to obtain a plurality of data to be matched, wherein the peripheral devices are positioned around the current device and normally communicate with the current device, the distance between the target peripheral devices and the current device is smaller than a distance threshold, and the communication data are used for representing the communication state of the target peripheral devices;
Specifically, the target peripheral device is located in an area corresponding to a circle with a radius of the distance threshold value by taking the current device as a circle center, and the target peripheral device can normally communicate with the current device. The communication data may include, but is not limited to, the following: connection state, transmission rate, error rate, signal strength, network type, etc., where the connection state is used to represent whether the current device is connected to a network or other devices, the transmission rate is used to represent the speed of data transmission, and may be represented by bit rate or other rate units, the error rate is used to represent the ratio of errors or losses occurring during data transmission, the signal strength is used to represent the strength of a wireless signal, and the network type is used to represent the network type of device connection, such as a mobile network of 2G, 3G, 4G, 5G, etc., or a wireless network of Wi-Fi, bluetooth, etc.
Step S202, a first determining step, namely determining that the distance corresponding to the communication data corresponding to each data to be matched is a matching distance according to the mapping relation between the communication data and the distance;
Specifically, since the wireless signal intensity between devices is attenuated with increasing distance, a large amount of data is obtained through multiple experiments, and the mapping relation can be constructed. The signal intensity data of a plurality of devices are adopted for multi-azimuth detection and analysis, and a more accurate data model of signal intensity and distance can be constructed. The more the communication data are, the more perfect the obtained mapping relation is, and the more accurate the determined matching distance is. The mapping relationship may be a one-to-one mapping relationship or a many-to-one mapping relationship.
Step S203, a second determining step, determining the minimum value of the matching distances as the target distance;
In particular, since the nearest device can generally obtain a stronger signal, the connection is more stable, the transmission speed is faster, and the possibility of signal interference is reduced. In addition, the topological structure of the whole network can be optimized by selecting the nearest equipment, network congestion and delay are reduced, and overall performance is improved. Devices that are closest often require less power to communicate, which helps to extend the battery life of the device or reduce power consumption.
Step S204, a third determining step, wherein the target surrounding equipment corresponding to the target distance is determined to be target equipment, and communication connection is established with the target equipment.
Specifically, taking a terminal as an example, the specific steps of the wireless distribution network are as follows: first, devices such as routers, smart phones, computers, etc. which need to be connected to a network are prepared; opening the router and the equipment to be connected and ensuring the router and the equipment to be connected are in a working state; the router is powered on and waits for a period of time until the indicator light displays a normal working state; opening a wireless network function on a computer or a mobile phone, and searching a router name; inputting a wireless network password of the router, and if the wireless network password is connected for the first time, the default password of the router may need to be input; after the connection is successful, the equipment can display that the wireless network is connected and can normally surf the internet; a browser or other application is opened to ensure that the network functions are properly accessed and used.
Optionally, the communication data includes signal strength, and acquiring communication data of a plurality of target peripheral devices includes: transmitting broadcast request information to a plurality of spare peripheral devices, wherein the broadcast request information is used for requesting to establish communication connection with the spare peripheral devices, and the spare peripheral devices are located around the current device and have a distance from the current device smaller than the distance threshold; receiving response information of the broadcast request information, and determining the prepared peripheral equipment corresponding to the response information as the target peripheral equipment; and calculating the signal intensity of the equipment around the target according to the response information.
Optionally, the response information includes at least power of the target peripheral device and signal-to-noise ratio of the target peripheral device, and the calculating the signal strength of the target peripheral device according to the response information includes one of the following: according to the formulaCalculating the signal strength dB, wherein A is the power of the equipment around the target, and B is preset reference power; the signal strength dB is calculated according to the formula db=10×lg (SNR), where SNR is the signal-to-noise ratio of the target surrounding devices.
Optionally, after establishing a communication connection with the target device, the method further includes: acquiring communication data of the target equipment to obtain first data; and if the first data is smaller than a first threshold value, repeating the acquiring step, the first determining step, the second determining step, and the third determining step in order once to update the target device.
Optionally, after establishing a communication connection with the target device, the method further includes: acquiring communication data of the target device, wherein the communication data comprises a communication connection state, and the connection state at least comprises the number of connection devices and the number of connection replacement times; and determining that the communication connection between the current equipment and the target equipment is failed according to the communication data.
Optionally, determining, according to the communication data, that the current device is connected to the target device, including at least one of: determining that the current device and the target device have communication connection faults under the condition that the number of the connection devices is smaller than a second threshold value, wherein the number of the connection devices is the number of the devices which are in communication connection with the target device; and determining that the current device and the target device are in connection failure when the connection replacement number is greater than a third threshold value, wherein the connection replacement number is the number of times that the target device replaces communication connection with a connection device in a predetermined time period, and the connection device is the device in communication connection with the target device.
Optionally, after determining that the current device has failed in communication connection with the target device, the method further includes: and cutting off the communication connection with the target equipment.
The embodiment of the invention provides a processor, which is used for running a program, wherein the program runs to execute the network distribution method of the terminal equipment.
Specifically, the network allocation method of the terminal equipment comprises the following steps:
Step S201, obtaining communication data of a plurality of target peripheral devices to obtain a plurality of data to be matched, wherein the peripheral devices are positioned around the current device and normally communicate with the current device, the distance between the target peripheral devices and the current device is smaller than a distance threshold, and the communication data are used for representing the communication state of the target peripheral devices;
Specifically, the target peripheral device is located in an area corresponding to a circle with a radius of the distance threshold value by taking the current device as a circle center, and the target peripheral device can normally communicate with the current device. The communication data may include, but is not limited to, the following: connection state, transmission rate, error rate, signal strength, network type, etc., where the connection state is used to represent whether the current device is connected to a network or other devices, the transmission rate is used to represent the speed of data transmission, and may be represented by bit rate or other rate units, the error rate is used to represent the ratio of errors or losses occurring during data transmission, the signal strength is used to represent the strength of a wireless signal, and the network type is used to represent the network type of device connection, such as a mobile network of 2G, 3G, 4G, 5G, etc., or a wireless network of Wi-Fi, bluetooth, etc.
Step S202, a first determining step, namely determining that the distance corresponding to the communication data corresponding to each data to be matched is a matching distance according to the mapping relation between the communication data and the distance;
Specifically, since the wireless signal intensity between devices is attenuated with increasing distance, a large amount of data is obtained through multiple experiments, and the mapping relation can be constructed. The signal intensity data of a plurality of devices are adopted for multi-azimuth detection and analysis, and a more accurate data model of signal intensity and distance can be constructed. The more the communication data are, the more perfect the obtained mapping relation is, and the more accurate the determined matching distance is. The mapping relationship may be a one-to-one mapping relationship or a many-to-one mapping relationship.
Step S203, a second determining step, determining the minimum value of the matching distances as the target distance;
In particular, since the nearest device can generally obtain a stronger signal, the connection is more stable, the transmission speed is faster, and the possibility of signal interference is reduced. In addition, the topological structure of the whole network can be optimized by selecting the nearest equipment, network congestion and delay are reduced, and overall performance is improved. Devices that are closest often require less power to communicate, which helps to extend the battery life of the device or reduce power consumption.
Step S204, a third determining step, wherein the target surrounding equipment corresponding to the target distance is determined to be target equipment, and communication connection is established with the target equipment.
Specifically, taking a terminal as an example, the specific steps of the wireless distribution network are as follows: first, devices such as routers, smart phones, computers, etc. which need to be connected to a network are prepared; opening the router and the equipment to be connected and ensuring the router and the equipment to be connected are in a working state; the router is powered on and waits for a period of time until the indicator light displays a normal working state; opening a wireless network function on a computer or a mobile phone, and searching a router name; inputting a wireless network password of the router, and if the wireless network password is connected for the first time, the default password of the router may need to be input; after the connection is successful, the equipment can display that the wireless network is connected and can normally surf the internet; a browser or other application is opened to ensure that the network functions are properly accessed and used.
Optionally, the communication data includes signal strength, and acquiring communication data of a plurality of target peripheral devices includes: transmitting broadcast request information to a plurality of spare peripheral devices, wherein the broadcast request information is used for requesting to establish communication connection with the spare peripheral devices, and the spare peripheral devices are located around the current device and have a distance from the current device smaller than the distance threshold; receiving response information of the broadcast request information, and determining the prepared peripheral equipment corresponding to the response information as the target peripheral equipment; and calculating the signal intensity of the equipment around the target according to the response information.
Optionally, the response information includes at least power of the target peripheral device and signal-to-noise ratio of the target peripheral device, and the calculating the signal strength of the target peripheral device according to the response information includes one of the following: according to the formulaCalculating the signal strength dB, wherein A is the power of the equipment around the target, and B is preset reference power; the signal strength dB is calculated according to the formula db=10×lg (SNR), where SNR is the signal-to-noise ratio of the target surrounding devices.
Optionally, after establishing a communication connection with the target device, the method further includes: acquiring communication data of the target equipment to obtain first data; and if the first data is smaller than a first threshold value, repeating the acquiring step, the first determining step, the second determining step, and the third determining step in order once to update the target device.
Optionally, after establishing a communication connection with the target device, the method further includes: acquiring communication data of the target device, wherein the communication data comprises a communication connection state, and the connection state at least comprises the number of connection devices and the number of connection replacement times; and determining that the communication connection between the current equipment and the target equipment is failed according to the communication data.
Optionally, determining, according to the communication data, that the current device is connected to the target device, including at least one of: determining that the current device and the target device have communication connection faults under the condition that the number of the connection devices is smaller than a second threshold value, wherein the number of the connection devices is the number of the devices which are in communication connection with the target device; and determining that the current device and the target device are in connection failure when the connection replacement number is greater than a third threshold value, wherein the connection replacement number is the number of times that the target device replaces communication connection with a connection device in a predetermined time period, and the connection device is the device in communication connection with the target device.
Optionally, after determining that the current device has failed in communication connection with the target device, the method further includes: and cutting off the communication connection with the target equipment.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program stored in the memory and capable of running on the processor, wherein the processor realizes at least the following steps when executing the program:
Step S201, obtaining communication data of a plurality of target peripheral devices to obtain a plurality of data to be matched, wherein the peripheral devices are positioned around the current device and normally communicate with the current device, the distance between the target peripheral devices and the current device is smaller than a distance threshold, and the communication data are used for representing the communication state of the target peripheral devices;
Step S202, a first determining step, namely determining that the distance corresponding to the communication data corresponding to each data to be matched is a matching distance according to the mapping relation between the communication data and the distance;
step S203, a second determining step, determining the minimum value of the matching distances as the target distance;
Step S204, a third determining step, wherein the target surrounding equipment corresponding to the target distance is determined to be target equipment, and communication connection is established with the target equipment.
The device herein may be a server, PC, PAD, cell phone, etc.
Optionally, the communication data includes signal strength, and acquiring communication data of a plurality of target peripheral devices includes: transmitting broadcast request information to a plurality of spare peripheral devices, wherein the broadcast request information is used for requesting to establish communication connection with the spare peripheral devices, and the spare peripheral devices are located around the current device and have a distance from the current device smaller than the distance threshold; receiving response information of the broadcast request information, and determining the prepared peripheral equipment corresponding to the response information as the target peripheral equipment; and calculating the signal intensity of the equipment around the target according to the response information.
Optionally, the response information includes at least power of the target peripheral device and signal-to-noise ratio of the target peripheral device, and the calculating the signal strength of the target peripheral device according to the response information includes one of the following: according to the formulaCalculating the signal strength dB, wherein A is the power of the equipment around the target, and B is preset reference power; the signal strength dB is calculated according to the formula db=10×lg (SNR), where SNR is the signal-to-noise ratio of the target surrounding devices.
Optionally, after establishing a communication connection with the target device, the method further includes: acquiring communication data of the target equipment to obtain first data; and if the first data is smaller than a first threshold value, repeating the acquiring step, the first determining step, the second determining step, and the third determining step in order once to update the target device.
Optionally, after establishing a communication connection with the target device, the method further includes: acquiring communication data of the target device, wherein the communication data comprises a communication connection state, and the connection state at least comprises the number of connection devices and the number of connection replacement times; and determining that the communication connection between the current equipment and the target equipment is failed according to the communication data.
Optionally, determining, according to the communication data, that the current device is connected to the target device, including at least one of: determining that the current device and the target device have communication connection faults under the condition that the number of the connection devices is smaller than a second threshold value, wherein the number of the connection devices is the number of the devices which are in communication connection with the target device; and determining that the current device and the target device are in connection failure when the connection replacement number is greater than a third threshold value, wherein the connection replacement number is the number of times that the target device replaces communication connection with a connection device in a predetermined time period, and the connection device is the device in communication connection with the target device.
Optionally, after determining that the current device has failed in communication connection with the target device, the method further includes: and cutting off the communication connection with the target equipment.
The application also provides a computer program product adapted to perform, when executed on a data processing device, a program initialized with at least the following method steps:
Step S201, obtaining communication data of a plurality of target peripheral devices to obtain a plurality of data to be matched, wherein the peripheral devices are positioned around the current device and normally communicate with the current device, the distance between the target peripheral devices and the current device is smaller than a distance threshold, and the communication data are used for representing the communication state of the target peripheral devices;
Step S202, a first determining step, namely determining that the distance corresponding to the communication data corresponding to each data to be matched is a matching distance according to the mapping relation between the communication data and the distance;
step S203, a second determining step, determining the minimum value of the matching distances as the target distance;
Step S204, a third determining step, wherein the target surrounding equipment corresponding to the target distance is determined to be target equipment, and communication connection is established with the target equipment.
Optionally, the communication data includes signal strength, and acquiring communication data of a plurality of target peripheral devices includes: transmitting broadcast request information to a plurality of spare peripheral devices, wherein the broadcast request information is used for requesting to establish communication connection with the spare peripheral devices, and the spare peripheral devices are located around the current device and have a distance from the current device smaller than the distance threshold; receiving response information of the broadcast request information, and determining the prepared peripheral equipment corresponding to the response information as the target peripheral equipment; and calculating the signal intensity of the equipment around the target according to the response information.
Optionally, the response information includes at least power of the target peripheral device and signal-to-noise ratio of the target peripheral device, and the calculating the signal strength of the target peripheral device according to the response information includes one of the following: according to the formulaCalculating the signal strength dB, wherein A is the power of the equipment around the target, and B is preset reference power; the signal strength dB is calculated according to the formula db=10×lg (SNR), where SNR is the signal-to-noise ratio of the target surrounding devices.
Optionally, after establishing a communication connection with the target device, the method further includes: acquiring communication data of the target equipment to obtain first data; and if the first data is smaller than a first threshold value, repeating the acquiring step, the first determining step, the second determining step, and the third determining step in order once to update the target device.
Optionally, after establishing a communication connection with the target device, the method further includes: acquiring communication data of the target device, wherein the communication data comprises a communication connection state, and the connection state at least comprises the number of connection devices and the number of connection replacement times; and determining that the communication connection between the current equipment and the target equipment is failed according to the communication data.
Optionally, determining, according to the communication data, that the current device is connected to the target device, including at least one of: determining that the current device and the target device have communication connection faults under the condition that the number of the connection devices is smaller than a second threshold value, wherein the number of the connection devices is the number of the devices which are in communication connection with the target device; and determining that the current device and the target device are in connection failure when the connection replacement number is greater than a third threshold value, wherein the connection replacement number is the number of times that the target device replaces communication connection with a connection device in a predetermined time period, and the connection device is the device in communication connection with the target device.
Optionally, after determining that the current device has failed in communication connection with the target device, the method further includes: and cutting off the communication connection with the target equipment.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
1) According to the network distribution method of the terminal equipment, firstly, communication data of a plurality of target peripheral equipment are obtained, and a plurality of data to be matched are obtained, wherein the peripheral equipment is located around the current equipment and normally communicates with the current equipment, the distance between the target peripheral equipment and the current equipment is smaller than a distance threshold, and the communication data are used for representing the communication state of the target peripheral equipment; determining the distance corresponding to the communication data corresponding to each data to be matched as a matching distance according to the mapping relation between the communication data and the distance; then, determining the minimum value in the plurality of matching distances as a target distance; and finally, determining the target surrounding equipment corresponding to the target distance as target equipment, and establishing communication connection with the target equipment. The distance between surrounding equipment and the current equipment can be accurately estimated through the pre-constructed mapping relation between the signal strength and the distance, so that the minimum distance value is selected, the efficient network distribution of the current equipment is realized, and the problem of low network distribution efficiency of the equipment due to the unstable use environment and signals in the prior art is solved.
2) According to the network distribution device of the terminal equipment, the acquisition unit acquires the communication data of a plurality of target peripheral equipment to obtain a plurality of data to be matched, wherein the peripheral equipment is positioned around the current equipment and normally communicates with the current equipment, the distance between the target peripheral equipment and the current equipment is smaller than a distance threshold, and the communication data are used for representing the communication state of the target peripheral equipment; the first determining unit determines that the distance corresponding to the communication data corresponding to each data to be matched is a matching distance according to the mapping relation between the communication data and the distance; the second determining unit determines a minimum value among the plurality of matching distances as a target distance; and the third determining unit determines target surrounding equipment corresponding to the target distance as target equipment and establishes communication connection with the target equipment. The distance between surrounding equipment and the current equipment can be accurately estimated through the pre-constructed mapping relation between the signal strength and the distance, so that the minimum distance value is selected, the efficient network distribution of the current equipment is realized, and the problem of low network distribution efficiency of the equipment due to the unstable use environment and signals in the prior art is solved.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A network allocation method for a terminal device, the method comprising:
The method comprises the steps of obtaining communication data of a plurality of target peripheral devices to obtain a plurality of data to be matched, wherein the peripheral devices are located around current devices and normally communicate with the current devices, the distance between the target peripheral devices and the current devices is smaller than a distance threshold, and the communication data are used for representing the communication state of the target peripheral devices;
A first determining step of determining that the distance corresponding to the communication data corresponding to each data to be matched is a matching distance according to the mapping relation between the communication data and the distance;
A second determining step of determining a minimum value among the plurality of matching distances as a target distance;
And a third determining step, wherein the target surrounding equipment corresponding to the target distance is determined to be target equipment, and communication connection is established with the target equipment.
2. The method of claim 1, wherein the communication data comprises signal strength, and wherein obtaining communication data for a plurality of target peripheral devices comprises:
Transmitting broadcast request information to a plurality of prepared surrounding devices, wherein the broadcast request information is used for requesting to establish communication connection with the prepared surrounding devices, and the prepared surrounding devices are located around the current device and have a distance from the current device smaller than the distance threshold;
Receiving response information of the broadcast request information, and determining that the prepared surrounding equipment corresponding to the response information is the target surrounding equipment;
And calculating the signal intensity of the equipment around the target according to the response information.
3. The method of claim 2, wherein the response information includes at least a power of the target peripheral device and a signal-to-noise ratio of the target peripheral device, and wherein calculating the signal strength of the target peripheral device based on the response information comprises one of:
according to the formula Calculating the signal strength dB, wherein A is the power of equipment around the target, and B is preset reference power;
The signal strength dB is calculated according to the formula db=10×lg (SNR), where SNR is the signal-to-noise ratio of the devices surrounding the target.
4. The method of claim 1, wherein after establishing a communication connection with the target device, the method further comprises:
acquiring communication data of the target equipment to obtain first data;
And if the first data is smaller than a first threshold value, repeating the acquisition step, the first determination step, the second determination step and the third determination step in sequence once to update the target device.
5. The method according to any one of claims 1 to 4, wherein after establishing a communication connection with the target device, the method further comprises:
Acquiring communication data of the target equipment, wherein the communication data comprises a communication connection state, and the connection state at least comprises the number of connection equipment and the number of connection replacement times;
And determining that the communication connection between the current equipment and the target equipment is failed according to the communication data.
6. The method of claim 5, wherein determining, based on the communication data, that the current device is in communication connection with the target device is faulty comprises at least one of:
determining that the current equipment and the target equipment are in communication connection failure under the condition that the number of the connected equipment is smaller than a second threshold value, wherein the number of the connected equipment is the number of the equipment which is in communication connection with the target equipment;
And under the condition that the connection replacement times are larger than a third threshold value, determining that the current equipment and the target equipment are in connection failure, wherein the connection replacement times are times when the target equipment replaces communication connection with the connection equipment in a preset time period, and the connection equipment is equipment in communication connection with the target equipment.
7. The method of claim 5, wherein after determining that the current device has failed a communication connection with the target device, the method further comprises:
and cutting off the communication connection with the target equipment.
8. A network distribution device of a terminal device, the device comprising:
The device comprises an acquisition unit, a comparison unit and a comparison unit, wherein the acquisition unit is used for acquiring communication data of a plurality of target peripheral devices to obtain a plurality of data to be matched, the peripheral devices are positioned around current devices and normally communicate with the current devices, the distance between the target peripheral devices and the current devices is smaller than a distance threshold, and the communication data are used for representing the communication state of the target peripheral devices;
The first determining unit is used for determining that the distance corresponding to the communication data corresponding to each data to be matched is a matching distance according to the mapping relation between the communication data and the distance;
A second determining unit configured to determine a minimum value among the plurality of matching distances as a target distance;
and the third determining unit is used for determining the target surrounding equipment corresponding to the target distance as target equipment and establishing communication connection with the target equipment.
9. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program, when run, controls a device in which the computer readable storage medium is located to perform the method of any one of claims 1 to 7.
10. A communication system, comprising: one or more processors, memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing the method of any of claims 1-7.
CN202410083766.4A 2024-01-19 2024-01-19 Distribution network method of terminal equipment and distribution network device of terminal equipment Pending CN117915371A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410083766.4A CN117915371A (en) 2024-01-19 2024-01-19 Distribution network method of terminal equipment and distribution network device of terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410083766.4A CN117915371A (en) 2024-01-19 2024-01-19 Distribution network method of terminal equipment and distribution network device of terminal equipment

Publications (1)

Publication Number Publication Date
CN117915371A true CN117915371A (en) 2024-04-19

Family

ID=90681726

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410083766.4A Pending CN117915371A (en) 2024-01-19 2024-01-19 Distribution network method of terminal equipment and distribution network device of terminal equipment

Country Status (1)

Country Link
CN (1) CN117915371A (en)

Similar Documents

Publication Publication Date Title
CN108449771B (en) Network switching method, device, terminal and storage medium
US20230038071A1 (en) Resource configuration method and apparatus, device, and storage medium
JP6342915B2 (en) Intelligent network operation
JP2022544419A (en) Method and device for determining pseudo-collocation hypothesis, storage medium and electronic device
CN112804718B (en) Network switching method, terminal and storage medium
US20190053169A1 (en) Method for dynamic adaptation of a data rate
US11038956B2 (en) Method and apparatus for determining network central node, and node equipment
CN108848536B (en) Bandwidth control method and device and communication equipment
CN107018088B (en) Transmission link selection method and device
CN117915371A (en) Distribution network method of terminal equipment and distribution network device of terminal equipment
US11159965B2 (en) Quality of experience measurements for control of Wi-Fi networks
CN105050123A (en) Load control method for wireless network and terminal
US20240086296A1 (en) Dynamic allocation and use of ims processing resources
US20180110010A1 (en) Extending battery life in low signal conditions
EP2930617A1 (en) Resource management method and device
US10419939B2 (en) Resource partition aggregating method and device
JP6790128B2 (en) Wireless communication device, wireless communication method and wireless communication program
CN112153679B (en) Network switching method and device
CN109246760B (en) Wireless local area network load balancing method based on power control, wireless access device and wireless access equipment
US10735986B2 (en) Radio resource determining systems and methods
CN115734204A (en) Data updating method and device, storage medium and electronic device
CN112564943A (en) Data transmission method, system and medium based on multiple network nodes
CN114938518B (en) 5G cellular network hybrid bandwidth prediction method, device, computer equipment and medium
WO2020055294A1 (en) Traffic splitting device
WO2022222729A1 (en) Network selection method, terminal, and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination