CN108200591A - Internet of Things wireless device, terminal and its network quality of communication detection method and system - Google Patents

Internet of Things wireless device, terminal and its network quality of communication detection method and system Download PDF

Info

Publication number
CN108200591A
CN108200591A CN201810144299.6A CN201810144299A CN108200591A CN 108200591 A CN108200591 A CN 108200591A CN 201810144299 A CN201810144299 A CN 201810144299A CN 108200591 A CN108200591 A CN 108200591A
Authority
CN
China
Prior art keywords
terminal
time
communication
network
signal strength
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.)
Pending
Application number
CN201810144299.6A
Other languages
Chinese (zh)
Inventor
崔伟
李顺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN201810144299.6A priority Critical patent/CN108200591A/en
Publication of CN108200591A publication Critical patent/CN108200591A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic

Landscapes

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

Abstract

本发明提供一种物联无线设备、终端及二者通信的网络质量检测方法与系统,其中该方法包括:终端在发送心跳数据包时记录第一时间;物联无线设备在接收到所述心跳数据包之后,检测无线信号强度,并将所述无线信号强度封装在心跳应答包中,发送封装后的所述心跳应答包;所述终端接收到封装后的所述心跳应答包时记录第二时间,计算所述第一时间与第二时间之间的通信耗时,并解析所述心跳应答包得到所述无线信号强度,以及根据所述通信耗时分析确定网络质量。本发明能够有效保证终端能够持续获取到真实的网络状况。

The present invention provides a network quality detection method and system for IoT wireless devices, terminals, and communication between the two, wherein the method includes: recording the first time when the terminal sends a heartbeat data packet; the IoT wireless device receives the heartbeat After the data packet, detect the wireless signal strength, encapsulate the wireless signal strength in a heartbeat response packet, and send the encapsulated heartbeat response packet; when the terminal receives the encapsulated heartbeat response packet, record the second Time, calculating the communication time between the first time and the second time, and analyzing the heartbeat response packet to obtain the wireless signal strength, and determining the network quality according to the communication time analysis. The invention can effectively ensure that the terminal can continuously obtain the real network status.

Description

物联无线设备、终端及其通信的网络质量检测方法与系统Network quality detection method and system for IoT wireless devices, terminals and communication thereof

技术领域technical field

本发明涉及物联网领域,尤其涉及一种物联无线设备、终端及二者通信的网络质量检测方法与系统。The invention relates to the field of the Internet of Things, in particular to a network quality detection method and system for an Internet of Things wireless device, a terminal, and communication between the two.

背景技术Background technique

伴随物联网时代迅猛发展,市场上wifi物联产品种类和存量也在急剧增加。通过网络终端进行控制wifi物联产品的技术已经非常成熟。特别是智能家居及其他惠及人民生活的许多智能数码产品都已经配备了wifi网络接入功能。With the rapid development of the Internet of Things era, the types and stocks of wifi IoT products on the market are also increasing sharply. The technology of controlling wifi IoT products through network terminals is very mature. Especially smart home and many other smart digital products that benefit people's lives have been equipped with wifi network access functions.

wifi物联产品的应用场景通常是手机与wifi在同一个无线局域网下,手机APP通过网络与wifi设备直接进行数据通信,以实现控制wifi设备或数据传输的目的。由于wifi设备与云端、手机APP之间等都是通过网络进行数据通信,所以它们之间网络质量尤为重要。特别是当手机APP和wifi产品之间有可能存在较大数据量或者频繁的数据通信时,如果网络不好,很可能会导致数据通信失败,进而影响到用户体验。因此,手机APP与wifi设备之间有必要获取到网络状态。The application scenario of wifi IoT products is usually that the mobile phone and wifi are under the same wireless local area network, and the mobile APP directly communicates with the wifi device through the network to achieve the purpose of controlling the wifi device or data transmission. Since the wifi device communicates with the cloud and mobile APP through the network, the quality of the network between them is particularly important. Especially when there may be a large amount of data or frequent data communication between the mobile APP and wifi products, if the network is not good, it is likely to cause data communication failure, which will affect the user experience. Therefore, it is necessary to obtain the network status between the mobile APP and the wifi device.

