CN105607594B - The method that server memory based on smart home searches equipment - Google Patents

The method that server memory based on smart home searches equipment Download PDF

Info

Publication number
CN105607594B
CN105607594B CN201510985770.0A CN201510985770A CN105607594B CN 105607594 B CN105607594 B CN 105607594B CN 201510985770 A CN201510985770 A CN 201510985770A CN 105607594 B CN105607594 B CN 105607594B
Authority
CN
China
Prior art keywords
equipment
server
information
timer
relationship
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.)
Active
Application number
CN201510985770.0A
Other languages
Chinese (zh)
Other versions
CN105607594A (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.)
Foochow Fu Qun Electronic Science And Technology Co Ltd
Original Assignee
Foochow Fu Qun Electronic Science And 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 Foochow Fu Qun Electronic Science And Technology Co Ltd filed Critical Foochow Fu Qun Electronic Science And Technology Co Ltd
Priority to CN201510985770.0A priority Critical patent/CN105607594B/en
Publication of CN105607594A publication Critical patent/CN105607594A/en
Application granted granted Critical
Publication of CN105607594B publication Critical patent/CN105607594B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • G05B19/4185Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM] characterised by the network communication
    • G05B19/41855Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM] characterised by the network communication by local area network [LAN], network structure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Computer And Data Communications (AREA)

Abstract

The method that the server memory based on smart home that the present invention relates to a kind of searching equipment, when equipment is connected to server, server hangs standby under the relevant information and its management for searching equipment in database, the information such as timer are to memory, and all information of the equipment are managed by unique mark by concurrent Concurrent Hash Map, pass through the relationship of map management equipments address and equipment, lower extension device address hangs standby relationship under, lower extension device address is to the relationship between the relationship and timer ID and timer of equipment, thus it brings efficiently, stablize, the designated equipment of connection on the server is quickly searched to provide quality services.The method of the present invention solve server need every time by database lookup obtain facility information, under hang the information such as standby, timer by cause system service slowly and the case where the wasting of resources.

Description

The method that server memory based on smart home searches equipment
Technical field
The present invention relates to internet of things intelligent household field, especially a kind of server memory lookup based on smart home is set Standby method.
Background technology
Internet of Things is the important component of generation information technology, and the important development stage in " informationization " epoch. Its English name is:“Internet of things(IoT)”.As its name suggests, Internet of Things is exactly the connected internet of object object.This There is two layers of meaning:First, the core of Internet of Things and basis are still internet, it is extension and extension on Internet basic Network;Second, its user terminal extends and extends between any article and article, information exchange and communication are carried out, that is, Object object mutually ceases.Internet of Things communicates cognition technology by Intellisense, identification technology and general fit calculation etc., is widely used in network In fusion, also therefore it is referred to as the third wave that world information industry develops after computer, internet.Internet of Things is mutual The application extension of networking, rather than Internet of Things is network, Internet of Things is business and application.Therefore, application innovation is object The core of networking development is the soul of Internet of Things development using user experience as the innovation 2.0 of core.
Basic principle:Using communication technologys such as localized network or internets sensor, controller, machine, personnel and object It is linked togather Deng by new mode, forms people and be connected with object, object and object, realize information-based, remote management and control and intelligence Network.Internet of Things is the extension of internet, it includes resource all on internet and internet, and compatible internet is all Using, but element all in Internet of Things(All equipment, resource and communication etc.)All it is personalized and privatization.
Smart home is that Thingsization embodies under the influence of internet.Smart home will be in family by technology of Internet of things Various equipment(Such as audio & video equipment, lighting system, curtain control, airconditioning control, safety-protection system, Digital Theater System, audio-visual clothes Business device, shadow cabinet system, network home appliance etc.)It connects together, home wiring control, Lighting control, remote control using telephone, indoor and outdoor is provided The multiple functions such as remote control, burglar alarm, environmental monitoring, HVAC control, infrared forwarding and programmable Timer control and means.With Common household is compared, and smart home not only has traditional inhabitation function, has both building, network communication, information household appliances, equipment certainly Dynamicization provides comprehensive information exchange function, and even various energy expenditures save fund.
Distributed resource sharing server is exactly to refer to data and program not being located on a server, but be distributed to Multiple servers, using the geographic information data of dispersed distribution on network and the database manipulation being affected by it as the one of research object Kind theoretical calculation model form server.Distribution is conducive to task and is allocated and optimizes in entire computer system, gram Central host resource anxiety can be led to and respond the defect of bottleneck by having taken traditional integrated system.
Communication protocol(communications protocol)Refer to that both entities complete communication or service must comply with Rule and agreement.The format that protocol definition data cell uses, information and meaning that information unit should include, connection side Formula, the sequential that information sends and receives, so that it is guaranteed that data are successfully transmitted to determining place in network.
By taking smart home as an example, it is based on specific communications protocol, a large amount of smart machine is connected into network to be connected into clothes Business end, a large amount of APP are connected into server, and user can simply be checked using APP on mobile phone terminal and control device, realize Three ends combine.
Equipment in face of flood tide and a large amount of APP, server must respond operation requests within the extremely short time, collect and deposit A large amount of information is stored up, the high concurrent performance and the high concurrent of database, mass memory of application server propose harsh want It asks.
It excavated, analyzed and is counted in face of large-scale data, the reference frame of decision is provided, is carried for automation services For basis, it is necessary to solve the problems, such as the large-scale calculations of server-side.
It is possible to break down in face of server, it is necessary to have corresponding fault-tolerant measure, reduce because of some individual services The probability of whole system caused by device failure, proposes the system of entire server and avoids the occurrence of Single Point of Faliure as far as possible It is required that.
Communication protocol between equipment and server should meet:1, safety prevents data from being obtained, forged and usurped easily Change.2, compatible, the forward compatibility after protocol change.3, high-performance as far as possible lowers requirement and the server of equipment Performance is lost.4, readable high, facilitate debugging.
Invention content
In view of this, the server memory that the object of the present invention is to provide a kind of based on smart home searches the side of equipment Method, solve server need every time by database lookup obtain facility information, under hang the information such as standby, timer by cause System service is slowly and the case where the wasting of resources, and remain able to when large number of equipment is connected to server to provide efficiently, stablize, Quickly service.
The present invention is realized using following scheme:A method of the server memory based on smart home searches equipment, packet Include following steps:
Step S1:When the equipment in intelligent domestic system is connected to a server, the server is from database Search the equipment relevant information and its management under hang standby, timer information and store into server memory;
Step S2:The server is led to all information of the equipment by concurrent Concurrent Hash Map Unique mark is crossed to be managed;
Step S3:The server manages the relationship of the device address and the equipment, lower extension device address by map Standby relationship, lower extension device address to the relationship between the relationship and timer ID and timer of equipment are hung under and.
Further, it when the server obtains the relevant information of the equipment, is not necessarily to every time from the database Relevant information is obtained, facility information is quickly found in server memory by the unique mark of the equipment.
Further, it after the server obtains the facility information, can be quickly found out by the equipment relative The lower information for hanging facility information and its timer, to efficiently provide lower extension facility information and timer service.Therefore, when a large amount of When equipment is connected to server, the server remain able to for each equipment and its it is relevant under hang standby and timer into Row is quickly searched and provides service.
Further, when the equipment is offline, the equipment is buffered in the data in server memory by the server It removes, and is purged by the equipment with standby and timer relationship map is hung under it simultaneously.Therefore, when equipment is offline When its information can from memory synchronize remove, to make memory headroom be released and re-use.
Compared with prior art, the server memory provided by the invention based on smart home is efficient, stablizes, quickly searches The method of equipment, solve server need every time by database lookup obtain facility information, under hang the letters such as standby, timer The case where ceasing and causing system service slowly and the wasting of resources, and offer height is provided when large number of equipment is connected to server Effect is stablized, quickly service.
Description of the drawings
Fig. 1 is the method flow schematic diagram of the present invention.
Fig. 2 is the server memory structural schematic diagram of the present invention.
Specific implementation mode
The present invention will be further described with reference to the accompanying drawings and embodiments.
This implementation provides a kind of method that the server memory based on smart home searches equipment, as depicted in figs. 1 and 2, Include the following steps:
Step S1:When the equipment in intelligent domestic system is connected to a server, the server is from database Search the equipment relevant information and its management under hang standby, timer information and store into server memory;
Step S2:The server is led to all information of the equipment by concurrent Concurrent Hash Map Unique mark is crossed to be managed;
Step S3:The server manages the relationship of the device address and the equipment, lower extension device address by map Standby relationship, lower extension device address to the relationship between the relationship and timer ID and timer of equipment are hung under and.
Further, it when the server obtains the relevant information of the equipment, is not necessarily to every time from the database Relevant information is obtained, facility information is quickly found in server memory by the unique mark of the equipment.
In the present embodiment, it after the server obtains the facility information, can be quickly found out by the equipment and its phase The information of the lower extension facility information and its timer that close, to efficiently provide lower extension facility information and timer service.Therefore, when When large number of equipment is connected to server, the server remain able to for each equipment and its it is relevant under hang it is standby and timing Device is quickly searched and provides service.
In the present embodiment, when the equipment is offline, the equipment is buffered in server memory by the server Data remove simultaneously, and be purged by the equipment with standby and timer relationship map is hung under it.Therefore, when setting Its information can be synchronized from memory and be removed when standby offline, to make memory headroom be released and re-use.
In conclusion the server memory provided in this embodiment based on smart home is efficient, stablizes, quickly searches equipment Method, solve server need every time by database lookup obtain facility information, under hang the information such as standby, timer by Cause system service slowly and the case where the wasting of resources, and remain able to when large number of equipment is connected to server to provide efficiently, Stablize, quickly service.
The foregoing is merely presently preferred embodiments of the present invention, all equivalent changes done according to scope of the present invention patent with Modification should all belong to the covering scope of the present invention.

Claims (3)

