Communication method and communication device
By sending paging request messages in a multi-device ad hoc network to wake up dormant devices and perform channel negotiation, the problem of establishing connections between devices is solved, and power consumption is saved and resource utilization is improved.
Patent Information
- Application Number
- CN202210568673.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-24
- Publication Date
- 2025-09-30
- Estimated Expiration
- 2042-05-24
AI Technical Summary
In a multi-device ad hoc network, how to effectively wake up devices when they are in sleep state and perform channel negotiation to establish connections between devices, especially how to save device power consumption and improve resource utilization when there is no business transmission.
The dormant device is awakened by sending a paging request message, carrying candidate channel information for channel negotiation, receiving a paging response message to determine the service channel, and only monitoring the service channel after the connection is established to reduce power consumption and resource waste.
It achieves effective connection establishment between devices, reduces device power consumption, and improves channel utilization and resource efficiency.
Smart Images

Figure CN117156551B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and more specifically, to a communication method and a communication device. Background Art
[0002] Multi-device ad hoc networking supports long-distance, multi-hop communication between devices. Specifically, service-initiating and service-receiving devices can implement services such as text, voice, unicast, multicast, broadcast, and real-time voice communication between devices through relay devices.
[0003] To conserve power and improve resource utilization, devices in a multi-device ad hoc network can remain dormant when no traffic is being transmitted. However, when the service-initiating device in the multi-device ad hoc network needs to transmit data, waking it up for channel negotiation and establishing a connection between devices becomes a pressing issue. Summary of the Invention
[0004] The present application provides a communication method and a communication apparatus, which are conducive to establishing connections between devices in a multi-device ad hoc network.
[0005] In a first aspect, a communication method is provided, applied to a first device, the method comprising: when the second device is in a dormant state, sending a first paging request message to the second device, the first paging request message including information about at least one first candidate channel, the at least one first candidate channel being capable of being used for data transmission between the first device and the second device; and receiving a first paging response message from the second device, the first paging response message including information about a first service channel, the first service channel being one of the at least one first candidate channel, the first service channel being used for transmission of service data.
[0006] The service data is data from a service initiating device, the first device is the service initiating device, or the first device is a relay device between the service initiating device and the second device, and the second device is the next-hop device of the first device.
[0007] In the present application, a first device may page a second device via a first paging request message when the second device is in a dormant state. Because the first paging request message carries information about at least one first candidate channel for channel negotiation, the first device may wake up the second device via the first paging request message to perform channel negotiation, and establish a connection with the second device after receiving a first paging response message including the first service channel.
[0008] In conjunction with the first aspect, in certain implementations of the first aspect, the first paging request message further includes one or more of the following: a service type, a logical source address, or a logical destination address. The service type is used to determine a service channel, the logical source address is used to identify a logical address of a service initiating device, and the logical destination address is used to identify a logical address of a service receiving device.
[0009] In combination with the first aspect, in some implementations of the first aspect, before sending the first paging request message to the second device, the method further includes: determining, based on routing information, that the next hop device of the first device is the second device.
[0010] In the present application, the first device determines the logical address of the next-hop device according to the maintained routing information, which is conducive to improving the reliability of transmitting the first paging request message.
[0011] In combination with the first aspect, in some implementations of the first aspect, the method further includes: monitoring at least one first candidate channel.
[0012] In the present application, illustratively, the first device may monitor the at least one first candidate channel after sending the first paging request message to the second device, so as to receive the message sent by the second device on the monitored channel.
[0013] In conjunction with the first aspect, in certain implementations of the first aspect, after receiving the first paging response message from the second device, the method further includes: continuing to monitor the first service channel, and releasing other channels in the at least one first candidate channel except the first service channel.
[0014] In the present application, after determining to use the first service channel to transmit service data, the first device may only monitor the first service channel and release other unselected channels. This is beneficial to reducing the power consumption of the device and improving the utilization rate of the channel.
[0015] In combination with the first aspect, in certain implementations of the first aspect, the first device is a relay device between the third device and the second device, and the third device is the previous hop device of the first device. The method also includes: receiving a second paging request message from the third device, the second paging request message including information of at least one second candidate channel, and the at least one second candidate channel can be used for data transmission between the third device and the first device.
[0016] In conjunction with the first aspect, in certain implementations of the first aspect, after receiving a second paging request message from a third device, the method further includes: determining a second service channel from at least one second candidate channel, the second service channel being used to transmit service data; and sending a second paging response message to the third device, the second paging response message including information about the second service channel.
[0017] In combination with the first aspect, in some implementations of the first aspect, after determining the second service channel from at least one second candidate channel, the method further includes: monitoring the second service channel.
[0018] In the present application, the first device can promptly receive the message sent by the third device by monitoring the second service channel.
[0019] In combination with the first aspect, in certain implementations of the first aspect, the method further includes: releasing the monitored channel when the service ends or the link is abnormal.
[0020] In the present application, releasing the monitored channel when the service ends or the link is abnormal is beneficial to saving the power consumption of the device and reducing the waste of channel resources.
[0021] In combination with the first aspect, in some implementations of the first aspect, the method further includes: when the service ends, sending a first indication message to the second device, where the first indication message is used to indicate the end of the service.
[0022] In combination with the first aspect, in some implementations of the first aspect, sending a first indication message to the second device includes: sending the first indication message to the second device through a first service channel and / or a first paging channel, where the first paging channel is a paging channel of the second device.
[0023] In the present application, the first device may choose to send the first indication message on the first service channel or the first paging channel, or may choose to send the first indication message on both the first service channel and the first paging channel, which is conducive to increasing the reliability of transmitting the first indication message.
[0024] In conjunction with the first aspect, in certain implementations of the first aspect, the first device is the service initiating device, and the method further includes: determining that the service is terminated when a first preset condition is satisfied. The first preset condition includes: a first timer expiration, the last data packet of the service data has been sent, or the number of data packet retransmissions reaches a preset maximum number of retransmissions.
[0025] In combination with the first aspect, in some implementations of the first aspect, the first device is a relay device between the third device and the second device, and the method further includes: determining that the link is abnormal when the second timer times out.
[0026] In a second aspect, a communication method is provided, applied to a fourth device, the method comprising: receiving a third paging request message from a fifth device, the third paging request message including information about at least one third candidate channel, the at least one third candidate channel being capable of being used for data transmission between the fourth device and the fifth device; determining a third service channel from the at least one third candidate channel, the third service channel being used to transmit service data, the service data being data to be sent to a service receiving device; and sending a third paging response message to the fifth device, the third paging response message including information about the third service channel.
[0027] The fifth device is the previous-hop device of the fourth device, the fourth device is a service receiving device, or the fourth device is a relay device between the fifth device and the service receiving device.
[0028] In this application, the fourth device can receive a third paging request message from the previous hop device, perform channel negotiation through the third paging request message, and can also send a third paging response message to the previous hop device, carrying the channel negotiation result, to establish a connection between the fourth device and the fifth device.
[0029] In combination with the second aspect, in certain implementations of the second aspect, the third paging request message also includes one or more of the following: service type, logical source address or logical destination address, wherein the service type is used to determine the service channel, the logical source address is used to identify the logical address of the service initiating device, and the logical destination address is used to identify the logical address of the service receiving device.
[0030] In combination with the second aspect, in certain implementations of the second aspect, after determining the third service channel from at least one third candidate channel, the method further includes: monitoring the third service channel.
[0031] In conjunction with the second aspect, in certain implementations of the second aspect, the method further includes: receiving a second indication message from a fifth device, the second indication message being used to indicate the end of the service, and releasing the third service channel.
[0032] According to a third aspect, a communication method is provided, applied to a sixth device, the method comprising: sending a fifth paging request message to a seventh device, the fifth paging request message including information about at least one fifth candidate channel, the at least one fifth candidate channel being usable for data transmission between the sixth device and the seventh device; and releasing the at least one fifth candidate channel if the paging fails.
[0033] In the present application, the seventh device is the next-hop device of the sixth device, the sixth device is the service initiating device, or the sixth device is the relay device between the service initiating device and the seventh device.
[0034] In combination with the third aspect, in certain implementations of the third aspect, the method further includes: determining that the paging has failed when a fifth paging response message is received from the seventh device and the fifth paging response message indicates a paging failure.
[0035] In combination with the third aspect, in certain implementations of the third aspect, the fifth paging response message carries a reason for the paging failure.
[0036] In combination with the third aspect, in certain implementations of the third aspect, the cause of the paging failure includes one or more of the following: no routing information, paging timeout, or no available channel resources.
[0037] In a fourth aspect, a communication device is provided, comprising: a module for executing the method in any possible implementation of any of the above aspects. Specifically, the device comprises a module for executing the method in any possible implementation of any of the above aspects.
[0038] In a fifth aspect, another communication device is provided, including a processor and a memory, wherein the processor is coupled to the memory, the memory can be used to store a computer program, and the processor can be used to call and execute the computer program in the memory to implement the method in any possible implementation of any of the above aspects.
[0039] In one implementation, the communication device is a terminal device. When the communication device is a terminal device, the communication interface may be a transceiver, or an input / output interface.
[0040] In another implementation, the communication device is a chip configured in a terminal device. When the communication device is a chip configured in a terminal device, the communication interface may be an input / output interface.
[0041] In a sixth aspect, a processor is provided, comprising: an input circuit, an output circuit, and a processing circuit. The processing circuit is configured to receive a signal through the input circuit and transmit a signal through the output circuit, so that the processor executes the method of any possible implementation of any of the above aspects.
[0042] In a specific implementation, the processor may be a chip, the input circuit may be an input pin, the output circuit may be an output pin, and the processing circuit may be a transistor, a gate circuit, a trigger, or various logic circuits. The input signal received by the input circuit may be, for example, but not limited to, received and input by a receiver, and the signal output by the output circuit may be, for example, but not limited to, output to and transmitted by a transmitter. The input circuit and the output circuit may be the same circuit, which functions as an input circuit and an output circuit at different times. This application does not limit the specific implementation of the processor and various circuits.
[0043] In a seventh aspect, a processing device is provided, comprising a processor and a memory. The processor is configured to read instructions stored in the memory and receive signals via a receiver and transmit signals via a transmitter to execute the method in any possible implementation of any of the above aspects.
[0044] Optionally, there are one or more processors and one or more memories.
[0045] Optionally, the memory may be integrated with the processor, or the memory may be provided separately from the processor.
[0046] In the specific implementation process, the memory can be a non-transitory memory, such as a read-only memory (ROM), which can be integrated on the same chip as the processor or be set on different chips. This application does not limit the type of memory and the setting method of the memory and the processor.
[0047] It should be understood that related data interaction processes, such as sending indication information, can be the process of outputting indication information from the processor, and receiving capability information can be the process of receiving input capability information from the processor. Specifically, the output data of the processing can be output to the transmitter, and the input data received by the processor can come from the receiver. The transmitter and receiver can be collectively referred to as a transceiver.
[0048] The processing device in the seventh aspect mentioned above can be a chip. The processor can be implemented by hardware or by software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc.; when implemented by software, the processor can be a general-purpose processor, which is implemented by reading the software code stored in the memory. The memory can be integrated in the processor or can be located outside the processor and exist independently.
[0049] In an eighth aspect, a computer program product is provided, which includes: a computer program code, which, when executed, enables a computer to execute a method in any possible implementation of any of the above aspects.
[0050] In a ninth aspect, a computer-readable storage medium is provided, which stores a computer program. When the computer program is executed, the computer executes the method in any possible implementation of any of the above aspects. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 This is a schematic diagram of the structure of a terminal device applicable to the embodiments of the present application;
[0052] Figure 2This is a schematic diagram of a multi-device ad hoc network provided by an embodiment of the present application;
[0053] Figure 3 This is a schematic diagram of another multi-device ad hoc network provided in an embodiment of the present application;
[0054] Figures 4 to 10 is a schematic flow chart of a communication method provided in an embodiment of the present application;
[0055] Figure 11 This is a schematic diagram of the structure of a paging frame provided in an embodiment of the present application;
[0056] Figure 12 This is a schematic diagram of the structure of a paging message provided in an embodiment of the present application;
[0057] Figures 13 to 24 is a schematic flow chart of a communication method provided in an embodiment of the present application;
[0058] Figures 25 to 27 It is a schematic block diagram of a communication device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0059] The technical solution in this application will be described below with reference to the accompanying drawings.
[0060] To facilitate a clear description of the technical solutions of the embodiments of the present application, the embodiments of the present application use terms such as "first" and "second" to distinguish between identical or similar items with substantially the same functions and effects. For example, the first and second paging request messages are intended to distinguish different messages and do not define their order. Those skilled in the art will understand that terms such as "first" and "second" do not define the quantity or execution order, and do not necessarily define differences between the two.
[0061] It should be noted that, in this application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described in this application as "exemplary" or "for example" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplarily" or "for example" is intended to present the relevant concepts in a concrete manner.
[0062] In addition, "at least one" means one or more, and "more" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b and c can mean: a, or b, or c, or a and b, or a and c, or b and c, or a, b and c, where a, b, c can be single or multiple.
[0063] The multi-device self-organizing network provided in the present application is a protocol architecture that realizes spontaneous networking of multiple devices between wireless terminals in unlicensed frequency bands. It has similar features to protocols such as wireless fidelity (Wi-Fi), neighbor awareness network (NAN), Apple wireless directlink (AWDL), Bluetooth low energy mesh (BLE Mesh), and Zigbee that support flexible networking. However, based on business requirements (for example, mobile devices, narrowband communication, long-distance communication, and support for low-power rescue), the self-organizing network of the embodiment of the present application specifically designs or optimizes channel rate division, dynamic power consumption control, networking device access and authentication process, heartbeat routing mechanism, time slot resource division, logical channel division, role conversion of devices in the network, low-power rescue process, and frequency modulation mechanism, etc., which makes the self-organizing network of the embodiment of the present application different from other protocols and can better complete the established business under constraints.
[0064] In scenarios like emergency rescue communications and fire emergency communications, where public network signals may disappear or weaken, command and rescue teams must immediately establish a wireless transmission communication network to transmit on-site information to the command center. For example, emergency rescue scenarios can include terminal devices such as emergency communication command vehicles, vehicle-mounted ad hoc networking equipment, robot-mounted ad hoc networking equipment, and portable command boxes. These terminal devices have ad hoc networking capabilities and can form a wireless transmission communication network, or multi-device ad hoc networking, to promptly transmit information from the emergency rescue scene.
[0065] In order to save device power consumption and improve resource utilization, terminal devices in a multi-device ad hoc network can be in a dormant state when there is no business transmission. In a multi-device ad hoc network communication scenario with the participation of relay devices, if one of the multiple ad hoc network devices has business data to transmit, the ad hoc network device can switch from the dormant state to the working state and send a paging request message to the relay device as a business initiating device to wake up the relay device. The relay device can send a paging request message to the business receiving device to wake up the business receiving device. In this way, the device wake-up and channel resource negotiation on the entire link from the business initiating device, the relay device to the business receiving device can be realized, and the connection between devices can be established.
[0066] The terminal device with self-organizing network function in the embodiment of the present application can be a handheld device with wireless connection function, a vehicle-mounted device, etc. The terminal device can also be called a terminal (terminal), user equipment (UE), mobile station (MS), mobile terminal (MT), etc. At present, some examples of terminals are: mobile phones, tablet computers, smart TVs, laptop computers, tablet computers, PDAs, mobile internet devices (MIDs), virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in self-driving cars, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, cellular phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDAs), handheld devices with wireless communication capabilities, computing devices or other processing devices connected to wireless modems, vehicle-mounted devices, wearable devices, terminal devices in 5G networks or future evolved public land mobile communication networks (PLMNs). The embodiments of the present application do not limit the specific technology and specific device form adopted by the terminal device.
[0067] As an example and not a limitation, in the embodiment of the present application, the terminal device may also be a wearable device. Wearable devices may also be called wearable smart devices, which are a general term for wearable devices that are intelligently designed and developed using wearable technology for daily wear, such as glasses, gloves, watches, clothing, and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. Wearable devices are not only hardware devices, but also achieve powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include those that are fully functional, large in size, and can achieve complete or partial functions without relying on smartphones, such as smart watches or smart glasses, as well as those that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various smart bracelets and smart jewelry for vital sign monitoring.
[0068] It should be understood that in the embodiments of the present application, the terminal device may be a device for implementing a terminal device function, or a device capable of supporting the terminal device in implementing the function, such as a chip system, which may be installed in the terminal. In the embodiments of the present application, the chip system may be composed of a chip, or may include a chip and other discrete devices.
[0069] The terminal device in the embodiments of the present application may also be referred to as: user equipment (UE), mobile station (MS), mobile terminal (MT), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication equipment, user agent or user device, etc.
[0070] Figure 1 This is a schematic diagram of the structure of a terminal device applicable to the embodiment of the present application. Figure 1As shown, the terminal device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor 180, a button 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identification module (SIM) card interface 195, etc. It will be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may include more or fewer components than shown, or combine some components, split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0071] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, a display processing unit (DPU), and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors. In some embodiments, the terminal device 100 may also include one or more processors 110. The processor may serve as the nerve center and command center of the terminal device 100. The processor may generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution. The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory may store instructions or data used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can directly call it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110 , and thus improves the efficiency of the terminal device 100 .
[0072] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a USB interface. The USB interface 130 is an interface that complies with USB standards and may be a Mini USB interface, a MicroUSB interface, a USB Type-C interface, or the like. The USB interface 130 may be used to connect a charger to charge the terminal device 100, or to transmit data between the terminal device 100 and peripheral devices. It may also be used to connect headphones to play audio through the headphones.
[0073] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is for illustrative purposes only and does not constitute a structural limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.
[0074] The wireless communication functionality of terminal device 100 can be implemented using antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, a modem processor, and a baseband processor. Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in terminal device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0075] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the terminal device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier, etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0076] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0077] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN), Bluetooth, global navigation satellite system (GNSS), frequency modulation (FM), NFC, infrared technology (IR), etc. applied to the terminal device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0078] In some embodiments, the antenna 1 of the terminal device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the terminal device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include GSM, GPRS, CDMA, WCDMA, TD-SCDMA, LTE, GNSS, WLAN, NFC, FM, and / or IR technology. The above-mentioned GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite-based augmentation system (SBAS).
[0079] The terminal device 100 can implement display functions through a GPU, display screen 194, and an application processor. The application processor may include an NPU and / or a DPU. The GPU is a microprocessor for image processing that connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute instructions to generate or change display information. The NPU is a neural network (NN) computing processor that draws on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, to quickly process input information and can also continuously self-learn. The NPU can implement intelligent cognitive applications such as image recognition, face recognition, voice recognition, and text comprehension in the terminal device 100. The DPU, also known as the display subsystem (DSS), is used to adjust the color of the display screen 194. The DPU can adjust the color of the display screen using a 3D color lookup table (3D LUT). The DPU can also perform image scaling, noise reduction, contrast enhancement, backlight brightness management, HDR processing, and display parameter gamma adjustment.
[0080] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, terminal device 100 may include one or N display screens 194, where N is a positive integer greater than 1.
[0081] The terminal device 100 can implement the shooting function through an ISP, one or more cameras 193, a video codec, a GPU, one or more display screens 194, and an application processor.
[0082] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, data files such as music, photos, and videos can be stored on the external memory card.
[0083] The internal memory 121 can be used to store one or more computer programs, each of which includes instructions. The processor 110 can execute the instructions stored in the internal memory 121, thereby enabling the terminal device 100 to perform various functional applications and data processing. The internal memory 121 may include a program storage area and a data storage area. The program storage area may store an operating system; the program storage area may also store one or more applications (such as a gallery, contacts, etc.). The data storage area may store data created during the use of the terminal device 100 (such as photos, contacts, etc.). In addition, the internal memory 121 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, universal flash storage (UFS), etc. In some embodiments, the processor 110 can execute the instructions stored in the internal memory 121 and / or the instructions stored in the memory provided in the processor 110, thereby enabling the terminal device 100 to perform various functional applications and data processing.
[0084] The terminal device 100 can implement audio functions through the audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor. For example, music playback and recording. The audio module 170 is used to convert digital audio information into analog audio signal output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110. The speaker 170A, also known as the "speaker", is used to convert audio electrical signals into sound signals. The terminal device 100 can listen to music or listen to hands-free calls through the speaker 170A. The receiver 170B, also known as the "earpiece", is used to convert audio electrical signals into sound signals. When the terminal device 100 receives a call or voice message, the voice can be heard by holding the receiver 170B close to the human ear. Microphone 170C, also known as "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The terminal device 100 can be provided with at least one microphone 170C. In other embodiments, the terminal device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the terminal device 100 can also be provided with three, four or more microphones 170C to realize sound signal collection, noise reduction, sound source identification, directional recording function, etc. The headphone jack 170D is used to connect wired headphones. The headphone jack 170D can be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0085] The sensors 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
[0086] In order to better understand the embodiments of the present application, the architecture of the multi-device ad hoc network applicable to the embodiments of the present application is first introduced.
[0087] Figure 2 Schematic diagram of a multi-device ad hoc network 200 provided in an embodiment of the present application. Figure 2 As shown, the multi-device ad hoc network 200 shows a service initiating device 201 , a relay device 202 and a service receiving device 203 .
[0088] When service initiating device 201 has service data to transmit, if relay device 202 and service receiving device 203 are in a dormant state, service initiating device 201 can use a paging mechanism to page relay device 202 and service receiving device 203, thereby waking up relay device 202 and service receiving device 203. Furthermore, during the paging process, service initiating device 201 can negotiate channel resources with relay device 202, and relay device 202 can negotiate channel resources with service receiving device 203. This facilitates establishing a connection between service initiating device 201 and service receiving device 203. After the connection is established, service initiating device 201 and service receiving device 203 can transmit service data on the negotiated service channel through relay device 202.
[0089] It should be noted that negotiating channel resources refers to the process in which the negotiating parties determine the channel for transmitting service data. The determined channel for transmitting service data can be called a service channel, which can be determined by the negotiating parties from multiple candidate channels.
[0090] Taking the example of channel resource negotiation between service initiating device 201 and relay device 202, service initiating device 201 can send a paging request message to the relay device, which carries information about multiple candidate channels. After receiving the paging request message, relay device 202 can select one of the multiple candidate channels as the service channel and send a paging response message to service initiating device 201, which carries the service channel information. After receiving the paging response message, service initiating device 201 can determine the channel resource negotiation result from the paging response message. Thus, after service initiating device 201 receives the negotiation result, the channel resource negotiation process is complete.
[0091] Figure 2 The embodiment of the present invention does not limit the number of relay devices.
[0092] For example, in Figure 3In the multi-device ad hoc network 300 shown, the number of relay devices is 2. The multi-device ad hoc network 300 includes a service initiating device 201, a relay device 21, a relay device 22, and a service receiving device 203. The relay device 21 is the next hop device of the service initiating device 201, the relay device 22 is the next hop device of the relay device 21, and the service receiving device 203 is the next hop device of the relay device 22. Figure 2 Similar to the description, the service initiating device 201 can use the paging mechanism to wake up the relay device 21, the relay device 22 and the service receiving device 203, and establish a connection between the service initiating device 201 and the service receiving device 203, which will not be repeated here.
[0093] For example, the multiple devices in the multi-device ad hoc network 200 and / or the multi-device ad hoc network 300 may be terminal devices, and the terminal devices may have the following features: Figure 1 The structure of the terminal device 100 is shown, but the embodiment of the present application is not limited to this.
[0094] Figure 4 This is a schematic flow chart of a communication method 400 provided in an embodiment of the present application. Method 400 can be applied to the multi-device ad hoc network 200 or the multi-device ad hoc network 300 described above, but the embodiments of the present application are not limited thereto. In method 400, the first device is in an active state and the second device is in a dormant state. The first device can be a service initiating device, or the first device can be a relay device between the service initiating device and the second device, with the second device being the next-hop device of the first device.
[0095] Method 400 includes S401 and S402, and the specific steps are as follows:
[0096] S401: A first device sends a first paging request message to a second device. The first paging request message includes information about at least one first candidate channel. The at least one first candidate channel can be used for data transmission between the first device and the second device. In response, the second device receives the first paging request message.
[0097] S402: The second device sends a first paging response message to the first device. The first paging response message includes information about a first service channel. The first service channel is one of the at least one first candidate channel and is used for transmitting service data between the first device and the second device, where the service data is data from the service initiating device. In response, the first device receives the first paging response message.
[0098] In an embodiment of the present application, the first device may send a first paging request message to the second device, and the first paging request message may carry information about the at least one first candidate channel. Then, the second device may select a first candidate channel from the at least one first candidate channel as a first service channel, and the first service channel is used to transmit service data between the first device and the second device. In addition, the second device may send a first paging response message to the first device, and the first paging response message may carry information about the first service channel. Accordingly, the first device may receive the first paging response message. In this way, the first device may wake up the second device through the first paging request message and the first paging response message, and establish a connection between the first device and the second device.
[0099] In a possible implementation, the first device may be Figure 2 The service initiating device 201 in the embodiment, the second device is the next hop device of the first device, that is, the second device can be as follows Figure 2 . In this case, the service initiating device 201 sends a first paging request message to the relay device 202 in the dormant state, wakes up the relay device 202 through the first paging request message, negotiates channel resources with the relay device 202, and establishes a connection between the service initiating device 201 and the relay device 202 through a first paging response message. The relay device 202 receives the first paging request message from the service initiating device 201 and negotiates channel resources based on the first paging request message. Afterwards, the relay device 202 sends a first paging response message to the service initiating device 201. After the service initiating device 201 receives the first paging response message and determines the negotiated first service channel, a connection between the service initiating device 201 and the relay device 202 is established.
[0100] In another possible implementation, the first device may be Figure 2 The relay device 202 in the second device can be Figure 2 In this case, relay device 202 sends a first paging request message to service receiving device 203, which is in a dormant state, waking up service receiving device 203 through this first paging request message. Service receiving device 203 receives the first paging request message from relay device 202 and negotiates channel resources based on this first paging request message. Service receiving device 203 then sends a first paging response message to relay device 202. After relay device 202 receives the first paging response message and determines the negotiated first service channel, a connection is established between relay device 202 and service receiving device 203.
[0101] In another possible implementation, the first device may be Figure 3The relay device 21 in the second device can be Figure 3 In this case, relay device 21 sends a first paging request message to relay device 22, which is in a dormant state, to wake up relay device 22. Relay device 22 receives the first paging request message from relay device 22 and negotiates channel resources based on the first paging request message. Relay device 22 then sends a first paging response message to relay device 21. After relay device 21 receives the first paging response message and determines the negotiated first service channel, a connection is established between relay device 21 and relay device 22.
[0102] Optionally, the first device may send a first paging request message to the second device through a first paging channel, where the first paging channel is a paging channel of the second device.
[0103] As an optional embodiment, the first paging request message also includes one or more of the following: service type, logical source address or logical destination address, wherein the service type is used to determine the service channel, the logical source address is used to identify the logical address of the service initiating device, and the logical destination address is used to identify the logical address of the service receiving device.
[0104] Exemplarily, the service types may include file transfer service, voice service, short message service, video service, etc.
[0105] Combined with the above Figure 4 , describes the process of device wake-up and connection establishment between the first device and the second device in a multi-device ad hoc network. The first device may be a service initiating device, or the first device may be a relay device between the service initiating device and the second device, and the second device is the next hop device of the first device. The embodiment of the present application also provides a communication method 500, which is a more specific implementation of method 400. Figure 5 As shown, compared with method 400, method 500 adds steps S501, S502 and S503. The specific steps are as follows:
[0106] S501: The first device determines, based on routing information, that the next hop device of the first device is the second device.
[0107] In this step, the first device can monitor heartbeat frames sent by other devices in the multi-device ad hoc network. These heartbeat frames can indicate routing information to the service receiving device. Based on this routing information, the first device can construct a routing table that includes a path to the service receiving device. The first device can then search the routing table to determine its next hop device, which helps improve data transmission reliability.
[0108] S401: A first device sends a first paging request message to a second device. The first paging request message includes information about at least one first candidate channel. The at least one first candidate channel can be used for data transmission between the first device and the second device. In response, the second device receives the first paging request message.
[0109] S502: The first device monitors the at least one first candidate channel.
[0110] Illustratively, the first device may monitor the at least one first candidate channel after sending the first paging request message, or may monitor the at least one first candidate channel before sending the first paging request message, which is not limited in this embodiment of the present application.
[0111] It should be noted that by monitoring the at least one first candidate channel, the first device can know on which first candidate channel the second device sends the response message to the first paging request message, and the first candidate channel carrying the response message to the first paging request message is the first service channel negotiated by the first device and the second device.
[0112] S402: The second device sends a first paging response message to the first device. The first paging response message includes information about a first service channel. The first service channel is one of the at least one first candidate channel, and the first service channel is used for transmitting service data between the first device and the second device. Accordingly, the first device receives the first paging response message.
[0113] S503: The first device continues to monitor the first service channel and releases other channels in the at least one first candidate channel except the first service channel.
[0114] It should be understood that releasing the channel can be understood as not continuing to monitor the channel. Since the first device and the second device have negotiated to transmit service data on the first service channel, the first channel can release other unselected channels, which is conducive to saving power consumption of the first device and improving channel utilization.
[0115] Combination of the above Figure 4 and Figure 5 , taking a multi-device ad hoc network including a first device and a second device as an example, the device wake-up and channel resource negotiation in the multi-device ad hoc network are introduced. Figure 6 Taking a multi-device ad hoc network including a first device, a second device, and a third device as an example, device wake-up and channel resource negotiation in the multi-device ad hoc network are introduced.
[0116] Figure 6This is a schematic flow chart of another communication method 600 provided in an embodiment of the present application. In method 600, the first device is a relay device between the third device and the second device. The third device is the previous hop device of the first device, and the second device is the next hop device of the first device. When the third device has business data to transmit, it switches from a dormant state to an active state. The first device is in a dormant state, and the second device is in a dormant state.
[0117] The method 600 can be applied to the multi-device ad hoc network 200 or the multi-device ad hoc network 300 described above, but the embodiment of the present application does not limit this.
[0118] In a possible implementation, the first device is Figure 2 The relay device 202 in the third device is Figure 2 The service initiating device 201 in the second device is Figure 2 The service receiving device 203 in.
[0119] In another possible implementation, the first device is Figure 3 The relay device 21 in the third device is Figure 3 The service initiating device 201 in the second device is Figure 3 The relay device 22 in.
[0120] In another possible implementation, the first device is Figure 3 The relay device 22 in the third device is Figure 3 The relay device 21 in the second device is Figure 3 The service receiving device 203 in.
[0121] The following combination Figure 6 , the communication method of the embodiment of the present application is introduced. Method 600 includes S601 to S610, and the specific steps are as follows:
[0122] S601: A third device sends a second paging request message to a first device. Correspondingly, the first device receives the second paging request message.
[0123] In this step, the third device is the service initiating device. When the third device has service data to transmit to the second device, it can detect the connection status between the third device and the second device. If it detects that a connection has not yet been established, the third device can initiate a service request and obtain the third device's next hop device, which is the logical address of the first device, from the routing table. After determining that the next hop device is the first device, the third device sends a second paging request message to the first device. This second paging request message includes information about at least one second candidate channel.
[0124] The second paging request message also includes a service type, a logical source address, and a logical destination address, wherein the service type is used by the first device to determine the service channel, the logical source address is used to identify the logical address of the service initiating device, and the logical destination address is used to identify the logical address of the service receiving device.
[0125] Optionally, the third device may send the second paging request message on the paging channel of the first device.
[0126] S602: The third device monitors the at least one second candidate channel.
[0127] In this step, the first device may send a response message to the second paging request message on the selected service channel. Therefore, the third device may monitor the at least one second candidate channel to determine which second candidate channel carries the response message to the second paging request message. Thus, by monitoring the at least one second candidate channel, the third device may determine the service channel negotiated with the first device.
[0128] S603: The first device sends a first paging request message to the second device. Correspondingly, the second device receives the second paging response message.
[0129] The first paging request message includes information about at least one first candidate channel.
[0130] The first paging request message also includes a service type, a logical source address, and a logical destination address, wherein the service type is used by the second device to determine the service channel, the logical source address is used to identify the logical address of the service initiating device, and the logical destination address is used to identify the logical address of the service receiving device.
[0131] Before the first device sends the first paging request message to the second device, the first device may parse the second paging request message from the third device and detect whether the logical destination address in the second paging request message is the logical address of the local end. After determining that the logical destination address is not the logical address of the local end, the first device may obtain the logical address of the next hop device of the first device from the routing table, that is, the logical address of the second device, and send the first paging request message to the second device based on the logical address of the second device.
[0132] Optionally, the first device may send the first paging request message on a paging channel of the second device.
[0133] S604: The first device monitors the at least one first candidate channel.
[0134] Similar to the description of S602 , the first device may determine the service channel to be negotiated with the second device by monitoring the at least one first candidate channel.
[0135] S605: The second device determines a first service channel from at least one first candidate channel, and monitors the first service channel.
[0136] The second device may parse the first paging request message to obtain information about at least one first candidate channel and a logical destination address, and detect whether the logical destination address is the logical address of the local end. After determining that the logical destination address is the logical address of the local end, the second device may record the logical address and service type of the remote end, and determine and monitor a first service channel from the at least one first candidate channel. The first service channel is the channel negotiated by the first and second devices for transmitting service data.
[0137] It should be understood that the first device can send service data on the first service channel, so the second device can obtain the service data sent by the first device by monitoring the first service channel.
[0138] S606: The second device sends a first paging response message to the first device. Correspondingly, the first device receives the first paging response message.
[0139] The first paging response message includes information about the first service channel, a logical source address, and a logical destination address. The information about the first service channel may indicate a channel negotiation result between the second device and the first device.
[0140] Optionally, the second device may send the first paging response message on the first traffic channel or the first paging channel.
[0141] S607: The first device obtains information of the first service channel from the first paging response message, continues to monitor the first service channel, and releases other channels in the at least one first candidate channel except the first service channel.
[0142] In this step, releasing the channel is beneficial to saving power consumption of the first device.
[0143] It should be understood that the second device can send service data on the first service channel. Therefore, the first device can obtain the service data sent by the second device by monitoring the first service channel.
[0144] S608: The first device determines a second service channel from at least one second candidate channel, and monitors the second service channel.
[0145] The first device may parse the first paging response message and determine that the logical source address in the first paging response message is not the logical address of the local end. Further, the first device may determine a second service channel from at least one second candidate channel provided by the third device and monitor the second service channel.
[0146] It should be understood that the third device can send service data on the second service channel. Therefore, the first device can obtain the service data sent by the third device by monitoring the second service channel.
[0147] S609: The first device sends a second paging response message to the third device. Correspondingly, the third device receives the second paging response message.
[0148] The second paging response message includes information of the second service channel, a logical source address, and a logical destination address. The information of the second service channel may indicate a channel negotiation result between the first device and the third device.
[0149] Optionally, the first device may send the second paging response message on a second traffic channel or a second paging channel. The second paging channel is a paging channel of the third device.
[0150] S610: The third device obtains information about the second service channel from the second paging response message, continues to monitor the second service channel, and releases other channels in at least one second candidate channel except the second service channel.
[0151] The third device parses the second paging response message and determines that the logical source address is the logical address of the local end. The third device may record the logical address and service type of the remote end, enter a connected state, and determine that the service initiation is successful. The third device continuously monitors the second service channel and releases at least one of the second service channels except the second service channel, thereby improving channel utilization and reducing power consumption of the third device.
[0152] It should be understood that the first device can send service data on the second service channel, so the third device can obtain the service data sent by the first device by monitoring the second service channel.
[0153] Figure 6 This describes the process in which the third device, as the sending end of the paging process, sends a second paging request message to the next-hop device. Figure 6 , Figure 7 , describes a process in which the fourth device, as a receiving end of the paging process, receives a paging request from the previous hop device and feeds back a paging response to the sending end of the paging process.
[0154] Figure 7 This is a schematic flow chart of another communication method 700 provided in an embodiment of the present application. In method 700, the fifth device is the previous-hop device of the fourth device, the fourth device is a service receiving device, or the fourth device is a relay device between the fifth device and the service receiving device. The fourth device is in a dormant state, and the fifth device is in an active state.
[0155] The method 700 can be applied to the multi-device ad hoc network 200 or the multi-device ad hoc network 300 described above, but the embodiment of the present application does not limit this.
[0156] In a possible implementation, the fourth device may be Figure 2 The service receiving device 203 in the fifth device is Figure 2 The relay device 202 in.
[0157] In another possible implementation, the fourth device may be Figure 2 The relay device 202 in the fifth device may be Figure 2 The service initiating device 201 in.
[0158] In another possible implementation, the fourth device may be Figure 3 The service receiving device 203 in the embodiment, the fifth device may be Figure 3 The relay device 22 in.
[0159] In another possible implementation, the fourth device may be Figure 3 The relay device 22 in the fifth device can be Figure 3 The relay device 21 in.
[0160] In another possible implementation, the fourth device may be Figure 3 The relay device 21 in the fifth device can be Figure 3 The service initiating device 201 in.
[0161] The method 700 includes steps S701 to S703, and the specific steps are as follows:
[0162] S701: A fifth device sends a third paging request message to a fourth device, where the third paging request message includes information about at least one third candidate channel that can be used for data transmission between the fourth device and the fifth device. Accordingly, the fourth device receives the third paging request message.
[0163] In this step, the fifth device may wake up the fourth device through the third paging request message, negotiate channel resources with the fourth device, and determine a service channel for transmitting service data between the fourth device and the fifth device.
[0164] Optionally, the at least one third candidate channel further includes one or more of the following: a service type, a logical source address, or a logical destination address. The service type is used by the fourth device to determine the service channel, the logical source address is used to identify the logical address of the service initiating device, and the logical destination address is used to identify the logical address of the service receiving device.
[0165] S702: The fourth device determines a third service channel from the at least one third candidate channel. The third service channel is used to transmit service data, which is data sent to a service receiving device.
[0166] S703: The fourth device sends a third paging response message to the fifth device, where the third paging response message includes information about the third service channel. Correspondingly, the fifth device receives the third paging response message.
[0167] In an embodiment of the present application, the fourth device can receive a third paging request message from the fifth device, negotiate channel resources with the fifth device through the third paging request message, and can also send a third paging response message to the fifth device, carrying the channel negotiation result, to establish a connection between the fourth device and the fifth device.
[0168] In the above, Figure 4 and Figure 5 The process of sending a first paging request message from a first device to a second device is described. Figure 6 The present invention describes a process in which a first device, acting as a relay device, receives a paging request from a previous-hop device and sends the paging request to a next-hop device. Figure 7 The present invention describes a process in which the fourth device, as a receiving end, receives a third paging request message from a fifth device and sends a third paging response message to the fifth device.
[0169] Based on the above description, if Figure 8 As shown, the embodiment of the present application further provides a communication method 800. Figure 6 Similar to the description of , method 800 describes the process of establishing a complete connection between a service initiating device and a service receiving device in a multi-device ad hoc network. Figure 6 The difference is that Figure 8 The second device and the fifth device are included in two relay devices, and Figure 6 The first device includes a relay device. The implementation process can refer to Figure 6 The description of the embodiments of this application will not be repeated in detail.
[0170] The method 800 can be applied to a multi-device ad hoc network 300, wherein the first device is Figure 3 The service initiating device 201 and the second device are Figure 3 The relay device 21 and the fifth device are Figure 3 The relay device 22 and the fourth device are Figure 3 The service receiving device 203 in the embodiment of the present invention is as follows: The first device is in a working state, and the second device, the fourth device and the fifth device are in a dormant state.
[0171] The method 800 includes steps S801 to S815, and the specific steps are as follows:
[0172] S801: A first device sends a first paging request message to a second device, where the first paging request message includes information about at least one first candidate channel. Correspondingly, the second device receives the first paging request message.
[0173] S802: The first device monitors the at least one first candidate channel.
[0174] S803: The second device sends a fourth paging request message to the fifth device, where the fourth paging request message includes information about at least one fourth candidate channel. Correspondingly, the fifth device receives the fourth paging request message.
[0175] S804: The second device monitors the at least one fourth candidate channel.
[0176] S805: The fifth device sends a third paging request message to the fourth device, where the third paging request message includes information about at least one third candidate channel. Correspondingly, the fourth device receives the third paging request message.
[0177] S806: The fifth device monitors the at least one third candidate channel.
[0178] S807: The fourth device determines a third service channel from at least one third candidate channel and monitors the third service channel, where the third service channel is used to transmit service data.
[0179] S808: The fourth device sends a third paging response message to the fifth device, where the third paging response message includes information about the third service channel. Correspondingly, the fifth device receives the third paging response message.
[0180] S809: The fifth device continues to monitor the third service channel and releases other channels in the at least one third candidate channel except the third service channel.
[0181] S810: A fifth device determines a fourth service channel from at least one fourth candidate channel and monitors the fourth service channel, where the fourth service channel is used to transmit service data.
[0182] S811: The fifth device sends a fourth paging response message to the second device, where the fourth paging response message includes information about a fourth service channel. Correspondingly, the second device receives the fourth paging response message.
[0183] S812: The second device continues to monitor the fourth service channel and releases other channels in the at least one fourth candidate channel except the fourth service channel.
[0184] S813: The second device determines a first service channel from at least one first candidate channel and monitors the first service channel, where the first service channel is used to transmit service data.
[0185] S814: The second device sends a first paging response message to the first device, where the first paging response message includes information about the first service channel. Correspondingly, the first device receives the first paging response message.
[0186] S815: The first device continues to monitor the first service channel and releases other channels in the at least one first candidate channel except the first service channel.
[0187] In an embodiment of the present application, the first device as a service initiating device can perform similar actions as the third device described in method 600, the second device and the fifth device as relay devices can perform similar actions as the first device described in method 500, and the fourth device as a service receiving device can perform similar actions as the second device described in method 500. For details, please refer to the above description of method 600, which will not be repeated here.
[0188] As an optional embodiment, when a service ends or a link is abnormal, the devices in the multi-device ad hoc network can release the monitored channel and disconnect the connection between devices to reduce power consumption. The following first describes the process of releasing the monitored channel when a service ends.
[0189] For example, multiple devices in the multi-device ad hoc network have established complete end-to-end connections as shown in method 800, and transmit service data on the negotiated channel. Figure 8 Each device in the system can release the monitored channel and disconnect the connection between devices. Figure 9 , with the first device as Figure 3 The service initiating device 201 and the second device are Figure 3 The relay device 21 and the fourth device are Figure 3 The relay device 22 and the fifth device are Figure 3 Taking the relay device 21 in FIG. 1 as an example, the service termination process of a device in a multi-device ad hoc network is introduced.
[0190] Figure 9 This is a schematic flow chart of another communication method 900 provided in an embodiment of the present application. The method 900 can be applied to Figure 3 In the multi-device ad hoc network 300, the steps of method 900 may be performed after the steps of method 800, but this embodiment of the present application is not limited thereto. Method 900 includes S901 to S907, and the specific steps are as follows:
[0191] S901: When a service ends, a first device sends a first indication message to a second device, where the first indication message is used to indicate the end of the service. Correspondingly, the second device receives the first indication message.
[0192] Optionally, the first device can determine the next-hop device based on the routing information. When it is determined that the next-hop device is the second device, the first device sends a first indication message to the logical address of the second device, records the service type and the logical address of the other end, and enters the idle state.
[0193] S902: The first device releases the first service channel.
[0194] S903: The second device releases the first service channel and the fourth service channel.
[0195] The second device may interpret the first indication message as a paging notification indicating that the service is terminated, and release the monitored channel according to the paging notification to enter an idle state.
[0196] S904: The second device sends a third indication message to the fifth device, where the third indication message is used to indicate that the service is terminated. Correspondingly, the fifth device receives the third indication message.
[0197] When detecting that the logical destination address is not the local end, the second device determines that the next hop device is the fifth device according to the routing information, and sends a third indication message to the logical address of the fifth device to indicate the end of the service.
[0198] S905 , the fifth device releases the fourth service channel and the third service channel.
[0199] The fifth device may interpret the third indication message as a paging notification indicating that the service is ended, release the monitored channel according to the paging notification, and enter an idle state.
[0200] S906: The fifth device sends a second indication message to the fourth device, where the second indication message is used to indicate the end of the service. Correspondingly, the fourth device receives the second indication message.
[0201] When detecting that the logical destination address is not the local end, the fifth device determines that the next-hop device is the fourth device according to the routing information, and sends a second indication message to the logical address of the fourth device.
[0202] S907: The fourth device releases the third service channel.
[0203] The fourth device can parse the second indication message as a paging notification, indicating the end of the service, and detect that the logical destination address is the local end. The fourth device records the service type and the logical address of the opposite end and enters the idle state.
[0204] Optionally, the first device may send the first indication message to the second device via the first service channel and / or the first paging channel, which is conducive to improving the reliability of the transmission of the first indication message.
[0205] Optionally, the second device may send the third indication message to the fifth device via a fourth service channel and / or a fourth paging channel, where the fourth paging channel is a paging channel of the fifth device.
[0206] Optionally, the fifth device may send the second indication message to the fourth device via a third service channel and / or a third paging channel, where the third paging channel is a paging channel of the fourth device.
[0207] As an optional embodiment, the first device is a service initiating device, and method 800 further includes: the first device determining that the service is terminated when a first preset condition is satisfied. The first preset condition includes: a first timer expiration, the last data packet of the service data has been sent, or the number of retransmissions of the data packet has reached a preset maximum number of retransmissions.
[0208] Exemplarily, when the sending / retransmission buffer of the first device is empty, or the first device has no data transmission for a long time, the first device can start a first timer. After the first timer expires, the first device can send an indication message to indicate the end of the service.
[0209] Exemplarily, for a one-way service (eg, a file transfer service), the service initiating device may send an indication message indicating the end of the service to the service receiving device via the relay device.
[0210] Exemplarily, for a two-way service (e.g., voice service), the service initiating device may send an indication message to indicate the end of the service to the service receiving device through a relay device, or the service receiving device may send an indication message to indicate the end of the service to the service initiating device through a relay device.
[0211] Combined with the above Figure 9 The previous section describes the process of releasing a channel when a service is terminated. The following section describes the process of releasing a channel when a link is abnormal.
[0212] As an optional embodiment, the first device is a relay device between the third device and the second device, and the first device determines that the link is abnormal when the second timer times out.
[0213] Exemplarily, the third device is Figure 2 The service initiating device 201 in the first device is Figure 2 The relay device 202 in the second device is Figure 2The first device may start a second timer after sending a data packet. If the first device does not transmit a data packet within the second timer and does not receive a notification of service termination, the first device may consider the link abnormal after the second timer expires and actively release the monitored service channel.
[0214] During the communication process of self-organizing network devices, the channel may be released due to paging failure. Figure 10 This section describes the process of releasing a channel due to paging failure.
[0215] Figure 10 1 is a schematic flow chart of another communication method 1000 provided in an embodiment of the present application. The method 1000 can be applied to the multi-device ad hoc network 200 or the multi-device ad hoc network 300, but the embodiment of the present application does not limit this.
[0216] In a possible implementation, the sixth device is a service initiating device, and the seventh device is a relay device.
[0217] In another possible implementation, the sixth device is a relay device, and the seventh device is a service receiving device.
[0218] In another possible implementation, the sixth device is a relay device, and the seventh device is a next-hop relay device of the sixth device.
[0219] Method 1000 includes S1001 to S1006, and the specific steps are as follows:
[0220] S1001: A sixth device sends a fifth paging request message to a seventh device, the fifth paging request message including information of at least one fifth candidate channel that can be used for data transmission between the sixth device and the seventh device. The seventh device is a next-hop device of the sixth device.
[0221] S1002: The sixth device monitors the at least one fifth candidate channel.
[0222] S1003: The seventh device sends a fifth paging response message to the sixth device, where the fifth paging response message is used to indicate a paging failure. Correspondingly, the sixth device receives the fifth paging response message.
[0223] S1004: When determining that the paging fails, the sixth device releases the at least one fifth candidate channel.
[0224] In an embodiment of the present application, in the event of a paging failure, the sixth device can initiate an exception protection process and transmit an exception through a paging response message to indicate a paging failure. In this way, the sixth device can release the monitored channel, which is beneficial to reducing the power consumption of the sixth device and avoiding the occupation of channel resources.
[0225] Optionally, the method 1000 further includes S1005: the seventh device determines whether the paging fails.
[0226] Optionally, the method 1000 further includes S1006: in case of paging failure, the seventh device determines a fifth service channel from at least one fifth candidate channel. Optionally, S1003 includes: the seventh device sends a fifth paging response message to the sixth device via the fifth service channel.
[0227] Optionally, the fifth paging response message carries a reason for paging failure, wherein the reason for paging failure includes one or more of the following: no routing information, paging timeout, or no available channel resources.
[0228] The sixth device Figure 2 The service initiating device 201 in the seventh device is Figure 2 The relay device 202 in the seventh device is the next hop device of Figure 2 Take the service receiving device 203 in as an example. For the case of paging timeout: if the paging request message sent by the seventh device to the next-hop device times out, or the seventh device times out without receiving the paging response message from the next-hop device, the seventh device can select a fifth service channel from at least one fifth candidate channel provided by the sixth device, and send a fifth paging response message to the sixth device through the fifth service channel. The fifth paging response message can indicate that the reason for the paging failure is the paging timeout. After sending the fifth paging response message, the seventh device can release the fifth service channel. When the sixth device learns of the paging failure through the fifth paging response message, it determines that the connection has failed and releases the monitored channel.
[0229] When the paging failure is caused by paging timeout, the sixth device as the service initiating device may initiate a paging request again at the next paging time. If the paging request fails after repeated attempts, the sixth device may trigger a network-wide routing update process.
[0230] The sixth device Figure 2 The service initiating device 201 in the seventh device is Figure 2Take the relay device 202 in as an example. For no routing information or no channel resources: if the seventh device determines that there are no available channel resources based on the information of at least one fifth candidate channel carried by the fifth paging request message after receiving the fifth paging request message, or determines that there is no routing information based on the logical destination address carried by the fifth paging request message. Furthermore, the seventh device can select a fifth service channel from the at least one fifth candidate channel provided by the sixth device, and send a fifth paging response message to the sixth device through the fifth service channel. The fifth paging response message can indicate that the reason for the paging failure is no routing information or no available channel resources. After sending the fifth paging response message, the seventh device can release the fifth service channel. When the sixth device learns of the paging failure through the fifth paging response message, it determines that the connection has failed and releases the monitored channel.
[0231] When the reason for the paging failure is the lack of routing information, the sixth device, as the service initiating device, can re-trigger the full network routing update process within the multi-device self-organizing network. All devices in the multi-device self-organizing network can update the routing information of their own devices in a short time. After the update is completed, the sixth device can re-initiate the service.
[0232] When the paging fails due to lack of channel resources, the sixth device as the service initiating device or the seventh device as the relay device can try to provide other candidate channels to the next-hop device, or randomly back off for a period of time and then initiate the paging request again until the paging is successful.
[0233] Figure 11 It should be understood that the first paging request / response message, the second paging request / response message, the third paging request / response message, the fourth paging request / response message, the fifth paging request / response message and the first / second / third indication message in the above embodiment may have the following structures: Figure 11 The frame structure is shown, but this embodiment of the present application is not limited to this.
[0234] like Figure 11 As shown, the paging frame of the embodiment of the present application includes multiple fields: a 0.5-byte transmit address field, a 0.5-byte receive address field, and a 5-byte paging information field.
[0235] Among them, the sending address field and the receiving address field can describe the logical addresses of two adjacent devices in a multi-device ad hoc network. Figure 2Taking the multi-device ad hoc network 200 described above as an example, in the frame structure sent by service initiating device 201 to relay device 202, the transmit address field describes the logical address of service initiating device 201, and the receive address field describes the logical address of relay device 202. In the frame structure sent by relay device 202 to service receiving device 203, the transmit address field describes the logical address of relay device 202, and the receive address field describes the logical address of service receiving device 203. It can be seen that the transmit address field and the receive address field change as the device sending and receiving the paging frame changes.
[0236] Optionally, the paging frame may further include a 2-byte frame control field, a 1-byte cluster identification (ID) field, and a 2-byte frame check sequence (FCS) field.
[0237] Figure 12 This is a schematic diagram of the structure of a paging message provided by an embodiment of the present application. Figure 12 As shown, the paging information field may include: a 4-bit service type field, a 4-bit logical source address (source address), a 4-bit logical destination address (target address), an 8-bit channel bitmap field, an 8-bit frequency bitmap field, a 4-bit paging type field, and a 4-bit paging result field. Devices in a multi-device ad hoc network can establish connections between devices and route relays based on the paging information.
[0238] The Service Type field describes the service type. The Logical Source Address describes the logical address of the service initiating device. The Logical Destination Address describes the logical address of the service receiving device. The Channel Bitmap field allocates time and frequency resources to the negotiated channel. The Paging Type field describes the type of paging frame. The Paging Result field indicates whether paging was successful or failed, enabling exception protection in the event of a paging failure.
[0239] The types of paging frames may include: paging request, paging response, service end notify, and service abnormal notify.
[0240] The paging results may include: paging success (paging success), paging failure due to no routing information (paging fail no route), paging failure due to paging timeout (paging fail timeout), and paging failure due to no channel resources (paging fail no resource).
[0241] Optionally, the paging information field further includes a maximum bandwidth occupied by the service (Max_Bw) field and a reserved (reserved) field.
[0242] The protocol stack for the multi-device ad hoc network described in the embodiments of the present application may include an application layer, a transport layer, a network layer, a link layer, and a physical layer. The application layer is responsible for service initiation and reception, the transport layer is responsible for reliable transmission, the network layer is responsible for relay routing, the link layer is responsible for link / media access control (MAC), and the physical layer is responsible for physical resource control / air interface data processing.
[0243] The following combination Figures 13 to 24 The inter-layer interaction process between the service initiating device, relay device and service receiving device is introduced. For example, Figures 13 to 24 The inter-layer interaction process between the service initiating device, relay device and service receiving device can be regarded as Figure 6 The internal implementation process of the third device, the first device and the second device is described.
[0244] Figure 13 This is a schematic flow chart of another communication method 1300 provided in an embodiment of the present application. Method 1300 includes S1301 to S1315, which describes the process of the application layer of the service initiating device from initiating the service to sending a paging request message via the air interface, and then receiving a paging response message via the air interface and submitting it to the upper layer. The specific steps are as follows:
[0245] S1301: The application layer sends service data and the logical address of the service receiving device to the transport layer. Correspondingly, the transport layer receives the service data and the logical address of the service receiving device.
[0246] S1302: The transport layer detects the connection status of the service receiving device, and if the service receiving device is not connected, sends a service initiation request to the link layer. Accordingly, the link layer receives the service initiation request.
[0247] After the service data arrives, the transport layer may detect the connection status of the service receiving device. If the service receiving device is in an unconnected state, it may determine that the service receiving device needs to be awakened to establish an end-to-end connection.
[0248] S1303: The link layer sends a routing information query request to the network layer, where the routing information query request is used to query the logical address of the next hop device of the service sending device. Accordingly, the network layer receives the routing information query request.
[0249] The routing information query request includes the logical address of the service receiving device.
[0250] In the embodiment of the present application, the next-hop device of the service sending device is a relay device.
[0251] S1304: The network layer sends a routing information query feedback to the link layer, where the routing information query feedback includes the logical address of the relay device. Correspondingly, the link layer receives the routing information query feedback.
[0252] The network layer queries the routing table and determines the route to the service receiving device based on the logical address of the service receiving device, thereby determining the logical address of the relay device.
[0253] S1305: The link layer sends a second paging request message to the physical layer. Correspondingly, the physical layer receives the second paging request message.
[0254] The second paging request message includes information of at least one second candidate channel, and the at least one second candidate channel can be used for the service initiating device and the relay device to transmit service data.
[0255] The second paging request message also includes a service type, a logical source address, and a logical destination address.
[0256] S1306: The physical layer sends a second paging request message to the relay device through the air interface.
[0257] Optionally, the physical layer of the service initiating device sends a second paging request message to the relay device through the paging channel of the relay device.
[0258] S1307: The physical layer monitors the at least one second candidate channel.
[0259] The above S1301 to S1307 describe the process from the service initiating device initiating the service to sending the paging request message. The following S1308 to S1315 describe the process from the service initiating device receiving the paging response message to determining that the service initiation is successful.
[0260] S1308: The physical layer receives a second paging response message from the relay device through the air interface.
[0261] The second paging response message includes information about a second service channel, which is used for transmitting service data between the service initiating device and the relay device. The second service channel is one of the at least one second candidate channel.
[0262] The second paging response message also includes a logical source address and a logical destination address.
[0263] S1309: The physical layer sends the second paging response message to the link layer. Correspondingly, the link layer receives the second paging response message.
[0264] S1310: The link layer parses the second paging response message to determine whether the service initiation is successful.
[0265] In this step, the link layer can parse the second paging response message, determine that the second paging response message is a response to the second paging request message sent in S1306, and determine whether the logical source address in the second paging request message is the logical address of the local device. After determining that the logical source address is the logical address of the local device, the link layer records the logical address of the service receiving device and records the service connection status, confirming that the service initiation is successful.
[0266] S1311: The link layer sends first channel indication information to the physical layer, where the first channel indication information is used to monitor a second service channel. Correspondingly, the physical layer receives the first channel indication information.
[0267] S1312: The physical layer monitors the second service channel according to the first channel indication information, and releases other channels in the at least one second candidate channel.
[0268] The second service channel is one of the at least one second candidate channel.
[0269] S1313: When the link layer determines that the service initiation is successful, it sends a service initiation success feedback to the transport layer, where the service initiation success feedback is used to indicate that the service initiation is successful. Correspondingly, the transport layer receives the service initiation success feedback.
[0270] S1314: The transport layer sends a service initiation success feedback to the application layer. Correspondingly, the application layer receives the service initiation success feedback.
[0271] S1315: Each layer in the service initiating device starts a normal service process.
[0272] Combination of the above Figure 13 This article introduces the inter-layer interaction process of the service initiating device. Figure 14 This section describes the inter-layer interaction process of relay devices.
[0273] Figure 14This is a schematic flow chart of another communication method 1400 provided in an embodiment of the present application. Method 1400 includes S1401 to S1416, which describes the process from the physical layer of the relay device receiving the second paging request message to sending the first paging request message, and then receiving the first paging response message to sending the second paging response message. The specific steps are as follows:
[0274] S1401: The physical layer receives a second paging request message from a service initiating device through an air interface.
[0275] S1402: The physical layer sends a second paging request message to the link layer. Correspondingly, the link layer receives the second paging request message.
[0276] S1403: The link layer determines whether the logical destination address in the second paging request message is the logical address of the current device.
[0277] S1404: When the link layer determines that the logical destination address in the second paging request message is not the logical address of the local device, the link layer sends a routing information query request to the network layer. Accordingly, the network layer receives the routing information query request.
[0278] S1405: The network layer sends routing information query feedback to the link layer. Correspondingly, the link layer receives the routing information query feedback.
[0279] In this step, the network layer queries the routing table to determine the logical address of the next hop device of the relay device. In the embodiment of the present application, the next hop device of the relay device is the service receiving device.
[0280] S1406: The link layer sends a first paging request message to the physical layer. Correspondingly, the physical layer receives the first paging request message.
[0281] The first paging request message includes information of at least one first candidate channel, and the at least one first candidate channel can be used for the relay device and the service receiving device to transmit service data.
[0282] The first paging request message also includes a service type, a logical source address, and a logical destination address.
[0283] S1407: The physical layer sends a first paging request message to the service receiving device through the air interface.
[0284] Optionally, the physical layer sends a first paging request message to the service receiving device on a paging channel of the service receiving device.
[0285] S1408: The physical layer monitors the at least one first candidate channel.
[0286] The above steps S1401 to S1408 describe the process from the relay device receiving the second paging request message from the service initiating device to sending the first paging request message to the service receiving device. The following steps S1409 to S1416 describe the process from the relay device receiving the first paging response message from the service receiving device to sending the second paging response message to the service initiating device.
[0287] S1409: The physical layer receives a first paging response message from the service receiving device through the air interface.
[0288] The first paging response message includes information about a first service channel, which is used for transmitting service data between the relay device and the service receiving device. The first service channel is one of the at least one first candidate channel.
[0289] The first paging response message also includes a logical source address and a logical destination address.
[0290] S1410: The physical layer sends the first paging response message to the link layer. Correspondingly, the link layer receives the first paging response message.
[0291] S1411: The link layer determines whether the logical source address in the first paging response message is the logical address of the local device.
[0292] In this step, the link layer can parse the first paging response message, determine that the first paging response message is a response to the first paging request message sent in S1406, and determine whether the logical source address in the first paging response message is the logical address of the current device.
[0293] S1412: When the link layer determines that the logical source address is not the logical address of the current device, it determines a second service channel from at least one second candidate channel provided by the previous hop device of the current device.
[0294] S1413: The link layer sends a second paging response message to the physical layer. Correspondingly, the physical layer receives the second paging response message.
[0295] The second paging response message includes information about a second service channel, which is used for transmitting service data between the service initiating device and the relay device. The second service channel is one of the at least one second candidate channel.
[0296] The second paging response message also includes a logical source address and a logical destination address.
[0297] S1414: The physical layer sends a second paging response message to the service initiating device through the air interface.
[0298] Optionally, the physical layer may send the second paging response message through the second service channel.
[0299] S1415: The link layer sends second channel indication information to the physical layer, where the second channel indication information is used to instruct the physical layer to monitor the first service channel and the second service channel and release other information. Accordingly, the physical layer receives the second channel indication information.
[0300] S1416: The physical layer monitors the first service channel and the second service channel according to the second channel indication information, and releases other channels in the at least one first candidate channel.
[0301] Combination of the above Figure 14 This article introduces the inter-layer interaction process of relay devices. Figure 15 This section describes the inter-layer interaction process of service receiving devices.
[0302] Figure 15 15 is a schematic flow chart of another communication method 1500 provided in an embodiment of the present application. Method 1500 includes S1501 to S1510, which describes the process of the physical layer of the service receiving device from receiving a first paging request message to sending a first paging response message. The specific steps are as follows:
[0303] S1501: The physical layer receives a first paging request message from a relay device through an air interface.
[0304] The first paging request message includes information of at least one first candidate channel, and the at least one first candidate channel can be used for the relay device and the service receiving device to transmit service data.
[0305] The first paging request message also includes a service type, a logical source address, and a logical destination address.
[0306] S1502: The physical layer sends the first paging request message to the link layer. Correspondingly, the link layer receives the first paging request message.
[0307] S1503: The link layer determines whether the logical destination address in the first paging request message is the logical address of the current device.
[0308] S1504: When the link layer determines that the logical destination address is the logical address of the local device, it sends a service initiation indication to the transport layer. Correspondingly, the transport layer receives the service initiation indication.
[0309] S1505: The link layer determines a first service channel from at least one first candidate channel.
[0310] S1506: The link layer sends a first paging response message to the physical layer. Correspondingly, the physical layer receives the first paging response message.
[0311] The first paging response message includes information about a first service channel, and the first service channel is used for transmitting service data between the relay device and the service receiving device.
[0312] S1507: The physical layer sends a first paging response message to the relay device through the air interface.
[0313] Optionally, the physical layer may send the first paging response message through the first service channel.
[0314] S1508: The link layer sends third channel indication information to the physical layer, where the third channel indication information is used to instruct the physical layer to monitor the first service channel. Correspondingly, the physical layer receives the third channel indication information.
[0315] S1509: The physical layer monitors the first service channel according to the third channel indication information.
[0316] S1510 , each layer of the service receiving device starts a normal service process.
[0317] Combination of the above Figures 13 to 15 This article introduces the inter-layer interaction process of establishing a connection between the service initiating device and the service receiving device through the relay device. Figures 16 to 19 This section describes the inter-layer interaction process between the service initiating device, relay device, and service receiving device after the service is completed.
[0318] Figure 16 This is a schematic flow chart of another communication method 1600 provided in an embodiment of the present application. Method 1600 includes S1601 to S1608, which describes the inter-layer interaction process of the service initiating device ending a one-way service (e.g., file transfer). The specific steps are as follows:
[0319] S1601: When the transmission / retransmission buffer is empty, the transport layer starts a timer.
[0320] It should be understood that when the sending / retransmission buffer is empty, it means that the service data of the service initiating device has been transmitted and the one-way service has ended.
[0321] S1602: The transport layer sends a service end indication to the link layer after the timer expires. Correspondingly, the link layer receives the service end indication.
[0322] S1603: The link layer sends a routing information query request to the network layer, where the routing information query request is used to query the logical address of the next hop device of the service sending device. Accordingly, the network layer receives the routing information query request.
[0323] In the embodiment of the present application, the next-hop device of the service sending device is a relay device.
[0324] S1604: The network layer sends a routing information query feedback to the link layer, where the routing information query feedback indicates the logical address of the relay device. Correspondingly, the link layer receives the routing information query feedback.
[0325] S1605: The link layer sends the first paging notification message to the physical layer, where the first paging notification message is used to indicate the end of the service. Correspondingly, the physical layer receives the first paging notification message.
[0326] The first paging notification message includes a logical source address and a logical destination address.
[0327] S1606: The link layer sends fourth channel indication information to the physical layer, where the fourth channel indication information is used to indicate the release of the second service channel. Correspondingly, the physical layer receives the fourth channel indication information.
[0328] The second service channel is a channel between the service initiating device and the relay device, and is used to transmit service data.
[0329] S1607: The physical layer sends the first paging notification message to the relay device through the air interface.
[0330] Optionally, the fourth channel indication information may further indicate that the first paging notification message is to be sent on the second service channel. Therefore, the physical layer may send the first paging notification message to the relay device on the second service channel.
[0331] S1608: The physical layer releases the second service channel based on the fourth channel indication information.
[0332] Combination of the above Figure 16 This article introduces the inter-layer interaction process of the service initiating device ending a one-way service. Figure 17 This section describes the inter-layer interaction process used by relay devices to terminate unidirectional services.
[0333] Figure 17 1700 is a schematic flow chart of another communication method 1700 provided in an embodiment of the present application. The method 1700 includes S1701 to S1709. The specific steps are as follows:
[0334] S1701: The physical layer receives a first paging notification message from a service initiating device through an air interface.
[0335] The first paging notification message includes a logical source address and a logical destination address.
[0336] S1702: The physical layer sends the first paging notification message to the link layer. Correspondingly, the link layer receives the first paging notification message.
[0337] S1703: The link layer determines whether the logical destination address in the first paging notification message is the logical address of the current device.
[0338] S1704: When the link layer determines that the logical destination address is not the logical address of the local device, it sends a routing information query request to the network layer. The routing information query request is used to query the logical address of the next hop device of the relay device. Accordingly, the network layer receives the routing information query request.
[0339] In the embodiment of the present application, the next-hop device of the relay device is a service receiving device.
[0340] S1705: The network layer sends a routing information query feedback to the link layer, where the routing information query feedback indicates the logical address of the next hop device of the relay device. Correspondingly, the link layer receives the routing information query feedback.
[0341] S1706: The link layer sends a second paging notification message to the physical layer, where the second paging notification message is used to indicate the end of the service. Correspondingly, the physical layer receives the second paging notification message.
[0342] S1707: The link layer sends fifth channel indication information to the physical layer, where the fifth channel indication information is used to indicate the release of the first service channel and the second service channel. Correspondingly, the physical layer receives the fifth channel indication information.
[0343] The first service channel is a channel between the relay device and the service receiving device, and is used to transmit service data.
[0344] S1708: The physical layer sends the second paging notification message to the service receiving device via the air interface. Correspondingly, the physical layer receives the second paging notification message.
[0345] The second paging notification message includes a logical source address and a logical destination address.
[0346] S1709: The physical layer releases the first service channel and the second service channel.
[0347] Combination of the above Figure 17 This article introduces the inter-layer interaction process of relay equipment ending one-way services. Figure 18 This section describes the inter-layer interaction process for a service receiving device to terminate a one-way service.
[0348] Figure 18 1800 is a schematic flow chart of another communication method 1800 provided in an embodiment of the present application. The method 1800 includes S1801 to S1806. The specific steps are as follows:
[0349] S1801: The physical layer receives a second paging notification message from a relay device via an air interface. The second paging notification message is used to indicate the end of a service.
[0350] The second paging notification message includes a logical source address and a logical destination address.
[0351] S1802: The physical layer sends the second paging notification message to the link layer. Correspondingly, the link layer receives the second paging notification message.
[0352] S1803: The link layer determines whether the logical destination address in the second paging notification message is the logical address of the current device.
[0353] S1804: When the link layer determines that the logical destination address in the second paging notification message is the logical address of the local device, it sends a service end indication to the transport layer. Accordingly, the transport layer receives the service end indication.
[0354] S1805: The link layer sends sixth channel indication information to the physical layer, where the sixth channel indication information is used to instruct the release of the first service channel. Correspondingly, the physical layer receives the sixth channel indication information.
[0355] S1806: The physical layer releases the first service channel based on the sixth channel indication information.
[0356] Combination of the above Figure 18 This section introduces the inter-layer interaction process of the service receiving device ending a one-way service. In addition to one-way services, service types also include two-way services (for example, voice services). Figure 19 This section describes the inter-layer interaction process for a service initiating device to terminate a bidirectional service.
[0357] Figure 19 This is a schematic flow chart of another communication method 1900 provided in an embodiment of the present application. Method 1900 includes S1901 to S1909, which introduces the inter-layer interaction process of the service initiating device ending a bidirectional service. The specific steps are as follows:
[0358] S1901: When the application layer determines that the last data packet has been sent, it sends a service end indication to the transport layer. Correspondingly, the transport layer receives the service end indication.
[0359] S1902: When the transport layer determines whether the sending / retransmission buffer is empty, it starts a timer.
[0360] S1903: The transport layer sends a service end indication to the link layer after the timer times out. Correspondingly, the link layer receives the service end indication.
[0361] S1904: The link layer sends a routing information query request to the network layer, wherein the routing information query request is used to query the logical address of the next hop device of the service initiating device. Accordingly, the network layer receives the routing information query request.
[0362] In the embodiment of the present application, the next-hop device of the service sending device is a relay device.
[0363] S1905: The network layer sends a routing information query feedback to the link layer, where the routing information query feedback is used to indicate the logical address of the relay device. Correspondingly, the link layer receives the routing information query feedback.
[0364] S1906: The link layer sends a third paging notification message to the physical layer, where the third paging notification message is used to indicate the end of the service. Correspondingly, the physical layer receives the third paging notification message.
[0365] S1907: The link layer sends seventh channel indication information to the physical layer, where the seventh channel indication information is used to indicate the release of the second service channel. Correspondingly, the physical layer receives the seventh channel indication information.
[0366] The second service channel is a channel between the service initiating device and the relay device, and is used to transmit service data.
[0367] S1908. The physical layer sends the third paging notification message to the relay device through the air interface.
[0368] Optionally, the seventh channel indication information may further indicate that the third paging notification message is to be sent on the second service channel. Therefore, the physical layer may send the third paging notification message to the relay device on the second service channel.
[0369] S1909: The physical layer releases the second service channel based on the seventh channel indication information.
[0370] It should be understood that the inter-layer interaction process for the service receiving device to terminate the bidirectional service is similar to the inter-layer interaction process for the service initiating device to terminate the bidirectional service, and will not be described in detail here.
[0371] Combination of the above Figures 16 to 19 The inter-layer interaction process for releasing the channel when the service ends is introduced. However, when the link is abnormal, the channel may be released due to paging failure. Figure 20 and Figure 21 This section describes the inter-layer interaction process for releasing a channel due to paging failure.
[0372] For example, in the previous article Figure 10 Description, Figure 20The description is about the inter-layer interaction process when the sixth device acts as a service initiating device and the seventh device acts as a relay device, and the service initiating device releases the channel due to paging failure. Figure 10 Description, Figure 21 The description is about the inter-layer interaction process in which the relay device releases the channel due to paging failure when the sixth device acts as a relay device and the seventh device acts as a service receiving device.
[0373] Figure 20 2 is a schematic flow chart of another communication method 2000 provided in an embodiment of the present application. The method 2000 includes S2001 to S2007, which describes the inter-layer interaction process of the service initiating device processing a paging failure. The specific steps are as follows:
[0374] S2001: The physical layer receives a fifth paging response message from a relay device through an air interface. The fifth paging response message is used to indicate a paging failure.
[0375] The fifth paging response message includes a logical source address and a logical destination address.
[0376] The fifth paging response message may also indicate a reason for paging failure, where the reason for paging failure includes one or more of the following: no routing information, paging timeout, or no available channel resources.
[0377] S2002: The physical layer sends a fifth paging response message to the link layer. Correspondingly, the link layer receives the fifth paging response message.
[0378] S2003: The link layer parses the fifth paging response message and determines that the paging has failed.
[0379] S2004: The link layer sends a service initiation failure feedback to the transport layer. The service initiation failure feedback is used to indicate a service initiation failure.
[0380] When the link layer determines that the logical source address is the logical address of the local device and that the paging fails, it can notify the upper layer of the service initiation failure. Accordingly, the transport layer receives the service initiation failure feedback.
[0381] S2005: The transport layer sends a service initiation failure feedback to the application layer. Correspondingly, the application layer receives the service initiation failure feedback.
[0382] S2006: The link layer sends eighth channel indication information to the physical layer, where the eighth channel indication information is used to instruct the release of all negotiation channels. Correspondingly, the physical layer receives the eighth channel indication information.
[0383] For example, in the previous article Figure 10The description of the negotiation channel can be that the service initiating device provides the at least one fifth candidate channel to the relay device, and the at least one fifth candidate channel can be used for data transmission between the service initiating device and the relay device.
[0384] S2007: The physical layer releases all negotiation channels based on the eighth channel indication information.
[0385] It should be understood that in this embodiment of the present application, the link layer of the service initiating device can receive the fifth paging response message from the relay device. In one possible scenario, the link layer of the service initiating device may time out and fail to receive the fifth paging response message from the relay device. In this case, the link layer of the service initiating device can also send service initiation feedback to the transport layer after the timeout, indicating that the service initiation failed. In addition, the link layer of the service initiating device can also instruct the physical layer to release all negotiation channels.
[0386] For details on how the service initiating device handles paging failures, see Figure 10 The description of
[0387] Combination of the above Figure 20 This section introduces the inter-layer interaction process of the service initiating device handling paging failure. Figure 21 This section describes the inter-layer interaction process for relay devices to handle paging failures.
[0388] Figure 21 This is a schematic flow chart of another communication method 2100 provided in an embodiment of the present application. The method 2100 includes S2101 to S2108, which describes the inter-layer interaction process of the relay device processing the paging failure. The specific steps are as follows:
[0389] S2101: The physical layer receives a fifth paging response message from a service receiving device through an air interface. The fifth paging response message is used to indicate a paging failure.
[0390] The fifth paging response message includes a logical source address and a logical destination address.
[0391] The fifth paging response message may also indicate a reason for paging failure, where the reason for paging failure includes one or more of the following: no routing information, paging timeout, or no available channel resources.
[0392] S2102: The physical layer sends a fifth paging response message to the link layer. Correspondingly, the link layer receives the fifth paging response message.
[0393] S2103: The link layer parses the fifth paging response message and determines that the paging has failed.
[0394] The link layer parses the fifth paging response message, determines that the fifth paging response message is a response to the fifth paging request message, and determines that the fifth paging response message indicates a paging failure.
[0395] S2104: When the link layer determines that the logical source address in the fifth paging response message is not the logical address of the local device, it determines a sixth service channel from at least one sixth candidate channel. The at least one sixth candidate channel is a negotiated channel provided by the service initiating device to the relay device and can be used to transmit service data. The sixth service channel is used for transmitting service data between the service initiating device and the relay device.
[0396] S2105: The link layer sends a sixth paging response message to the physical layer, where the sixth paging response message is used to indicate a paging failure. Correspondingly, the physical layer receives the sixth paging response message.
[0397] S2106: The physical layer sends the sixth paging response message to the service initiating device through the air interface.
[0398] Optionally, the physical layer sends the sixth paging response message to the service initiating device through the sixth service channel.
[0399] This step can correspond to Figure 20 In S2001, the fifth paging response message received by the physical layer of the service initiating device is the sixth paging response message sent by the physical layer of the relay device.
[0400] S2107: The link layer sends ninth channel indication information to the physical layer, where the ninth channel indication information is used to indicate the release of the sixth service channel. Correspondingly, the physical layer receives the ninth channel indication information.
[0401] S2108: The physical layer releases the sixth service channel based on the ninth channel indication information.
[0402] Combination of the above Figure 21 This article introduces the inter-layer interaction process of the relay device in handling paging failure. Figure 21 This section describes the inter-layer interaction process when a service initiating device handles service termination caused by a maximum retransmission rate.
[0403] Figure 22 2200 is a schematic flow chart of another communication method 2200 provided in an embodiment of the present application. The method 2200 includes S2201 to S2208. The specific steps are as follows:
[0404] S2201: When the transport layer determines that a maximum retransmission occurs, the transport layer sends a service end indication to the link layer. Correspondingly, the link layer receives the service end indication.
[0405] S2202: When the transport layer determines that the maximum retransmission occurs, the transport layer sends a service end indication to the application layer. Correspondingly, the application layer receives the service end indication.
[0406] S2203: The link layer sends a routing information query request to the network layer, wherein the routing information query request is used to query the logical address of the next hop device of the service initiating device. Accordingly, the network layer receives the routing information query request.
[0407] In the embodiment of the present application, the next-hop device of the service sending device is a relay device.
[0408] S2204: The network layer sends a routing information query feedback to the link layer, where the routing information query feedback indicates the logical address of the relay device. Correspondingly, the link layer receives the routing information query feedback.
[0409] S2205: The link layer sends a fourth paging notification message to the physical layer, where the fourth paging notification message is used to indicate the end of the service. Correspondingly, the physical layer receives the fourth paging notification message.
[0410] S2206: The link layer sends tenth channel indication information to the physical layer, where the tenth channel indication information is used to indicate the release of the second service channel. Correspondingly, the physical layer receives the tenth channel indication information.
[0411] The second service channel is a channel between the service initiating device and the relay device, and is used to transmit service data.
[0412] S2207: The physical layer sends the fourth paging notification message to the relay device through the air interface.
[0413] S2208: The physical layer releases the second service channel based on the tenth channel indication information.
[0414] Combination of the above Figure 22 This describes the inter-layer interaction process of the service initiating device processing the maximum retransmission that causes the service to end. Figure 23 This section describes the inter-layer interaction process used by service receiving devices to handle long periods of no data.
[0415] Figure 23 2300 is a schematic flow chart of another communication method 2300 provided in an embodiment of the present application. The method 2300 includes S2301 to S2309. The specific steps are as follows:
[0416] S2301: When the transport layer determines that there is no data for a long time, it starts a timer.
[0417] S2302: When the timer times out, the transport layer sends a service end indication to the link layer. Correspondingly, the link layer receives the service end indication.
[0418] S2303: When the timer times out, the transport layer sends a service termination indication to the application layer. Correspondingly, the application layer receives the service termination indication.
[0419] S2304: The link layer sends a routing information query request to the network layer, where the routing information query request is used to query the logical address of the relay device. Correspondingly, the network layer receives the routing information query request.
[0420] S2305: The network layer sends a routing information query feedback to the link layer, where the routing information query feedback indicates the logical address of the relay device. Correspondingly, the link layer receives the routing information query feedback.
[0421] S2306: The link layer sends a fifth paging notification message to the physical layer, where the fifth paging notification message is used to indicate the end of the service. Correspondingly, the physical layer receives the fifth paging notification message.
[0422] S2307: The link layer sends eleventh channel indication information to the physical layer, where the eleventh channel indication information is used to indicate the release of the first service channel. Correspondingly, the physical layer receives the eleventh channel indication information.
[0423] The first service channel is a service channel between the relay device and the service receiving device, and is used to transmit service data.
[0424] S2308: The physical layer sends a fifth paging notification message to the relay device through the air interface.
[0425] S2309: The physical layer releases the first service channel based on the eleventh channel indication information.
[0426] Combination of the above Figure 23 This describes the inter-layer interaction process of the service receiving device processing the service termination caused by no data transmission. Figure 24 This section describes the inter-layer interaction process when a relay device handles the situation where it fails to receive a service termination indication.
[0427] Figure 24 This is a schematic flow chart of another communication method 2400 provided in an embodiment of the present application. It should be noted that the relay device in this embodiment of the present application does not include service data processing at the application layer and transport layer. Therefore, the relay device cannot perceive the occurrence of maximum retransmission or a long period of no data at the transport layer. Therefore, if the relay device perceives a long period of no data at the link layer and does not receive a service end indication, it can determine that the link is abnormal and proactively release the service channel.
[0428] Method 2400 includes S2401 and S2402, and the specific steps are as follows:
[0429] S2401: When the link layer determines that no data has been sent or received on the traffic channel for a long time, it sends twelfth channel indication information to the physical layer, where the twelfth channel indication information is used to instruct the release of the traffic channel. Accordingly, the physical layer receives the twelfth channel indication information.
[0430] For example, in the previous article Figure 6 As described in
[2401] , after the service initiating device establishes an end-to-end connection with the service receiving device via the relay device, the relay device simultaneously monitors the first service channel and the second service channel. The first service channel is the channel between the relay device and the service receiving device for transmitting service data. The second service channel is the channel between the relay device and the service initiating device for transmitting service data. The service channels in S2401 may include the first service channel and / or the second service channel.
[0431] S2402: The physical layer releases the service channel based on the twelfth channel indication information.
[0432] The above text, combined with the accompanying drawings, describes the process in which, in a multi-device self-organizing network with the participation of a relay device, the service initiating device pages the relay device through a paging request, and then the relay device pages the service receiving device through a paging request. This is conducive to completing the negotiation of channel resources through the relay device and establishing a complete connection from the service initiating device to the service receiving device.
[0433] In addition, the communication method of the embodiment of the present application can also be applied to direct paging and connection establishment between a service initiating device and a service receiving device, that is, a scenario without the participation of a relay device.
[0434] In this scenario, the service initiating device can send a paging request message to the service receiving device. This paging request message can carry information about multiple candidate channels. After receiving the paging request message, the service receiving device determines a service channel for transmitting service data from the multiple candidate channels and monitors this service channel. In this way, the service initiating device wakes up the service receiving device through the paging request message. The service receiving device then sends a paging response message to the service initiating device, which carries information about the negotiated service channel. After receiving the paging response message, the service initiating device monitors the negotiated service channel, completing the connection establishment with the service receiving device.
[0435] It should be understood that the size of the serial numbers of the above processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0436] Combined with the above Figures 1 to 24 , describes in detail the communication method according to the embodiment of the present application, and will be combined with Figures 25 to 27A communication device according to an embodiment of the present application is described in detail.
[0437] Figure 25 A schematic block diagram of a communication device 2500 provided in an embodiment of the present application is shown. The device 2500 includes a processing module 2510 and a transceiver module 2520.
[0438] The processing module 2510 is configured to generate a first paging request message, the first paging request message including information about at least one first candidate channel for data transmission. The transceiver module 2520 is configured to send the first paging request message to a second device and receive a first paging response message from the second device, the first paging response message including information about a first service channel, the first service channel being one of the at least one first candidate channel and being used for transmitting service data.
[0439] Optionally, the first paging request message also includes one or more of the following: service type, logical source address or logical destination address, wherein the service type is used to determine the service channel, the logical source address is used to identify the logical address of the service initiating device, and the logical destination address is used to identify the logical address of the service receiving device.
[0440] Optionally, the processing module 2510 is configured to: determine, according to routing information, that the next-hop device of the first device is the second device.
[0441] Optionally, the processing module 2510 is configured to: monitor at least one first candidate channel.
[0442] Optionally, the processing module 2510 is configured to: continue monitoring the first service channel; and release other channels in the at least one first candidate channel except the first service channel.
[0443] Optionally, the apparatus 2500 is a relay device between the third device and the second device, and the third device is the previous hop device of the apparatus 2500. The transceiver module 2520 is configured to receive a second paging request message from the third device, where the second paging request message includes information about at least one second candidate channel, where the at least one second candidate channel is used for data transmission.
[0444] Optionally, the processing module 2510 is configured to: determine a second service channel from at least one second candidate channel, the second service channel being used to transmit service data. The transceiver module 2520 is configured to: send a second paging response message to a third device, the second paging response message including information about the second service channel.
[0445] Optionally, the processing module 2510 is configured to: monitor a second service channel.
[0446] Optionally, the processing module 2510 is configured to release the monitored channel when the service ends or the link is abnormal.
[0447] Optionally, the transceiver module 2520 is used to: when the service is terminated, send a first indication message to the second device, where the first indication message is used to indicate the termination of the service.
[0448] Optionally, the transceiver module 2520 is configured to send a first indication message to the second device via a first service channel and / or a first paging channel, where the first paging channel is a paging channel of the second device.
[0449] Optionally, the apparatus 2500 is a service initiating device, and the processing module 2510 is configured to determine that the service is terminated when a first preset condition is satisfied. The first preset condition includes: a first timer expiration, the last data packet of the service data has been sent, or the number of retransmissions of the data packet reaches a preset maximum number of retransmissions.
[0450] Optionally, the apparatus 2500 is a relay device between the third device and the second device. The processing module 2510 is configured to: determine that the link is abnormal when the second timer times out.
[0451] In an optional example, those skilled in the art will appreciate that apparatus 2500 can be specifically the first device in the above-described embodiment, or the functions of the first device in the above-described embodiment can be integrated into apparatus 2500. The above-described functions can be implemented via hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-described functions. Apparatus 2500 can be used to execute the various processes and / or steps corresponding to the first device in the above-described method embodiment.
[0452] It should be understood that the apparatus 2500 herein is embodied in the form of functional modules. The term "module" herein may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor (e.g., a shared processor, a dedicated processor, or a group processor, etc.) and memory for executing one or more software or firmware programs, a combined logic circuit, and / or other suitable components that support the described functions. In the embodiments of the present application, Figure 25 The device 2500 may also be a chip or a chip system, such as a system on chip (SoC).
[0453] Figure 26 A schematic block diagram of another communication device 2600 provided in an embodiment of the present application is shown. The device 2600 includes a transceiver module 2610 and a processing module 2620.
[0454] The transceiver module 2610 is configured to receive a third paging request message from a fifth device, the third paging request message including information about at least one third candidate channel for data transmission. The processing module 2620 is configured to determine a third service channel from the at least one third candidate channel, the third service channel being used to transmit service data, the service data being data sent to a service receiving device. The transceiver module 2610 is further configured to send a third paging response message to the fifth device, the third paging response message including information about the third service channel.
[0455] Optionally, the third paging request message also includes one or more of the following: service type, logical source address or logical destination address, wherein the service type is used to determine the service channel, the logical source address is used to identify the logical address of the service initiating device, and the logical destination address is used to identify the logical address of the service receiving device.
[0456] Optionally, the processing module 2620 is configured to: monitor a third service channel.
[0457] Optionally, the transceiver module 2610 is configured to: receive a second indication message from the fifth device, where the second indication message is used to indicate the end of the service. The processing module 2620 is configured to: release the third service channel.
[0458] In an optional example, those skilled in the art will appreciate that apparatus 2600 may be specifically the fourth device in the above-described embodiment, or the functions of the fourth device in the above-described embodiment may be integrated into apparatus 2600. The above-described functions may be implemented via hardware, or by hardware executing corresponding software. The hardware or software may include one or more modules corresponding to the above-described functions. Apparatus 2600 may be used to execute the various processes and / or steps corresponding to the fourth device in the above-described method embodiment.
[0459] It should be understood that the apparatus 2600 herein is embodied in the form of a functional module. The term "module" herein may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor (e.g., a shared processor, a dedicated processor, or a group processor, etc.) and memory for executing one or more software or firmware programs, a combined logic circuit, and / or other suitable components that support the described functionality. In embodiments of the present application, Figure 26 The device 2600 may also be a chip or a chip system, such as a system on chip (SoC).
[0460] Figure 272 shows a schematic block diagram of another communication device 2700 provided in an embodiment of the present application. The device 2700 includes a processor 2710, a transceiver 2720, and a memory 2730. The processor 2710, the transceiver 2720, and the memory 2730 communicate with each other via an internal connection path. The memory 2730 is used to store instructions, and the processor 2710 is used to execute the instructions stored in the memory 2730 to control the transceiver 2720 to send and / or receive signals.
[0461] It should be understood that the device 2700 can be specifically the terminal device in the above-mentioned embodiment, or the functions of the first device or the fourth device in the above-mentioned embodiment can be integrated into the device 2700, and the device 2700 can be used to execute the various steps and / or processes corresponding to the first device or the fourth device in the above-mentioned method embodiment. Optionally, the memory 2730 may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store device type information. The processor 2710 can be used to execute instructions stored in the memory, and when the processor executes the instructions, the processor can execute the various steps and / or processes corresponding to the terminal device in the above-mentioned method embodiment.
[0462] It should be understood that in the embodiment of the present application, the processor 2710 may be a central processing unit (CPU), or may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.
[0463] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, the method executed by the first device or the fourth device in any of the above method embodiments can be implemented.
[0464] The present application also provides a computer program product, including a computer program, which, when executed by a processor, can implement the method performed by the first device or the fourth device in any of the above method embodiments.
[0465] Those skilled in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0466] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and modules described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0467] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules is merely a logical function division. In actual implementation, there may be other division methods, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0468] The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules may be selected to achieve the purpose of the present embodiment according to actual needs.
[0469] In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0470] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0471] The above description is merely a specific embodiment of the present application, but the scope of protection of the embodiments of the present application is not limited thereto. Any person skilled in the art can easily conceive of changes or substitutions within the technical scope disclosed in the embodiments of the present application, and such changes or substitutions should be included in the scope of protection of the embodiments of the present application. Therefore, the scope of protection of the embodiments of the present application should be based on the scope of protection of the claims.
Claims
1. A communication method, characterized in that: A first device used in a multi-device ad hoc network includes: When a second device is in a dormant state, sending a first paging request message to the second device, wherein the first device is a service initiating device, or a relay device between the service initiating device and the second device, and the second device is a next-hop device of the first device; the first paging request message includes information of at least one first candidate channel, and the at least one first candidate channel is used for data transmission between the first device and the second device; Receive a first paging response message from the second device, where the first paging response message includes information about a first service channel, where the first service channel is one of the at least one first candidate channels, and where the first service channel is used for transmitting service data, where the service data is data from the service initiating device.
2. The method according to claim 1, characterized in that The first paging request message also includes one or more of the following: a service type, a logical source address, or a logical destination address, wherein the service type is used to determine the service channel, the logical source address is used to identify the logical address of the service initiating device, and the logical destination address is used to identify the logical address of the service receiving device.
3. The method according to claim 1 or 2, characterized in that Before sending the first paging request message to the second device, the method further includes: According to the routing information, it is determined that the next hop device of the first device is the second device.
4. The method according to claim 1 or 2, characterized in that The method further comprises: The at least one first candidate channel is monitored.
5. The method according to claim 4, characterized in that After receiving the first paging response message from the second device, the method further includes: Continue to monitor the first service channel; Release the other channels in the at least one first candidate channel except the first service channel.
6. The method according to any one of claims 1-2 and 5, characterized in that The first device is a relay device between a third device and the second device, the third device is a previous hop device of the first device, and the method further includes: A second paging request message is received from the third device, where the second paging request message includes information of at least one second candidate channel, where the at least one second candidate channel is used for data transmission between the third device and the first device.
7. The method according to claim 6, characterized in that After receiving the second paging request message from the third device, the method further includes: Determine a second service channel from the at least one second candidate channel, where the second service channel is used to transmit the service data; A second paging response message is sent to the third device, where the second paging response message includes information about the second service channel.
8. The method according to claim 7, characterized in that After determining the second service channel from the at least one second candidate channel, the method further includes: Monitor the second traffic channel.
9. The method according to claim 4, characterized in that The method further comprises: When the service ends or the link is abnormal, the monitored channel is released.
10. The method according to claim 9, characterized in that The method further comprises: When the service ends, a first indication message is sent to the second device, where the first indication message is used to indicate the end of the service.
11. The method according to claim 10, characterized in that The sending a first indication message to the second device includes: The first indication message is sent to the second device through the first service channel and / or a first paging channel, where the first paging channel is a paging channel of the second device.
12. The method according to any one of claims 9 to 11, characterized in that The first device is the service initiating device, and the method further includes: When a first preset condition is met, the service is determined to be terminated; the first preset condition includes: a first timer times out, the last data packet of the service data has been sent, or the number of retransmissions of the data packet reaches a preset maximum number of retransmissions.
13. The method according to any one of claims 9 to 11, characterized in that The first device is a relay device between the third device and the second device, and the method further includes: When the second timer times out, it is determined that the link is abnormal.
14. A communication method, characterized in that: A fourth device used in a multi-device ad hoc network includes: receiving a third paging request message from a fifth device, where the fifth device is a previous-hop device of the fourth device, and the fourth device is a service receiving device, or a relay device between the fifth device and the service receiving device; the third paging request message includes information of at least one third candidate channel, where the at least one third candidate channel is used for data transmission between the fourth device and the fifth device; Determine a third service channel from the at least one third candidate channel, where the third service channel is used to transmit service data, where the service data is data sent to the service receiving device; A third paging response message is sent to the fifth device, where the third paging response message includes information about the third service channel.
15. The method according to claim 14, characterized in that The third paging request message also includes one or more of the following: a service type, a logical source address, or a logical destination address, wherein the service type is used to determine the service channel, the logical source address is used to identify the logical address of the service initiating device, and the logical destination address is used to identify the logical address of the service receiving device.
16. The method according to claim 14 or 15, characterized in that After determining the third service channel from the at least one third candidate channel, the method further includes: Monitor the third traffic channel.
17. The method according to claim 16, characterized in that The method further comprises: receiving a second indication message from the fifth device, where the second indication message is used to indicate the end of the service; The third traffic channel is released.
18. A communication device, characterized in that: The method comprises a module for executing the method according to any one of claims 1 to 13, or a module for executing the method according to any one of claims 14 to 17.
19. A communication device, characterized in that: include: A processor and a memory, wherein the processor is coupled to the memory, and the memory is used to store a computer program, and when the processor calls the computer program, the device is caused to execute the method according to any one of claims 1 to 13, or the device is caused to execute the method according to any one of claims 14 to 17.
20. A computer-readable storage medium, characterized in that Used to store a computer program, which, when executed on a computer, causes the computer to execute the method according to any one of claims 1 to 13, or causes the computer to execute the method according to any one of claims 14 to 17.
21. A computer program product, characterized in that The computer program product includes computer program code, and when the computer program code runs on a computer, the computer is enabled to implement the method according to any one of claims 1 to 13, or the computer is enabled to execute the method according to any one of claims 14 to 17.
Citation Information
Patent Citations
Communication method, system and device for forwarding emergency service, and storage medium
CN113259922A
Data communication method, device and system, electronic equipment and storage medium
CN113301512A