CN116800814A - Data relay method, server, terminal equipment and storage medium - Google Patents

Data relay method, server, terminal equipment and storage medium Download PDF

Info

Publication number
CN116800814A
CN116800814A CN202310708105.1A CN202310708105A CN116800814A CN 116800814 A CN116800814 A CN 116800814A CN 202310708105 A CN202310708105 A CN 202310708105A CN 116800814 A CN116800814 A CN 116800814A
Authority
CN
China
Prior art keywords
terminal
relay
communication
request message
relay device
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
CN202310708105.1A
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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN202310708105.1A priority Critical patent/CN116800814A/en
Publication of CN116800814A publication Critical patent/CN116800814A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/22Communication route or path selection, e.g. power-based or shortest path routing using selective relaying for reaching a BTS [Base Transceiver Station] or an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/04Terminal devices adapted for relaying to or from another terminal or user

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a data relay method, a server, terminal equipment and a storage medium, and belongs to the technical field of computers. The target relay device can be determined from the at least one relay device through the communication request message of the first terminal forwarded by the at least one relay device, then the relay path is determined, the relay path is sent to the target relay device and the second terminal, and the target relay device sends the relay path to the first terminal, so that after the first terminal and the second terminal obtain the relay path, the relay path can be used for communication. And forwarding the communication request message by using the relay equipment supporting the local area network and the public network communication, so that the first terminal supporting the local area network communication and the second terminal supporting the local area network or the public network communication acquire a relay path to communicate, the signal range can be expanded, and the first terminal supporting the local area network communication is free from the limitation of the communication distance.

Description

