CN104732652B - A kind of electricity-saving lamp recovery system based on server push mechanism - Google Patents

A kind of electricity-saving lamp recovery system based on server push mechanism Download PDF

Info

Publication number
CN104732652B
CN104732652B CN201510144938.5A CN201510144938A CN104732652B CN 104732652 B CN104732652 B CN 104732652B CN 201510144938 A CN201510144938 A CN 201510144938A CN 104732652 B CN104732652 B CN 104732652B
Authority
CN
China
Prior art keywords
recovery
server
electricity
saving lamp
terminal
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
CN201510144938.5A
Other languages
Chinese (zh)
Other versions
CN104732652A (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.)
Shandong Rongzhi Industry Guidance Fund Co ltd
Original Assignee
SUZHOU LONMIR LIGHTING 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 SUZHOU LONMIR LIGHTING TECHNOLOGY Co Ltd filed Critical SUZHOU LONMIR LIGHTING TECHNOLOGY Co Ltd
Priority to CN201510144938.5A priority Critical patent/CN104732652B/en
Publication of CN104732652A publication Critical patent/CN104732652A/en
Application granted granted Critical
Publication of CN104732652B publication Critical patent/CN104732652B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephonic Communication Services (AREA)
  • Alarm Systems (AREA)

Abstract

The present invention relates to a kind of electricity-saving lamp recovery system based on server push mechanism.The present invention includes server, reclaim terminal and monitor client, the recovery terminal and monitor client are all communicated with the server, the server uses server push mechanism, information active push is given to the monitor client using same connection, the server realizes the server push mechanism using Comet4j and NIO agreements in response cycle.The present invention establishes full automatic recovery system, recovery system can realize self-monitoring and message automatic push, by the way that warning message automatic push to monitor client monitor client are obtained into message automatically, the holder of monitor client can safeguard recovery system in time, the recovery system of the present invention possesses automatically, the advantages of high stability.

Description

