CN110012517A - 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
CN110012517A
CN110012517A CN201910258791.0A CN201910258791A CN110012517A CN 110012517 A CN110012517 A CN 110012517A CN 201910258791 A CN201910258791 A CN 201910258791A CN 110012517 A CN110012517 A CN 110012517A
Authority
CN
China
Prior art keywords
lora
lora equipment
equipment
priority
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.)
Granted
Application number
CN201910258791.0A
Other languages
Chinese (zh)
Other versions
CN110012517B (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

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)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the present application discloses a kind of relay transmission method, device, mobile terminal and storage medium, this method comprises: the first Lora equipment receives the first relaying application request that the 2nd Lora equipment is sent;First Lora equipment determines the priority of the 2nd Lora equipment;If the priority of the 2nd Lora equipment is greater than pre-set priority threshold value, and the first Lora equipment is not at relay transmission state, and the 2nd Lora equipment is allowed to carry out relay transmission by the first Lora equipment.The embodiment of the present application can promote the safety of Lora equipment relay transmission.

Description

Relay transmission method, device, mobile terminal and storage medium
Technical field
This application involves fields of communication technology, and in particular to a kind of relay transmission method, device, mobile terminal and storage are situated between Matter.
Background technique
(long range, Lora) is a kind of low-power consumption local area network wireless standard over long distances, since Lora has transmission distance The features such as from remote, strong interference immunity, it is widely used in the fields such as Internet of Things.Currently, Lora can support relay function, i.e., two The signal transmitted between a or multiple Lora equipment can use other Lora equipment and carry out transfer transmission.Current Lora is set When standby underway turn of transmission, without being verified, safety is lower.
Summary of the invention
The embodiment of the present application provides a kind of relay transmission method, device, mobile terminal and storage medium, can be promoted The safety of Lora equipment relay transmission.
In a first aspect, the embodiment of the present application provides a kind of relay transmission method, the method is applied to long range Lora net Network, the Lora network include the first Lora equipment and the 2nd Lora equipment, which comprises
The first Lora equipment receives the first relaying application request that the 2nd Lora equipment is sent;
The first Lora equipment determines the priority of the 2nd Lora equipment;
If the priority of the 2nd Lora equipment is greater than pre-set priority threshold value, and the first Lora equipment is not located In relay transmission state, the 2nd Lora equipment is allowed to carry out relay transmission by the first Lora equipment.
Second aspect, the embodiment of the present application provide a kind of relay transmission device, and the relay transmission device is applied to length Distance Lora network, the Lora network include the first Lora equipment and the 2nd Lora equipment, and the relay transmission device includes:
Communication unit, the first relaying application request sent for receiving the 2nd Lora equipment;
Determination unit, for determining the priority of the 2nd Lora equipment;
Processing unit is greater than pre-set priority threshold value, and described for the priority in the 2nd Lora equipment In the case that one Lora equipment is not at relay transmission state, the 2nd Lora equipment is allowed to pass through the first Lora equipment Carry out relay transmission.
The third aspect, the embodiment of the present application provide a kind of mobile terminal, including processor, memory, and the memory is used In storing one or more programs, one or more of programs are configured to be executed by the processor, and above procedure includes For executing the instruction of the step in the embodiment of the present application first aspect.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, wherein above-mentioned computer-readable Storage medium storage is used for the computer program of electronic data interchange, wherein above-mentioned computer program executes computer such as Step some or all of described in the embodiment of the present application first aspect.
5th aspect, the embodiment of the present application provide a kind of computer program product, wherein above-mentioned computer program product Non-transient computer readable storage medium including storing computer program, above-mentioned computer program are operable to make to calculate Machine executes the step some or all of as described in the embodiment of the present application first aspect.The computer program product can be one A software installation packet.
As can be seen that relay transmission method described in the embodiment of the present application, the relay transmission method be applied to it is long away from From Lora network, Lora network includes the first Lora equipment and the 2nd Lora equipment, and the first Lora equipment receives the 2nd Lora and sets The first relaying application request that preparation is sent;First Lora equipment determines the priority of the 2nd Lora equipment;If the 2nd Lora equipment Priority be greater than pre-set priority threshold value, and the first Lora equipment is not at relay transmission state, and the 2nd Lora is allowed to set It is standby that relay transmission is carried out by the first Lora equipment;If the priority of the 2nd Lora equipment is less than pre-set priority threshold value, refuse Exhausted 2nd Lora equipment carries out relay transmission by the first Lora equipment.The embodiment of the present application can be in other Lora equipment to When one Lora equipment application relay forwarding, the priority of other Lora equipment is judged, only in the excellent of other Lora equipment When first grade is greater than certain priority threshold value, other Lora equipment is allowed to carry out relay transmission by the first Lora equipment.It prevents excellent The first lower Lora equipment of grade carries out relay transmission by the first Lora equipment, so as to promote Lora equipment relay transmission Safety.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of network architecture schematic diagram of Lora network disclosed in the embodiment of the present application;
Fig. 2 is a kind of flow diagram of relay transmission method disclosed in the embodiment of the present application;
Fig. 3 is a kind of schematic diagram of group's relay transmission disclosed in the embodiment of the present application;
Fig. 4 is the flow diagram of another kind relay transmission method disclosed in the embodiment of the present application;
Fig. 5 is a kind of structural schematic diagram of relay transmission device disclosed in the embodiment of the present application;
Fig. 6 is a kind of structural schematic diagram of mobile terminal disclosed in the embodiment of the present application.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present application Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Description and claims of this specification and term " first " in above-mentioned attached drawing, " second " etc. are for distinguishing Different objects, are not use to describe a particular order.In addition, term " includes " and " having " and their any deformations, it is intended that It is to cover and non-exclusive includes.Such as the process, method, system, product or equipment for containing a series of steps or units do not have It is defined in listed step or unit, but optionally further comprising the step of not listing or unit, or optionally also wrap Include other step or units intrinsic for these process, methods, product or equipment.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments Containing at least one embodiment of the present invention.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
Mobile terminal involved by the embodiment of the present application may include the various handheld devices with wireless communication function, Mobile unit, wearable device calculate equipment or are connected to other processing equipments and various forms of radio modem User equipment (User Equipment, UE), mobile station (Mobile Station, MS), terminal device (terminal Device) etc..For convenience of description, apparatus mentioned above is referred to as mobile terminal.
It describes in detail below to the embodiment of the present application.
Referring to Fig. 1, Fig. 1 is a kind of network architecture schematic diagram of Lora network, the Lora disclosed in the embodiment of the present application Network includes the Lora nodes, Lora gateway, network server such as the first Lora equipment, the 2nd Lora equipment, the 3rd Lora equipment And application server.Wherein, that the Lora equipment modulation in Lora network is physical layer (PHY), therefore can also be by Lora equipment For different agreements and heterogeneous networks framework (such as Mesh, Star, point-to-point).
(long range, Lora) over long distances is referred to as at a distance, is a kind of low-power consumption local area network wireless standard (IEEE 802.15.4g).Working frequency is ISM (Industrial Scientific Medical) frequency range, may include 433MHz, 868MHz, 915MHz etc..
Lora equipment can be by the Lora gateway or other Lora equipment with relay function to network server And/or application server accesses.Lora equipment communication distance is generally several kms to more than ten kms, compared to Bluetooth communication It is farther with the communication distance of WiFi communication, Lora equipment.
Lora equipment may include Lora module (for example, Lora chip), and Lora chip can not only support band spectrum modulation Mode, can also support the modulation system such as frequency shift keyings (Frequency-shift keying, FSK) of other multiple standards/ GFSK Gaussian Frequency Shift Keying (Gauss Frequency-shift keying, GFSK), and can mutually switch, both realize remote tune Ability processed can use the FSK or bit on off keying (On-Off Keying, OOK) modulation technique of standard again.Lora equipment Can any mobile terminal including Lora module, for example, mobile phone, wearable device are (for example, Intelligent bracelet, smartwatch, intelligence Can wear), tablet computer etc..
If for nearest Lora gateway in tens kms even farther place, Lora equipment can not be direct with Lora equipment It connect, can be connect with Lora gateway by other neighbouring Lora equipment with relay function with Lora gateway.For example, wearing More, in the outdoor activities such as mountain-climbing, if target Lora equipment is at a distance from nearest Lora gateway farther out (for example, being greater than 20,000 Rice), and target Lora equipment needs to access network server or application server, and target Lora equipment can plan one Item leads to the path of nearest Lora gateway, and initiates relaying application request to other all Lora equipment on path, when Other all Lora equipment on the path are not at relay transmission state, and the priority of target Lora equipment meets When lowest priority threshold value required by other all Lora equipment on the path, then all other on the path Lora equipment allows target Lora equipment to carry out relay transmission.
In the embodiment of the present application, Lora equipment is underway when transmission, needs to the excellent of the Lora equipment for initiating application First grade is judged, prevents the lower Lora equipment of priority by carrying out relay transmission, so as to be promoted in Lora equipment After the safety of transmission.
Based on network architecture shown in FIG. 1, the embodiment of the present application discloses a kind of relay transmission method.Referring to Fig. 2, figure 2 be a kind of flow diagram of relay transmission method disclosed in the embodiment of the present application, as shown in Fig. 2, the relay transmission method packet Include following steps.
201, the first Lora equipment receives the first relaying application request that the 2nd Lora equipment is sent.
In the embodiment of the present application, the first Lora equipment, the 2nd Lora equipment belong to the Lora node in Lora network.The One Lora equipment, the 2nd Lora equipment can support relay function, i.e., transmit between two or more Lora equipment Signal can use other Lora equipment and carry out transfer transmission.
When the 2nd Lora equipment needs to access to network server and/or application server, if the 2nd Lora Equipment is in outdoor more remote place, and the 2nd Lora equipment can not directly connect with Lora gateway, can by it is neighbouring other Lora equipment with relay function is connect with Lora gateway.Specifically, the 2nd Lora equipment can be according to the Lora network architecture Distribution cook up at least one access path, the 2nd Lora equipment can select one from above-mentioned at least one access path The optimal access path of item, other Lora nodes of the 2nd Lora equipment in optimal access path send the first relaying and ask It asks.Wherein, which can carry the group of the device identification of the 2nd Lora equipment, the addition of the 2nd Lora equipment The group identification of group, at least one of the identity of the 2nd Lora equipment.
202, the first Lora equipment determines the priority of the 2nd Lora equipment.
In the embodiment of the present application, the first Lora equipment can be set according to the device identification of the 2nd Lora equipment, the 2nd Lora The standby group identification of group being added, the identity of the 2nd Lora equipment, the 2nd Lora equipment are logical with the first Lora equipment Frequency is believed to determine the priority of the 2nd Lora equipment.In general, the communication frequency of the 2nd Lora equipment and the first Lora equipment Rate is higher, and the priority of the 2nd Lora equipment is higher.
Optionally, the first Lora equipment can determine the priority of the 2nd Lora equipment according to following formula:
P=a1*X+a2*Y+a2*Z+a4*W;
Wherein, X is the corresponding weights of device identification of the 2nd Lora equipment, and Y is what the 2nd Lora equipment was added The corresponding weights of the group identification of group, Z are the corresponding weights of identity of the 2nd Lora equipment, and W is 2nd Lora equipment weights corresponding with the communication frequency of the first Lora equipment;A1, a2, a3, a4 are corresponding weight Coefficient;P is the priority of the 2nd Lora equipment.
It can store Lora list of devices, Lora in the memory (for example, nonvolatile memory) of first Lora equipment It include the group of Lora device identification with the corresponding relationship of corresponding weights, the group of Lora equipment addition in list of devices Group mark and the corresponding relationship of corresponding weights, the identity of Lora equipment are corresponding with corresponding weights The communications records of relationship, Lora equipment and the first Lora equipment.
For example, Lora device identification may refer to table 1 with the corresponding relationship of corresponding weights.
Table 1
Lora device identification Weights
Lora equipment A X1
Lora equipment B X2
Lora equipment C X3
Lora equipment D X4
Lora equipment E X5
As shown in table 1, its corresponding weights of different Lora device identifications may be the same or different, The priority of Lora device identification can be set in advance and is stored in the memory of the first Lora equipment.For example, if The Lora device identification carried in the received relaying application request of first Lora equipment is Lora equipment A, then corresponding priority Weight is X1;If the Lora device identification carried in the received relaying application request of the first Lora equipment is Lora equipment B, Corresponding weights are X2;If the Lora device identification carried in the received relaying application request of the first Lora equipment is Lora equipment C, then corresponding weights are X3;If carried in the received relaying application request of the first Lora equipment Lora device identification is Lora equipment D, then corresponding weights are X4;If the received relaying application of the first Lora equipment The Lora device identification carried in request is Lora equipment E, then corresponding weights are X5.Wherein, X1, X2, X3, X4, X5 is positive value, and weight is bigger, indicates that its priority is higher.If taken in the received relaying application request of the first Lora equipment The Lora device identification of band is not any in Lora equipment A, Lora equipment B, Lora equipment C, Lora equipment D, Lora equipment E A, then corresponding weights are defaulted as 0.
For example, group identification and the corresponding relationship of corresponding weights for the group that Lora equipment is added can be with Referring to table 2.
Table 2
The group identification for the group that Lora equipment is added Weights
Group identification A Y1
Group identification B Y2
Group identification C Y3
Group identification D Y4
Group identification E Y5
As shown in table 2, the corresponding weights of group identification for the group that different Lora equipment is added can be identical, It can also be different.If the group identification for the group that the first Lora equipment is currently joined into is group identification A, the first Lora equipment is gone through The group identification for the group that history is added is respectively group identification B, group identification C, group identification D, group identification E.The then power of Y1 Value will be big than any one in Y2, Y3, Y4, Y5.For the corresponding priority power of group identification for the group that history is added Value, the first Lora equipment can according to the communications records of the group that history is added, the time duration that group is added, group is added Time point integrates the corresponding weights of group identification for the group that determining history is added.The group for the group that history is added The communications records for identifying the group of corresponding weights and history addition, the time duration that group is added are positively correlated.Generally For, time point of the group that time duration is longer, history is added for the group that history is added and current time is closer, history adds The communications records of the group entered are more, then the corresponding weights of group identification for the group that the history is added are bigger.Wherein, Y1, Y2, Y3, Y4, Y5 are positive value, and weight is bigger, indicate that its priority is higher.If the first received relaying of Lora equipment The group identification for the group that the Lora equipment carried in application request is added is not group identification A, group identification B, group identification C, any of group identification D, group identification E, then corresponding weights are defaulted as 0.
For example, the identity of Lora equipment may refer to table 3 with the corresponding relationship of corresponding weights.
Table 3
The identity of Lora equipment Weights
Lora identity A Z1
Lora identity B Z2
Lora identity C Z3
Lora identity D Z4
Lora identity E Z5
As shown in table 3, its corresponding weights of the identity of different Lora equipment can be identical, can also not Together, the priority of the identity of Lora equipment can be set in advance and is stored in the memory of the first Lora equipment. For example, the corresponding priority of Lora identity A is Z1, the corresponding priority of Lora identity B is Z2, Lora identity The corresponding priority of C is Z3, and the corresponding priority of Lora identity D is Z4, and the corresponding priority of Lora identity E is Z5.Wherein, Z1, Z2, Z3, Z4, Z5 are positive value, and weight is bigger, indicate that its priority is higher.If the first Lora equipment connects The identity of Lora equipment carried in the relaying application request of receipts be not Lora identity A, Lora identity B, Any of Lora identity C, Lora identity D, Lora identity E, then corresponding weights are defaulted as 0。
For example, the communication frequency of Lora equipment and the first Lora equipment and the corresponding relationship of corresponding weights It may refer to table 4.
Table 4
Lora device identification With the communication frequency of the first Lora equipment Weights
Lora equipment A F1 W1
Lora equipment B F2 W2
Lora equipment C F3 W3
Lora equipment D F4 W4
Lora equipment E F5 W5
As shown in table 4, Lora equipment A and the communication frequency of the first Lora equipment are F1, and corresponding weights are W1, Lora equipment B and the communication frequency of the first Lora equipment are F2, and corresponding weights are W2, Lora equipment C and the The communication frequency of one Lora equipment is F3, and corresponding weights are W3, the communication of Lora equipment D and the first Lora equipment Frequency is F4, and corresponding weights are W4, and the communication frequency of Lora equipment E and the first Lora equipment is F5, correspondence Weights be W5.Different Lora equipment weights corresponding with the communication frequency of the first Lora equipment can phase Together, it can also be different.Wherein, communication frequency is higher, and corresponding weights are higher.W1, W2, W3, W4, W5 are positive value, Its weight is bigger, indicates that its priority is higher.If the Lora carried in the received relaying application request of the first Lora equipment is set Standby mark is not any of Lora equipment A, Lora equipment B, Lora equipment C, Lora equipment D, Lora equipment E, then corresponds to Lora equipment and the first Lora equipment communication frequency be 0, weights 0.
It should be noted that above-mentioned priority calculation formula P=a1*X+a2*Y+a2*Z+a4*W, is only to calculate Lora to set A kind of possible implementation of standby priority, can also have other priority calculation formula, the embodiment of the present application does not limit It is fixed.
Optionally, the first relaying application request carries the group identification for the group that the 2nd Lora equipment is added, step 202 tool Body may include steps of:
The group identification for the group that the 2nd Lora equipment of (11) the first Lora device authentication is added adds with the first Lora equipment Whether the group identification of the group entered is consistent;
(12) if the group for the group that the group identification for the group that the 2nd Lora equipment is added and the first Lora equipment are added Mark is consistent, then the first Lora equipment determines that the priority of the 2nd Lora equipment is greater than pre-set priority threshold value.
In the embodiment of the present application, when the first relaying application request carries the group identification for the group that the 2nd Lora equipment is added When, the first Lora equipment can be according to the group identification for the group that the 2nd Lora equipment is added and the group of the first Lora equipment addition Whether the group identification of group unanimously determines whether the priority of the 2nd Lora equipment is greater than pre-set priority threshold value.Due to group It is added in advance, priority judgment mode is simple and effective, only allows the priority of the Lora equipment in group excellent greater than presetting First grade threshold value, that is, the Lora equipment in group is only allowed to carry out relay transmission, the Lora equipment in group is in relay transmission With priority, to improve the reliability of the data relay transmission of the Lora equipment in group.
Optionally, before executing step 201, following steps can also be performed:
First Lora equipment and the 2nd Lora equipment carry out Lora Mesh networking, and the first Lora equipment is set with the 2nd Lora It is standby that same group is added.
During the application is implemented, the first Lora equipment can carry out Lora Mesh networking, Mesh networking with multiple Lora equipment Interior equipment can carry out multi-hop transmission in Mesh networking.For example, referring to Fig. 3, Fig. 3 is that the embodiment of the present application discloses A kind of group's relay transmission schematic diagram.As shown in figure 3, Lora equipment A, Lora equipment B, Lora equipment C is to carry out Lora The equipment of Mesh networking joined same group, and generate group identification, Lora equipment A, Lora equipment B, Lora equipment C preserves group identification, and knows mutual device identification.Lora equipment A, Lora equipment B, Lora equipment C at For good friend, when Lora equipment A, Lora equipment B, Lora equipment C can be arranged relay function with automatic or manual and be directed to group personnel It is preferential to use.It is asked if subsequent Lora equipment A and Lora equipment D initiates relaying to Lora equipment B and Lora equipment C simultaneously When asking, the group identification for the group for carrying addition in the relaying application request that Lora equipment A is sent is set with Lora equipment B and Lora The group identification for the group that standby C is added is identical, and the group of the group of addition is carried in the relaying application request that Lora equipment D is sent Identify, then Lora equipment B and Lora equipment C permission different from the group identification of group that Lora equipment B and Lora equipment C is added Lora equipment A carries out relay transmission.The application, which can permit the Lora equipment that same group is added, to be had the function of preferentially relaying, It can guarantee that the Lora equipment in same group can preferably carry out relay transmission.
Optionally, the first relaying application request carries the device identification of the 2nd Lora equipment, and step 202 can specifically include Following steps:
Whether the device identification of the 2nd Lora equipment of (21) the first Lora device authentication is higher priority devices logo collection In one;
(22) if the device identification of the 2nd Lora equipment is one in higher priority devices logo collection, it is determined that second The priority of Lora equipment is greater than pre-set priority threshold value.
In the embodiment of the present application, higher priority devices identification sets can be stored in advance in the memory of the first Lora equipment It closes, higher priority devices logo collection may include at least one Lora device identification.First Lora equipment can be according to history Communications records determine higher priority devices logo collection, can also addition is new manually in the higher priority devices logo collection Lora device identification.When the first relaying application request carries the device identification of the 2nd Lora equipment, the first Lora equipment can be with It is whether one in higher priority devices logo collection determines that the 2nd Lora is set according to the device identification of the 2nd Lora equipment Whether standby priority is greater than pre-set priority threshold value.Since higher priority devices logo collection is pre-determined, priority Judgment mode is simple and effective, and the priority of the Lora equipment in higher priority devices logo collection is only allowed to be greater than pre-set priority Threshold value, that is, the Lora equipment in higher priority devices logo collection is only allowed to carry out relay transmission, higher priority devices mark Lora equipment in set has priority in relay transmission, to improve the Lora in higher priority devices logo collection The reliability of the data relay transmission of equipment.
203, if the priority of the 2nd Lora equipment is greater than pre-set priority threshold value, and during the first Lora equipment is not at After transmission state, the 2nd Lora equipment is allowed to carry out relay transmission by the first Lora equipment.
In the embodiment of the present application, in the same period, a Lora equipment can only be as a Lora equipment as relaying Node, the relay node that multiple Lora equipment can simultaneously as a Lora equipment.For example, Lora equipment A and Lora equipment B Relaying application request all is initiated to Lora equipment C, Lora equipment C can be selected according to the priority of ora equipment A and Lora equipment B It selects a Lora equipment and provides relay transmission service for it.If the first Lora equipment is in relay transmission state, first Lora equipment can not continue as other Lora equipment and provide relay transmission service.
Optionally, after executing step 203, following steps can also be performed:
(31) the first Lora equipment receive the data packet that the 2nd Lora equipment is sent, and data packet carries the 2nd Lora equipment The group identification of the group of addition;
(32) group identification and the first Lora equipment for the group being added in the 2nd Lora equipment of the first Lora device authentication Under the group identification unanimous circumstances of the group of addition, next Lora node is forwarded the packet to.
In the embodiment of the present application, after the first Lora equipment allows the 2nd Lora equipment to carry out relay transmission, the 2nd Lora The data packet that equipment is sent to the first Lora equipment needs to carry the group identification of the group of the second equipment addition, is convenient for first Lora equipment identifies that the data packet is the data packet that the Lora equipment in group is sent, and can send data packets to next Lora Node.If without carrying group identification, or carrying in the data packet that the Lora equipment that the 2nd Lora equipment receives is sent The group identification of group that is added of group identification and the 2nd Lora equipment it is inconsistent, then the data packet is abandoned, not into Row relay transmission.Optionally, the subsequent data packet that can also forbid receiving Lora equipment transmission of the 2nd Lora equipment, avoid by Lora equipment interference.
It, can be when other Lora equipment be to the first Lora equipment application relay forwarding, to other in the embodiment of the present application The priority of Lora equipment is judged, only when the priority of other Lora equipment is greater than certain priority threshold value, allows it He passes through the first Lora equipment progress relay transmission at Lora equipment.Prevent the lower Lora equipment of priority from setting by the first Lora It is standby to carry out relay transmission, so as to promote the safety of Lora equipment relay transmission.
Referring to Fig. 4, Fig. 4 is the flow diagram of another kind relay transmission method disclosed in the embodiment of the present application, Fig. 4 is It is advanced optimized on the basis of Fig. 2.As shown in figure 4, the relay transmission method includes the following steps.
401, the first Lora equipment receives the first relaying application request that the 2nd Lora equipment is sent, and the first Lora is set Standby the second relaying application request for receiving the 3rd Lora equipment and sending.
402, the first Lora equipment determines that the priority of the 2nd Lora equipment, the first Lora equipment determine the third The priority of Lora equipment.
403, if the priority of the 2nd Lora equipment is greater than pre-set priority threshold value, the priority of the 3rd Lora equipment Less than the priority of the 2nd Lora equipment, and the first Lora equipment is not at relay transmission state, allows the 2nd Lora Equipment carries out relay transmission by the first Lora equipment.
In the embodiment of the present application, if the first Lora equipment receives the 2nd Lora equipment and third in the same period The relaying application request that Lora equipment is sent respectively, then the first Lora equipment can compare the 2nd Lora equipment and the 3rd Lora equipment Priority, only allow that priority is higher in the 2nd Lora equipment and the 3rd Lora equipment and is greater than pre-set priority threshold value Lora equipment carries out relay transmission by the first Lora equipment.Wherein, pre-set priority threshold value can be set in advance.When having When two Lora equipment initiate relaying application simultaneously, pre-set priority threshold value can be set to 0, that is, can permit the 2nd Lora The higher Lora equipment of priority carries out relay transmission by the first Lora equipment in equipment and the 3rd Lora equipment.
404, if the priority of the 2nd Lora equipment is greater than pre-set priority threshold value, the priority of the 3rd Lora equipment is greater than The priority of 2nd Lora equipment allows the 3rd Lora equipment to carry out relay transmission by the first Lora equipment.
In the embodiment of the present application, when initiating relaying application simultaneously there are two Lora equipment, it can permit the 2nd Lora and set The higher Lora equipment of priority carries out relay transmission by the first Lora equipment in standby and the 3rd Lora equipment.Prevent priority Lower Lora equipment carries out relay transmission by the first Lora equipment, so as to promote the safety of Lora equipment relay transmission Property.
It is above-mentioned that mainly the scheme of the embodiment of the present application is described from the angle of method side implementation procedure.It is understood that , in order to realize the above functions, it comprises execute the corresponding hardware configuration of each function and/or software mould for mobile terminal Block.Those skilled in the art should be readily appreciated that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, the present invention can be realized with the combining form of hardware or hardware and computer software.Some function actually with Hardware or computer software drive the mode of hardware to execute, the specific application and design constraint item depending on technical solution Part.Professional technician can specifically realize described function to each using distinct methods, but this reality Now it should not be considered as beyond the scope of the present invention.
The embodiment of the present application can carry out the division of functional unit according to above method example to mobile terminal, for example, can With each functional unit of each function division of correspondence, two or more functions can also be integrated in a processing unit In.Above-mentioned integrated unit both can take the form of hardware realization, can also realize in the form of software functional units.It needs It is noted that be schematical, only a kind of logical function partition to the division of unit in the embodiment of the present application, it is practical real It is current that there may be another division manner.
Referring to Fig. 5, Fig. 5 is a kind of structural schematic diagram of relay transmission device disclosed in the embodiment of the present application.Such as Fig. 5 institute Show, relay transmission device is applied to long range Lora network, and Lora network includes the first Lora equipment and the 2nd Lora equipment, is somebody's turn to do Relay transmission device 500 includes communication unit 501, determination unit 502 and processing unit 503, in which:
Communication unit 501, for receiving the first relaying application request of the 2nd Lora equipment transmission;
Determination unit 502, for determining the priority of the 2nd Lora equipment;
Processing unit 503 is greater than pre-set priority threshold value, and the first Lora for the priority in the 2nd Lora equipment In the case that equipment is not at relay transmission state, the 2nd Lora equipment is allowed to carry out relay transmission by the first Lora equipment.
Optionally, the first relaying application request carries the group identification for the group that the 2nd Lora equipment is added, determination unit 502 determine the priority of the 2nd Lora equipment, specifically: the group identification and first for the group that the 2nd Lora equipment of verifying is added Whether the group identification for the group that Lora equipment is added is consistent;If the group identification and first for the group that the 2nd Lora equipment is added The group identification for the group that Lora equipment is added is consistent, it is determined that the priority of the 2nd Lora equipment is greater than pre-set priority threshold Value.
Optionally, the first relaying application request carries the device identification of the 2nd Lora equipment, and determination unit 502 determines second The priority of Lora equipment, specifically: whether the device identification of the 2nd Lora equipment of verifying is higher priority devices logo collection In one;If the device identification of the 2nd Lora equipment is one in higher priority devices logo collection, it is determined that second The priority of Lora equipment is greater than pre-set priority threshold value.
Optionally, communication unit 501 are also used to allow the 2nd Lora equipment to set by the first Lora in processing unit 503 Before standby progress relay transmission, receives the second relaying application that the 3rd Lora equipment is sent and request;
Determination unit 502 is also used to determine the priority of the 3rd Lora equipment;
Processing unit 503 is also used to the feelings of priority in the 3rd Lora equipment less than the priority of the 2nd Lora equipment Under condition, the 2nd Lora equipment is allowed to carry out relay transmission by the first Lora equipment.
Processing unit 503 is also used to be greater than the feelings of the priority of the 2nd Lora equipment in the priority of the 3rd Lora equipment Under condition, the 3rd Lora equipment is allowed to carry out relay transmission by the first Lora equipment.
Optionally, communication unit 501 are also used to allow the 2nd Lora equipment to set by the first Lora in processing unit 503 After standby progress relay transmission, the data packet that the 2nd Lora equipment is sent is received, data packet carries the addition of the 2nd Lora equipment Group group identification;
Communication unit 501, the group identification for the group for being also used to be added in the 2nd Lora equipment of the first Lora device authentication Under the group identification unanimous circumstances for the group being added with the first Lora equipment, next Lora node is forwarded the packet to.
Optionally, which can also include group net unit 504.
Group net unit 504, for carrying out Lora Mesh networking, the first Lora equipment and second with the 2nd Lora equipment Same group is added in Lora equipment.
Implement relay transmission device shown in fig. 5, can turn in other Lora equipment to the first Lora equipment application relaying When hair, the priority of other Lora equipment is judged, is only greater than certain priority threshold in the priority of other Lora equipment When value, other Lora equipment is allowed to carry out relay transmission by the first Lora equipment.Prevent the lower Lora equipment of priority logical It crosses the first Lora equipment and carries out relay transmission, so as to promote the safety of Lora equipment relay transmission.
Referring to Fig. 6, Fig. 6 is a kind of structural schematic diagram of mobile terminal disclosed in the embodiment of the present application.As shown in fig. 6, The mobile terminal 600 includes processor 601 and memory 602, wherein mobile terminal 600 can also include bus 603, processing Device 601 and memory 602 can be connected with each other by bus 603, and bus 603 can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, abbreviation PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, abbreviation EISA) bus etc..It is total that bus 603 can be divided into address bus, data Line, control bus etc..Only to be indicated with a thick line in Fig. 6, it is not intended that an only bus or a type convenient for indicating The bus of type.Wherein, mobile terminal 600 can also include input-output equipment 604, and input-output equipment 604 may include showing Display screen, such as liquid crystal display.Memory 602 is used to store one or more programs comprising instruction;Processor 601 is for adjusting With the above-mentioned Fig. 2 of the instruction execution method and step some or all of into Fig. 4 of storage in the memory 602.
Implement mobile terminal shown in fig. 6, can when other Lora equipment are to the first Lora equipment application relay forwarding, The priority of other Lora equipment is judged, only when the priority of other Lora equipment is greater than certain priority threshold value, Other Lora equipment are allowed to carry out relay transmission by the first Lora equipment.Prevent the lower Lora equipment of priority by first Lora equipment carries out relay transmission, so as to promote the safety of Lora equipment relay transmission.
The embodiment of the present application also provides a kind of computer storage medium, wherein computer storage medium storage is for electricity The computer program of subdata exchange, it is as any in recorded in above method embodiment which execute computer A kind of some or all of relay transmission method step.
The embodiment of the present application also provides a kind of computer program product, which includes storing computer The non-transient computer readable storage medium of program, the computer program are operable to execute computer as the above method is real Apply some or all of any relay transmission method recorded in example step.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way It realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of the unit, it is only a kind of Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit, It can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer-readable access to memory.Based on this understanding, technical solution of the present invention substantially or Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products Reveal and, which is stored in a memory, including some instructions are used so that a computer equipment (can be personal computer, server or network equipment etc.) executes all or part of each embodiment the method for the present invention Step.And memory above-mentioned includes: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory The various media that can store program code such as (RAM, Random Access Memory), mobile hard disk, magnetic or disk.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can store in a computer-readable memory, memory May include: flash disk, read-only memory (English: Read-Only Memory, referred to as: ROM), random access device (English: Random Access Memory, referred to as: RAM), disk or CD etc..
The embodiment of the present application is described in detail above, specific case used herein to the principle of the present invention and Embodiment is expounded, and the above description of the embodiment is only used to help understand the method for the present invention and its core ideas; At the same time, for those skilled in the art can in specific embodiments and applications according to the thought of the present invention There is change place, in conclusion the contents of this specification are not to be construed as limiting the invention.

