Network connection method and apparatus, terminal device, and computer-readable storage medium
By determining the preset state in the terminal device and initiating a D2D networking request, the communication anomaly caused by poor signal quality or insufficient power is resolved, thus achieving reliability and flexibility in data transmission and reception.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- UNIVERSAL UBIQUITOUS TECH CO LTD
- Filing Date
- 2023-03-02
- Publication Date
- 2026-04-24
AI Technical Summary
Existing terminal devices may have poor or unstable signal quality in certain locations, leading to abnormal data transmission and inability to communicate normally.
By determining the preset status of the terminal device, such as abnormal network connection or low battery, a D2D networking request is initiated to the basic gateway device in the preset area to establish D2D networking communication to realize data transmission and reception.
In situations with poor signal quality or insufficient power, D2D networking overcomes location network limitations, enabling data transmission and reception, and improving communication reliability and flexibility.
Smart Images

Figure CN116321528B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication technology, and more specifically to a network connection method, apparatus, terminal equipment, and computer-readable storage medium. Background Technology
[0002] Terminal devices using wired or wireless communication methods are used in various industries. In real-world scenarios, some devices are installed in locations with poor signal quality, some locations require wireless devices because wiring is not possible, and some mobile devices experience unstable signal quality due to relocation. This leads to a problem: due to poor or unstable signal quality, some wireless devices may experience abnormal data transmission or appear offline.
[0003] It is evident that existing terminal devices suffer from limitations in cabling and network quality, resulting in the inability of the devices to communicate normally. Summary of the Invention
[0004] In view of the above, the present disclosure provides a network connection method, apparatus, terminal device, and computer-readable storage medium, which at least partially solves the problems existing in the prior art.
[0005] In a first aspect, embodiments of this disclosure provide a network connection method applied to a terminal device, the network connection method comprising:
[0006] Determine whether the terminal device is in a preset state at its current location;
[0007] If the terminal device is in the preset state at its current device location, it initiates a D2D networking request to at least one basic gateway device in the preset area where the current device location is located.
[0008] If a network permission instruction is received from the target gateway device based on the D2D networking request, D2D networking communication is established with the target gateway device, wherein the target gateway device is any basic gateway device;
[0009] Data is sent and received through the target gateway device.
[0010] According to a specific embodiment of this disclosure, the step of determining whether the terminal device is in a preset state at the current device location includes:
[0011] Obtain the network registration information of the terminal device, and the signal quality of the cell corresponding to the current device location;
[0012] Based on the network registration information of the terminal device and the signal quality of the corresponding cell, it is determined whether the terminal device is in a network connection abnormal state;
[0013] If the terminal device is in a network connection abnormal state, it is determined that the terminal device is in the preset state at the current device location.
[0014] According to a specific embodiment of this disclosure, the network registration information includes a network type, and the signal quality of the corresponding cell includes RSSI. The step of determining whether the terminal device is in a network connection abnormal state based on the network registration information of the terminal device and the signal quality of the corresponding cell includes:
[0015] Determine whether the network type of the corresponding cell matches the network type required by the terminal device for data traffic usage, and determine whether the RSSI of the corresponding cell is less than or equal to the signal strength threshold;
[0016] If the network type of the corresponding cell does not match the network type required by the terminal device for data traffic, or if the RSSI of the corresponding cell is less than or equal to the signal strength threshold, then the terminal device is determined to be in a network connection abnormal state.
[0017] According to a specific embodiment of this disclosure, the step of determining whether the terminal device is in a preset state at the current device location includes:
[0018] Determine whether the current remaining battery power of the terminal device is less than or equal to a preset battery power threshold;
[0019] If the current remaining battery power of the terminal device is less than or equal to the preset battery power threshold, then the terminal device is determined to be in the preset state at the current location.
[0020] According to one specific embodiment of the present disclosure, the basic gateway device includes a standard gateway device and a wired device that establishes a wired communication connection with the standard gateway device;
[0021] The step of initiating a D2D networking request to at least one basic gateway device within a preset area where the current device is located, and establishing D2D networking communication with the target gateway device if a networking permission instruction is received from the target gateway device based on the D2D networking request, includes:
[0022] Locate the standard gateway devices and wired devices within the preset area;
[0023] Initiate a D2D networking request to the standard gateway device and the wired device;
[0024] If a network permission command is received from the standard gateway device, then D2D network communication is established with the standard gateway device;
[0025] If no network permission instruction is received from the standard gateway device, D2D network communication is established with the wired device.
[0026] According to a specific embodiment of the present disclosure, the basic gateway device may also be a wireless-to-wired device. If the basic gateway device is a wireless-to-wired device;
[0027] The step of initiating a D2D networking request to at least one basic gateway device within a preset area where the current device is located, and establishing D2D networking communication with the target gateway device if a networking permission instruction is received from the target gateway device based on the D2D networking request, includes:
[0028] Locate wireless-to-wired devices within the preset area;
[0029] Initiate a D2D networking request to the wireless-to-wired device;
[0030] If a network permission command is received from the wireless-to-wired device, then D2D network communication is established with the wireless-to-wired device.
[0031] If no network permission instruction is received from the wireless-to-wired device, a D2D network request is initiated to other terminal devices within the preset area.
[0032] Secondly, embodiments of this disclosure provide a network connection device, the network connection device comprising:
[0033] The judgment module is used to determine whether the terminal device is in a preset state at the current device location;
[0034] The request module is used to initiate a D2D networking request to at least one basic gateway device within the preset area where the current device location is located if the terminal device is in the preset state at the current device location.
[0035] The connection module is used to establish D2D networking communication with the target gateway device if it receives a networking permission instruction returned by the target gateway device based on the D2D networking request, wherein the target gateway device is any basic gateway device;
[0036] The communication module is used for sending and receiving data through the target gateway device.
[0037] According to a specific embodiment of this disclosure, the determining module is used for:
[0038] Obtain the network registration information of the terminal device, and the signal quality of the cell corresponding to the current device location;
[0039] Based on the network registration information of the terminal device and the signal quality of the corresponding cell, it is determined whether the terminal device is in a network connection abnormal state;
[0040] If the terminal device is in a network connection abnormal state, it is determined that the terminal device is in the preset state at the current device location.
[0041] According to a specific embodiment of this disclosure, the basic gateway device includes a standard gateway device and a wired device that establishes a wired communication connection with the standard gateway device; the request module is used for:
[0042] Locate the standard gateway devices and wired devices within the preset area;
[0043] Initiate a D2D networking request to the standard gateway device and the wired device;
[0044] The connection module is used for:
[0045] If a network permission command is received from the standard gateway device, then D2D network communication is established with the standard gateway device;
[0046] If no network permission instruction is received from the standard gateway device, D2D network communication is established with the wired device.
[0047] According to one specific embodiment of the present disclosure, the basic gateway device includes a wireless-to-wired device;
[0048] The request module is used for:
[0049] Locate wireless-to-wired devices within the preset area;
[0050] Initiate a D2D networking request to the wireless-to-wired device;
[0051] The connection module is used for:
[0052] If a network permission command is received from the wireless-to-wired device, then D2D network communication is established with the wireless-to-wired device.
[0053] If no network permission instruction is received from the wireless-to-wired device, a D2D network request is initiated to other terminal devices within the preset area.
[0054] Thirdly, embodiments of this disclosure also provide a terminal device, including:
[0055] At least one processor; and,
[0056] A memory communicatively connected to the at least one processor; wherein,
[0057] The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the network connection method described in any one of the first aspects above.
[0058] Fourthly, embodiments of this disclosure also provide a computer-readable storage medium storing computer instructions for causing a computer to perform the network connection method described in any one of the first aspects.
[0059] The network connection scheme in this embodiment first determines whether the terminal device is in a preset state at its current location. If the terminal device is in the preset state, it initiates a D2D networking request to at least one basic gateway device within the preset area where the current device is located. Upon receiving a network permission instruction from any target gateway device among the basic gateway devices based on the D2D networking request, D2D networking communication can be established with the target gateway device, thus enabling data transmission and reception through the target gateway device. This scheme deploys basic gateway devices capable of wireless-to-wired conversion in convenient cabling locations, providing D2D networking communication conditions for terminal devices in the surrounding area with poor network quality or other preset states. This allows terminal devices with communication needs to overcome location network limitations and achieve external data transmission and reception through the basic gateway devices. Attached Figure Description
[0060] To more clearly illustrate the technical solutions of the embodiments of this disclosure, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0061] Figure 1 A flowchart illustrating a network connection method provided in an embodiment of this disclosure;
[0062] Figure 2 An interactive schematic diagram of the network connection method provided in the embodiments of this disclosure;
[0063] Figure 3 This is a schematic diagram of a network connection device structure provided in an embodiment of the present disclosure;
[0064] Figure 4 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this disclosure. Detailed Implementation
[0065] The embodiments of this disclosure will now be described in detail with reference to the accompanying drawings.
[0066] The following specific examples illustrate the implementation of this disclosure. Those skilled in the art can easily understand other advantages and effects of this disclosure from the content disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of this disclosure, and not all of them. This disclosure can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of this disclosure. It should be noted that, in the absence of conflict, the following embodiments and features in the embodiments can be combined with each other. Based on the embodiments in this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.
[0067] It should be noted that various aspects of embodiments within the scope of the appended claims are described below. It will be apparent that the aspects described herein can be embodied in a wide variety of forms, and any particular structure and / or function described herein is merely illustrative. Based on this disclosure, those skilled in the art will understand that one aspect described herein can be implemented independently of any other aspect, and two or more of these aspects can be combined in various ways. For example, any number of aspects set forth herein can be used to implement the device and / or practice the method. Additionally, this device and / or method can be implemented using structures and / or functionalities other than one or more of the aspects set forth herein.
[0068] It should also be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of this disclosure. The drawings only show the components related to this disclosure and are not drawn according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.
[0069] Furthermore, specific details are provided in the following description to facilitate a thorough understanding of the examples. However, those skilled in the art will understand that the described aspects can be practiced without these specific details.
[0070] 5G D2D (Device-to-Device) direct-connection technology refers to the ability for nearby terminals to transmit data directly within a short range without the need for base station relay. Due to its short-range and direct-connection advantages, D2D technology can improve the efficiency of wireless resource utilization and expand network coverage. In existing hybrid networks, terminals inevitably face the issue of choosing a communication mode.
[0071] Example 1
[0072] See Figure 1 This is a flowchart illustrating a network connection method provided in an embodiment of this disclosure. The provided network connection method is applied to a terminal device. Figure 1 As shown, the network connection method mainly includes the following steps:
[0073] Step S101: Determine whether the terminal device is in a preset state at the current device location;
[0074] The network connection method provided in this embodiment is applied to terminal devices, especially wireless communication terminal devices whose application location limits the deployment of wired networks. These devices typically connect to their local cell network via built-in wireless communication modules to achieve data communication with the outside world. However, due to factors such as cell signal quality or environmental conditions, some terminal devices may be unable to maintain a continuous and effective network connection, affecting normal communication. In summary, there is an urgent need for a method that can solve the above-mentioned technical problems, trigger the switching of D2D terminal mode when D2D wireless link resources are scarce or interference is severe, exchange necessary information based on the distance between the communicating parties detected by D2D communication, and select the communication mode based on a comparison of a specific threshold range, thereby overcoming the aforementioned problems.
[0075] This solution provides a network connection scheme for D2D networking communication in such situations, enabling terminal devices that cannot communicate normally to send and receive data through other devices that can communicate normally as intermediaries. In specific implementation, the device requiring network connection is defined as the terminal device, and the intermediary device capable of providing D2D networking communication is defined as the basic gateway device, thus limiting the gateway function of this part of the device to data relay. It should be noted that the basic gateway device can be a conventional standard gateway device, or a conventional terminal device capable of communication and D2D networking that can establish a wired communication connection with the standard gateway device. Here, it is only used to limit the installation of fixed-installation devices and wireless-to-wired devices appropriately arranged for D2D communication distances; no model restriction is imposed.
[0076] Considering that D2D networking can serve as an alternative network connection solution—meaning that terminal devices can choose D2D networking when their own wireless communication quality is poor or under other special circumstances, while still choosing conventional wireless communication under normal conditions—the state requiring D2D networking communication can be defined as a preset state. In this preset state, the terminal device needs to communicate via D2D networking. Therefore, the terminal device, at its current location, can periodically or proactively determine whether it is in the preset state when the network is abnormal. Considering practical applications, the preset state typically includes two main situations: a network connection error or low battery.
[0077] Step S102: If the terminal device is in the preset state at the current device location, it initiates a D2D networking request to at least one basic gateway device in the preset area where the current device location is located.
[0078] D2D networking requires a short distance. To establish a network, the network range needs to be defined with the feasible network distance as the radius, based on the current location of the terminal device. This range is defined as a preset area, which contains multiple basic gateway devices that may support networking. If the terminal device is in a preset state, it can initiate a D2D networking request to each basic gateway device within the preset area to request the establishment of a D2D network with one or more basic gateway devices within the preset area.
[0079] Step S103: If a network permission instruction is received from the target gateway device based on the D2D networking request, establish D2D networking communication with the target gateway device, wherein the target gateway device is any basic gateway device;
[0080] Based on the above steps, the terminal device initiates a D2D networking request to multiple basic gateway devices within the preset area. If a basic gateway device receives the D2D networking request and is in a network-enabled state, it can return a network-allowing instruction to the terminal device. Of course, for its own data security or load considerations, the basic gateway device may also choose not to return a network-allowing instruction, i.e., refuse to establish a D2D network with the terminal device.
[0081] The base gateway device that returns a network access permission instruction to the terminal device is defined as the target gateway device. The target gateway device can be a standard gateway device or a wired device connected to a standard gateway device. After receiving the network access permission instruction, the terminal device can establish D2D network communication with the target gateway device according to the algorithm strategy.
[0082] Step S104: Data transmission and reception are performed through the target gateway device.
[0083] After achieving D2D networking with the target gateway device through the above steps, data can be sent and received through the target gateway device, enabling communication with the outside world.
[0084] According to one specific embodiment of the present disclosure, the basic gateway device includes a standard gateway device and a wired device that establishes a wired communication connection with the standard gateway device;
[0085] The step of initiating a D2D networking request to at least one basic gateway device within a preset area where the current device is located, and establishing D2D networking communication with the target gateway device if a networking permission instruction is received from the target gateway device based on the D2D networking request, includes:
[0086] Locate the standard gateway devices and wired devices within the preset area;
[0087] Initiate a D2D networking request to the standard gateway device and the wired device;
[0088] If a network permission command is received from the standard gateway device, then D2D network communication is established with the standard gateway device;
[0089] If no network permission instruction is received from the standard gateway device, D2D network communication is established with the wired device.
[0090] Considering the varying communication capabilities of different gateway devices, this implementation method limits, for example... Figure 2 As shown, D2D networking communication is prioritized through standard gateway devices, followed by wired devices for D2D networking communication, in order to achieve more efficient network connectivity.
[0091] The basic gateway device can also be a wireless-to-wired device. If the basic gateway device is a wireless-to-wired device;
[0092] The step of initiating a D2D networking request to at least one basic gateway device within a preset area where the current device is located, and establishing D2D networking communication with the target gateway device if a networking permission instruction is received from the target gateway device based on the D2D networking request, includes:
[0093] Locate wireless-to-wired devices within the preset area;
[0094] Initiate a D2D networking request to the wireless-to-wired device;
[0095] If a network permission command is received from the wireless-to-wired device, then D2D network communication is established with the wireless-to-wired device.
[0096] If no network permission instruction is received from the wireless-to-wired device, a D2D network request is initiated to other terminal devices within the preset area.
[0097] This implementation adds the possibility of a basic gateway device including a wireless-to-wired (W2D) device, which can be a repeater router. A repeater router receives wireless signals, amplifies them, and converts them into a wired network. A repeater router with a network cable interface must be selected; otherwise, a wired network connection cannot be established. If a W2D device is found within the preset area, a D2D networking request is initiated directly to that device. After receiving a network permission command from the W2D device, D2D networking communication is established with it. If no network permission command is received, D2D networking requests need to be initiated to other terminal devices within the preset area.
[0098] According to a specific embodiment of this disclosure, the step for determining a preset state of abnormal network connection is limited. Specifically, the step of determining whether the terminal device is in a preset state at its current location includes:
[0099] Obtain the network registration information of the terminal device, and the signal quality of the cell corresponding to the current device location;
[0100] Based on the network registration information of the terminal device and the signal quality of the corresponding cell, it is determined whether the terminal device is in a network connection abnormal state;
[0101] If the terminal device is in a network connection abnormal state, it is determined that the terminal device is in the preset state at the current device location.
[0102] Furthermore, the network registration information includes network type, and the signal quality of the corresponding cell includes RSSI. The step of determining whether the terminal device is in a network connection abnormal state based on the network registration information of the terminal device and the signal quality of the corresponding cell includes:
[0103] Determine whether the network type of the corresponding cell matches the network type required by the terminal device for data traffic usage, and determine whether the RSSI of the corresponding cell is less than or equal to the signal strength threshold;
[0104] If the network type of the corresponding cell does not match the network type required by the terminal device for data traffic, or if the RSSI of the corresponding cell is less than or equal to the signal strength threshold, then the terminal device is determined to be in a network connection abnormal state.
[0105] This embodiment defines a networking scheme for situations where network connectivity is abnormal. Specifically, a terminal device at a fixed location obtains its own network registration information, such as network type, frequency band, or channel, as well as the RSSI (Signal Quality Standard) of the corresponding cell. If the cell signal quality is too poor, the device is disconnected from the network or network type, or the signal quality is below a certain threshold, then D2D networking is initiated. Of course, in practical implementation, considering that some fixed-location wireless devices cannot directly perform single-hop or wireless-to-wired D2D networking, multi-hop networking can also be used, that is, forwarding communication through multiple target gateway devices as intermediaries.
[0106] According to another specific embodiment of this disclosure, the case where the preset state is a low battery state is limited. Specifically, the step of determining whether the terminal device is in a preset state at the current device location includes:
[0107] Determine whether the current remaining battery power of the terminal device is less than or equal to a preset battery power threshold;
[0108] If the current remaining battery power of the terminal device is less than or equal to the preset battery power threshold, then the terminal device is determined to be in the preset state at the current location.
[0109] This implementation method limits the selection of a low-power D2D networking communication method under low power conditions, taking into account the high power consumption of the wireless communication module, thereby improving the applicability of network connectivity.
[0110] The network connection scheme in this embodiment deploys a basic gateway device that can convert wireless to wired connections at a convenient location for cabling. This provides D2D networking communication conditions for terminal devices in the surrounding area with poor network quality or other preset conditions, enabling terminal devices with communication needs to overcome location network limitations and send and receive data externally through the basic gateway device.
[0111] Example 2
[0112] See Figure 3 This is a block diagram of a network connection device 300 provided in an embodiment of this disclosure. The network connection device 300 provided corresponds to the network connection method provided in the above embodiments and is applicable to terminal devices. Figure 3 As shown, the network connection device 300 mainly includes:
[0113] The judgment module 301 is used to determine whether the terminal device is in a preset state at the current device location;
[0114] Request module 302 is used to initiate a D2D networking request to at least one basic gateway device in the preset area where the current device location is located if the terminal device is in the preset state at the current device location.
[0115] The connection module 303 is used to establish D2D networking communication with the target gateway device if it receives a network permission instruction returned by the target gateway device based on the D2D networking request, wherein the target gateway device is any basic gateway device;
[0116] The communication module 304 is used for sending and receiving data through the target gateway device.
[0117] According to a specific embodiment of this disclosure, the determining module 301 is used for:
[0118] Obtain the network registration information of the terminal device, and the signal quality of the cell corresponding to the current device location;
[0119] Based on the network registration information of the terminal device and the signal quality of the corresponding cell, it is determined whether the terminal device is in a network connection abnormal state;
[0120] If the terminal device is in a network connection abnormal state, it is determined that the terminal device is in the preset state at the current device location.
[0121] According to one specific embodiment of the present disclosure, the basic gateway device includes a standard gateway device and a wired device that establishes a wired communication connection with the standard gateway device;
[0122] The request module 302 is used for:
[0123] Locate the standard gateway devices and wired devices within the preset area;
[0124] Initiate a D2D networking request to the standard gateway device and the wired device;
[0125] The connection module 303 is used for:
[0126] If a network permission command is received from the standard gateway device, then D2D network communication is established with the standard gateway device;
[0127] If no network permission instruction is received from the standard gateway device, D2D network communication is established with the wired device.
[0128] According to one specific embodiment of the present disclosure, the basic gateway device includes a wireless-to-wired device;
[0129] The request module 302 is used for:
[0130] Locate wireless-to-wired devices within the preset area;
[0131] Initiate a D2D networking request to the wireless-to-wired device;
[0132] The connection module is used for:
[0133] If a network permission command is received from the wireless-to-wired device, then D2D network communication is established with the wireless-to-wired device.
[0134] If no network permission instruction is received from the wireless-to-wired device, a D2D network request is initiated to other terminal devices within the preset area.
[0135] The network connection device in this embodiment first determines whether the terminal device is in a preset state at its current location. If the terminal device is in the preset state, it initiates a D2D networking request to at least one basic gateway device within the preset area where the current device is located. After receiving a network permission instruction from any target gateway device among the basic gateway devices based on the D2D networking request, D2D networking communication can be established with the target gateway device, thus enabling data transmission and reception through the target gateway device. In this solution, deploying basic gateway devices capable of wireless-to-wired conversion at convenient cabling locations provides D2D networking communication conditions for terminal devices in the surrounding area with poor network quality or other preset states, allowing terminal devices with communication needs to overcome location network limitations and achieve external data transmission and reception through the basic gateway devices. The specific implementation process of the provided network connection device can be found in the specific implementation process of the network connection method provided in the above embodiments, and will not be repeated here.
[0136] Example 3
[0137] This disclosure also provides a terminal device, including:
[0138] At least one processor; and,
[0139] A memory communicatively connected to the at least one processor; wherein,
[0140] The memory stores instructions that can be executed by the at least one processor, which enables the at least one processor to perform the network connection method provided in the foregoing embodiments.
[0141] Specifically, such as Figure 4 As shown, the terminal device 400 provided in this embodiment includes:
[0142] The components include a radio frequency unit 401, a network module 402, an audio output unit 403, an input unit 404, a sensor 405, a display unit 406, a user input unit 407, an interface unit 408, a memory 409, a processor 410, and a power supply 411. Those skilled in the art will understand that... Figure 4 The terminal device structure shown does not constitute a limitation on the terminal device. The terminal device may include more or fewer components than shown, or combine certain components, or have different component arrangements. In the embodiments of this application, the terminal device includes, but is not limited to, mobile phones, tablet computers, laptop computers, PDAs, in-vehicle terminal devices, wearable devices, and pedometers.
[0143] It should be understood that, in this embodiment, the radio frequency unit 401 can be used for receiving and transmitting signals during information transmission or calls. Specifically, it receives downlink data from the base station and processes it with the processor 410; additionally, it transmits uplink data to the base station. Typically, the radio frequency unit 401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, a duplexer, etc. Furthermore, the radio frequency unit 401 can also communicate with networks and other devices through a wireless communication system.
[0144] The terminal device provides users with wireless broadband internet access through network module 402, such as helping users send and receive emails, browse web pages, and access streaming media.
[0145] The audio output unit 403 can convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into audio signals and output them as sound. Furthermore, the audio output unit 403 can also provide audio output related to specific functions performed by the terminal device 400 (e.g., call signal reception sound, message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, and a receiver, etc.
[0146] Input unit 404 is used to receive audio or video signals. Input unit 404 may include a graphics processing unit (GPU) 4041 and a microphone 4042. The GPU 4041 processes image data of still images or videos acquired by an image capture terminal device (such as a camera) in video capture mode or image capture mode. The processed image frames can be played back on display unit 406. The image frames processed by GPU 4041 can be stored in memory 409 (or other storage media) or transmitted via radio frequency unit 401 or network module 402. Microphone 4042 can receive sound and process such sound into audio data. The processed audio data can be converted into a format that can be transmitted to a mobile communication base station via radio frequency unit 401 in telephone call mode.
[0147] The terminal device 400 also includes at least one sensor 405, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 4061 according to the ambient light level, and the proximity sensor can turn off the display panel 4061 and / or backlight when the terminal device 400 is moved to the ear. As a type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes). When stationary, it can detect the magnitude and direction of gravity and can be used to identify the terminal device's posture (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc. The sensor 405 may also include a fingerprint sensor, pressure sensor, iris sensor, molecular sensor, gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc., which will not be described in detail here.
[0148] Display unit 406 is used for video playback of information input by the user or information provided to the user. Display unit 406 may include display panel 4061, which may be configured in the form of a liquid crystal video player (LCD), organic light-emitting diode (OLED), or the like.
[0149] User input unit 407 can be used to receive input numerical or character information, and generate key signal inputs related to user settings and function control of the terminal device. Specifically, user input unit 407 includes a touch panel 4071 and other input devices 4072. Touch panel 4071, also known as a touch screen, can collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near touch panel 4071). Touch panel 4071 may include two parts: a touch detection terminal device and a touch controller. The touch detection terminal device detects the user's touch position and the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection terminal device, converts it into touch point coordinates, and sends it to the processor 410, which receives and executes commands from the processor 410. In addition, touch panel 4071 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. Besides touch panel 4071, user input unit 407 may also include other input devices 4072. Specifically, other input devices 4072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, joysticks, etc., which will not be described in detail here.
[0150] Furthermore, the touch panel 4071 can cover the display panel 4061. When the touch panel 4071 detects a touch operation on or near it, it transmits the information to the processor 410 to determine the type of touch event. Subsequently, the processor 410 provides corresponding visual output on the display panel 4061 based on the type of touch event. Although in Figure 4 In this embodiment, the touch panel 4071 and the display panel 4061 are two independent components to realize the input and output functions of the terminal device. However, in some embodiments, the touch panel 4071 and the display panel 4061 can be integrated to realize the input and output functions of the terminal device. The specific implementation is not limited here.
[0151] Interface unit 408 serves as an interface for connecting external terminal devices to terminal device 400. For example, the external terminal device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting to a terminal device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, and so on. Interface unit 408 can be used to receive input (e.g., data, power, etc.) from the external terminal device and transmit the received input to one or more components within terminal device 400, or it can be used to transmit data between terminal device 400 and the external terminal device.
[0152] The memory 409 can be used to store software programs and various data. The memory 409 may primarily include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function (such as sound playback, image playback, etc.), etc.; the data storage area may store data created based on the use of the mobile phone (such as audio data, phonebook, etc.). Furthermore, the memory 409 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0153] Processor 410 is the control center of the terminal device. It connects various parts of the terminal device via various interfaces and lines. By running or executing software programs and / or modules stored in memory 409, and by calling data stored in memory 409, it performs various functions and processes data of the terminal device, thereby providing overall monitoring of the terminal device. Processor 410 may include one or more processing units; preferably, processor 410 may integrate an application processor and a modem processor. The application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into processor 410.
[0154] The terminal device 400 may also include a power supply 411 (such as a battery) that supplies power to various components. Preferably, the power supply 411 can be logically connected to the processor 410 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system.
[0155] In addition, the terminal device 400 includes some functional modules not shown, which will not be described in detail here.
[0156] In addition, this application also provides a computer-readable storage medium storing computer instructions for causing a computer to perform the network connection method described in any one of the first aspects.
[0157] The terminal device and computer-readable storage medium in this embodiment first determine whether the terminal device is in a preset state at its current location. If the terminal device is in the preset state, it initiates a D2D networking request to at least one basic gateway device within the preset area where the current device is located. After receiving a network permission instruction from any target gateway device among the basic gateway devices based on the D2D networking request, D2D networking communication can be established with the target gateway device, thus enabling data transmission and reception through the target gateway device. In this solution, basic gateway devices capable of wireless-to-wired conversion are deployed in locations convenient for cabling, providing D2D networking communication conditions for terminal devices in the surrounding area with poor network quality or other preset states. This allows terminal devices with communication needs to overcome location network limitations and achieve external data transmission and reception through the basic gateway devices. The specific implementation process of the provided terminal device and computer-readable storage medium can be found in the specific implementation process of the network connection method provided in the above embodiments, and will not be repeated here.
[0158] The above description is merely a specific embodiment of this disclosure, but the scope of protection of this disclosure is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this disclosure should be included within the scope of protection of this disclosure. Therefore, the scope of protection of this disclosure should be determined by the scope of the claims.
Claims
1. A network connection method, characterized in that, The network connection method, applied to terminal devices, includes: Determine whether the terminal device is in a preset state at its current location; If the terminal device is in the preset state at its current device location, it initiates a D2D networking request to at least one basic gateway device in the preset area where the current device location is located. If a network permission instruction is received from the target gateway device based on the D2D networking request, D2D networking communication is established with the target gateway device, wherein the target gateway device is any basic gateway device; Data is sent and received through the target gateway device; The basic gateway device includes a standard gateway device and a wired device that establishes a wired communication connection with the standard gateway device; The step of initiating a D2D networking request to at least one basic gateway device within a preset area where the current device is located, and establishing D2D networking communication with the target gateway device if a networking permission instruction is received from the target gateway device based on the D2D networking request, includes: Locate the standard gateway devices and wired devices within the preset area; Initiate a D2D networking request to the standard gateway device and the wired device; If a network permission command is received from the standard gateway device, then D2D network communication is established with the standard gateway device; If no network permission instruction is received from the standard gateway device, D2D network communication is established with the wired device. Establish D2D networking communication with the target gateway device according to the algorithm strategy; The basic gateway device can also be a wireless-to-wired device. If the basic gateway device is a wireless-to-wired device; The step of initiating a D2D networking request to at least one basic gateway device within a preset area where the current device is located, and establishing D2D networking communication with the target gateway device if a networking permission instruction is received from the target gateway device based on the D2D networking request, includes: Locate wireless-to-wired devices within the preset area; Initiate a D2D networking request to the wireless-to-wired device; If a network permission command is received from the wireless-to-wired device, then D2D network communication is established with the wireless-to-wired device. If no network permission instruction is received from the wireless-to-wired device, a D2D network request is initiated to other terminal devices within the preset area.
2. The network connection method according to claim 1, characterized in that, The step of determining whether the terminal device is in a preset state at its current location includes: Obtain the network registration information of the terminal device, and the signal quality of the cell corresponding to the current device location; Based on the network registration information of the terminal device and the signal quality of the corresponding cell, it is determined whether the terminal device is in a network connection abnormal state; If the terminal device is in a network connection abnormal state, it is determined that the terminal device is in the preset state at the current device location.
3. The network connection method according to claim 2, characterized in that, The network registration information includes the network type, and the signal quality of the corresponding cell includes RSSI. The step of determining whether the terminal device is in a network connection abnormal state based on the network registration information of the terminal device and the signal quality of the corresponding cell includes: Determine whether the network type of the corresponding cell matches the network type required by the terminal device for data traffic usage, and determine whether the RSSI of the corresponding cell is less than or equal to the signal strength threshold; If the network type of the corresponding cell does not match the network type required by the terminal device for data traffic, or if the RSSI of the corresponding cell is less than or equal to the signal strength threshold, then the terminal device is determined to be in a network connection abnormal state.
4. The network connection method according to claim 1, characterized in that, The step of determining whether the terminal device is in a preset state at its current location includes: Determine whether the current remaining battery power of the terminal device is less than or equal to a preset battery power threshold; If the current remaining battery power of the terminal device is less than or equal to the preset battery power threshold, then the terminal device is determined to be in the preset state at the current location.
5. A network connection device, characterized in that, The network connection device includes: The judgment module is used to determine whether the terminal device is in a preset state at the current device location; The request module is used to initiate a D2D networking request to at least one basic gateway device within the preset area where the current device location is located if the terminal device is in the preset state at the current device location. The connection module is used to establish D2D networking communication with the target gateway device if it receives a networking permission instruction returned by the target gateway device based on the D2D networking request, wherein the target gateway device is any basic gateway device; The communication module is used for sending and receiving data through the target gateway device; The basic gateway device includes a standard gateway device and a wired device that establishes a wired communication connection with the standard gateway device; The step of initiating a D2D networking request to at least one basic gateway device within a preset area where the current device is located, and establishing D2D networking communication with the target gateway device if a networking permission instruction is received from the target gateway device based on the D2D networking request, includes: Locate the standard gateway devices and wired devices within the preset area; Initiate a D2D networking request to the standard gateway device and the wired device; If a network permission command is received from the standard gateway device, then D2D network communication is established with the standard gateway device; If no network permission instruction is received from the standard gateway device, D2D network communication is established with the wired device. Establish D2D networking communication with the target gateway device according to the algorithm strategy; The basic gateway device can also be a wireless-to-wired device. If the basic gateway device is a wireless-to-wired device; The step of initiating a D2D networking request to at least one basic gateway device within a preset area where the current device is located, and establishing D2D networking communication with the target gateway device if a networking permission instruction is received from the target gateway device based on the D2D networking request, includes: Locate wireless-to-wired devices within the preset area; Initiate a D2D networking request to the wireless-to-wired device; If a network permission command is received from the wireless-to-wired device, then D2D network communication is established with the wireless-to-wired device. If no network permission instruction is received from the wireless-to-wired device, a D2D network request is initiated to other terminal devices within the preset area.
6. The network connection device according to claim 5, characterized in that, The judgment module is used for: Obtain the network registration information of the terminal device, and the signal quality of the cell corresponding to the current device location; Based on the network registration information of the terminal device and the signal quality of the corresponding cell, it is determined whether the terminal device is in a network connection abnormal state; If the terminal device is in a network connection abnormal state, it is determined that the terminal device is in the preset state at the current device location.
7. A terminal device, characterized in that, include: At least one processor; as well as, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the network connection method according to any one of claims 1-4.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to perform the network connection method according to any one of claims 1-4.
Citation Information
Patent Citations
Network assisted alternate coverage in a cellular communications network
US20170156071A1