CN110012517B - Relay transmission method, device, mobile terminal and storage medium - Google Patents

Relay transmission method, device, mobile terminal and storage medium Download PDF

Info

Publication number
CN110012517B
CN110012517B CN201910258791.0A CN201910258791A CN110012517B CN 110012517 B CN110012517 B CN 110012517B CN 201910258791 A CN201910258791 A CN 201910258791A CN 110012517 B CN110012517 B CN 110012517B
Authority
CN
China
Prior art keywords
lora
equipment
priority
lora device
group
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
CN201910258791.0A
Other languages
Chinese (zh)
Other versions
CN110012517A (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 CN201910258791.0A priority Critical patent/CN110012517B/en
Publication of CN110012517A publication Critical patent/CN110012517A/en
Application granted granted Critical
Publication of CN110012517B publication Critical patent/CN110012517B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • 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/04Communication route or path selection, e.g. power-based or shortest path routing based on wireless node resources
    • 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

Landscapes

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

Abstract

The embodiment of the application discloses a relay transmission method, a relay transmission device, a mobile terminal and a storage medium, wherein the method comprises the following steps: the method comprises the steps that a first Lora device receives a first relay application request sent by a second Lora device; the first Lora device determines the priority of the second Lora device; and if the priority of the second Lora device is greater than the preset priority threshold and the first Lora device is not in the relay transmission state, allowing the second Lora device to perform relay transmission through the first Lora device. The embodiment of the application can improve the relay transmission safety of the Lora equipment.

Description

Relay transmission method, device, mobile terminal and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a relay transmission method, an apparatus, a mobile terminal, and a storage medium.
Background
Long distance (Lora) is a low power consumption local area network wireless standard, and because Lora has the characteristics of long transmission distance, strong interference immunity and the like, the long distance (Lora) is widely applied to the fields of the internet of things and the like. Currently, Lora may support a relay function, that is, a signal transmitted between two or more Lora devices may be relayed by using other Lora devices. When the current Lora equipment is in process of retransmission, verification is not needed, and safety is low.
Disclosure of Invention
The embodiment of the application provides a relay transmission method, a relay transmission device, a mobile terminal and a storage medium, and can improve the relay transmission safety of a Lora device.
In a first aspect, an embodiment of the present application provides a relay transmission method, where the method is applied to a long-distance Lora network, where the Lora network includes a first Lora device and a second Lora device, and the method includes:
the first Lora equipment receives a first relay application request sent by the second Lora equipment;
the first Lora device determines the priority of the second Lora device;
and if the priority of the second Lora equipment is greater than a preset priority threshold and the first Lora equipment is not in a relay transmission state, allowing the second Lora equipment to perform relay transmission through the first Lora equipment.
In a second aspect, an embodiment of the present application provides a relay transmission apparatus, where the relay transmission apparatus is applied to a long-distance Lora network, where the Lora network includes a first Lora device and a second Lora device, and the relay transmission apparatus includes:
a communication unit, configured to receive a first relay application request sent by the second Lora device;
a determining unit, configured to determine a priority of the second Lora device;
and the processing unit is used for allowing the second Lora equipment to perform relay transmission through the first Lora equipment under the condition that the priority of the second Lora equipment is greater than a preset priority threshold and the first Lora equipment is not in a relay transmission state.
In a third aspect, an embodiment of the present application provides a mobile terminal, including a processor, and a memory, where the memory is configured to store one or more programs, where the one or more programs are configured to be executed by the processor, and where the program includes instructions for performing the steps in the first aspect of the embodiment of the present application.
In a fourth aspect, an embodiment of 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 enables a computer to perform some or all of the steps described in the first aspect of the embodiment of the present application.
In a fifth aspect, embodiments of the present application provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, where the computer program is operable to cause a computer to perform some or all of the steps as described in 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 the relay transmission method described in this embodiment of the present application, the relay transmission method is applied to a long distance Lora network, where the Lora network includes a first Lora device and a second Lora device, and the first Lora device receives a first relay application request sent by the second Lora device; the first Lora device determines the priority of the second Lora device; if the priority of the second Lora equipment is greater than the preset priority threshold and the first Lora equipment is not in the relay transmission state, allowing the second Lora equipment to carry out relay transmission through the first Lora equipment; and if the priority of the second Lora equipment is smaller than the preset priority threshold, the second Lora equipment is refused to carry out relay transmission through the first Lora equipment. According to the embodiment of the application, when the other Lora devices apply for relay forwarding to the first Lora device, the priorities of the other Lora devices are judged, and only when the priorities of the other Lora devices are larger than a certain priority threshold value, the other Lora devices are allowed to carry out relay transmission through the first Lora device. The lower Lora equipment of priority is prevented from relaying transmission through first Lora equipment to can promote the security that Lora equipment relayed transmission.
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. 1 is a schematic network architecture diagram of a Lora network disclosed in an embodiment of the present application;
fig. 2 is a schematic flowchart of a relay transmission method disclosed in an embodiment of the present application;
fig. 3 is a schematic diagram of a group relay transmission disclosed in an embodiment of the present application;
fig. 4 is a schematic flowchart of another relay transmission method disclosed in the embodiment of the present application;
fig. 5 is a schematic structural diagram of a relay transmission device disclosed in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a mobile terminal disclosed in an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present invention better understood by those skilled in the art, 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 invention, 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 invention.
The terms "first," "second," and the like in the description and claims of the present invention 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 invention. 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 Mobile terminal according to the embodiment of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like. For convenience of description, the above-mentioned devices are collectively referred to as a mobile terminal.
The following describes embodiments of the present application in detail.
Referring to fig. 1, fig. 1 is a schematic diagram of a network architecture of a Lora network disclosed in an embodiment of the present application, where the Lora network includes Lora nodes such as a first Lora device, a second Lora device, a third Lora device, a Lora gateway, a network server, and an application server. Among them, the Lora device in the Lora network modulates the physical layer (PHY), so that the Lora device can also be used for different protocols and different network architectures (such as Mesh, Star, point-to-point, etc.).
Long range (Lora), also called long distance, is a low power consumption local area network wireless standard (IEEE 802.15.4 g). The working frequency is ISM (Industrial Scientific medical) frequency band, which may include 433MHz, 868MHz, 915MHz, etc.
The Lora device can access the network server and/or the application server through the Lora gateway or other Lora devices with the relay function. The communication distance of the Lora equipment is generally several kilometers to tens of kilometers, and compared with the Bluetooth communication and the WiFi communication, the communication distance of the Lora equipment is farther.
The Lora device may include a Lora module (e.g., a Lora chip), where the Lora chip may support not only a spread spectrum modulation manner, but also other multiple standard modulation manners such as Frequency-shift Keying (FSK)/gaussian Frequency-shift Keying (GFSK), and may be switched to each other, thereby implementing a remote modulation capability and using a standard FSK or binary On-Off Keying (OOK) modulation technique. The Lora device may be any mobile terminal including the Lora module, such as a cell phone, a wearable device (e.g., a smart band, a smart watch, a smart headset, etc.), a tablet computer, and the like.
If the Lora gateway closest to the Lora equipment is in a place dozens of kilometers or even farther, the Lora equipment cannot be directly connected with the Lora gateway, and can be connected with the Lora gateway through other nearby Lora equipment with a relay function. For example, in outdoor activities such as traversing and mountain climbing, if a target Lora device is far away from a nearest Lora gateway (for example, greater than 20 kilometers) and the target Lora device needs to access a network server or an application server, the target Lora device may plan a path to the nearest Lora gateway and initiate a relay application request to all other Lora devices on the path, and when all other Lora devices on the path are not in a relay transmission state and the priority of the target Lora device meets a lowest priority threshold required by all other Lora devices on the path, all other Lora devices on the path allow the target Lora device to perform relay transmission.
In the embodiment of the application, when the Lora device performs relay transmission, the priority of the Lora device initiating the application needs to be judged, and the Lora device with lower priority is prevented from performing relay transmission, so that the relay transmission safety of the Lora device can be improved.
Based on the network architecture shown in fig. 1, the embodiment of the application discloses a relay transmission method. Referring to fig. 2, fig. 2 is a flowchart illustrating a relay transmission method according to an embodiment of the present disclosure, and as shown in fig. 2, the relay transmission method includes the following steps.
201, a first Lora device receives a first relay application request sent by a second Lora device.
In this embodiment of the present application, the first Lora device and the second Lora device both belong to Lora nodes in the Lora network. The first Lora device and the second Lora device may both support a relay function, that is, signals transmitted between two or more Lora devices may be relayed by using other Lora devices.
When the second Lora device needs to access the network server and/or the application server, if the second Lora device is located in a remote place outdoors, the second Lora device cannot be directly connected with the Lora gateway, and can be connected with the Lora gateway through other nearby Lora devices with relay functions. Specifically, the second Lora device may plan at least one access path according to distribution of the Lora network architecture, the second Lora device may select an optimal access path from the at least one access path, and the second Lora device sends the first relay application request to other Lora nodes on the optimal access path. The first relay application request may carry at least one of an equipment identifier of the second Lora equipment, a group identifier of a group to which the second Lora equipment joins, and an identity identifier of the second Lora equipment.
202, the first Lora device determines a priority of the second Lora device.
In this embodiment of the present application, the first Lora device may determine the priority of the second Lora device according to the device identifier of the second Lora device, the group identifier of the group to which the second Lora device joins, the identity identifier of the second Lora device, and the communication frequency between the second Lora device and the first Lora device. In general, the higher the communication frequency of the second Lora device with the first Lora device, the higher the priority of the second Lora device.
Alternatively, the first Lora device may determine the priority of the second Lora device according to the following formula:
P=a1*X+a2*Y+a2*Z+a4*W;
wherein, X is a priority weight corresponding to the device identifier of the second Lora device, Y is a priority weight corresponding to the group identifier of the group to which the second Lora device joins, Z is a priority weight corresponding to the identity identifier of the second Lora device, and W is a priority weight corresponding to the communication frequency of the second Lora device and the first Lora device; a1, a2, a3 and a4 are corresponding weight coefficients; p is the priority of the second Lora device.
The memory (e.g., the nonvolatile memory) of the first Lora device may store a Lora device list, where the Lora device list includes a correspondence between an Lora device identifier and a corresponding priority weight, a correspondence between a group identifier of a group joined by the Lora device and a corresponding priority weight, a correspondence between an identity identifier of the Lora device and a corresponding priority weight, and a communication record between the Lora device and the first Lora device.
For example, the corresponding relationship between the Lora device identifier and the corresponding priority weight can be seen in table 1.
TABLE 1
Lora equipment identification Priority weight
Lora equipment A X1
Lora equipment B X2
Lora equipment C X3
Lora device D X4
Lora equipment E X5
As shown in table 1, the priority weights corresponding to different Lora device identifiers may be the same or different, and the priorities of the Lora device identifiers may be preset and stored in the memory of the first Lora device. For example, if the Lora device identifier carried in the relay application request received by the first Lora device is Lora device a, the corresponding priority weight is X1; if the Lora equipment identifier carried in the relay application request received by the first Lora equipment is Lora equipment B, the corresponding priority weight is X2; if the Lora device identifier carried in the relay application request received by the first Lora device is the Lora device C, the corresponding priority weight is X3; if the Lora device identifier carried in the relay application request received by the first Lora device is the Lora device D, the corresponding priority weight is X4; if the Lora device identifier carried in the relay application request received by the first Lora device is the Lora device E, the corresponding priority weight is X5. Wherein, X1, X2, X3, X4 and X5 are all positive values, and the larger the weight value is, the higher the priority is. If the Lora device identifier carried in the relay application request received by the first Lora device is not any one of Lora device A, Lora device B, Lora device C, Lora device D, Lora device E, the corresponding priority weight defaults to 0.
For example, the correspondence between the group identifier of the group joined by the Lora device and the corresponding priority weight can be seen in table 2.
TABLE 2
Group identification of group joined by Lora device Priority weight
Group identification A Y1
Group identification B Y2
Group identification C Y3
Group identification D Y4
Group identifier E Y5
As shown in table 2, the priority weights corresponding to the group identifiers of the groups joined by different Lora devices may be the same or different. If the group identifier of the group to which the first Lora device currently joins is the group identifier a, the group identifiers of the group to which the first Lora device historically joins are the group identifier B, the group identifier C, the group identifier D, and the group identifier E, respectively. The weight of Y1 is greater than any of Y2, Y3, Y4, and Y5. For the priority weight corresponding to the group identifier of the group which is historically added, the first Lora device may comprehensively determine the priority weight corresponding to the group identifier of the group which is historically added according to the communication record of the group which is historically added, the accumulated duration of group addition, and the time point of group addition. The priority weight corresponding to the group identifier of the group which is added in the history is positively correlated with the communication record of the group which is added in the history and the accumulated time length of the group which is added in the history. Generally, the longer the accumulated time of the group joined historically, the closer the time point of the group joined historically and the current time, and the more the communication records of the group joined historically, the greater the priority weight corresponding to the group identifier of the group joined historically. Y1, Y2, Y3, Y4 and Y5 are all positive values, and the larger the weight value is, the higher the priority is. If the group identifier of the group to which the Lora device joins, which is carried in the relay application request received by the first Lora device, is not any one of the group identifier a, the group identifier B, the group identifier C, the group identifier D, and the group identifier E, the corresponding priority weight is defaulted to 0.
For example, the correspondence between the identity of the Lora device and the corresponding priority weight can be seen in table 3.
TABLE 3
Identity of Lora equipment Priority weight
Lora identity A Z1
Lora identity B Z2
Lora identity C Z3
Lora identification D Z4
Lora identity E Z5
As shown in table 3, the priority weights corresponding to the identifiers of different Lora devices may be the same or different, and the priorities of the identifiers of the Lora devices may be preset and stored in the memory of the first Lora device. For example, the priority corresponding to the Lora identity a is Z1, the priority corresponding to the Lora identity B is Z2, the priority corresponding to the Lora identity C is Z3, the priority corresponding to the Lora identity D is Z4, and the priority corresponding to the Lora identity E is Z5. Wherein, Z1, Z2, Z3, Z4 and Z5 are all positive values, and the larger the weight value is, the higher the priority is. If the identity of the Lora device carried in the relay application request received by the first Lora device is not any one of the identity E of the Lora identity A, Lora identity B, Lora identity C, Lora identity D, Lora identity, the corresponding priority weight is defaulted to 0.
For example, the correspondence between the communication frequencies of the Lora device and the first Lora device and the corresponding priority weights may be shown in table 4.
TABLE 4
Lora equipment identification Communication frequency with first Lora device Priority weight
Lora equipment A F1 W1
Lora equipment B F2 W2
Lora equipment C F3 W3
Lora device D F4 W4
Lora equipment E F5 W5
As shown in table 4, the communication frequency between the Lora device a and the first Lora device is F1, the corresponding priority weight is W1, the communication frequency between the Lora device B and the first Lora device is F2, the corresponding priority weight is W2, the communication frequency between the Lora device C and the first Lora device is F3, the corresponding priority weight is W3, the communication frequency between the Lora device D and the first Lora device is F4, the corresponding priority weight is W4, the communication frequency between the Lora device E and the first Lora device is F5, and the corresponding priority weight is W5. The priority weights corresponding to the communication frequencies of different Lora devices and the first Lora device may be the same or different. Wherein, the higher the communication frequency, the higher the corresponding priority weight. W1, W2, W3, W4 and W5 are all positive values, and the larger the weight value is, the higher the priority is. If the Lora device identifier carried in the relay application request received by the first Lora device is not any one of Lora device A, Lora device B, Lora device C, Lora device D, Lora device E, the communication frequency between the corresponding Lora device and the first Lora device is 0, and the priority weight is 0.
It should be noted that the priority calculation formula P ═ a1 × X + a2 × Y + a2 × Z + a4 × W is only one possible implementation manner for calculating the priority of the Lora device, and other priority calculation formulas may be provided, and the embodiment of the present application is not limited.
Optionally, the first relay application request carries a group identifier of a group to which the second Lora device joins, and step 202 may specifically include the following steps:
(11) the first Lora equipment verifies whether the group identification of the group joined by the second Lora equipment is consistent with the group identification of the group joined by the first Lora equipment;
(12) and if the group identifier of the group which the second Lora equipment joins is consistent with the group identifier of the group which the first Lora equipment joins, the first Lora equipment determines that the priority of the second Lora equipment is greater than a preset priority threshold.
In this embodiment of the present application, when the first relay application request carries the group identifier of the group to which the second Lora device joins, the first Lora device may determine whether the priority of the second Lora device is greater than the preset priority threshold according to whether the group identifier of the group to which the second Lora device joins is consistent with the group identifier of the group to which the first Lora device joins. Because the group is added in advance, the priority judging mode is simple and effective, only the priority of the Lora equipment in the group is allowed to be greater than the preset priority threshold value, namely, only the Lora equipment in the group is allowed to carry out relay transmission, and the Lora equipment in the group has priority during relay transmission, so that the reliability of data relay transmission of the Lora equipment in the group is improved.
Optionally, before performing step 201, the following steps may also be performed:
and performing Lora Mesh networking on the first Lora equipment and the second Lora equipment, and enabling the first Lora equipment and the second Lora equipment to join the same group.
In the implementation of the application, the first Lora device can perform Lora Mesh networking with the plurality of Lora devices, and the devices in the Mesh networking can perform multi-hop transmission in the Mesh networking. For example, please refer to fig. 3, fig. 3 is a schematic diagram of a group relay transmission according to an embodiment of the present application. As shown in fig. 3, the Lora device A, Lora device B, Lora device C is a device that performs Lora Mesh networking, joins the same group, and generates a group id, and the Lora device A, Lora device B, Lora devices C each store a group id and know device ids of each other. Lora device A, Lora device B, Lora device C becomes a buddy, and Lora device A, Lora device B, Lora device C may be used preferentially when relay functionality is set to group personnel, either automatically or manually. Subsequently, if the Lora device a and the Lora device D simultaneously initiate a relay application request to the Lora device B and the Lora device C, a group identifier of a group to be joined carried in the relay application request sent by the Lora device a is the same as a group identifier of a group to be joined by the Lora device B and the Lora device C, and a group identifier of a group to be joined carried in the relay application request sent by the Lora device D is different from a group identifier of a group to be joined by the Lora device B and the Lora device C, the Lora device B and the Lora device C allow the Lora device a to perform relay transmission. The method and the device can allow the Lora equipment joining the same group to have the function of priority relay, and can ensure that the Lora equipment in the same group can better carry out relay transmission.
Optionally, the first relay application request carries the device identifier of the second Lora device, and step 202 may specifically include the following steps:
(21) the first Lora device verifies whether the device identifier of the second Lora device is one of the high-priority device identifier sets;
(22) and if the equipment identifier of the second Lora equipment is one of the high-priority equipment identifier sets, determining that the priority of the second Lora equipment is greater than a preset priority threshold.
In this embodiment of the present application, a high priority device identifier set may be pre-stored in a memory of the first Lora device, and the high priority device identifier set may include at least one Lora device identifier. The first Lora device may determine the high-priority device identifier set according to the historical communication record, or may manually add a new Lora device identifier in the high-priority device identifier set. When the first relay application request carries the device identifier of the second Lora device, the first Lora device may determine whether the priority of the second Lora device is greater than a preset priority threshold according to whether the device identifier of the second Lora device is one of a set of high-priority device identifiers. Because the high-priority device identifier set is determined in advance, the priority judgment mode is simple and effective, only the priority of the Lora devices in the high-priority device identifier set is allowed to be greater than the preset priority threshold, that is, only the Lora devices in the high-priority device identifier set are allowed to perform relay transmission, and the Lora devices in the high-priority device identifier set have priority during relay transmission, so that the reliability of data relay transmission of the Lora devices in the high-priority device identifier set is improved.
And 203, if the priority of the second Lora device is greater than the preset priority threshold and the first Lora device is not in the relay transmission state, allowing the second Lora device to perform relay transmission through the first Lora device.
In the embodiment of the application, in the same time period, one Lora device can only serve as one Lora device to serve as the relay node, and a plurality of Lora devices can serve as the relay node of one Lora device at the same time. For example, both the Lora device a and the Lora device B initiate a relay application request to the Lora device C, and the Lora device C may select one Lora device to provide the relay transmission service for the Lora device according to the priority of the ora device a and the Lora device B. If the first Lora device is in the relay transmission state, the first Lora device cannot continuously provide the relay transmission service for other Lora devices.
Optionally, after step 203 is executed, the following steps may also be executed:
(31) the method comprises the steps that a first Lora device receives a data packet sent by a second Lora device, wherein the data packet carries a group identifier of a group joined by the second Lora device;
(32) and under the condition that the first Lora device verifies that the group identifier of the group joined by the second Lora device is consistent with the group identifier of the group joined by the first Lora device, forwarding the data packet to the next Lora node.
In this embodiment of the application, after the first Lora device allows the second Lora device to perform relay transmission, the data packet sent to the first Lora device by the second Lora device needs to carry the group identifier of the group that the second device joins, so that the first Lora device can identify the data packet sent by the Lora device in the group, and can send the data packet to the next Lora node. And if the data packet sent by the Lora equipment and received by the second Lora equipment does not carry the group identification, or the carried group identification is inconsistent with the group identification of the group added by the second Lora equipment, discarding the data packet without carrying out relay transmission. Optionally, the second Lora device may further prohibit receiving the data packet sent by the Lora device subsequently, so as to avoid being interfered by the Lora device.
In the embodiment of the present application, when other Lora devices apply for relay forwarding to the first Lora device, the priorities of the other Lora devices may be determined, and only when the priorities of the other Lora devices are greater than a certain priority threshold, the other Lora devices are allowed to perform relay transmission through the first Lora device. The lower Lora equipment of priority is prevented from relaying transmission through first Lora equipment to can promote the security that Lora equipment relayed transmission.
Referring to fig. 4, fig. 4 is a schematic flowchart of another relay transmission method disclosed in the embodiment of the present application, and fig. 4 is obtained by further optimizing on the basis of fig. 2. As shown in fig. 4, the relay transmission method includes the following steps.
401, a first Lora device receives a first relay application request sent by a second Lora device, and the first Lora device receives a second relay application request sent by a third Lora device.
402, a first Lora device determines a priority of a second Lora device, and the first Lora device determines a priority of a third Lora device.
403, if the priority of the second Lora device is greater than the preset priority threshold, the priority of the third Lora device is less than the priority of the second Lora device, and the first Lora device is not in the relay transmission state, allowing the second Lora device to perform relay transmission through the first Lora device.
In this embodiment of the present application, if a first Lora device receives, in the same time period, a relay application request sent by a second Lora device and a relay application request sent by a third Lora device, the first Lora device may compare priorities of the second Lora device and the third Lora device, and only the Lora device, which has a higher priority and is greater than a preset priority threshold, of the second Lora device and the third Lora device is allowed to perform relay transmission through the first Lora device. The preset priority threshold may be preset. When two Lora devices initiate a relay application at the same time, the preset priority threshold may be set to 0, that is, the Lora devices with higher priority in the second Lora device and the third Lora device may be allowed to perform relay transmission through the first Lora device.
404, if the priority of the second Lora device is greater than the preset priority threshold, the priority of the third Lora device is greater than the priority of the second Lora device, and the third Lora device is allowed to perform relay transmission through the first Lora device.
In the embodiment of the application, when two Lora devices simultaneously initiate a relay application, the Lora devices with higher priority in the second Lora device and the third Lora device can be allowed to perform relay transmission through the first Lora device. The lower Lora equipment of priority is prevented from relaying transmission through first Lora equipment to can promote the security that Lora equipment relayed transmission.
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 is understood that the mobile terminal includes hardware structures and/or software modules for performing the respective functions in order to implement the above-described functions. Those of skill in the art will readily appreciate that the present invention can be implemented in hardware or a combination of hardware and computer software, with the exemplary elements and algorithm steps described in connection with the embodiments disclosed 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 invention.
In the embodiment of the present application, the mobile terminal may be divided into the functional units according to the 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.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a relay transmission device disclosed in the embodiment of the present application. As shown in fig. 5, the relay transmission apparatus is applied to a long distance Lora network including a first Lora device and a second Lora device, and the relay transmission apparatus 500 includes a communication unit 501, a determination unit 502, and a processing unit 503, in which:
a communication unit 501, configured to receive a first relay application request sent by a second Lora device;
a determining unit 502, configured to determine a priority of the second Lora device;
a processing unit 503, configured to allow the second Lora device to perform relay transmission through the first Lora device when the priority of the second Lora device is greater than a preset priority threshold and the first Lora device is not in the relay transmission state.
Optionally, the first relay application request carries a group identifier of a group to which the second Lora device joins, and the determining unit 502 determines the priority of the second Lora device, specifically: verifying whether the group identification of the group which the second Lora equipment joins is consistent with the group identification of the group which the first Lora equipment joins; and if the group identifier of the group which the second Lora equipment joins is consistent with the group identifier of the group which the first Lora equipment joins, determining that the priority of the second Lora equipment is greater than a preset priority threshold.
Optionally, the first relay application request carries an equipment identifier of the second Lora equipment, and the determining unit 502 determines the priority of the second Lora equipment, specifically: verifying whether the device identifier of the second Lora device is one of the high-priority device identifier set; and if the equipment identifier of the second Lora equipment is one of the high-priority equipment identifier sets, determining that the priority of the second Lora equipment is greater than a preset priority threshold.
Optionally, the communication unit 501 is further configured to receive a second relay application request sent by a third Lora device before the processing unit 503 allows the second Lora device to perform relay transmission through the first Lora device;
a determining unit 502, configured to determine a priority of the third Lora device;
the processing unit 503 is further configured to allow the second Lora device to perform relay transmission through the first Lora device when the priority of the third Lora device is smaller than the priority of the second Lora device.
The processing unit 503 is further configured to allow the third Lora device to perform relay transmission through the first Lora device when the priority of the third Lora device is greater than the priority of the second Lora device.
Optionally, the communication unit 501 is further configured to receive a data packet sent by the second Lora device after the processing unit 503 allows the second Lora device to perform relay transmission through the first Lora device, where the data packet carries a group identifier of a group joined by the second Lora device;
the communication unit 501 is further configured to forward the data packet to a next Lora node when the first Lora device verifies that the group identifier of the group joined by the second Lora device is consistent with the group identifier of the group joined by the first Lora device.
Optionally, the relay transmission apparatus 500 may further include a networking unit 504.
A networking unit 504, configured to perform Lora Mesh networking with a second Lora device, where the first Lora device and the second Lora device join a same group.
With the relay transmission apparatus shown in fig. 5, when another Lora device applies for relay forwarding to the first Lora device, the priority of the other Lora device may be determined, and only when the priority of the other Lora device is greater than a certain priority threshold, the other Lora device may be allowed to perform relay transmission through the first Lora device. The lower Lora equipment of priority is prevented from relaying transmission through first Lora equipment to can promote the security that Lora equipment relayed transmission.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a mobile terminal disclosed in the embodiment of the present application. As shown in fig. 6, the mobile terminal 600 includes a processor 601 and a memory 602, wherein the mobile terminal 600 may further include a bus 603, the processor 601 and the memory 602 may be connected to each other through the bus 603, and the bus 603 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus 603 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 6, but this is not intended to represent only one bus or type of bus. The mobile terminal 600 may also include an input/output device 604, where the input/output device 604 may include a display screen, such as a liquid crystal display screen. The memory 602 is used to store one or more programs containing instructions; processor 601 is configured to invoke instructions stored in memory 602 to perform some or all of the method steps described above in fig. 2-4.
With the mobile terminal shown in fig. 6, when another Lora device applies for relay forwarding to the first Lora device, the priority of the other Lora device may be determined, and only when the priority of the other Lora device is greater than a certain priority threshold, the other Lora device is allowed to perform relay transmission through the first Lora device. The lower Lora equipment of priority is prevented from relaying transmission through first Lora equipment to can promote the security that Lora equipment relayed transmission.
Embodiments of the present application also provide a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the relay transmission methods described in the above method embodiments.
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 one of the relay transmission methods as set forth in the above method embodiments.
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 invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. 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 by the invention.
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 division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. 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 invention 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, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a memory and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to execute all or part of the steps of the method according to the embodiments of the present invention. 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 embodiments of the present invention have been described in detail, and the principles and embodiments of the present invention are explained herein by using specific examples, which are only used to help understand the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, 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 invention.

Claims (10)

1. A relay transmission method is applied to a long-distance Lora network, wherein the Lora network comprises a first Lora device and a second Lora device, and the method comprises the following steps:
the first Lora equipment receives a first relay application request sent by the second Lora equipment;
the first Lora device determines the priority of the second Lora device;
if the priority of the second Lora device is larger than a preset priority threshold and the first Lora device is not in a relay transmission state, allowing the second Lora device to perform relay transmission through the first Lora device; if the first Lora device is in the relay transmission state, the relay transmission service cannot be continuously provided for other Lora devices;
and if the priority of the second Lora equipment is smaller than a preset priority threshold, rejecting the second Lora equipment to perform relay transmission through the first Lora equipment.
2. The method of claim 1, wherein the first relay application request carries a group identifier of a group to which the second Lora device joins, and wherein the determining, by the first Lora device, the priority of the second Lora device comprises:
the first Lora equipment verifies whether the group identification of the group joined by the second Lora equipment is consistent with the group identification of the group joined by the first Lora equipment;
and if the group identifier of the group which the second Lora equipment joins is consistent with the group identifier of the group which the first Lora equipment joins, determining that the priority of the second Lora equipment is greater than the preset priority threshold.
3. The method of claim 1, wherein the first relay application request carries a device identifier of the second Lora device, and wherein the determining, by the first Lora device, the priority of the second Lora device comprises:
the first Lora device verifies whether the device identifier of the second Lora device is one of a high-priority device identifier set;
and if the equipment identifier of the second Lora equipment is one of the high-priority equipment identifier sets, determining that the priority of the second Lora equipment is greater than the preset priority threshold.
4. The method according to any of claims 1 to 3, wherein the Lora network further comprises a third Lora device, and before allowing the second Lora device to relay transmission through the first Lora device, the method further comprises:
the first Lora device receives a second relay application request sent by the third Lora device;
the first Lora device determines a priority of the third Lora device;
and if the priority of the third Lora equipment is smaller than that of the second Lora equipment, executing the step of allowing the second Lora equipment to perform relay transmission through the first Lora equipment.
5. The method of claim 4, further comprising:
and if the priority of the third Lora equipment is greater than that of the second Lora equipment, allowing the third Lora equipment to perform relay transmission through the first Lora equipment.
6. The method of claim 2, wherein after allowing the second Lora device to relay transmissions via the first Lora device, the method further comprises:
the first Lora device receives a data packet sent by the second Lora device, wherein the data packet carries a group identifier of a group joined by the second Lora device;
and under the condition that the first Lora device verifies that the group identifier of the group joined by the second Lora device is consistent with the group identifier of the group joined by the first Lora device, forwarding the data packet to a next Lora node.
7. The method of claim 2, wherein before the first Lora device receives the first relay application request sent by the second Lora device, the method further comprises:
the first Lora equipment and the second Lora equipment are subjected to Lora Mesh networking, and the first Lora equipment and the second Lora equipment join the same group.
8. The relay transmission device is applied to a long-distance Lora network, wherein the Lora network includes a first Lora device and a second Lora device, and the relay transmission device includes:
a communication unit, configured to receive a first relay application request sent by the second Lora device;
a determining unit, configured to determine a priority of the second Lora device;
a processing unit, configured to allow the second Lora device to perform relay transmission through the first Lora device when the priority of the second Lora device is greater than a preset priority threshold and the first Lora device is not in a relay transmission state; if the first Lora device is in the relay transmission state, the relay transmission service cannot be continuously provided for other Lora devices; and if the priority of the second Lora equipment is smaller than a preset priority threshold, rejecting the second Lora equipment to perform relay transmission through the first Lora equipment.
9. A mobile terminal comprising a processor and a memory for storing one or more programs configured for execution by the processor, the programs comprising instructions for performing the method of any of claims 1-7.
10. A computer-readable storage medium for storing a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method according to any one of claims 1-7.
CN201910258791.0A 2019-04-01 2019-04-01 Relay transmission method, device, mobile terminal and storage medium Active CN110012517B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910258791.0A CN110012517B (en) 2019-04-01 2019-04-01 Relay transmission method, device, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910258791.0A CN110012517B (en) 2019-04-01 2019-04-01 Relay transmission method, device, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN110012517A CN110012517A (en) 2019-07-12
CN110012517B true CN110012517B (en) 2021-03-12

Family

ID=67169369

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910258791.0A Active CN110012517B (en) 2019-04-01 2019-04-01 Relay transmission method, device, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110012517B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110446206B (en) * 2019-08-22 2023-03-31 北京元安物联技术有限公司 Wireless network system and information transmission method
CN111132260B (en) * 2019-11-27 2022-02-18 江苏三希科技股份有限公司 Lora communication method and system for multi-route ad hoc network
CN111050356B (en) * 2019-12-11 2023-08-01 浙江大华技术股份有限公司 Data transmission processing method and device, storage medium and electronic device
CN113507703B (en) * 2021-07-05 2022-06-24 中国人民解放军国防科技大学 LoRa multi-hop communication method and system for field rescue
CN113595952A (en) * 2021-08-13 2021-11-02 上海仪电(集团)有限公司中央研究院 Ad-hoc network communication method based on hybrid modulation

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN206433189U (en) * 2017-02-24 2017-08-22 中国人民解放军71777部队 MANET Tactical Communications Terminal based on LoRa technologies
CN208314503U (en) * 2018-04-27 2019-01-01 福建华冠物联科技有限公司 A kind of agricultural management system based on Internet of Things

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9197380B2 (en) * 2010-12-17 2015-11-24 Cisco Technology, Inc. Repeater nodes in shared media networks
US9356831B2 (en) * 2012-12-17 2016-05-31 Itron, Inc. Intelligent network operation
US9294150B2 (en) * 2013-02-06 2016-03-22 Hcl Technologies Limited Information relay mechanism using proximity communication
CN106162803A (en) * 2015-04-02 2016-11-23 中兴通讯股份有限公司 A kind of relaying UE connection control method and device
CN105392145B (en) * 2015-12-07 2018-10-19 桂林电子科技大学 A kind of full duplex cognition relay communication method of spectrum efficiency and energy efficiency balance

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN206433189U (en) * 2017-02-24 2017-08-22 中国人民解放军71777部队 MANET Tactical Communications Terminal based on LoRa technologies
CN208314503U (en) * 2018-04-27 2019-01-01 福建华冠物联科技有限公司 A kind of agricultural management system based on Internet of Things

Also Published As

Publication number Publication date
CN110012517A (en) 2019-07-12

Similar Documents

Publication Publication Date Title
CN110012517B (en) Relay transmission method, device, mobile terminal and storage medium
CN109618373B (en) Link selection method and related device
US11696207B2 (en) Data transmission method, electronic device, and computer readable storage medium
CN110167072B (en) Resource selection method and terminal equipment
CN110049505B (en) Data transmission method and related device
CN109076566A (en) Dispatching method, equipment and system
CN111279773A (en) Service configuration method and related product
US20190141687A1 (en) Terminal device and d2d resource management method
CN105682149A (en) Data transmission method and device
CN109716830B (en) Communication method, device and system in unlicensed spectrum
CN109803454B (en) Data transmission control method and related product
CN105516993B (en) Frequency spectrum resource allocation method and device in a kind of cognition network
CN105917715B (en) Terminal scheduling method, website and terminal
US10939253B2 (en) Radio communication sytem and access control method
CN107454659B (en) Terminal identification method, system, terminal equipment and base station
JP2006526372A (en) Access control method and system
CN110087225B (en) Message processing method and related device
CN109392018B (en) Data transmission method and related device
CN105451367A (en) Wireless network connection method, device and system
CN104509133A (en) Method, base station and user terminal of transmitting signal in device-to-device approach service
CN103609169A (en) Control method and device for data transmission
TWI684381B (en) Communication method, terminal equipment and network equipment for terminal equipment in equipment
CN105050116A (en) Business processing method in mobile communication system and access network equipment
CN112866101A (en) Equipment networking method and device, electronic equipment and storage medium
CN106686645B (en) Method and system for improving throughput of multi-hop transmission link

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