CN116133006A - A wireless communication data packet loss processing method, device and medium - Google Patents
A wireless communication data packet loss processing method, device and medium Download PDFInfo
- Publication number
- CN116133006A CN116133006A CN202211707872.2A CN202211707872A CN116133006A CN 116133006 A CN116133006 A CN 116133006A CN 202211707872 A CN202211707872 A CN 202211707872A CN 116133006 A CN116133006 A CN 116133006A
- Authority
- CN
- China
- Prior art keywords
- data
- gateway
- equipment
- wireless communication
- server
- 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
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L5/00—Arrangements affording multiple use of the transmission path
- H04L5/14—Two-way operation using the same type of signal, i.e. duplex
- H04L5/16—Half-duplex systems; Simplex/duplex switching; Transmission of break signals non-automatically inverting the direction of transmission
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域technical field
本申请涉及无线通信技术领域,尤其涉及一种无线通信数据丢包处理方法、设备及介质。The present application relates to the technical field of wireless communication, and in particular to a method, device and medium for processing wireless communication data packet loss.
背景技术Background technique
LoRa是一种专用于远距离低功耗的无线通信技术,其调制方式相对于其他通信方式大大增加了通信距离,可广泛应用于各种场合的远距离低速率物联网无线通信领域。比如自动抄表、楼宇自动化设备、无线安防系统、工业监视与控制等。LoRa is a wireless communication technology dedicated to long-distance and low-power consumption. Compared with other communication methods, its modulation method greatly increases the communication distance. It can be widely used in the field of long-distance low-speed Internet of Things wireless communication in various occasions. Such as automatic meter reading, building automation equipment, wireless security systems, industrial monitoring and control, etc.
现有的LoRa无线通信往往是一网关对应多个终端,网关下行通道少,并且为了保证一定的传输距离,lora通信速率越低,可靠性越高。造成了通信及时率与其他各项指标相悖,难以统一。同时,lora通信易受同频干扰,同频率的多个设备发送会造成空中撞包问题,容易造成数据混乱。In the existing LoRa wireless communication, one gateway corresponds to multiple terminals, and the gateway has fewer downlink channels. In order to ensure a certain transmission distance, the lower the LoRa communication rate, the higher the reliability. The timely rate of communication is contrary to other indicators, and it is difficult to unify. At the same time, lora communication is susceptible to interference on the same frequency, and multiple devices on the same frequency will cause packet collisions in the air and easily cause data confusion.
发明内容Contents of the invention
本申请实施例提供了一种无线通信数据丢包处理方法、设备及介质,用于解决如下技术问题:现有的LoRa无线通信容易受到同频干扰,造成同频率下多个终端设备对应网关之间的相互空中撞包。The embodiment of the present application provides a wireless communication data packet loss processing method, device and medium, which are used to solve the following technical problems: the existing LoRa wireless communication is easily interfered by the same frequency, resulting in the gap between the corresponding gateways of multiple terminal devices at the same frequency. A mid-air collision between them.
本申请实施例采用下述技术方案:The embodiment of the application adopts the following technical solutions:
一方面,本申请实施例提供了一种无线通信数据丢包处理方法,包括:根据服务端的使用场景,获取设备端的设备编号;根据所述服务端发送的所述设备编号,对每条数据进行网关校时,确定出所述服务端的数据发送时间;根据所述数据发送时间以及若干网关的区域范围,对所述区域范围进行重叠范围筛选,确定出所述网关的数据通信状态;根据所述设备编号以及所述数据通信状态,对所述设备端进行应答判断,得到应答结果,以进行对所述服务端中数据的依次发送。On the one hand, the embodiment of the present application provides a wireless communication data packet loss processing method, including: according to the usage scenario of the server, obtain the device number of the device; according to the device number sent by the server, perform The gateway checks the time to determine the data sending time of the server; according to the data sending time and the regional ranges of several gateways, the overlapping range of the regional ranges is screened to determine the data communication status of the gateways; according to the The device number and the data communication status are used to judge the response of the device to obtain the response result, so as to send the data in the server in sequence.
本申请实施例通过同步网关时间,服务端控制网关发送时间切入点,避免不同网关之间发送同频时撞包,同时设备端对应答回码进行优化判断,实现了发送状态与接收状态共存的半双工模式,解决了一网关对应多个设备端,网关下行通道少等问题,同时保证了一定的传输距离,在lora通信低速率的情况下,让通信的及时性与传输距离的可靠性并存,实现最大程度的相互统一。In the embodiment of this application, by synchronizing the gateway time, the server controls the entry point of the sending time of the gateway to avoid packet collision between different gateways when sending at the same frequency. At the same time, the device side optimizes and judges the response code, and realizes the coexistence of the sending state and the receiving state. The half-duplex mode solves the problem that one gateway corresponds to multiple devices, and the gateway has fewer downlink channels. At the same time, it ensures a certain transmission distance. In the case of low-speed lora communication, the timeliness of communication and the reliability of transmission distance are guaranteed. Coexist to achieve the greatest degree of mutual unity.
在一种可行的实施方式中,根据服务端的使用场景,获取设备端的设备编号,具体包括:基于所述设备端的预设使用场景,通过所述服务端,对若干所述设备端进行分组,得到分组编号;获取与所述分组编号对应的发送数据;根据所述发送数据,获取所述分组编号中每个设备端所对应的设备编号。In a feasible implementation manner, according to the use scenario of the server end, obtaining the device number of the device end specifically includes: based on the preset use scene of the device end, grouping several of the device ends through the server end to obtain A group number; obtaining the sending data corresponding to the group number; according to the sending data, obtaining the device number corresponding to each device in the group number.
在一种可行的实施方式中,根据所述服务端发送的所述设备编号,对每条数据进行网关校时,确定与所述服务端对应的数据发送时间,具体包括:通过所述服务端,获取所述设备编号;根据所述设备编号,获取所述服务端中每条数据的单一发送时间;通过预设的TCP定时,将所述每条数据的单一发送时间进行网关校时,得到与所述服务端对应的数据发送时间;其中,所述网关校时的时间同步差值小于或者等于20ms。In a feasible implementation manner, according to the device number sent by the server, the gateway time is performed on each piece of data, and the data sending time corresponding to the server is determined, which specifically includes: through the server , to obtain the device number; according to the device number, obtain the single sending time of each piece of data in the server; through the preset TCP timing, the single sending time of each piece of data is timed by the gateway to obtain The data transmission time corresponding to the server; wherein, the time synchronization difference of the gateway time calibration is less than or equal to 20ms.
在一种可行的实施方式中,根据所述数据发送时间以及若干网关的区域范围,对所述区域范围进行重叠范围筛选,确定出所述网关的数据通信状态,具体包括:若第一网关的覆盖区域与第二网关的覆盖区域为重叠区域范围,则根据预设网关顺序,将所述第一网关以及所述第二网关依次进行同频率数据的通信,并依次获得对应的数据通信状态;其中,所述数据通信状态包括:发送状态、正在接收状态以及等待接收状态。In a feasible implementation manner, according to the data sending time and the area ranges of several gateways, the overlapping range of the area ranges is screened to determine the data communication status of the gateways, specifically including: if the first gateway The coverage area of the coverage area and the coverage area of the second gateway is an overlapping area range, and then according to the preset gateway order, the first gateway and the second gateway are sequentially communicated with the same frequency data, and the corresponding data communication states are sequentially obtained; Wherein, the data communication state includes: a sending state, a receiving state and a waiting state.
在一种可行的实施方式中,根据所述数据发送时间以及若干网关的区域范围,对所述区域范围进行重叠范围筛选,确定出所述网关的数据通信状态,具体包括:若所述第一网关的覆盖区域与所述第二网关的覆盖区域为不重叠区域范围,则将所述第一网关以及所述第二网关同时进行同频率数据的通信,得到相同的数据通信状态。In a feasible implementation manner, according to the data sending time and the area ranges of several gateways, the overlapping range of the area ranges is screened to determine the data communication status of the gateways, specifically including: if the first If the coverage area of the gateway and the coverage area of the second gateway do not overlap, then the first gateway and the second gateway perform data communication at the same frequency at the same time to obtain the same data communication status.
在一种可行的实施方式中,将所述第一网关以及所述第二网关依次进行同频率数据的通信,具体包括:若所述同频率数据为相同内容数据,则所述第一网关以及所述第二网关同时获得相同的数据通信状态;若所述同频率数据为不相同内容数据,则按照所述不相同内容数据的内置时间参数,依次对所述第一网关以及所述第二网关进行错时数据通信,依次得到错时的数据通信状态。In a feasible implementation manner, the first gateway and the second gateway sequentially perform the same-frequency data communication, which specifically includes: if the same-frequency data is the same content data, then the first gateway and the second gateway The second gateway obtains the same data communication status at the same time; if the same-frequency data is different content data, then according to the built-in time parameters of the different content data, the first gateway and the second The gateway performs data communication at the wrong time, and obtains the data communication status at the wrong time in turn.
本申请实施例通对网关重叠区域的识别,让两个重叠区域内网关的数据包不会相互撞包,并且让不重叠区域进行了数据包的同时发送,减少了同频率数据包的冲突,实现了时间上的节流。The embodiment of the present application uses the identification of gateway overlapping areas, so that the data packets of the gateways in the two overlapping areas will not collide with each other, and the non-overlapping areas can be sent at the same time, reducing the collision of data packets of the same frequency. Realized the saving of time.
在一种可行的实施方式中,根据所述设备编号以及所述数据通信状态,对所述设备端进行应答判断,得到应答结果,以进行对所述服务端中数据的依次发送,具体包括:获取所述服务端的所述设备编号;获取所述设备端的设备数据通信状态;其中,所述设备数据通信状态与所述网关的数据通信状态为相互对应;根据所述网关的数据通信频次以及所述设备编号,对所述设备数据通信状态进行应答回码判断;其中,所述应答回码为协议码,表示接收;若所述应答结果为需要发送回码,则将所述设备端中与网关输出数据对应的发送回码进行发回,以实现所述设备端对所述网关输出数据的正常接收;若所述应答结果为不需要发送回码,则根据所述网关的预设配置参数,将所述网关输出数据进行依次发送,并将所述设备数据通信状态进行对应更改。In a feasible implementation manner, according to the device number and the data communication status, the device end is judged to respond, and the response result is obtained, so as to sequentially send the data in the server end, specifically including: Obtain the device number of the server; obtain the device data communication status of the device; wherein, the device data communication status and the gateway data communication status correspond to each other; according to the data communication frequency of the gateway and the The device number is used to judge the response code of the device data communication status; wherein, the response code is a protocol code, which means receiving; Send back the send back code corresponding to the gateway output data, so as to realize the normal reception of the gateway output data by the device end; , sending the output data of the gateway in sequence, and correspondingly changing the data communication state of the device.
本申请通过对应答回码的优化选择,保证网关输出数据的发送时,设备端能正常接收到数据,并且采用网关输出数据进行依次重新发送,可以将设备端从发送状态切换到等待接收状态的高耗时状态,转变为稳定快速状态,实现对应答回码的优化选择。This application optimizes the selection of response codes to ensure that when the gateway output data is sent, the device can receive the data normally, and use the gateway output data to resend in sequence, which can switch the device from the sending state to the waiting state. The high time-consuming state is transformed into a stable and fast state to realize the optimal selection of the response code.
在一种可行的实施方式中,所述设备端中设备数据通信状态的状态切换占用时间小于网关输出数据的单包数据时间间隔。In a feasible implementation manner, the state switching time of the data communication state of the device at the device end is shorter than the time interval of a single packet of data output by the gateway.
第二方面,本申请实施例还提供了一种无线通信数据丢包处理设备,所述设备包括:至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有能够被所述至少一个处理器执行的指令,以使所述至少一个处理器能够执行上述任一实施方式所述的一种无线通信数据丢包处理方法。In the second aspect, the embodiment of the present application also provides a wireless communication data packet loss processing device, the device includes: at least one processor; and a memory connected in communication with the at least one processor; wherein, the memory Instructions that can be executed by the at least one processor are stored, so that the at least one processor can execute the wireless communication data packet loss processing method described in any one of the above implementation manners.
第三方面,本申请实施例还提供了一种非易失性计算机存储介质,其特征在于,所述存储介质为非易失性计算机可读存储介质,所述非易失性计算机可读存储介质存储有至少一个程序,每个所述程序包括指令,所述指令当被终端执行时,使所述终端执行上述任一实施方式所述的一种无线通信数据丢包处理方法。In the third aspect, the embodiment of the present application also provides a non-volatile computer storage medium, wherein the storage medium is a non-volatile computer-readable storage medium, and the non-volatile computer-readable storage medium The medium stores at least one program, and each of the programs includes an instruction, and the instruction, when executed by the terminal, causes the terminal to execute a wireless communication data packet loss processing method described in any one of the above implementation manners.
本申请提供了一种无线通信数据丢包处理方法、设备及介质,通过同步网关时间,服务端控制网关发送时间切入点,避免不同网关之间发送同频时撞包,同时设备端对应答回码进行优化判断,实现了发送状态与接收状态共存的半双工模式,解决了一网关对应多个设备端,网关下行通道少等问题,同时保证了一定的传输距离,在lora通信低速率的情况下,让通信的及时性与传输距离的可靠性并存,实现最大程度的相互统一。This application provides a wireless communication data packet loss processing method, device and medium. By synchronizing the gateway time, the server controls the entry point of the gateway sending time to avoid collision between different gateways when sending packets at the same frequency. At the same time, the device responds to the response The code is optimized and judged, and the half-duplex mode in which the sending state and the receiving state coexist is realized, which solves the problem that one gateway corresponds to multiple device terminals, and the gateway has fewer downlink channels, and at the same time ensures a certain transmission distance. Under such circumstances, let the timeliness of communication and the reliability of transmission distance coexist to achieve the greatest degree of mutual unification.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。在附图中:In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments described in this application. Those skilled in the art can also obtain other drawings based on these drawings without creative work. In the attached picture:
图1为本申请实施例提供的一种无线通信数据丢包处理方法流程图;FIG. 1 is a flow chart of a method for processing wireless communication data packet loss provided by an embodiment of the present application;
图2为本申请实施例提供的一种网关重叠区域示意图;FIG. 2 is a schematic diagram of a gateway overlapping area provided by an embodiment of the present application;
图3为本申请实施例提供的一种无线通信数据丢包处理设备的结构示意图。FIG. 3 is a schematic structural diagram of a wireless communication data packet loss processing device provided by an embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请中的技术方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本说明书实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described The embodiments are only some of the embodiments of the present application, but not all of them. Based on the embodiments of this specification, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.
本申请实施例提供了一种无线通信数据丢包处理方法,如图1所示,无线通信数据丢包处理方法具体包括步骤S101-S104:The embodiment of the present application provides a wireless communication data packet loss processing method, as shown in Figure 1, the wireless communication data packet loss processing method specifically includes steps S101-S104:
需要说明的是,本申请为对LoRa(一种专用于远距离低功耗的无线通信技术)的无线通信数据丢包处理方法,其中的服务端、网关、设备端之间的数据通信均为基于LoRa通信的数据传输、数据识别以及数据处理。It should be noted that this application is a wireless communication data packet loss processing method for LoRa (a wireless communication technology dedicated to long-distance low power consumption), in which the data communication between the server, the gateway, and the device is all Data transmission, data identification and data processing based on LoRa communication.
S101、根据服务端的使用场景,获取设备端的设备编号。S101. Acquire a device number of the device according to a usage scenario of the server.
具体地,基于设备端的预设使用场景,通过服务端,对若干设备端进行分组,得到分组编号。获取与分组编号对应的发送数据。根据发送数据,获取分组编号中每个设备端所对应的设备编号。Specifically, based on the preset use scenario of the device, through the server, several device ends are grouped to obtain a group number. Acquires the send data corresponding to the packet number. According to the sent data, obtain the device number corresponding to each device end in the group number.
作为一种可行的实施方式,服务端根据使用场景对设备进行分组。设备端会在每次上电后,获取设备当前所处分组编号。针对单一设备发送的当前设备编号,然后针对分组后设备,每组只发送一次数据,当前组中设备可同时接收。As a feasible implementation manner, the server groups devices according to usage scenarios. The device side will obtain the current group number of the device after each power-on. The current device number sent for a single device, and then for the grouped devices, each group only sends data once, and the devices in the current group can receive it at the same time.
S102、根据服务端发送的设备编号,对每条数据进行网关校时,确定出与服务端对应的数据发送时间。S102. According to the device number sent by the server, perform gateway time calibration for each piece of data, and determine the data sending time corresponding to the server.
具体地,通过服务端,获取设备编号。根据设备编号,获取服务端中每条数据的单一发送时间。通过预设的TCP定时,将每条数据的单一发送时间进行网关校时,得到与服务端对应的数据发送时间。其中,网关校时的时间同步差值小于或者等于20ms。Specifically, the device number is obtained through the server. According to the device number, obtain the single sending time of each piece of data in the server. Through the preset TCP timing, the single sending time of each piece of data is adjusted by the gateway to obtain the data sending time corresponding to the server. Wherein, the time synchronization difference of the gateway time calibration is less than or equal to 20ms.
作为一种可行的实施方式,服务端控制每条数据发送时间,通过TCP定时给网关校时,实现了时间同步差值不超过20ms。即,在可控范围内定时对网关进行校时,由服务端配置网关发送每条数据的具体时间。As a feasible implementation, the server controls the sending time of each piece of data, and adjusts the time to the gateway regularly through TCP, so that the time synchronization difference does not exceed 20ms. That is, the gateway is regularly checked within the controllable range, and the server configures the specific time for the gateway to send each piece of data.
S103、根据数据发送时间以及若干网关的区域范围,对区域范围进行重叠范围筛选,确定出网关的数据通信状态。S103. According to the data sending time and the area ranges of several gateways, perform overlapping range screening on the area ranges to determine the data communication status of the gateways.
具体地,若第一网关的覆盖区域与第二网关的覆盖区域为重叠区域范围,则根据预设网关顺序,将第一网关以及第二网关依次进行同频率数据的通信,并依次获得对应的数据通信状态。其中,数据通信状态包括:发送状态、正在接收状态以及等待接收状态。Specifically, if the coverage area of the first gateway and the coverage area of the second gateway are overlapping areas, then according to the preset gateway sequence, the first gateway and the second gateway will sequentially communicate with the same frequency data, and sequentially obtain the corresponding Data communication status. Wherein, the data communication state includes: sending state, receiving state and waiting to receive state.
其中,若同频率数据为相同内容数据,则第一网关以及第二网关同时获得相同的数据通信状态。若同频率数据为不相同内容数据,则按照不相同内容数据的内置时间参数,依次对第一网关以及第二网关进行错时数据通信,依次得到错时的数据通信状态。Wherein, if the same frequency data is the same content data, then the first gateway and the second gateway obtain the same data communication status at the same time. If the data with the same frequency is different content data, according to the built-in time parameters of the different content data, the data communication with the first gateway and the second gateway is performed at different times in sequence, and the data communication status at different times is sequentially obtained.
若第一网关的覆盖区域与第二网关的覆盖区域为不重叠区域范围,则将第一网关以及第二网关同时进行同频率数据的通信,得到相同的数据通信状态。If the coverage area of the first gateway and the coverage area of the second gateway are non-overlapping areas, then the first gateway and the second gateway simultaneously communicate data at the same frequency to obtain the same data communication state.
在一个实施例中,图2为本申请实施例提供的一种网关重叠区域示意图,如图2所示,实际应用中,网关之间布局较远时会存在信号覆盖盲区,故多为图2使用场景。为提高设备端接收的及时率,图2中1号网关与2号网关存在重叠部分区域,为保证两个网关不撞包,需要按照次序依次发送。但是3号网关只与2号网关有重叠区域,故可以和1号网关同时发送,且不会存在冲突。依次类推,各网关组网可通过算法实现时间上的节流。In one embodiment, FIG. 2 is a schematic diagram of a gateway overlapping area provided by the embodiment of the present application. As shown in FIG. 2 , in practical applications, there will be signal coverage blind spots when the layout of gateways is far away, so it is mostly shown in FIG. 2 scenes to be used. In order to improve the timeliness of receiving at the device side, gateway No. 1 and gateway No. 2 in Figure 2 overlap. In order to ensure that the two gateways do not collide with packets, they need to be sent sequentially. However, Gateway No. 3 only has an overlapping area with Gateway No. 2, so it can be sent simultaneously with Gateway No. 1 without conflict. By analogy, each gateway network can achieve time throttling through algorithms.
作为一种可行的实施方式,同步网关时间,服务端控制网关发送时间切入点,避免网关与网关之间发送同频时撞包。当网关与网关无重叠范围的,同频率发送时间起始点不受限。当网关与网关有重叠范围的,同频率发送时间起始点需要按照网关顺序依次排队发送。还可以通过配置相关参数,控制重叠区域的网关,让相同内容数据同时发送,不同内容数据进行错时发送,非重叠区域的网关则同时进行同频率数据的通信。As a feasible implementation mode, the gateway time is synchronized, and the server controls the entry point of the gateway sending time, so as to avoid collision between gateways when sending packets at the same frequency. When there is no overlapping range between gateways and gateways, the starting point of sending time at the same frequency is not limited. When the gateway overlaps with the gateway, the starting point of the sending time of the same frequency needs to be queued and sent in sequence according to the order of the gateway. It is also possible to control gateways in overlapping areas by configuring relevant parameters, so that data with the same content is sent at the same time, data with different content is sent at staggered times, and gateways in non-overlapping areas communicate with data of the same frequency at the same time.
S104、根据设备编号以及数据通信状态,对设备端进行应答判断,得到应答结果,以进行对服务端中数据的依次发送。S104 , according to the device number and the data communication status, make a response judgment on the device side, and obtain a response result, so as to sequentially send data to the server side.
具体地,获取服务端的设备编号。获取设备端的设备数据通信状态。其中,设备数据通信状态与网关的数据通信状态为相互对应。Specifically, obtain the device number of the server. Obtain the device data communication status on the device side. Wherein, the data communication state of the device corresponds to the data communication state of the gateway.
进一步地,根据网关的数据通信频次以及设备编号,对设备数据通信状态进行应答回码判断。其中,应答回码为协议码,表示接收。Further, according to the data communication frequency of the gateway and the device number, the response code judgment is performed on the data communication status of the device. Wherein, the response return code is a protocol code, which means receiving.
若应答结果为需要发送回码,则将设备端中与网关输出数据对应的发送回码进行发回,以实现设备端对网关输出数据的正常接收。若应答结果为不需要发送回码,则根据网关的预设配置参数,将网关输出数据进行依次发送,并将设备数据通信状态进行对应更改。If the response result is that a return code needs to be sent, the return code corresponding to the gateway output data in the device is sent back, so as to realize the normal reception of the gateway output data by the device. If the response result is that no return code needs to be sent, then according to the preset configuration parameters of the gateway, the output data of the gateway will be sent in sequence, and the data communication status of the device will be changed accordingly.
其中,设备端中设备数据通信状态的状态切换占用时间小于网关输出数据的单包数据时间间隔。Wherein, the state switching time of the device data communication state in the device end is less than the single packet data time interval of the gateway output data.
在一个实施例中,Lora同频通信包即使不是本设备的,也需要接收处理后抛弃。当网关发送数据的频次比较高时,设备端会频繁进入正在接收与等待接收状态,即设备数据通信状态,如果有应答回码时,还会再加入发送状态。设备端从发送状态切换到等待接收状态耗时相对较长,且极影响接收的稳定性。应答回码是为了保证此次网关发送,让设备端能正常接收到网关输出数据。并且采用网关输出数据进行依次重新发送,可以将设备端从发送状态切换到等待接收状态的高耗时状态,转变为稳定快速状态,实现对应答回码的优化选择。同时,设备端根据设备编号以及通信状态,对服务端是否给予应答;服务端根据设备编号,确认是多次重试还是等待设备端应答。In one embodiment, even if the Lora intra-frequency communication packet is not from the device, it needs to be received and processed before being discarded. When the frequency of sending data by the gateway is relatively high, the device will frequently enter the state of receiving and waiting to receive, that is, the state of device data communication. If there is a response code, it will also join the sending state. It takes a relatively long time for the device to switch from the sending state to the waiting state, and greatly affects the stability of receiving. The response code is to ensure that the gateway sends this time, so that the device can normally receive the output data of the gateway. In addition, the gateway output data is used to resend sequentially, which can switch the device side from the sending state to the high time-consuming state of waiting to receive, and transform it into a stable and fast state, realizing the optimized selection of the response code. At the same time, the device determines whether to respond to the server according to the device number and communication status; the server confirms whether to retry multiple times or wait for the response from the device according to the device number.
另外,本申请实施例还提供了一种无线通信数据丢包处理设备,如图3所示,无线通信数据丢包处理设备300具体包括:In addition, the embodiment of the present application also provides a wireless communication data packet loss processing device. As shown in FIG. 3 , the wireless communication data packet loss processing device 300 specifically includes:
至少一个处理器301;以及,与至少一个处理器301通信连接的存储器302;其中,存储器302存储有能够被至少一个处理器301执行的指令,以使至少一个处理器301能够执行:At least one
根据服务端的使用场景,获取设备端的设备编号;Obtain the device number of the device according to the usage scenario of the server;
根据服务端发送的所述设备编号,对每条数据进行网关校时,确定出与服务端对应的数据发送时间;According to the device number sent by the server, the gateway time is performed on each piece of data to determine the data sending time corresponding to the server;
根据数据发送时间以及若干网关的区域范围,对区域范围进行重叠范围筛选,确定出网关的数据通信状态;According to the data transmission time and the regional scope of several gateways, the overlapping range of the regional scope is screened to determine the data communication status of the gateway;
根据设备编号以及数据通信状态,对设备端进行应答判断,得到应答结果,以进行对服务端中数据的依次发送。According to the device number and data communication status, the response judgment is made to the device side, and the response result is obtained, so as to send the data in the server side sequentially.
本申请实施例提供了一种无线通信数据丢包处理方法、设备及介质,通过同步网关时间,服务端控制网关发送时间切入点,避免不同网关之间发送同频时撞包,同时设备端对应答回码进行优化判断,实现了发送状态与接收状态共存的半双工模式,解决了一网关对应多个设备端,网关下行通道少等问题,同时保证了一定的传输距离,在lora通信低速率的情况下,让通信的及时性与传输距离的可靠性并存,实现最大程度的相互统一。The embodiment of the present application provides a wireless communication data packet loss processing method, device, and medium. By synchronizing the gateway time, the server controls the entry point of the gateway sending time to avoid collision between different gateways when sending packets at the same frequency. The response code is optimized and judged, and the half-duplex mode in which the sending state and the receiving state coexist is realized, which solves the problem of one gateway corresponding to multiple device terminals, and the gateway has fewer downlink channels, while ensuring a certain transmission distance. In the case of high speed, the timeliness of communication and the reliability of transmission distance coexist to achieve the greatest degree of mutual unity.
本申请中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于设备和介质实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in the present application is described in a progressive manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and for relevant parts, refer to part of the description of the method embodiments.
本申请实施例提供的设备和介质与方法是一一对应的,因此,设备和介质也具有与其对应的方法类似的有益技术效果,由于上面已经对方法的有益技术效果进行了详细说明,因此,这里不再赘述设备和介质的有益技术效果。The devices and media provided in the embodiments of the present application correspond to the methods one by one, therefore, the devices and media also have beneficial technical effects similar to their corresponding methods. Since the beneficial technical effects of the method have been described in detail above, therefore, The beneficial technical effects of the equipment and media will not be repeated here.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowcharts and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。Memory may include non-permanent storage in computer readable media, in the form of random access memory (RAM) and/or nonvolatile memory such as read-only memory (ROM) or flash RAM. Memory is an example of computer readable media.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media, including both permanent and non-permanent, removable and non-removable media, can be implemented by any method or technology for storage of information. Information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cartridge, tape disk storage or other magnetic storage device or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media excludes transitory computer-readable media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes Other elements not expressly listed, or elements inherent in the process, method, commodity, or apparatus are also included. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above descriptions are only examples of the present application, and are not intended to limit the present application. For those skilled in the art, various modifications and changes may occur in this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the scope of the claims of the present application.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211707872.2A CN116133006B (en) | 2022-12-28 | 2022-12-28 | Method, device and medium for processing wireless communication data packet loss |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211707872.2A CN116133006B (en) | 2022-12-28 | 2022-12-28 | Method, device and medium for processing wireless communication data packet loss |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN116133006A true CN116133006A (en) | 2023-05-16 |
| CN116133006B CN116133006B (en) | 2025-09-02 |
Family
ID=86305839
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211707872.2A Active CN116133006B (en) | 2022-12-28 | 2022-12-28 | Method, device and medium for processing wireless communication data packet loss |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116133006B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117082652A (en) * | 2023-08-08 | 2023-11-17 | 北京中关村智连安全科学研究院有限公司 | Data transmission method and system based on LoRa ad hoc network same-frequency avoidance |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107801172A (en) * | 2017-09-18 | 2018-03-13 | 暨南大学 | LoRa gateways with adaptive channel function and the network system based on LoRa gateways |
| US20190349737A1 (en) * | 2018-05-09 | 2019-11-14 | Kiwi Technology Inc. | Wireless communication system, communication method and portable transceiver device |
| CN110677212A (en) * | 2019-10-30 | 2020-01-10 | 武汉慧联无限科技有限公司 | Time synchronization method, device and system and computer storage medium |
| KR102209861B1 (en) * | 2019-11-26 | 2021-01-29 | 주식회사 콕스랩 | Method, system and non-transitory computer-readable recording medium for managing position information of device based on lpwan |
| US20210227628A1 (en) * | 2020-01-21 | 2021-07-22 | Charter Communications Operating, Llc | Multi-mode wireless apparatus and methods of operation |
| CN113840319A (en) * | 2020-06-23 | 2021-12-24 | 上海东方富联科技有限公司 | Packet loss rate acquisition method, gateway coverage acquisition method, medium, and device |
| KR20220068624A (en) * | 2020-11-19 | 2022-05-26 | 부산대학교 산학협력단 | System and Method for Transmitting Opportunistic and On Demand based on Network Coding for Reliable Communication of LoRa System |
-
2022
- 2022-12-28 CN CN202211707872.2A patent/CN116133006B/en active Active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107801172A (en) * | 2017-09-18 | 2018-03-13 | 暨南大学 | LoRa gateways with adaptive channel function and the network system based on LoRa gateways |
| US20190349737A1 (en) * | 2018-05-09 | 2019-11-14 | Kiwi Technology Inc. | Wireless communication system, communication method and portable transceiver device |
| CN110677212A (en) * | 2019-10-30 | 2020-01-10 | 武汉慧联无限科技有限公司 | Time synchronization method, device and system and computer storage medium |
| KR102209861B1 (en) * | 2019-11-26 | 2021-01-29 | 주식회사 콕스랩 | Method, system and non-transitory computer-readable recording medium for managing position information of device based on lpwan |
| US20210227628A1 (en) * | 2020-01-21 | 2021-07-22 | Charter Communications Operating, Llc | Multi-mode wireless apparatus and methods of operation |
| CN113840319A (en) * | 2020-06-23 | 2021-12-24 | 上海东方富联科技有限公司 | Packet loss rate acquisition method, gateway coverage acquisition method, medium, and device |
| KR20220068624A (en) * | 2020-11-19 | 2022-05-26 | 부산대학교 산학협력단 | System and Method for Transmitting Opportunistic and On Demand based on Network Coding for Reliable Communication of LoRa System |
Non-Patent Citations (1)
| Title |
|---|
| 戴永成: "LoRa 通信技术在配变台区的应用", 《信息系统工程》, 20 June 2021 (2021-06-20) * |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117082652A (en) * | 2023-08-08 | 2023-11-17 | 北京中关村智连安全科学研究院有限公司 | Data transmission method and system based on LoRa ad hoc network same-frequency avoidance |
| CN117082652B (en) * | 2023-08-08 | 2024-05-07 | 北京中关村智连安全科学研究院有限公司 | Data transmission method and system based on LoRa ad hoc network same-frequency avoidance |
Also Published As
| Publication number | Publication date |
|---|---|
| CN116133006B (en) | 2025-09-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6241887B2 (en) | Peer-to-peer communication over restricted channels | |
| CA3048679C (en) | Group acknowledgement message efficiency | |
| US10244532B2 (en) | Channel structure for communication in wireless networks | |
| KR101524114B1 (en) | Dynamic channel reuse in multi-access communication systems | |
| US10397827B2 (en) | System and method for managing DSME network fluctuation in industrial wireless sensor network | |
| US20180109398A1 (en) | Master communication device for a token network | |
| US11419175B2 (en) | Reconstructing a personal area network or system after a failure in the network or system | |
| CN111314185B (en) | Ad hoc network method, ad hoc network response method, controlled equipment and gateway | |
| US10827526B2 (en) | Method of controlling data transmission in a wireless mesh network and node thereof | |
| US20180062803A1 (en) | Method and system for wireless communication between terminals and half-duplex base stations | |
| CN108353003B (en) | Method and apparatus for bulk propagation timing measurement messaging | |
| CN113259956A (en) | LoRa data transmission method, LoRa gateway, LoRa node and LoRa network | |
| US11647431B2 (en) | Heterogeneous networks using two channel hopping protocols | |
| CN116133006A (en) | A wireless communication data packet loss processing method, device and medium | |
| US20160050040A1 (en) | Radio communication system and radio communication method | |
| US10056931B2 (en) | Digital remote antennas operation | |
| EP2651171A1 (en) | Hybrid access protocol for network nodes | |
| JP2021511704A (en) | Data transmission methods, devices, and systems | |
| CN107548019B (en) | Method and device for processing network beacon in wireless sensor network | |
| WO2024051488A1 (en) | Information transmission method and apparatus | |
| CN113411816A (en) | Single-channel LoRa gateway and networking method thereof, and network server | |
| US20250081236A1 (en) | Narrowband backscatter device excitation for multiple backscatter device scheduling | |
| US20250274999A1 (en) | Massively coordinated access point (ap) service periods and service intervals | |
| Xiao et al. | Dynamic time slot allocation method for deterministic communication in UAV formation | |
| WO2024238414A1 (en) | Receiver and transmitter assistance for backscatter devices |
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 |