CN110972080A - ZigBee gateway searching method, equipment and storage medium - Google Patents

ZigBee gateway searching method, equipment and storage medium Download PDF

Info

Publication number
CN110972080A
CN110972080A CN201911201732.6A CN201911201732A CN110972080A CN 110972080 A CN110972080 A CN 110972080A CN 201911201732 A CN201911201732 A CN 201911201732A CN 110972080 A CN110972080 A CN 110972080A
Authority
CN
China
Prior art keywords
mobile terminal
zigbee gateway
reply
finding
zigbee
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911201732.6A
Other languages
Chinese (zh)
Other versions
CN110972080B (en
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.)
Guangdong Ketyoo Intelligent Technology Co Ltd
Original Assignee
Guangdong Ketyoo Intelligent 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 Guangdong Ketyoo Intelligent Technology Co Ltd filed Critical Guangdong Ketyoo Intelligent Technology Co Ltd
Priority to CN201911201732.6A priority Critical patent/CN110972080B/en
Publication of CN110972080A publication Critical patent/CN110972080A/en
Application granted granted Critical
Publication of CN110972080B publication Critical patent/CN110972080B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/16Gateway arrangements

Landscapes

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

Abstract

The invention discloses a method, equipment and a storage medium for searching a ZigBee gateway, which comprise the following steps: s10, the ZigBee gateway is connected with the router, and the mobile terminal is connected with the wireless local area network of the router; s20, the mobile terminal broadcasts an appointed instruction in the local area network, and the ZigBee gateway sends a reply to the mobile terminal after receiving the broadcast; s30, the mobile terminal receives the reply and receives the to-be-matched list of the SDK; s40, the mobile terminal requests a filtering interface of the server side to screen out the equipment meeting the filtering condition; and S50, displaying the screened ZigBee gateway by the mobile terminal. The invention realizes the connection of one router and the ZigBee gateway and searches out all the ZigBee gateways through the mobile terminal.

Description