1. a kind of method that the server memory based on smart home searches equipment, it is characterised in that:Include the following steps:
Step S1:When the equipment in intelligent domestic system is connected to a server, the server is searched from database Standby, timer information is hung under the relevant information of the equipment and its management to store into server memory;
Step S2:The server is passed through all information of the equipment only by concurrent Concurrent Hash Map One mark is managed;
Step S3:The server managed by map the relationship of the device address and the equipment, lower extension device address and under Hang standby relationship, lower extension device address to the relationship between the relationship and timer ID and timer of equipment;
When the server obtains the relevant information of the equipment, without obtaining relevant information from the database every time, Facility information is quickly found in server memory by the unique mark of the equipment.
2. the method that a kind of server memory based on smart home according to claim 1 searches equipment, feature exist In:After the server obtains the facility information, can be quickly found out by the equipment relative lower extension facility information and The information of its timer, to efficiently provide lower extension facility information and timer service.
3. the method that a kind of server memory based on smart home according to claim 1 searches equipment, feature exist In:When the equipment is offline, the equipment is buffered in the data in server memory while removed by the server, and is led to It crosses the equipment and is purged with standby and timer relationship map is hung under it, to make memory headroom be released and again It utilizes.
CN201510985770.0A 2015-12-25 2015-12-25 The method that server memory based on smart home searches equipment Active CN105607594B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510985770.0A CN105607594B (en) 2015-12-25 2015-12-25 The method that server memory based on smart home searches equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510985770.0A CN105607594B (en) 2015-12-25 2015-12-25 The method that server memory based on smart home searches equipment

Publications (2)

Publication Number Publication Date
CN105607594A CN105607594A (en) 2016-05-25
CN105607594B true CN105607594B (en) 2018-08-21

Family

ID=55987594

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510985770.0A Active CN105607594B (en) 2015-12-25 2015-12-25 The method that server memory based on smart home searches equipment

Country Status (1)

Country Link
CN (1) CN105607594B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105978813B (en) * 2016-06-20 2019-04-16 重庆房慧科技有限公司 More home equipment routing table update methods based on Spark big data platform
CN110930564B (en) * 2019-12-06 2021-12-10 冯彬荣 Multi-channel entrance guard joint identification method and system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ES2387625T3 (en) * 2007-12-17 2012-09-27 Nokia Siemens Networks Oy Query routing in a distributed database system
CN101867607A (en) * 2010-05-21 2010-10-20 北京无限立通通讯技术有限责任公司 Distributed data access method, device and system
CN102130838B (en) * 2011-04-02 2013-09-25 南京邮电大学 Method for realizing peer-to-peer network caching system based on Ares protocol
CN102737127B (en) * 2012-06-20 2015-04-08 厦门大学 Massive data storage method
CN104639667B (en) * 2014-12-31 2019-04-16 北京奇虎科技有限公司 A kind of device identification method based on MAC Address, device and system
CN104765349B (en) * 2015-03-30 2017-11-28 联想(北京)有限公司 A kind of method and server, control device for managing intelligent home device
CN105187293A (en) * 2015-07-23 2015-12-23 柳州正高科技有限公司 Method for storing Internet of Things temporary message

Also Published As

Publication number Publication date
CN105607594A (en) 2016-05-25

Similar Documents

Publication Publication Date Title
Zhou et al. Cloudthings: A common architecture for integrating the internet of things with cloud computing
EP3185482A1 (en) Intelligent home controller and communication method thereof
CN103856356B (en) It is a kind of based on user from the home network implementation method of management and control
CN105049502B (en) The method and apparatus that device software updates in a kind of cloud network management system
CN104660682A (en) OPC data acquisition and monitoring intelligent terminal based on TD-LTE
CN113037771B (en) Method and device for controlling device shadow, storage medium and electronic device
CN104202175B (en) A kind of smart collaboration formula configuration method and equipment
CN103036934A (en) Wide area network clustered deployment system and method based on mirror image
CN105490826A (en) Configuration management system and method based on automatic discovery
CN110048896A (en) A kind of company-data acquisition methods, device and equipment
CN104717289A (en) Data synchronism method and device
CN103763206B (en) Network scheduling method and gateway
Celesti et al. A framework for real time end to end monitoring and big data oriented management of smart environments
CN105607594B (en) The method that server memory based on smart home searches equipment
CN105635215B (en) Synchronous method, device and the Cloud Server of contact information
CN103813372A (en) Wireless sensor network management method based on IPV6 (internet protocol version 6)
CN105207825A (en) Fast synchronizing system and synchronizing method for network elements
CN104753695A (en) Discovery and real-time display system and method for SDN (Software Defined Network) network topology
CN102130807A (en) Equipment discovery method for realizing real-time dynamic networking in personal internet
US20170126489A1 (en) Auto-Commissioning of Lighting Resources
CN104333497A (en) Automatic equipment discovery method of intelligent home network and network system
CN102868746B (en) Method for realizing mobile informationization
CN112333295A (en) Multipath connection method and device, electronic equipment and storage medium
CN102970375A (en) Cluster configuration method and device
CN111399906A (en) Wireless Internet of things instruction management method and related device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant