CN104637147A - Method and device for searching network by triggering wireless communication module of fingerprint door lock - Google Patents
Method and device for searching network by triggering wireless communication module of fingerprint door lock Download PDFInfo
- Publication number
- CN104637147A CN104637147A CN201510051195.7A CN201510051195A CN104637147A CN 104637147 A CN104637147 A CN 104637147A CN 201510051195 A CN201510051195 A CN 201510051195A CN 104637147 A CN104637147 A CN 104637147A
- Authority
- CN
- China
- Prior art keywords
- network
- wireless communication
- door lock
- communication module
- module
- 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
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
本发明提供一种触发指纹门锁的无线通信模块搜索网络的方法及装置,用以目前指纹门锁耗电量较大且可能出现指纹门锁在使用时无法与网络建立连接的问题,该方法包括:当检测到指纹门锁的滑盖开启时,判断指纹门锁的无线通信模块是否与网络保持连接;在无线通信模块与网络连接断开连接的情况下,触发无线通信模块在预设时间段内搜索附近的无线网络,以使无线通信模块与搜索到的无线网络建立连接,该方案减小了指纹门锁的耗电量。
The present invention provides a method and device for triggering a wireless communication module of a fingerprint door lock to search for a network, which is used to solve the problem that the current fingerprint door lock consumes a lot of power and may not be able to establish a connection with the network when the fingerprint door lock is in use. Including: when it is detected that the slide cover of the fingerprint door lock is opened, it is judged whether the wireless communication module of the fingerprint door lock is connected to the network; The nearby wireless network is searched in the segment, so that the wireless communication module establishes a connection with the searched wireless network. This solution reduces the power consumption of the fingerprint door lock.
Description
技术领域technical field
本发明涉及移动通讯领域,特别是涉及一种触发指纹门锁的无线通信模块搜索网络的方法及装置。The invention relates to the field of mobile communication, in particular to a method and device for searching a network by a wireless communication module triggering a fingerprint door lock.
背景技术Background technique
在信息化社会中,公共建筑物和居民住宅的安全防盗至关重要,基于此,指纹门锁应运而生。在指纹门锁的使用过程中,用户需要预先将个人指纹信息存储在指纹门锁存的储器中,当用户的指纹被识别时,门锁开启或关闭,具体地,如果用户输入的指纹信息与存储的指纹信息相匹配,门锁即开启,如果不匹配,门锁则不开启。In the information society, the safety and anti-theft of public buildings and residential buildings are very important. Based on this, fingerprint door locks came into being. During the use of the fingerprint door lock, the user needs to store personal fingerprint information in the storage of the fingerprint door lock in advance. When the user's fingerprint is recognized, the door lock is opened or closed. Specifically, if the fingerprint information entered by the user If it matches the stored fingerprint information, the door lock will be opened, if not, the door lock will not be opened.
指纹门锁一般采用无线通信模块与网络进行通信,以实现对用户输入的指纹的鉴权以及门锁状态的上报,当无线通信模块无法与网络连接时,无线通信模块会持续的搜索周围的无线通信网络,这样会导致指纹门锁的对电量的消耗较大,而由于目前的指纹门锁还无法直接使用市电,一般是通过电池来供电,所以,指纹门锁的对节电的要求较高,目前,存在这样一个解决方案,即在无线通信模块无法与网络连接时,周期性的搜索,例如,一天搜索一次,然而,这种方式有可能在指纹门锁无需联网时进行网络搜索并自动建立连接,对指纹门锁的电能造成浪费,同时也有可能出现户在需要使用指纹门锁时无法与网络进行连接的问题。Fingerprint door locks generally use a wireless communication module to communicate with the network to authenticate the fingerprint input by the user and report the status of the door lock. When the wireless communication module cannot connect to the network, the wireless communication module will continue to search the surrounding wireless Communication network, this will lead to a large power consumption of fingerprint door locks, and because the current fingerprint door locks can not directly use the mains power, generally powered by batteries, so the requirements for power saving of fingerprint door locks are relatively high. High, at present, there is such a solution, that is, when the wireless communication module cannot be connected to the network, the periodic search is performed, for example, once a day. However, this method may perform network search and Automatically establish a connection, which wastes the power of the fingerprint door lock. At the same time, there may be a problem that the user cannot connect to the network when the fingerprint door lock needs to be used.
发明内容Contents of the invention
本发明提供一种触发指纹门锁的无线通信模块搜索网络的方法及装置,用以解决目前指纹门锁耗电量较大,且有可能出现在使用指纹门锁时无法与网络建立连接的问题。The present invention provides a method and device for triggering a wireless communication module of a fingerprint door lock to search for a network, which is used to solve the problem that the current fingerprint door lock consumes a lot of power and may not be able to establish a connection with the network when using the fingerprint door lock .
根据本发明的一个方面,提供了一种触发指纹门锁的无线通信模块搜索网络的方法,包括:当检测到指纹门锁的滑盖开启时,判断指纹门锁的无线通信模块是否与网络保持连接;在无线通信模块与网络连接断开连接的情况下,触发无线通信模块在预设时间段内搜索附近的无线网络,以使无线通信模块与搜索到的无线网络建立连接。According to one aspect of the present invention, a method for triggering a wireless communication module of a fingerprint door lock to search for a network is provided, including: when it is detected that the slide cover of the fingerprint door lock is opened, judging whether the wireless communication module of the fingerprint door lock is connected to the network Connecting; when the wireless communication module is disconnected from the network, the wireless communication module is triggered to search for nearby wireless networks within a preset time period, so that the wireless communication module establishes a connection with the searched wireless network.
其中,触发无线通信模块在预设时间段内搜索附近的无线网络,包括:触发无线通信模块中的zigbee节点模块搜索附近的网络协调器,以使zigbee节点模块通过网络协调器与网络建立连接。Wherein, triggering the wireless communication module to search for a nearby wireless network within a preset time period includes: triggering the zigbee node module in the wireless communication module to search for a nearby network coordinator, so that the zigbee node module establishes a connection with the network through the network coordinator.
其中,当检测到指纹门锁的滑盖开启时,判断指纹门锁的无线通信模块是否与网络保持连接,包括:当检测到指纹门锁的滑盖被滑开时,触发指纹门锁的微控制单元MCU中断,以使MCU从无线通信模块中的zigbee节点模块处获取zigbee节点模块是否与网络协调器保持连接的消息。Wherein, when it is detected that the slide cover of the fingerprint door lock is opened, judging whether the wireless communication module of the fingerprint door lock is connected to the network includes: when it is detected that the slide cover of the fingerprint door lock is slid open, triggering the micro The control unit MCU is interrupted, so that the MCU obtains the message whether the zigbee node module is connected with the network coordinator from the zigbee node module in the wireless communication module.
其中,触发无线通信模块在预设时间段内搜索附近的无线网络,以使无线通信模块与搜索到的无线网络建立连接,包括:触发无线模块中的zigbee节点模块在预设时间段内搜索网络协调器,待搜索成功后,停止搜索并与搜索到的网络协调器建立连接。Wherein, triggering the wireless communication module to search for nearby wireless networks within a preset time period, so that the wireless communication module establishes a connection with the searched wireless network, includes: triggering the zigbee node module in the wireless module to search for the network within a preset time period The coordinator, after the search succeeds, stops the search and establishes a connection with the found network coordinator.
进一步的,上述方法还包括,在检测到指纹门锁的滑盖关闭后,使MCU处于休眠状态。Further, the above method further includes, after detecting that the slide cover of the fingerprint door lock is closed, making the MCU in a dormant state.
根据本发明的另一个方面,提供了一种触发指纹门锁的无线通信模块搜索网络的装置,包括:判断模块,用于当检测到指纹门锁的滑盖开启时,判断指纹门锁的无线通信模块是否与网络保持连接;触发模块,用于在无线通信模块与网络连接断开连接的情况下,触发无线通信模块在预设时间段内搜索附近的无线网络,以使无线通信模块与搜索到的无线网络建立连接。According to another aspect of the present invention, a device for triggering a wireless communication module of a fingerprint door lock to search for a network is provided, including: a judging module for judging the wireless communication module of the fingerprint door lock when it is detected that the slide cover of the fingerprint door lock is opened. Whether the communication module remains connected to the network; the trigger module is used to trigger the wireless communication module to search for nearby wireless networks within a preset time period when the wireless communication module is disconnected from the network, so that the wireless communication module and the search to establish a connection to the wireless network.
其中,触发模块用于,触发无线通信模块中的zigbee节点模块搜索附近的网络协调器,以使zigbee节点模块通过网络协调器与网络建立连接。Wherein, the triggering module is used to trigger the zigbee node module in the wireless communication module to search for a nearby network coordinator, so that the zigbee node module establishes a connection with the network through the network coordinator.
其中,判断模块用于,当检测到指纹门锁的滑盖被滑开时,触发指纹门锁的微控制单元MCU中断,以使MCU从无线通信模块中的zigbee节点模块处获取zigbee节点模块是否与网络协调器保持连接的消息。Wherein, the judging module is used for, when detecting that the sliding cover of the fingerprint door lock is slid open, the micro control unit MCU of triggering the fingerprint door lock is interrupted, so that the MCU obtains whether the zigbee node module from the zigbee node module in the wireless communication module A keepalive message with the network coordinator.
其中,触发模块用于,触发无线模块中的zigbee节点模块在预设时间段内搜索网络协调器,待搜索成功后,停止搜索并与搜索到的网络协调器建立连接。Wherein, the triggering module is used to trigger the zigbee node module in the wireless module to search for the network coordinator within a preset time period, and stop searching and establish a connection with the searched network coordinator after the search is successful.
进一步的,上述装置还包括休眠模块,用于在检测到指纹门锁的滑盖关闭后,使MCU处于眠状态。Further, the above device also includes a sleep module, which is used to make the MCU sleep after detecting that the slide cover of the fingerprint door lock is closed.
本发明有益效果如下:The beneficial effects of the present invention are as follows:
本发明实施例的方案,在检测到指纹门锁的滑盖开启且其无线通信模块未与网络建立连接的情况下,触发指纹门锁的无线模块搜索附近的无线网络,减少了无线通信模块搜索的时长,降低了指纹门锁的耗电量。According to the solution of the embodiment of the present invention, when it is detected that the slide cover of the fingerprint door lock is opened and its wireless communication module has not established a connection with the network, the wireless module of the fingerprint door lock is triggered to search for nearby wireless networks, which reduces the need for wireless communication modules to search. The length of time, reducing the power consumption of the fingerprint door lock.
附图说明Description of drawings
图1是本发明实施例1的触发指纹门锁的无线通信模块搜索网络的方法的流程图;1 is a flowchart of a method for searching a network by a wireless communication module triggering a fingerprint door lock according to Embodiment 1 of the present invention;
图2是本发明实施例2的触发指纹门锁的无线通信模块搜索网络的装置的结构框图。Fig. 2 is a structural block diagram of an apparatus for triggering a wireless communication module of a fingerprint door lock to search a network according to Embodiment 2 of the present invention.
具体实施方式Detailed ways
为了解决现有技术指纹门锁耗电量较大的问题,本发明提供了一种触发指纹门锁的无线通信模块搜索网络的方法及装置,以下结合附图以及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不限定本发明。In order to solve the problem of large power consumption of the existing fingerprint door lock, the present invention provides a method and device for triggering the wireless communication module of the fingerprint door lock to search the network. The following describes the present invention in detail in conjunction with the drawings and embodiments illustrate. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
实施例1Example 1
图1是本发明实施例1的触发指纹门锁的无线通信模块搜索网络的方法的流程图,如图1所示,该方法包括如下步骤:Fig. 1 is the flow chart of the method for the wireless communication module that triggers the fingerprint door lock to search the network of embodiment 1 of the present invention, as shown in Fig. 1, this method comprises the following steps:
步骤101:当检测到指纹门锁的滑盖开启时,判断指纹门锁的无线通信模块是否与网络保持连接;Step 101: When it is detected that the sliding cover of the fingerprint door lock is opened, determine whether the wireless communication module of the fingerprint door lock is connected to the network;
优选的,本实施例中的无线通信模块可以包括zigbee节点模块,基于此,该步骤101具体可以包括如下处理:Preferably, the wireless communication module in this embodiment may include a zigbee node module, based on this, the step 101 may specifically include the following processing:
当检测到指纹门锁的滑盖被滑开时,触发指纹门锁的MCU(Micro ControlUnit,微控制单元)中断,使其恢复运行状态,进而MCU从zigbee节点模块处获取zigbee节点模块是否与网络协调器保持连接的消息,即判断zigbee节点模块是否与网络连接的操作可以由zigbee节点模块自身来进行,然后,其将判断结果反馈给MCU。When it is detected that the slide cover of the fingerprint door lock is slid open, the MCU (Micro ControlUnit, micro control unit) that triggers the fingerprint door lock is interrupted to make it resume the running state, and then the MCU obtains from the zigbee node module whether the zigbee node module is connected to the network The message that the coordinator maintains the connection, that is, the operation of judging whether the zigbee node module is connected to the network can be performed by the zigbee node module itself, and then it feeds back the judging result to the MCU.
步骤102:在无线通信模块与网络连接断开连接的情况下,触发无线通信模块在预设时间段内搜索附近的无线网络。Step 102: When the wireless communication module is disconnected from the network connection, trigger the wireless communication module to search for nearby wireless networks within a preset time period.
其中,在上述无线通信模块包括zigbee节点模块的基础上,该步骤102中的触发无线通信模块搜索附近的无线网络,包括:触发zigbee节点模块搜索附近的网络协调器,以使zigbee节点模块通过网络协调器与网络建立连接。Wherein, on the basis that the above-mentioned wireless communication module includes a zigbee node module, triggering the wireless communication module in step 102 to search for a nearby wireless network includes: triggering the zigbee node module to search for a nearby network coordinator, so that the zigbee node module passes through the network The coordinator establishes a connection with the network.
其中,触发无线通信模块在预设时间段内搜索附近的无线网络,具体可以包括:触发zigbee节点模块在预设时间段内搜索网络协调器,例如,20秒,同时,为了进一步减小耗电量,在判断zigbee节点模块搜索成功后,停止搜索并与搜索到的网络协调器建立连接。Wherein, triggering the wireless communication module to search for nearby wireless networks within a preset time period may specifically include: triggering the zigbee node module to search for a network coordinator within a preset time period, for example, 20 seconds, and at the same time, in order to further reduce power consumption After judging that the zigbee node module search is successful, stop the search and establish a connection with the searched network coordinator.
在本实施例中,在门锁不被使用的情况下,可以使MCU均处于休眠状态,所以上述方法还可以进一步包括,在MCU检测到指纹门锁的滑盖关闭后,使自身处于休眠状态。In this embodiment, when the door lock is not in use, both the MCUs can be put into a dormant state, so the above method can further include, after the MCU detects that the slide cover of the fingerprint door lock is closed, put itself into a dormant state .
优选的,本实施例中的zigbee节点模块,以下简称节点或zigbee节点,通过网络协调器与网络建立连接具体可以包括如下处理:Preferably, the zigbee node module in the present embodiment, hereinafter referred to as node or zigbee node, establishes a connection with the network through the network coordinator and specifically can include the following processes:
本实施例中的zigbee网络是通过网络协调器来建立的,需要说明的是,任何一个zigbee节点要组建一个网络必须要满足以下两点要求:The zigbee network in this embodiment is established through a network coordinator. It should be noted that any zigbee node must meet the following two requirements to form a network:
(1)节点是FFD(Full Function Device,全功能节点),具备zigbee协调器的能力;(1) The node is FFD (Full Function Device, full-featured node), with the ability of zigbee coordinator;
(2)节点还没有与其他网络连接,当节点已经与其他网络连接时,此节点只能作为该网络的子节点,因为一个zigbee网络中有且只有一个网络协调器。(2) The node is not yet connected to other networks. When the node is already connected to other networks, this node can only be used as a child node of the network, because there is only one network coordinator in a zigbee network.
在执行完上述步骤后,确定网络协调器:After performing the above steps, determine the network coordinator:
首先判断节点是否是FFD节点,接着判断此FFD节点是否在其他网络里或者网络里是否已经存在协调器。通过主动扫描,发送一个信标请求命令(Beaconrequest command),然后设置一个扫描期限(T_scan_duration),如果在扫描期限内都没有检测到信标,那么就认为FFD在其pos内没有协调器,那么此时就可以建立自己的zigbee网络,并且作为这个网络的协调器不断地产生信标并广播出去。其中,一个网络里,有且只能有一个协调器(coordinator)。First determine whether the node is an FFD node, and then determine whether the FFD node is in another network or whether a coordinator already exists in the network. Through active scanning, send a beacon request command (Beaconrequest command), and then set a scan period (T_scan_duration), if no beacon is detected within the scan period, then it is considered that FFD has no coordinator in its pos, then this Then you can build your own zigbee network, and as the coordinator of this network, you can continuously generate beacons and broadcast them. Among them, there can only be one coordinator in a network.
确定网络协调器后,进行信道扫描过程:After the network coordinator is determined, the channel scanning process is performed:
信道扫描包括能量扫描和主动扫描两个过程,首先对指定的信道或者默认的信道进行能量检测,以避免可能的干扰。以递增的方式对所测量的能量值进行信道排序,抛弃能量值超出了可允许能量水平的信道,选择可允许能量水平的信道,并标注这些信道是可用信道。接着进行主动扫描,搜索节点通信半径内的网络信息。这些信息以信标帧的形式在网络中广播,节点通过主动信道扫描方式获得这些信标帧,然后根据这些信息,找到一个最好的、相对安静的信道,通过记录的结果,选择一个信道,该信道应存在最少的zigbee网络,最好是没有zigbee设备。在主动扫描期间,MAC层将丢弃PHY层数据服务接收到的除信标以外的所有帧。Channel scanning includes two processes of energy scanning and active scanning. First, energy detection is performed on the specified channel or the default channel to avoid possible interference. Channel sorting is performed on the measured energy values in an incremental manner, channels whose energy values exceed the allowable energy level are discarded, channels with allowable energy levels are selected, and these channels are marked as available channels. Then perform an active scan to search for network information within the communication radius of the node. These information are broadcast in the network in the form of beacon frames. Nodes obtain these beacon frames through active channel scanning, and then find a best, relatively quiet channel based on this information, and select a channel through the recorded results. The channel should have minimal zigbee network present, preferably no zigbee devices. During active scanning, the MAC layer will discard all frames received by the PHY layer data service except beacons.
设置网络ID:Set network ID:
找到合适的信道后,协调器将为网络选定一个网络标识符(PAN ID,取值<=0x3FFF),这个ID在所使用的信道中是唯一的,也不能和其他zigbee网络冲突,而且不能为广播地址0xFFFF(此地址为保留地址,不能使用)。PAN ID可以通过侦听其他网络的ID,然后选择一个不会冲突的ID的方式来获取,也可以人为的指定扫描的信道后,来确定不和其他网络冲突的PAN ID。After finding a suitable channel, the coordinator will select a network identifier (PAN ID, value<=0x3FFF) for the network. This ID is unique in the channel used, and cannot conflict with other zigbee networks, and cannot It is the broadcast address 0xFFFF (this address is reserved and cannot be used). The PAN ID can be obtained by listening to the IDs of other networks and then selecting an ID that will not conflict, or you can manually specify the channel to scan to determine the PAN ID that does not conflict with other networks.
在zigbee网络中有两种地址模式:扩展地址(64位)和短地址(16位),其中,扩展地址由IEEE组织分配,用于唯一的设备标识;短地址用于本地网络中设备标识,在一个网络中,每个设备的短地址必须唯一,当节点加入网络时由其父节点分配并通过使用短地址来通信。对于协调器来说,短地址通常设定为0x0000。There are two address modes in the zigbee network: extended address (64 bits) and short address (16 bits), where the extended address is assigned by the IEEE organization for unique device identification; the short address is used for device identification in the local network, In a network, the short address of each device must be unique. When a node joins the network, it is assigned by its parent node and communicates by using the short address. For the coordinator, the short address is usually set to 0x0000.
上述步骤完成后,就成功初始化了zigbee网状网络,之后就等待其他节点的加入。节点入网时将选择范围内信号最强的父节点(包括协调器)加入网络,成功后将得到一个网络短地址并通过这个地址进行数据的发送和接收,网络拓扑关系和地址就会保存在各自的flash中。After the above steps are completed, the zigbee mesh network is successfully initialized, and then it waits for other nodes to join. When a node joins the network, it will select the parent node (including the coordinator) with the strongest signal within the range to join the network. After success, it will get a short network address and send and receive data through this address. The network topology and address will be saved in their respective in the flash.
zigbee节点模块,通过协调器加入网络:Zigbee node module, join the network through the coordinator:
当协调器确定之后,节点首先需要和协调器建立连接加入网络。When the coordinator is determined, the node first needs to establish a connection with the coordinator to join the network.
为了建立连接,FFD节点需要向协调器提出请求,协调器接收到节点的连接请求后根据情况决定是否允许其连接,然后对请求连接的节点做出响应,节点与协调器建立连接后,才能实现数据的收发。节点加入网络的具体流程可以分为下面的步骤:In order to establish a connection, the FFD node needs to make a request to the coordinator. After receiving the connection request of the node, the coordinator decides whether to allow the connection according to the situation, and then responds to the node requesting the connection. After the node establishes a connection with the coordinator, it can be realized. Sending and receiving of data. The specific process of nodes joining the network can be divided into the following steps:
查找网络协调器:Find the network coordinator:
首先会主动扫描查找周围网络的协调器,如果在扫描期限内检测到信标,则获得了协调器的有关信息,这时就向协调器发出连接请求。在选择合适的网络之后,上层将请求MAC层对物理层PHY和MAC层的phyCurrentChannel、macPANID等PIB属性进行相应的设置。First, it will actively scan to find the coordinator of the surrounding network. If a beacon is detected within the scanning period, the relevant information of the coordinator is obtained, and then a connection request is sent to the coordinator. After selecting an appropriate network, the upper layer will request the MAC layer to set the PIB attributes such as phyCurrentChannel and macPANID of the physical layer PHY and the MAC layer accordingly.
发送关联请求命令(Associaterequest command):节点将关联请求命令发送给协调器,协调器收到后立即回复一个确认帧(ACK),同时向它的上层发送连接指示原语,表示已经收到节点的连接请求。但是这并不意味着已经建立连接,只表示协调器已经收到节点的连接请求。当协调器的mac层的上层接收到连接指示原语后,将根据自己的资源情况(存储空间和能量)决定是否同意此节点的加入请求,然后给节点的mac层发送响应。Send association request command (Associate request command): the node sends the association request command to the coordinator, and the coordinator immediately replies with an acknowledgment frame (ACK) after receiving it, and at the same time sends a connection instruction primitive to its upper layer, indicating that it has received the node’s Connection request. But this does not mean that the connection has been established, it only means that the coordinator has received the connection request from the node. When the upper layer of the mac layer of the coordinator receives the connection indication primitive, it will decide whether to agree to the joining request of this node according to its own resource conditions (storage space and energy), and then send a response to the mac layer of the node.
等待协调器处理:Wait for the coordinator to process:
当节点收到协调器加入关联请求命令的ACK后,节点mac将等待一段时间,接受协调器的连接响应。在预定的时间内,如果接收到连接响应,它将这个响应向它的上层通告。而协调器给节点的mac层发送响应时会设置一个等待响应时间(T_ResponseWaitTime)来等待协调器对其加入请求命令的处理,若协调器的资源足够,协调器会给节点分配一个16位的短地址,并产生包含新地址和连接成功状态的连接响应命令,则此节点将成功的和协调器建立连接并可以开始通信。若协调器资源不够,待加入的节点将重新发送请求信息,直接入网成功。After the node receives the ACK of the coordinator's join association request command, the node mac will wait for a period of time to accept the connection response from the coordinator. Within a predetermined time, if a connection response is received, it notifies this response to its upper layer. When the coordinator sends a response to the node's mac layer, it will set a waiting response time (T_ResponseWaitTime) to wait for the coordinator to process its join request command. If the resources of the coordinator are sufficient, the coordinator will assign a 16-bit short message to the node. Address, and generate a connection response command containing the new address and connection success status, then this node will successfully establish a connection with the coordinator and can start communication. If the resources of the coordinator are insufficient, the node to be joined will resend the request information, and the direct access to the network is successful.
发送数据请求命令:Send data request command:
如果协调器在响应时间内同意节点加入,那么将产生关联响应命令(Associateresponse command)并存储这个命令。当响应时间过后,节点发送数据请求命令(Datarequest command)给协调器,协调器收到后立即回复ACK,然后将存储的关联响应命令发给节点。如果在响应时间到后,协调器还没有决定是否同意节点加入,那么节点将试图从协调器的信标帧中提取关联响应命令,成功的话就可以入网成功,否则重新发送请求信息直到入网成功。If the coordinator agrees with the node to join within the response time, an Associate response command (Associate response command) will be generated and stored. When the response time has elapsed, the node sends a data request command (Datarequest command) to the coordinator, and the coordinator immediately replies ACK after receiving it, and then sends the stored associated response command to the node. If the coordinator has not decided whether to allow the node to join after the response time is up, the node will try to extract the associated response command from the beacon frame of the coordinator. If it succeeds, the network can be successfully connected, otherwise the request information will be resent until the network is successfully connected.
需要说明的是,以上zigbee节点模块的组网方式仅为本实施例的较佳实施方法,并非唯一实施方式,在zigbee搜索到网络协调器后,还可以根据现有的其他方式进行组网,此处不再一一列举。It should be noted that the above networking mode of the zigbee node module is only a preferred implementation method of this embodiment, and it is not the only implementation mode. After the network coordinator is found by zigbee, networking can also be carried out according to other existing methods. They are not listed here.
实施例2Example 2
图2是本发明实施例2的触发指纹门锁的无线通信模块搜索网络的装置的结构框图,如图2所示,该装置20包括如下组成部分:Fig. 2 is a structural block diagram of a device for searching a network by a wireless communication module that triggers a fingerprint door lock according to Embodiment 2 of the present invention. As shown in Fig. 2 , the device 20 includes the following components:
判断模块21,用于当检测到指纹门锁的滑盖开启时,判断指纹门锁的无线通信模块是否与网络保持连接;Judging module 21, used to judge whether the wireless communication module of the fingerprint door lock is connected to the network when the slide cover of the fingerprint door lock is detected to be opened;
触发模块22,用于在无线通信模块与网络连接断开连接的情况下,触发无线通信模块在预设时间段内搜索附近的无线网络。The trigger module 22 is configured to trigger the wireless communication module to search for nearby wireless networks within a preset time period when the wireless communication module is disconnected from the network connection.
其中,上述触发模块22具体可以用于触发无线通信模块中的zigbee节点模块搜索附件的网络协调器,以使zigbee节点模块通过网络协调器与网络建立连接。Wherein, the above-mentioned triggering module 22 can be specifically used to trigger the zigbee node module in the wireless communication module to search for an attached network coordinator, so that the zigbee node module can establish a connection with the network through the network coordinator.
上述判断模块21具体用于,当检测到指纹门锁的滑盖被滑开时,触发指纹门锁的微控制单元MCU中断,以使MCU从zigbee节点模块处获取zigbee节点模块是否与网络协调器保持连接的消息。The above-mentioned judging module 21 is specifically used for, when it is detected that the slide cover of the fingerprint door lock is slid open, the micro control unit MCU of the trigger fingerprint door lock is interrupted, so that the MCU obtains from the zigbee node module whether the zigbee node module is connected with the network coordinator Keep connected messages.
其中,上述触发模块22用于,触发zigbee节点模块在预设时间段内搜索网络协调器,待搜索成功后,停止搜索并与搜索到的网络协调器建立连接。Wherein, the above-mentioned triggering module 22 is used to trigger the zigbee node module to search for the network coordinator within a preset time period, and stop searching and establish a connection with the searched network coordinator after the search is successful.
为了使得指纹门锁进一步节能,上述装置还可以包括,休眠模块,用于在检测到指纹门锁的滑盖关闭后,使MCU处于眠状态。In order to further save energy for the fingerprint door lock, the above device may further include a sleep module, configured to put the MCU in a sleep state after detecting that the slide cover of the fingerprint door lock is closed.
本发明实施例的方案,在检测到指纹门锁的滑盖开启且其无线通信模块未与网络建立连接的情况下,触发指纹门锁的无线通信模块搜索附近的无线网络,由于用户在一天之内使用指纹门锁的次数是有限的,所以触发无线通信模块搜索附件无线网络事件的次数也是有限的,这样就减少了无线通信模块搜索的时长,降低了指纹门锁的耗电量。In the solution of the embodiment of the present invention, when it is detected that the slide cover of the fingerprint door lock is opened and its wireless communication module has not established a connection with the network, the wireless communication module of the fingerprint door lock is triggered to search for nearby wireless networks. The number of times the fingerprint door lock is used within is limited, so the number of times the wireless communication module is triggered to search for accessory wireless network events is also limited, thus reducing the search time of the wireless communication module and reducing the power consumption of the fingerprint door lock.
尽管为示例目的,已经公开了本发明的优选实施例,本领域的技术人员将意识到各种改进、增加和取代也是可能的,因此,本发明的范围应当不限于上述实施例。Although preferred embodiments of the present invention have been disclosed for illustrative purposes, those skilled in the art will appreciate that various modifications, additions and substitutions are possible, and therefore, the scope of the present invention should not be limited to the above-described embodiments.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510051195.7A CN104637147A (en) | 2015-01-30 | 2015-01-30 | Method and device for searching network by triggering wireless communication module of fingerprint door lock |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510051195.7A CN104637147A (en) | 2015-01-30 | 2015-01-30 | Method and device for searching network by triggering wireless communication module of fingerprint door lock |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104637147A true CN104637147A (en) | 2015-05-20 |
Family
ID=53215850
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510051195.7A Pending CN104637147A (en) | 2015-01-30 | 2015-01-30 | Method and device for searching network by triggering wireless communication module of fingerprint door lock |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104637147A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105957323A (en) * | 2016-05-24 | 2016-09-21 | 上海玮舟微电子科技有限公司 | Remote control method, remote control device and remote control unit |
CN106658576A (en) * | 2016-10-19 | 2017-05-10 | 北京三快在线科技有限公司 | Data processing method, data processing device and network system |
CN108259281A (en) * | 2018-02-27 | 2018-07-06 | 中国地质大学(武汉) | Intelligent domestic system based on ZigBee and Raspberry Pi |
CN109361760A (en) * | 2018-11-20 | 2019-02-19 | 北京千丁互联科技有限公司 | Intelligent door lock system and intelligent door lock recombinate network method |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1512028A (en) * | 2002-12-31 | 2004-07-14 | 深圳市高科智能系统有限公司 | Method for central radio control of entrance guard and door locks and system device |
CN201465197U (en) * | 2009-06-17 | 2010-05-12 | 王伟 | The circuit of automatic switch lock using mobile phone bluetooth |
CN201498027U (en) * | 2009-08-06 | 2010-06-02 | 上海宝路机电有限公司 | Electricity-saving access-card identification system |
EP2220811A2 (en) * | 2007-12-10 | 2010-08-25 | Resonance Holdings Limited | Methods and apparatus relating to a security system |
CN102549625A (en) * | 2009-06-08 | 2012-07-04 | 哈罗产品有限公司 | Electronic door lock for reduced power consumption |
CN102711224A (en) * | 2012-05-07 | 2012-10-03 | 李凯 | Method for lowering power consumption of wireless communication locking system |
CN202483277U (en) * | 2012-01-07 | 2012-10-10 | 深圳市中控生物识别技术有限公司 | Fingerprint lock device with ZigBee wireless communication function |
CN203499375U (en) * | 2013-10-08 | 2014-03-26 | 深圳市中跃科技开发有限公司 | Multifunctional fingerprint door lock |
CN203535701U (en) * | 2013-09-16 | 2014-04-09 | 深圳市同创新佳科技有限公司 | Networked electronic door lock and networked electronic door lock system |
CN103886658A (en) * | 2014-01-28 | 2014-06-25 | 北京中科虹霸科技有限公司 | Multi-modal biometric recognition-based distributed internet-of-things lock equipment and unlocking method thereof |
CN204098628U (en) * | 2014-04-16 | 2015-01-14 | 青岛文达通科技股份有限公司 | Sliding cover type fingerprint lock |
-
2015
- 2015-01-30 CN CN201510051195.7A patent/CN104637147A/en active Pending
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1512028A (en) * | 2002-12-31 | 2004-07-14 | 深圳市高科智能系统有限公司 | Method for central radio control of entrance guard and door locks and system device |
EP2220811A2 (en) * | 2007-12-10 | 2010-08-25 | Resonance Holdings Limited | Methods and apparatus relating to a security system |
CN102549625A (en) * | 2009-06-08 | 2012-07-04 | 哈罗产品有限公司 | Electronic door lock for reduced power consumption |
CN201465197U (en) * | 2009-06-17 | 2010-05-12 | 王伟 | The circuit of automatic switch lock using mobile phone bluetooth |
CN201498027U (en) * | 2009-08-06 | 2010-06-02 | 上海宝路机电有限公司 | Electricity-saving access-card identification system |
CN202483277U (en) * | 2012-01-07 | 2012-10-10 | 深圳市中控生物识别技术有限公司 | Fingerprint lock device with ZigBee wireless communication function |
CN102711224A (en) * | 2012-05-07 | 2012-10-03 | 李凯 | Method for lowering power consumption of wireless communication locking system |
CN203535701U (en) * | 2013-09-16 | 2014-04-09 | 深圳市同创新佳科技有限公司 | Networked electronic door lock and networked electronic door lock system |
CN203499375U (en) * | 2013-10-08 | 2014-03-26 | 深圳市中跃科技开发有限公司 | Multifunctional fingerprint door lock |
CN103886658A (en) * | 2014-01-28 | 2014-06-25 | 北京中科虹霸科技有限公司 | Multi-modal biometric recognition-based distributed internet-of-things lock equipment and unlocking method thereof |
CN204098628U (en) * | 2014-04-16 | 2015-01-14 | 青岛文达通科技股份有限公司 | Sliding cover type fingerprint lock |
Non-Patent Citations (1)
Title |
---|
王仲东: "《物联网的开发与应用实践》", 28 February 2014 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105957323A (en) * | 2016-05-24 | 2016-09-21 | 上海玮舟微电子科技有限公司 | Remote control method, remote control device and remote control unit |
CN106658576A (en) * | 2016-10-19 | 2017-05-10 | 北京三快在线科技有限公司 | Data processing method, data processing device and network system |
CN108259281A (en) * | 2018-02-27 | 2018-07-06 | 中国地质大学(武汉) | Intelligent domestic system based on ZigBee and Raspberry Pi |
CN109361760A (en) * | 2018-11-20 | 2019-02-19 | 北京千丁互联科技有限公司 | Intelligent door lock system and intelligent door lock recombinate network method |
CN109361760B (en) * | 2018-11-20 | 2021-04-13 | 北京千丁互联科技有限公司 | Intelligent door lock system and intelligent door lock recombination network method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6724024B2 (en) | Connection mode extended intermittent reception | |
RU2693592C1 (en) | Method, device and a computer program product for a service detection proxy session for wireless communication | |
JP6363117B2 (en) | System and method for discovery and synchronization within a neighbor aware network | |
EP2497286B1 (en) | Peer discovery in a wireless communication network | |
EP2989815B1 (en) | Systems and methods for identification in a neighborhood aware network | |
JP6321051B2 (en) | System and method for synchronization within a neighbor aware network | |
TW201010488A (en) | Methods and apparatus for scanning for mesh nodes | |
CN113411783B (en) | Method for performing inter-PLMN discovery by user equipment in device-to-device communication | |
EP2993928B1 (en) | Device selection to establish a wireless communication | |
US20090274082A1 (en) | Methods and Apparatus for Power Saving for Mesh Nodes | |
KR102167933B1 (en) | Method and apparatus for scanning access point in wileless system | |
CN104919828A (en) | Systems and methods for formatting frames in neighborhood aware networks | |
WO2021057413A1 (en) | Method and device for automatic role assumption, and computer readable storage medium | |
CN103493397A (en) | Method of associating a client with an access point in a wireless local area network | |
US12052680B2 (en) | Simple and assisted mechanism for registering an internet-of-things (IoT) device | |
WO2021243600A1 (en) | Data transmission processing method and apparatus, and user equipment, and storage medium | |
CA2963155A1 (en) | Systems and methods for synchronization within a neighborhood aware network | |
US20240049342A1 (en) | Drx configuration method and apparatus, communication device and storage medium | |
CN114080062A (en) | Method, medium and equipment for reselecting relay UE | |
TWI862861B (en) | Partial sensing enhancements for sidelink resource allocation | |
JP2017502621A (en) | Relay-compatible wireless device | |
CN104637147A (en) | Method and device for searching network by triggering wireless communication module of fingerprint door lock | |
WO2014101893A1 (en) | Device discovery method, apparatus and system | |
AU2017254385A1 (en) | Techniques for allocating short addresses to network devices | |
US20170188296A1 (en) | Wireless communication system and wireless communication method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into 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: 20150520 |