A kind of electricity-saving lamp recovery system based on server push mechanism
Technical field
The present invention relates to electricity-saving lamp recycling field, more particularly to a kind of electricity-saving lamp recovery system based on server push mechanism System.
Background technology
Under the policy that country widelys popularize " energy-saving and emission-reduction ", electricity-saving lamp is because of its power and energy saving, in China with political affairs The form of mansion subsidy is widelyd popularize, and it is popularized area and almost covers every household.However, the manufacturing technology due to current electricity-saving lamp Also fairly limited, electricity-saving lamp still manufactures using containing toxic materials such as mercury, fluorescent material, therefore waste energy-saving lamps are to environment and water Source has greatly harm, is included into electricity-saving lamp in 2008《National Hazard waste register》, at present, in the market is directed to waste and old section Energy lamp does not have complete function, the high recovery system of automatization level also.
The effect of electricity-saving lamp recovery, and goods can be obviously improved by encouraging user to participate in the recovery of electricity-saving lamp by monetary policy Whether the management of coin and electricity-saving lamp realizes that automation has a significant impact to the efficiency of electricity-saving lamp recovery, it is well known that with economy Development, effect of the network for production and living is more and more significant, and server push technology enables to server to possess automatically Monitoring and the ability of automatic push information, it is the state-of-the-art technology that message push is nowadays carried out on network.
Server push mechanism clients program explicitly need not send request to server end, and server end can be in its number According to when changing active by data it is asynchronous be sent to client so that client can timely update use Family interface is applied to recovery system to reflect the change of servers' data, by server push technology, can cause recovery system Administrative staff can know the state of recovery system in time, so as to be safeguarded in time to recovery system, and then lifted and reclaimed The operating efficiency of system.
The content of the invention
Therefore, the invention provides a kind of electricity-saving lamp recovery system based on server push mechanism, the present invention passes through service Device push-mechanism realizes the Full-automatic monitoring for recovery system, so as to save the manpower thing of recovery system to greatest extent Power, and ensure that the normal operation of recovery system.
The technical scheme that the present invention solves above-mentioned technical problem is as follows:
A kind of electricity-saving lamp recovery system based on server push mechanism, including server, terminal and monitor client are reclaimed, The recovery terminal and monitor client are all communicated with the server;
The recovery terminal includes electricity-saving lamp identification mechanism, electricity-saving lamp collects mechanism, currency output mechanism and control centre, The electricity-saving lamp identification mechanism, electricity-saving lamp collect mechanism, currency output mechanism receives the control of the control centre, the control Center processed is communicated with the server, and after reclaimer operation success each time, the control centre is according to the reclaimer operation Generation recovery message, and the recovery message is sent to server;
The server receives the recovery message of the recovery terminal, and the recovery terminal is entered according to the recovery message Crudely-made articles product count, when the electricity-saving lamp quantity of the recovery terminal recovery reaches electricity-saving lamp amount threshold or the arrival of remaining quantity of money During quantity of money threshold value, alert message is pushed to the monitor client;
The monitor client is used to receive the alert message, holds the personnel of the monitor client according to the police Accusing message goes in the alert message recovery terminal specified to empty electricity-saving lamp or supplement currency;
The server uses server push mechanism, is given information active push using same connection in response cycle The monitor client, the server realize the server push mechanism using Comet4j and NIO agreements, wherein Comet4J (Comet for Java) is a server push framework for being based purely on AJAX (XMLHTTPRequest), Comet4J is operated under NIO modes, to realize Comet4J working methods, it is necessary to adjust the configuration of server connector, is replaced by NIO connectors, the NIO connectors use NIO agreements.
Preferably, the electricity-saving lamp identification mechanism is recovered whether thing is electricity-saving lamp for identification, and the electricity-saving lamp is collected Mechanism is used to be stored regenerant, people of the currency output mechanism for the quantity according to regenerant to offer regenerant Member's output currency.
Preferably, the kinds of goods statistics includes the electricity-saving lamp quantity to each recovery terminal recovery and remaining currency number The statistics of amount.
Preferably, the server establishes global Map, and the Map is used for all comet connections for recording server end, The monitor client login service device, if logging in success, server establishes comet connections to user, and the connection is write Enter Map, and the record in Map is to the monitor client pushed information.
Preferably, when the server produces alert message, the alert message is sent to the monitoring visitor immediately Family end, and the monitor client sends request from trend server to keep link again.
Preferably, when the server does not produce new alert message more than the certain predetermined time, then null message is sent To the monitor client.
Preferably, the electricity-saving lamp amount threshold and the quantity of money threshold value can be set in the server end, institute State 70%-85% of the electricity-saving lamp amount threshold setting range for the recovery terminal electricity-saving lamp capacity, the quantity of money threshold value Setting range is the 10%-30% for reclaiming terminal currency storage cap value.
Preferably, the recovery message includes producing the recovery terminal number of the recovery message, produces recovery message The electricity-saving lamp quantity and quantity of money of reason, the recovery terminal.
The reason for preferably, the alert message includes reclaiming terminal number, recovery terminal address, generation recovery message, The electricity-saving lamp quantity and quantity of money of the recovery terminal.
Preferably, after recovery terminal electricity-saving lamp is cleared or supplements currency, the recovery terminal is sent out to the server Notice is sent, the server updates kinds of goods statistical conditions according to the notice.
The beneficial effects of the invention are as follows:
The present invention provides a kind of electricity-saving lamp recovery system based on server push mechanism, by reclaiming terminal, monitoring client The co-ordination of end and server and server push mechanism establish full automatic recovery system, and recovery system can realize self Monitoring and message automatic push, are disappeared by the way that warning message automatic push are obtained automatically to monitor client monitor client Breath, the holder of monitor client can safeguard recovery system in time, and recovery system of the invention possesses automatically, high stability The advantages of.
Brief description of the drawings
Fig. 1 is a kind of electricity-saving lamp recovery system based on server push mechanism.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, the present invention is made into one below in conjunction with accompanying drawing It is described in detail on step ground.
In one embodiment, as shown in figure 1, a kind of electricity-saving lamp recovery system based on server push mechanism, including clothes Business device, reclaims terminal and monitor client, and the recovery terminal and monitor client are all communicated with the server;
The recovery terminal includes electricity-saving lamp identification mechanism, electricity-saving lamp collects mechanism, currency output mechanism and control centre, The electricity-saving lamp identification mechanism, electricity-saving lamp collect mechanism, currency output mechanism receives the control of the control centre, the control Center processed is communicated with the server, and after reclaimer operation success each time, the control centre is according to the reclaimer operation Generation recovery message, and the recovery message is sent to server, when recovery terminal electricity-saving lamp is cleared or supplemented currency Afterwards, the recovery terminal is sent to the server notifies, the server updates kinds of goods statistical conditions according to the notice;Institute State electricity-saving lamp identification mechanism and be recovered whether thing is electricity-saving lamp for identification, the electricity-saving lamp collects mechanism and is used to enter regenerant Row storage, the currency output mechanism are used to export currency to the personnel for providing regenerant according to the quantity of regenerant;
The server receives the recovery message and notice of the recovery terminal, according to the recovery message and notice to institute State recovery terminal and carry out kinds of goods statistics, when the electricity-saving lamp quantity of the recovery terminal recovery reaches electricity-saving lamp amount threshold or residue When quantity of money reaches quantity of money threshold value, alert message is pushed to the monitor client;
The monitor client is used to receive the alert message, holds the personnel of the monitor client according to the police Accusing message goes in the alert message recovery terminal specified to empty electricity-saving lamp or supplement currency;
The server uses server push mechanism, is given information active push using same connection in response cycle The monitor client, the server realize the server push mechanism using Comet4j and NIO agreements.
The kinds of goods statistics includes the system of the electricity-saving lamp quantity and remaining quantity of money to each recovery terminal recovery Meter.
The server establishes global Map, and the Map is used for all comet connections for recording server end, the monitoring Accessing server by customer end, if logging in success, server establishes comet connections to user, and the connection is write into Map, and Record in Map is to the monitor client pushed information.The server, which is safeguarded, recovery terminal mapping table and monitoring Client mapping table, the recovery terminal mapping table are used for the corresponding relation for recording recovery terminal number and reclaiming terminal address, The monitor client mapping table is used to record monitor client and the management of recovery terminal, and the holder of monitor client has duty Appoint and safeguard the recovery terminal with corresponding relation so that recovery terminal normal operation.
When the server produces alert message, the alert message is sent to the monitor client immediately, and And the monitor client sends request to keep link again.Do not produced newly when the server exceedes the certain predetermined time Alert message, then send null message to the monitor client, now monitor client also sends request to keep chain again Road.
The electricity-saving lamp amount threshold and the quantity of money threshold value can be set in the server end, the electricity-saving lamp Amount threshold setting range for it is described recovery terminal electricity-saving lamp capacity 70%-85%, the quantity of money threshold value setting range For the 10%-30% of the recovery terminal currency storage cap value.
Preferably, the recovery message includes producing the recovery terminal number of the recovery message, produces recovery message The electricity-saving lamp quantity and quantity of money of reason, the recovery terminal.
The reason for preferably, the alert message includes reclaiming terminal number, recovery terminal address, generation recovery message, The electricity-saving lamp quantity and quantity of money of the recovery terminal.
The above disclosed power for being only a kind of preferred embodiment of the present invention, the present invention can not being limited with this certainly Sharp scope, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.

Claims (6)

1. a kind of electricity-saving lamp recovery system based on server push mechanism, it is characterised in that including server, reclaim terminal and prison Client is controlled, the recovery terminal and monitor client are all communicated with the server;
The recovery terminal includes electricity-saving lamp identification mechanism, electricity-saving lamp collects mechanism, currency output mechanism and control centre, described Electricity-saving lamp identification mechanism, electricity-saving lamp collect mechanism, currency output mechanism receives the control of the control centre, in the control The heart is communicated with the server, and after reclaimer operation success each time, the control centre generates according to the reclaimer operation Message is reclaimed, and the recovery message is sent to server;
The server receives the recovery message of the recovery terminal, enters crudely-made articles to the recovery terminal according to the recovery message Product count, when the electricity-saving lamp quantity of the recovery terminal recovery reaches electricity-saving lamp amount threshold or remaining quantity of money arrival currency During amount threshold, alert message is pushed to the monitor client;
The monitor client is used to receive the alert message, and goes to the alert message middle finger according to the alert message Fixed recovery terminal empties electricity-saving lamp or supplement currency;
The server uses server push mechanism, is connected in response cycle using same by information active push to described Monitor client, the server realize the server push mechanism using Comet4j and N I/O protocols;
When the server produces alert message, the alert message is sent to the monitor client, and institute immediately State monitor client and send request from trend server again to keep link;When the server does not have more than the certain predetermined time Have and produce new alert message, then send null message to the monitor client;The electricity-saving lamp identification mechanism is used to identify quilt Whether regenerant is electricity-saving lamp, and the electricity-saving lamp collects mechanism and is used to be stored regenerant, and the currency output mechanism is used In the quantity according to regenerant currency is exported to the personnel for providing regenerant;The kinds of goods statistics is included to each recovery eventually Hold the electricity-saving lamp quantity of recovery and the statistics of remaining quantity of money;
The server, which is safeguarded, recovery terminal mapping table and monitor client mapping table, and the recovery terminal mapping table is used to remember Record recovery terminal number and the corresponding relation for reclaiming terminal address, the monitor client mapping table are used to record monitor client Management with reclaiming terminal, the holder of monitor client have a responsibility for safeguarding the recovery terminal with corresponding relation so that recovery Terminal normal operation.
2. a kind of electricity-saving lamp recovery system based on server push mechanism according to claim 1, it is characterised in that described Server establishes global Map, and the Map is used for all comet connections for recording server end, and the monitor client logs in clothes Business device, if logging in success, server establishes comet connections to user, and the connection is write into Map, and the note in Map Record to the monitor client pushed information.
3. a kind of electricity-saving lamp recovery system based on server push mechanism according to claim 2, it is characterised in that described Electricity-saving lamp amount threshold and the quantity of money threshold value can be set in the server end, the electricity-saving lamp amount threshold setting Scope is the 70%-85% of the recovery terminal electricity-saving lamp capacity, and the quantity of money threshold value setting range is that the recovery is whole Hold the 10%-30% of currency storage cap value.
4. a kind of electricity-saving lamp recovery system based on server push mechanism according to claim 3, it is characterised in that described Reclaiming message includes producing the recovery terminal number of the recovery message, produces the reason for recovery message, described reclaims terminal Electricity-saving lamp quantity and quantity of money.
5. a kind of electricity-saving lamp recovery system based on server push mechanism according to claim 4, it is characterised in that described Alert message includes recovery terminal number, recovery terminal address, produces the reason for recovery message, the electricity-saving lamp of the recovery terminal Quantity and quantity of money.
A kind of 6. electricity-saving lamp recovery system based on server push mechanism according to claim 5, it is characterised in that recovery After terminal electricity-saving lamp is cleared or supplements currency, the recovery terminal is sent to the server to be notified, the server root Kinds of goods statistical conditions are updated according to the notice.
CN201510144938.5A 2015-03-30 2015-03-30 A kind of electricity-saving lamp recovery system based on server push mechanism Active CN104732652B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510144938.5A CN104732652B (en) 2015-03-30 2015-03-30 A kind of electricity-saving lamp recovery system based on server push mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510144938.5A CN104732652B (en) 2015-03-30 2015-03-30 A kind of electricity-saving lamp recovery system based on server push mechanism

Publications (2)

Publication Number Publication Date
CN104732652A CN104732652A (en) 2015-06-24
CN104732652B true CN104732652B (en) 2017-12-08

Family

ID=53456517

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510144938.5A Active CN104732652B (en) 2015-03-30 2015-03-30 A kind of electricity-saving lamp recovery system based on server push mechanism

Country Status (1)

Country Link
CN (1) CN104732652B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2182243C (en) * 1995-11-15 1999-12-28 Stuart Mandel Garland System for providing prioritized connections in a public switched network
CN102800151A (en) * 2011-05-24 2012-11-28 增城市博大塑料五金有限公司 Intelligent container recycling system and container self-service recycling terminal
CN103973469B (en) * 2013-01-30 2017-09-15 阿里巴巴集团控股有限公司 The maintaining method and device of Comet connections
CN203102430U (en) * 2013-02-20 2013-07-31 深圳市格林美高新技术股份有限公司 Energy-saving lamp recycling machine
CN203276400U (en) * 2013-06-08 2013-11-06 华南理工大学广州学院 Waste energy-saving lamp compensation recovery device
CN104378436A (en) * 2014-11-20 2015-02-25 深圳市远行科技有限公司 Information push system and method based on server push

Also Published As

Publication number Publication date
CN104732652A (en) 2015-06-24

Similar Documents

