A fruit wine sample management system and method based on infrared communication
Through infrared communication technology, combined with wireless power supply and light guide plates, automatic inventory of fruit wine sample management system is realized, which solves the low efficiency and high cost problems of traditional management methods and ensures the real-time accuracy of data and the stability of the system.
Patent Information
- Application Number
- CN202510956459.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-11
- Publication Date
- 2025-09-09
- Estimated Expiration
- 2045-07-11
AI Technical Summary
Traditional fruit wine sample management methods have problems with inefficient information recording, prone to errors, and high costs. In particular, automatic inventory cannot be achieved in the event of a power outage, resulting in data confusion.
A fruit wine sample management system based on infrared communication is used, including infrared tags and card readers. Wireless power supply and light guide plates are used to ensure signal transmission. Combined with the sample cabinet controller, automatic inventory function is realized to ensure data consistency.
It realizes automatic counting of fruit wine samples after power is restored after a power outage, improves management efficiency, reduces costs, and ensures the real-time accuracy of data and the stability of the system.
Smart Images

Figure CN120471083B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of sample management systems, and in particular to a fruit wine sample management system and method based on infrared communication. Background Art
[0002] In the development of fruit wine, the accuracy and efficiency of sample management play a crucial role in R&D results. Traditionally, fruit wine samples are usually placed in cabinets for fermentation, and the recording of sample information often relies on the primitive method of affixing text labels to the glass bottles. This method has many drawbacks. On the one hand, text labels can only carry limited information, making it difficult to meet the growing demand for digital management and unable to interact conveniently with modern information systems, resulting in extremely low efficiency in data storage, query, and analysis. On the other hand, human negligence can easily lead to miswriting or omission of label information, and even missing information due to label damage, which greatly hinders the advancement of the R&D process and increases unnecessary costs and risks.
[0003] With technological advancements, QR code technology has been widely adopted in item management, revolutionizing traditional label management. Conventional QR code labels can store more information, allowing quick access to detailed information about a wine sample, such as its name, ingredients, and brewing time, by simply scanning the code. This significantly improves information accessibility. However, the application of QR code technology in wine sample management still presents significant limitations. Power outages are common in real-world environments. If a wine sample is removed or placed during an outage, the management system will be unable to detect changes in the sample immediately upon restoration. Because QR codes lack active communication and feedback capabilities, they serve only as static information carriers. The system relies on manual re-scanning and verification to detect discrepancies. This inherently wastes significant manpower and time in large-scale sample management, easily leading to data confusion and errors within the management system, making it difficult to achieve accurate, real-time, and effective management.
[0004] Similarly, although RFID technology has the characteristics of contactless identification and automatic data reading, which seem to be able to solve some problems, its high hardware costs, including expensive RFID tags and reading and writing equipment, make it an insurmountable obstacle in scenarios such as fruit wine sample management that require the use of a large number of tags, limiting its widespread adoption.
[0005] Therefore, there is an urgent need for a fruit wine sample management system and method based on infrared communication, which can effectively manage the fruit wine samples during the fermentation and storage process of the fruit wine samples while meeting the requirements of sufficiently low cost, and can complete the automatic inventory of the fruit wine samples in the sample cabinet after the power is restored after a power outage. Summary of the Invention
[0006] The present invention provides a fruit wine sample management system and method based on infrared communication, which can effectively manage the fruit wine samples during the fermentation and storage process of the fruit wine samples while meeting the requirement of sufficiently low cost, and can complete the automatic inventory of the fruit wine samples in the sample cabinet after the power is restored after a power outage.
[0007] In order to solve the above technical problems, this application provides the following technical solutions:
[0008] A fruit wine sample management system based on infrared communication, comprising:
[0009] The infrared tag is attached to the fruit wine sample and includes a first infrared transceiver circuit, a wireless power receiving coil and a first MCU;
[0010] The fruit wine sample cabinet includes a cabinet body and a cabinet door. One side of the cabinet door is hinged to the cabinet body. The cabinet body is equipped with a sample cabinet controller, an infrared light guide plate and a limit switch. The limit switch is fixed between the cabinet door and the cabinet body, and the infrared light guide plate is fixed inside the cabinet body.
[0011] The infrared card reader is fixed in the fruit wine sample cabinet and includes a second infrared transceiver circuit, a wireless power supply coil, a second MCU and a first communication module;
[0012] Among them, the infrared tag communicates with the second infrared transceiver circuit of the infrared card reader through the first infrared transceiver circuit, and the wireless power receiving coil receives electrical energy from the wireless power supply coil of the infrared card reader to power the infrared tag; the sample cabinet controller is connected to the infrared card reader through the first communication module, and is used to control the operation of the infrared card reader and collect and manage information of fruit wine samples; the limit switch is used to detect and change the opening and closing state of the cabinet door, and feed back the opening and closing state of the cabinet door to the sample cabinet controller, and control the opening and closing state of the cabinet door according to the instructions of the sample cabinet controller; the infrared light guide plate is used to guide the transmission of infrared signals in the fruit wine sample cabinet; the sample cabinet controller is also used to send inventory instructions through the second MCU of the first communication module box after power is restored after a power outage. After receiving the inventory instruction, the second MCU establishes a communication connection with the first MCU through the second infrared transceiver circuit, collects all status information of the first MCU, and feeds it back to the sample cabinet controller.
[0013] The basic scheme's principles and beneficial effects are as follows: The infrared tag is affixed to the fruit wine sample, and its built-in first infrared transceiver circuit forms a communication link with the infrared card reader's second infrared transceiver circuit. When the infrared card reader's wireless power supply coil is energized, an alternating magnetic field is generated in the surrounding space. The infrared tag's wireless power receiving coil is placed within this magnetic field. Based on the principle of electromagnetic induction, the wireless power receiving coil will induce electrical energy, powering the first MCU and other circuits on the infrared tag, activating the infrared tag and entering its working state. At this point, the first MCU can receive and process command signals from the second infrared transceiver circuit. It can also transmit data back to the infrared card reader through the first infrared transceiver circuit, achieving two-way data interaction, such as transmitting the identity identification information and status information of the fruit wine sample. This infrared communication method has strong anti-interference capabilities and can operate stably in complex fruit wine storage environments.
[0014] The fruit wine sample cabinet is a physical structure that holds fruit wine samples. The cabinet door and cabinet body are hinged to ensure easy opening and closing. A limit switch is installed between the cabinet door and the cabinet body. When the cabinet door is opened or closed, the limit switch changes state. Its internal circuit converts this physical change into an electrical signal and feeds it back to the sample cabinet controller in real time, allowing the sample cabinet controller to accurately grasp the cabinet door status. The infrared light guide plate is made of a material with high reflectivity and low absorption rate for infrared light based on optical principles. It is fixed in the cabinet body and can reflect and refract the infrared signal emitted by the infrared card reader, guiding the infrared signal to propagate along a preset path within the cabinet body, ensuring that the infrared signal can accurately reach the infrared tags in various locations and avoiding signal scattering or attenuation that may cause poor communication.
[0015] The sample cabinet controller, serving as the core control unit, establishes a data connection with the infrared card reader via the first communication module and sends control commands to the infrared card reader according to a pre-set program, such as starting card reading and switching operating modes. It also collects, integrates, stores, and manages the wine sample information fed back by the infrared card reader. Upon power restoration, the sample cabinet controller, using its built-in emergency response program, immediately sends an inventory command to the infrared card reader's second MCU via the first communication module, initiating the sample information verification process.
[0016] When a power outage occurs, the entire system temporarily stops working. After power is restored, the sample cabinet controller starts up first. Because it has a built-in power outage recovery detection and processing mechanism, it can quickly sense the power restoration status. It then sends an inventory instruction to the second MCU of the infrared card reader through the first communication module. Upon receiving the instruction, the second MCU activates the second infrared transceiver circuit and, in accordance with the established communication protocol, initiates a communication request to the first MCU of each infrared tag to establish a connection. Since the infrared tag resumes operation after the wireless power receiving coil regains power, the first MCU responds to the request and feeds back its stored status information, such as whether it has been moved and the basic information identification of the fruit wine sample, to the second MCU via the infrared transceiver circuit. The second MCU aggregates this information and then feeds it back to the sample cabinet controller, completing the automatic inventory of the fruit wine samples in the sample cabinet and ensuring the consistency of the system data with the actual sample status.
[0017] Through the precise communication between the infrared tag and the infrared card reader and the coordinated management of the sample cabinet controller, the detailed information of each fruit wine sample, including name, brewing batch, storage time, etc., can be obtained in real time and accurately. When staff inquire about sample information, there is no need to manually check one by one. The target sample can be quickly located through system operation, which greatly improves the efficiency of fruit wine sample management, reduces information deviation caused by human errors, and provides reliable data support for fruit wine research and development.
[0018] Compared to traditional RFID technology, this system utilizes infrared communication technology combined with a relatively simple circuit structure to achieve its functions. This significantly reduces the hardware costs of infrared tags and readers, significantly saving investment in large-scale wine sample management scenarios. Furthermore, infrared communication technology is highly adaptable to various environments and is not significantly affected by common interference sources such as metal. It can be widely used in various wine storage environments and operates stably in both wooden and metal sample cabinets.
[0019] After power is restored after an outage, the system's automatic inventory function instantly detects changes in the fruit wine samples in the sample cabinet and promptly updates the system data, avoiding data confusion caused by unrecorded sample removal and placement operations during the power outage. This effectively ensures the integrity of the management system data, ensuring that R&D personnel and management personnel can access accurate and up-to-date sample information at any time, providing a solid guarantee for the continuity and stability of the fruit wine development process.
[0020] In summary, the present invention can achieve the purpose of effectively managing the fruit wine samples during the fermentation and storage process of the fruit wine samples under the premise of meeting sufficiently low costs, and can complete the automatic inventory of the fruit wine samples in the sample cabinet after the power is restored after a power outage.
[0021] Furthermore, it also includes a user terminal and a second communication module, and the second communication module is connected to the sample cabinet controller signal. The user terminal is connected to the sample cabinet controller signal through the second communication module, and is used to enter various initial information of the fruit wine sample, and the initial information includes the name of the fruit wine, origin, brewing process, and person in charge information.
[0022] Furthermore, the first infrared transceiver module and the second infrared transceiver module communicate via an infrared communication protocol, and the infrared communication protocol includes one or more of NEC, Sony SIRC, RC-5, RC-6, Samsung and a custom protocol.
[0023] Furthermore, it also includes a server side, which is connected to the sample cabinet controller signal through the second communication module, and is used to centrally store and classify the detailed information of all fruit wine samples, and receive real-time data updates from the sample cabinet controller and the user side according to different query requirements.
[0024] Furthermore, the sample cabinet controller includes an authentication module for user authentication through one or more of fingerprint recognition, password verification, facial recognition, or IC card authentication. This module ensures that only authorized users can access and operate the wine sample cabinet, thereby enhancing system security. Fingerprint recognition ensures user authenticity through unique biometrics; password verification provides a simple and effective access control method; facial recognition utilizes advanced image processing technology for identity confirmation; and IC card authentication enables rapid verification using a contactless smart card.
[0025] Furthermore, the communication mode between the infrared tag and the infrared card reader includes a normal mode and a trigger mode; wherein the normal mode is used to read all infrared tags in the wine sample storage bin, and the trigger mode is used to obtain the ID value of the infrared tag when the wine sample information is bound to the infrared tag and the wine sample with the bound tag is placed in the storage bin; and the mode judgment of the infrared card reader follows the following process:
[0026] Step a, complete system initialization, and then go to step b;
[0027] Step b, determining whether data is received from the sample cabinet controller, if new data is received, parsing the communication mode, and then going to step c, if not, continuing to wait and receive data from the sample cabinet controller;
[0028] Step c, determine whether it is a trigger mode, if it is a trigger mode, execute the trigger mode processing flow, and after the processing is completed, go to step b; if it is not a trigger mode, go to step d;
[0029] Step d, determining whether it is the normal mode, if it is the normal mode, go to step e, if it is not the normal mode, return a mode error to the sample cabinet controller, and then go to step b;
[0030] Step e: parse the infrared tag addressing information from the sample cabinet controller data received in step b. If the parsing is successful, execute the normal mode processing flow and go to step b after the processing is completed. If the parsing fails, return an addressing error to the sample cabinet controller and go to step b.
[0031] Furthermore, the trigger mode processing flow of the infrared card reader is as follows:
[0032] Step a1, start the wireless power supply circuit, wait for the power supply coil to work stably, and then go to step b1;
[0033] Step b1, determine whether the wireless power supply coil is working stably. If it is working stably, send a trigger mode card reading instruction and then go to step d1, otherwise go to step c1;
[0034] Step c1, determining whether the wireless power supply coil stabilization time has timed out. If so, sending a wireless power supply coil abnormality message to the sample cabinet controller and then going to step g1; otherwise, going to step b1;
[0035] Step d1, determine whether data from the infrared tag is received, if new data is received, go to step f1, otherwise go to step e1;
[0036] Step e1, determining whether the reception of data from the infrared tag has timed out. If so, a message indicating that the tag information has not been recognized is sent to the sample cabinet controller, and then the process goes to step g1; otherwise, the process goes to step d1;
[0037] Step f1, verify the received message. If the verification passes, send a message of the infrared tag ID value to the sample cabinet controller, and then end the process. Otherwise, send a message of tag ID recognition error to the sample cabinet controller, and then go to step g1;
[0038] Step g1, stop the wireless power supply circuit and end the process.
[0039] Furthermore, the normal mode processing flow of the infrared card reader is as follows:
[0040] Step a2: start the wireless power supply circuit, wait for the power supply coil to work stably, and then go to step b2;
[0041] Step b2, determine whether the wireless power supply coil is working stably. If it is working stably, send the normal mode card reading instruction and addressing data, and then go to step d2; otherwise, go to step c2;
[0042] Step c2, determining whether the wireless power supply coil stabilization time has timed out. If so, sending a wireless power supply coil abnormality message to the sample cabinet controller and then going to step g2; otherwise, going to step b2;
[0043] Step d2, determine whether data from the infrared tag is received, if new data is received, go to step f2, otherwise go to step e2;
[0044] Step e2, determining whether the reception of data from the infrared tag has timed out. If so, a message indicating that the tag information has not been recognized is sent to the sample cabinet controller, and then the process proceeds to step g2; otherwise, the process proceeds to step d2;
[0045] Step f2, verifying the received message. If the verification passes, a message of the infrared tag ID value is sent to the sample cabinet controller, and then the process ends. Otherwise, a message of tag ID recognition error is sent to the sample cabinet controller, and then go to step g2;
[0046] Step g2: stop the wireless power supply circuit and end the process.
[0047] Furthermore, when the infrared tag can maintain normal operation under the wireless power supply provided by the infrared card reader device, it enters the normal card reading process. The detailed steps of the process are as follows:
[0048] Step a3, perform system initialization, then go to step b3;
[0049] Step b3, determining whether data is received from the infrared card reader. If data is received, go to step c3. If data is not received, continue waiting for data to be received.
[0050] Step c3: Analyze the communication mode. If it is trigger mode, send its own infrared tag ID to the infrared card reader device and then go to step b3; if it is normal mode, go to step d3; if it is neither trigger mode nor normal mode, go to step b3;
[0051] In step d3, the addressing data is parsed from the received infrared card reader data, and it is determined whether the parsed addressing information is consistent with the infrared tag's own ID. If they are consistent, the infrared tag's own ID is sent to the infrared card reader device, and then the process goes to step b3; if they are inconsistent, the process goes directly to step b3.
[0052] The fruit wine sample management method based on infrared communication includes the following steps:
[0053] Bind the fruit wine sample information to the infrared tag: the user opens the fruit wine sample management system client software, selects the option to add a fruit wine sample, and places the new infrared tag in the infrared card reader module. The software automatically reads the infrared tag's ID number into the system. The user then fills in the fruit wine sample information bound to the tag, including the name of the fruit wine sample, the number of the sample cabinet and storage bin where the fruit wine sample is stored, whether to trigger a message reminder and the reminder time, and other relevant information. After completing the information entry, click Save, and the relevant information will be written into the database and synchronized to the server at the same time.
[0054] Put the labeled fruit wine samples into the corresponding sample cabinets and storage bins: stick the infrared tags bound to the fruit wine sample information to the bottom of the fruit wine sample. After the sample cabinet controller completes the identity authentication, bring the tag at the bottom of the fruit wine sample close to the infrared card reader of the sample cabinet controller. When the card reader detects the presence of a sample, all the fruit wine sample tags in the fruit wine sample storage bin are read and recorded, and the electromagnetic lock is automatically controlled to open the corresponding storage bin. When the fruit wine sample is put in and the cabinet door is closed, the infrared tag reading function is automatically triggered to complete the reading of all tags and compare them with the tags before the door is opened. Calculate all the fruit wine samples that are finally put in, record the storage time of the corresponding fruit wine sample in the database, and report the storage record to the server at the same time.
[0055] Query and take out fruit wine samples: When it is necessary to know the information of relevant fruit wine samples, the user clicks the query button on the user end or the fruit wine sample cabinet controller (when operating in the fruit wine sample cabinet controller, identity authentication must be completed first), obtains all fruit wine sample information and displays it in the interface (including storage / retrieval time), clicks the queried fruit wine sample in the fruit wine sample cabinet controller, clicks the take out button option, automatically triggers the infrared tag reading function, completes the reading of all tags, and automatically controls the electromagnetic lock to open the corresponding storage bin. When the fruit wine sample is taken out and the cabinet door is closed, the infrared tag reading function is automatically triggered to complete the reading of all tags and compare them with the tags before the door is opened. All fruit wine samples that are finally taken out are calculated, and the corresponding fruit wine sample removal time is recorded in the database, and the removal record is reported to the server at the same time;
[0056] Cancel the infrared tag of the fruit wine sample: When the infrared tag of the fruit wine sample is no longer needed, click the tag cancellation function on the user side to cancel the corresponding infrared tag and delete all related records of the tag, making the tag a brand new unused tag. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 This is a logic block diagram of a fruit wine sample management system based on infrared communication;
[0058] Figure 2This is a structural diagram of a fruit wine sample cabinet;
[0059] Figure 3 It is a structural diagram of an infrared tag;
[0060] Figure 4 It is a structural diagram of an infrared card reader;
[0061] Figure 5 This is a flow chart for determining the mode of an infrared card reader device;
[0062] Figure 6 This is a flowchart for trigger mode processing of infrared card reader device;
[0063] Figure 7 This is the process flow chart for trigger mode of infrared card reader;
[0064] Figure 8 Processing flow chart for infrared tag equipment;
[0065] Figure 9 This is the flow chart of the input mode;
[0066] Figure 10 This is the scanning mode flow chart;
[0067] The symbols in the drawings of the specification include: sample cabinet controller 1, fruit wine sample cabinet 2, limit switch 3, LED lighting 4, fruit wine sample 5, infrared light guide plate 6, infrared card reader 7, cabinet door 8. DETAILED DESCRIPTION
[0068] The following is further described in detail through specific implementation methods:
[0069] A fruit wine sample management system based on infrared communication (such as Figure 1 、 Figure 2 、 Figure 3 、 Figure 4 shown), including:
[0070] The infrared tag is attached to the wine sample 5 and includes a first infrared transceiver circuit, a wireless power receiving coil and a first MCU;
[0071] The fruit wine sample cabinet 2 includes a cabinet body and a cabinet door 8. One side of the cabinet door 8 is hinged to the cabinet body. A sample cabinet controller 1, an infrared light guide plate 6 and a limit switch 3 are provided in the cabinet body. The limit switch 3 is fixed between the cabinet door 8 and the cabinet body, and the infrared light guide plate 6 is fixed in the cabinet body.
[0072] The infrared card reader 7 is fixed in the wine sample cabinet 2 and includes a second infrared transceiver circuit, a wireless power supply coil, a second MCU and a first communication module;
[0073] Among them, the infrared tag communicates with the second infrared transceiver circuit of the infrared card reader 7 through the first infrared transceiver circuit, and the wireless power receiving coil receives electrical energy from the wireless power supply coil of the infrared card reader 7 to power the infrared tag; the sample cabinet controller 1 is connected to the infrared card reader 7 through the first communication module, and is used to control the operation of the infrared card reader 7 and collect and manage information of the fruit wine sample 5; the limit switch 3 is used to detect and change the opening and closing state of the cabinet door 8 (which can be achieved by using an electromagnetic door lock), and feed back the opening and closing state of the cabinet door 8 to the sample cabinet controller 1, and control the opening and closing state of the cabinet door 8 according to the instructions of the sample cabinet controller 1; the infrared light guide plate 6 is used to guide the transmission of infrared signals in the fruit wine sample cabinet 2; the sample cabinet controller 1 is also used to send an inventory instruction through the second MCU of the first communication module box after power is restored after a power outage. After receiving the inventory instruction, the second MCU establishes a communication connection with the first MCU through the second infrared transceiver circuit, collects all status information of the first MCU, and feeds it back to the sample cabinet controller 1.
[0074] In specific use, the fruit wine sample cabinet 2 consists of multiple storage compartments for fruit wine samples 5. Each compartment includes an infrared card reader 7, an infrared light guide plate 6, a fruit wine sample 5 with an infrared tag, an LED light 4, and a limit switch 3. Each sample cabinet has a sample cabinet controller 1 equipped with an infrared card reader 7, which connects and centrally manages all infrared card readers 7. The infrared light guide plate 6 conducts infrared signals between the infrared tag and the infrared card reader 7, ensuring efficient signal transmission. The limit switch 3 senses whether the cabinet door 8 is open and provides the system with door status information. An electromagnetic lock controls the opening and closing of the cabinet door 8, ensuring that only authorized users can open it. The LED light 4 illuminates the cabinet door 8 when it is open, facilitating user operation.
[0075] The infrared tag consists of an infrared transmitter circuit, an infrared receiver circuit, a wireless power supply circuit, a power supply circuit, and a main controller circuit. In actual use, the infrared reader 7's wireless power supply coil first provides power, which is then received by the wireless power supply circuit in the infrared tag. This power is then supplied to the entire circuit via the power supply circuit, activating the infrared tag's controller and starting the infrared receiver circuit, waiting for the infrared reader 7 to send the relevant instructions. Upon receiving the instructions, the infrared tag parses and processes them, then returns the results to the infrared reader 7. The infrared tag's infrared communication protocols include, but are not limited to, NEC, Sony SIRC, RC-5, RC-6, Samsung, and custom protocols to meet diverse communication needs.
[0076] The infrared card reader 7 integrates an infrared transmitter circuit, an infrared receiver circuit, a wireless power supply circuit, a power supply circuit, a main controller circuit, and a communication circuit. Its size is approximately the same as the bottom of the wine sample compartment. The infrared transmitter and receiver circuits enable infrared communication with the infrared tag; the wireless power supply circuit provides wireless power to the infrared tag; and the communication interface communicates with the sample cabinet controller 1, enabling data transmission and interaction.
[0077] It also includes a user terminal, which is mainly used to enter label information for the entire management system, including the sample information of the label (such as the name, ingredients, batch, etc. of the wine sample 5), binding time, remarks, the number of the wine sample cabinet 2 and storage bin where the wine sample 5 is stored, etc. The user can enter more optional information according to actual needs. At the same time, the user terminal can enter time trigger events for the label, that is, enter different time nodes. When the label is in the cabinet, a message reminder will be triggered when the time condition is met and pushed to the user's mobile phone, so that the user can understand the status of the sample in time. In addition, the user terminal is also used to manage all labels, such as adding, deleting, and modifying labels. The structure of the infrared card reader 7 of the user terminal is exactly the same as that of the infrared card reader 7 of the sample storage bin, except that it is smaller in size, which is convenient for users to carry and operate.
[0078] The server side also serves as a data communication bridge between the device and the user, ensuring accurate data transmission and interaction. The server side also stores and manages all infrared tag information, including the wine sample information associated with the tag, tag status, and operation history. The server side is also responsible for processing various events reported by the device side, such as tag trigger events, and pushing relevant messages to the mobile phone.
[0079] In specific operations, this embodiment also discloses a fruit wine sample management method based on infrared communication. The user opens the fruit wine sample 5 management system client software and selects the option to add fruit wine sample 5 in the software. Then, a new infrared tag is placed in the infrared card reader 7 module, and the software automatically reads the ID number of the infrared tag into the system. Next, the user needs to fill in the fruit wine sample 5 information bound to the tag, including the name of the fruit wine sample 5, the sample cabinet number and storage bin number of the fruit wine sample 5, whether to trigger a message reminder and the reminder time, and other relevant information. After completing the information entry, click Save, and the relevant information will be written into the database and synchronized to the server at the same time. Through this step, the binding of the fruit wine sample 5 information and the infrared tag is realized, laying the foundation for subsequent sample management.
[0080] An infrared tag bound to the information of the fruit wine sample 5 is affixed to the bottom of the fruit wine sample 5. After the sample cabinet controller 1 completes identity authentication (e.g., fingerprint, password, facial recognition, or IC card authentication), the tag on the bottom of the fruit wine sample 5 is brought close to the infrared card reader 7 of the sample cabinet controller 1. When the card reader detects the presence of a sample, it first reads all the labels of the fruit wine sample 5 within the storage compartment and records them. Next, the electromagnetic lock automatically opens the corresponding storage compartment and simultaneously turns on the LED lighting circuit 4. When the fruit wine sample 5 is placed and the cabinet door 8 is closed, the infrared tag reading function is automatically triggered to read all the labels. The labels are compared with the labels before the door was opened, and the total number of fruit wine samples 5 placed is calculated. The storage time of each fruit wine sample 5 is recorded in the database and the storage record is reported to the server. This process ensures the accurate storage and information recording of the fruit wine samples 5.
[0081] When a user needs to obtain information about a relevant fruit wine sample 5, they can click the query button on the user terminal or in the wine sample cabinet 2 controller 1. If operating in the wine sample cabinet 2 controller 1, the user must first complete identity authentication (fingerprint, password, facial recognition, or IC card authentication) on the sample cabinet controller 1 before all wine sample 5 information is retrieved and displayed on the interface, including detailed information such as storage / retrieval time. When the user clicks on a found wine sample 5 on the wine sample cabinet 2 controller 1 and then clicks the "Remove" button, the system automatically triggers the infrared tag reading function to read all tags, then automatically controls the electromagnetic lock to open the corresponding storage compartment and turns on the LED lighting circuit 4. When the wine sample 5 is removed and the cabinet door 8 is closed, the infrared tag reading function is also automatically triggered to read all tags. The tags are compared with the tags before the door was opened, accurately calculating all wine samples 5 removed, recording the removal time of each wine sample 5 in the database, and reporting the removal record to the server. In this way, whether it is querying or taking out fruit wine samples 5, the whole process is orderly, and information is recorded in a timely and accurate manner, which greatly improves the convenience and efficiency of management.
[0082] When the infrared tag for wine sample 5 is no longer needed, the user simply clicks the tag deregistration function on the user terminal. The system deregisters the corresponding infrared tag and deletes all related records, instantly turning it into a brand new, unused tag ready for future redistribution. This step effectively avoids confusion in tag information and ensures the simplicity and accuracy of system data.
[0083] In specific implementation, there are two communication modes between the infrared tag and the infrared card reader 7, namely normal mode and trigger mode. The normal mode is mainly used to read all infrared tags in the storage bin of the fruit wine sample 5; while the trigger mode is mainly used to obtain the ID value of the infrared tag when the fruit wine sample 5 information is bound to the infrared tag and the bound fruit wine sample 5 is placed in the storage bin. The mode judgment process of the infrared card reader 7 device is as follows: Figure 5 shown.
[0084] Step a, complete system initialization and go to step b;
[0085] Step b, determining whether data is received from the sample cabinet controller 1, if new data is received, parsing the communication mode, and then going to step c, otherwise continuing to wait and receive data from the sample cabinet controller 1;
[0086] Step c, determine whether it is a trigger mode, if it is a trigger mode, execute the trigger mode processing flow, and after the processing is completed, go to step b, otherwise go to step d;
[0087] Step d, determine whether it is the normal mode, if it is the normal mode, go to step e, otherwise return a mode error to the sample cabinet controller 1 and go to step b.
[0088] Step e, parse the infrared tag addressing information from the sample cabinet controller 1 data received in step b. If the parsing is successful, execute the normal mode processing flow. After the processing is completed, go to step b. Otherwise, return the addressing error to the sample cabinet controller 1 and go to step b.
[0089] The processing flow of the infrared card reader 7 device trigger mode is as follows Figure 6 Shown, including:
[0090] Step a1, start the wireless power supply circuit, wait for the power supply coil to work stably, and then go to step b1;
[0091] Step b1, determine whether the wireless power supply coil is working stably. If it is working stably, send a trigger mode card reading instruction and then go to step d1, otherwise go to step c1;
[0092] Step c1, determine whether the wireless power supply coil stabilization time has timed out. If so, send a wireless power supply coil abnormality message to the sample cabinet controller 1 and then go to step g1; otherwise, go to step b1;
[0093] Step d1, determine whether data from the infrared tag is received, if new data is received, go to step f1, otherwise go to step e1;
[0094] Step e1, determining whether the reception of data from the infrared tag has timed out. If so, a message indicating that the tag information has not been recognized is sent to the sample cabinet controller 1, and then the process proceeds to step g1; otherwise, the process proceeds to step d1;
[0095] Step f1, verify the received message. If the verification passes, send a message of the infrared tag ID value to the sample cabinet controller 1, and then end the process. Otherwise, send a message of tag ID recognition error to the sample cabinet controller 1, and then go to step g1.
[0096] Step g1, stop the wireless power supply circuit and end the process.
[0097] The normal mode processing flow of infrared card reader 7 device is as follows Figure 7 Shown, including:
[0098] Step a2: start the wireless power supply circuit, wait for the power supply coil to work stably, and then go to step b2;
[0099] Step b2, determine whether the wireless power supply coil is working stably. If it is working stably, send the normal mode card reading instruction and addressing data, and then go to step d2; otherwise, go to step c2;
[0100] Step c2, determining whether the wireless power supply coil stabilization time has timed out. If so, sending a wireless power supply coil abnormality message to the sample cabinet controller 1 and then going to step g2; otherwise, going to step b2;
[0101] Step d2, determine whether data from the infrared tag is received, if new data is received, go to step f2, otherwise go to step e2;
[0102] Step e2, determining whether the reception of data from the infrared tag has timed out. If so, a message indicating that the tag information has not been recognized is sent to the sample cabinet controller 1, and then the process proceeds to step g2; otherwise, the process proceeds to step d2;
[0103] Step f2, verify the received message. If the verification passes, send a message of the infrared tag ID value to the sample cabinet controller 1, and then end the process. Otherwise, send a message of tag ID recognition error to the sample cabinet controller 1, and then go to step g2.
[0104] Step g2: stop the wireless power supply circuit and end the process.
[0105] Infrared tag equipment processing flow is as follows Figure 8 As shown, Figure 8 As shown:
[0106] When the wireless power supply provided by the infrared card reader 7 device can maintain normal operation, the infrared tag enters the normal card reading process, the detailed steps of which are as follows.
[0107] Step a3, system initialization, go to step b3;
[0108] Step b3, determine whether data is received from the infrared card reader 7, if data is received, go to step c3, otherwise continue to wait for data to be received;
[0109] Step c3, analyze the communication mode. If it is trigger mode, send its own infrared tag ID to the infrared card reader 7 device, and then go to step b3. If it is normal mode, go to step d3. If it is neither mode, go to step b3.
[0110] Step d3, parse the addressing data from the received infrared card reader 7 data, and determine whether the parsed addressing information is consistent with the infrared tag's own ID. If consistent, send its own infrared tag ID to the infrared card reader 7 device, and then go to step b3, otherwise go to step b3.
[0111] Communication process between the controller 1 of the fruit wine sample cabinet 2 and the infrared card reader 7: The controller 1 of the fruit wine sample cabinet 2 mainly includes three functions: system configuration, identity management, data synchronization and infrared tag management. Among them, the system configuration is mainly used to complete the basic parameter configuration of the system, and the data synchronization is mainly used to receive the synchronization data of the server side, and at the same time send the local record and trigger data to the server side; identity management is mainly used to manage authorized users, and only authorized users can open the cabinet door 8 normally; infrared tag management is mainly used to manage the placement and removal of fruit wine samples 5. Among them, the fruit wine sample cabinet 2 controller 1 reports to the server including the sample cabinet number and storage bin number, which will not be described in the following description. The following introduces the implementation process of each module separately:
[0112] ①System configuration
[0113] When the device is used for the first time, the system's initial parameter configuration needs to be completed when it is turned on, mainly including the administrator password (used to manage all authentication methods and enter the system), and the configuration of the server synchronization address to facilitate synchronization of server and local data. When the server synchronization address configuration is completed for the first time, the latest data will be automatically synchronized from the server.
[0114] ②Data synchronization
[0115] When the server updates the latest data, the server will send a synchronization instruction and then synchronize the latest data from the server.
[0116] ③Identity management
[0117] Used to implement face recognition / fingerprint recognition / IC authentication / password authentication management, only authorized users can enter the system.
[0118] ④Infrared tag management
[0119] After the identity authentication is passed, click on the wine sample 5 management to enter the process. The infrared label management includes the input mode and the scanning mode;
[0120] The entry mode process is as follows Figure 9 As shown:
[0121] Step a4, load tag data from the synchronization data, and then go to step b4;
[0122] Step b4: Send the infrared card reader 7 (i.e. Figure 1 The infrared card reader 7x) sends a trigger mode instruction, and then goes to step c4;
[0123] Step c4, wait to see if new data is received, if no new data is received, go to step d4, otherwise go to step f4;
[0124] Step d4, determine whether the received data has timed out, if so, go to step e4, otherwise go to step c4;
[0125] Step e4, determining whether the command has been sent more than the specified number of times. If so, the interface prompts that the card reading failed and a sound prompt is given, and then the process ends. Otherwise, go to step b4;
[0126] Step f4: determine whether the received data is tag ID data. If so, go to step g4. Otherwise, display the returned error message on the interface and end the process.
[0127] Step g4: poll to see if the previous data is consistent with the read tag ID data. If so, go to step h4; otherwise, the interface prompts "unrecognized tag" and sounds a sound prompt, and then the process ends;
[0128] Step h4, according to the storage bin information bound to the fruit wine sample 5 in the corresponding tag ID information in the synchronization data, turn on the corresponding storage bin and LED lighting 4, and then go to step i4;
[0129] Step i4, checking whether the corresponding storage compartment door is closed. If not, go to step j4; otherwise, go to step k4;
[0130] Step j4, determine whether the door closing time has timed out. If not, go to step i4. Otherwise, the interface prompts that the door is not closed, and a sound prompt is given, and then go to step i4.
[0131] Step k4, corresponding warehouse (ie Figure 1The infrared card reader 7, one of 1~n) reads in normal mode whether the input tag ID exists. If it exists, the input tag ID and time, as well as the user information are reported to the server, and then the process ends. Otherwise, the interface prompts that the fruit wine sample 5 is not stored correctly and a sound prompt is given, and then the process ends.
[0132] Scan mode process is as follows Figure 10 As shown:
[0133] When the recording mode ends after the set time, it will automatically enter the scanning mode, and then scan all the tag data in the synchronized data to determine whether the tag exists. The specific implementation process is as follows:
[0134] Step a5: Load tag data from the synchronized data, parse the storage bins and configuration information corresponding to all tags, and then go to step b5;
[0135] Step b5, according to the corresponding storage bin (i.e. Figure 1 The infrared card reader 7, one of 1 to n) reads the current tag ID in normal mode, and then goes to step c5;
[0136] Step c: determine whether the current tag exists. If so, go to step e5. Otherwise, report the current tag ID and current time, and then go to step d5.
[0137] Step d5, read the next tag and go to step b5;
[0138] Step e5: Determine whether there is a trigger event for the current tag. If so, report the current tag ID, trigger time, and trigger event type to the server, and then go to step f;
[0139] Step f5, determine whether all tags have been traversed, if so, end the process, otherwise go to step d5.
[0140] The communication process between the wine sample cabinet 2 controller 1 and the server: The server writes different message categories reported by the wine sample cabinet 2 controller 1 (including sample cabinet and storage bin numbers, tag ID non-existence, tag entry, tag trigger events, etc.) into different tables in the data record database. When a tag trigger event occurs, the message is pushed to the mobile phone. When the wine sample cabinet 2 controller 1 needs to synchronize data, the server sends the tag database and other data to the wine sample cabinet 2 controller 1.
[0141] The communication process between the server and the user side is that on the user side, the user binds the labeled sample information, binding time, remarks, the number of the fruit wine sample cabinet 2 and storage bin where the fruit wine sample 5 is stored, the trigger event (no less than 1 group of trigger events and trigger types) and other information to the label as needed, and uploads the binding data to the corresponding label database on the server side.
[0142] When the user terminal needs to view the data record, the user terminal will download the data record database from the server to the local computer for the user to check. The above is only an embodiment of the present invention. The invention is not limited to the field involved in this implementation case. The common sense such as the known specific structure and characteristics in the scheme is not described too much here. Those of ordinary skill in the art know all the common technical knowledge in the field of the invention before the application date or priority date, can obtain all the existing technologies in the field, and have the ability to apply conventional experimental means before the date. Those of ordinary skill in the art can improve and implement this scheme in combination with their own abilities under the enlightenment given by this application. Some typical known structures or known methods should not become obstacles for those of ordinary skill in the art to implement this application. It should be pointed out that for those skilled in the art, without departing from the structure of the present invention, several deformations and improvements can also be made, which should also be regarded as the scope of protection of the present invention. These will not affect the effect of the implementation of the present invention and the practicality of the patent. The scope of protection required by this application should be based on the content of its claims. The specific implementation methods in the specification and other records can be used to explain the content of the claims.
Claims
1. A fruit wine sample management system based on infrared communication, characterized in that: include: The infrared tag is attached to the fruit wine sample and includes a first infrared transceiver circuit, a wireless power receiving coil and a first MCU; The fruit wine sample cabinet includes a cabinet body and a cabinet door. One side of the cabinet door is hinged to the cabinet body. The cabinet body is equipped with a sample cabinet controller, an infrared light guide plate and a limit switch. The limit switch is fixed between the cabinet door and the cabinet body, and the infrared light guide plate is fixed inside the cabinet body. The infrared card reader is fixed in the fruit wine sample cabinet and includes a second infrared transceiver circuit, a wireless power supply coil, a second MCU and a first communication module; Among them, the infrared tag communicates with the second infrared transceiver circuit of the infrared card reader through the first infrared transceiver circuit, and the wireless power receiving coil receives electrical energy from the wireless power supply coil of the infrared card reader to power the infrared tag; the sample cabinet controller is connected to the infrared card reader through the first communication module, and is used to control the operation of the infrared card reader and collect and manage information of fruit wine samples; the limit switch is used to detect and change the opening and closing state of the cabinet door, and feed back the opening and closing state of the cabinet door to the sample cabinet controller, and control the opening and closing state of the cabinet door according to the instructions of the sample cabinet controller; the infrared light guide plate is used to guide the transmission of infrared signals in the fruit wine sample cabinet; the sample cabinet controller is also used to send inventory instructions through the second MCU of the first communication module box after power is restored after a power outage. After receiving the inventory instruction, the second MCU establishes a communication connection with the first MCU through the second infrared transceiver circuit, collects all status information of the first MCU, and feeds it back to the sample cabinet controller.
2. The fruit wine sample management system based on infrared communication according to claim 1, characterized in that: It also includes a user terminal and a second communication module, and the second communication module is connected to the sample cabinet controller signal. The user terminal is connected to the sample cabinet controller signal through the second communication module, and is used to enter various initial information of the fruit wine sample, and the initial information includes the name of the fruit wine, origin, brewing process, and person in charge information.
3. The fruit wine sample management system based on infrared communication according to claim 2, characterized in that: The first infrared transceiver circuit and the second infrared transceiver circuit communicate through an infrared communication protocol, and the infrared communication protocol includes one or more of NEC, Sony SIRC, RC-5, RC-6, Samsung and a custom protocol.
4. The fruit wine sample management system based on infrared communication according to claim 3, characterized in that: It also includes a server side, which is connected to the sample cabinet controller signal through the second communication module, and is used to centrally store and classify the detailed information of all fruit wine samples, and receive real-time data updates from the sample cabinet controller and the user side according to different query requirements.
5. The fruit wine sample management system based on infrared communication according to claim 4, characterized in that: The sample cabinet controller also includes an identity authentication module for authenticating the user through one or more of fingerprint recognition, password verification, face recognition or IC card authentication.
6. The fruit wine sample management system based on infrared communication according to claim 5, characterized in that: The communication mode between the infrared tag and the infrared card reader includes a normal mode and a trigger mode; wherein the normal mode is used to read all infrared tags in the wine sample storage bin, and the trigger mode is used to obtain the ID value of the infrared tag when the wine sample information is bound to the infrared tag and the bound wine sample is placed in the storage bin; and the mode judgment of the infrared card reader follows the following process: Step a, complete system initialization, and then go to step b; Step b, determining whether data is received from the sample cabinet controller, if new data is received, parsing the communication mode, and then going to step c, if not, continuing to wait and receive data from the sample cabinet controller; Step c, determine whether it is a trigger mode, if it is a trigger mode, execute the trigger mode processing flow, and after the processing is completed, go to step b; if it is not a trigger mode, go to step d; Step d, determining whether it is the normal mode, if it is the normal mode, go to step e, if it is not the normal mode, return a mode error to the sample cabinet controller, and then go to step b; Step e, parse the infrared tag addressing information from the sample cabinet controller data received in step b. If the analysis is successful, execute the normal mode processing flow. After the processing is completed, go to step b. If the analysis fails, return the addressing error to the sample cabinet controller and go to step b.
7. The fruit wine sample management system based on infrared communication according to claim 6, characterized in that: The trigger mode processing flow of the infrared card reader is as follows: Step a1, start the wireless power supply circuit, wait for the power supply coil to work stably, and then go to step b1; Step b1, determine whether the wireless power supply coil is working stably. If it is working stably, send a trigger mode card reading instruction and then go to step d1, otherwise go to step c1; Step c1, determine whether the wireless power supply coil stabilization time has timed out. If so, send a wireless power supply coil abnormality message to the sample cabinet controller and then go to step g1; otherwise, go to step b1; Step d1, determine whether data from the infrared tag is received, if new data is received, go to step f1, otherwise go to step e1; Step e1, determining whether the reception of data from the infrared tag has timed out. If so, a message indicating that the tag information has not been recognized is sent to the sample cabinet controller, and then the process goes to step g1; otherwise, the process goes to step d1; Step f1, verify the received message. If the verification passes, send a message of the infrared tag ID value to the sample cabinet controller, and then end the process. Otherwise, send a message of tag ID recognition error to the sample cabinet controller, and then go to step g1; Step g1, stop the wireless power supply circuit and end the process.
8. The fruit wine sample management system based on infrared communication according to claim 7, characterized in that: The normal mode processing flow of the infrared card reader is as follows: Step a2: start the wireless power supply circuit, wait for the power supply coil to work stably, and then go to step b2; Step b2, determine whether the wireless power supply coil is working stably. If it is working stably, send the normal mode card reading instruction and addressing data, and then go to step d2; otherwise, go to step c2; Step c2, determining whether the wireless power supply coil stabilization time has timed out. If so, sending a wireless power supply coil abnormality message to the sample cabinet controller and then going to step g2; otherwise, going to step b2; Step d2, determine whether data from the infrared tag is received, if new data is received, go to step f2, otherwise go to step e2; Step e2, determining whether the reception of data from the infrared tag has timed out. If so, a message indicating that the tag information has not been recognized is sent to the sample cabinet controller, and then the process proceeds to step g2; otherwise, the process proceeds to step d2; Step f2, verifying the received message. If the verification passes, a message of the infrared tag ID value is sent to the sample cabinet controller, and then the process ends. Otherwise, a message of tag ID recognition error is sent to the sample cabinet controller, and then go to step g2; Step g2: stop the wireless power supply circuit and end the process.
9. The fruit wine sample management system based on infrared communication according to claim 8, characterized in that: When the infrared tag maintains normal operation under the wireless power supply provided by the infrared card reader device, it enters the normal card reading process. The detailed steps of the process are as follows: Step a3, perform system initialization, then go to step b3; Step b3, determining whether data is received from the infrared card reader. If data is received, go to step c3. If data is not received, continue waiting for data to be received. Step c3: Analyze the communication mode. If it is trigger mode, send its own infrared tag ID to the infrared card reader device, and then go to step b3; If it is normal mode, go to step d3; if it is neither trigger mode nor normal mode, go to step b3; Step d3: parse the addressing data from the received infrared card reader data and determine whether the parsed addressing information is consistent with the infrared tag's own ID. If they are consistent, send the infrared tag's own ID to the infrared card reader device and then go to step b3; If not, go directly to step b3.
10. A method for managing fruit wine samples based on infrared communication, characterized in that: The following steps are involved: Bind the fruit wine sample information to the infrared tag: the user opens the client software of the fruit wine sample management system, selects the option to add a fruit wine sample, and places the new infrared tag in the infrared card reader module. The software automatically reads the ID number of the infrared tag into the system. The user fills in the fruit wine sample information bound to the tag, including the name of the fruit wine sample, the number of the sample cabinet and storage bin where the fruit wine sample is stored, whether to trigger a message reminder, and the reminder time. After completing the information entry, click Save, and the relevant information will be written into the database and synchronized to the server at the same time. Put the labeled fruit wine samples into the corresponding sample cabinets and storage bins: stick the infrared tags bound to the fruit wine sample information to the bottom of the fruit wine sample. After the sample cabinet controller completes the identity authentication, bring the tag at the bottom of the fruit wine sample close to the infrared card reader of the sample cabinet controller. When the card reader detects the presence of a sample, all the fruit wine sample tags in the fruit wine sample storage bin are read and recorded, and the electromagnetic lock is automatically controlled to open the corresponding storage bin. When the fruit wine sample is put in and the cabinet door is closed, the infrared tag reading function is automatically triggered to complete the reading of all tags and compare them with the tags before the door is opened. Calculate all the fruit wine samples that are finally put in, record the storage time of the corresponding fruit wine sample in the database, and report the storage record to the server at the same time. Query and take out fruit wine samples: When it is necessary to know the information of relevant fruit wine samples, the user clicks the query button on the user end or the fruit wine sample cabinet controller to obtain all the fruit wine sample information and display it in the interface. Click the queried fruit wine sample in the fruit wine sample cabinet controller and click the take out button option to automatically trigger the infrared tag reading function to complete the reading of all tags and automatically control the electromagnetic lock to open the corresponding storage bin. When the fruit wine sample is taken out and the cabinet door is closed, the infrared tag reading function is automatically triggered to complete the reading of all tags and compare them with the tags before opening the door. All the fruit wine samples finally taken out are calculated, and the taking out time of the corresponding fruit wine samples is recorded in the database. At the same time, the taking out record is reported to the server. Cancel the infrared tag of the fruit wine sample: When the infrared tag of the fruit wine sample is no longer needed, click the tag cancellation function on the user side to cancel the corresponding infrared tag and delete all related records of the tag, making the tag a brand new unused tag.
Citation Information
Patent Citations
RFID intelligent file cabinet
CN104382373A
Radio frequency infrared electronic tag
CN203773571U