WO2018077129A1 - 数据处理的方法及装置 - Google Patents

数据处理的方法及装置 Download PDF

Info

Publication number
WO2018077129A1
WO2018077129A1 PCT/CN2017/107265 CN2017107265W WO2018077129A1 WO 2018077129 A1 WO2018077129 A1 WO 2018077129A1 CN 2017107265 W CN2017107265 W CN 2017107265W WO 2018077129 A1 WO2018077129 A1 WO 2018077129A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
packet
mobile terminal
time
module
Prior art date
Application number
PCT/CN2017/107265
Other languages
English (en)
French (fr)
Inventor
周超能
Original Assignee
深圳创维数字技术有限公司
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 深圳创维数字技术有限公司 filed Critical 深圳创维数字技术有限公司
Publication of WO2018077129A1 publication Critical patent/WO2018077129A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/03Protecting confidentiality, e.g. by encryption
    • H04W12/033Protecting confidentiality, e.g. by encryption of the user plane, e.g. user's traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • H04L49/9057Arrangements for supporting packet reassembly or resequencing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Definitions

  • the present disclosure relates to the technical field of the Internet of Things, for example, to a method and apparatus for data processing.
  • the intelligent control terminal is connected to the smart device in the WiFi access point (WiFi AP) mode, and after transmitting the configuration information to the smart device, the smart device The device configures its own network settings and initiates an access procedure with the WiFi AP of the target network to implement access.
  • the intelligent control terminal and the smart device are based on the Institute of Electrical and Electronic Engineers (IEEE).
  • the User Datagram Protocol (UDP) broadcast packet of the 802.11 protocol standard implements transmission of configuration information.
  • the other method is: the intelligent control terminal directly sends the configuration information based on the UDP multicast data packet, and the smart device parses the corresponding multicast data frame according to the protocol that the smart control terminal complies with to obtain the corresponding configuration information, and uses the The configuration information configures its own network settings to complete access to the target network.
  • the above two methods can connect the smart device to the network, so that the user can control from the remote end, so-called Internet of Things (IoT).
  • IoT Internet of Things
  • the connection speed of the intelligent module to the network device is slow, the time is long, and the user experience is poor; and, in the same network environment
  • the anti-interference ability is almost zero.
  • anti-interference if two or more mobile terminals are connected to the network device at the same time, it is impossible to achieve the same. Even if the two mobile terminals send the same message, the intelligent module cannot be connected. Network equipment, poor anti-interference.
  • the present disclosure provides a data processing method and apparatus, which can solve the problem of how to improve the connection speed and anti-interference ability of the intelligent module.
  • a method of data processing applied to an intelligent module comprising:
  • the intelligent module scans the channel according to a preset sequence and a time interval to lock a channel, and acquires message data on the locked channel, where the message data includes multiple data packets;
  • the intelligent module reassembles the packet data according to the identifier of each data packet carried in the packet data, and decodes the packet data according to an encryption factor in the packet data.
  • the smart module scans the channel according to a preset sequence and a time interval, including:
  • the smart module continues scanning on a channel scanned with a data packet, and the time of continuing scanning is a preset first time;
  • the next channel is scanned according to the preset sequence and the time interval.
  • the packet data is packet data sent by the mobile terminal according to a preset packetization manner
  • the intelligent module acquires packet data on the locked channel, including:
  • the smart module When the smart module receives the first data packet, records the MAC address of the mobile terminal that sends the first data packet;
  • the smart module acquires a data packet sent by the same mobile terminal.
  • the smart module acquires a data packet sent by the same mobile terminal, including:
  • the intelligent module determines whether the packet lengths of the plurality of data packets sent by the same mobile terminal are the same, and selects one or more data packets of the same length as the first data packet.
  • the smart module acquires packet data on the locked channel, including:
  • the smart module receives the data packet sent by two different mobile terminals on the locked channel, the smart module keeps the data packet sent by the first mobile terminal according to the time sequence of receiving the data packet, and discards the data packet. A packet sent by two mobile terminals.
  • a device for data processing comprising:
  • a scanning module configured to scan a channel according to a preset sequence and a time interval to lock a channel
  • Obtaining a module configured to acquire packet data on the locked channel, where the packet data includes multiple data packets;
  • the reassembly module is configured to reassemble the packet data according to an identifier of each data packet carried in the packet data;
  • the decryption module is configured to decode the message data according to an encryption factor in the message data.
  • the scanning module is configured to:
  • the scanning is continued on the channel scanned to have the data packet, and the scanning time is the preset first time;
  • the next channel is scanned in a preset order and time interval.
  • the packet data is packet data sent by the mobile terminal according to a preset packetization manner; and the acquiring module is configured to:
  • the obtaining module is configured to:
  • the obtaining module is configured to:
  • the data packets sent by the first mobile terminal are reserved in the order of receiving the data packets, and the data packets sent by the second mobile terminal are discarded. .
  • a computer readable storage medium storing computer executable instructions for performing the data processing method described above.
  • An electronic device comprising one or more processors, a memory, and one or more programs, the one or more programs being stored in a memory, the data being executed when executed by one or more processors Approach.
  • a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions that, when executed by a computer, cause the computer to execute Any of the above data processing methods.
  • the present disclosure provides a data processing method and apparatus, and performs a step-by-step jump according to a sequential mode. Until there is a matching message, the channel is locked.
  • This channel scanning method can improve the channel search time and increase the time for connecting to the network.
  • FIG. 1 is a schematic flowchart diagram of a data processing method according to this embodiment
  • FIG. 2 is a schematic structural diagram of an apparatus for data processing according to this embodiment
  • FIG. 3 is a schematic structural diagram of hardware of an electronic device according to this embodiment.
  • FIG. 1 is a schematic flowchart diagram of a data processing method provided by this embodiment.
  • the method of data processing includes the following steps.
  • step 110 the intelligent module scans the channel according to a preset sequence and a time interval to lock a channel, and acquires message data on the locked channel, where the message data includes a plurality of data packets.
  • the packet data is packet data that is sent by the mobile terminal according to the preset packetization manner, that is, the packet data includes multiple data packets after the packetization.
  • the smart module scans the channel according to a preset sequence and a time interval, including the following steps.
  • the smart module continues scanning on the channel scanned with the data packet, and the scanning time is the preset first time.
  • the smart module receives the next data packet within the first time, increase the time to continue scanning. as well as
  • the next channel is scanned in a preset order and time interval.
  • the intelligent module can be set as a plurality of smart devices, and the smart module can be a WiFi module.
  • the smart module is waiting for a connection when it is not connected to the network after booting.
  • the intelligent module performs a step-by-step scan scan between channels in a preset sequence mode until the matching message data is available, and the intelligent module starts to lock the channel. By gradually jumping to scan the channel, the search speed of the channel is improved, and the time for connecting to the network is reduced.
  • the intelligent module keeps scanning in a loop.
  • the channel lock stay time is increased, and so on.
  • the time of entering the channel scan exceeds the preset time, the data is quickly exited and re-received, which can improve the anti-interference ability of the wifi intelligent module.
  • the packet data is packet data that is sent by the mobile terminal according to the preset packetization manner; and the smart module acquires the packet data on the locked channel, including the following steps.
  • the smart module When the smart module receives the first data packet, it records the MAC address of the mobile terminal that sends the first data packet.
  • the smart module acquires a data packet sent by the same mobile terminal.
  • UDP is non-connected, which does not provide reliability, flow control, and error recovery.
  • the transmitted packet data is sensitive data of the target network, and the data security should be ensured; and in an ordinary indoor environment, there are interference multicast packets. Therefore, the intelligent module is in the data receiving process. In the middle, interference messages should be excluded to ensure the safe transmission of data.
  • the same source may send many other different multicast packet formats.
  • the intelligent module records the source MAC address of the mobile terminal that received the packet for the first time.
  • the smart module locks the source address to exclude the packets of other terminals.
  • the smart module acquires a data packet sent by the same mobile terminal, and includes the following steps.
  • the intelligent module determines whether the packet lengths of the plurality of data packets sent by the same mobile terminal are the same, and selects one or more data packets of the same length as the first data packet.
  • each packet sent is added with its own flag, and the length of each packet in the same packet is the same, and according to a certain alignment manner. . If it can be aligned in hexadecimal, no padding is replaced with 0.
  • the flag can be obtained, and the length of each received packet is measured, and it is found to be received in the queue as long as the previous one.
  • the data packet is sorted and decrypted to obtain the original data.
  • the smart module acquires the packet data on the locked channel, including the following steps.
  • the smart module receives two different mobile terminals to send data packets on the locked channel, the smart module keeps the data packets sent by the first mobile terminal in chronological order, and discards the data sent by the second mobile terminal. package.
  • the intelligent module first receives the interference data packet from the other, and records the MAC address of the mobile terminal that sends the message by using the first data packet received. When the second packet comes, the comparison and the mac address of the first packet are the same, and the discard is not. If the data sent by the receiving mobile terminal is not sent by the correct mac address through channel locking, the priority of the mac address is lowered, and the priority of the mobile terminal mac address that sends another set of data is increased to receive the correct data.
  • the packet data received by the intelligent module is not required by the intelligent module, or the mobile terminal sends the packet data interrupt, the data is quickly exited from the locked channel, and the step-by-step skip scan is performed again to receive the data again. data. This can also improve the anti-interference ability of the intelligent module.
  • step 120 the intelligent module reassembles the packet data according to the identifier of each data packet carried in the packet data, and decodes the packet data according to an encryption factor in the packet data.
  • the encryption and decryption of data are performed by the AES encryption algorithm.
  • the encrypted packets may be the same, that is, the encryption factors are the same; different encrypted packets may also be generated for different time periods, such as mobile terminals.
  • the encryption factor is randomly generated for encryption, so that the content sent by each intelligent terminal at different times is different, which can increase the security of data transmission.
  • the smart terminal After receiving the encrypted packet data, the smart terminal reassembles the packet data according to the identifier of each packet carried in the packet data, and decodes the packet data according to an encryption factor in the packet data.
  • the original data that is, the configuration information sent by the intelligent terminal, is obtained, and is accessed according to the configuration information to the target network.
  • the embodiment provides a data processing method, and performs a step-by-step jump according to a sequential mode until a matching message is started, and the channel is started to be locked.
  • This channel scanning method can improve the channel searching speed, reduce the time for connecting to the network, and can Eliminate interference messages and increase the security of data transmission.
  • FIG. 2 is a schematic diagram of functional modules of a data processing apparatus according to this embodiment.
  • the device includes the following modules.
  • the scanning module 210 is configured to scan the channel in a preset sequence and time interval to lock a channel.
  • the obtaining module 220 is configured to acquire message data on the locked channel, where the message data includes multiple data packets.
  • the reassembly module 230 is configured to reassemble the message data according to the identifier of each data packet carried in the packet data. as well as
  • the decryption module 240 is configured to decode the message data according to an encryption factor in the message data.
  • the reassembly module 230 is configured to receive a complete plurality of data packets and perform sequential reorganization according to the sequence number of each data packet.
  • the decryption module 240 is configured to first decrypt the encrypted password according to the encryption factor of the data packet, and then use the decrypted key to change the data packet into plaintext.
  • the encryption factor is determined by the mobile terminal according to The "send" time is generated and then sent to the smart module via the packet, so it is different every moment.
  • the scanning module 210 is configured to: continue scanning on a channel scanned to have a data packet, and continue scanning for a preset first time.
  • the time to continue scanning is increased. as well as
  • the next channel is scanned in a preset order and time interval.
  • the packet data is packet data sent by the mobile terminal according to a preset packetization manner; the obtaining module 220 is configured to: when the first data packet is received, record and send the first packet The MAC address of the mobile terminal of the packet.
  • the obtaining module 220 is configured to: determine whether the packet lengths of the multiple data packets sent by the same mobile terminal are the same, and select one of the same length as the first data packet Multiple data packets.
  • the obtaining module 220 is configured to: if the data packets sent by two different mobile terminals are received on the locked channel, keep the first mobile terminal sending according to the time sequence of receiving the data packet. Packet and discard the packet sent by the second mobile terminal.
  • the embodiment provides a device for data processing, which performs step-by-step jump scanning according to a sequential mode until a matching message is started, and starts to lock a channel.
  • This channel scanning mode can improve channel searching speed and reduce time for connecting to the network, and It can eliminate interference messages and increase the security of data transmission.
  • the embodiment further provides a computer readable storage medium storing computer executable instructions for performing the above method.
  • FIG. 3 is a schematic diagram showing the hardware structure of an electronic device according to the embodiment. As shown in FIG. 3, the electronic device includes: one or more processors 310 and a memory 320. One processor 310 is taken as an example in FIG.
  • the electronic device may further include: an input device 330 and an output device 340.
  • the processor 310, the memory 320, the input device 330, and the output device 340 in the electronic device may be connected by a bus or other means, and the connection through the bus is taken as an example in FIG.
  • the input device 330 can receive input numeric or character information
  • the output device 340 can include a display device such as a display screen.
  • the memory 320 is a computer readable storage medium that can be used to store software programs, computer executable programs, and modules.
  • the processor 310 executes various functional applications and data processing by executing software programs, instructions, and modules stored in the memory 320 to implement any of the above embodiments.
  • the memory 320 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to usage of the electronic device, and the like.
  • the memory may include volatile memory such as random access memory (RAM), and may also include non-volatile memory such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device.
  • Memory 320 can be a non-transitory computer storage medium or a transitory computer storage medium.
  • the non-transitory computer storage medium such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
  • memory 320 can optionally include memory remotely located relative to processor 310, which can be connected to the electronic device over a network. Examples of the above networks may include the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
  • Input device 330 can be used to receive input digital or character information and to generate key signal inputs related to user settings and function control of the electronic device.
  • the output device 340 can include a display device such as a display screen.
  • the electronic device of the present embodiment may further include a communication device 350 for transmitting and/or receiving information over a communication network.
  • the implementation of all or part of the processes in the foregoing embodiment may be performed by a computer program executing related hardware, and the program may be stored in a non-transitory computer readable storage medium, and the program may include, when executed, A flow of an embodiment of the method, wherein the non-transitory computer readable storage medium is a magnetic disk, an optical disk, a read only memory (ROM), or a random access memory (RAM).
  • the non-transitory computer readable storage medium is a magnetic disk, an optical disk, a read only memory (ROM), or a random access memory (RAM).
  • the data processing method and apparatus provided by the present disclosure scans channels according to a preset sequence and time interval until there is matching message data, and the channel is locked.
  • This channel scanning and locking mode can improve the channel searching speed and reduce the connection network. Time, and can eliminate interference messages, increasing the security of data transmission.

Landscapes

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

Abstract

一种数据处理的方法及装置。该方法包括:按照预设顺序和时间间隔进行逐步跳转式扫描,并获取报文数据,所述报文数据为移动终端根据预设分包方式进行发送的报文数据;根据所述报文数据中的携带的每个包的标识重组所述报文数据,并根据所述报文数据中的加密因子解码所述报文数据。

Description

数据处理的方法及装置 技术领域
本公开涉及物联网的技术领域,例如涉及一种数据处理的方法及装置。
背景技术
物联网的发展,使得通信接入技术出现了越来越多的交叉。快连技术可以采用多种不同方式实现对智能设备的接入驱动。
一种方式为:以无线直连(WiFi Direct)为基础,使智能控制终端接入处于无线接入点(WiFi Access Point,WiFi AP)模式的智能设备,向智能设备传输配置信息后,由智能设备配置自身网络设置并启动与目标网络的WiFi AP的接入程序,实现接入,在这种方式中,智能控制终端与智能设备借助基于电气与电子工程师协会(Institute of Electrical and Electronic Engineers,IEEE)802.11协议规范的用户数据报协议(User Datagram Protocol,UDP)广播数据包实现配置信息的传输。
另一种方式为:智能控制终端直接基于UDP组播数据包发送所述的配置信息,而智能设备依照与智能控制终端共同遵守的协议解析相应的组播数据帧获得相应的配置信息,利用该配置信息配置自身网络设置完成接入所述的目标网络。上述两种方式可以使智能设备连接到网络,方便用户可以从远端进行控制,即所谓的物联网(“Internet of things(IoT)”)。
物联网是一个新兴的产业,很多智能设备的生产商开始推出自己的智能模块,但均存在多种问题,在安全性、联网时间等方面,都不尽如意,用户体验度不好。
无论是点对点的Ad-Hoc技术,还是快连(Smart Link)解决方案,均存在以下问题:智能模块连接到网络设备的连接速度慢、时间长,用户体验差;并且,在相同的网络环境下的抗干扰能力几乎为零。在抗干扰性上,如果是两台以上的手机终端同时操作要将智能模块连接到网络设备上,是无法实现的,即使两台手机终端发送的是同样的报文也无法使智能模块连接到网络设备,抗干扰性差。
发明内容
本公开提出一种数据处理的方法及装置,可以解决如何提高智能模块的连接速度以及抗干扰的能力。
一种数据处理的方法,应用于智能模块,包括:
智能模块按照预设顺序和时间间隔扫描信道以锁定一信道,并在锁定的信道上获取报文数据,所述报文数据包括多个数据包;
所述智能模块根据所述报文数据中携带的每个数据包的标识重组所述报文数据,并根据所述报文数据中的加密因子解码所述报文数据。
可选地,所述智能模块按照预设顺序和时间间隔扫描信道,包括:
所述智能模块在扫描到有数据包的信道上继续扫描,所述继续扫描的时间为预设的第一时间;
若所述智能模块在所述第一时间内接收到下一个数据包,则增加所述继续扫描的时间;
若在增加的时间内未收到数据包且所述增加后的继续扫描的时间超过预设的时间阈值,则按照所述预设顺序和时间间隔扫描下一个信道。
可选地,所述报文数据为移动终端根据预设分包方式发送的报文数据;
所述智能模块在锁定的信道上获取报文数据,包括:
所述智能模块接收到第一个数据包时,记录发送所述第一个数据包的移动终端的MAC地址;
判断后续接收到的一个或多个数据包的移动终端的MAC地址是否与记录的移动终端的MAC地址相同;
若相同,则所述智能模块获取同一个移动终端发送的数据包。
可选地,所述智能模块获取同一个移动终端发送的数据包,包括:
所述智能模块判断同一个移动终端发送的多个数据包的包体长度是否相同,并选择与所述第一个数据包的包体长度相同的一个或多个数据包。
可选地,所述智能模块在锁定的信道上获取报文数据,包括:
若所述智能模块在锁定的信道上接收到两个不同移动终端发送的数据包,则所述智能模块按照接收所述数据包的时间顺序保留第一个移动终端发送的数据包,并丢弃第二个移动终端发送的数据包。
一种数据处理的装置,包括:
扫描模块,设置为按照预设顺序和时间间隔扫描信道以锁定一信道;
获取模块,设置为在锁定的信道上获取报文数据,所述报文数据包括多个数据包;
重组模块,设置为根据所报文数据中携带的每个数据包的标识重组所述报文数据;
解密模块,设置为根据所述报文数据中的加密因子解码所述报文数据。
可选地,所述扫描模块,是设置为:
在扫描到有数据包的信道上继续扫描,继续扫描的时间为预设的第一时间;
若在所述第一时间内接收到下一个数据包,则增加所述继续扫描的时间;
若在增加的时间内未收到数据包且所述增加后的继续扫描的时间超过预设的时间阈值,则按照预设顺序和时间间隔扫描下一个信道。
可选地,所述报文数据为移动终端根据预设分包方式发送的报文数据;所述获取模块,是设置为:
接收到第一个数据包时,记录发送所述第一个数据包的移动终端的MAC地址;
判断后续接收到的一个或多个数据包的移动终端的MAC地址是否与记录的移动终端的MAC地址相同;若相同,则获取同一个移动终端发送的数据包。
可选地,所述获取模块,是设置为:
判断同一个移动终端发送的多个数据包的包体长度是否相同,并选择与所述第一个数据包的包体长度相同的一个或多个数据包。
可选地,所述获取模块,是设置为:
若在锁定的信道上接收到两个不同移动终端发送的数据包,则按照接收所述数据包的时间顺序保留第一个移动终端发送的数据包,并丢弃第二个移动终端发送的数据包。
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述数据处理方法。
一种电子设备,该电子设备包括一个或多个处理器、存储器以及一个或多个程序,所述一个或多个程序存储在存储器中,当被一个或多个处理器执行时,执行上述数据处理方法。
一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任意一种数据处理方法。
本公开提供一种数据处理的方法及装置,按照顺序的模式进行逐步跳转, 直到有符合的报文,开始锁定信道,这种信道扫描方式可以提高信道寻找时间,增加连接网络的时间。
附图说明
图1是本实施例提供的一种数据处理的方法的流程示意图;
图2是本实施例提供的一种数据处理的装置的结构示意图;
图3是本实施例提供的一种电子设备的硬件结构示意图。
具体实施方式
下面结合附图和实施例对本实施例进行说明。参考图1,图1是本实施例提供的一种数据处理的方法的流程示意图。
如图1所示,所述数据处理的方法包括以下步骤。
在步骤110中,智能模块按照预设顺序和时间间隔扫描信道以锁定一信道,并在锁定的信道上获取报文数据,所述报文数据包括多个数据包。
可选地,所述报文数据为移动终端根据预设分包方式发送的报文数据,即报文数据在包括分包后的多个数据包。
可选地,所述智能模块按照预设顺序和时间间隔扫描信道,包括以下步骤。
所述智能模块在扫描到有数据包的信道上继续扫描,继续扫描的时间为预设第一时间。
若所述智能模块在所述第一时间内接收到下一个数据包,则增加继续扫描的时间。以及
若在增加的所述时间内未收到数据包且所述增加的时间超过预设时间阈值,则按照预设顺序和时间间隔扫描下一个信道。
智能模块可以设置为多种智能设备中,智能模块可以为WiFi模块。
智能模块在启动后没有连接到网络时,处于等待连接状态。智能模块按照预设顺序的模式在信道之间进行逐步跳转扫描,直到有符合的报文数据,智能模块开始锁定信道。通过逐步跳转扫描信道的方式,提高信道的寻找速度,减少连接网络的时间。
可选地,信道不锁定时,智能模块一直在循环扫描,当接收到一个组播报文数据,停留一下,当接收到第二个则增加信道锁定停留时间,以此类推。当进入信道扫描的时间超过预设时间时,快速退出并重新接收数据,这样可以提高wifi智能模块的抗干扰能力。
可选地,所述报文数据为移动终端根据预设分包方式发送的报文数据;所述智能模块在锁定的信道上获取报文数据,包括以下步骤。
所述智能模块接收到第一个数据包时,记录发送所述第一个数据包的移动终端的MAC地址。
判断后续接收到的一个或多个数据包的移动终端的MAC地址是否与记录的移动终端的MAC地址相同。以及
若相同,则所述智能模块获取同一个移动终端发送的数据包。
UDP是面向非连接的,即不能提供可靠性、流控和差错恢复功能。移动终端数据发送阶段,发送的报文数据是目标网络的敏感数据,应保证数据的安全性;而且在普通的室内环境中,会存在干扰的组播报文,因此,智能模块在数据接收过程中,应排除干扰报文,确保数据的安全传输。
可选地,同一个源有可能发送很多其他不同的组播报文格式。智能模块会记录首次接收到报文的移动终端的源mac地址,则智能模块锁定源端地址可以排除其他终端的报文。
可选地,所述智能模块获取同一个移动终端发送的数据包,包括以下步骤。
所述智能模块判断同一个移动终端发送的多个数据包的包体长度是否相同,并选择与所述第一个数据包的包体长度相同的一个或多个数据包。
可选地,在智能模块锁定源mac地址的情况下,对发送的每个包加上自己的标志,而且同一个报文中的每个包体的长度是一样的,且按照一定的对齐方式。如可以按照16进制对齐,没有填充满的以0代替。在收到第一个报文时就可以拿到标志位,同时对每个收到的包长度进行测量,发现与上一个一样长就接受到队列当中。当接收完数据包后,对数据包进行排序、解密,得到原始数据。
可选地,所述智能模块在锁定的信道上获取报文数据,包括以下步骤。
若所述智能模块在锁定的信道上接收到两个不同移动终端发送数据包,则所述智能模块按照时间顺序保留第一个移动终端发送的数据包,并丢弃第二个移动终端发送的数据包。可选地,若两台以上移动终端发送的是不同数据包,智能模块首先接到来自其他的干扰数据包,通过收到的第一个数据包,记录发送该报文的移动终端的mac地址,当第二个数据包来的时候,比对和第一个数据包的mac地址是否是同一个,不是则丢弃。若通过信道锁定,接收的移动终端发送的数据不是正确的mac地址发送的,则将该mac地址的优先级降低,提高发送另一组数据的移动终端mac地址的优先级以接收正确的数据。可选地,若智能模块接收到的报文数据不是该智能模块所需要的,或者移动终端发送报文数据中断,则从锁定的信道的上快速退出,重新进行逐步跳转式扫描,重新接收数据。这样也可以提高智能模块的抗干扰能力。
在步骤120中,所述智能模块根据所述报文数据中携带的每个数据包的标识重组所述报文数据,并根据所述报文数据中的加密因子解码所述报文数据。
数据的加密和解密是通过AES加密算法进行的,对于每个智能模块,加密的报文可以是相同的,即加密因子是相同的;也可以针对不同时段生成不同的加密报文,例如移动终端在发送数据时随机生成加密因子进行加密,这样针对每个智能终端在不同的时间发送的内容都是不同的,可以增加数据传输的安全性。智能终端在接收到加密的报文数据后,根据报文数据中的携带的每个包的标识重组所述报文数据,并根据所述报文数据中的加密因子解码所述报文数据,得到原始数据,即智能终端发送的配置信息,根据配置信息接入到目标网络。
本实施例提供一种数据处理的方法,按照顺序的模式进行逐步跳转,直到有符合的报文,开始锁定信道,这种信道扫描方式可以提高信道寻找速度,减少连接网络的时间,并且能够排除干扰报文,增加数据传输的安全性。
参考图2,图2是本实施例提供的一种数据处理的装置的功能模块示意图。
如图2,所述装置包括以下模块。
扫描模块210,设置为按照预设顺序和时间间隔扫描信道以锁定一信道。
获取模块220,设置为在锁定的信道上获取报文数据,所述报文数据包括多个数据包。
重组模块230,设置为根据所报文数据中携带的每个数据包的标识重组所述报文数据。以及
解密模块240,设置为根据所述报文数据中的加密因子解码所述报文数据。
其中,所述重组模块230,设置为收到完整的多个数据包,并根据每个数据包的序号进行顺序重组。
所述解密模块240,设置为根据数据包的加密因子,首先解密加密的密码,再用解密的密钥把数据包变成明文。其中,所述加密因子是通过移动终端根据 “发送”时间生成的,然后通过数据包发送给智能模块,因而每时每刻都不一样。
可选地,所述扫描模块210,是设置为:在扫描到有数据包的信道上继续扫描,继续扫描的时间为预设第一时间。
若在所述第一时间内接收到下一个数据包,则增加继续扫描的时间。以及
若在增加的时间内未收到数据包且所述增加的时间超过预设时间阈值,则按照预设顺序和时间间隔扫描下一个信道。
可选地,所述报文数据为移动终端根据预设分包方式发送的报文数据;所述获取模块220,是设置为:接收到第一个数据包时,记录发送所述第一个数据包的移动终端的MAC地址。
判断后续接收到的一个或多个数据包的移动终端的MAC地址是否与记录的移动终端的MAC地址相同。以及
若相同,则获取同一个移动终端发送的数据包。
可选地,所述获取模块220,是设置为:判断同一个移动终端发送的多个数据包的包体长度是否相同,并选择与所述第一个数据包的包体长度相同的一个或多个数据包。
可选地,所述获取模块220,是设置为:若在锁定的信道上接收到两个不同移动终端发送的数据包,则按照接收所述数据包的时间顺序保留第一个移动终端发送的数据包,并丢弃第二个移动终端发送的数据包。
本实施例提供一种数据处理的装置,按照顺序的模式进行逐步跳转扫描,直到有符合的报文,开始锁定信道,这种信道扫描方式可以提高信道寻找速度,减少连接网络的时间,并且能够排除干扰报文,增加数据传输的安全性。
本实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述方法。
图3是本实施例的一种电子设备的硬件结构示意图,如图3所示,该电子设备包括:一个或多个处理器310和存储器320。图3中以一个处理器310为例。
所述电子设备还可以包括:输入装置330和输出装置340。
所述电子设备中的处理器310、存储器320、输入装置330和输出装置340可以通过总线或者其他方式连接,图3中以通过总线连接为例。
输入装置330可以接收输入的数字或字符信息,输出装置340可以包括显示屏等显示设备。
存储器320作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块。处理器310通过运行存储在存储器320中的软件程序、指令以及模块,从而执行多种功能应用以及数据处理,以实现上述实施例中的任意一种方法。
存储器320可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据电子设备的使用所创建的数据等。此外,存储器可以包括随机存取存储器(Random Access Memory,RAM)等易失性存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件或者其他非暂态固态存储器件。
存储器320可以是非暂态计算机存储介质或暂态计算机存储介质。该非暂态计算机存储介质,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器320可选包括相对于处理器310远程设置的存储器,这些远程存储器可以通过网络连接至电子设备。上述网络的实例可以包括互联网、企业内部网、局域网、移动通信网及其组合。
输入装置330可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。输出装置340可包括显示屏等显示设备。
本实施例的电子设备还可以包括通信装置350,通过通信网络传输和/或接收信息。
实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来执行相关的硬件来完成的,该程序可存储于一个非暂态计算机可读存储介质中,该程序在执行时,可包括如上述方法的实施例的流程,其中,该非暂态计算机可读存储介质可以为磁碟、光盘、只读存储记忆体(ROM)或随机存储记忆体(RAM)等。
工业实用性
本公开提供的数据处理的方法和装置,按照预设顺序和时间间隔扫描信道,直到有符合的报文数据,锁定信道,这种信道扫描和锁定的方式可以提高信道寻找速度,减少连接网络的时间,并且能够排除干扰报文,增加数据传输的安全性。

Claims (11)

  1. 一种数据处理的方法,包括:
    智能模块按照预设顺序和时间间隔扫描信道以锁定一信道,并在锁定的信道上获取报文数据,所述报文数据包括多个数据包;
    所述智能模块根据所述报文数据中携带的每个数据包的标识重组所述报文数据,并根据所述报文数据中的加密因子解码所述报文数据。
  2. 根据权利要求1所述的方法,其中,所述智能模块按照预设顺序和时间间隔扫描信道,包括:
    所述智能模块在扫描到有数据包的信道上继续扫描,继续扫描的时间为预设的第一时间;
    若所述智能模块在所述第一时间内接收到下一个数据包,则增加所述继续扫描的时间;
    若在增加的时间内未收到数据包且所述增加后的继续扫描的时间超过预设的时间阈值,则按照所述预设顺序和时间间隔扫描下一个信道。
  3. 根据权利要求1或2所述的方法,其中,
    所述报文数据为移动终端根据预设分包方式发送的报文数据;
    所述智能模块在锁定的信道上获取报文数据,包括:
    所述智能模块接收到第一个数据包时,记录发送所述第一个数据包的移动终端的MAC地址;
    判断后续接收到的一个或多个数据包的移动终端的MAC地址是否与记录的移动终端的MAC地址相同;
    若相同,则所述智能模块获取同一个移动终端发送的数据包。
  4. 根据权利要求3所述的方法,其中,所述智能模块获取同一个移动终端发送的数据包,包括:
    所述智能模块判断同一个移动终端发送的多个数据包的包体长度是否相同,并选择与所述第一个数据包的包体长度相同的一个或多个数据包。
  5. 根据权利要求1或2所述的方法,其中,所述智能模块在锁定的信道上获取报文数据,包括:
    若所述智能模块在锁定的信道上接收到两个不同移动终端发送的数据包,则所述智能模块按照接收所述数据包的时间顺序保留第一个移动终端发送的数据包,并丢弃第二个移动终端发送的数据包。
  6. 一种数据处理的装置,包括:
    扫描模块,设置为按照预设顺序和时间间隔扫描信道以锁定一信道;
    获取模块,设置为在锁定的信道上获取报文数据,所述报文数据包括多个数据包;
    重组模块,设置为根据所报文数据中携带的每个数据包的标识重组所述报文数据;
    解密模块,设置为根据所述报文数据中的加密因子解码所述报文数据。
  7. 根据权利要求6所述的装置,其中,所述扫描模块是设置为:
    在扫描到有数据包的信道上继续扫描,继续扫描的时间为预设的第一时间;
    若在所述第一时间内接收到下一个数据包,则增加所述继续扫描的时间;
    若在增加的时间内未收到数据包且所述增加后的继续扫描的时间超过预设的时间阈值,则按照预设顺序和时间间隔扫描下一个信道。
  8. 根据权利要求6或7所述的装置,其中,所述报文数据为移动终端根据预设分包方式发送的报文数据;所述获取模块是设置为:
    接收到第一个数据包时,记录发送所述第一个数据包的移动终端的MAC地址;
    判断后续接收到的一个或多个数据包的移动终端的MAC地址是否与记录的移动终端的MAC地址相同;
    若相同,则获取同一个移动终端发送的数据包。
  9. 根据权利要求8所述的装置,其中,所述获取模块是设置为:
    判断同一个移动终端发送的多个数据包的包体长度是否相同,并选择与所述第一个数据包的包体长度相同的一个或多个数据包。
  10. 根据权利要求6或7所述的装置,其中,所述获取模块是设置为:
    若在锁定的信道上接收到两个不同移动终端发送的数据包,则按照接收所述数据包的时间顺序保留第一个移动终端发送的数据包,并丢弃第二个移动终端发送的数据包。
  11. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-5任一项所述的方法。
PCT/CN2017/107265 2016-10-24 2017-10-23 数据处理的方法及装置 WO2018077129A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610932524.3A CN106454812A (zh) 2016-10-24 2016-10-24 一种数据接收的方法及装置
CN201610932524.3 2016-10-24

Publications (1)

Publication Number Publication Date
WO2018077129A1 true WO2018077129A1 (zh) 2018-05-03

Family

ID=58177535

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/107265 WO2018077129A1 (zh) 2016-10-24 2017-10-23 数据处理的方法及装置

Country Status (2)

Country Link
CN (1) CN106454812A (zh)
WO (1) WO2018077129A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112738867A (zh) * 2020-12-28 2021-04-30 乐鑫信息科技(上海)股份有限公司 一种智能设备重置方法

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106454812A (zh) * 2016-10-24 2017-02-22 深圳创维数字技术有限公司 一种数据接收的方法及装置
CN109219075B (zh) * 2018-10-09 2022-05-10 深圳创维数字技术有限公司 一种无线信道扫描方法、装置、终端及存储介质
CN110493185B (zh) * 2019-07-10 2021-06-29 浙江大华技术股份有限公司 信道停留方法、装置、计算机设备和存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7340251B1 (en) * 1999-03-30 2008-03-04 Nokia Corporation Scanning guard timer
CN103825788A (zh) * 2014-01-29 2014-05-28 北京睿通慧联科技有限公司 一种wifi网络配置方法及系统
CN104768150A (zh) * 2015-03-31 2015-07-08 深圳市江波龙电子有限公司 WiFi设备连接无线热点的方法及系统
CN105120507A (zh) * 2015-08-12 2015-12-02 深圳市江波龙科技有限公司 数据包监听方法和系统
CN105228264A (zh) * 2015-07-01 2016-01-06 利尔达科技集团股份有限公司 一种适用于物联网的快捷wi-fi网络配对方法
CN105682253A (zh) * 2016-03-02 2016-06-15 上海小蚁科技有限公司 建立通信的方法、设备、终端和计算机可读存储介质
CN106454812A (zh) * 2016-10-24 2017-02-22 深圳创维数字技术有限公司 一种数据接收的方法及装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102548038A (zh) * 2012-02-07 2012-07-04 江苏麦希通讯技术有限公司 一种微功率无线网络组网方法
CN105451290B (zh) * 2014-08-20 2019-09-27 北京南瑞智芯微电子科技有限公司 一种微功率无线网络自组网方法和微功率无线网络
CN105142203A (zh) * 2015-08-20 2015-12-09 深圳市金立通信设备有限公司 一种无线保真Wi-Fi热点扫描方法及终端

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7340251B1 (en) * 1999-03-30 2008-03-04 Nokia Corporation Scanning guard timer
CN103825788A (zh) * 2014-01-29 2014-05-28 北京睿通慧联科技有限公司 一种wifi网络配置方法及系统
CN104768150A (zh) * 2015-03-31 2015-07-08 深圳市江波龙电子有限公司 WiFi设备连接无线热点的方法及系统
CN105228264A (zh) * 2015-07-01 2016-01-06 利尔达科技集团股份有限公司 一种适用于物联网的快捷wi-fi网络配对方法
CN105120507A (zh) * 2015-08-12 2015-12-02 深圳市江波龙科技有限公司 数据包监听方法和系统
CN105682253A (zh) * 2016-03-02 2016-06-15 上海小蚁科技有限公司 建立通信的方法、设备、终端和计算机可读存储介质
CN106454812A (zh) * 2016-10-24 2017-02-22 深圳创维数字技术有限公司 一种数据接收的方法及装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112738867A (zh) * 2020-12-28 2021-04-30 乐鑫信息科技(上海)股份有限公司 一种智能设备重置方法
CN112738867B (zh) * 2020-12-28 2023-06-30 乐鑫信息科技(上海)股份有限公司 一种智能设备重置方法