Publication Publication Date Title
CN104639374B (en) A kind of application deployment management system
CN107528870B (en) A kind of collecting method and its equipment
CN101236784B (en) Data recording system
CN106201826A (en) A kind of diagnose the big affairs of oracle database and the method for focus affairs
CN104850934A (en) Meteorological device maintenance and repair management system
CN108090165A (en) A kind of acquisition methods of the collection of illustrative plates variation based on embedded chart database
CN104917836A (en) Method and device for monitoring and analyzing availability of computing equipment based on cluster
CN102801548B (en) A kind of method of intelligent early-warning, device and information system
CN107707386A (en) Gas meter, flow meter fault cues method and Internet of things system based on compound Internet of Things
CN107607814A (en) A kind of electric energy quality monitoring system and its monitoring method of distributed power source access
CN104270434A (en) Service state monitoring system based on cloud service
CN114449018A (en) Automatic log file uploading method and system for power acquisition terminal
CN102044308A (en) Acquisition method and system for real time data of nuclear plant DCS
CN101420344A (en) Network performance automatic evaluation method based on Java and database
CN104732652B (en) A kind of electricity-saving lamp recovery system based on server push mechanism
CN102929244A (en) Community energy management system and method
CN109413166A (en) A kind of industrial gateway and its data managing method
CN107453481B (en) Method for rapidly discovering power failure of low-voltage transformer area
CN109391034A (en) A kind of overhead power transmission line monitoring system of real-time intelligent
CN112132631A (en) Label electricity utilization management method based on power customer portrait
CN107274651A (en) The acquisition method of business electrical information is monitored based on ODP agreements Demand-Oriented
CN106771570A (en) One kind is based on information-based statistics electrical energy system
CN106201410A (en) A kind of information displaying method and device
CN206135548U (en) System data on -line monitoring system of distribution automation main website
CN104579848A (en) Data analyzing and network monitoring integration method for OBS instrument

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20181206

Address after: 102600 3 floor, 2 building, No. 4 Daxing District Garden Road, Beijing, 1 unit 317

Patentee after: BEIJING ZHITOUJIA INTELLECTUAL PROPERTY OPERATION CO.,LTD.

Address before: 215163 No. 168 Keling Road, Science and Technology City, Suzhou High-tech Zone, Jiangsu Province

Patentee before: SUZHOU LONMIR LIGHTING TECHNOLOGY Co.,Ltd.

Effective date of registration: 20181206

Address after: 433000 No. 24, Group II, Liangting Village, Shahu Town, Xiantao City, Hubei Province

Patentee after: Wei Deying

Address before: 102600 3 floor, 2 building, No. 4 Daxing District Garden Road, Beijing, 1 unit 317

Patentee before: BEIJING ZHITOUJIA INTELLECTUAL PROPERTY OPERATION CO.,LTD.

CP02 Change in the address of a patent holder

Address after: 210000 Shuizaogang 44, Gulou District, Nanjing City, Jiangsu Province

Patentee after: Wei Deying

Address before: 433000 No. two group 24, Shahu Town, Xiantao, Hubei

Patentee before: Wei Deying

CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 241000 No. 3 Wuhu Road, three mountain Economic Development Zone, Anhui, China

Patentee after: Wei Deying

Address before: 210000 Shuizaogang 44, Gulou District, Nanjing City, Jiangsu Province

Patentee before: Wei Deying

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211126

Address after: 274000 Industrial Zone, Chenji Town, Heze Development Zone, Shandong Province

Patentee after: Shandong Tianjiu Biotechnology Co.,Ltd.

Address before: 241000 No.3, exi Road, Sanshan Economic Development Zone, Wuhu City, Anhui Province

Patentee before: Wei Deying

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220919

Address after: Room 704, building 5, No. 556, Changjiang Road, high tech Zone, Suzhou, Jiangsu 215000

Patentee after: SUZHOU YUDESHUI ELECTRICAL TECHNOLOGY Co.,Ltd.

Address before: 274000 Industrial Zone, Chenji Town, Heze Development Zone, Shandong Province

Patentee before: Shandong Tianjiu Biotechnology Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221228

Address after: No. 8, Xingbo 7th Road, Boxing Economic Development Zone, Boxing County, Binzhou City, Shandong Province, 256599

Patentee after: Shandong Rongzhi Industry Guidance Fund Co.,Ltd.

Address before: Room 704, building 5, No. 556, Changjiang Road, high tech Zone, Suzhou, Jiangsu 215000

Patentee before: SUZHOU YUDESHUI ELECTRICAL TECHNOLOGY Co.,Ltd.