CN1627752A - General method for controlling interconnecting device based on UPNP protocol - Google Patents

General method for controlling interconnecting device based on UPNP protocol Download PDF

Info

Publication number
CN1627752A
CN1627752A CN 200310114447 CN200310114447A CN1627752A CN 1627752 A CN1627752 A CN 1627752A CN 200310114447 CN200310114447 CN 200310114447 CN 200310114447 A CN200310114447 A CN 200310114447A CN 1627752 A CN1627752 A CN 1627752A
Authority
CN
China
Prior art keywords
equipment
upnp
module
control point
information
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
CN 200310114447
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.)
Hisense Group Co Ltd
Original Assignee
Hisense Group 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 Hisense Group Co Ltd filed Critical Hisense Group Co Ltd
Priority to CN 200310114447 priority Critical patent/CN1627752A/en
Publication of CN1627752A publication Critical patent/CN1627752A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

Invention aims at a general control method for developing UPnP device. The method is able to develop out control program of networked device control point so as to realize operation such as to find out UPnP device automatically and to control operation of device etc.

Description

Interconnect equipment universal control method based on the UPNP agreement
Technical field
The present invention relates to a kind of method that realization is controlled all UPNP equipment in the local area network (LAN) based on UPNP (Universal Plug and Play UPnP) agreement.
Background technology
China steps into the internet economy epoch just gradually at present, no matter is all to have obtained more general application in family or corporate lan.Along with information household appliances add network, outstanding all the more for the demand of shared device and shared network resource and service.Transparent access various network resource is very complicated task, realizes that information household appliances or equipment room can interconnect, and the purpose that reaches resource-sharing becomes the major subjects of existing network technical development.Can solve this type of problem preferably based on the UPNP agreement.
The UPNP agreement is the network application-level protocol on a kind of framework and the TCP/IP, in fact the application of UPNP agreement has expanded the notion of traditional stand-alone device and network system, at the interactive operation interfaces such as exchange that mutual discovery, interface statement and other information between the networking gear are provided under the prerequisite of " zero configuration ".
The configuration information of networking gear in the wireless network, the COS that can provide have very big-difference.Obtaining the information of every UPNP equipment in the network and can realize controlling all UPNP equipment by universal control devices, is the prerequisite that realizes network equipment information interaction and resource-sharing.Also be based on the technical development of UPNP protocol network, the project that must solve.
Summary of the invention
The objective of the invention is to develop the control program at network equipment control point by the method operations such as the automatic discovery of realization UPNP equipment and control appliance service for the UPNP equipment development provides a kind of universal control method.
Universal control method of the present invention is the input/output module by the control point program, call control point module and device management module and generate needed program, routine call various processing modules in control point are carried out corresponding operating, and general controls point program can be write by the developer.
Mainly comprise following control module in the described general controls point program, promptly facility information describing module, UPNP facility information list management module, UPNP protocol stack, UPNP control point module, device discovery event processing module, device events processing module, the predetermined timeout treatment of device service, equipment withdraw from event handling, equipment is finished control point control command event handling, general controls point XML parsing module, I module.
Described facility information describing module generate all UPNP equipment of description information, the file of the type and the parameter of service is provided, and carry out storage operation with regard to this class description file; Described descriptor file includes facility information file (UPNP Device), service information file (UPNP Service), service state variable information file (UPNP StateVariable), operation information file (UPNPAction), parameter information file (UPNP Argument).
Based on required running environment of UPNP control point module controls and control point, to the service transmit operation of UPNP equipment; When operation is finished when failure (or), return any result or mistake; Subscribe to (cancelling subscriptions) certain Service events, the query service status variate-value calls monitoring and control to UPNP equipment automatically.
When the device discovery event processing module when receiving the device discovery incident, the data that receive are resolved, according to the single equipment name of equipment, the invocation facility information module is inquired about; If this equipment in tabulation, is then changed the time spot of this facility information; Do not go out device description file URL if do not exist then according to the data parsing that receives, download equipment statement file, the call XML parsing module is resolved description document, obtains the essential information of equipment.
After the message that control point the UPNP equipment in the network of receiving is sent when withdrawing from, equipment is deleted from the facility information at control point.
When described equipment has been finished the control command of sending at the control point, send return results message to the control point; The control point receives the laggard line data of this message and resolves, and the invocation facility information management module is changed equipment corresponding apparatus information then, or carries out error message and handle.
When the control point when official hour is not received predetermined Service events information, carry out again predetermined; If still unsuccessful, think that then this equipment may be improper withdrawing from, and deletes this equipment from the list of devices at control point.If subscribe to successfully again, then obtain the information on services parameter in the change equipment behind the device numbering.
The described equipment self check processing module of exceeding the time limit, regularly improper the withdrawing from whether of the UPNP equipment in the checkout equipment network.
As mentioned above, the interconnect equipment universal control method based on the UPNP agreement of the present invention has following function and advantage:
1, finds all UPNP equipment in the network.After finding UPNP equipment, will retrieve the description of this equipment and obtain the tabulation of all services under this equipment;
2, can be scheduled to reception incident and change the state variable value of device service according to incident to device events service source;
3, according to the device service information in the list of devices in the general controls point, to device service transmit operation control messages;
4, show all devices tabulation, the details of display device.
Description of drawings
Fig. 1 is the device discovery process chart of universal control method of the present invention;
Fig. 2 is that equipment withdraws from the event handling flow chart;
Fig. 3 is a device service variable altering event process chart;
Fig. 4 returns the event handling flow chart after equipment is finished the control point transmitting control commands;
Fig. 5 subscribes to overtime event handling flow chart;
Fig. 6 regularly detects overtime device procedures flow chart.
Embodiment
Interconnect equipment universal control method based on the UPNP agreement of the present invention, the UPNP control point program of using this method generation mainly includes:
Facility information describing module, UPNP facility information list management module, UPNP protocol stack, UPNP control point module, device discovery event processing module, device events processing module, the predetermined timeout treatment of device service, equipment withdraw from event handling, equipment is finished control point control command event handling, general controls point XML parsing module, I module, wherein:
The facility information describing module, use all UPNP equipment in this module general controls dot generation network information, the type of service and the description document of parameter are provided, and carry out storage operation with regard to this class description file.Comprise facility information file (UPNP Device), service information file (UPNP Service), service state variable information file (UPNP StateVariable), operation information file (UPNPAction), parameter information file (UPNP Argument).
Operation information file is built-in with parameter list, control operation title;
Whether the parameter information file is built-in with parameter name, attribute (import, export or return), is return value, concrete numerical value, associated static variable title;
Service state variable information file is built-in with the tabulation, name variable, data type, variate-value, default value, maximum, minimum value, variable least unit of permissible value and trigger event whether;
Service information file mainly is built-in with operating list, variable list, COS, service ID number, service operations position, Service events transmit path, service description file position and subscribes to number;
The facility information file mainly is built-in with service list, single equipment numbering, device type, base position, appliance icon position, device description inlet, producer's title, version number, sequence number etc.;
Facility information list management module mainly is to be used for storage, all UPNP facility informations in the supervising the network, comprise equipment increase, deletion, change, inquiry, function such as print, obtain.
UPNP protocol stack, major function provide UPNP network service API.
UPNP control point module, major function is the needed environment of initialization control operation, start and the closing control point, service transmit operation to UPNP equipment, when operation is finished when failure (or), service can be returned any result or mistake, subscribes to (cancelling subscriptions) certain Service events, the query service status variate-value calls automatically the UPNP equipment on the network is monitored and controlled.
General controls point XML parsing module, main function are parsing XML format data (the UPNP network all are to transmit data with the XML form), the transmission data can be pressed the XML format print.
The I module, being mainly the user provides and is input as the interface that the control point provides output.
Device discovery process chart as shown in Figure 1, the device discovery event processing module when receiving the device discovery incident, is resolved the data that receive, and according to the single equipment name of equipment, the invocation facility information module is inquired about.
If this equipment in tabulation, is then changed the time spot of this facility information;
Do not go out device description file URL if do not exist then according to the data parsing that receives, download equipment statement file, the call XML parsing module is resolved description document, obtains the essential information of equipment; If there is service in equipment, then the function apparatus for establishing information in the invocation facility information description module is described according to the URL download service of the service description file that parses.
Equipment as shown in Figure 2 withdraws from the event handling flow chart, and equipment is deleted equipment withdraw from the message that event processing module sent when control point the UPNP equipment in the network of receiving withdraws from after from the facility information at control point.
Device service variable altering event process chart as shown in Figure 3, the major function of device events processing module are to handle the value that receives UPNP device service state variable, the corresponding information in the list of devices at change control point.
Equipment as shown in Figure 4 returns the event handling flow chart after finishing the control point transmitting control commands, equipment is finished control point control command event processing module, when equipment has been finished the control command of sending at the control point, send return results message to the control point, the control point receives the laggard line data of this message and resolves, the invocation facility information management module is changed equipment corresponding apparatus information then, or carries out error message and handle.
The overtime event handling flow chart of subscription as shown in Figure 5, device service is scheduled to the timeout treatment module, when the control point when official hour is not received predetermined Service events information, carry out again predetermined; If still unsuccessful, think that then this equipment may be improper withdrawing from, and deletes this equipment from the list of devices at control point.If subscribe to successfully again, then obtain the information on services parameter in the change equipment behind the device numbering.
Timing as shown in Figure 6 detects overtime device procedures flow chart, and the equipment self check processing module of exceeding the time limit mainly is UPNP equipment improper withdrawing from whether in the regular checkout equipment network, does not promptly send to withdraw from message and just withdrawed from.

Claims (9)

1, based on the interconnect equipment universal control method of UPNP agreement, it is characterized in that: mainly comprise following control module in the UPNP control point program that generates universal control devices, promptly facility information describing module, UPNP facility information list management module, UPNP protocol stack, UPNP control point module, device discovery event processing module, device events processing module, the predetermined timeout treatment of device service, equipment withdraw from event handling, equipment is finished control point control command event handling, general controls point XML parsing module, I module.
2, according to the described interconnect equipment universal control method of right claim 1 based on the UPNP agreement, it is characterized in that: by the input/output module of described control point program, call control point module and device management module and generate needed program, routine call various processing modules in control point are carried out corresponding operating.
3, the interconnect equipment universal control method based on the UPNP agreement according to claim 1, it is characterized in that: application apparatus information description module generate to describe all UPNP equipment information, the file of the type and the parameter of service is provided, and carry out storage operation with regard to this class description file; Described descriptor file includes facility information file, service information file, service state variable information file, operation information file, parameter information file.
4, the interconnect equipment universal control method based on the UPNP agreement according to claim 2 is characterized in that: based on required running environment of UPNP control point module controls and control point, to the service transmit operation of UPNP equipment; When operation is finished when failure (or), return any result or mistake; Subscribe to (cancelling subscriptions) certain Service events, the query service status variate-value calls monitoring and control to UPNP equipment automatically.
5, the interconnect equipment universal control method based on the UPNP agreement according to claim 3, it is characterized in that: when the device discovery event processing module when receiving the device discovery incident, the data that receive are resolved, according to the single equipment name of equipment, the invocation facility information module is inquired about; If this equipment in tabulation, is then changed the time spot of this facility information; Do not go out device description file URL if do not exist then according to the data parsing that receives, download equipment statement file, the call XML parsing module is resolved description document, obtains the essential information of equipment.
6, the interconnect equipment universal control method based on the UPNP agreement according to claim 4 is characterized in that: after the message that control point the UPNP equipment in the network of receiving is sent when withdrawing from, equipment is deleted from the facility information at control point.
7, the interconnect equipment universal control method based on the UPNP agreement according to claim 5 is characterized in that: when described equipment has been finished the control command of sending at the control point, send return results message to the control point; The control point receives the laggard line data of this message and resolves, and the invocation facility information management module is changed equipment corresponding apparatus information then, or carries out error message and handle.
8, the interconnect equipment universal control method based on the UPNP agreement according to claim 6 is characterized in that: when the control point when official hour is not received predetermined Service events information, carry out again predetermined; If still unsuccessful, think that then this equipment may be improper withdrawing from, and deletes this equipment from the list of devices at control point.If subscribe to successfully again, then obtain the information on services parameter in the change equipment behind the device numbering.
9, the interconnect equipment universal control method based on the UPNP agreement according to claim 7 is characterized in that: the described equipment self check processing module of exceeding the time limit, regularly improper the withdrawing from whether of the UPNP equipment in the checkout equipment network.
CN 200310114447 2003-12-09 2003-12-09 General method for controlling interconnecting device based on UPNP protocol Pending CN1627752A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200310114447 CN1627752A (en) 2003-12-09 2003-12-09 General method for controlling interconnecting device based on UPNP protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200310114447 CN1627752A (en) 2003-12-09 2003-12-09 General method for controlling interconnecting device based on UPNP protocol