现有的wifi设备与手机APP之间没有网络状态的上报,通常APP会设置一个超时时间(记为T),如果给wifi设备发送网络数据后,在T时间内没有收到,则认为是网络超时。这种机制主要缺点有:There is no network status report between the existing wifi device and the mobile APP. Usually, the APP will set a timeout period (denoted as T). If the network data is not received within T time after sending to the wifi device, it is considered to be a network error. time out. The main disadvantages of this mechanism are:

APP与wifi设备之间并不是一直存在数据通信。如果APP与设备间没有数据通信,那么APP无法判断网络质量的好坏。There is not always data communication between the APP and the wifi device. If there is no data communication between the APP and the device, the APP cannot judge the quality of the network.

发明内容Contents of the invention

本发明旨在解决上面描述的问题。本发明的一个目的是提供一种解决以上问题中的任何一个的物联无线设备、终端及二者通信的网络质量检测方法与系统。具体地,本发明提供能够有效保证终端能够持续获取到真实的网络状况。The present invention aims to solve the problems described above. An object of the present invention is to provide a method and system for detecting network quality of an IoT wireless device, a terminal, and communication between the two, which solve any of the above problems. Specifically, the present invention can effectively ensure that the terminal can continuously obtain the real network status.

根据本发明的第一方面,一种物联无线设备与终端通信的网络质量检测方法,包括:终端在发送心跳数据包时记录第一时间;物联无线设备在接收到所述心跳数据包之后,检测无线信号强度,并将所述无线信号强度封装在心跳应答包中,发送封装后的所述心跳应答包;所述终端接收到封装后的所述心跳应答包时记录第二时间,计算所述第二时间与第一时间之间差值得到通信耗时,并解析所述心跳应答包得到所述无线信号强度,以及根据所述通信耗时分析确定网络质量。According to the first aspect of the present invention, a network quality detection method for communication between an IoT wireless device and a terminal, comprising: recording the first time when the terminal sends a heartbeat data packet; after receiving the heartbeat data packet, the IoT wireless device , detect the wireless signal strength, and encapsulate the wireless signal strength in a heartbeat response packet, and send the encapsulated heartbeat response packet; when the terminal receives the encapsulated heartbeat response packet, record the second time, and calculate The difference between the second time and the first time is used to obtain the communication time consumption, and the heartbeat response packet is analyzed to obtain the wireless signal strength, and the network quality is determined according to the communication time consumption analysis.

进一步地,所述根据所述通信耗时及所述无线信号强度分析确定网络质量的步骤包括:当所述通信耗时大于第一预设阈值时,确定网络质量差;当所述通信耗时大于第二预设阈值时,确定所述终端与所述物联无线设备通讯失败,并在所述无线信号强度小于预设强度时,确定无线网络故障,其中,所述第二预设阈值大于所述第一预设阈值。Further, the step of determining the network quality according to the communication time-consuming and the wireless signal strength analysis includes: when the communication time-consuming is greater than a first preset threshold, determining that the network quality is poor; when the communication time-consuming When it is greater than a second preset threshold, it is determined that the communication between the terminal and the IoT wireless device fails, and when the wireless signal strength is less than a preset strength, it is determined that the wireless network is faulty, wherein the second preset threshold is greater than The first preset threshold.

进一步地,所述的物联无线设备与终端通信的网络质量检测方法,当确定网络质量差之后包括:所述终端减少发送至网络的数据量直至述通信耗时不大于所述第一预设阈值。Further, the network quality detection method for the communication between the IoT wireless device and the terminal, after determining that the network quality is poor, includes: the terminal reduces the amount of data sent to the network until the communication time is not greater than the first preset threshold.

进一步地,所述根据所述无线信号强度是否为无线网络故障的步骤之后包括:若根据所述无线信号强度确定为无线网络故障,生成并控制显示无线网络故障提示信息。Further, after the step of determining whether the wireless network is faulty according to the wireless signal strength, the step includes: if it is determined that the wireless network is faulty according to the wireless signal strength, generating and controlling to display wireless network fault prompt information.

根据本发明的第二方面,一种终端,包括:第一记录模块,用于在发送心跳数据包时记录第一时间;第二记录模块,用于在收到封装有无线信号强度的心跳应答包时,记录第二时间;计算模块,用于计算所述第二时间与第一时间之间差值得到通信耗时;解析模块,用于解析所述心跳应答包得到所述无线信号强度;分析模块,用于根据所述通信耗时分析确定网络质量。According to a second aspect of the present invention, a terminal includes: a first recording module, configured to record the first time when sending a heartbeat data packet; a second recording module, configured to receive a heartbeat response encapsulated with wireless signal strength Packet time, record the second time; calculation module, used to calculate the difference between the second time and the first time to obtain the communication time; analysis module, used to analyze the heartbeat response packet to obtain the wireless signal strength; An analysis module, configured to determine network quality according to the communication time-consuming analysis.

