CN106412031A - Internet of things device discovering and controlling method - Google Patents

Internet of things device discovering and controlling method Download PDF

Info

Publication number
CN106412031A
CN106412031A CN201610825549.3A CN201610825549A CN106412031A CN 106412031 A CN106412031 A CN 106412031A CN 201610825549 A CN201610825549 A CN 201610825549A CN 106412031 A CN106412031 A CN 106412031A
Authority
CN
China
Prior art keywords
equipment
service
control
description
gateway
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610825549.3A
Other languages
Chinese (zh)
Inventor
谢锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changzhou First Information Technology Co Ltd
Original Assignee
Shenzhen Fengju Tyco Electronics 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 Shenzhen Fengju Tyco Electronics Co ltd filed Critical Shenzhen Fengju Tyco Electronics Co ltd
Priority to CN201610825549.3A priority Critical patent/CN106412031A/en
Publication of CN106412031A publication Critical patent/CN106412031A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/256NAT traversal
    • H04L61/2582NAT traversal through control of the NAT server, e.g. using universal plug and play [UPnP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present invention discloses an internet of things device discovering and controlling method. The method comprises a first step of automatically discovering a device; a second step of describing; and a third step of controlling the device. The method and a generated description file are easy; the method is not limited by a networking manner and can realize internet connection or can be applied to other manners such as Zigbee and Bluetooth; and the method has very low demand on device performances, has no massive calculation and complex logics, and does not rely on other functions or systems.

Description

A kind of discovery of internet of things equipment and control method
Technical field
The present invention relates to Internet of Things and in particular to a kind of simple mode come to realize in LAN the automatic discovery of equipment and The discovery of internet of things equipment mutually controlling and control method.
Background technology
Ununified mode at present, the more commonly used is UPnP protocol.UPnP is controlling pointer and controlled device Between provide communication function.And network medium, ICP/IP protocol, HTTP only provide basic connection and IP address distribution.Entirely The course of work needs to process the content of six aspects, i.e. equipment addressing, discovering device, the description to equipment, equipment control, equipment Event, equipment expression.
Equipment addresses:
Address is the basic condition of whole UPnP system work, and each equipment should be DHCP(Dynamic Host Configuration Protocol DHCP)Client.After equipment is set up with network first and is connected, profit With DHCP service, equipment is made to obtain an IP address.This IP address can be that DHCP system is specified or by equipment Select.When not providing DHCP service in LAN, UPnP device by the agreement according to Auto-IP, from 169.254/ 169.16 address realms obtain unique IP address in a LAN.Equipment can also use the pet name(friendly name), this It is accomplished by domain name resolution service(DNS)To solve.
Discovering device:
It is divided into two kinds of situations, one kind is after having control data, lookup in current network has or not corresponding can use and sets Standby;Another kind of situation be a certain equipment access network, obtain IP address after, begin to " broadcast " oneself coming into network Network, that is, find control data.
The description of equipment:
Briefly, this is which type of equipment statement " oneself " is, such as title, manufacturer, serial number etc..Just start After " discovery " equipment, control " understanding " referring to for this equipment also little, need to find the description literary composition of this equipment according to URL Part, reads more description informations from these files.The wide range of description information, typically all by the manufacturer of equipment There is provided.Main described project has:The MODE name controlling and mode number, equipment Serial Number, manufacturer's title, manufacturer The URL ... of WEB etc..These typically all leave in specific XML file.
Equipment controls:
After controlling pointer to find equipment description, " can refine " from description and go out to be carried out operating and learn all of service; For each UPnP device, these descriptions must be very definite, very detailed, may include order or behavior row in description Table, service response information, parameter of using etc..For each behavior of service, also with description information:Mainly whole clothes Business carries out the variable of period, the feature of data type of a variable, available span and event.
Control certain equipment, control point must first send a controlling behavior request it is desirable to equipment starts to service, then The URL pressing equipment again sends corresponding control message, and control message is just located in the letter of those the SOAP forms in XML file Breath.Finally, service can return response message it is indicated that service is successfully or to fail.
Device events:
Within the whole time that service is carried out, as long as variate-value there occurs that change or the state of pattern there occurs change, just produce Give birth to an event, system will change the content of list of thing mentioned above.Therewith, event server event to whole net Network is broadcasted.On the other hand, event information can also be subscribed to event server it is ensured that feeling this control point in advance in control point The event of interest timely and accurately sends.
Broadcast or subscription event, transmission is all event message, and event message is also placed in XML file, the form of use It is GENA.
Preparation --- initialization procedure before equipment investment work, is also an event, and it is various that initialization needs Information is also with event messaging.Including content be mainly:Variable initial value, original state of pattern etc..
Equipment is expressed:
As long as having obtained the URL of equipment it is possible to obtain the URL of this equipment expression, then this expression can be included user's On local browser.This part also includes the interface with user session, and the process conversating with user.
Content of the invention
The purpose of the present invention is for the problems referred to above, provides a kind of mode of simple abstract to describe equipment, forms equipment Description file, as being mutually distinguishable and the discovery of the internet of things equipment on basis that controls and control method.
The technical solution used in the present invention is:A kind of discovery of internet of things equipment and control method, comprise the following steps:
S1, automatic device discovery:
IP address is the basic condition of whole system work, and each equipment is the client of dynamic host configuration protocol DHCP;When Equipment is set up with network after being connected first, using DHCP service, makes equipment obtain an IP address, this IP address is DHCP system System is specified, or by equipment choice;After equipment access network, acquirement IP address, start " to have broadcasted " oneself to network Through entering network, that is, find control data;
S2, description:Main described project has:The MODE name controlling and mode number, equipment Serial Number, manufacturer control ULR;
S3, equipment controls:
After gateway finds equipment description, from description, extract the to be carried out function of operating and learn, event, data, shape State and their parameters of using;These descriptions must be very definite, very detailed, may include order or behavior in description List, service response information, the parameter used;
For each behavior of service, also with description information:Mainly whole service carries out the variable of period, the data of variable Type, can span and event feature;
Control certain equipment, control point must first send a controlling behavior request it is desirable to equipment starts to service, and then presses again The ULR of equipment sends corresponding control message, and control message is just located in the information of device description file;Finally, service meeting Return response message it is indicated that service is successfully or to fail.
Further, described step S3 also includes:
Gateway completes following control after the description file of the equipment that receives:
S31, describes presentation device according to the information of equipment, downloads corresponding control script, by the man-machine friendship providing in script Mutually interface is manipulated;
S32, the function of the description file description according to equipment carries out equipment control;
S33, according to device description file equipment reported data;
S34, within the whole time that service is carried out, as long as variate-value there occurs that change or the state of pattern there occurs change, Just create an event, system will change the content of list of thing mentioned above;Therewith, equipment event to being sent to net Close, gateway sends the data to background server;On the other hand, gateway can meet certain condition by trigger by equipment and incite somebody to action Come on reporting events;
S35, equipment reported event information;
S36, adds trigger;
S37, obtains the state of equipment:Send including gateway and equipment returns.
Advantages of the present invention:
The method of the present invention and the description file generating are very simple;Do not limited by networking mode, it is possible to achieve internet's Connect it is also possible to be used for Zigbee, the other modes such as bluetooth;Requirement to equipment performance is very low, does not have substantial amounts of calculating, multiple Miscellaneous logic, also not dependent on other functions or system.
In addition to objects, features and advantages described above, the present invention also has other objects, features and advantages. Below with reference to figure, the present invention is further detailed explanation.
Brief description
The accompanying drawing constituting the part of the application is used for providing a further understanding of the present invention, the schematic reality of the present invention Apply example and its illustrate, for explaining the present invention, not constituting inappropriate limitation of the present invention.
Fig. 1 is a kind of discovery of internet of things equipment and the control method flow chart of the present invention.
Specific embodiment
In order that the objects, technical solutions and advantages of the present invention become more apparent, below in conjunction with drawings and Examples, right The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only in order to explain the present invention, and It is not used in the restriction present invention.
With reference to Fig. 1, the discovery of a kind of internet of things equipment as shown in Figure 1 and control method, comprise the following steps:
S1, automatic device discovery:
IP address is the basic condition of whole system work, and each equipment is the client of dynamic host configuration protocol DHCP;When Equipment is set up with network after being connected first, using DHCP service, makes equipment obtain an IP address, this IP address is DHCP system System is specified, or by equipment choice;After equipment access network, acquirement IP address, start " to have broadcasted " oneself to network Through entering network, that is, find control data;
S2, description:Main described project has:The MODE name controlling and mode number, equipment Serial Number, manufacturer control ULR;
S3, equipment controls:
After gateway finds equipment description, from description, extract the to be carried out function of operating and learn, event, data, shape State and their parameters of using;These descriptions must be very definite, very detailed, may include order or behavior in description List, service response information, the parameter used;
For each behavior of service, also with description information:Mainly whole service carries out the variable of period, the data of variable Type, can span and event feature;
Control certain equipment, control point must first send a controlling behavior request it is desirable to equipment starts to service, and then presses again The ULR of equipment sends corresponding control message, and control message is just located in the information of device description file;Finally, service meeting Return response message it is indicated that service is successfully or to fail.
Described step S3 also includes:
Gateway completes following control after the description file of the equipment that receives:
S31, describes presentation device according to the information of equipment, downloads corresponding control script, by the man-machine friendship providing in script Mutually interface is manipulated;
S32, the function of the description file description according to equipment carries out equipment control;
S33, according to device description file equipment reported data;
S34, within the whole time that service is carried out, as long as variate-value there occurs that change or the state of pattern there occurs change, Just create an event, system will change the content of list of thing mentioned above;Therewith, equipment event to being sent to net Close, gateway sends the data to background server;On the other hand, gateway can meet certain condition by trigger by equipment and incite somebody to action Come on reporting events;
S35, equipment reported event information;
S36, adds trigger;
S37, obtains the state of equipment:Send including gateway and equipment returns.
A kind of discovery of internet of things equipment of the embodiment of the present invention and control method, must at least one in equipment network Individual gateway node, gateway node can set up bigger network by cascade, presses with when in primary network station if there is multiple gateway First access the other equipment in preferential principle controlling network, if this gateway is not in work, other gateways take over its Work, controls the other equipment in gateway;
Gateway and equipment can be in same locals, and gateway also can be on internet, and in LAN, gateway can pass through multicast Mode broadcasts the information of oneself, and equipment says after receiving that the device description file of oneself sends gateway and completes networking;If gateway is sent out There are other gateways in existing network network, then the equipment that is automatically downgraded to is connected into gateway, be promoted to net when finding that gateway does not exist Close, and the information of multicast oneself, the other equipment in adapter network;If gateway is on internet, need specified setting Standby connection gateway.
The method of the present invention and the description file generating are very simple;Do not limited by networking mode, it is possible to achieve The connection of internet is it is also possible to be used for Zigbee, the other modes such as bluetooth;Requirement to equipment performance is very low, not big The calculating of amount, the logic of complexity, also not dependent on other functions or system.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all spirit in the present invention and Within principle, any modification, equivalent substitution and improvement made etc., should be included within the scope of the present invention.

Claims (2)

1. a kind of discovery of internet of things equipment and control method are it is characterised in that comprise the following steps:
S1, automatic device discovery:
IP address is the basic condition of whole system work, and each equipment is the client of dynamic host configuration protocol DHCP;When Equipment is set up with network after being connected first, using DHCP service, makes equipment obtain an IP address, this IP address is DHCP system System is specified, or by equipment choice;After equipment access network, acquirement IP address, start " to have broadcasted " oneself to network Through entering network, that is, find control data;
S2, description:Main described project has:The MODE name controlling and mode number, equipment Serial Number, manufacturer control ULR;
S3, equipment controls:
After gateway finds equipment description, from description, extract the to be carried out function of operating and learn, event, data, shape State and their parameters of using;These descriptions must be very definite, very detailed, may include order or behavior in description List, service response information, the parameter used;
For each behavior of service, also with description information:Mainly whole service carries out the variable of period, the data of variable Type, can span and event feature;
Control certain equipment, control point must first send a controlling behavior request it is desirable to equipment starts to service, and then presses again The ULR of equipment sends corresponding control message, and control message is just located in the information of device description file;Finally, service meeting Return response message it is indicated that service is successfully or to fail.
2. the discovery of internet of things equipment according to claim 1 and control method it is characterised in that
Described step S3 also includes:
Gateway completes following control after the description file of the equipment that receives:
S31, describes presentation device according to the information of equipment, downloads corresponding control script, by the man-machine friendship providing in script Mutually interface is manipulated;
S32, the function of the description file description according to equipment carries out equipment control;
S33, according to device description file equipment reported data;
S34, within the whole time that service is carried out, as long as variate-value there occurs that change or the state of pattern there occurs change, Just create an event, system will change the content of list of thing mentioned above;Therewith, equipment event to being sent to net Close, gateway sends the data to background server;On the other hand, gateway can meet certain condition by trigger by equipment and incite somebody to action Come on reporting events;
S35, equipment reported event information;
S36, adds trigger;
S37, obtains the state of equipment:Send including gateway and equipment returns.
CN201610825549.3A 2016-09-14 2016-09-14 Internet of things device discovering and controlling method Pending CN106412031A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610825549.3A CN106412031A (en) 2016-09-14 2016-09-14 Internet of things device discovering and controlling method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610825549.3A CN106412031A (en) 2016-09-14 2016-09-14 Internet of things device discovering and controlling method

Publications (1)

Publication Number Publication Date
CN106412031A true CN106412031A (en) 2017-02-15

Family

ID=57997134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610825549.3A Pending CN106412031A (en) 2016-09-14 2016-09-14 Internet of things device discovering and controlling method

Country Status (1)

Country Link
CN (1) CN106412031A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110753027A (en) * 2019-06-05 2020-02-04 青岛海信网络科技股份有限公司 Method and device for verifying weak password of equipment of UPnP protocol
CN112512097A (en) * 2020-11-18 2021-03-16 北京小米移动软件有限公司 Information processing method and device, electronic equipment and storage medium
CN112764637A (en) * 2021-02-01 2021-05-07 山东汇金海智慧农业研究院有限公司 Smart agriculture Internet of things equipment description file generation method

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
BRADDORIS: ""upnp协议简介(一)"", 《CSDN博客》 *
KERNEL_LEARNER: ""UPnP协议学习"", 《CSDN博客》 *
周亮: ""基于UPnP的智能家庭网络的研究与实现"", 《中国优秀硕士学位论文全文数据库信息科技辑》 *
苗涛: ""UPnp"", 《CSDN博客》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110753027A (en) * 2019-06-05 2020-02-04 青岛海信网络科技股份有限公司 Method and device for verifying weak password of equipment of UPnP protocol
CN112512097A (en) * 2020-11-18 2021-03-16 北京小米移动软件有限公司 Information processing method and device, electronic equipment and storage medium
CN112764637A (en) * 2021-02-01 2021-05-07 山东汇金海智慧农业研究院有限公司 Smart agriculture Internet of things equipment description file generation method
CN112764637B (en) * 2021-02-01 2023-06-20 山东汇金海智慧农业研究院有限公司 Intelligent agriculture Internet of things equipment description file generation method

Similar Documents

Publication Publication Date Title
US9973567B2 (en) System and method for terminal management in a home network using a virtual client
DE60308929T2 (en) Apparatus and method for providing information about home networking devices via the Internet
CN100488155C (en) Network device and control method thereof
CN101883158A (en) Method and client for acquiring VLAN (Virtual Local Area Network) IDs (Identifiers) and network protocol addresses
EP1655891A1 (en) Network management system with automatic device detection
CN104581419A (en) Dual-network realizing method based on android intelligent set-top box
CN103152234A (en) Method for implementing interconnection of digital home network devices
US20040208195A1 (en) Apparatus and method for connecting separate networks
CN106412031A (en) Internet of things device discovering and controlling method
CN101904156B (en) Exchanging control codes between SIP/IMS and UPnP network elements
CN105991377B (en) The method for finding and communicating between universal plug and play UPnP device
US7693972B2 (en) Directory service in an automation system
CN102238238A (en) Method and device for accessing local network equipment
CN104869665A (en) Network connection control method, router and mobile equipment
CN106878481A (en) A kind of Internet protocol IP address acquisition methods, device and system
CN107343058B (en) IP address distribution system and working method thereof
DE10252448A1 (en) Method for identifying devices equipment supporting multicast channel allocation protocol (MCAP) on same network, requires MCAP device for transmitting MCAP-advance notice message to all devices in same network
EP3048756B1 (en) Management method and apparatus for dynamic host configuration protocol server and relay
CN113810509A (en) System and method for reconfiguring a network using network traffic comparison
CN105050028A (en) Method and device for controlling household appliances
CN104320718B (en) It is a kind of to avoid multiple DMC from pushing the method and device that media play produces conflict
US20070206596A1 (en) Advertisement search agent
Chelius et al. No Administration Protocol (NAP) for IPv6 router auto-configuration
KR100455123B1 (en) Control message multicasting method and apparatus for universal plug and play network system
CN114979073A (en) Address information acquisition system, method, electronic device, and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20171102

Address after: 213002 Room 302, unit 1, Xintiandi garden, Tianning District, Jiangsu, Changzhou

Applicant after: Xie Feng

Address before: 518000, Guangdong, Foshan, Baoan District, Longhua,, Lang Lang, Baiyun Mountain, new village, Yongfeng Industrial Park, third floor, third floor

Applicant before: SHENZHEN FIGIGANTIC ELECTRONIC CO., LTD.

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20180208

Address after: 213161 Wujin District, Changzhou City, Jiangsu Province, Changwu Middle Road, No. 18 Changzhou science and Education City, Chuang Yan port 5-504

Applicant after: Changzhou first information technology Co., Ltd.

Address before: 213002 Room 302, unit 1, Xintiandi garden, Tianning District, Jiangsu, Changzhou

Applicant before: Xie Feng

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20170215

RJ01 Rejection of invention patent application after publication