Data relay method, server, terminal equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data relay method, a server, a terminal device, and a storage medium.
Background
With the popularization of terminal devices and the rapid development of communication technologies, there is an increasing demand for data communication. In order to keep in touch with the outside, people can use terminal devices for communication.
However, in the case of communication using a local area network, people cannot perform long-distance communication due to the limited communication distance of the local area network.
How to enable a terminal that uses a local area network to perform communication to perform long-distance communication is a problem to be solved.
Disclosure of Invention
In order to solve the problems in the prior art, the embodiment of the application provides a data relay method, a server, a terminal device and a storage medium, which can adopt a local area network to carry out long-distance communication and are beneficial to expanding the signal range.
In a first aspect, an embodiment of the present application provides a data relay method, applied to a server, where the method includes:
receiving a communication request message sent by each relay device in at least one relay device, wherein the communication request message is sent to each relay device by a first terminal, the first terminal is a terminal supporting local area network communication, and the relay devices are devices supporting local area network and public network communication;
Determining a target relay device from the at least one relay device according to the communication request message sent by each relay device, and determining a relay path;
transmitting the relay path to the target relay device, so that the target relay device transmits the relay path to the first terminal;
and sending the relay path to the second terminal so that the second terminal and the first terminal communicate through the relay path, wherein the second terminal is a target terminal indicated by the communication request message, and the second terminal is a terminal supporting local area network or public network communication.
In a possible implementation manner, the communication request message sent by any one relay device includes the public network signal strength of the any one relay device, the address of the any one relay device, the signal strength of the any one relay device relative to the first terminal, the address of the first terminal and the address of the second terminal;
the determining a target relay device from the at least one relay device according to the communication request message sent by each relay device, and determining a relay path includes: the relay equipment with the public network signal intensity larger than a set intensity threshold value in the at least one relay equipment is used as candidate relay equipment;
The candidate relay equipment with the highest signal strength relative to the first terminal is used as the target relay equipment;
and determining the relay path according to the address of the target relay device, the address of the first terminal and the address of the second terminal.
In a second aspect, an embodiment of the present application provides a server comprising a memory and a processor, the memory having stored thereon a computer program executable on the processor, the computer program, when executed by the processor, implementing the method of any of claims 1-2.
In a third aspect, an embodiment of the present application provides a terminal device, where the terminal device is a first terminal supporting local area network communication, and the first terminal includes: a memory, a processor, and a communication component;
the memory is configured to: storing programs or data used by the terminal equipment to operate;
the communication component is configured to: receiving or transmitting data;
the processor is configured to: sending a communication request message to each relay device in at least one relay device through the communication component, so that each relay device sends the communication request message to a server, and each relay device is a device supporting local area network and public network communication;
Receiving a relay path sent by target relay equipment, wherein the relay path is determined by the server according to the received communication request message and is sent to the target relay equipment; the relay path is used for communication between the first terminal and the second terminal, the second terminal is a target terminal indicated by the communication request message, and the second terminal is a terminal supporting local area network or public network communication.
In a fourth aspect, an embodiment of the present application provides a data relay method, which is applied to a first terminal, where the first terminal is a terminal supporting local area network communication, and the method includes:
sending a communication request message to each relay device in at least one relay device, so that each relay device sends the communication request message to a server, and each relay device is a device supporting local area network and public network communication;
receiving a relay path sent by target relay equipment, wherein the relay path is determined by the server according to the received communication request message and is sent to the target relay equipment; the relay path is used for communication between the first terminal and the second terminal, the second terminal is a target terminal indicated by the communication request message, and the second terminal is a terminal supporting local area network or public network communication.
In a fifth aspect, an embodiment of the present application provides a relay device, where the relay device is a device supporting communication between a local area network and a public network, and the relay device includes: a memory, a processor, and a communication component;
the memory is configured to: storing programs or data used by the terminal equipment to operate;
the communication component is configured to: receiving or transmitting data;
the processor is configured to: receiving a communication request message sent by a first terminal through the communication component, wherein the first terminal is a terminal supporting local area network communication;
the communication request message is sent to a server, so that the server determines a relay path according to the communication request message, and the server sends the relay path to a second terminal, wherein the second terminal is a target terminal indicated by the communication request message, and the second terminal is a terminal supporting local area network or public network communication;
and if the relay path sent by the server is received, the relay path is sent to the first terminal, so that the first terminal and the second terminal communicate through the relay path.
In a sixth aspect, an embodiment of the present application provides a data relay method, applied to a relay device, where the relay device is a device supporting local area network and public network communications, and the method includes:
Receiving a communication request message sent by a first terminal, wherein the first terminal is a terminal supporting local area network communication;
the communication request message is sent to a server, so that the server determines a relay path according to the communication request message, and the server sends the relay path to a second terminal, wherein the second terminal is a target terminal indicated by the communication request message, and the second terminal is a terminal supporting local area network or public network communication;
and if the relay path sent by the server is received, the relay path is sent to the first terminal, so that the first terminal and the second terminal communicate through the relay path.
In a seventh aspect, an embodiment of the present application provides a terminal device, where the terminal device is a second terminal supporting local area network or public network communications, and the second terminal includes: a memory, a processor, and a communication component;
the memory is configured to: storing programs or data used by the terminal equipment to operate;
the communication component is configured to: receiving or transmitting data;
the processor is configured to: receiving a relay path sent by a server through the communication component;
The relay path is determined by the server according to the communication request message sent by the first terminal forwarded by the relay device, and the relay device is a device supporting local area network and public network communication.
In an eighth aspect, an embodiment of the present application provides a data relay method, which is applied to a second terminal, where the second terminal is a terminal supporting local area network or public network communication, and the method includes:
receiving a relay path sent by a server;
the relay path is determined by the server according to the communication request message sent by the first terminal forwarded by the relay device, and the relay device is a device supporting local area network and public network communication.
In a ninth aspect, an embodiment of the present application provides a computer readable storage medium, in which a computer program is stored, the computer program implementing the method according to any one of the first, fourth, sixth and eighth aspects of the data relay method when executed by a processor.
According to the data relay method, the server, the terminal equipment and the storage medium, through the communication request message of the first terminal forwarded by at least one relay equipment, the target relay equipment can be determined from the at least one relay equipment, the relay path is further determined, the relay path is sent to the target relay equipment and the second terminal, the target relay equipment sends the relay path to the first terminal, and after the first terminal and the second terminal obtain the relay path, the relay path can be used for communication. And forwarding the communication request message by using the relay equipment supporting the local area network and the public network communication, so that the first terminal supporting the local area network communication and the second terminal supporting the local area network or the public network communication acquire a relay path to communicate, the signal range can be expanded, and the first terminal supporting the local area network communication is free from the limitation of the communication distance.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it will be apparent that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is an application scenario diagram of a data relay method according to an embodiment of the present application;
fig. 2 is a hardware configuration block diagram of a terminal device according to an embodiment of the present application;
fig. 3 is a software architecture block diagram of a terminal device according to an embodiment of the present application;
fig. 4 is a flowchart of a data relay method according to an embodiment of the present application;
fig. 5 is a schematic diagram of carrying data in a data communication request according to an embodiment of the present application;
fig. 6 is a schematic diagram of another data communication request according to an embodiment of the present application;
fig. 7 is a flowchart of a data relay method according to an embodiment of the present application;
fig. 8 is a schematic diagram of a data relay path according to an embodiment of the present application;
FIG. 9 is an interactive flowchart of a data relay method according to an embodiment of the present application;
FIG. 10 is an interactive flowchart of a data relay method according to an embodiment of the present application;
fig. 11 is a flowchart of a data relay method according to an embodiment of the present application;
fig. 12 is a flowchart of a data relay method according to an embodiment of the present application;
fig. 13 is a flowchart of a data relay method according to an embodiment of the present application;
fig. 14 is a block diagram of a data relay device according to an embodiment of the present application;
Fig. 15 is a block diagram of a data relay device according to an embodiment of the present application;
fig. 16 is a block diagram of a data relay device according to an embodiment of the present application;
fig. 17 is a block diagram of a data relay device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described in further detail below with reference to the accompanying drawings, and 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 application without making any inventive effort, are intended to be within the scope of the application.
It should be noted that, the application scenario described in the following embodiments of the present application is for more clearly describing the technical solution of the embodiments of the present application, and does not constitute a limitation on the technical solution provided by the embodiments of the present application, and those skilled in the art can know that, with the appearance of the new application scenario, the technical solution provided by the embodiments of the present application is also applicable to similar technical problems.
With the popularization of terminal devices and the rapid development of communication technologies, there is an increasing demand for data communication. In order to keep in touch with the outside, people can use terminal devices for communication. However, in the case of communication using a local area network, people cannot perform long-distance communication due to a limited communication distance of the local area network, and cannot communicate with terminal devices using a public network using the local area network.
Based on this, the embodiment of the application provides a data relay method, a device, an electronic apparatus and a storage medium, through a communication request message of a first terminal forwarded by at least one relay apparatus, a target relay apparatus may be determined from the at least one relay apparatus, further a relay path may be determined, the relay path may be sent to the target relay apparatus and a second terminal, and the target relay apparatus may send the relay path to the first terminal, so that after the first terminal and the second terminal obtain the relay path, the communication may be performed using the relay path. And forwarding the communication request message by using the relay equipment supporting the local area network and the public network communication, so that the first terminal supporting the local area network communication and the second terminal supporting the local area network or the public network communication acquire a relay path to communicate, the signal range can be expanded, and the first terminal supporting the local area network communication is free from the limitation of the communication distance.
In the following, some simple descriptions are first provided for application scenarios to which the technical solution of the embodiment of the present application can be applied, and it should be noted that the application scenarios described below are only used to illustrate the embodiment of the present application, but not limited thereto. In the specific implementation, the technical scheme provided by the embodiment of the application can be flexibly applied according to actual needs.
Fig. 1 is a schematic diagram of an application scenario of a data relay method according to an embodiment of the present application. As shown in fig. 1, the application scenario includes a terminal device UE1, a terminal device UE2, a terminal device UE3, a terminal device UE4, a terminal device UE5, a terminal device UE6, and a server 10. The terminal equipment UE1, the terminal equipment UE2, the terminal equipment UE3, the terminal equipment UE4, the terminal equipment UE5 and the terminal equipment UE6 are terminals which can support local area network communication and public network communication. In the application scenario shown in fig. 1, the terminal device UE2 and the terminal device UE3 are in an environment where a public network signal cannot be received, i.e. the terminal device UE1, the terminal device UE2 and the terminal device UE3 are terminals where the public network is lost and only a local area network can be used for communication. The terminal device UE4 and the terminal device UE5 are terminals that can communicate using the local area network and the public network at the same time, and therefore, the terminal device UE4 and the terminal device UE5 can function as relay devices. The terminal device UE6 is in an environment that cannot be connected to the lan, i.e., the terminal device UE6 is a terminal that is lost in the lan and can only use the public network to communicate, and the cloud server 10 can communicate with the terminal device UE4, the terminal device UE5 and the terminal device UE6 through the base station.
The application scenarios of the data relay method provided by the embodiment of the application comprise communication between the terminal in the same local area network environment and communication between the terminal in the local area network environment and the terminal in the public network environment, and the two application scenarios are introduced one by one.
Application scenario 1: when a terminal device such as UE1 (hereinafter referred to as a first terminal) that uses a local area network to communicate with a terminal device such as UE2 or UE3 (hereinafter referred to as a second terminal) that also uses a local area network is required to communicate, if the communication distance between the first terminal and the second terminal exceeds the communication distance supported by the local area network, the first terminal may send a communication request message to UE4 and UE5 (hereinafter referred to as relay devices) through the local area network, a plurality of relay devices may receive the communication request message, may forward the communication request message to the server 10, the server 10 determines a target relay device of the plurality of relay devices and determines a relay path, the server 10 sends the relay path to the target relay device, and the target relay device sends the relay path to the first terminal and the second terminal, and the first terminal and the second terminal receive the relay path, and may communicate according to the relay path, thereby expanding the signal range in the local area network environment.
Application scenario 2: when a terminal device that uses a local area network to perform communication, such as UE1 (hereinafter referred to as a first terminal), needs to perform communication with a terminal device that uses a public network UE6 (hereinafter referred to as a second terminal), since the terminal in the local area network environment cannot perform communication with the terminal in the public network environment, the first terminal may send a communication request message to UE4 and UE5 (hereinafter referred to as relay devices) through the local area network, a plurality of relay devices may receive the communication request message, may forward the communication request message to the server 10, the server 10 determines a target relay device of the plurality of relay devices, and determines a relay path, the server 10 sends the relay path to the target relay device and the second terminal, and the target relay device sends the relay path to the first terminal, and the first terminal and the second terminal receive the relay path, and may perform communication according to the relay path, thereby achieving communication between the terminal in the local area network environment and the terminal in the public network environment.
Fig. 2 is a block diagram schematically illustrating a hardware configuration of a terminal device according to an embodiment of the present application. It should be understood that the terminal device 200 shown in fig. 2 may be any one of the terminal devices UE1, UE2, UE3, UE4, UE5 and UE6 in fig. 1, and the terminal device 200 may have more or fewer components than shown in fig. 2, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
As shown in fig. 2, the terminal device 200 includes: communication component 210, processor 220, memory 230, display 240, input component 250, audio circuitry 260, SIM card interface 270, and sensor 280.
The communication component 210 is configured to receive or send a call request, receive and send signals during a call, and connect to a server to upload or download data. The communication component 210 may include an RF (radio frequency) circuit 211, a Wi-Fi (Wireless Fidelity ) module 212.
The RF circuit 211 may be used for receiving and transmitting signals during the process of receiving and transmitting information or communication, and may receive downlink data of the base station and then transmit the downlink data to the processor 220 for processing; uplink data may be sent to the base station. In general, RF circuitry 211 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. The RF circuit 211 may receive electromagnetic waves from an antenna, filter, amplify, and the like the received electromagnetic waves, and transmit the electromagnetic waves to a modem processor for demodulation. The RF circuit 211 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna to radiate. In some embodiments, at least some functional blocks of RF circuitry 211 may be disposed in processor 220. In some embodiments, at least some of the functional blocks of RF circuitry 211 may be disposed in the same device as at least some of the blocks of processor 220. The RF circuitry 211 of the terminal device 200 is coupled to an antenna so that the terminal device 200 can communicate with a network and other devices through wireless communication techniques.
Wi-Fi belongs to a short-range wireless transmission technology, and the terminal device 200 can help a user to send and receive e-mail, browse web pages, access streaming media and the like through the Wi-Fi module 212, so that wireless broadband internet access is provided for the user. The Wi-Fi module 212 may be connected to a router through which an external network is connected. The Wi-Fi module 212 may also connect to a server to upload or download data.
The lan module 213 belongs to a short-range wireless transmission technology, and the terminal device 200 can communicate with other devices through the lan module 213.
Memory 230 may be used to store data or program codes used by the terminal device when operating. The processor 220 performs various functions of the terminal device 200 and data processing by executing data or program codes stored in the memory 230. Memory 230 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. The memory 230 stores an operating system that enables the terminal device 200 to operate.
The display 240 is used to display information input by a user or information provided to the user and a graphical user interface (graphical user interface, GUI) of various menus of the terminal device 200. In particular, the display 240 may include a display disposed on a front side of the terminal device 200. The display may be configured in the form of a liquid crystal display, light emitting diodes, or the like. The display 240 may be used to display an interface of the terminal device while it is running.
The input component 250 may be used to receive numeric or character information entered by a user, various operations entered by the user, etc., and to generate signal inputs related to user settings and function controls of the terminal device 200. In particular, the input component 250 may include keys and a touch screen, which may be disposed on the front side of the terminal device 200, may collect touch operations on or near the user, such as clicking buttons, dragging scroll boxes, and the like.
The touch screen may be covered on the display, and in some embodiments, the touch screen may be integrated with the display to implement the input and output functions of the terminal device 200, and after integration, the touch screen may be simply referred to as a touch display.
The terminal device 200 may further include a positioning module, such as a satellite positioning module or a mobile communication network positioning module, and may determine the geographic location of the terminal device 200 in real time.
Audio circuitry 260, speaker 261, microphone 262 may provide an audio interface between a user and terminal device 200. The audio circuit 260 may transmit the received electrical signal converted from audio data to the speaker 261, and the electrical signal is converted into a sound signal by the speaker 261 to be output. The terminal device 200 may also be configured with a volume button for adjusting the volume of the sound signal. On the other hand, the microphone 262 converts the collected sound signal into an electrical signal, which is received by the audio circuit 260 and converted into audio data, which is output to the RF circuit 211 for transmission to, for example, another terminal, or to the memory 230 for further processing.
The SIM card interface 270 is used to connect a SIM card. The SIM card may be inserted into the SIM card interface 270 or withdrawn from the SIM card interface 270 to achieve contact and separation with the terminal apparatus 200. The terminal device 200 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. SIM card interface 270 may support Nano SIM cards, micro SIM cards, and the like. The same SIM card interface can be used to insert multiple cards simultaneously. The types of the plurality of cards may be the same or different. The SIM card interface may also be compatible with different types of SIM cards. The SIM card interface may also be compatible with external memory cards. The terminal device 200 interacts with the network through the SIM card to realize functions such as communication and data communication. In some embodiments, the terminal device 200 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the terminal device 200 and cannot be separated from the terminal device 200. The SIM card is used to identify the user's mobile phone number.
The terminal device 200 may include a USB (universal serial bus ) interface or the like in addition to the SIM card interface 270. The USB interface is used for connecting a charging wire or other peripheral equipment. For example, the terminal device 200 may be connected to the charging wire through a USB interface. The components or modules in the terminal device 200 are connected by a bus.
The terminal device 200 may further comprise at least one sensor 280, such as an acceleration sensor 281, a distance sensor 282, a fingerprint sensor 283, a temperature sensor 284. The terminal device 200 may also be configured with other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, light sensors, motion sensors, and the like. For example, the fingerprint sensor 283 may be used to sense an icon of the user's clicking on the operating interface of the terminal device 200.
The terminal device 200 may also include a camera for capturing still images or video. The camera can be one or a plurality of cameras. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the processor 220 for conversion into a digital image signal.
The processor 220 is a control center of the terminal device 200, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal device 200 and processes data by running or executing software programs stored in the memory 230, and calling data stored in the memory 230. In some embodiments, processor 220 may include one or more processing units. The processor 220 in the present application may run an operating system, an application program, a user interface display and a touch response, and a search object display method according to the embodiments of the present application. The processor 220 performs a specific process of acquiring the search object presentation method, which will be described in detail below.
Fig. 3 is a software configuration block diagram of the terminal device 200 of the embodiment of the present application.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run) and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages. As shown in fig. 3, the application package may include applications such as cameras, gallery, calendar, talk, map, navigation, clock, bluetooth, music, video, short message, etc. The user may set an alarm clock in the clock application. The application layer may also include third party applications installed on the terminal device.
The application framework layer provides an application programming interface (Application Programming Interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 3, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager may obtain the display size, determine if there is a status bar, lock the screen, intercept the screen, etc.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include alarm clock data, video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is arranged to provide communication functions for the terminal device. Such as the management of call status (including on, hung-up, etc.). The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the terminal vibrates, and an indicator light blinks.
Android run time includes a core library and virtual machines. Android run time is responsible for scheduling and management of the Android system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), etc. Wherein the three-dimensional graphics processing library and the 2D graphics engine both belong to a common camera resource.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
Fig. 4 shows a flowchart of a data relay method according to an embodiment of the present application. The method may be applied to the server shown in fig. 1. As shown in fig. 4, the method may include the steps of:
step S401, a communication request message sent by each of at least one relay device is received.
The communication request message is sent to each relay device by a first terminal, the first terminal is a terminal supporting local area network communication, and the relay devices are devices supporting local area network communication and public network communication.
When the first terminal needs to communicate with the outside, the communication request message may be broadcasted to the local area network, as shown in fig. 5, where the communication request message may carry an address of the first terminal and an address of a target terminal that needs to communicate, and after each relay device receives the communication request message carrying the address of the first terminal and the address of the target terminal, the public network signal strength of the local device, the signal strength of the local device relative to the first terminal, and the local address of the local device may be determined. Further, as shown in fig. 6, each relay device may add the local public network signal strength and the local signal strength relative to the first terminal, the address of the local device to the communication request message sent by the first terminal, and send the communication request message after adding the information to the server, where the server may receive the communication request message sent by each relay device in the at least one relay device.
Step S402, determining a target relay device from at least one relay device according to the communication request message sent by each relay device, and determining a relay path.
In an alternative embodiment, the method for determining the target relay device from at least one relay device and determining the relay path by the server according to the communication request message sent by each relay device, as shown in fig. 7, may include the following steps:
in step S4021, a relay device having a public network signal strength greater than a set strength threshold value among at least one relay device is used as a candidate relay device.
The server may use, as a candidate relay device, a relay device having a public network signal strength greater than a set strength threshold, where the set strength threshold may be set as required, and may be, for example, -80dBm.
In this step, the relay device with the public network signal strength greater than the set strength threshold value in at least one relay device is used as a candidate relay device, so as to ensure the communication quality between the relay device and the second terminal in the public network environment, and if the server determines that the second terminal is a terminal in the local area network environment, all the relay devices can be used as candidate relay devices.
In step S4022, the candidate relay device having the highest signal strength with respect to the first terminal among the candidate relay devices is set as the target relay device.
In some embodiments, if there are a plurality of candidate relay devices, after obtaining the candidate relay device, the candidate relay device having the highest signal strength with respect to the first terminal among the candidate relay devices may be regarded as the target relay device.
In other embodiments, if there is only one candidate relay device, the relay device may be directly regarded as the target relay device.
In step S4023, a relay path is determined according to the address of the target relay device, the address of the first terminal, and the address of the second terminal.
After determining the target relay device, the server may determine a relay path according to the address of the target relay device, the address of the first terminal, and the address of the second terminal. As shown in fig. 8, the relay path includes an address of the first terminal, an address of the target relay device, and an address of the second terminal.
Step S403, the relay path is sent to the target relay device, so that the target relay device sends the relay path to the first terminal.
After determining the relay path and the target relay device, the server may send the relay path to the target relay device, and the target relay device may send the relay path to the first terminal through the local area network.
Step S404, the relay path is sent to the second terminal, so that the second terminal and the first terminal communicate through the relay path.
The server may send the relay path to the second terminal, and further, the first terminal and the second terminal may perform communication according to an address of the first terminal, an address of the target relay device, and an address of the second terminal included in the relay path.
When the first terminal is an initiator of communication data, the method for the first terminal to communicate with the second terminal may include the following steps, as shown in fig. 9:
in step S901, the first terminal determines a relay path based on the addresses of the first terminal and the second terminal.
When the first terminal needs to communicate with the second terminal, the first terminal may determine a relay path required for communicating with the second terminal, where the relay path is sent by the target relay device to the first terminal when the first terminal broadcasts the communication request, and a method for determining the relay path is described in detail above and is not described herein.
In step S902, the first terminal transmits communication data to the target relay device according to the relay path.
The first terminal may send communication data to the target relay device according to the address of the target relay device in the relay path, where the communication data carries the address of the second terminal.
In step S903, the target relay apparatus transmits communication data to the second terminal.
After receiving the communication data sent by the first terminal, the target relay device can forward the communication data sent by the first terminal to the second terminal according to the address of the second terminal carried in the communication data, thereby completing the function of data relay.
When the second terminal is an initiator of communication data, the method for the second terminal to communicate with the first terminal may include the following steps, as shown in fig. 10:
in step S1001, the second terminal determines a relay path based on the addresses of the second terminal and the first terminal.
When the second terminal needs to communicate with the first terminal, the second terminal may determine a relay path required when communicating with the first terminal.
In step S1002, the second terminal transmits communication data to the target relay device according to the relay path.
The second terminal may send communication data to the target relay device according to the address of the target relay device in the relay path, where the communication data carries the address of the first terminal.
In step S1003, the target relay apparatus transmits communication data to the first terminal.
After receiving the communication data sent by the second terminal, the target relay device can forward the communication data sent by the second terminal to the first terminal according to the address of the first terminal carried in the communication data, thereby completing the function of data relay.
The embodiment provided by the application has the following advantages:
on the one hand, the embodiment of the application can forward the communication request message by using the relay equipment supporting the local area network and the public network communication, so that the first terminal supporting the local area network communication and the second terminal supporting the local area network or the public network communication acquire a relay path to communicate, the signal range is further expanded, and the first terminal supporting the local area network communication gets rid of the limitation of the communication distance and the limitation that the terminal in the local area network environment cannot communicate with the terminal in the public network environment.
On the other hand, the embodiment of the application can select the target relay device with the optimal signal under the condition of having a plurality of relay devices, so that the relay forwarding function is more stable, and the redundancy of repeated forwarding signals of the plurality of relay devices is reduced.
Based on the same inventive concept, another data relay method is provided in the embodiment of the present application, and the method may be applied to the terminal device UE1, UE2 or UE3 (first terminal) shown in fig. 1, and as shown in fig. 11, the method may include the following steps:
step S1101, transmitting a communication request message to each of the at least one relay device, so that each relay device transmits the communication request message to the server.
Wherein each relay device is a device supporting local area network and public network communication.
In step S1102, a relay path sent by a target relay device is received.
The relay path is determined by the server according to the received communication request message and is sent to the target relay device, the relay path is used for communication between the first terminal and the second terminal, the second terminal is a target terminal indicated by the communication request message, and the second terminal is a terminal supporting local area network or public network communication. The determination method of the target relay device and the relay path are described in detail above, and are not described in detail herein.
Based on the same inventive concept, another data relay method is provided in the embodiment of the present invention, and the method may be applied to the terminal device UE4 and UE5 (relay device) shown in fig. 1, and as shown in fig. 12, the method may include the following steps:
step S1201, a communication request message sent by the first terminal is received.
The first terminal is a terminal supporting local area network communication.
Step S1202, a communication request message is sent to the server, so that the server determines a relay path according to the communication request message, and the server sends the relay path to the second terminal.
The second terminal is a target terminal indicated by the communication request message, and the second terminal is a terminal supporting local area network or public network communication. The determination method of the target relay device and the relay path are described in detail above, and are not described in detail herein.
In step S1203, when the relay path sent by the server is received, the relay path is sent to the first terminal, so that the first terminal and the second terminal communicate through the relay path.
Based on the same inventive concept, another data relay method is provided in the embodiment of the present invention, and the method may be applied to the terminal device UE6 (second terminal) shown in fig. 1, and as shown in fig. 13, the method may include the following steps:
in step S1301, a relay path sent by the server is received.
The method for determining the target relay device and the relay path is described in detail above, and will not be described herein.
In step S1302, communication is performed with the first terminal through the relay path.
The relay device is used for forwarding a communication request message sent by the first terminal, wherein the first terminal is a terminal supporting local area network communication, the relay path is determined by a server according to the relay device, and the relay device is a device supporting local area network and public network communication.
Based on the same inventive concept, the embodiment of the present invention further provides a schematic structural diagram of a data relay device, as shown in fig. 14, where the data relay device includes:
a first receiving unit 1401, configured to receive a communication request message sent by each of at least one relay device, where the communication request message is sent by a first terminal to each of the relay devices, the first terminal is a terminal supporting local area network communication, and the relay devices are devices supporting local area network and public network communication;
a first determining unit 1402 configured to determine a target relay device from at least one relay device and determine a relay path for a communication request message transmitted by each relay device;
the first sending unit 1403 is configured to send the relay path to the second terminal, so that the second terminal and the first terminal communicate through the relay path, where the second terminal is a target terminal indicated by the communication request message, and the second terminal is a terminal supporting local area network or public network communication.
Based on the same inventive concept, the embodiment of the present invention further provides a schematic structural diagram of a data relay device, as shown in fig. 15, where the data relay device includes:
a second sending unit 1501, configured to send a communication request message to each of at least one relay device, so that each relay device sends the communication request message to a server, where each relay device is a device supporting local area network and public network communications;
A second receiving unit 1502, configured to receive a relay path sent by a target relay device, where the relay path is determined by a server according to a received communication request message and sent to the target relay device; the relay path is used for communication between the first terminal and the second terminal, the second terminal is a target terminal indicated by the communication request message, and the second terminal is a terminal supporting local area network or public network communication.
Based on the same inventive concept, another schematic structure of a data relay device is also provided in the embodiment of the present invention, as shown in fig. 16, where the data relay device includes:
a third receiving unit 1601, configured to receive a communication request message sent by a first terminal, where the first terminal is a terminal supporting local area network communication;
a third sending unit 1602, configured to send a communication request message to a server, so that the server determines a relay path according to the communication request message, and the server sends the relay path to a second terminal, where the second terminal is a target terminal indicated by the communication request message, and the second terminal is a terminal supporting local area network or public network communication;
the fourth transmitting unit 1603 is configured to, when receiving the relay path transmitted by the server, transmit the relay path to the first terminal, so that the first terminal and the second terminal communicate via the relay path.
Based on the same inventive concept, another schematic structure of a data relay device is also provided in the embodiment of the present application, as shown in fig. 17, where the data relay device includes:
a fourth receiving unit 1701, configured to receive a relay path sent by the server;
the communication unit 1702 is configured to communicate with a first terminal through a relay path, where the first terminal is a terminal supporting local area network communication, the relay path is determined by a server according to a relay device forwarding a communication request message sent by the first terminal, and the relay device is a device supporting local area network and public network communication.
The embodiment of the application also provides a computer storage medium, wherein the computer storage medium is stored with computer executable instructions for realizing the data relay method according to any embodiment of the application.
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 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.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present application without departing from the spirit or scope of the application. Thus, it is intended that the present application also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (10)