Also Published As

Publication number Publication date
CN106454812A (zh) 2017-02-22

Similar Documents

Publication Publication Date Title
US10666451B2 (en) Method and apparatus for controlling access of household appliance device to network
US10542458B2 (en) Data communication via data packet headers
WO2018077129A1 (zh) 数据处理的方法及装置
US11864263B2 (en) Wireless connection establishing methods and wireless connection establishing apparatuses
TWI332345B (en) Security considerations for the lte of umts
US10419411B2 (en) Network-visitability detection
WO2017193937A1 (zh) WiFi配置方法、WiFi移动终端和WiFi设备
WO2017213971A1 (en) Network-visitability detection control
US11943695B2 (en) Network channel switching method and apparatus, device, and storage medium
WO2019233310A1 (zh) 一种待配网设备接入网络热点设备的方法和装置
US9510130B2 (en) Provisioning of multiple wireless devices by an access point
KR20120042875A (ko) 암호화 에러를 검출 및 복구하는 방법, 장치 및 컴퓨터 판독 가능 저장 매체
US20160330775A1 (en) Methods and Devices for Sending or Receiving Wireless Parameter
US8862096B1 (en) Provisioning of multiple wireless devices by an access point
US8935765B2 (en) Method to enable mobile devices to rendezvous in a communication network
US20170359319A1 (en) Adding a device to a protected network without data entry on the device
WO2017202355A1 (zh) 无线中继的实现
US20190394639A1 (en) Multicast Service Processing Method and Access Point
US9319878B2 (en) Streaming alignment of key stream to unaligned data stream
US20200351156A1 (en) Method and system for fast onboarding new device into existing iot network
US20210168614A1 (en) Data Transmission Method and Device
US20230246998A1 (en) Generation of a unique device identifier for a client device in a wireless network
WO2020147602A1 (zh) 一种认证方法、装置和系统
CN113329349A (zh) 一种Wi-Fi模式下移动终端与智能设备的通信方法及移动终端
JP3217133U (ja) ワイヤレスネットワーク設定システム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17866060

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17866060

Country of ref document: EP

Kind code of ref document: A1