Claims (10)

1. a kind of relay transmission method, which is characterized in that the method is applied to long range Lora network, the Lora network packet Include the first Lora equipment and the 2nd Lora equipment, which comprises
The first Lora equipment receives the first relaying application request that the 2nd Lora equipment is sent;
The first Lora equipment determines the priority of the 2nd Lora equipment;
If the priority of the 2nd Lora equipment is greater than pre-set priority threshold value, and during the first Lora equipment is not at After transmission state, the 2nd Lora equipment is allowed to carry out relay transmission by the first Lora equipment.
2. the method according to claim 1, wherein the first relaying application request carries the 2nd Lora The group identification for the group that equipment is added, the first Lora equipment determine the priority of the 2nd Lora equipment, comprising:
The group identification for the group that 2nd Lora equipment described in the first Lora device authentication is added is set with the first Lora Whether the group identification of the standby group being added is consistent;
If the group for the group that the group identification for the group that the 2nd Lora equipment is added and the first Lora equipment are added Mark is consistent, it is determined that the priority of the 2nd Lora equipment is greater than the pre-set priority threshold value.
3. the method according to claim 1, wherein the first relaying application request carries the 2nd Lora The device identification of equipment, the first Lora equipment determine the priority of the 2nd Lora equipment, comprising:
Whether the device identification of the 2nd Lora equipment described in the first Lora device authentication is higher priority devices logo collection In one;
If the device identification of the 2nd Lora equipment is one in higher priority devices logo collection, it is determined that described second The priority of Lora equipment is greater than the pre-set priority threshold value.
4. described in any item methods according to claim 1~3, which is characterized in that the Lora network further includes the 3rd Lora Equipment, before permission the 2nd Lora equipment carries out relay transmission by the first Lora equipment, the method is also Include:
The first Lora equipment receives the second relaying application request that the 3rd Lora equipment is sent;
The first Lora equipment determines the priority of the 3rd Lora equipment;
If the priority of the 3rd Lora equipment is less than the priority of the 2nd Lora equipment, executing described allows described the The step of two Lora equipment carry out relay transmission by the first Lora equipment.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
If the priority of the 3rd Lora equipment is greater than the priority of the 2nd Lora equipment, the 3rd Lora is allowed to set It is standby that relay transmission is carried out by the first Lora equipment.
6. according to the method described in claim 2, it is characterized in that, described allow the 2nd Lora equipment to pass through described first After Lora equipment carries out relay transmission, the method also includes:
The first Lora equipment receives the data packet that the 2nd Lora equipment is sent, and the data packet carries described second The group identification of the group of the addition of Lora equipment;
The group identification and the first Lora for the group that the 2nd Lora equipment described in the first Lora device authentication is added Under the group identification unanimous circumstances for the group that equipment is added, the data packet is forwarded to next Lora node.
7. according to the method described in claim 2, it is characterized in that, the first Lora equipment receives the 2nd Lora equipment Before the first relaying application request sent, the method also includes:
The first Lora equipment and the 2nd Lora equipment carry out Lora Mesh networking, the first Lora equipment and institute It states the 2nd Lora equipment and same group is added.
8. a kind of relay transmission device, which is characterized in that the relay transmission device is applied to long range Lora network, described Lora network includes the first Lora equipment and the 2nd Lora equipment, and the relay transmission device includes:
Communication unit, the first relaying application request sent for receiving the 2nd Lora equipment;
Determination unit, for determining the priority of the 2nd Lora equipment;
Processing unit is greater than pre-set priority threshold value, and described first for the priority in the 2nd Lora equipment In the case that Lora equipment is not at relay transmission state, allow the 2nd Lora equipment by the first Lora equipment into Row relay transmission.
9. a kind of mobile terminal, which is characterized in that including processor and memory, the memory is for storing one or more A program, one or more of programs are configured to be executed by the processor, and described program includes for executing such as right It is required that the described in any item methods of 1-7.
10. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium is for storing electron number According to the computer program of exchange, wherein the computer program executes computer as claim 1-7 is described in any item Method.
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 true CN110012517A (en) 2019-07-12
CN110012517B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110446206A (en) * 2019-08-22 2019-11-12 北京元安物联技术有限公司 Radio Network System and information transferring method
CN111050356A (en) * 2019-12-11 2020-04-21 浙江大华技术股份有限公司 Data transmission processing method and device, storage medium and electronic device
CN111132260A (en) * 2019-11-27 2020-05-08 江苏三希科技股份有限公司 Lora communication method and system for multi-route ad hoc network
CN113507703A (en) * 2021-07-05 2021-10-15 中国人民解放军国防科技大学 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 (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103262457A (en) * 2010-12-17 2013-08-21 思科技术公司 Repeater nodes in shared media networks
US20140169152A1 (en) * 2012-12-17 2014-06-19 Itron, Inc. Intelligent Network Operation
US20140220884A1 (en) * 2013-02-06 2014-08-07 Hcl Technologies Limited Information relay mechanism using proximity communication
CN105392145A (en) * 2015-12-07 2016-03-09 桂林电子科技大学 Spectral efficiency and energy efficiency balanced full-duplex recognition relay communication method
CN106162803A (en) * 2015-04-02 2016-11-23 中兴通讯股份有限公司 A kind of relaying UE connection control method and device
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103262457A (en) * 2010-12-17 2013-08-21 思科技术公司 Repeater nodes in shared media networks
US20140169152A1 (en) * 2012-12-17 2014-06-19 Itron, Inc. Intelligent Network Operation
US20140220884A1 (en) * 2013-02-06 2014-08-07 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
CN105392145A (en) * 2015-12-07 2016-03-09 桂林电子科技大学 Spectral efficiency and energy efficiency balanced full-duplex recognition relay communication method
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

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110446206A (en) * 2019-08-22 2019-11-12 北京元安物联技术有限公司 Radio Network System and information transferring method
CN111132260A (en) * 2019-11-27 2020-05-08 江苏三希科技股份有限公司 Lora communication method and system for multi-route ad hoc network
CN111132260B (en) * 2019-11-27 2022-02-18 江苏三希科技股份有限公司 Lora communication method and system for multi-route ad hoc network
CN111050356A (en) * 2019-12-11 2020-04-21 浙江大华技术股份有限公司 Data transmission processing method and device, storage medium and electronic device
CN111050356B (en) * 2019-12-11 2023-08-01 浙江大华技术股份有限公司 Data transmission processing method and device, storage medium and electronic device
CN113507703A (en) * 2021-07-05 2021-10-15 中国人民解放军国防科技大学 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

Also Published As

Publication number Publication date
CN110012517B (en) 2021-03-12

Similar Documents

Publication Publication Date Title
CN110012517A (en) Relay transmission method, device, mobile terminal and storage medium
EP3614786B1 (en) Data transmission method and apparatus
CN109618373A (en) Link choosing method and relevant apparatus
EP2484173B1 (en) Wlan peer-to-peer group owner negotiation
CN109640310A (en) Data transfer control method and Related product
CN107820291A (en) Network section control method and relevant device
CN109889499A (en) File transmitting method and relevant apparatus
CN109560899B (en) Method and equipment for repeated transmission
CN110139376B (en) Carrier set determination method and device, storage medium and electronic device
CN107277878B (en) Method for switching network, device and mobile terminal
CN109040213A (en) Document down loading method and Related product
CN109526020A (en) Data transmission method and Related product
WO2020114048A1 (en) Data transmission method and related apparatus
CN109804691A (en) A kind of data transmission method and device, computer storage medium
CN107222937A (en) A kind of data transmission method, device and terminal
CN104869621B (en) A kind of Network Recognition method and apparatus
CN110299930A (en) Antenna switching method and relevant device
CN108811184A (en) Handle the device and method of dual link
CN107708141A (en) A kind of scan method of wireless network, mobile terminal and storage medium
CN109644329A (en) The method and apparatus for transmitting data
CN104509133A (en) Method, base station and user terminal of transmitting signal in device-to-device approach service
CN107360615A (en) Terminal device interconnected method and device
CN105357671A (en) System and method for connecting wireless access points with same SSID and different passwords
CN107645756A (en) Network node add-on system and things-internet gateway
CN110087225A (en) Message treatment method and relevant apparatus

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