进一步地,所述分析模块具体用于:当所述通信耗时大于第一预设阈值时,确定网络质量差;当所述通信耗时大于第二预设阈值时,确定所述终端与所述物联无线设备通讯失败,并在所述无线信号强度小于预设强度时,确定无线网络故障,所述第二预设阈值大于所述第一预设阈值。Further, the analysis module is specifically configured to: determine that the network quality is poor when the communication time is greater than a first preset threshold; The IoT wireless device fails to communicate, and when the wireless signal strength is lower than a preset strength, it is determined that the wireless network is faulty, and the second preset threshold is greater than the first preset threshold.

进一步地,所述的终端还包括:处理模块,用于所述分析模块确定网络质量差时,减少发送至网络的数据量直至述通信耗时不大于所述第一预设阈值。Further, the terminal further includes: a processing module, configured to reduce the amount of data sent to the network until the communication time is not greater than the first preset threshold when the analysis module determines that the network quality is poor.

进一步地,所述处理模块还用于:在所述分析模块确定无线网络故障时,生成并控制显示无线网络故障提示信息。Further, the processing module is further configured to: when the analysis module determines that the wireless network is faulty, generate and control to display wireless network fault prompt information.

根据本发明的第三方面,一种物联无线设备,包括:检测模块,用于在接收到所述心跳数据包之后,检测无线信号强度;封装模块,用于将所述无线信号强度封装在心跳应答包中;发送模块,用于发送封装后的所述心跳应答包。According to a third aspect of the present invention, an IoT wireless device includes: a detection module, configured to detect the strength of a wireless signal after receiving the heartbeat data packet; a packaging module, configured to encapsulate the strength of the wireless signal in In the heartbeat response packet; a sending module, configured to send the encapsulated heartbeat response packet.

根据本发明的第四方面,一种物联无线设备与终端通信的网络质量检测系统,其特征在于,包括所述终端以及所述的物联无线设备,所述终端与物联无线设备通信连接。According to the fourth aspect of the present invention, a network quality detection system for communication between an IoT wireless device and a terminal is characterized in that it includes the terminal and the IoT wireless device, and the terminal is connected to the IoT wireless device by communication .

本发明各实施例通过将无线信号强度封装在心跳应答包,终端能够获取到真实的网络状况,优选地还可以根据通信耗时和RSSI值来判断网络质量,对数据传输分类处理或对数据通信超时进行分析,以提高用户体验。In each embodiment of the present invention, by encapsulating the wireless signal strength in the heartbeat response packet, the terminal can obtain the real network status, and preferably can also judge the network quality according to the communication time and RSSI value, and classify and process the data transmission or the data communication Timeouts are analyzed to improve user experience.

参照附图来阅读对于示例性实施例的以下描述,本发明的其他特性特征和优点将变得清晰。Other characteristic features and advantages of the present invention will become apparent from the following description of exemplary embodiments read with reference to the accompanying drawings.

附图说明Description of drawings

并入到说明书中并且构成说明书的一部分的附图示出了本发明的实施例,并且与描述一起用于解释本发明的原理。在这些附图中,类似的附图标记用于表示类似的要素。下面描述中的附图是本发明的一些实施例,而不是全部实施例。对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,可以根据这些附图获得其他的附图。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate the embodiments of the invention and together with the description serve to explain the principles of the invention. In the drawings, like reference numerals are used to denote like elements. The drawings in the following description are some, but not all, embodiments of the present invention. Those skilled in the art can obtain other drawings based on these drawings without creative efforts.

图1示例性地示出了本发明实施例物联无线设备与终端通信的网络质量检测方法的信令交互图;FIG. 1 exemplarily shows a signaling interaction diagram of a network quality detection method for communication between an IoT wireless device and a terminal according to an embodiment of the present invention;

图2示例性地示出了本发明实施例终端的结构框图;FIG. 2 exemplarily shows a structural block diagram of a terminal according to an embodiment of the present invention;

图3示例性地示出了本发明实施例物联无线设备的结构框图。Fig. 3 exemplarily shows a structural block diagram of an IoT wireless device according to an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.

以下各实施例中终端以具有APP的手机以及物联无线设备以wifi设备为例进行解释说明,不应做限定性解释。In the following embodiments, the terminal is explained by taking the mobile phone with APP and the wireless device of the Internet of Things by taking the wifi device as an example, and should not be interpreted in a limiting manner.

实施例一:Embodiment one:

如图1所示,本发明实施例物联无线设备与终端通信的网络质量检测方法在预设时间间隔内循环执行如下步骤,该方法具体包括:As shown in Figure 1, the network quality detection method for the communication between the IoT wireless device and the terminal in the embodiment of the present invention performs the following steps cyclically within a preset time interval, and the method specifically includes:

步骤101,终端向物联无线设备发送网络连接请求;Step 101, the terminal sends a network connection request to the IoT wireless device;

步骤102,物联无线设备应答网络连接请求,建立网络连接成功;Step 102, the IoT wireless device responds to the network connection request, and the network connection is successfully established;

步骤103:终端发送心跳数据包,并记录第一时间;Step 103: the terminal sends a heartbeat data packet, and records the first time;

步骤104:物联无线设备在接收到所述心跳数据包之后,检测无线信号强度,并将所述无线信号强度封装在心跳应答包中;Step 104: After receiving the heartbeat data packet, the IoT wireless device detects the wireless signal strength, and encapsulates the wireless signal strength in a heartbeat response packet;

步骤105:发送封装后的所述心跳应答包;Step 105: sending the encapsulated heartbeat response packet;

步骤106:所述终端接收到封装后的所述心跳应答包时记录第二时间,计算所述二时间与第一时间之间差值得到通信耗时,并解析所述心跳应答包得到所述无线信号强度,以及根据所述通信耗时分析确定网络质量。Step 106: When the terminal receives the encapsulated heartbeat response packet, record the second time, calculate the difference between the second time and the first time to obtain the communication time, and analyze the heartbeat response packet to obtain the wireless signal strength, and determine network quality according to the communication time-consuming analysis.

在具体操作时,至少还包括以下一种优选方式:In specific operation, at least one of the following preferred modes is also included:

第一种:所述根据所述通信耗时及所述无线信号强度分析确定网络质量的步骤包括:The first method: the step of determining the network quality according to the communication time consumption and the wireless signal strength analysis includes:

当所述通信耗时大于第一预设阈值时,确定网络质量差;When the communication time is greater than a first preset threshold, it is determined that the network quality is poor;

当所述通信耗时大于第二预设阈值时,确定所述终端与所述物联无线设备通讯失败,并在所述无线信号强度小于预设强度时,确定无线网络故障,其中,所述第二预设阈值大于所述第一预设阈值。When the communication time is greater than a second preset threshold, it is determined that the communication between the terminal and the IoT wireless device fails, and when the wireless signal strength is less than a preset strength, it is determined that the wireless network is faulty, wherein the The second preset threshold is greater than the first preset threshold.

第二种:当确定网络质量差之后包括:The second type: when it is determined that the network quality is poor, it includes:

所述终端减少发送至网络的数据量直至述通信耗时不大于所述第一预设阈值。The terminal reduces the amount of data sent to the network until the communication time is not greater than the first preset threshold.

第三种:所述根据所述无线信号强度是否为无线网络故障的步骤之后包括:The third type: after the step of determining whether the wireless signal strength is a wireless network failure, include:

若根据所述无线信号强度确定为无线网络故障,生成并控制显示无线网络故障提示信息。If it is determined that the wireless network is faulty according to the wireless signal strength, generate and control to display wireless network fault prompt information.

由于判断网络质量的一个重要参数是数据通信耗时,通信耗时越小,说明通过数据收发越块,网络质量越好。心跳包是在网络通信中,在客户端(终端)和服务器(物联无线设备)间定时通知对方自己状态的一个自己定义的命令字,按照一定的时间间隔发送,类似于心跳,用于检测网络连接是否正常。心跳定时通信是APP与wifi设备之间已有的机制,实现流程是APP(客户端)定时(通常设置为10s一次)发送心跳包,服务器端(wifi设备)收到心跳包后立即回复应答包。此外,无线网络质量的一个主要参数是设备检测到的wifi信号强度(RSSI(Received Signal Strength Indicator),wifi设备接收的信号强度指示)。APP与设备是通过无线网络进行网络通信,因此需要将该参数上报至APP端。本发明设计为将模块检测的RSSI值封装在心跳应答包中。依据通信耗时与RSSI值进行网络质量检测。Since an important parameter for judging the network quality is the time-consuming data communication, the smaller the communication time is, the faster the data is sent and received, and the better the network quality is. The heartbeat packet is a self-defined command word between the client (terminal) and the server (wireless device of the Internet of Things) to regularly notify the other party of its status in network communication. It is sent at a certain time interval, similar to heartbeat, and used to detect Whether the network connection is normal. Heartbeat timing communication is an existing mechanism between APP and wifi device. The implementation process is that APP (client) sends a heartbeat packet at regular intervals (usually set to once every 10s), and the server (wifi device) immediately responds with a response packet after receiving the heartbeat packet. . In addition, a main parameter of wireless network quality is the wifi signal strength detected by the device (RSSI (Received Signal Strength Indicator), the signal strength indication received by the wifi device). The APP and the device communicate through the wireless network, so this parameter needs to be reported to the APP. The present invention is designed to encapsulate the RSSI value detected by the module in the heartbeat response packet. Network quality detection is performed based on communication time consumption and RSSI value.

本实施例通过以wifi无线联网机制和TCP/IP网络架构为基础,将网络状况上报与现有的APP与wifi设备的数据交互流程结合一起,实现简单,操作便捷,能够有效保证手机APP能够持续获取到真实的网络状况。In this embodiment, based on the wifi wireless networking mechanism and the TCP/IP network architecture, the network status report is combined with the existing data interaction process between the APP and the wifi device. Get the real network status.

实施例二:Embodiment two:

如图2所示,本发明实施例终端包括:As shown in Figure 2, the terminal of the embodiment of the present invention includes:

第一记录模块,用于在发送心跳数据包时记录第一时间;The first recording module is used to record the first time when sending the heartbeat packet;

第二记录模块,用于在收到封装有无线信号强度的心跳应答包时,记录第二时间;The second recording module is used to record the second time when receiving the heartbeat response packet encapsulated with wireless signal strength;

计算模块,用于计算所述第二时间与第一时间之间差值得到通信耗时;a calculation module, configured to calculate the difference between the second time and the first time to obtain the communication time;

解析模块,用于解析所述心跳应答包得到所述无线信号强度;An analysis module, configured to analyze the heartbeat response packet to obtain the wireless signal strength;

分析模块,用于根据所述通信耗时分析确定网络质量。An analysis module, configured to determine network quality according to the communication time-consuming analysis.

在具体操作时,至少还包括以下一种优选方式:In specific operation, at least one of the following preferred modes is also included:

第一种,所述分析模块具体用于:First, the analysis module is specifically used for:

当所述通信耗时大于第一预设阈值时,确定网络质量差;When the communication time is greater than a first preset threshold, it is determined that the network quality is poor;

当所述通信耗时大于第二预设阈值时,确定所述终端与所述物联无线设备通讯失败,并并在所述无线信号强度小于预设强度时,确定无线网络故障,所述第二预设阈值大于所述第一预设阈值。When the communication time is greater than a second preset threshold, it is determined that the communication between the terminal and the IoT wireless device fails, and when the wireless signal strength is less than a preset strength, it is determined that the wireless network is faulty, the second The second preset threshold is greater than the first preset threshold.

第二种,终端还包括:处理模块,用于所述分析模块确定网络质量差时,减少发送至网络的数据量直至述通信耗时不大于所述第一预设阈值。减少发送至网络的数据量的手段,如避免频繁的数据重发或者批量数据传输等,等到网络质量较好时再进行此类数据的传输。In the second type, the terminal further includes: a processing module, configured to reduce the amount of data sent to the network until the communication time is not greater than the first preset threshold when the analysis module determines that the network quality is poor. Means to reduce the amount of data sent to the network, such as avoiding frequent data retransmission or batch data transmission, etc., and wait until the network quality is better before transmitting such data.

第三种,所述处理模块还用于:在所述分析模块确定无线网络故障时,生成并控制显示无线网络故障提示信息。In a third type, the processing module is further configured to: when the analysis module determines that the wireless network is faulty, generate and control to display wireless network fault prompt information.

本实施例结合现有的APP与wifi设备通信流程,APP能够获取到真实的网络状况,实现灵活、简单。APP可以根据通信耗时和RSSI值来判断网络质量,对数据传输分类处理或对数据通信超时进行分析,以提高用户体验。This embodiment combines the existing APP and wifi device communication process, and the APP can obtain the real network status, which is flexible and simple. The APP can judge the network quality according to the communication time and RSSI value, classify and process the data transmission or analyze the data communication timeout to improve the user experience.

实施例三:Embodiment three:

如图3所示,本发明实施例物联无线设备包括:As shown in Figure 3, the IoT wireless device according to the embodiment of the present invention includes:

检测模块,用于在接收到所述心跳数据包之后,检测无线信号强度;A detection module, configured to detect the wireless signal strength after receiving the heartbeat data packet;

封装模块,用于将所述无线信号强度封装在心跳应答包中;An encapsulation module, configured to encapsulate the wireless signal strength in a heartbeat response packet;

发送模块,用于发送封装后的所述心跳应答包。A sending module, configured to send the encapsulated heartbeat response packet.

本实施例物联无线设备参与进行根据心跳机制结合wifi设备RSSI值的方法,流程上没有增加额外的操作,实现简单便捷;而且能够持续APP与wifi设备的网络状况,提高用户操作体验。In this embodiment, the IoT wireless device participates in the method of combining the RSSI value of the wifi device based on the heartbeat mechanism. There is no additional operation added to the process, which is simple and convenient; and it can continue the network status of the APP and the wifi device to improve user experience.

本发明还提供一种物联无线设备与终端通信的网络质量检测系统,包括所述终端以及所述的物联无线设备,所述终端与物联无线设备通信连接。由于该网络质量检测系统具有网络质量检测方法、物联无线设备及终端相应的技术效果,在此不再赘述。The present invention also provides a network quality detection system for communication between an IoT wireless device and a terminal, including the terminal and the IoT wireless device, and the terminal is connected to the IoT wireless device for communication. Since the network quality detection system has the corresponding technical effects of the network quality detection method, the IoT wireless device and the terminal, details will not be described here.

上面描述的内容可以单独地或者以各种方式组合起来实施,而这些变型方式都在本发明的保护范围之内。The content described above can be implemented alone or combined in various ways, and these variants are all within the protection scope of the present invention.

最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制。尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: they can still modify the technical solutions described in the aforementioned embodiments, or perform equivalent replacements for some of the technical features; and these The modification or replacement does not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims (10)

1.一种物联无线设备与终端通信的网络质量检测方法,其特征在于,所述方法包括:1. A network quality detection method for communication between an IoT wireless device and a terminal, characterized in that the method comprises: 终端在发送心跳数据包时记录第一时间;The terminal records the first time when sending the heartbeat packet; 物联无线设备在接收到所述心跳数据包之后,检测无线信号强度,并将所述无线信号强度封装在心跳应答包中,发送封装后的所述心跳应答包;After receiving the heartbeat data packet, the IoT wireless device detects the wireless signal strength, encapsulates the wireless signal strength in a heartbeat response packet, and sends the encapsulated heartbeat response packet; 所述终端接收到封装后的所述心跳应答包时记录第二时间,计算所述第二时间与第一时间之间差值得到通信耗时,并解析所述心跳应答包得到所述无线信号强度,以及根据所述通信耗时分析确定网络质量。When the terminal receives the encapsulated heartbeat response packet, record the second time, calculate the difference between the second time and the first time to obtain the communication time, and analyze the heartbeat response packet to obtain the wireless signal strength, and determine the network quality according to the communication time-consuming analysis. 2.如权利要求1所述的物联无线设备与终端通信的网络质量检测方法,其特征在于,所述根据所述通信耗时分析确定网络质量的步骤包括:2. The network quality detection method for IoT wireless device and terminal communication according to claim 1, wherein the step of determining the network quality according to the time-consuming analysis of the communication comprises: 当所述通信耗时大于第一预设阈值时,确定网络质量差;When the communication time is greater than a first preset threshold, it is determined that the network quality is poor; 当所述通信耗时大于第二预设阈值时,确定所述终端与所述物联无线设备通讯失败,并在所述无线信号强度小于预设强度时,确定无线网络故障,其中,所述第二预设阈值大于所述第一预设阈值。When the communication time is greater than a second preset threshold, it is determined that the communication between the terminal and the IoT wireless device fails, and when the wireless signal strength is less than a preset strength, it is determined that the wireless network is faulty, wherein the The second preset threshold is greater than the first preset threshold. 3.如权利要求2所述的物联无线设备与终端通信的网络质量检测方法,其特征在于,当确定网络质量差之后包括:3. The network quality detection method for IoT wireless device and terminal communication according to claim 2, characterized in that, after determining that the network quality is poor, it includes: 所述终端减少发送至网络的数据量直至述通信耗时不大于所述第一预设阈值。The terminal reduces the amount of data sent to the network until the communication time is not greater than the first preset threshold. 4.如权利要求3所述的物联无线设备与终端通信的网络质量检测方法,其特征在于,所述根据所述无线信号强度是否为无线网络故障的步骤之后包括:4. The network quality detection method for IoT wireless device and terminal communication as claimed in claim 3, characterized in that, after the step of determining whether the wireless signal strength is a wireless network failure, the step includes: 若根据所述无线信号强度确定为无线网络故障,生成并控制显示无线网络故障提示信息。If it is determined that the wireless network is faulty according to the wireless signal strength, generate and control to display wireless network fault prompt information. 5.一种终端,其特征在于,包括:5. A terminal, characterized in that, comprising: 第一记录模块,用于在发送心跳数据包时记录第一时间;The first recording module is used to record the first time when sending the heartbeat packet; 第二记录模块,用于在收到封装有无线信号强度的心跳应答包时,记录第二时间;The second recording module is used to record the second time when receiving the heartbeat response packet encapsulated with wireless signal strength; 计算模块,用于计算所述第二时间与第一时间之间差值得到通信耗时;a calculation module, configured to calculate the difference between the second time and the first time to obtain the communication time; 解析模块,用于解析所述心跳应答包得到所述无线信号强度;An analysis module, configured to analyze the heartbeat response packet to obtain the wireless signal strength; 分析模块,用于根据所述通信耗时分析确定网络质量。An analysis module, configured to determine network quality according to the communication time-consuming analysis. 6.如权利要求5所述的终端,其特征在于,所述分析模块具体用于:6. The terminal according to claim 5, wherein the analysis module is specifically used for: 当所述通信耗时大于第一预设阈值时,确定网络质量差;When the communication time is greater than a first preset threshold, it is determined that the network quality is poor; 当所述通信耗时大于第二预设阈值时,确定所述终端与所述物联无线设备通讯失败,并在所述无线信号强度小于预设强度时,确定无线网络故障,所述第二预设阈值大于所述第一预设阈值。When the communication time is greater than a second preset threshold, it is determined that the terminal fails to communicate with the IoT wireless device, and when the wireless signal strength is less than a preset strength, it is determined that the wireless network is faulty, and the second The preset threshold is greater than the first preset threshold. 7.如权利要求6所述的终端,其特征在于,还包括:7. The terminal according to claim 6, further comprising: 处理模块,用于所述分析模块确定网络质量差时,减少发送至网络的数据量直至述通信耗时不大于所述第一预设阈值。The processing module is used for reducing the amount of data sent to the network until the communication time is not greater than the first preset threshold when the analysis module determines that the network quality is poor. 8.如权利要求7所述的终端,其特征在于,所述处理模块还用于:在所述分析模块确定无线网络故障时,生成并控制显示无线网络故障提示信息。8 . The terminal according to claim 7 , wherein the processing module is further configured to: when the analysis module determines that the wireless network is faulty, generate and control to display wireless network fault prompt information. 9.一种物联无线设备,其特征在于,包括:9. A wireless device for the Internet of Things, comprising: 检测模块,用于在接收到所述心跳数据包之后,检测无线信号强度;A detection module, configured to detect the wireless signal strength after receiving the heartbeat data packet; 封装模块,用于将所述无线信号强度封装在心跳应答包中;An encapsulation module, configured to encapsulate the wireless signal strength in a heartbeat response packet; 发送模块,用于发送封装后的所述心跳应答包。A sending module, configured to send the encapsulated heartbeat response packet. 10.一种物联无线设备与终端通信的网络质量检测系统,其特征在于,包括如权利要求5-8中任一项所述终端以及如权利要求9所述的物联无线设备,所述终端与物联无线设备通信连接。10. A network quality detection system for communication between an IoT wireless device and a terminal, characterized in that it includes the terminal according to any one of claims 5-8 and the IoT wireless device according to claim 9, the The terminal communicates with the IoT wireless device.
CN201810144299.6A 2018-02-12 2018-02-12 Internet of Things wireless device, terminal and its network quality of communication detection method and system Pending CN108200591A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810144299.6A CN108200591A (en) 2018-02-12 2018-02-12 Internet of Things wireless device, terminal and its network quality of communication detection method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810144299.6A CN108200591A (en) 2018-02-12 2018-02-12 Internet of Things wireless device, terminal and its network quality of communication detection method and system