ZigBee gateway searching method, equipment and storage medium
Technical Field
The invention relates to the technical field of intelligent system development, in particular to a method, equipment and a storage medium for searching a ZigBee gateway.
Background
The Zigbee technology is a wireless communication technology applied to short distances and low rates. The method is mainly used for data transmission among various electronic devices with short distance, low power consumption and low transmission rate. In general, a home is provided with a router and a Zigbee gateway. However, users want to connect multiple ZigBee gateways under the same router to realize classification control of different electronic devices in a home. The current mobile terminal software cannot directly display all Zigbee gateways connected with the router, so that inconvenience is caused to the viewing and management of a user, and the use experience of the user is reduced.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention aims to provide a searching method, equipment and a storage medium of a ZigBee gateway, so that a router is connected with the ZigBee gateway, and all ZigBee gateways are searched by a mobile terminal.
One of the purposes of the invention is realized by adopting the following technical scheme:
a method for searching a ZigBee gateway comprises the following steps:
s10, the ZigBee gateway is connected with the router, and the mobile terminal is connected with the wireless local area network of the router;
s20, the mobile terminal broadcasts an appointed instruction in the local area network, and the ZigBee gateway sends a reply to the mobile terminal after receiving the broadcast;
s30, after receiving the reply, the mobile terminal receives a to-be-matched list of the SDK;
s40, the mobile terminal requests a filtering interface of the server side to screen out the equipment meeting the filtering condition;
and S50, displaying the screened ZigBee gateway by the mobile terminal.
Further, the step of sending a reply to the mobile terminal after the ZigBee gateway receives the broadcast in S20 further includes the following steps:
s21, the ZigBee gateway receives the specified instruction and reports a token;
and S22, if the token report is successful, sending a reply with the token to the mobile terminal.
Further, the specified instruction in S20 is/device/info/get.
Further, the filtering interface of the server in S40 is awss/error/product/filter.
Further, in S40, the filtering condition is to screen out bound devices, devices that are not supported by the current mobile terminal, and devices that need to be isolated.
Further, the reply with the token in S22 is a unicast reply with the token or a broadcast with the token.
Further, in S30, after the mobile terminal receives the reply, the APP upper layer of the mobile terminal receives the to-be-configured list filtered by the SDK.
The second purpose of the invention is realized by adopting the following technical scheme:
an apparatus comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the processor implementing a finding method of a ZigBee gateway as described above when executing the computer program.
The third purpose of the invention is realized by adopting the following technical scheme:
a storage medium having stored thereon a computer program which, when executed, implements a method of finding a ZigBee gateway as described above.
Compared with the prior art, the invention has the beneficial effects that:
the invention provides a searching method, equipment and a storage medium of a ZigBee gateway. The mobile terminal receives the reply and receives the to-be-configured list of the SDK, requests a filtering interface of the server, screens out equipment meeting filtering conditions, displays unfiltered ZigBee gateways, and realizes that all ZigBee gateways under the router are searched on the mobile terminal, so that one router is connected with a plurality of ZigBee gateways and can be searched and displayed by the mobile terminal.
Drawings
FIG. 1 is a schematic flow chart of a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of a second embodiment of the present invention.
Detailed Description
The present invention will be further described with reference to the accompanying drawings and the detailed description, and it should be noted that any combination of the embodiments or technical features described below can be used to form a new embodiment without conflict.
Example one
As shown in fig. 1, the present invention provides a method for finding a ZigBee gateway, which is implemented by an APP of a mobile terminal, and includes the following steps:
s10, the ZigBee gateway is connected with the router, and the mobile terminal is connected with the wireless local area network of the router, namely, the mobile terminal is connected with the hot spot of the router and enters the same local area network.
S20, the mobile terminal APP broadcasts a specified instruction in the local area network, and waits for reply information; specifically, the command is designated as/device/info/get, and related equipment of the ZigBee gateway is searched.
S21, after receiving the specified instruction through broadcasting, the ZigBee gateway reports a token;
and S22, after the token is reported successfully, the ZigBee gateway sends a reply with the token to the IP of the mobile terminal. The ZigBee gateway replies to the IP of the mobile terminal, and the IP can be notified through a unicast reply containing the token or a broadcast with the token. Unicast refers to point-to-point connection between a mobile terminal and a server, and is communication between a single sender and a receiver through a network, so that the ZigBee gateway can send different recoveries according to different requests of the mobile terminal, thereby realizing feasible service and facilitating the timely response of the mobile terminal.
And S30, the mobile terminal receives the reply, and then represents to discover the ZigBee gateway. An upper layer of the mobile terminal APP receives a to-be-matched list of the SDK;
s40, filtering interfaces of the upper layer request server of the mobile terminal APP screen out the devices meeting the filtering condition, and returning the devices to the mobile terminal APP. The filtering interface of the server is awss/error/product/filter, and the filtering condition is to screen out bound devices, devices which are not supported by the current mobile terminal APP, and devices which need to be isolated.
S50, displaying the filtered ZigBee gateway on the UI interface by the mobile terminal APP.
After the ZigBee gateway is connected with the router, the mobile terminal broadcasts an appointed instruction, and the ZigBee gateway replies to the mobile terminal after receiving the broadcast. The mobile terminal receives the reply and receives the to-be-configured list of the SDK, requests a filtering interface of the server, screens out equipment meeting filtering conditions, displays unfiltered ZigBee gateways, and realizes that all ZigBee gateways under the router are searched on the mobile terminal, so that one router is connected with a plurality of ZigBee gateways and can be searched and displayed by the mobile terminal. And the user directly binds the hot spot of the router through the APP, so that all ZigBee gateways under the router are searched on the SPP, and the user can conveniently check and manage.
In addition, the present invention also provides a storage medium, wherein the storage medium stores a computer program, and the computer program realizes the steps of the foregoing searching method for the ZigBee gateway when being executed by a processor.
Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like. It should be noted that the computer-readable medium may contain any suitable combination of elements that may be modified in accordance with the requirements of statutory and patent practice in the jurisdiction, for example, in some jurisdictions, computer-readable media may not contain electrical carrier signals or telecommunications signals in accordance with statutory and patent practice.
The invention is operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like, as in embodiment two.
Example two
An electronic device, as shown in fig. 2, includes a memory, a processor and a program stored in the memory, the program is configured to be executed by the processor, and the processor executes the program to implement the steps of the finding method of the ZigBee gateway.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general processor can be a microprocessor or the processor can be any conventional processor and the like, the processor is a control center of the searching method of the ZigBee gateway, and various interfaces and lines are utilized to connect various parts of the searching method of the ZigBee gateway.
The memory may be used to store computer programs and/or modules, and the processor implements various functions of a finding method of a ZigBee gateway by operating or executing the computer programs and/or modules stored in the memory and calling data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) of the at least one function station advocate, and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, etc. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash-Card) at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The above embodiments are only preferred embodiments of the present invention, and the protection scope of the present invention is not limited thereby, and any insubstantial changes and substitutions made by those skilled in the art based on the present invention are within the protection scope of the present invention.

Claims (9)

1. A method for searching a ZigBee gateway is characterized by comprising the following steps:
s10, the ZigBee gateway is connected with the router, and the mobile terminal is connected with the wireless local area network of the router;
s20, the mobile terminal broadcasts an appointed instruction in the local area network, and the ZigBee gateway sends a reply to the mobile terminal after receiving the broadcast;
s30, the mobile terminal receives the reply and receives the to-be-matched list of the SDK;
s40, the mobile terminal requests a filtering interface of the server side to screen out the equipment meeting the filtering condition;
and S50, displaying the screened ZigBee gateway by the mobile terminal.
2. The method for finding the ZigBee gateway of claim 1, wherein the step of sending the response to the mobile terminal after the ZigBee gateway receives the broadcast in S20 further comprises the steps of:
s21, the ZigBee gateway receives the specified instruction and reports a token;
and S22, if the token report is successful, sending a reply with the token to the mobile terminal.
3. The method for finding a ZigBee gateway according to claim 1, wherein the instruction specified in S20 is/device/info/get.
4. The method for finding a ZigBee gateway of claim 1, wherein the filtering interface of the server in S40 is awss/error/product/filter.
5. The method for finding the ZigBee gateway of claim 1, wherein the filtering condition in S40 is to screen out bound devices, devices not supported by the current mobile terminal, and devices to be isolated.
6. The finding method of ZigBee gateway of claim 2, wherein the reply with token in S22 is unicast reply with token or broadcast with token.
7. The method for finding a ZigBee gateway of claim 1, wherein the APP upper layer of the mobile terminal receives the SDK-filtered list to be provisioned after the mobile terminal receives the reply in S30.
8. An apparatus, characterized in that it comprises a processor, a memory and a computer program stored on the memory and capable of running on the processor, and the processor executes the computer program to implement the finding method of a ZigBee gateway according to any one of claims 1 to 7.
9. A storage medium, characterized in that it has a computer program stored thereon, which when executed implements a method for finding a ZigBee gateway according to any one of claims 1 to 7.
CN201911201732.6A 2019-11-29 2019-11-29 ZigBee gateway searching method, equipment and storage medium Active CN110972080B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911201732.6A CN110972080B (en) 2019-11-29 2019-11-29 ZigBee gateway searching method, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911201732.6A CN110972080B (en) 2019-11-29 2019-11-29 ZigBee gateway searching method, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110972080A true CN110972080A (en) 2020-04-07
CN110972080B CN110972080B (en) 2022-03-04

Family

ID=70032149

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911201732.6A Active CN110972080B (en) 2019-11-29 2019-11-29 ZigBee gateway searching method, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110972080B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047673A (en) * 2006-05-26 2007-10-03 华为技术有限公司 Method and system for acquiring terminal address correlation information
CN101114965A (en) * 2007-08-21 2008-01-30 当代天启技术(北京)有限公司 Method and system for binding wireless terminal equipment and gateway in LAN
CN101489188A (en) * 2009-02-25 2009-07-22 南京邮电大学 Gateway discovery method in multimedia sensor network access technique
CN102857992A (en) * 2012-09-05 2013-01-02 江南大学 ZigBee network based multi-gateway transmission system
CN105185085A (en) * 2015-09-22 2015-12-23 小米科技有限责任公司 Data communication system, method and device
CN106304059A (en) * 2015-05-19 2017-01-04 美的集团股份有限公司 ZigBee-network subnetting management method and system
US9591728B2 (en) * 2014-02-26 2017-03-07 Electronics And Telecommunications Research Institute Apparatus and method for controlling zigbee wireless lighting
CN109348458A (en) * 2018-10-23 2019-02-15 深圳绿米联创科技有限公司 Network connection configuration method, apparatus, electronic equipment and network system
CN109413515A (en) * 2018-11-20 2019-03-01 深圳绿米联创科技有限公司 Apparatus control method, device, mobile terminal and server

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047673A (en) * 2006-05-26 2007-10-03 华为技术有限公司 Method and system for acquiring terminal address correlation information
CN101114965A (en) * 2007-08-21 2008-01-30 当代天启技术(北京)有限公司 Method and system for binding wireless terminal equipment and gateway in LAN
CN101489188A (en) * 2009-02-25 2009-07-22 南京邮电大学 Gateway discovery method in multimedia sensor network access technique
CN102857992A (en) * 2012-09-05 2013-01-02 江南大学 ZigBee network based multi-gateway transmission system
US9591728B2 (en) * 2014-02-26 2017-03-07 Electronics And Telecommunications Research Institute Apparatus and method for controlling zigbee wireless lighting
CN106304059A (en) * 2015-05-19 2017-01-04 美的集团股份有限公司 ZigBee-network subnetting management method and system
CN105185085A (en) * 2015-09-22 2015-12-23 小米科技有限责任公司 Data communication system, method and device
CN109348458A (en) * 2018-10-23 2019-02-15 深圳绿米联创科技有限公司 Network connection configuration method, apparatus, electronic equipment and network system
CN109413515A (en) * 2018-11-20 2019-03-01 深圳绿米联创科技有限公司 Apparatus control method, device, mobile terminal and server

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
彭玉颜等: "无线自组织网络GDSR的路由算法研究", 《单片机与嵌入式***应用》 *

Also Published As

Publication number Publication date
CN110972080B (en) 2022-03-04

Similar Documents

Publication Publication Date Title
US9813852B2 (en) System and method for positioning terminal
CN104219617B (en) Service acquisition method and device
CN104092723B (en) Document down loading method, Apparatus and system
CN107548550A (en) Function management MBMS membership qualifications are opened in service ability
CN109656980A (en) Data processing method, electronic equipment, device and readable storage medium storing program for executing
CN105050053A (en) Group establishing method based on position information and server
CN107608647A (en) One kind throws screen method, system, server and computer-readable recording medium
CN105025043A (en) Information sharing method, information sharing device and information sharing system
CN110996372B (en) Message routing method, device and system and electronic equipment
CN104820665A (en) Method, terminal and server for exhibiting recommendation information
CN105050063A (en) Method and device for pushing information
CN102647661A (en) Method for sending real-time status of terminal and interaction method based on real-time status
CN104380692A (en) Advertising monitoring method, related equipment and system
CN104105007A (en) Video loading method of mobile terminal, devices and system
CN107181755A (en) A kind of personal identification method of office platform, apparatus and system
CN104980290A (en) Method for establishing groups and server
CN104378755A (en) Terminal interaction method and device
CN110166819A (en) A kind of method, apparatus, terminal and system playing multimedia resource
CN104702634A (en) Method, device and system for processing data operation request
CN103906174A (en) Device discovery method and terminal
CN104717131A (en) Information interaction method and server
CN103716230A (en) Message sending method, device and server
CN101132527A (en) Apparatus and method for transmitting and receiving broadcasting guide information using user information
CN104969598B (en) A kind of method and apparatus using white spectrum communication
CN110972080B (en) ZigBee gateway searching method, equipment and storage medium

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
CB02 Change of applicant information

Address after: 511434 No.1 and No.2, Shihua Road, Hualong Town, Panyu District, Guangzhou City, Guangdong Province

Applicant after: Guangdong haomadame smart home Co.,Ltd.

Address before: No.1, No.2 highway, No.2, Panyu, Guangzhou

Applicant before: GUANGDONG KELAINI INTELLIGENT TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant