CN108900433A - A kind of method, terminal and server for transmitting lora message - Google Patents
A kind of method, terminal and server for transmitting lora message Download PDFInfo
- Publication number
- CN108900433A CN108900433A CN201810516033.XA CN201810516033A CN108900433A CN 108900433 A CN108900433 A CN 108900433A CN 201810516033 A CN201810516033 A CN 201810516033A CN 108900433 A CN108900433 A CN 108900433A
- Authority
- CN
- China
- Prior art keywords
- lora
- message
- fragment
- terminal
- sent
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/90—Buffering arrangements
- H04L49/9057—Arrangements for supporting packet reassembly or resequencing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/0001—Systems modifying transmission characteristics according to link quality, e.g. power backoff
- H04L1/0002—Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission rate
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/0001—Systems modifying transmission characteristics according to link quality, e.g. power backoff
- H04L1/0006—Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/0078—Avoidance of errors by organising the transmitted data in a format specifically designed to deal with errors, e.g. location
- H04L1/0083—Formatting with frames or packets; Protocol or part of protocol for error control
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Quality & Reliability (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the present invention provides a kind of method, terminal and server for transmitting lora message, including:Receive the downlink service data message that application server is sent to first terminal;When the maximum message size that the first present rate that the length of the downlink service data message is more than the first terminal is supported, is sent to the first terminal and request the lora message fragment for carrying out lora sliced transmission to the downlink service data message;The first terminal is received to be requested to determine that the lora message fragment sent when supporting lora message fragment is responded according to the lora message fragment;Lora fragment is carried out to the downlink service data message, when sending lora fragment message every time, the size of the lora fragment message sent every time is determined according to the message transmitting spped rate, each lora fragment message is sent to the first terminal, the downlink service data message after being recombinated in order to the first terminal according to all lora fragment messages received.It can support the transmission compared with long message.
Description
Technical field
The present invention relates to data communication field, especially a kind of method, terminal and server for transmitting lora message.
Background technique
Lora (long range) is one kind of low-power consumption wide area network (LPWAN), and Lora network is disposed mainly by end
End, gateway, Loraserver server and cloud collectively form, it can be achieved that using data transmitted in both directions.Yun He
The communication mode of Loraserver server is capable of supporting several protocols, including MQTT (Message Queuing Telemetry
Transport, message queue telemetering transmission), HTTP (HyperText Transfer Protocol hypertext transfer protocol)
Deng, it is required according to the difference of business, it is also different using the length of data, such as Transmission Control Protocol, it is dealt into from application server
The message length maximum possible of LoraServer server is 1500 bytes.And Lora communication is most extensively being covered using minimum speed limit
Once most multipotency carries 250 bits when the speed grade 0 of lid.Using lora encoded bandwidth 125Khz, in flank speed class 5
When, it can once carry 11000 bits.
It is also gradually multiple to the business demand of uplink and downlink as Lora technology is widely used in various application environments
It is miscellaneous, apart from remote Lora terminal since environmental restrictions have to be transmitted using the low rate of DR0, needed for a business packet
When the byte number wanted is more than 250 bits, if not only head needs use to fall a large amount of byte using existing IP fragmentation technology
Number, and be simple cheap single-chip microcontroller since lora terminal is generally, the fragment of existing IP agreement complexity cannot be supported well
Technology.
Current existing scheme is application server end using existing agreement (such as IP agreement) progress fragment, is needed simultaneously
It wants terminal also to support the agreement, and fragment and recombination can be carried out to the message for being more than length.But due to this method nor lora
Consensus standard cannot be compatible between different business so the realization of terminal is different, need each application server end according to
Lora ability carries out distinctive fragment size design for Lora transmission, or even needs to consider used by current Lora terminal not
Same rate is changed fragment size, this not only increases the complexity at application server end, also increases Lora and industry
The coupling of business code.Obviously it is less applicable in.
Summary of the invention
In order to solve the above-mentioned technical problem, the embodiment of the present invention adopts the following technical scheme that:
A method of transmission lora message, including:
Receive the downlink service data message that application server is sent to first terminal;
When receiving the uplink message that the first terminal is sent, determined according to the terminal iidentification in the uplink message
Downlink service data message corresponding with the terminal iidentification;
When the first present rate that the length of the downlink service data message is more than the first terminal is supported most
When big message length, the lora of lora sliced transmission will be carried out to the downlink service data message by sending to the first terminal
Message fragment request;
It receives the first terminal and requests determination to send when supporting lora message fragment according to the lora message fragment
The response of lora message fragment;
Lora fragment is carried out to the downlink service data message, when sending lora fragment message every time, determines message
Transmission rate determines the size of the lora fragment message sent every time according to the message transmitting spped rate, by each lora fragment
Message is sent to the first terminal, after being recombinated in order to the first terminal according to all lora fragment messages received
Downlink service data message.
It optionally, include segmental identification in the lora message fragment request, it is described to receive the first terminal according to institute
It states the request of lora message fragment and determines that the step of supporting the lora message fragment sent when lora message fragment response specifically includes:
Receive what the first terminal was sent when identifying the segmental identification according to lora message fragment request
The response of lora message fragment.
Optionally, when sending lora fragment message every time, message transmitting spped rate is determined, according to the message transmitting spped rate
The size for determining the lora fragment message sent every time, is sent to the first terminal for each lora fragment message, in order to
The first terminal recombinated according to all lora fragment messages received after downlink service data message the step of it is specific
Including:
When sending lora fragment message every time, the of the first terminal is obtained according to lora message fragment response
Two present rates determine the size of the lora fragment message sent every time according to second present rate, by each lora points
Piece message is sent to the first terminal, in order to which the first terminal is recombinated according to all lora fragment messages received
Downlink service data message afterwards.
Optionally, when sending lora fragment message every time, message transmitting spped rate is determined, according to the message transmitting spped rate
The size for determining the lora fragment message sent every time, is sent to the first terminal for each lora fragment message, in order to
The first terminal recombinated according to all lora fragment messages received after downlink service data message the step of it is specific
Including:
When sending lora fragment message every time, message transmitting spped rate is determined, determined according to the message transmitting spped rate every
The lora fragment message sent every time is arranged according to sequence from small to large in the size of the lora fragment message of secondary transmission
Termination flag position is arranged in the last one lora fragment message, is receiving lora fragment report according to the first terminal for serial number
Lora fragment message corresponding with first test serial number is sent to described first eventually by the first test serial number fed back when literary
End sends the lora fragment message comprising termination flag position to the first terminal, in order to which the first terminal is according to
Termination flag position stops the lower industry after the first test serial number of feedback is simultaneously recombinated according to all lora fragment messages received
Business data message.
It optionally, include the first length of the downlink service data message in the lora message fragment request, it is described
Each lora fragment message is sent to the first terminal, in order to which the first terminal is according to all lora fragments received
Message recombinated after downlink service data message the step of specifically include:
Each lora fragment message is sent to the first terminal, in order to which the first terminal is all according to what is received
Lora fragment message recombinated after downlink service data message after, according to the first length of the downlink service data message
Second length of the downlink service data message after recombination is verified.
The embodiment of the present invention further aspect is that provide it is a kind of transmit lora message method, be applied to lora terminal
In, including:
Receive the lora that the downlink service data message stored to it is carried out lora sliced transmission by lora network server
Message fragment request, lora message fragment request, which is the lora network server, to be sent to receiving application server
The downlink service data message of the lora terminal and when receiving the uplink message that the lora terminal is sent, and according to described
Terminal iidentification in uplink message determines downlink service data message corresponding with the terminal iidentification, when the downlink business number
It is issued after the maximum message size supported according to the length of message more than the first present rate of the lora terminal;
When requesting to determine support lora message fragment according to the lora message fragment, to the lora network server
Send the response of lora message fragment;
The lora fragment message that the lora network server is sent is received, the size of the lora fragment message is described
Lora network server starts after carrying out lora fragment to downlink service data message, when sending lora fragment message every time, root
It is determined according to message transmitting spped rate;
Downlink service data message after being recombinated according to all lora fragment messages received.
It optionally, include segmental identification in the lora message fragment request, it is described when according to the lora message fragment
When request determines support lora message fragment, it is specific that the step of lora message fragment responds is sent to the lora network server
Including:
When requesting to identify the segmental identification according to the lora message fragment, sent to the lora network server
The response of lora message fragment.
Optionally, the lora fragment for receiving the lora network server and sending, the lora fragment message it is big
Small is that the lora network server starts after carrying out lora fragment to downlink service data message, sends lora fragment report every time
Wen Shi, according to message transmitting spped rate determine the step of specifically include:
The lora fragment message that the lora network server is sent is received, the size of the lora fragment message is described
Lora network server starts after carrying out lora fragment to downlink service data message, when sending lora fragment message every time,
The second present rate of the lora terminal is obtained according to lora message fragment response, it is true according to second present rate
Fixed.
Optionally, described the step of receiving the lora fragment message that the lora network server is sent, specifically includes:
The lora fragment message that the lora network server is sent is received, is provided in the lora fragment message described
Lora network server is according to the serial number that sequence from small to large is that the lora fragment message sent every time is arranged, last
Termination flag position is provided in one lora fragment message;
All lora fragment messages that the basis receives recombinated after downlink service data message the step of it is specific
Including:
When receiving the lora fragment message comprising the termination flag position, obtained according to all lora fragment messages received
Downlink service data message after must recombinating.
Optionally, described the step of receiving the lora fragment message that the lora network server is sent, specifically includes:
Fed back when receiving the previous lora fragment message that the lora network server is sent the first test serial number to
The lora network server,
Receive the current lora fragment message corresponding with first test serial number that the lora network server is sent.
It optionally, include the first length of the downlink service data message in the lora message fragment request,
All lora fragment messages that the basis receives recombinated after downlink service data message the step of tool
Body includes:
After downlink service data message after being recombinated according to all lora fragment messages received, under described
First length of industry business data message verifies the second length of the downlink service data message after recombination.
The another further aspect of the embodiment of the present invention is, provides a kind of server for transmitting lora message, including:
First receiving module, the downlink service data message for being sent to first terminal for receiving application server;
Determining module, for when receiving the uplink message that the first terminal is sent, according in the uplink message
Terminal iidentification determine corresponding with terminal iidentification downlink service data message;
First sending module, first for the length when the downlink service data message more than the first terminal works as
When the maximum message size that preceding rate is supported, the downlink service data message will be carried out to first terminal transmission
The lora message fragment of lora sliced transmission is requested;
Second receiving module requests to determine support lora according to the lora message fragment for receiving the first terminal
The lora message fragment response sent when message fragment;
Fragment module is sending lora fragment report for carrying out lora fragment to the downlink service data message every time
Wen Shi determines message transmitting spped rate, and the size of the lora fragment message sent every time is determined according to the message transmitting spped rate;
Second sending module, for each lora fragment message to be sent to the first terminal, in order to described first
Terminal recombinated according to all lora fragment messages received after downlink service data message.
It optionally, include segmental identification in the lora message fragment request, second receiving module is specifically used for:
It receives the first terminal and requests determination to send when supporting lora message fragment according to the lora message fragment
The response of lora message fragment.
Optionally, the fragment module is specifically used for, and lora fragment is carried out to the downlink service data message, each
When sending lora fragment message, the second present rate of the first terminal, root are obtained according to lora message fragment response
The size of the lora fragment message sent every time is determined according to second present rate.
Optionally, the fragment module is specifically used for, and lora fragment is carried out to the downlink service data message, each
When sending lora fragment message, message transmitting spped rate is determined, lora points sent every time are determined according to the message transmitting spped rate
The size of piece message the serial number of the lora fragment message sent every time is arranged according to sequence from small to large, at last
Termination flag position is set in a lora fragment message,
Second sending module is specifically used for, the first report fed back according to the first terminal when receiving lora fragment message
Lora fragment message corresponding with first test serial number is sent to the first terminal, sent comprising terminating by literary serial number
The lora fragment message of flag bit gives the first terminal, in order to which the first terminal stops instead according to the termination flag position
Downlink service data message after presenting the first test serial number and being recombinated according to all lora fragment messages received.
It optionally, include the first length of the downlink service data message in the lora message fragment request,
Second sending module is specifically used for, and each lora fragment message is sent to the first terminal, in order to
The first terminal recombinated according to all lora fragment messages received after downlink service data message after, according to described
First length of downlink service data message verifies the second length of the downlink service data message after recombination.
Last aspect of the embodiment of the present invention is, provides a kind of terminal for transmitting lora message, including:
Third receiving module carries out the downlink service data message stored to it for receiving lora network server
The lora message fragment of lora sliced transmission is requested, and the lora message fragment request is that the lora network server is receiving
The downlink service data message of the lora terminal is sent to application server and receives the upper of the lora terminal transmission
When row message, and downlink service data report corresponding with the terminal iidentification is determined according to the terminal iidentification in the uplink message
Text, when the maximum message segment that the first present rate that the length of the downlink service data message is more than the lora terminal is supported
It is issued after length;
Sending module, for when request to determine according to the lora message fragment support lora message fragment when, to described
Lora network server sends the response of lora message fragment;
4th receiving module, the lora fragment message sent for receiving the lora network server, the lora points
The size of piece message is that the lora network server starts after carrying out lora fragment to downlink service data message, is sent every time
When lora fragment message, determined according to message transmitting spped rate;
Recombination module, for the downlink service data report after being recombinated according to all lora fragment messages received
Text.
It optionally, include segmental identification in the lora message fragment request, the sending module is specifically used for:
When requesting to identify the segmental identification according to the lora message fragment, sent to the lora network server
The response of lora message fragment.
Optionally, the 4th receiving module is specifically used for:
The lora fragment message that the lora network server is sent is received, the size of the lora fragment message is described
Lora network server starts after carrying out lora fragment to downlink service data message, when sending lora fragment message every time,
The second present rate of the lora terminal is obtained according to lora message fragment response, it is true according to second present rate
Fixed.
Optionally, the 4th receiving module is specifically used for:
The lora fragment message that the lora network server is sent is received, is provided in the lora fragment message described
Lora network server is according to the serial number that sequence from small to large is that the lora fragment message sent every time is arranged, last
Termination flag position is provided in one lora fragment message;
The recombination module is specifically used for:
When receiving the lora fragment message comprising the termination flag position, obtained according to all lora fragment messages received
Downlink service data message after must recombinating.
Optionally, the 4th receiving module is specifically used for:
Fed back when receiving the previous lora fragment message that the lora network server is sent the first test serial number to
The lora network server,
Receive the current lora fragment message corresponding with first test serial number that the lora network server is sent.
It optionally, include the first length of the downlink service data message in the lora message fragment request,
The terminal further includes:
Correction verification module, for according to the first length of the downlink service data message to the downlink service data after recombination
Second length of message is verified.
The beneficial effect of the embodiment of the present invention is:When the length of downlink business data message is more than the currently used speed of lora
When the message length that rate is supported, the transmission compared with long message can be supported.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be in embodiment or description of the prior art
Required attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some realities of the invention
Example is applied, it for those of ordinary skill in the art, without creative efforts, can also be according to these attached drawings
Obtain other attached drawings.
Fig. 1 is a kind of method flow diagram provided in an embodiment of the present invention;
Fig. 2 is a kind of method flow diagram provided in an embodiment of the present invention;
Fig. 3 is a kind of method flow diagram provided in an embodiment of the present invention;
Fig. 4 is a kind of method flow diagram provided in an embodiment of the present invention;
Fig. 5 is a kind of server architecture figure provided in an embodiment of the present invention;
Fig. 6 is a kind of terminal structure figure provided in an embodiment of the present invention;
Fig. 7 is a kind of terminal structure figure provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of method for transmitting lora message, as shown in Figure 1, including:
S101 receives the downlink service data message that application server is sent to first terminal;
S103, when receiving the uplink message that the first terminal is sent, according to the terminal mark in the uplink message
Know and determines downlink service data message corresponding with the terminal iidentification;
S105, when the first present rate that the length of the downlink service data message is more than the first terminal is supported
Maximum message size when, lora sliced transmission will be carried out to the downlink service data message by sending to the first terminal
The request of lora message fragment;
S107 receives hair when the first terminal requests to determine support lora message fragment according to the lora message fragment
The lora message fragment response sent;
S109 carries out lora fragment to the downlink service data message, when sending lora fragment message every time, determines
Message transmitting spped rate determines the size of the lora fragment message sent every time according to the message transmitting spped rate, by each lora
Fragment message is sent to the first terminal, in order to which the first terminal is weighed according to all lora fragment messages received
Downlink service data message after group.
It optionally, in one embodiment of this invention, include segmental identification, step in the lora message fragment request
S107 is specifically included:
Receive what the first terminal was sent when identifying the segmental identification according to lora message fragment request
The response of lora message fragment.
Optionally, in one embodiment of this invention, step S109 is specifically included:
When sending lora fragment message every time, the of the first terminal is obtained according to lora message fragment response
Two present rates determine the size of the lora fragment message sent every time according to second present rate, by each lora points
Piece message is sent to the first terminal, in order to which the first terminal is recombinated according to all lora fragment messages received
Downlink service data message afterwards.
Optionally, in one embodiment of this invention, step S109 is specifically included:
When sending lora fragment message every time, message transmitting spped rate is determined, determined according to the message transmitting spped rate every
The lora fragment message sent every time is arranged according to sequence from small to large in the size of the lora fragment message of secondary transmission
Termination flag position is arranged in the last one lora fragment message, is receiving lora fragment report according to the first terminal for serial number
Lora fragment message corresponding with first test serial number is sent to described first eventually by the first test serial number fed back when literary
End sends the lora fragment message comprising termination flag position to the first terminal, in order to which the first terminal is according to
Termination flag position stops the lower industry after the first test serial number of feedback is simultaneously recombinated according to all lora fragment messages received
Business data message.
For example, the serial number 1 of the lora fragment message sent for the first time, the serial number of second of lora fragment message sent
It is 2, and so on, it include termination flag position in the last one lora fragment message until all lora fragment messages distribute,
And as an improvement, in a specific embodiment, first terminal is in the lora fragment message for receiving serial number 1, actively
Feed back a test serial number 2, the entity of transmission lora fragment message in this way can determine to issue according to this test serial number the
The serial number 2 of the current lora message of one terminal, if first terminal finds test serial number not when receiving lora fragment message
It is 2, then abandons the message, this ensure that the lora fragment message that terminal receives will not be out-of-order.
It optionally, in one embodiment of this invention, include the downlink business number in the lora message fragment request
It is described that each lora fragment message is sent to the first terminal in step S109 according to the first length of message, in order to institute
The step of stating the downlink service data message after first terminal is recombinated according to all lora fragment messages received is specifically wrapped
It includes:
Each lora fragment message is sent to the first terminal, in order to which the first terminal is all according to what is received
Lora fragment message recombinated after downlink service data message after, according to the first length of the downlink service data message
Second length of the downlink service data message after recombination is verified.
The beneficial effect of the embodiment of the present invention is:When the length of downlink business data message is more than the currently used speed of lora
When the message length that rate is supported, the transmission compared with long message can be supported.
The embodiment of the present invention further aspect is that provide it is a kind of transmit lora message method, be applied to lora terminal
In, as shown in Fig. 2, including:
S201 receives lora network server for the downlink service data message stored to it and carries out lora sliced transmission
The request of lora message fragment, the lora message fragment request are that the lora network server is receiving application server hair
When giving the downlink service data message of the lora terminal and receiving the uplink message that the lora terminal is sent, and according to
Terminal iidentification in the uplink message determines downlink service data message corresponding with the terminal iidentification, when the lower industry
It is issued after the maximum message size that the length of business data message is supported more than the first present rate of the lora terminal;
S203, when requesting to determine support lora message fragment according to the lora message fragment, to the lora network
Server sends the response of lora message fragment;
S205 receives the lora fragment message that the lora network server is sent, the size of the lora fragment message
It is that the lora network server starts after carrying out lora fragment to downlink service data message, sends lora fragment message every time
When, it is determined according to message transmitting spped rate;
S207, the downlink service data message after being recombinated according to all lora fragment messages received.
It optionally, in one embodiment of this invention, include segmental identification, step in the lora message fragment request
S203 is specifically included:
When requesting to identify the segmental identification according to the lora message fragment, sent to the lora network server
The response of lora message fragment.
Optionally, in one embodiment of this invention, step S205 is specifically included:
The lora fragment message that the lora network server is sent is received, the size of the lora fragment message is described
Lora network server starts after carrying out lora fragment to downlink service data message, when sending lora fragment message every time,
The second present rate of the lora terminal is obtained according to lora message fragment response, it is true according to second present rate
Fixed.
Optionally, in one embodiment of this invention, described to receive the lora network as shown in figure 3, in step S205
The step of lora fragment message that server is sent, specifically includes:
S2051 receives the lora fragment message that the lora network server is sent, is arranged in the lora fragment message
There is serial number of the lora network server according to sequence from small to large for the lora fragment message setting sent every time,
Termination flag position is provided in the last one lora fragment message;
Step S207 is specifically included:
S2071, when receiving the lora fragment message comprising the termination flag position, according to all lora fragments received
Message recombinated after downlink service data message.
Optionally, in one embodiment of this invention, described to receive the lora network as shown in figure 4, in step S205
The step of lora fragment message that server is sent, specifically includes:
S2053 feeds back the first message when receiving the previous lora fragment message that the lora network server is sent
Serial number gives the lora network server,
S2055 receives current lora corresponding with first test serial number points that the lora network server is sent
Piece message.
It optionally, in one embodiment of this invention, include the downlink business number in the lora message fragment request
According to the first length of message,
Step S207 is specifically included:
After downlink service data message after being recombinated according to all lora fragment messages received, under described
First length of industry business data message verifies the second length of the downlink service data message after recombination.
The beneficial effect of the embodiment of the present invention is:When the length of downlink business data message is more than the currently used speed of lora
When the message length that rate is supported, the transmission compared with long message can be supported.
The another further aspect of the embodiment of the present invention is, provides a kind of server for transmitting lora message, as shown in figure 5, packet
It includes:
First receiving module 301, the downlink service data message for being sent to first terminal for receiving application server;
Determining module 303, for when receiving the uplink message that the first terminal is sent, according to the uplink message
In terminal iidentification determine corresponding with terminal iidentification downlink service data message;
First sending module 305 is more than the of the first terminal for the length when the downlink service data message
When the maximum message size that one present rate is supported, to the first terminal send will to the downlink service data message into
The lora message fragment of row lora sliced transmission is requested;
Second receiving module 307 requests to determine support according to the lora message fragment for receiving the first terminal
The lora message fragment response sent when lora message fragment;
Fragment module 309 is sending lora fragment for carrying out lora fragment to the downlink service data message every time
When message, message transmitting spped rate is determined, the size of the lora fragment message sent every time is determined according to the message transmitting spped rate;
Second sending module 311, for each lora fragment message to be sent to the first terminal, in order to described
One terminal recombinated according to all lora fragment messages received after downlink service data message.
It optionally, in one embodiment of this invention, include segmental identification in lora message fragment request, described the
Two receiving modules 307 are specifically used for:
It receives the first terminal and requests determination to send when supporting lora message fragment according to the lora message fragment
The response of lora message fragment.
Optionally, in one embodiment of this invention, the fragment module 309 is specifically used for, to the downlink business number
Lora fragment is carried out according to message, when sending lora fragment message every time, according to lora message fragment response acquisition
Second present rate of first terminal determines the size of the lora fragment message sent every time according to second present rate.
Optionally, in one embodiment of this invention, the fragment module 309 is specifically used for, to the downlink business number
Lora fragment is carried out according to message, when sending lora fragment message every time, determines message transmitting spped rate, is sent according to the message
Rate determines the size of the lora fragment message sent every time, and the lora sent every time is arranged according to sequence from small to large
Termination flag position is arranged in the serial number of fragment message in the last one lora fragment message,
Second sending module 311 is specifically used for, fed back according to the first terminal when receiving lora fragment message
Lora fragment message corresponding with first test serial number is sent to the first terminal by one test serial number, and transmission includes
The lora fragment message of termination flag position gives the first terminal, in order to which the first terminal stops according to the termination flag position
Downlink service data message after only feeding back the first test serial number and being recombinated according to all lora fragment messages received.
It optionally, in one embodiment of this invention, include the downlink business number in the lora message fragment request
According to the first length of message,
Second sending module 311 is specifically used for, and each lora fragment message is sent to the first terminal, so as to
After downlink service data message after the first terminal is recombinated according to all lora fragment messages received, according to institute
The first length for stating downlink service data message verifies the second length of the downlink service data message after recombination.
The beneficial effect of the embodiment of the present invention is:When the length of downlink business data message is more than the currently used speed of lora
When the message length that rate is supported, the transmission compared with long message can be supported.
The another further aspect of the embodiment of the present invention is, a kind of terminal for transmitting lora message is provided, as shown in fig. 6, including:
Third receiving module 401, for receive lora network server by the downlink service data message that it is stored into
The lora message fragment of row lora sliced transmission is requested, and the lora message fragment request is that the lora network server is connecing
Application server is received to be sent to the downlink service data message of the lora terminal and receive what the lora terminal was sent
When uplink message, and downlink service data corresponding with the terminal iidentification is determined according to the terminal iidentification in the uplink message
Message, when the maximum report that the first present rate that the length of the downlink service data message is more than the lora terminal is supported
It is issued after literary length;
Sending module 403 is used for when requesting to determine support lora message fragment according to the lora message fragment, to institute
It states lora network server and sends the response of lora message fragment;
4th receiving module 405, the lora fragment message sent for receiving the lora network server, the lora
The size of fragment message is that the lora network server starts after carrying out lora fragment to downlink service data message, is sent out every time
When sending lora fragment message, determined according to message transmitting spped rate;
Recombination module 407, for the downlink service data after being recombinated according to all lora fragment messages received
Message.
It optionally, include segmental identification in the lora message fragment request, the sending module is specifically used for:
When requesting to identify the segmental identification according to the lora message fragment, sent to the lora network server
The response of lora message fragment.
Optionally, in one embodiment of this invention, the 4th receiving module 405 is specifically used for:
The lora fragment message that the lora network server is sent is received, the size of the lora fragment message is described
Lora network server starts after carrying out lora fragment to downlink service data message, when sending lora fragment message every time,
The second present rate of the lora terminal is obtained according to lora message fragment response, it is true according to second present rate
Fixed.
Optionally, in one embodiment of this invention, the 4th receiving module 405 is specifically used for:
The lora fragment message that the lora network server is sent is received, is provided in the lora fragment message described
Lora network server is according to the serial number that sequence from small to large is that the lora fragment message sent every time is arranged, last
Termination flag position is provided in one lora fragment message;
The recombination module 407 is specifically used for:
When receiving the lora fragment message comprising the termination flag position, obtained according to all lora fragment messages received
Downlink service data message after must recombinating.
Optionally, in one embodiment of this invention, the 4th receiving module 405 is specifically used for:
Fed back when receiving the previous lora fragment message that the lora network server is sent the first test serial number to
The lora network server,
Receive the current lora fragment message corresponding with first test serial number that the lora network server is sent.
Optionally, in one embodiment of this invention, as shown in fig. 7, comprising described in lora message fragment request
First length of downlink service data message,
The terminal further includes:
Correction verification module 409, for according to the first length of the downlink service data message to the downlink business after recombination
Second length of data message is verified.
The beneficial effect of the embodiment of the present invention is:When the length of downlink business data message is more than the currently used speed of lora
When the message length that rate is supported, the transmission compared with long message can be supported.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that:It still may be used
To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;
And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and
Range.
Claims (22)
1. a kind of method for transmitting lora message, which is characterized in that including:
Receive the downlink service data message that application server is sent to first terminal;
When receiving the uplink message that the first terminal is sent, according to the terminal iidentification in the uplink message is determining and institute
State the corresponding downlink service data message of terminal iidentification;
When the maximum report that the first present rate that the length of the downlink service data message is more than the first terminal is supported
When literary length, the lora message of lora sliced transmission will be carried out to the downlink service data message by sending to the first terminal
Fragment request;
The first terminal is received to be requested to determine the lora sent when supporting lora message fragment according to the lora message fragment
Message fragment response;
Lora fragment is carried out to the downlink service data message, when sending lora fragment message every time, determines that message is sent
Rate determines the size of the lora fragment message sent every time according to the message transmitting spped rate, by each lora fragment message
Be sent to the first terminal, after being recombinated in order to the first terminal according to all lora fragment messages received under
Industry business data message.
2. the method as described in claim 1, which is characterized in that include segmental identification, institute in the lora message fragment request
The lora for receiving and sending when the first terminal requests according to the lora message fragment and determines support lora message fragment is stated to report
The step of literary fragment responds specifically includes:
The first terminal is received to be reported when identifying the segmental identification according to the lora that lora message fragment request is sent
Literary fragment response.
3. the method as described in claim 1-2 is any, which is characterized in that when sending lora fragment message every time, determine report
Literary transmission rate determines the size of the lora fragment message sent every time according to the message transmitting spped rate, by each lora points
Piece message is sent to the first terminal, in order to which the first terminal is recombinated according to all lora fragment messages received
The step of rear downlink service data message, specifically includes:
When sending lora fragment message every time, the second of the first terminal is obtained according to lora message fragment response and is worked as
Preceding rate determines the size of the lora fragment message sent every time according to second present rate, by each lora fragment report
Text is sent to the first terminal, after being recombinated in order to the first terminal according to all lora fragment messages received
Downlink service data message.
4. the method as described in claim 1-2 is any, which is characterized in that when sending lora fragment message every time, determine report
Literary transmission rate determines the size of the lora fragment message sent every time according to the message transmitting spped rate, by each lora points
Piece message is sent to the first terminal, in order to which the first terminal is recombinated according to all lora fragment messages received
The step of rear downlink service data message, specifically includes:
When sending lora fragment message every time, message transmitting spped rate is determined, hair every time is determined according to the message transmitting spped rate
The sequence of the lora fragment message sent every time is arranged according to sequence from small to large for the size of the lora fragment message sent
Number, termination flag position is set in the last one lora fragment message, lora fragment message is being received according to the first terminal
When the first test serial number for feeding back, lora fragment message corresponding with first test serial number is sent to described first eventually
End sends the lora fragment message comprising termination flag position to the first terminal, in order to which the first terminal is according to
Termination flag position stops the lower industry after the first test serial number of feedback is simultaneously recombinated according to all lora fragment messages received
Business data message.
5. the method as described in claim 1, which is characterized in that include the downlink business in the lora message fragment request
First length of data message, it is described that each lora fragment message is sent to the first terminal, eventually in order to described first
The step of holding the downlink service data message after being recombinated according to all lora fragment messages received specifically includes:
Each lora fragment message is sent to the first terminal, in order to which the first terminal is according to all lora received
Fragment message recombinated after downlink service data message after, according to the first length counterweight of the downlink service data message
Second length of the downlink service data message after group is verified.
6. a kind of method for transmitting lora message, which is characterized in that it is applied in lora terminal, including:
Receive the lora message that the downlink service data message stored to it is carried out lora sliced transmission by lora network server
Fragment request, lora message fragment request be the lora network server receive application server be sent to it is described
The downlink service data message of lora terminal and when receiving the uplink message that the lora terminal is sent, and according to the uplink
Terminal iidentification in message determines downlink service data message corresponding with the terminal iidentification, when the downlink service data report
It is issued after the maximum message size that the length of text is supported more than the first present rate of the lora terminal;
When requesting to determine support lora message fragment according to the lora message fragment, sent to the lora network server
The response of lora message fragment;
The lora fragment message that the lora network server is sent is received, the size of the lora fragment message is the lora
Network server starts after carrying out lora fragment to downlink service data message, when sending lora fragment message every time, according to report
What literary transmission rate determined;
Downlink service data message after being recombinated according to all lora fragment messages received.
7. method as claimed in claim 6, which is characterized in that include segmental identification, institute in the lora message fragment request
It states when requesting to determine support lora message fragment according to the lora message fragment, is sent to the lora network server
The step of lora message fragment responds specifically includes:
When requesting to identify the segmental identification according to the lora message fragment, lora is sent to the lora network server
Message fragment response.
8. the method as described in claim 6-7 is any, which is characterized in that described to receive what the lora network server was sent
Lora fragment, the size of the lora fragment message are that the lora network server starts to carry out downlink service data message
After lora fragment, every time send lora fragment message when, according to message transmitting spped rate determine the step of specifically include:
The lora fragment message that the lora network server is sent is received, the size of the lora fragment message is the lora
Network server starts after carrying out lora fragment to downlink service data message, when sending lora fragment message every time, according to
The lora message fragment response obtains the second present rate of the lora terminal, is determined according to second present rate
's.
9. method as claimed in claim 6, which is characterized in that lora points for receiving the lora network server transmission
The step of piece message, specifically includes:
The lora fragment message that the lora network server is sent is received, is provided with the lora in the lora fragment message
Network server is according to the serial number that sequence from small to large is that the lora fragment message sent every time is arranged, at the last one
Termination flag position is provided in lora fragment message;
All lora fragment messages that the basis receives recombinated after downlink service data message the step of specifically include:
When receiving the lora fragment message comprising the termination flag position, weighed according to all lora fragment messages received
Downlink service data message after group.
10. method as claimed in claim 6, which is characterized in that the lora for receiving the lora network server and sending
The step of fragment message, specifically includes:
The first test serial number is fed back to described when receiving the previous lora fragment message that the lora network server is sent
Lora network server,
Receive the current lora fragment message corresponding with first test serial number that the lora network server is sent.
11. method as claimed in claim 6, which is characterized in that include the lower industry in the lora message fragment request
First length of business data message,
All lora fragment messages that the basis receives recombinated after downlink service data message the step of specifically wrap
It includes:
After downlink service data message after being recombinated according to all lora fragment messages received, according to the lower industry
First length of business data message verifies the second length of the downlink service data message after recombination.
12. a kind of server for transmitting lora message, which is characterized in that including:
First receiving module, the downlink service data message for being sent to first terminal for receiving application server;Determining module,
For when receiving the uplink message that the first terminal is sent, according to the terminal iidentification in the uplink message is determining and institute
State the corresponding downlink service data message of terminal iidentification;
First sending module is more than the first current speed of the first terminal for the length when the downlink service data message
When the maximum message size that rate is supported, lora points will be carried out to the downlink service data message by sending to the first terminal
The lora message fragment request of piece transmission;
Second receiving module requests to determine support lora message according to the lora message fragment for receiving the first terminal
The lora message fragment response sent when fragment;
Fragment module, for carrying out lora fragment to the downlink service data message, when sending lora fragment message every time,
It determines message transmitting spped rate, the size of the lora fragment message sent every time is determined according to the message transmitting spped rate;
Second sending module, for each lora fragment message to be sent to the first terminal, in order to the first terminal
Downlink service data message after being recombinated according to all lora fragment messages received.
13. server as claimed in claim 12, which is characterized in that include fragment mark in the lora message fragment request
Know, second receiving module is specifically used for:
The first terminal is received to be requested to determine the lora sent when supporting lora message fragment according to the lora message fragment
Message fragment response.
14. the server as described in claim 12-13 is any, which is characterized in that
The fragment module is specifically used for, and carries out lora fragment to the downlink service data message, is sending lora points every time
When piece message, the second present rate of the first terminal is obtained according to lora message fragment response, according to described second
Present rate determines the size of the lora fragment message sent every time.
15. the server as described in claim 12-13 is any, which is characterized in that
The fragment module is specifically used for, and carries out lora fragment to the downlink service data message, is sending lora points every time
When piece message, message transmitting spped rate is determined, the big of the lora fragment message sent every time is determined according to the message transmitting spped rate
It is small, the serial number of the lora fragment message sent every time is set according to sequence from small to large, in the last one lora fragment
Termination flag position is set in message,
Second sending module is specifically used for, the first message sequence fed back according to the first terminal when receiving lora fragment message
Number, lora fragment message corresponding with first test serial number is sent to the first terminal, sending includes termination flag
The lora fragment message of position gives the first terminal, in order to which the first terminal stops feedback the according to the termination flag position
One test serial number and the downlink service data message after being recombinated according to all lora fragment messages for receiving.
16. server as claimed in claim 12, which is characterized in that include the downlink in the lora message fragment request
First length of business datum message,
Second sending module is specifically used for, and each lora fragment message is sent to the first terminal, in order to described
First terminal recombinated according to all lora fragment messages received after downlink service data message after, according to the downlink
First length of business datum message verifies the second length of the downlink service data message after recombination.
17. a kind of terminal for transmitting lora message, which is characterized in that including:
The downlink service data message stored to it is carried out lora points for receiving lora network server by third receiving module
The lora message fragment request of piece transmission, the lora message fragment request is that the lora network server is receiving application
Server is sent to the downlink service data message of the lora terminal and receives the uplink message that the lora terminal is sent
When, and downlink service data message corresponding with the terminal iidentification is determined according to the terminal iidentification in the uplink message, when
The length of the downlink service data message is more than the maximum message size that the first present rate of the lora terminal is supported
It issues afterwards;
Sending module is used for when requesting to determine support lora message fragment according to the lora message fragment, to the lora
Network server sends the response of lora message fragment;
4th receiving module, the lora fragment message sent for receiving the lora network server, the lora fragment report
The size of text is that the lora network server starts after carrying out lora fragment to downlink service data message, sends lora every time
When fragment message, determined according to message transmitting spped rate;
Recombination module, for the downlink service data message after being recombinated according to all lora fragment messages received.
18. terminal as claimed in claim 17, which is characterized in that it include segmental identification in the lora message fragment request,
The sending module is specifically used for:
When requesting to identify the segmental identification according to the lora message fragment, lora is sent to the lora network server
Message fragment response.
19. the terminal as described in claim 17-18 is any, which is characterized in that the 4th receiving module is specifically used for:
The lora fragment message that the lora network server is sent is received, the size of the lora fragment message is the lora
Network server starts after carrying out lora fragment to downlink service data message, when sending lora fragment message every time, according to
The lora message fragment response obtains the second present rate of the lora terminal, is determined according to second present rate
's.
20. terminal as claimed in claim 17, which is characterized in that
4th receiving module is specifically used for:
The lora fragment message that the lora network server is sent is received, is provided with the lora in the lora fragment message
Network server is according to the serial number that sequence from small to large is that the lora fragment message sent every time is arranged, at the last one
Termination flag position is provided in lora fragment message;
The recombination module is specifically used for:
When receiving the lora fragment message comprising the termination flag position, weighed according to all lora fragment messages received
Downlink service data message after group.
21. terminal as claimed in claim 17, which is characterized in that the 4th receiving module is specifically used for:
The first test serial number is fed back to described when receiving the previous lora fragment message that the lora network server is sent
Lora network server,
Receive the current lora fragment message corresponding with first test serial number that the lora network server is sent.
22. terminal as claimed in claim 17, which is characterized in that include the lower industry in the lora message fragment request
First length of business data message,
The terminal further includes:
Correction verification module, for the first length according to the downlink service data message to the downlink service data message after recombination
The second length verified.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810516033.XA CN108900433B (en) | 2018-05-25 | 2018-05-25 | Method, terminal and server for transmitting lora message |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810516033.XA CN108900433B (en) | 2018-05-25 | 2018-05-25 | Method, terminal and server for transmitting lora message |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108900433A true CN108900433A (en) | 2018-11-27 |
CN108900433B CN108900433B (en) | 2022-06-21 |
Family
ID=64343217
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810516033.XA Active CN108900433B (en) | 2018-05-25 | 2018-05-25 | Method, terminal and server for transmitting lora message |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108900433B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110198203A (en) * | 2019-06-14 | 2019-09-03 | 中国人民解放军陆军工程大学 | A method of control message transmission rate |
CN110677354A (en) * | 2019-12-04 | 2020-01-10 | 武汉慧联无限科技有限公司 | Message transmission method, terminal and server |
CN111162871A (en) * | 2019-12-13 | 2020-05-15 | 深圳市瑞科慧联科技有限公司 | Data transmission method and system based on LoRa |
CN112367409A (en) * | 2021-01-14 | 2021-02-12 | 广州技象科技有限公司 | Internet of things node data transmission control method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107360555A (en) * | 2016-05-10 | 2017-11-17 | 北京信威通信技术股份有限公司 | Method for message transmission and device |
CN107567107A (en) * | 2017-09-29 | 2018-01-09 | 新华三技术有限公司 | A kind of method and device for transmitting data |
US10567495B2 (en) * | 2016-11-16 | 2020-02-18 | Cisco Technology, Inc. | Application based intelligent edge computing in a low power wide area network environment |
-
2018
- 2018-05-25 CN CN201810516033.XA patent/CN108900433B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107360555A (en) * | 2016-05-10 | 2017-11-17 | 北京信威通信技术股份有限公司 | Method for message transmission and device |
US10567495B2 (en) * | 2016-11-16 | 2020-02-18 | Cisco Technology, Inc. | Application based intelligent edge computing in a low power wide area network environment |
CN107567107A (en) * | 2017-09-29 | 2018-01-09 | 新华三技术有限公司 | A kind of method and device for transmitting data |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110198203A (en) * | 2019-06-14 | 2019-09-03 | 中国人民解放军陆军工程大学 | A method of control message transmission rate |
CN110677354A (en) * | 2019-12-04 | 2020-01-10 | 武汉慧联无限科技有限公司 | Message transmission method, terminal and server |
CN111162871A (en) * | 2019-12-13 | 2020-05-15 | 深圳市瑞科慧联科技有限公司 | Data transmission method and system based on LoRa |
CN111162871B (en) * | 2019-12-13 | 2022-07-26 | 深圳市瑞科慧联科技有限公司 | Data transmission method and system based on LoRa |
CN112367409A (en) * | 2021-01-14 | 2021-02-12 | 广州技象科技有限公司 | Internet of things node data transmission control method and device |
CN112367409B (en) * | 2021-01-14 | 2021-04-27 | 广州技象科技有限公司 | Internet of things node data transmission control method and device |
Also Published As
Publication number | Publication date |
---|---|
CN108900433B (en) | 2022-06-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108536543B (en) | Receive queue with stride-based data dispersal | |
CN108900433A (en) | A kind of method, terminal and server for transmitting lora message | |
US6600721B2 (en) | End node pacing for QOS and bandwidth management | |
US20080049617A1 (en) | System for fine grained flow-control concurrency to prevent excessive packet loss | |
EP2445166B1 (en) | Method and device for controlling information channel flow | |
KR100716184B1 (en) | Apparatus and method for a queue management of network processor | |
IL267720B2 (en) | Data transmission method and apparatus | |
US20100306365A1 (en) | Push-back mechanism for pub/sub brokers | |
CN107276711B (en) | EtherCAT master station device | |
CN104662977B (en) | A kind of method, apparatus and system sending feedback information | |
CN104796337A (en) | Method and device for forwarding message | |
CN102014067A (en) | Message fragment sending method, device and network equipment | |
CN102413056A (en) | Method and device for controlling network flow as well as breakout gateway equipment | |
CN103885840A (en) | FCoE protocol acceleration engine IP core based on AXI4 bus | |
CN105763297A (en) | Cloud computing system-based remote data optimized transmission method and device | |
CN103312719A (en) | Rate self-adaptive transmission method based on UDP (User Datagram Protocol) under network environment | |
CN102571545A (en) | Method and device for transmitting information in IPv4 (Internet Protocol vision 4) network | |
CN103944880A (en) | ZigBee data transmission method | |
CN105471660B (en) | A kind of data capture method suitable for novel low orbit satellite platform | |
EP3560152B1 (en) | Determining the bandwidth of a communication link | |
WO2021057068A1 (en) | Rdma data flow control method and system, electronic device and readable storage medium | |
CN109582479A (en) | A kind of OpenDDS distributed communication method based on reflective memory card | |
CN105656794A (en) | Data distribution method and device | |
CN112714081B (en) | Data processing method and device | |
CN107222379A (en) | A kind of method and apparatus of serial communication |
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 |