Method, system, apparatus, terminal device and storage medium for mobile terminal communication

By receiving source data packets through a LoRa mobile terminal, determining the pilot strength, and selecting the spreading factor, communication connections with the gateway and server are established, solving the problem that LoRa fixed terminals cannot follow the movement of the target person and quickly obtaining location information.

CN115334670BActive Publication Date: 2025-12-16NEURAL FLEX TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210910925.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-29
Publication Date
2025-12-16
Estimated Expiration
2042-07-29

AI Technical Summary

Technical Problem

LoRa fixed terminals cannot effectively establish communication connections with gateways and servers, and cannot meet the requirement of following the target person's movement, especially in scenarios where the elderly, children, or pets are lost.

Method used

The LoRa mobile terminal receives data packets sent by the LoRa source, determines the pilot strength and selects the target spreading factor, and sends device data to the gateway in the corresponding time zone according to the target spreading factor, so that the server can receive the device data and determine the location information through the gateway.

Benefits of technology

It establishes communication connections between LoRa mobile terminals, gateways, and servers, enabling rapid acquisition of the target terminal's location information and resolving the issue that LoRa fixed terminals cannot follow the target person's movement.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115334670B_ABST
    Figure CN115334670B_ABST
Patent Text Reader

Abstract

The application is suitable for the field of communication technology, and provides a mobile terminal communication method, system, device, terminal equipment and storage medium. The method is applied to a LoRa mobile terminal. The method comprises the following steps: firstly, receiving a LoRa data packet transmitted by a preset LoRa signal source; secondly, determining a pilot strength of the LoRa data packet, and determining a target spreading factor according to the pilot strength; and finally, transmitting device data to a gateway in a target time region corresponding to the target spreading factor according to the target spreading factor, so that the server receives the device data through the gateway, and determines position information of the LoRa mobile terminal according to the device data. In the method, the LoRa mobile terminal acquires the LoRa data packet according to the LoRa signal source, thereby determining the target spreading factor. The device data is transmitted to the gateway and the server based on the target spreading factor and the corresponding target time region, so that the server quickly acquires the position information of the mobile terminal, and the communication connection between the LoRa mobile terminal, the gateway and the server is realized.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application belongs to the technical field of communication, and particularly relates to a mobile terminal communication method, system, device, terminal equipment and storage medium. BACKGROUND

[0002] At present, LoRa fixed terminals adopt a polling mode to communicate with a gateway and a server to connect and allocate communication resources, which can ensure small battery consumption and facilitate carrying. However, in the scene of preventing the target person such as the old, children or pets from getting lost, the LoRa fixed terminal cannot effectively access the gateway and the server because it cannot follow the target person to move. SUMMARY

[0003] The embodiments of the present application provide a mobile terminal communication method, system, device, terminal equipment and storage medium, which can solve the problem of effectively establishing communication connection between the LoRa mobile terminal and the gateway and the server.

[0004] In a first aspect, the embodiments of the present application provide a mobile terminal communication method, which is applied to a LoRa mobile terminal and includes the following steps.

[0005] Receiving a LoRa data packet sent by a preset LoRa source;

[0006] Determining a pilot strength of the LoRa data packet, and determining a target spreading factor according to the pilot strength;

[0007] Sending device data to the gateway in a target time region corresponding to the target spreading factor according to the target spreading factor, so that the server receives the device data through the gateway, and determines the position information of the LoRa mobile terminal according to the device data.

[0008] Optionally, before receiving the LoRa data packet sent by the preset LoRa source, the method further includes the following steps.

[0009] Selecting a maximum spreading factor in a preset spreading factor threshold range as an initial spreading factor;

[0010] Receiving the LoRa data packet according to a rate corresponding to the initial spreading factor.

[0011] Optionally, the step of determining the target spreading factor according to the pilot strength includes the following steps.

[0012] Determining a pilot strength grade corresponding to the pilot strength according to the pilot strength;

[0013] Searching for a corresponding spreading factor in the preset spreading factor threshold range as the target spreading factor according to the pilot strength grade.

[0014] Optionally, the device data includes identity data of the LoRa mobile terminal.

[0015] transmitting the device data to the gateway on a target time region corresponding to the target spreading factor according to the target spreading factor, comprising:

[0016] finding the target time region corresponding to the target spreading factor on a time axis; wherein the time region is obtained by the gateway dividing the time axis according to a preset time threshold corresponding to a preset spreading factor threshold;

[0017] transmitting the identity data to the gateway based on the target spreading factor on the target time region.

[0018] Optionally, transmitting the identity data to the gateway based on the target spreading factor on the target time region, comprising:

[0019] judging whether a channel for transmitting the identity data is occupied;

[0020] if the channel is not occupied, transmitting the identity data to the gateway;

[0021] if the channel is occupied, judging whether a maximum number of competitions of the channel is equal to a preset value;

[0022] if the maximum number of competitions is equal to the preset value, terminating transmitting the identity data to the gateway;

[0023] if the maximum number of competitions is less than the preset value, returning to execute transmitting the identity data to the gateway based on the target spreading factor on the target time region and the following steps.

[0024] In a second aspect, the embodiments of the present application provide a system for mobile terminal communication, comprising: at least one LoRa mobile terminal device, at least one gateway and at least one server; the LoRa mobile terminal device is in communication connection with the gateway; the gateway is in communication connection with the server;

[0025] The LoRa mobile terminal device receives a LoRa data packet transmitted by a preset LoRa data source; determines a pilot strength of the LoRa data packet, and determines a target spreading factor according to the pilot strength; and transmits device data to the gateway on a target time region corresponding to the target spreading factor according to the target spreading factor.

[0026] The gateway is configured to receive the device data and transmit the device data to the server.

[0027] The server is configured to determine position information of the LoRa mobile terminal device according to the device data.

[0028] Optionally, the gateway is further configured to:

[0029] sort data signals corresponding to the device data according to a time sequence of receiving the device data of the LoRa mobile terminal device, to obtain a data signal set;

[0030] According to the sorting result, data signals in the data signal set are selected in sequence, a target symbol is determined according to the data signals, and the target symbol is eliminated.

[0031] In a third aspect, the embodiments of the present application provide a device for mobile terminal communication, which is applied to a LoRa mobile terminal, and the device comprises:

[0032] A data receiving module is configured to receive a LoRa data packet transmitted by a preset LoRa signal source.

[0033] A target spreading factor determining module is configured to determine pilot strength of the LoRa data packet, and determine a target spreading factor according to the pilot strength.

[0034] A data sending module is configured to send device data to a gateway in a target time region corresponding to the target spreading factor according to the target spreading factor, so that a server receives the device data through the gateway, and determines position information of the LoRa mobile terminal according to the device data.

[0035] In a fourth aspect, the embodiments of the present application provide a terminal device, which comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the method for mobile terminal communication of any one of the first aspect when executing the computer program.

[0036] In a fifth aspect, the embodiments of the present application provide a computer readable storage medium, which stores a computer program, and the computer program is executable on the processor to implement the method for mobile terminal communication of any one of the first aspect.

[0037] In a sixth aspect, the embodiments of the present application provide a computer program product, which, when running on a terminal device, enables the terminal device to execute the method for mobile terminal communication of any one of the first aspect.

[0038] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0039] The application provides a mobile terminal communication method, system, device, terminal equipment and storage medium, which is applied to a LoRa mobile terminal. The method comprises the following steps: firstly receiving a LoRa data packet transmitted by a preset LoRa signal source; then determining the pilot strength of the LoRa data packet and determining a target spreading factor according to the pilot strength; finally transmitting device data to a gateway in a target time region corresponding to the target spreading factor according to the target spreading factor, so that the server receives the device data through the gateway and determines the position information of the LoRa mobile terminal according to the device data. In the method, the LoRa mobile terminal acquires the LoRa data packet from the LoRa signal source, thereby determining the target spreading factor, transmitting the device data to the gateway and the server based on the target spreading factor and the corresponding target time region, and establishing a communication connection between the LoRa mobile terminal and the gateway and the server, so that the server quickly acquires the position information of the mobile terminal, and the communication connection between the LoRa mobile terminal and the gateway and the server is realized. BRIEF DESCRIPTION OF DRAWINGS

[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0041] Figure 1 It is a flowchart of the method for mobile terminal communication provided by an embodiment of the present application;

[0042] Figure 2 It is a flowchart of step 102 of the method for mobile terminal communication provided by an embodiment of the present application;

[0043] Figure 3 It is a flowchart of step 103 of the method for mobile terminal communication provided by an embodiment of the present application;

[0044] Figure 4 It is a system structure diagram of the method for mobile terminal communication provided by an embodiment of the present application;

[0045] Figure 5 It is a structure diagram of the device for mobile terminal communication provided by an embodiment of the present application;

[0046] Figure 6 It is a structure diagram of the terminal equipment provided by an embodiment of the present application. DETAILED DESCRIPTION

[0047] In the following description, for purposes of explanation and not limitation, specific details are set forth such as particular architectures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application can be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known methods, devices, circuits, and

[0048] It is to be understood that the terminology "includes", "has", "holds", "contains" or "comprising", "including", "having" and the like, when used in the present specification and in the accompanying claims, are used in the sense of "including but not limited to", "including but not limited to", "including but not limited to" and "including but not limited to" respectively, and should be construed as specifically setting forth the stated features, integers, steps or components but not precluding one or more additional features, integers, steps, components and / or groups thereof.

[0049] It is also to be understood that the terminology "and / or" as used in the specification and in the claims, means any one of the associated listed items individually and all possible combinations of the items and includes the combinations thereof.

[0050] As used in the description of the application and the appended claims, the term "if' can be interpreted to mean "when" or "upon" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [a described condition or event] is detected" can be interpreted to mean "upon determining" or "in response to determining" or "upon [the described condition or event] being detected" or "in response to [the described condition or event] being detected", depending on the context.

[0051] In addition, the terms "first", "second", "third", etc. as used in the description of embodiments herein and in the claims, are used for distinguishing between similar elements and not necessarily for describing a sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application described herein are, for example, capable of use in either order.

[0052] Reference throughout this specification to "one embodiment" or "an embodiment" or "a specific embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the application. Thus, appearances of the phrases "in one embodiment" or "in an embodiment" or "in some embodiments" or "in other embodiments" or "in still other embodiments" in various places throughout this specification are not necessarily all referring to the same embodiment, unless otherwise specified. Furthermore, the terms "comprises", "comprising", "includes", "including", "has", "having", and the like, as used herein, are specifically intended to be construed as "including but not limited to".

[0053] At present, in the scene of preventing the target person such as the old, the child or the pet from losing, usually, a handheld terminal device such as a smart phone or a smart watch is connected with a server in communication, so as to determine the position information of the target person, and the handheld terminal has problems such as inconvenient to carry and limited battery capacity. The flexible wearable terminal device (passive LoRa terminal) can be sewn on various clothes, such as the clothes and trousers of the old and the child, or the pet clothes and the collar of the pet, to solve the problem of inconvenient to carry. The passive LoRa system uses the LoRa signal widely existing in the environment to realize the far distance high concurrency backscatter communication. The terminal of the passive LoRa system does not need to actively generate a signal and does not need a battery to generate a carrier signal, but uses the signal in the environment to realize the far distance backscatter communication, and the farthest distance reaches 2km. However, the LoRa fixed terminal adopts a polling mode to communicate with the gateway and the server, and cannot meet the condition of following the target task to move. Based on this, the application provides a mobile terminal communication method, which is applied to the LoRa mobile terminal.

[0054] Figure 1 The flowchart of the mobile terminal communication method provided by the application is shown, and the method comprises the following steps:

[0055] S101: receiving the LoRa data packet sent by the preset LoRa signal source.

[0056] Specifically, the LoRa signal source widely exists in the environment and can realize the far distance high concurrency backscatter communication, and the LoRa signal source is preferably co-located with a 4G / 5G wireless base station. The LoRa mobile terminal uses the signal of the LoRa signal source in the environment to realize the far distance backscatter communication, and does not need to actively generate a signal. The LoRa data packet comprises a preamble, a delimiter and data.

[0057] S102: determining the pilot strength of the LoRa data packet, and determining the target spreading factor according to the pilot strength.

[0058] Specifically, the pilot strength of the LoRa is determined according to the preamble in the LoRa data packet, and the target spreading factor is determined according to the pilot strength. The pilot strength is divided into several levels according to the pilot strength threshold. If the level of the pilot strength is the lowest level, the same spreading factor as the lowest level is selected as the target spreading factor. The spreading factor is used to adjust the transmission rate and the receiving sensitivity of the LoRa mobile terminal, and the greater the value of the spreading factor, the smaller the transmission rate, and the value of the spreading factor ranges from 1 to 12.

[0059] S103: transmitting the device data to the gateway in the target time region corresponding to the target spreading factor according to the target spreading factor, so that the server receives the device data through the gateway, and determines the position information of the LoRa mobile terminal according to the device data.

[0060] Specifically, the gateway divides the time axis into different time regions according to different spreading factors, and each time region corresponds to a spreading factor. According to the target spreading factor selected by the LoRa mobile terminal, the corresponding target time region is searched on the time axis, and the device data is sent to the gateway according to the target spreading factor in the target time region, so as to establish a communication connection with the gateway and the server, wherein the device data is the identity data pre-allocated to the LoRa mobile terminal by the gateway, and the server determines the position information of the LoRa mobile terminal according to the identity data.

[0061] In one embodiment, before step S101, it includes:

[0062] S104: selecting the maximum spreading factor in the preset spreading factor threshold range as the initial spreading factor;

[0063] S105: receiving the LoRa data packet according to the rate corresponding to the initial spreading factor.

[0064] Specifically, the LoRa mobile terminal selects the maximum spreading factor in the preset spreading factor threshold range as the initial spreading factor before receiving the LoRa data source, and synchronizes according to the initial spreading factor. Wherein, the preset spreading factor threshold range is 1-12, and the preferred spreading factor is 12 as the initial spreading factor. The LoRa mobile terminal receives the LoRa data packet according to the transmission rate corresponding to the initial spreading factor.

[0065] In one embodiment, as shown in Figure 2 , step S102 includes:

[0066] S1021: determining the corresponding pilot strength level according to the pilot strength;

[0067] S1022: searching for the corresponding spreading factor in the preset spreading factor threshold range as the target spreading factor according to the pilot strength level.

[0068] Specifically, the LoRa mobile terminal determines the pilot strength level according to the received pilot strength, i.e. the signal strength of the preamble in the LoRa data packet. The pilot strength can be divided into 1-12 levels. The greater the pilot strength, the lower the corresponding level. If the pilot strength is the smallest, the corresponding pilot strength level is the maximum 12. Then the target spreading factor 12 same as the pilot strength level is determined according to the pilot strength level 12.

[0069] In one embodiment, as shown in Figure 3 , step S103 includes:

[0070] S1031: searching a target time region corresponding to the target spreading factor on a time axis; wherein the time region is divided by the gateway according to a preset time threshold value on the time axis, and the time region corresponds to a preset spreading factor threshold value;

[0071] S1032: sending the identity data to the gateway based on the target spreading factor in the target time region.

[0072] Specifically, the gateway can divide the time axis according to equal time periods or unequal time periods. When the time axis is divided according to equal time periods, a time period preset value, such as 20 seconds, is set, the time axis is divided according to the time period preset value, and the time region corresponds to a preset spreading factor. When the time axis is divided according to unequal time periods, three preset values, such as 10 seconds, 20 seconds, and 30 seconds, are set, the time axis is divided according to the distribution of the LoRa terminal device corresponding to the spreading factor, the region of 10 seconds is selected for the spreading factor without corresponding LoRa mobile terminal, the region of 20 seconds is selected for one to two corresponding LoRa mobile terminal spreading factors, the region of 30 seconds is selected for two or more corresponding LoRa mobile terminal spreading factors, and the time region corresponds to a preset spreading factor.

[0073] The LoRa mobile terminal selects a target time region corresponding to the target spreading factor according to the target spreading factor, and sends device data to the gateway in the target time region, wherein the device data includes the identity data of the LoRa mobile terminal.

[0074] In one embodiment, step S1032 includes:

[0075] S10321: determining whether the channel for sending the identity data is occupied;

[0076] S10322: if the channel is not occupied, sending the identity data to the gateway;

[0077] S10323: if the channel is occupied, determining whether the maximum number of competitions of the channel is equal to a preset value;

[0078] S10324: if the maximum number of competitions is equal to the preset value, terminating the sending of the identity data to the gateway;

[0079] S10325: if the maximum number of competitions is less than the preset value, returning to execute the step of sending the identity data to the gateway based on the target spreading factor in the target time region and the subsequent steps.

[0080] Specifically, the LoRa mobile terminal detects whether the channel for transmitting identity data is occupied. If the detection result shows that the channel is not occupied, the identity data is transmitted to the gateway. If the detection result shows that the channel is occupied, it is determined whether the maximum number of competitions of the channel reaches a preset value, and the maximum number of competitions is generally set to 24. If the maximum number of competitions is 24, the transmission of the identity data to the gateway is stopped, and the data transmission is terminated. If the maximum number of competitions is less than 24, the step of transmitting the identity data to the gateway based on the target spreading factor in the target time region and the subsequent steps are returned to be executed.

[0081] The application first receives a LoRa data packet transmitted by a preset LoRa source, then determines the pilot strength of the LoRa data packet, and determines the target spreading factor according to the pilot strength. Finally, the device data is transmitted to the gateway in the target time region corresponding to the target spreading factor according to the target spreading factor, so that the server receives the device data through the gateway, and determines the position information of the LoRa mobile terminal according to the device data. In this method, the LoRa mobile terminal obtains the LoRa data packet from the LoRa source, thereby determining the target spreading factor. The device data is transmitted to the gateway and the server based on the target spreading factor and the corresponding target time region, so as to establish a communication connection between the server and the LoRa mobile terminal, so that the server quickly obtains the position information of the mobile terminal, and realizes the communication connection between the LoRa mobile terminal and the gateway and the server.

[0082] It should be understood that the size of the serial number of each step in the above embodiment does not mean the order of execution. The execution order of each process should be determined according to its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the application.

[0083] The method for mobile terminal communication corresponding to the above embodiment, Figure 4 The structure schematic diagram of the system for mobile terminal communication provided by the embodiments of the application is shown. For the convenience of description, only the parts related to the embodiments of the application are shown.

[0084] Referring to Figure 4 The system 400 includes at least one LoRa mobile terminal device 401, at least one gateway 402, and at least one server 403. The LoRa mobile terminal 401 is in communication connection with the gateway 402. The gateway 402 is in communication connection with the server 401.

[0085] The LoRa mobile terminal 401 receives a LoRa data packet transmitted by a preset LoRa source. The pilot strength of the LoRa data packet is determined, and the target spreading factor is determined according to the pilot strength. The device data is transmitted to the gateway 402 in the target time region corresponding to the target spreading factor according to the target spreading factor.

[0086] The gateway 402 is configured to receive device data and transmit the device data to the server 403.

[0087] The server 403 is configured to determine position information of the LoRa mobile terminal according to the device data.

[0088] In an embodiment, the gateway 402 is further configured to:

[0089] According to the time sequence of receiving the device data of the LoRa mobile terminal, the data signals corresponding to the device data are sorted to obtain a data signal set;

[0090] According to the sorting result, the data signals in the data signal set are selected in sequence, the target symbol corresponding to the data signal is determined according to the data signal, and the target symbol is eliminated.

[0091] The application first receives the LoRa data packet transmitted by the preset LoRa source, then determines the pilot strength of the LoRa data packet, and determines the target spreading factor according to the pilot strength, and finally transmits the device data to the gateway in the target time region corresponding to the target spreading factor according to the target spreading factor, so that the server receives the device data through the gateway, and determines the position information of the LoRa mobile terminal according to the device data. In this method, the LoRa mobile terminal obtains the LoRa data packet from the LoRa source, thereby determining the target spreading factor, and transmitting the device data based on the target spreading factor and the corresponding target time region to establish a communication connection with the gateway and the server, so that the server quickly obtains the position information of the mobile terminal, and realizes the communication connection between the LoRa mobile terminal and the gateway and the server.

[0092] It should be noted that the information interaction, execution process and the like between the above-mentioned devices / units are based on the same concept as the method embodiments of the application, and the specific functions and the technical effects brought by them can be referred to the method embodiments part, which will not be repeated here.

[0093] The method for mobile terminal communication corresponding to the above-mentioned embodiments, Figure 5 The structure block diagram of the device for mobile terminal communication provided by the embodiments of the application is shown, and only the parts related to the embodiments of the application are shown for the convenience of description.

[0094] Referring to Figure 5 The device 500 includes:

[0095] The data receiving module 501 is configured to receive the LoRa data packet transmitted by the preset LoRa source.

[0096] The target spreading factor determination module 502 is configured to determine the pilot strength of the LoRa data packet, and determine the target spreading factor according to the pilot strength.

[0097] The data sending module 503 is configured to send device data to the gateway in a target time region corresponding to the target spreading factor according to the target spreading factor, so that the server receives the device data through the gateway and determines the position information of the LoRa mobile terminal according to the device data.

[0098] In one embodiment, the apparatus 500 further includes:

[0099] The initial spreading factor determining module is configured to select a maximum spreading factor in a preset spreading factor threshold range as an initial spreading factor.

[0100] The rate setting module is configured to receive the LoRa data packet according to a rate corresponding to the initial spreading factor.

[0101] In one embodiment, the target spreading factor determining module 502 includes:

[0102] The pilot strength level determining unit is configured to determine a corresponding pilot strength level according to the pilot strength.

[0103] The target spreading factor determining unit is configured to find a corresponding spreading factor in the preset spreading factor threshold range as a target spreading factor according to the pilot strength level.

[0104] In one embodiment, the data sending module 503 includes: the device data includes identity data of the LoRa mobile terminal.

[0105] The target time region finding unit is configured to find a target time region corresponding to the target spreading factor on a time axis; wherein the time region is obtained by dividing the time axis according to a preset time threshold by the gateway, and the preset spreading factor threshold corresponds.

[0106] The identity data sending unit is configured to send the identity data to the gateway based on the target spreading factor in the target time region.

[0107] In one embodiment, the identity data sending unit includes:

[0108] The channel judging unit is configured to judge whether a channel for sending the identity data is occupied.

[0109] The data sending unit is configured to send the identity data to the gateway if the channel is not occupied.

[0110] The maximum competition times judging unit is configured to judge whether a maximum competition times of the channel is equal to a preset value if the channel is occupied.

[0111] The sending termination unit is configured to terminate sending the identity data to the gateway if the maximum competition times is equal to the preset value.

[0112] The identity data sending unit is configured to return to execute the step of sending the identity data to the gateway based on the target spreading factor at the target time region if the maximum number of competitions is less than the preset value.

[0113] The application first receives a LoRa data packet sent by a preset LoRa source, then determines the pilot strength of the LoRa data packet, and determines the target spreading factor according to the pilot strength, and finally sends device data to the gateway at a target time region corresponding to the target spreading factor according to the target spreading factor, so that the server receives the device data through the gateway, and determines the position information of the LoRa mobile terminal according to the device data. In this method, the LoRa mobile terminal acquires the LoRa data packet according to the LoRa source, thereby determining the target spreading factor, and establishes a communication connection with the gateway and the server based on the target spreading factor and the corresponding target time region, so that the server quickly acquires the position information of the mobile terminal, and realizes the communication connection between the LoRa mobile terminal and the gateway and the server.

[0114] It should be noted that the information interaction, execution process and the like between the above-mentioned devices / units are based on the same concept as the method embodiments of the application, and the specific functions and the technical effects brought by them can be referred to the method embodiments part, which will not be repeated here.

[0115] Figure 6 The structure schematic diagram of the terminal device provided by an embodiment of the application is shown in the figure. Figure 6 As shown in the figure, the terminal device 600 of the embodiment includes at least one processor 60 (only one is shown in the figure), a memory 61, and a computer program 62 stored in the memory 61 and executable on the at least one processor 60, wherein the processor 60 implements the steps in any of the above-mentioned method embodiments when executing the computer program 62. Figure 6

[0116] The terminal device 600 can be a desktop computer, a notebook computer, a palm computer, a cloud server and the like. The terminal device can include, but is not limited to, the processor 60, the memory 61. Those skilled in the art can understand that, Figure 6 The terminal device 600 is only an example, and does not constitute a limitation on the terminal device 600, and can include more or fewer components than shown, or combine certain components, or different components, for example, can also include input / output devices, network access devices and the like.

[0117] ​The processor 60 can be a central processing unit (CPU), and can also be other general-purpose processors, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor.

[0118] The memory 61 can be an internal storage unit of the terminal device 600 in some embodiments, for example, a hard disk or a memory of the terminal device 600. The memory 61 can also be an external storage device of the terminal device 600 in other embodiments, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device 600. Further, the memory 61 can include both the internal storage unit and the external storage device of the terminal device 600. The memory 61 is used to store an operating system, application programs, a boot loader, data, and other programs, for example, program codes of the computer programs, etc. The memory 61 can also be used to temporarily store data that has been output or will be output.

[0119] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above functional units and modules is taken as an example for illustration, and in actual application, the above functions can be completed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment can be integrated in one processing unit, or each unit can exist physically independently, or two or more units can be integrated in one unit, and the integrated unit can be realized in the form of hardware or in the form of a software functional unit. In addition, the specific names of each functional unit and module are only for the convenience of mutual distinction, and do not limit the protection scope of the present application. The specific working process of the units and modules in the system can refer to the corresponding process in the foregoing method embodiments, which will not be described here.

[0120] The embodiments of the present application further provide a network device, comprising at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor implements the steps in any of the above method embodiments when executing the computer program.

[0121] The embodiments of the present application further provide a computer readable storage medium, which stores a computer program, wherein the computer program is executed by a processor to implement the steps in any of the above method embodiments.

[0122] The embodiments of the present application provide a computer program product, which, when executed on a mobile terminal, enables the mobile terminal to implement the steps in any of the above method embodiments.

[0123] The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on such understanding, the embodiments of the present application implement all or part of the above-mentioned method processes, which can be completed by instructing related hardware through a computer program. The computer program can be stored in a computer readable storage medium, and the computer program, when executed by a processor, can implement the steps in any of the above method embodiments. The computer program includes computer program code, which can be in the form of source code, object code, executable file or some intermediate form. The computer readable medium at least includes any entity or device capable of carrying the computer program code to the photographing device / terminal equipment, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium. For example, U disk, mobile hard disk, magnetic disk or optical disk, etc. In some jurisdictions, according to legislation and patent practice, the computer readable medium cannot be an electrical carrier signal and a telecommunication signal.

[0124] In the above embodiments, the description of each embodiment has its own focus, and the parts not described or recorded in detail in a certain embodiment can be referred to the relevant description of other embodiments.

[0125] Those skilled in the art can understand that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized in electronic hardware or a combination of computer software and electronic hardware. Whether the functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0126] In the embodiments provided by the present application, it should be understood that the disclosed apparatus / network device and method can be implemented in other ways. For example, the division of the apparatus / network device embodiments described above is merely illustrative, and for example, the division of the modules or units is merely a logical function division, and there can be another division manner in actual implementation, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interface, device or unit, and can be electrical, mechanical or other forms.

[0127] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, i.e. can be located in one place, or can be distributed on a plurality of network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiments.

[0128] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that the technical solutions recorded in the foregoing embodiments can be modified, or some technical features can be replaced by equivalents; and these modifications or replacements do not make the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.

Claims

1. A method for mobile terminal communication, characterized in that, The method is applied to LoRa mobile terminals, and the method includes: Receive LoRa data packets sent by a preset LoRa source; Determine the pilot strength of the LoRa data packet, and determine the target spreading factor based on the pilot strength; According to the target spreading factor, the device data is sent to the gateway in the target time region corresponding to the target spreading factor, so that the server receives the device data through the gateway and determines the location information of the LoRa mobile terminal based on the device data; wherein, the gateway divides the time axis into different time regions according to different spreading factors, and each time region corresponds to a spreading factor; Wherein, determining the target spreading factor based on the pilot intensity includes: The corresponding pilot strength level is determined based on the pilot strength; wherein, the greater the pilot strength, the lower the corresponding level. Based on the pilot strength level, the corresponding spreading factor is found within the preset spreading factor threshold range as the target spreading factor; The device data includes the identity data of the LoRa mobile terminal; The step of sending device data to the gateway in a target time region corresponding to the target spreading factor according to the target spreading factor includes: Locate the target time region corresponding to the target spreading factor on the time axis; wherein, the time region is obtained by the gateway dividing the time axis according to a preset time threshold, and the time region corresponds to the preset spreading factor threshold; The identity data is sent to the gateway based on the target spreading factor in the target time zone.

2. The method as described in claim 1, characterized in that, Before receiving LoRa data packets sent by a preset LoRa source, the process also includes: Select the maximum spreading factor within the preset spreading factor threshold range as the initial spreading factor; The LoRa data packets are received at the rate corresponding to the initial spreading factor.

3. The method as described in claim 1, characterized in that, Sending the identity data to the gateway in the target time region based on the target spreading factor includes: Determine whether the channel for sending the identity data is occupied; If the channel is not occupied, the identity data is sent to the gateway; If the channel is occupied, determine whether the maximum number of contention attempts for the channel is equal to a preset value; If the maximum number of attempts equals a preset value, then the transmission of the identity data to the gateway is terminated. If the maximum number of contention attempts is less than a preset value, then return to the steps of sending the identity data to the gateway based on the target spreading factor in the target time region and subsequent steps.

4. A mobile terminal communication system, characterized in that, The system includes: at least one LoRa mobile terminal device, at least one gateway, and at least one server; the LoRa mobile terminal is communicatively connected to the gateway; the gateway is communicatively connected to the server; The LoRa mobile terminal receives LoRa data packets sent by a preset LoRa source; determines the pilot strength of the LoRa data packets, and determines the target spreading factor based on the pilot strength; and sends device data to the gateway in the target time region corresponding to the target spreading factor according to the target spreading factor. The gateway is used to receive the device data and send the device data to the server; The server is used to determine the location information of the LoRa mobile terminal based on the device data; wherein, the gateway divides the time axis into different time regions according to different spreading factors, and each time region corresponds to a spreading factor; Wherein, determining the target spreading factor based on the pilot intensity includes: The corresponding pilot strength level is determined based on the pilot strength; wherein, the greater the pilot strength, the lower the corresponding level. Based on the pilot strength level, the corresponding spreading factor is found within the preset spreading factor threshold range as the target spreading factor; The device data includes the identity data of the LoRa mobile terminal; The step of sending device data to the gateway in a target time region corresponding to the target spreading factor according to the target spreading factor includes: Locate the target time region corresponding to the target spreading factor on the time axis; wherein, the time region is obtained by the gateway dividing the time axis according to a preset time threshold, and the time region corresponds to the preset spreading factor threshold; The identity data is sent to the gateway based on the target spreading factor in the target time zone.

5. The system as described in claim 4, characterized in that, The gateway is also used for: Based on the time sequence of the device data received from the LoRa mobile terminal, the data signals corresponding to the device data are sorted to obtain a data signal set; Based on the sorting results, the data signals in the data signal set are selected sequentially, the corresponding target symbols are determined based on the data signals, and the target symbols are eliminated.

6. A device for mobile terminal communication, characterized in that, The device is used in a LoRa mobile terminal, and the device includes: The data receiving module is used to receive LoRa data packets sent by a preset LoRa source; A target spreading factor determination module is used to determine the pilot intensity of the LoRa data packet and determine the target spreading factor based on the pilot intensity. The data transmission module is used to transmit device data to the gateway in a target time region corresponding to the target spreading factor according to the target spreading factor, so that the server can receive the device data through the gateway and determine the location information of the LoRa mobile terminal according to the device data; wherein, the gateway divides the time axis into different time regions according to different spreading factors, and each time region corresponds to a spreading factor; The target spreading factor determination module includes: A pilot strength level determination unit is used to determine the corresponding pilot strength level based on the pilot strength; wherein, the greater the pilot strength, the lower the corresponding level; The target spreading factor determination unit is used to find the corresponding spreading factor as the target spreading factor within a preset spreading factor threshold range according to the pilot intensity level. The data transmission module includes: the device data includes the identity data of the LoRa mobile terminal; The target time region lookup unit is used to find the target time region corresponding to the target spreading factor on the time axis; wherein, the time region is obtained by the gateway dividing the time axis according to a preset time threshold, and the time region corresponds to the preset spreading factor threshold. An identity data sending unit is used to send the identity data to the gateway in the target time zone based on the target spreading factor.

7. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method as described in any one of claims 1 to 3.

8. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 3.

Citation Information

Patent Citations

  • wireless sensor network MAC (Medium Access Control) protocol realization method based on LoRa (Long Range)

    CN106162844A

  • Self-service inspection result printing equipment based on wireless communication

    CN114613081A