1. A data relay method, applied to a server, the method comprising:
receiving a communication request message sent by each relay device in at least one relay device, wherein the communication request message is sent to each relay device by a first terminal, the first terminal is a terminal supporting local area network communication, and the relay devices are devices supporting local area network and public network communication;
Determining a target relay device from the at least one relay device according to the communication request message sent by each relay device, and determining a relay path;
transmitting the relay path to the target relay device, so that the target relay device transmits the relay path to the first terminal;
and sending the relay path to the second terminal so that the second terminal and the first terminal communicate through the relay path, wherein the second terminal is a target terminal indicated by the communication request message, and the second terminal is a terminal supporting local area network or public network communication.
2. The method according to claim 1, wherein the communication request message sent by any one relay device includes a public network signal strength of the any one relay device, an address of the any one relay device, a signal strength of the any one relay device relative to the first terminal, an address of the first terminal, and an address of the second terminal;
the determining a target relay device from the at least one relay device according to the communication request message sent by each relay device, and determining a relay path includes: the relay equipment with the public network signal intensity larger than a set intensity threshold value in the at least one relay equipment is used as candidate relay equipment;
The candidate relay equipment with the highest signal strength relative to the first terminal is used as the target relay equipment;
and determining the relay path according to the address of the target relay device, the address of the first terminal and the address of the second terminal.
3. A server comprising a memory and a processor, the memory having stored thereon a computer program executable on the processor, which when executed by the processor, implements the method of any of claims 1-2.
4. A terminal device, wherein the terminal device is a first terminal supporting local area network communication, the first terminal comprising: a memory, a processor, and a communication component;
the memory is configured to: storing programs or data used by the terminal equipment to operate;
the communication component is configured to: receiving or transmitting data;
the processor is configured to: sending a communication request message to each relay device in at least one relay device through the communication component, so that each relay device sends the communication request message to a server, and each relay device is a device supporting local area network and public network communication;
Receiving a relay path sent by target relay equipment, wherein the relay path is determined by the server according to the received communication request message and is sent to the target relay equipment; the relay path is used for communication between the first terminal and the second terminal, the second terminal is a target terminal indicated by the communication request message, and the second terminal is a terminal supporting local area network or public network communication.
5. A data relay method, applied to a first terminal, where the first terminal is a terminal supporting local area network communication, the method comprising:
sending a communication request message to each relay device in at least one relay device, so that each relay device sends the communication request message to a server, and each relay device is a device supporting local area network and public network communication;
receiving a relay path sent by target relay equipment, wherein the relay path is determined by the server according to the received communication request message and is sent to the target relay equipment; the relay path is used for communication between the first terminal and the second terminal, the second terminal is a target terminal indicated by the communication request message, and the second terminal is a terminal supporting local area network or public network communication.
6. A relay device, wherein the relay device is a device supporting local area network and public network communications, the relay device comprising: a memory, a processor, and a communication component;
the memory is configured to: storing programs or data used by the terminal equipment to operate;
the communication component is configured to: receiving or transmitting data;
the processor is configured to: receiving a communication request message sent by a first terminal through the communication component, wherein the first terminal is a terminal supporting local area network communication;
the communication request message is sent to a server, so that the server determines a relay path according to the communication request message, and the server sends the relay path to a second terminal, wherein the second terminal is a target terminal indicated by the communication request message, and the second terminal is a terminal supporting local area network or public network communication;
and if the relay path sent by the server is received, the relay path is sent to the first terminal, so that the first terminal and the second terminal communicate through the relay path.
7. A data relay method, applied to a relay device, where the relay device is a device supporting local area network and public network communications, the method comprising:
Receiving a communication request message sent by a first terminal, wherein the first terminal is a terminal supporting local area network communication;
the communication request message is sent to a server, so that the server determines a relay path according to the communication request message, and the server sends the relay path to a second terminal, wherein the second terminal is a target terminal indicated by the communication request message, and the second terminal is a terminal supporting local area network or public network communication;
and if the relay path sent by the server is received, the relay path is sent to the first terminal, so that the first terminal and the second terminal communicate through the relay path.
8. A terminal device, wherein the terminal device is a second terminal supporting local area network or public network communication, the second terminal comprising: a memory, a processor, and a communication component;
the memory is configured to: storing programs or data used by the terminal equipment to operate;
the communication component is configured to: receiving or transmitting data;
the processor is configured to: receiving a relay path sent by a server through the communication component;
The relay path is determined by the server according to the communication request message sent by the first terminal forwarded by the relay device, and the relay device is a device supporting local area network and public network communication.
9. A data relay method, applied to a second terminal, where the second terminal is a terminal supporting local area network or public network communication, the method comprising:
receiving a relay path sent by a server;
the relay path is determined by the server according to the communication request message sent by the first terminal forwarded by the relay device, and the relay device is a device supporting local area network and public network communication.
10. A computer-readable storage medium having a computer program stored therein, characterized in that: the computer program, when executed by a processor, implements the method of any one of claims 1-2, 5, 7, 9.
CN202310708105.1A 2023-06-14 2023-06-14 Data relay method, server, terminal equipment and storage medium Pending CN116800814A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310708105.1A CN116800814A (en) 2023-06-14 2023-06-14 Data relay method, server, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310708105.1A CN116800814A (en) 2023-06-14 2023-06-14 Data relay method, server, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116800814A true CN116800814A (en) 2023-09-22

Family

ID=88043073

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310708105.1A Pending CN116800814A (en) 2023-06-14 2023-06-14 Data relay method, server, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116800814A (en)

Similar Documents

Publication Publication Date Title
US11385857B2 (en) Method for displaying UI component and electronic device
CN113835569A (en) Terminal device, quick start method for internal function of application and storage medium
CN114721761B (en) Terminal equipment, application icon management method and storage medium
CN114371895B (en) Terminal equipment, mail marking method and storage medium
CN114530148A (en) Control method and device and electronic equipment
CN111176766A (en) Communication terminal and component display method
CN114679752B (en) Method for sharing wireless communication capability by double systems and terminal equipment
CN114040319B (en) Method, device, equipment and medium for optimizing playback quality of terminal equipment
CN113642010B (en) Method for acquiring data of extended storage device and mobile terminal
CN115599265A (en) Intelligent device control method, terminal device, server and storage medium
CN114035870A (en) Terminal device, application resource control method and storage medium
CN116800814A (en) Data relay method, server, terminal equipment and storage medium
CN114896009B (en) Terminal equipment, server, theme recommendation method and storage medium
CN111159734A (en) Communication terminal and multi-application data inter-access processing method
CN114020379B (en) Terminal equipment, information feedback method and storage medium
CN114020381B (en) Terminal equipment, plug-in deployment method and storage medium
CN114007202A (en) Method for establishing binding relationship and related equipment
CN114416011B (en) Terminal, audio control method and storage medium
CN114968013B (en) Terminal device, function setting method and storage medium
CN114911394B (en) Terminal equipment and one-hand operation method
CN113938550B (en) Terminal equipment, information feedback method and storage medium
CN116016418B (en) Information interaction method and electronic equipment
CN116708647B (en) Notification message reply method and electronic equipment
CN116095230B (en) Application program recommendation method, terminal device and readable storage medium
CN114143456B (en) Photographing method and device

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