Summary of the invention
In order to solve the problems of the technologies described above, the present invention proposes a kind of toilet paper paper end alarm method based on low-power consumption LAN protocol, described method comprises: when detecting that the toilet paper of carton is about to use up, and the coded message of described carton is sent to low-power consumption LAN (Local Area Network) telegon; The coded message of described low-power consumption LAN (Local Area Network) telegon to described carton obtains the positional information of described carton after decoding; Described low-power consumption LAN (Local Area Network) telegon sends the alarm of the positional information of described carton, so that cleaning worker supplements toilet paper in time described carton.
Further, described carton is provided with low-power consumption local area network terminal node, the coded message of described carton is the coded message of described low-power consumption local area network terminal node.
Further, before the coded message of described carton being sent to low-power consumption LAN (Local Area Network) telegon, described method also comprises: described low-power consumption LAN (Local Area Network) telegon is encoded to low-power consumption local area network terminal node according to the positional information of carton, obtains the coded message of low-power consumption local area network terminal node; And relation table corresponding between the coded message of the low-power consumption local area network terminal node that prestores and the positional information of carton.
Further, the coded message of described low-power consumption LAN (Local Area Network) telegon to described carton obtains the positional information of described carton after decoding, specifically comprise: described low-power consumption LAN (Local Area Network) telegon searches the positional information of carton corresponding to the coded message that obtains described low-power consumption local area network terminal node by described relation table.
Further, described low-power consumption local area network terminal node detects the toilet paper residue situation of described carton by the most sensor of paper.
Further, the most sensor of described paper is reed switch paper sensor, photosensitive blocking paper sensor or reflective light sensitive paper sensor to the greatest extent to the greatest extent to the greatest extent.
The invention allows for a kind of toilet paper paper end alarm system based on low-power consumption LAN protocol, described system comprises low-power consumption local area network terminal node and low-power consumption LAN (Local Area Network) telegon, described low-power consumption local area network terminal node, during for detecting that the toilet paper of carton is about to use up, the coded message of described carton is sent to low-power consumption LAN (Local Area Network) telegon; Described low-power consumption LAN (Local Area Network) telegon, for receiving the coded message of described carton that described low-power consumption local area network terminal node sends, and decodes to described coded message and obtains the positional information of described carton; Described low-power consumption LAN (Local Area Network) telegon, also for sending the alarm of the positional information of described carton, so that cleaning worker supplements toilet paper in time described carton.
Further, described low-power consumption local area network terminal node installation is on described carton, and the coded message of described carton is the coded message of described low-power consumption local area network terminal node.
Further, described low-power consumption LAN (Local Area Network) telegon is also for before sending to low-power consumption LAN (Local Area Network) telegon by the coded message of described carton, positional information according to carton is encoded to low-power consumption local area network terminal node, obtains the coded message of low-power consumption local area network terminal node; And relation table corresponding between the coded message of the low-power consumption local area network terminal node that prestores and the positional information of carton.
Further, the coded message of described low-power consumption LAN (Local Area Network) telegon to described carton obtains the positional information of described carton after decoding, specifically comprise: described low-power consumption LAN (Local Area Network) telegon searches the positional information of carton corresponding to the coded message that obtains described low-power consumption local area network terminal node by described relation table.
Technical solution of the present invention sends to low-power consumption LAN (Local Area Network) telegon by low-power consumption LAN protocol (Zigbee) terminal node in real time by the cassette position be finished by toilet paper, inform that Cleaner needs the particular location of the carton of supplementary toilet paper, be convenient to Cleaner and supplement toilet paper to this carton.Solve toilet paper in real time and be finished the problem that can not get supplementing, accomplish that people-oriented, the moment ensures customer demand.
Embodiment
The technical matters solved to make the application, technical scheme and beneficial effect are clearly understood, below in conjunction with drawings and Examples, are further elaborated to the application.Should be appreciated that specific embodiment described herein only in order to explain the application, and be not used in restriction the application.
Wireless sensor network (WirelessSensorNetwork, WSN) is a kind of scientific and technical network newly, can be widely used in environmental monitoring, medical treatment and nursing, military field, wait field.Along with the appearance of hardware development platform and emulation tool, the research of WSN obtains significant progress, particularly after low-consumption wireless LAN (Local Area Network) (Zigbee) technical development is got up, in the technical research such as the design of its layering in communication protocol and network node, wireless communication protocol stack, synchronous and location middleware, data fusion, power consumption and high security design, achieve again the development of advancing by leaps and bounds.Along with further developing of WSN, it industry and daily life in application will be more extensive.
Zigbee is a kind of low-consumption wireless LAN protocol of low speed short-distance transmission.Mainly be applied to digital home, Industry Control, container management, Hospital Integrated Management System and wireless location.Zigbee protocol has four layers, is respectively Physical layer (PHY), MAC layer (MAC), network layer (NWK), application layer (APL) etc. from top to bottom.IEEE only processes rudimentary MAC layer and PHY agreement, and Zigbee alliance has carried out standardization to its network layer protocol and API.Zigbee network principal feature is low-power consumption, low cost, support great deal of nodes, support three kinds of network topologies, low complex degree, quick, reliable, safety.Three kinds of equipment such as be divided into low-power consumption LAN (Local Area Network) telegon (Coordinator), low-power consumption LAN router (Router), low-power consumption local area network terminal node (EndDevice) of equipment in Zigbee network.
In public places, luxurious hotel, large hotel, often there is toilet toilet paper light situation in office building, toilet paper can not be supplied in time simultaneously, bring very large inconvenience to user, affect customer experience, and in fact in some is little, be just enough to the respect degree of embodiment company or business to customer.
Therefore, ZigBee technology can be considered to be applied to alarm when toilet paper is about to use up, to solve the problems of the technologies described above, to be described in detail below by specific embodiment.
As shown in Figure 1, be the schematic flow sheet of a kind of embodiment of toilet paper paper end alarm method of low-consumption wireless LAN protocol provided by the invention, specific as follows:
Step S101, when detecting that the toilet paper of carton is about to use up, sends to low-power consumption LAN (Local Area Network) telegon by the coded message of described carton;
Particularly, each carton is provided with low-power consumption local area network terminal node, namely carton is bound one by one with corresponding low-power consumption local area network terminal node, therefore, and the coded message of carton i.e. the coded message of low-power consumption local area network terminal node.
Before the coded message of described carton being sent to low-power consumption LAN (Local Area Network) telegon, described low-power consumption LAN (Local Area Network) telegon is encoded to low-power consumption local area network terminal node according to the positional information of carton, obtains the coded message of low-power consumption local area network terminal node; And relation table corresponding between the coded message of the low-power consumption local area network terminal node that prestores and the positional information of carton.
Wherein, described low-power consumption local area network terminal node detects the toilet paper residue situation of described carton by the most sensor of paper, and described paper to the greatest extent sensor is reed switch mechanism sensor, photosensitive interrupter sensor or reflecting light dependent sensor.
Step S102, the coded message of described low-power consumption LAN (Local Area Network) telegon to described carton obtains the positional information of described carton after decoding;
Particularly, the positional information of carton corresponding to the coded message that obtains described low-power consumption local area network terminal node searched by described low-power consumption LAN (Local Area Network) telegon by described relation table.
Step S103, described low-power consumption LAN (Local Area Network) telegon sends the alarm of the positional information of described carton, so that cleaning worker supplements toilet paper to described carton.
Particularly, low-power consumption LAN (Local Area Network) telegon sends alarm by display, broadcast or pilot lamp etc., provides the more specific location information of the carton needing supplementary toilet paper simultaneously, and so, cleaning worker can supplement toilet paper in time corresponding carton.
As shown in Figure 2, be the schematic flow sheet of a kind of embodiment of low-consumption wireless LAN (Local Area Network) Zigbee construction method provided by the invention, specific as follows:
Step S201, after low-power consumption LAN (Local Area Network) telegon powers on, produces a network;
Particularly, Zigbee terminal node have low-power consumption, the feature of MANET can effectively Signal transmissions on the low-power consumption LAN (Local Area Network) telegon of Zigbee, it is low in energy consumption: come the active time of indication equipment and the ratio of T.T. by dutycycle, general dutycycle is 0.001 or 0.1%, in many Zigbee application, dutycycle is all below 1%, and single battery just can work more than the several years.
Step S202, after low-power consumption LAN router powers on, adds in the network of low-power consumption LAN (Local Area Network) telegon generation;
Particularly, after low-power consumption LAN router powers on, can automatically add in the network of low-power consumption LAN (Local Area Network) telegon generation, the LAN (Local Area Network) of low-power consumption simultaneously telegon distribute 64 bit address can to each low-power consumption LAN router.
Step S203, after terminal node powers on, adds this network according to nearest low-power consumption LAN router.
Particularly, after terminal node powers on, add in the network of low-power consumption LAN (Local Area Network) telegon generation according to nearest low-power consumption LAN router, the LAN (Local Area Network) of low-power consumption simultaneously telegon distributes 64 bit address to each terminal node.
When Zigbee terminal node is after unexpected suspension, automatically will rejoin network after re-powering, do not need artificial configuration, easy to use.
As shown in Figure 3, for the structural representation of a kind of embodiment of carton outdoor scene layout provided by the invention, in the present embodiment, there is n floor in a building, the carton in all lavatories of every layer is encoded, as 1 layer of carton be encoded to carton 11, carton 12 ..., carton 1m; 2 layers of carton be encoded to carton 21, carton 22 ..., carton 2m; N layer carton be encoded to carton n1, carton n2 ..., carton nm.
When utilizing ZigBee technology to detect the toilet paper of carton, to above each carton, a Zigbee terminal node is installed, during Zigbee networking, each equipment will be assigned to an address, can the device count of networking be 65536 in theory when address is 16, it will be infinite multiple for using during 64 bit address.And by network identity, can also intercom mutually between different separate networks, so the terminal node number consisted of Zigbee is unrestricted, will the requirement of the tissue extraction box meeting any place be enough to.
According to the feature of Zigbee MANET, after all Zigbee terminal node energisings, any network information with other will not be relied on, all can be real-time data be sent on the low-power consumption LAN (Local Area Network) telegon of control center.
Each carton is arranged a Zigbee terminal node, that is, the coded message of carton, the namely coded message of Zigbee terminal node, so, being encoded to of every layer of Zigbee terminal node: 1 layer of Zigbee terminal node is encoded to Zigbee terminal node 11, Zigbee terminal node 12, Zigbee terminal node 1m, 2 layers of Zigbee terminal node are encoded to Zigbee terminal node 21, Zigbee terminal node 22, Zigbee terminal node 2m, n layer Zigbee terminal node is encoded to Zigbee terminal node n1, Zigbee terminal node n2, Zigbee terminal node nm.
As shown in Figure 4, the structural representation of a kind of embodiment of toilet paper paper end alarm system of low-consumption wireless LAN protocol provided by the invention, specific as follows:
Toilet paper paper end alarm system of the present invention, this system comprises low-power consumption local area network terminal node and low-power consumption LAN (Local Area Network) telegon 411, wherein, low-power consumption local area network terminal node is connected with low-power consumption LAN (Local Area Network) telegon 411 by low-power consumption LAN router, low-power consumption LAN router is arranged on the correct position in building, the number of low-power consumption LAN router can according to the number of plies in building, the quantity of toilet paper carton, the settings such as position, as figure can be set to low-power consumption LAN router 421, low-power consumption LAN router 42n, each low-power consumption LAN router also can arrange x low-power consumption local area network terminal node, if figure is low-power consumption local area network terminal node 431, low-power consumption local area network terminal node 43x.
Low-power consumption local area network terminal node, during for detecting that the toilet paper of carton is about to use up, sends to low-power consumption LAN (Local Area Network) telegon 411 by the coded message of carton;
Low-power consumption LAN (Local Area Network) telegon 411, for receiving the coded message of carton that low-power consumption local area network terminal node sends, and decodes to coded message and obtains the positional information of carton;
Low-power consumption LAN (Local Area Network) telegon 411, also for sending the alarm of the positional information of carton, so that cleaning worker supplements toilet paper to described carton.
Low-power consumption local area network terminal node installation is on carton, and the coded message of carton is the coded message of low-power consumption local area network terminal node.
Low-power consumption LAN (Local Area Network) telegon 411, also for before the coded message of carton is sent to low-power consumption LAN (Local Area Network) telegon, positional information according to carton is encoded to low-power consumption local area network terminal node, obtains the coded message of low-power consumption local area network terminal node; And relation table corresponding between the coded message of the low-power consumption local area network terminal node that prestores and the positional information of carton.
The coded message of low-power consumption LAN (Local Area Network) telegon 411 pairs of cartons obtains the positional information of described carton after decoding, specifically comprise: low-power consumption LAN (Local Area Network) telegon 411 searches the positional information of carton corresponding to the coded message that obtains described low-power consumption local area network terminal node by described relation table.
Wherein, Zigbee terminal node carton arranged comprises power module, switch module, radio-frequency module, sensor assembly, informs module.
Power module, provides power supply for giving low-power consumption local area network terminal node;
Switch module, for being switched on or switched off low-power consumption local area network terminal node;
Sensor assembly, for detecting the toilet paper residue situation of carton;
Inform module, for when described sensor assembly detects that the toilet paper of described carton is about to use up, the coded message of described carton is informed to described radio-frequency module;
Radio-frequency module, for the coded message of the described carton received is sent to low-power consumption LAN (Local Area Network) telegon, so as described low-power consumption LAN (Local Area Network) telegon to described coded message decode obtain described carton positional information alarm described in the positional information of carton.
Can accomplish rationally to agree with to make the actual carton of various difference and Zigbee terminal node, sensor assembly can be paper sensor to the greatest extent, can be reed switch paper sensor, photosensitive blocking paper sensor or reflective light sensitive paper sensor to the greatest extent to the greatest extent to the greatest extent according to actual needs.Reed switch paper is sensor to the greatest extent, the sensor be made up of reed switch; Photosensitive blocking paper is sensor to the greatest extent, the sensor be made up of photosensitive breaker; Reflective light sensitive paper is sensor to the greatest extent, and the sensor that reflecting light dependent sensor is formed is housed.
Should be appreciated that the functional module of the low-power consumption local area network terminal node that the present embodiment provides can be the functional module of software module or software and hardware combining, it can be performed by processor and realize function as above.Further, low-power consumption local area network terminal node can also have other functional modules to realize each concrete steps of application program method for pushing of described EPON, specifically can consult the corresponding description of above embodiment of the method.
In addition, person of ordinary skill in the field is understood that all or part of step realizing said method embodiment can have been come by the hardware that programmed instruction is relevant, aforesaid program can be stored in computer read/write memory medium, and performed by the processor of communication inside, aforesaid program processor when being performed can perform all or part of step comprising said method embodiment.Wherein, described processor can be implemented as one or more processor chips, or can be a part for one or more special IC (ApplicationSpecificIntegratedCircuit, ASIC); And aforesaid storage medium can include but not limited to the storage medium with Types Below: flash memory (FlashMemory), ROM (read-only memory) (Read-OnlyMemory, ROM), random access memory (RandomAccessMemory, RAM), portable hard drive, magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above embodiment is only in order to illustrate the technical scheme of the application, be not intended to limit; Although with reference to previous embodiment to present application has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of each embodiment technical scheme of the application.