Publications (1)

Publication Number Publication Date
CN108200591A true CN108200591A (en) 2018-06-22

Family

ID=62593837

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810144299.6A Pending CN108200591A (en) 2018-02-12 2018-02-12 Internet of Things wireless device, terminal and its network quality of communication detection method and system

Country Status (1)

Country Link
CN (1) CN108200591A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111246506A (en) * 2020-01-15 2020-06-05 四川众合智控科技有限公司 Graphical analysis method based on RSSI data

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102938923A (en) * 2012-11-05 2013-02-20 Tcl通讯(宁波)有限公司 Wireless access point sequencing method based on mobile terminal and mobile terminal
CN103957551A (en) * 2014-05-13 2014-07-30 江苏省无线电科学研究所有限公司 Communication state real-time monitoring method in automatic meteorological station
CN105591840A (en) * 2015-12-23 2016-05-18 武汉烽火信息集成技术有限公司 Automatic test platform and method used for testing track traffic signal system
US20170135104A1 (en) * 2015-11-10 2017-05-11 Netgear, Inc. Dedicated backhaul for whole home coverage

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102938923A (en) * 2012-11-05 2013-02-20 Tcl通讯(宁波)有限公司 Wireless access point sequencing method based on mobile terminal and mobile terminal
CN103957551A (en) * 2014-05-13 2014-07-30 江苏省无线电科学研究所有限公司 Communication state real-time monitoring method in automatic meteorological station
US20170135104A1 (en) * 2015-11-10 2017-05-11 Netgear, Inc. Dedicated backhaul for whole home coverage
CN105591840A (en) * 2015-12-23 2016-05-18 武汉烽火信息集成技术有限公司 Automatic test platform and method used for testing track traffic signal system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111246506A (en) * 2020-01-15 2020-06-05 四川众合智控科技有限公司 Graphical analysis method based on RSSI data

Similar Documents

Publication Publication Date Title
CN103428627B (en) The transfer approach of data, Internet of things system and related device in Internet of things system
CN102789187B (en) Identification method for pan-tilt equipment, pan-tilt equipment, camera and control system for pan-tilt equipment
CN110505220B (en) Method and device for supporting OPC protocol to realize dual-computer hot standby and communication terminal
CN108093430B (en) A wireless network detection method suitable for high-speed mobile environment
KR102558475B1 (en) Method for network state identification and electronic device thereof
CN103518342A (en) A heartbeat signal transmission control method and device
CN110113771B (en) Data processing method, device, gateway device and storage medium
CN107333287A (en) Network detecting method, network detection means and intelligent terminal
CN117061638B (en) Message transmission method, device, storage medium, equipment and system
CN110209559A (en) A non-invasive monitoring method, control device and storage medium
CN107078920A (en) Cross-layer link failure is alerted
WO2019015040A1 (en) Signal strength based frequency point selection method and internet of things terminal
CN108200591A (en) Internet of Things wireless device, terminal and its network quality of communication detection method and system
CN107231647A (en) Network detection method, network detection device and intelligent terminal
CN107276856A (en) Network detection method, network detection device and intelligent terminal
CN115460559A (en) Wireless sensing method, device, equipment and storage medium
CN102752884B (en) The Internet of things system of sing on web technology and the data processing method of this system
CN103997416B (en) The error correction method and error correction device of mobile terminal Internet access
TWI609591B (en) A system and method for controlling quality of data transmission
CN107332739A (en) Network detection method, network detection device and intelligent terminal
CN111201806B (en) Method and device for reporting information by terminal and computer storage medium
CN109361915A (en) A kind of wired network camera mounting test system and method
CN115941809A (en) Aggregation processing method and system for multiple Internet of Things terminal protocols for DCIM
CN107733702A (en) The method and apparatus that operational state of mainframe is managed in group system
CN107360059A (en) Network detecting method, network detection means and intelligent terminal

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180622