CN110087225B - Message processing method and related device - Google Patents

Message processing method and related device Download PDF

Info

Publication number
CN110087225B
CN110087225B CN201910338680.0A CN201910338680A CN110087225B CN 110087225 B CN110087225 B CN 110087225B CN 201910338680 A CN201910338680 A CN 201910338680A CN 110087225 B CN110087225 B CN 110087225B
Authority
CN
China
Prior art keywords
lora
message
relay devices
mode
target relay
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910338680.0A
Other languages
Chinese (zh)
Other versions
CN110087225A (en
Inventor
杨鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910338680.0A priority Critical patent/CN110087225B/en
Publication of CN110087225A publication Critical patent/CN110087225A/en
Application granted granted Critical
Publication of CN110087225B publication Critical patent/CN110087225B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/26Reselection being triggered by specific parameters by agreed or negotiated communication parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/90Services for handling of emergency or hazardous situations, e.g. earthquake and tsunami warning systems [ETWS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/22Communication route or path selection, e.g. power-based or shortest path routing using selective relaying for reaching a BTS [Base Transceiver Station] or an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • Emergency Management (AREA)
  • Environmental & Geological Engineering (AREA)
  • Public Health (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the application discloses a message processing method and a related device, wherein the method comprises the following steps: when the condition that the preset condition is met is detected, triggering a first mode under an LORA function corresponding to the LORA equipment; and in the first mode, sending a first LORA message carrying a first mode identifier to at least one relay device, where the first LORA message is used for sending the first LORA message according to the highest priority after the at least one relay device receives the first LORA message and identifies the first mode identifier carried in the first LORA message. The embodiment of the application is beneficial to improving the processing speed of the LORA information and guaranteeing the timeliness of the LORA information.

Description

Message processing method and related device
Technical Field
The present application relates to the field of electronic device technologies, and in particular, to a message processing method and a related apparatus.
Background
With the development of mobile communication technology, users have an increasing demand for data communication, and when electronic devices (e.g., smart phones and the like) on the market transmit data, the users generally send data by selecting cellular mobile network communication or Wi-Fi communication and the like.
Disclosure of Invention
The embodiment of the application provides a message processing method and a related device, aiming to improve the processing speed of LORA information and guarantee the timeliness of the LORA information.
In a first aspect, an embodiment of the present application provides a message processing method, which is applied to a long-range radio LORA device in a wireless local area network, and the method includes:
when the condition that the preset condition is met is detected, triggering a first mode under an LORA function corresponding to the LORA equipment;
and in the first mode, sending a first LORA message carrying a first mode identifier to at least one relay device, where the first LORA message is used for sending the first LORA message according to the highest priority after the at least one relay device receives the first LORA message and identifies the first mode identifier carried in the first LORA message.
In a second aspect, an embodiment of the present application provides a message processing apparatus, which is applied to a long-range radio LORA device in a wireless local area network, and includes a processing unit and a communication unit, wherein,
the processing unit is used for triggering a first mode under an LORA function corresponding to the LORA equipment when the condition that the preset condition is met is detected; and the communication unit is configured to send a first LORA message carrying a first mode identifier to at least one relay device in the first mode, where the first LORA message is used for sending the first LORA message according to a highest priority after the at least one relay device receives the first LORA message and recognizes the first mode identifier carried by the first LORA message.
In a third aspect, an embodiment of the present application provides a LORA device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing steps of any of the methods according to the first aspect of the embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform part or all of the steps described in any one of the methods of the first aspect of the present application.
In a fifth aspect, the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps as described in any one of the methods of the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
It can be seen that, in this embodiment of the present application, when detecting that a preset condition is satisfied, an LORA device triggers a first mode under an LORA function corresponding to the LORA device, and sends a first LORA message carrying a first mode identifier to at least one relay device in the first mode, where the first LORA message is used for the at least one relay device to send the first LORA message according to a highest priority after receiving the first LORA message and recognizing the first mode identifier carried in the first LORA message. It can be seen that, when the LORA device meets the preset condition, after the first mode under the LORA function is triggered, the message under the specific emergency condition, that is, the LORA message carrying the first mode identifier, can be sent only through the relay device, so that the relay device sends the LORA message with the highest priority after receiving and recognizing the first mode identifier carried by the LORA message, which is beneficial to improving the timeliness of the LORA message and reducing the delay rate of the LORA message.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1A is a diagram of an exemplary system architecture of a message transmission system in which a LORA device is located according to an embodiment of the present application;
fig. 1B is a diagram of an exemplary system architecture of a message transmission system in which another LORA device according to an embodiment of the present application is located;
fig. 2A is a schematic flowchart of a message processing method according to an embodiment of the present application;
fig. 2B is a schematic display interface diagram of a LORA device according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another message processing method provided in an embodiment of the present application;
fig. 4 is a schematic flowchart of another message processing method provided in the embodiment of the present application;
fig. 5 is a schematic structural diagram of a LORA apparatus provided in an embodiment of the present application;
fig. 6 is a block diagram illustrating functional units of a message processing apparatus according to an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The LORA device according to the embodiment of the present application may be an electronic device with data transmission capability, and the LORA device may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices, or other processing devices connected to a wireless modem with wireless communication function, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and so on.
The following describes embodiments of the present application in detail.
Long Range Radio (LORA) communication, which is a Long Range wireless transmission technology based on spread spectrum technology, supports LORA devices with LORA function to perform peer-to-peer communication in a place without mobile communication base station, and Mesh networking communication, and is characterized in that under the same power consumption condition, the Long Range Radio (LORA) communication supports peer-to-peer communication and Mesh networking communication, and has the greatest characteristic that the Long Range Radio supports longer distance than other wireless modes, thereby realizing low power consumption and Long Range unification, and the Long Range Radio extends 3-5 times of the traditional wireless Radio frequency communication distance under the same power consumption, and the LORA technology can support relay function, i.e. signals transmitted between two or more LORA devices can be relayed to the second LORA device 102 by using other LORA devices as relay devices, as shown in fig. 1A, when a first LORA device 101 transmits a message to the second LORA device 102, and when the mobile communication base station is unavailable, the message can be relayed to the second LORA device 102 by using a third LORA device 103 as a relay device, as shown in fig. 1B, when the first LORA device 101 sends a message to the second LORA device 102, if the mobile communication base station is unavailable, the message may be relayed to the second LORA device 102 by the third LORA device 103 and the fourth LORA device 104 simultaneously as relay devices, and the number of relay devices may not be limited.
Referring to fig. 2A, fig. 2A is a flowchart illustrating a message processing method according to an embodiment of the present application, which is applied to the LORA device shown in fig. 1A or 1B, where the message processing method includes:
s201, when the LORA device detects that a preset condition is met, triggering a first mode under the LORA function corresponding to the LORA device.
The LORA device may be configured with a user interface for the first mode, where the user interface may add a called contact, edit the content of the distress message, and the like, or may be configured with another set of system different from the system in normal use for the first mode, so as to facilitate user operation, and the like, without limitation.
In one possible example, the detecting that the preset condition is satisfied includes:
detecting that the LORA device is in a no-network state; or the like, or, alternatively,
detecting a user's triggering operation for the first mode of the LORA device.
The LORA device is internally provided with a LORA chip, and when the LORA device detects that the LORA device is in a network-free state; or when the triggering operation of the first mode of the LORA equipment by the user is detected, triggering the first mode under the LORA function corresponding to the LORA equipment.
The first mode corresponds to an emergency rescue mode or an emergency communication mode, that is, in the first mode, the relay device needs to preferentially send a LORA message of the first mode, where the LORA device detects that the LORA device is in a network-free state, which may be that the communication quality of the LORA device is not within a preset communication quality range, or may be that the LORA device is in a communication-signal-free state, where this is not limited, the LORA device is in a network-free state, which indicates that the LORA device may be in a network environment such as an unmanned area, where communication is difficult to maintain, and information transmission cannot be performed through a communication base station, and in this environment, a user may need to send emergency communication information or rescue information, so that the first mode is triggered.
The triggering operation of the first mode of the LORA device by the user may be various, for example, the triggering operation of the quick start key for the first mode may be detected, or the triggering operation of the emergency communication may be detected, or the triggering mode may be set to the first mode by the user when the LORA device is taken by the user (for example, a double-click screen, a watching screen greater than a preset time length, and the like), and the triggering operation of the first mode of the LORA device by the user is detected when the LORA device detects the triggering mode, and the like, which are not limited herein.
It can be seen that, in this example, the LORA device automatically triggers the first mode when detecting that the LORA device is in a no-network state, or triggers the first mode when detecting that the user triggers the operation to the LORA function, which improves the intelligence and convenience of triggering the first mode, and ensures that the LORA function in the first mode can be used under various conditions.
S202, in the first mode, the LORA device sends a first LORA message carrying a first mode identifier to at least one relay device, where the first LORA message is used for sending the first LORA message according to a highest priority after the at least one relay device receives the first LORA message and recognizes the first mode identifier carried by the first LORA message.
After at least one relay device receives the first LORA message, the first LORA message is analyzed to identify the first mode identifier, and after the first mode identifier is identified, the first LORA message is preferentially sent in all messages to be sent according to the highest priority, so that emergency messages sent by users in special environments can be preferentially processed, and danger coefficients of the users are reduced.
It can be seen that, in this embodiment of the present application, when detecting that a preset condition is satisfied, an LORA device triggers a first mode under an LORA function corresponding to the LORA device, and sends a first LORA message carrying a first mode identifier to at least one relay device in the first mode, where the first LORA message is used for the at least one relay device to send the first LORA message according to a highest priority after receiving the first LORA message and recognizing the first mode identifier carried in the first LORA message. It can be seen that, when the LORA device meets the preset condition, after the first mode under the LORA function is triggered, the message under the specific emergency condition, that is, the LORA message carrying the first mode identifier, can be sent only through the relay device, so that the relay device sends the LORA message with the highest priority after receiving and recognizing the first mode identifier carried by the LORA message, which is beneficial to improving the timeliness of the LORA message and reducing the delay rate of the LORA message.
In one possible example, the sending, to the at least one relay device, the first LORA message carrying the first mode identifier includes:
acquiring a plurality of reference relay devices within a preset distance range;
selecting a first target relay device from the multiple reference relay devices, wherein the state parameter of the first target relay device and the communication quality parameter of a communication link between the first target relay device and the LORA device are both within a preset parameter range;
and sending the first LORA message carrying the first mode identifier to the first target relay equipment.
The preset distance range may be, for example, a circular area with a radius of 100m, or a circular area with a radius of 150m, and the like, which is not limited herein.
The plurality of reference relay devices are devices which also have an LORA function within the preset distance range.
The state parameter of the first target relay device may include an electric quantity parameter, a distance parameter from the LORA device, and the like, and the communication quality parameter of the communication link between the first target relay device and the LORA device includes parameters such as a bandwidth parameter and a transmission rate of the communication link, which are not limited herein, wherein the preset parameter range includes different parameter ranges corresponding to the above multiple parameters, which are not limited herein.
As can be seen, in this example, when the LORA device detects that there is a first target relay device that meets the preset parameter range among the multiple reference relay devices, that is, there is a first target relay device with good relay quality among the multiple reference relay devices, the LORA device may relay the first LORA message through only one relay device, thereby avoiding resource waste and improving the transmission speed and transmission integrity of the first LORA message.
In this possible example, after the obtaining the plurality of reference relay devices within the preset distance range, the method further includes:
determining at least two second target relay devices in the plurality of reference relay devices when detecting that the state parameter of each of the plurality of reference relay devices or the communication quality parameter corresponding to the LORA device does not conform to the preset parameter range;
and sending the first LORA message carrying the first mode identifier to the at least two second target relay devices in parallel.
The specific implementation manner of determining the at least two second target relay devices in the multiple reference relay devices may be various, for example, the at least two second target relay devices with the optimal state parameter may be selected from the multiple reference relay devices, the at least two second target relay devices with the optimal communication quality parameter corresponding to the LORA device may be selected from the multiple reference relay devices, the at least two second target relay devices closest to the LORA device may be selected from the multiple reference relay devices, and the like, which is not limited herein.
The specific implementation manner of sending the first LORA message carrying the first mode identifier to the at least two second target relay devices in parallel may be various, for example, the first LORA message may be sent to the at least two second target relay devices at the same time, or the first LORA message may be divided into a plurality of data packets and then sent to each relay device of the at least two second target relay devices at the same time, where the implementation manner is not limited herein.
As can be seen, in this example, when the LORA device detects that the relay quality of each of the multiple reference relay devices is not ideal, the LORA device selects at least two second target relay devices and sends the first LORA message to the at least two second target relay devices in parallel, so that the integrity of transmission of the first LORA message is effectively guaranteed, and the first LORA message is transmitted in parallel, which is beneficial to guaranteeing the timeliness of transmission of the first LORA message.
In this possible example, the determining at least two second target relay devices of the plurality of reference relay devices comprises:
determining priorities of the plurality of reference relay devices according to the state parameter of each reference relay device in the plurality of reference relay devices and/or the corresponding communication quality parameter between each reference relay device and the LORA device;
determining the number of the second target relay devices according to the data volume of the first LORA message;
determining the at least two second target relay devices of the plurality of reference relay devices according to the priorities of the plurality of reference relay devices and the number of the second target relay devices.
The LORA device prestores a mapping relation between the data volume and the number of the relay devices, and queries the mapping relation according to the data volume to determine the number of the second target relay devices.
The determining of the specific implementation manner of the at least two second target relay devices in the plurality of reference relay devices according to the priorities of the plurality of reference relay devices and the number of the second target relay devices may be selecting, according to the priorities, the second target relay devices of which the number corresponds to the number of the second target relay devices from the highest priority.
Wherein specific implementation manners of determining the priorities of the plurality of reference relay devices according to the status parameter of each of the plurality of reference relay devices and/or the communication quality parameter corresponding to each of the reference relay devices and the LORA device may be various, for example, the priorities may be determined from the status parameter of each of the plurality of reference relay devices from high to low, or the priorities may be determined according to the communication quality parameter corresponding to each of the reference relay devices and the LORA device, or a first weight of a setting status parameter and a second weight of a communication quality parameter, a second product of a communication quality parameter and a second weight by calculating a first product of a status parameter and a first weight, and a sum of the first product and the second product determines a value of each reference relay device, the priority of each reference relay device is determined according to the size of the value, and the like, which is not limited herein.
It can be seen that, in this example, the LORA device determines the number of the second target relay devices according to the data amount of the first LORA message, which is beneficial to improving the standardization of relay device selection, avoiding blind multiple selection of relay devices, and determining the corresponding number of second target relay devices according to the priority, which is beneficial to ensuring the transmission quality of the relay devices and improving the stability of transmission of the first LORA message.
In one possible example, the sending the first LORA message carrying the first mode identifier to the at least two second target relay devices in parallel includes:
dividing the first LORA message carrying the first mode identifier into a plurality of data packets according to the data type of the data in the first LORA message;
and respectively sending the plurality of data packets to the at least two second target relay devices.
The data types may include, for example, voice data, text data, image data (e.g., position image in a map, etc.), video data, etc., which are not limited herein.
Wherein the sending of the plurality of packets to the at least two second target relay devices may be, for example, sending video data and image data to one of the second target relay devices and sending text data, image data, and voice data to the other second relay device when the at least two second target relay devices are two second target relay devices, or may be counting data amounts corresponding to each data type and allocating different types to the two second target relay devices according to the data amounts, for example, if a sum of data amounts of voice data and image data and a sum of data amounts of text data and video data are smaller than a preset difference value, then sending voice data and image data to one of the second target relay devices and sending text data and video data to the other second target relay device, or, the first relay device may transmit the large amount of data to the second relay device with better quality, and transmit the small amount of data to the second relay device with poorer quality, and the like, which is not limited herein.
As can be seen, in this example, the LORA device divides the first LORA message into a plurality of data packets according to the data types, and sends the data packets to the at least two second target relay devices, which is beneficial to improving the normalization of data transmission, and thus can effectively determine the data type that is not successfully sent under the condition that data transmission is incomplete, and improve the balance of data transmission tasks of the plurality of second target relay devices.
In one possible example, after the triggering of the first mode in the LORA function corresponding to the LORA device, the method further includes:
displaying a display interface matched with the first mode;
the sending the first LORA message carrying the first mode identifier to at least one relay device includes:
downloading image information including current position information through third target relay equipment according to the operation of a user on the display interface;
acquiring a text message according to the character editing operation of the user aiming at the display interface;
and sending the text message and the image information carrying the first mode identifier to at least one relay device.
As shown in fig. 2B, the display interface may add a called contact, edit the content of the distress message, such as "i am AA, i am trapped in XXX", and add image information and video information, such as a positioning data image, which is not limited herein.
The third target relay device may be the first target relay device, the second target relay device, or a relay device that provides an image information downloading function and is different from the first target relay device and the second target relay device, which is not limited herein.
It can be seen that, in this example, after triggering the first mode, the LORA device displays a corresponding display interface, which is beneficial to improving convenience of sending the LORA message by the user and interchangeability of the LORA device, and the LORA device can download image information including current location information from the third target relay device, and is beneficial to receiving the receiving device of the first LORA message to accurately find the location where the LORA device is located, so as to facilitate rescue and reduce the risk coefficient of the LORA device.
Referring to fig. 3, fig. 3 is a flowchart illustrating a message processing method according to an embodiment of the present application, applied to the LORA device shown in fig. 1A or 1B, where as shown in the figure, the message processing method includes:
s301, the LORA device detects that the LORA device is in a network-free state.
S302, the LORA device triggers a first mode under the LORA function corresponding to the LORA device.
And S303, the LORA equipment acquires a plurality of reference relay equipment within a preset distance range.
S304, the LORA device selects a first target relay device from the multiple reference relay devices, where the state parameter of the first target relay device and the communication quality parameter of the communication link between the first target relay device and the LORA device are both within a preset parameter range.
S305, in the first mode, the LORA device sends a first LORA message carrying a first mode identifier to the first target relay device, where the first LORA message is used for sending the first LORA message according to a highest priority after the first target relay device receives the first LORA message and recognizes the first mode identifier carried in the first LORA message.
It can be seen that, in this embodiment of the present application, when detecting that a preset condition is satisfied, an LORA device triggers a first mode under an LORA function corresponding to the LORA device, and sends a first LORA message carrying a first mode identifier to at least one relay device in the first mode, where the first LORA message is used for the at least one relay device to send the first LORA message according to a highest priority after receiving the first LORA message and recognizing the first mode identifier carried in the first LORA message. It can be seen that, when the LORA device meets the preset condition, after the first mode under the LORA function is triggered, the message under the specific emergency condition, that is, the LORA message carrying the first mode identifier, can be sent only through the relay device, so that the relay device sends the LORA message with the highest priority after receiving and recognizing the first mode identifier carried by the LORA message, which is beneficial to improving the timeliness of the LORA message and reducing the delay rate of the LORA message.
In addition, the LORA device triggers the first mode automatically when detecting that the LORA device is in a network-free state, and the intelligence and the convenience of starting the LORA function are improved.
In addition, when the LORA device detects that there is a first target relay device satisfying the preset parameter range among the multiple reference relay devices, that is, there is a first target relay device with good relay quality among the multiple reference relay devices, the LORA device may relay the first LORA message through only one relay device, thereby avoiding resource waste and improving transmission speed and transmission integrity of the first LORA message.
Referring to fig. 4, fig. 4 is a flowchart illustrating a message processing method according to an embodiment of the present application, applied to the LORA device shown in fig. 1A or 1B, where as shown in the figure, the message processing method includes:
s401, a LORA device detects a trigger operation of a user for a first mode of the LORA device.
S402, the LORA device triggers the first mode under the LORA function corresponding to the LORA device.
S403, the LORA device acquires a plurality of reference relay devices within a preset distance range.
S404, when detecting that the state parameter of each of the plurality of reference relay devices or the communication quality parameter corresponding to the LORA device does not conform to the preset parameter range, the LORA device determines the priority of the plurality of reference relay devices according to the state parameter of each of the plurality of reference relay devices and/or the communication quality parameter corresponding to the LORA device.
S405, in the first mode, the LORA device determines the number of second target relay devices according to the data amount of a first LORA message, where the first LORA message is used for sending, according to the highest priority, the first LORA message carrying a first mode identifier, after at least two second target relay devices receive the first LORA message.
S406, the LORA device determines the at least two second target relay devices of the plurality of reference relay devices according to the priorities of the plurality of reference relay devices and the number of the second target relay devices.
S407, the LORA device divides the first LORA message carrying the first mode identifier into a plurality of data packets according to a data type of data in the first LORA message.
S408, the LORA device sends the plurality of data packets to the at least two second target relay devices, respectively.
It can be seen that, in this embodiment of the present application, when detecting that a preset condition is satisfied, an LORA device triggers a first mode under an LORA function corresponding to the LORA device, and sends a first LORA message carrying a first mode identifier to at least one relay device in the first mode, where the first LORA message is used for the at least one relay device to send the first LORA message according to a highest priority after receiving the first LORA message and recognizing the first mode identifier carried in the first LORA message. It can be seen that, when the LORA device meets the preset condition, after the first mode under the LORA function is triggered, the message under the specific emergency condition, that is, the LORA message carrying the first mode identifier, can be sent only through the relay device, so that the relay device sends the LORA message with the highest priority after receiving and recognizing the first mode identifier carried by the LORA message, which is beneficial to improving the timeliness of the LORA message and reducing the delay rate of the LORA message.
In addition, when the LORA device detects that the relay quality of each reference relay device in the multiple reference relay devices is not ideal, the LORA device selects at least two second target relay devices and sends the first LORA message to the at least two second target relay devices in parallel, so that the transmission integrity of the first LORA message is effectively guaranteed, the first LORA message is transmitted in parallel, and the transmission timeliness of the first LORA message is guaranteed.
In addition, the LORA device determines the number of the second target relay devices according to the data volume of the first LORA message, so that the standardization of relay device selection is facilitated to be improved, the blind and multiple selection of the relay devices is avoided, the second target relay devices with the corresponding number are determined according to the priority, the transmission quality of the relay devices is facilitated to be guaranteed, and the transmission stability of the first LORA message is improved.
In addition, the LORA device divides the first LORA message into a plurality of data packets according to the data types, and sends the data packets to the at least two second target relay devices respectively, so that the normalization of data transmission is favorably improved, the data types which are not successfully sent can be effectively determined under the condition that the data transmission is incomplete, and the balance of data transmission tasks of the plurality of second target relay devices is improved.
Consistent with the embodiments shown in fig. 2A, fig. 3, and fig. 4, please refer to fig. 5, and fig. 5 is a schematic structural diagram of a LORA device 500 according to an embodiment of the present application, as shown in the drawings, the LORA device 500 includes an application processor 510, a memory 520, a communication interface 530, and one or more programs 521, where the one or more programs 521 are stored in the memory 520 and configured to be executed by the application processor 510, and the one or more programs 521 include instructions for:
when the condition that the preset condition is met is detected, triggering a first mode under an LORA function corresponding to the LORA equipment;
and in the first mode, sending a first LORA message carrying a first mode identifier to at least one relay device, where the first LORA message is used for sending the first LORA message according to the highest priority after the at least one relay device receives the first LORA message and identifies the first mode identifier carried in the first LORA message.
It can be seen that, in this embodiment of the present application, when detecting that a preset condition is satisfied, an LORA device triggers a first mode under an LORA function corresponding to the LORA device, and sends a first LORA message carrying a first mode identifier to at least one relay device in the first mode, where the first LORA message is used for the at least one relay device to send the first LORA message according to a highest priority after receiving the first LORA message and recognizing the first mode identifier carried in the first LORA message. It can be seen that, when the LORA device meets the preset condition, after the first mode under the LORA function is triggered, the message under the specific emergency condition, that is, the LORA message carrying the first mode identifier, can be sent only through the relay device, so that the relay device sends the LORA message with the highest priority after receiving and recognizing the first mode identifier carried by the LORA message, which is beneficial to improving the timeliness of the LORA message and reducing the delay rate of the LORA message.
In one possible example, in terms of said detection that a preset condition is met, the instructions in said program 521 are specifically configured to perform the following operations: detecting that the LORA device is in a no-network state; or, detecting a user's trigger operation for the first mode of the LORA device.
In a possible example, in the aspect of sending the first LORA message carrying the first mode identifier to the at least one relay device through the LORA function, the instruction in the program 521 is specifically configured to perform the following operations: acquiring a plurality of reference relay devices within a preset distance range; and a first target relay device for selecting one of the plurality of reference relay devices, wherein the state parameter of the first target relay device and the communication quality parameter of the communication link between the first target relay device and the LORA device are both within a preset parameter range; and the first LORA message carrying the first mode identifier is sent to the first target relay device.
In this possible example, the one or more programs 521 further include instructions for performing the steps of: after the plurality of reference relay devices within a preset distance range are obtained, when the condition parameter of each reference relay device in the plurality of reference relay devices or the communication quality parameter corresponding to the LORA device is detected to be not in accordance with the preset parameter range, determining at least two second target relay devices in the plurality of reference relay devices; and the first LORA message carrying the first mode identifier is sent to the at least two second target relay devices in parallel.
In this possible example, in connection with the determining at least two second target relay devices of the plurality of reference relay devices, the instructions in the program 521 are specifically for performing the following: determining priorities of the plurality of reference relay devices according to the state parameter of each reference relay device in the plurality of reference relay devices and/or the corresponding communication quality parameter between each reference relay device and the LORA device; and determining the number of the second target relay devices according to the data volume of the first LORA message; and means for determining the at least two second target relay devices of the plurality of reference relay devices according to the priorities of the plurality of reference relay devices and the number of second target relay devices.
In a possible example, in the aspect that the first LORA message carrying the first mode identifier is sent to the at least two second target relay devices in parallel, the instruction in the program 521 is specifically configured to perform the following operations: dividing the first LORA message carrying the first mode identifier into a plurality of data packets according to the data type of the data in the first LORA message; and for sending the plurality of data packets to the at least two second target relay devices, respectively.
In one possible example, the one or more programs 521 further include instructions for performing the steps of: after a first mode under the LORA function corresponding to the LORA equipment is triggered, displaying a display interface matched with the first mode;
in the aspect of sending the first LORA message carrying the first mode identifier to at least one relay device, the instruction in the program 521 is specifically configured to perform the following operations: downloading image information including current position information through third target relay equipment according to the operation of a user on the display interface; the text message is acquired according to the character editing operation of the user aiming at the display interface; and the server is used for sending the text message and the image information carrying the first mode identification to at least one relay device.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It will be appreciated that the LORA device, in order to implement the above-described functions, includes corresponding hardware structures and/or software modules for performing the respective functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the LORA device may be divided into the functional units according to the above method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Fig. 6 is a block diagram showing functional units of a message processing apparatus 600 according to an embodiment of the present application. The message processing apparatus 600 is applied to a long-range radio LORA device in a wireless local area network, the message processing apparatus 600 includes a processing unit 601 and a communication unit 602, wherein:
the processing unit 601 is configured to trigger a first mode under an LORA function corresponding to the LORA device when it is detected that a preset condition is satisfied; and is configured to send a first LORA message carrying a first pattern identifier to at least one relay device through the communication unit 602, where the first LORA message is used for sending the first LORA message according to a highest priority after the at least one relay device receives the first LORA message and recognizes the first pattern identifier carried in the first LORA message.
The message processing apparatus 600 may further include a storage unit 603 for storing program codes and data of the electronic device. The processing unit 601 may be a processor, the communication unit 602 may be a touch display screen or a transceiver, and the storage unit 603 may be a memory.
It can be seen that, in this embodiment of the present application, when detecting that a preset condition is satisfied, an LORA device triggers a first mode under an LORA function corresponding to the LORA device, and sends a first LORA message carrying a first mode identifier to at least one relay device in the first mode, where the first LORA message is used for the at least one relay device to send the first LORA message according to a highest priority after receiving the first LORA message and recognizing the first mode identifier carried in the first LORA message. It can be seen that, when the LORA device meets the preset condition, after the first mode under the LORA function is triggered, the message under the specific emergency condition, that is, the LORA message carrying the first mode identifier, can be sent only through the relay device, so that the relay device sends the LORA message with the highest priority after receiving and recognizing the first mode identifier carried by the LORA message, which is beneficial to improving the timeliness of the LORA message and reducing the delay rate of the LORA message.
In a possible example, in terms of the detection that the preset condition is met, the processing unit 601 is specifically configured to: detecting that the LORA device is in a no-network state; or, a user's trigger operation for the first mode of the LORA device is detected through the communication unit 602.
In a possible example, in the aspect that the communication unit 602 sends the first LORA message carrying the first mode identifier to at least one relay device, the processing unit 601 is specifically configured to: acquiring a plurality of reference relay devices within a preset distance range; and a first target relay device for selecting one of the plurality of reference relay devices, wherein the state parameter of the first target relay device and the communication quality parameter of the communication link between the first target relay device and the LORA device are both within a preset parameter range; and is configured to send the first LORA message carrying the first mode identifier to the first target relay device through the communication unit 602.
In this possible example, after the acquiring the plurality of reference relay devices within the preset distance range, the processing unit 601 is further configured to: determining at least two second target relay devices in the plurality of reference relay devices when detecting that the state parameter of each of the plurality of reference relay devices or the communication quality parameter corresponding to the LORA device does not conform to the preset parameter range; and is configured to send the first LORA message carrying the first mode identifier to the at least two second target relay devices in parallel through the communication unit 602.
In this possible example, in terms of the determining at least two second target relay devices of the plurality of reference relay devices, the processing unit 601 is specifically configured to: determining priorities of the plurality of reference relay devices according to the state parameter of each reference relay device in the plurality of reference relay devices and/or the corresponding communication quality parameter between each reference relay device and the LORA device; and determining the number of the second target relay devices according to the data volume of the first LORA message; and means for determining the at least two second target relay devices of the plurality of reference relay devices according to the priorities of the plurality of reference relay devices and the number of second target relay devices.
In a possible example, in the aspect that the communication unit 602 sends the first LORA message carrying the first mode identifier to the at least two second target relay devices in parallel, the processing unit 601 is specifically configured to: dividing the first LORA message carrying the first mode identifier into a plurality of data packets according to the data type of the data in the first LORA message; and is configured to transmit the plurality of packets to the at least two second target relay devices through the communication unit 602, respectively.
In one possible example, after the triggering of the first mode in the LORA function corresponding to the LORA device, the processing unit 601 is further configured to: displaying a display interface matched with the first mode through a display screen;
in the aspect that the communication unit 602 sends the first LORA message carrying the first mode identifier to at least one relay device, the processing unit 601 is specifically configured to: downloading image information including current position information by a third target relay apparatus using the communication unit 602 according to an operation of a user for the display interface; and is used for utilizing the communication unit 602 to obtain a text message according to the text editing operation of the user for the display interface; and is configured to send the text message and the image information carrying the first mode identifier to at least one relay device by using the communication unit 602 through the LORA function.
Embodiments of the present application also provide a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to perform part or all of the steps of any one of the methods as described in the above method embodiments, and the computer includes a LORA device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, said computer comprising a LORA device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (8)

1. A message processing method for a long-range radio LORA device in a wireless local area network, the method comprising:
when the condition that the LORA equipment meets the preset condition is detected, triggering a first mode under the LORA function corresponding to the LORA equipment and displaying a display interface matched with the first mode;
in the first mode, sending a first LORA message carrying a first mode identifier to at least one relay device, where the first LORA message is used for sending the first LORA message according to a highest priority after the at least one relay device receives the first LORA message and recognizes the first mode identifier carried by the first LORA message, where sending the first LORA message carrying the first mode identifier to the at least one relay device includes: acquiring a plurality of reference relay devices within a preset distance range, if the state parameter of each of the reference relay devices or the communication quality parameter corresponding to the LORA device does not conform to the preset parameter range, determining at least two second target relay devices of the reference relay devices, dividing the first LORA message carrying the first mode identifier into a plurality of data packets, simultaneously and respectively sending the data packets to a part of the data packets of each of the at least two second target relay devices, downloading image information including current position information through a third target relay device according to the operation of a user on the display interface, and then acquiring a text message according to the text editing operation of the user on the display interface; sending the text message and the image information carrying the first mode identifier to the LORA device and the second target relay device, wherein the third target relay device is different from the second target relay device, so that a receiving device receiving the first LORA message determines the current position of the LORA device;
wherein the sending of the partial data packets of the plurality of data packets to each of the at least two second target relay devices, respectively, at the same time comprises: and counting the data volume corresponding to each data type, and respectively distributing the data packets of different types to the two second target relay devices according to the data volume.
2. The method according to claim 1, wherein the detecting that a preset condition is met comprises:
detecting that the LORA device is in a no-network state; or the like, or, alternatively,
detecting a user's triggering operation for the first mode of the LORA device.
3. The method according to claim 1 or 2, wherein the sending the first LORA message carrying the first mode identifier to the at least one relay device comprises:
selecting a first target relay device from the multiple reference relay devices, wherein the state parameter of the first target relay device and the communication quality parameter of a communication link between the first target relay device and the LORA device are both within a preset parameter range;
and sending the first LORA message carrying the first mode identifier to the first target relay equipment.
4. The method of claim 3, wherein the determining at least two second target relay devices of the plurality of reference relay devices comprises:
determining priorities of the plurality of reference relay devices according to the state parameter of each reference relay device in the plurality of reference relay devices and/or the corresponding communication quality parameter between each reference relay device and the LORA device;
determining the number of the second target relay devices according to the data volume of the first LORA message;
determining the at least two second target relay devices of the plurality of reference relay devices according to the priorities of the plurality of reference relay devices and the number of the second target relay devices.
5. The method of claim 3, wherein the sending the first LORA message carrying the first mode identifier to the at least two second target relay devices in parallel comprises:
dividing the first LORA message carrying the first mode identifier into a plurality of data packets according to the data type of the data in the first LORA message;
and respectively sending the plurality of data packets to the at least two second target relay devices.
6. Message processing apparatus for a long-range radio LORA device in a wireless local area network, the message processing apparatus comprising a processing unit and a communication unit, wherein,
the processing unit is used for triggering a first mode under an LORA function corresponding to the LORA equipment and displaying a display interface matched with the first mode when the condition that the preset condition is met is detected; and configured to send, in the first mode, a first LORA message carrying a first mode identifier to at least one relay device through the communication unit, where the first LORA message is used for the at least one relay device to send the first LORA message according to a highest priority after receiving the first LORA message and recognizing the first mode identifier carried in the first LORA message, where sending the first LORA message carrying the first mode identifier to the at least one relay device includes: acquiring a plurality of reference relay devices within a preset distance range, if the state parameter of each of the reference relay devices or the communication quality parameter corresponding to the LORA device does not conform to the preset parameter range, determining at least two second target relay devices of the reference relay devices, dividing the first LORA message carrying the first mode identifier into a plurality of data packets, simultaneously and respectively sending the data packets to a part of the data packets of each of the at least two second target relay devices, downloading image information including current position information through a third target relay device according to the operation of a user on the display interface, and then acquiring a text message according to the text editing operation of the user on the display interface; sending the text message and the image information carrying the first mode identifier to the LORA device and the second target relay device, wherein the third target relay device is different from the second target relay device, so that a receiving device receiving the first LORA message determines the current position of the LORA device;
wherein the sending of the partial data packets of the plurality of data packets to each of the at least two second target relay devices, respectively, at the same time comprises: and counting the data volume corresponding to each data type, and respectively distributing the data packets of different types to the two second target relay devices according to the data volume.
7. A LORA device comprising a processor, memory, a communication interface, and one or more programs stored in the memory and configured for execution by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-5.
8. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-5.
CN201910338680.0A 2019-04-25 2019-04-25 Message processing method and related device Active CN110087225B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910338680.0A CN110087225B (en) 2019-04-25 2019-04-25 Message processing method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910338680.0A CN110087225B (en) 2019-04-25 2019-04-25 Message processing method and related device

Publications (2)

Publication Number Publication Date
CN110087225A CN110087225A (en) 2019-08-02
CN110087225B true CN110087225B (en) 2021-06-08

Family

ID=67416743

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910338680.0A Active CN110087225B (en) 2019-04-25 2019-04-25 Message processing method and related device

Country Status (1)

Country Link
CN (1) CN110087225B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113950110B (en) * 2020-07-16 2023-04-25 展讯半导体(南京)有限公司 Method and device for switching Uu path to direct communication path and indicating candidate relay UE, storage medium, terminal and base station

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102291687A (en) * 2011-09-15 2011-12-21 电子科技大学 Delivering method for vehicular wireless ad hoc network safety information based on information relativity
CN106792916A (en) * 2016-12-13 2017-05-31 浙江科技学院 A kind of mixed type remote-wireless sensor network system and its communication means
CN107333321A (en) * 2017-07-05 2017-11-07 南京富岛信息工程有限公司 A kind of data actuation and its network-building method communicated based on Lora
CN107889077A (en) * 2017-11-01 2018-04-06 浙江如新智能科技有限公司 A kind of rapid data transmission method based on car networking technology
CN109600729A (en) * 2018-12-21 2019-04-09 武汉中联智诚科技有限公司 A kind of scenic spot facilities management system and its management method based on Internet of Things

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101001098B (en) * 2006-01-12 2010-07-14 华为技术有限公司 Method for converting downlink signal from repeater and its equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102291687A (en) * 2011-09-15 2011-12-21 电子科技大学 Delivering method for vehicular wireless ad hoc network safety information based on information relativity
CN106792916A (en) * 2016-12-13 2017-05-31 浙江科技学院 A kind of mixed type remote-wireless sensor network system and its communication means
CN107333321A (en) * 2017-07-05 2017-11-07 南京富岛信息工程有限公司 A kind of data actuation and its network-building method communicated based on Lora
CN107889077A (en) * 2017-11-01 2018-04-06 浙江如新智能科技有限公司 A kind of rapid data transmission method based on car networking technology
CN109600729A (en) * 2018-12-21 2019-04-09 武汉中联智诚科技有限公司 A kind of scenic spot facilities management system and its management method based on Internet of Things

Also Published As

Publication number Publication date
CN110087225A (en) 2019-08-02

Similar Documents

Publication Publication Date Title
CN109618373B (en) Link selection method and related device
CN109041262B (en) Data transmission method and related device
CN110972102B (en) Resource selection method and terminal
CN111836329B (en) Data transmission method and related device
CN109495880B (en) Data transmission method and related device
CN110049505B (en) Data transmission method and related device
CN109618372B (en) Data transmission method and related device
CN112889334B (en) Bandwidth part determining method, bandwidth part determining device and storage medium
CN109362097B (en) Transmission control method and related device
CN110719154B (en) Beam failure recovery request transmission method and device
CN105682149B (en) Data transmission method and equipment
CN109348514B (en) Method and terminal for controlling electromagnetic interference
CN109922539B (en) Network connection method and related product
CN111698751B (en) Method and device for determining URSP rule priority
CN111432423B (en) Resource allocation method and device
CN110087225B (en) Message processing method and related device
CN112385203B (en) Identification display control method and device
CN109392018B (en) Data transmission method and related device
CN108605263B (en) Device-to-device based communication method and terminal
CN110035399B (en) Message transmission method and related equipment
CN110602738B (en) Network connection method and device and electronic device
CN111526255A (en) Voice communication method, device, terminal and storage medium
CN112385268A (en) Service identifier display control method and related product
CN114900205A (en) Adaptive frequency hopping method, device, storage medium and electronic equipment
CN114125936A (en) Resource scheduling method, device and storage medium

Legal Events

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