Publications (1)

Publication Number Publication Date
CN1627752A true CN1627752A (en) 2005-06-15

Family

ID=34760208

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200310114447 Pending CN1627752A (en) 2003-12-09 2003-12-09 General method for controlling interconnecting device based on UPNP protocol

Country Status (1)

Country Link
CN (1) CN1627752A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100446570C (en) * 2005-12-22 2008-12-24 海信集团有限公司 Method for realizing IGRS AV. control point equipment
CN101610293A (en) * 2008-06-16 2009-12-23 松下电器产业株式会社 Control method, control point equipment, equipment and system
CN101971522A (en) * 2007-12-10 2011-02-09 三星电子株式会社 Method for providing internet gateway service using plurality of universal plug and play internet gateway devices and apparatus therefor
CN102413024A (en) * 2011-10-08 2012-04-11 国网信息通信有限公司 Plug-and-play realization system and method for family energy storage equipment
CN103702184A (en) * 2013-12-26 2014-04-02 Tcl集团股份有限公司 Method and system for managing multi-screen interactive equipment
CN101827069B (en) * 2009-03-04 2014-12-17 华为终端有限公司 Information acquisition method, system, device and control point for universal plug and play device
CN105991377A (en) * 2015-01-28 2016-10-05 中国科学院声学研究所 Discovery and communication method between universal plug and play (UPnP) devices

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100446570C (en) * 2005-12-22 2008-12-24 海信集团有限公司 Method for realizing IGRS AV. control point equipment
CN101971522A (en) * 2007-12-10 2011-02-09 三星电子株式会社 Method for providing internet gateway service using plurality of universal plug and play internet gateway devices and apparatus therefor
CN101610293A (en) * 2008-06-16 2009-12-23 松下电器产业株式会社 Control method, control point equipment, equipment and system
CN101827069B (en) * 2009-03-04 2014-12-17 华为终端有限公司 Information acquisition method, system, device and control point for universal plug and play device
CN102413024A (en) * 2011-10-08 2012-04-11 国网信息通信有限公司 Plug-and-play realization system and method for family energy storage equipment
CN102413024B (en) * 2011-10-08 2014-02-12 国家电网公司 Plug-and-play realization system and method for family energy storage equipment
CN103702184A (en) * 2013-12-26 2014-04-02 Tcl集团股份有限公司 Method and system for managing multi-screen interactive equipment
CN105991377A (en) * 2015-01-28 2016-10-05 中国科学院声学研究所 Discovery and communication method between universal plug and play (UPnP) devices
CN105991377B (en) * 2015-01-28 2019-01-25 中国科学院声学研究所 The method for finding and communicating between universal plug and play UPnP device

Similar Documents

Publication Publication Date Title
CN107247597B (en) Abstract representation method of device object for providing uniform abstract representation for intelligent device
EP1729444B1 (en) A snmp-based asynchronous communication mechanism process method
US7185078B2 (en) Event manager for a control management system
CN1427587A (en) Method and system for remote updating function of domestic apparatus
CN101926118B (en) Method and system for notifying error information in network
WO2006066243A2 (en) Event manager for use in a facilities monitoring system having network-level and protocol-neutral communication with a physical device
CN1941729A (en) Method and apparatus for outputting a user interface (UI) event of 3rd party device in home network
CN1383649A (en) Architecture of bridge between non-IP network and web
CN102195795B (en) Intelligent district log system and log recording method thereof
CN1523828A (en) Control point server system and method for admission of effective access for household network devices
CN103546343A (en) Network flow display method and system for network flow analyzing systems
EP1198102A1 (en) Extendable provisioning mechanism for a service gateway
CN101753984A (en) Processing method of video monitoring system journals, system and server
KR101619736B1 (en) Method, apparatus and system for manageing private network remotely using session initiation protocol
CN101772920A (en) Method and apparatus for discovering universal plug and play device using resource information
EP1142201A1 (en) A network device management system
WO2003102789A1 (en) Auditing computer systems components in a network
CN100338912C (en) Management method for obtaining equipment MIB support capability
CN1627752A (en) General method for controlling interconnecting device based on UPNP protocol
CN1946031A (en) Central managing system and method for multiple protocol data and transmission network device
CN101110698A (en) Trap analyzing and preprocessing system and method thereof
CN1812574A (en) Method for realizing IGRS AV. control point equipment
EP1198101A1 (en) Provisioning mechanism for a service gateway
CN1556609A (en) Mobile robot network control platform device
CN117118821A (en) Multi-data source management method based on client-server mode

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication