Data transmission method of dynamic sensing unit of cabinet body, sensing unit and cabinet body
By setting triggers in the cabinet to generate dynamic node addresses, the problem of item management chaos when the sensor unit is placed incorrectly or needs to be adjusted, the dynamic deployment of the sensor unit is realized and the structural design is simplified, and the data is improved. Timeliness and efficiency of transmission.
Patent Information
- Application Number
- CN202411314525.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-30
- Publication Date
- 2024-12-27
AI Technical Summary
When the existing cabinet is placed in the wrong cabinet or dynamic adjustment is required, the item management will be chaotic, poor adaptability and difficult to achieve dynamic management.
By setting a trigger in each cabinet, a node address is generated when the sensing unit is triggered by the trigger, and the node address, the identification of the sensing unit and the sensing data are sent to the data processing device, dynamic address generation and update are realized , avoiding the electrical connection between the sensing unit and the cabinet grid, simplifying the structural design.
Realize the dynamic deployment of sensor units in cabinet cabinets. No matter whether the sensor units are placed in the wrong cabinet or need to be adjusted, the item management can still be carried out normally, simplifying the cabinet structure design and improving the timeliness of data transmission. and efficiency.
Smart Images

Figure CN119197728A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to new generation information technology and biomedicine industry, and in particular to a data transmission method of a dynamic sensing unit of a cabinet, a sensing unit and a cabinet. Background Art
[0002] A cabinet, such as a medicine cabinet for a hospital, includes a plurality of cabinet compartments and a control device arranged in the cabinet. The cabinet compartments are used to store items, such as medicines. The control device intelligently monitors and updates the usage status of each cabinet compartment and the status of items stored in the corresponding cabinet compartment, such as the quantity. At present, cabinets are mostly master-controlled when managing items, that is, they are mainly completed uniformly through the control device of the cabinet through the bus. The adaptability is very poor, and only static management of the sensor units in the cabinet compartments can be achieved. In other words, each cabinet compartment needs to be address-coded first, and then the address coding of the corresponding cabinet compartment interface is used to fix the sensor data of the corresponding sensor unit set in the corresponding cabinet compartment. Each sensor unit and cabinet compartment need to be calibrated and bound one by one in advance. Once the sensor unit is placed in the wrong cabinet compartment or the position of the sensor unit in the cabinet compartment needs to be dynamically adjusted, the drug management of the entire cabinet will be chaotic. Summary of the invention
[0003] Based on this, it is necessary to provide a data transmission method, a sensor unit and a cabinet for a dynamic sensor unit of a cabinet to address the problem of chaotic cabinet item management when the sensor unit in the cabinet compartment of the prior art is placed in the wrong cabinet compartment or the position of the sensor unit in the cabinet compartment needs to be dynamically adjusted.
[0004] A data transmission method for a dynamic sensing unit of a cabinet, wherein the cabinet comprises a plurality of cabinet compartments and at least one sensing unit, each cabinet compartment comprises a corresponding triggering member, and the method comprises:
[0005] When the sensor unit is triggered by a triggering element of any cabinet, a node address of the corresponding cabinet is generated, wherein different cabinets trigger the sensor unit to generate different node addresses according to the position of the corresponding triggering element;
[0006] The node address, the identification of the sensor unit, and the sensor data collected by the sensor unit are sent to a data processing device.
[0007] In one embodiment, the sensor unit includes a plurality of switch elements, and when the sensor unit is triggered by a trigger element of any cabinet, generating a node address of the corresponding cabinet includes:
[0008] When one or more switch elements are triggered by a trigger element of any cabinet, a node address of the corresponding cabinet is generated.
[0009] In one embodiment, the sensing unit includes a voltage divider circuit, the voltage divider circuit includes a source end and a plurality of parallel voltage divider resistors connected to the source end, the switch element is respectively connected in series with each voltage divider resistor to turn on or off the corresponding voltage divider resistor, and when one or more switch elements are triggered by a trigger element of any cabinet, generating a node address corresponding to the cabinet includes:
[0010] Inputting a constant voltage current to the source end;
[0011] When one or more switch elements are triggered, the node address of the corresponding cabinet is generated by acquiring the voltage division value between the source end and the voltage division resistor.
[0012] In one embodiment, the cabinet includes a first cabinet and a second cabinet, and when the sensor unit is triggered by a trigger element of any cabinet, generating a node address of the corresponding cabinet includes:
[0013] When the sensing unit is triggered by the triggering element of the first cabinet, a first node address is generated;
[0014] Correspondingly, sending the node address, the identification of the sensor unit, and the sensor data collected by the sensor unit to a data processing device includes:
[0015] sending the first node address, the identification of the sensor unit, and the sensor data collected by the sensor unit to the data processing device;
[0016] The method further comprises:
[0017] When the sensor unit is triggered by the trigger element of the first compartment and then by the trigger element of the second compartment, a second node address is generated;
[0018] The second node address, the identification of the sensor unit, and the sensor data collected by the sensor unit are sent to the data processing device, and the first node address is cleared or updated.
[0019] A sensor unit is applied to a cabinet, the cabinet includes a plurality of compartments, each compartment includes a corresponding triggering member, and the sensor unit includes:
[0020] An address generation module, used for generating a node address of a corresponding compartment when the sensor unit is triggered by a triggering member of any compartment, wherein different compartments trigger the sensor unit to generate different node addresses according to the position of the corresponding triggering member;
[0021] The sending module is used to send the node address, the identification of the sensor unit, and the sensor data collected by the sensor unit to a data processing device.
[0022] In one of the embodiments, the sensing unit includes a plurality of switch elements, and the address generating module is further configured to generate a node address of a corresponding cabinet when one or more switch elements are triggered by a trigger element of any of the cabinets.
[0023] In one embodiment, the sensing unit includes a voltage divider circuit, which includes a source end and a plurality of parallel voltage divider resistors connected to the source end, and the switch element is respectively connected in series with each voltage divider resistor for turning on or off the corresponding voltage divider resistor, and the address generation module is also used to input a constant voltage current to the source end, and when one or more switch elements are triggered, the node address of the corresponding cabinet is generated by obtaining the voltage divider value between the source end and the voltage divider resistor.
[0024] In one embodiment, the cabinet comprises a first cabinet and a second cabinet, and the address generating module is further used to generate a first node address when the sensing unit is triggered by a triggering element of the first cabinet;
[0025] Correspondingly, the sending module is further used to send the first node address, the identification of the sensor unit, and the sensor data collected by the sensor unit to the data processing device;
[0026] The cabinet node address generation module is further used to generate a second node address when the sensor unit is triggered by the triggering element of the first cabinet and then by the triggering element of the second cabinet;
[0027] Correspondingly, the sending module is further used to send the second node address, the identification of the sensor unit, and the sensor data collected by the sensor unit to the data processing device, and clear or update the first node address.
[0028] A cabinet body comprises a plurality of cabinet compartments and the above-mentioned sensor unit. The cabinet body comprises a plurality of cabinet compartments and at least one sensor unit, and each cabinet compartment comprises a corresponding triggering member.
[0029] In one embodiment, the sensor unit includes a plurality of switch elements, the cabinet further includes at least one receiving groove, each of the sensor units includes a plurality of switch elements, one or more of the plurality of switch elements can be held and contracted by the trigger element, and the switch element that is not held and contracted by the trigger element can be accommodated in the receiving groove.
[0030] The data transmission method, sensor unit and cabinet of the dynamic sensor unit of the cabinet in the embodiment of the present application, each cabinet compartment includes a corresponding trigger element, when the sensor unit is triggered by the trigger element of any cabinet compartment, the sensor unit generates a node address of the corresponding cabinet compartment, wherein different cabinet compartments trigger the sensor unit to generate different node addresses according to the position of the corresponding trigger element, and then the node address, the identification of the sensor unit, and the sensor data collected by the sensor unit are sent to the data processing device, the addresses of different cabinet compartments are generated and sent by the sensor unit according to the difference of the cabinet compartment trigger element, rather than through the cabinet and the cabinet compartment, and no electrical connection is required between the cabinet and the cabinet compartment, since only the sensor unit generates and sends data, the cabinet compartment does not need to set up lines, the sensor unit is standardized, and the sensor unit can be arbitrarily set at different positions in the cabinet compartment, thereby realizing dynamic deployment of the sensor unit in the cabinet compartment, no matter whether the sensor unit is placed in the wrong cabinet compartment or the position of the sensor unit in the cabinet compartment needs to be dynamically adjusted, the item management of the entire cabinet can still be achieved through the updated address. Normal management, while also greatly simplifying the structural design of the cabinet. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 It is a main flow chart of the data transmission method of the dynamic sensing unit of the cabinet shown in the first embodiment;
[0032] Figure 2 It is a sub-flow chart of the data transmission method of the dynamic sensing unit of the cabinet shown in the first embodiment;
[0033] Figure 3 Another flow chart of the data transmission method of the dynamic sensing unit of the cabinet shown in the first embodiment;
[0034] Figure 4 It is a schematic diagram of a voltage divider circuit of a data transmission method of a dynamic sensing unit of a cabinet shown in the first embodiment;
[0035] Figure 5 It is a structural schematic diagram of the cabinet shown in the third embodiment;
[0036] Figure 6 This is a schematic diagram of the structure of another cabinet according to the third embodiment;
[0037] Figure 7 A schematic diagram of the triggering of the cabinet compartment and the sensor unit in the cabinet shown in the third embodiment;
[0038] Figure 8 It is a schematic diagram of the cabinet compartment and the sensor unit in the cabinet body shown in the third embodiment when they are not triggered;
[0039] Fig. 9 This is a schematic structural diagram of a triggering member of a compartment in a cabinet shown in the third embodiment;
[0040] Fig.10This is a schematic diagram of the switch structure of the sensor unit in the cabinet shown in Example 3.
[0041] Reference numerals: cabinet body 10 , cabinet compartment 100 , trigger element 110 , receiving groove 120 , sensor unit 200 , switch element 210 , display 300 . DETAILED DESCRIPTION
[0042] In order to facilitate the understanding of the present application, the present application will be described more fully below with reference to the relevant drawings. The preferred embodiments of the present application are provided in the drawings. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive.
[0043] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.
[0044] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.
[0045] Embodiment 1
[0046] In this embodiment, a data transmission method of a dynamic sensing unit 200 of a cabinet is provided, wherein the cabinet 10 includes a plurality of cabinet compartments 100 and at least one sensing unit 200, wherein the cabinet 10 may include a cabinet without a data transmission function, such as a medicine cabinet and a cargo cabinet, and the sensing unit 200 may include a device with a data reading function, such as a weighing sensor, an RFID reader, and the like, which can read items stored inside the cabinet 10. It can be understood that the method is generally applied to a cabinet 10 without a data transmission function, and in other embodiments, it can also be applied to a cabinet 10 with a data transmission function.
[0047] refer to Figure 1 In this embodiment, the data transmission method of the dynamic sensing unit 200 of the cabinet includes:
[0048] Step S200 : When the sensor unit 200 is triggered by the triggering member 110 of any compartment 100 , a node address of the corresponding compartment 100 is generated, wherein different compartments 100 trigger the sensor unit 200 to generate different node addresses according to the position of the corresponding triggering member 110 .
[0049] Specifically, the cabinet 10 includes a plurality of cabinets 100, each cabinet 100 includes a corresponding trigger 110. When the user places the sensor unit 200 in any cabinet 100, the trigger 110 corresponding to the current cabinet 100 can trigger the sensor unit 200, so that the sensor unit 200 generates a corresponding node address according to the corresponding trigger 110. It can be understood that the trigger 110 of each cabinet 100 is set at a different position, that is, different cabinets 100 trigger the sensor unit 200 to generate different node addresses according to the position of the corresponding trigger 110, so as to ensure that the sensor unit 200 can intelligently obtain the node address of the corresponding cabinet 100 through the different positions of the trigger 110, so as to improve the timeliness of the sensor unit 200 obtaining the corresponding node address. Step S400: Send the node address, the identification of the sensor unit 200, and the sensor data collected by the sensor unit 200 to a data processing device.
[0050] Specifically, each sensor unit 200 has a corresponding identifier and sensor data collected by the sensor unit 200, and the node address generated by the sensor unit 200, the identifier of the sensor unit 200 and the sensor data are sent to a data processing device, wherein the data processing device can integrate the acquired information and send it to a corresponding display device, etc. For example, when the sensor unit 200 includes a weighing sensor, the user places the weighing sensor in any cabinet 100, and the weighing sensor is triggered by the trigger 110 inside the cabinet 100 to generate a corresponding node address, and the node address, the identifier corresponding to each weighing sensor and the collected weighing data are sent to the data processing device, and the data processing device integrates the information and sends it to the display device of the corresponding cabinet 100, so that the display device displays the weighing data of the items stored in the corresponding cabinet 100. Among them, the sensor unit 200 can also be an RFID reader, or other equipment that can identify or collect information inside the cabinet 100.
[0051] In this embodiment, in the data transmission method of the dynamic sensor unit 200 of the cabinet, when the sensor unit 200 is triggered by the trigger member 110 of any cabinet 100, the sensor unit 200 generates a node address corresponding to the cabinet 100, and is triggered by the trigger member 110 of the cabinet 100 to obtain the node address of the cabinet 100. The data transmission is highly timely, and the node address, the identification of the sensor unit 200 and the sensor data collected by the sensor unit 200 are sent to the data processing device. That is, when the sensor data is obtained, the node address and the identification can be sent to the data processing device together, which effectively improves the efficiency of data transmission so that the data read by the sensor unit 200 does not need to be transmitted multiple times. At the same time, the addresses of different cabinets are generated and sent by the sensor unit 200 according to the different trigger elements 110 of the cabinet 100, rather than through the cabinet body 10 and the cabinet body 100. There is no need for electrical connection between the cabinet body 10 and the cabinet body 100. Since only the sensor unit 200 generates and sends data, there is no need to set up lines between the cabinet body 10 and the cabinet body 100. The sensor unit 200 is standardized and the sensor unit 200 can be set at any position in different cabinets 100, thereby realizing dynamic deployment of the sensor unit 200 in the cabinet body 100 of the cabinet body 10. Regardless of whether the sensor unit 200 is placed in the wrong cabinet or the position of the sensor unit 200 in the cabinet body 100 of the cabinet body 10 needs to be dynamically adjusted, the item management of the entire cabinet body 10 can still be achieved through the updated address. Normal management, while also greatly simplifying the structural design of the cabinet body 10, is also achieved.
[0052] In this embodiment, the sensing unit 200 includes a plurality of switch elements 210. Figure 2 , step S200: when the sensor unit 200 is triggered by the trigger element 110 of any cabinet 100, generating the node address of the corresponding cabinet 100 includes:
[0053] Step S210 : when one or more switch elements 210 are triggered by the trigger element 110 of any cabinet 100 , a node address of the corresponding cabinet 100 is generated.
[0054] Specifically, the cabinet 100 further includes a plurality of triggering members 110 , and the position of the triggering member 110 corresponding to each cabinet 100 is different. When one or more of the plurality of switch members 210 of the sensor unit 200 is triggered, different node addresses are generated.
[0055] For example, the plurality of cabinets 100 may include cabinet No. 1 100, cabinet No. 2 100, cabinet No. 3 100, etc. Each cabinet 100 has a plurality of triggering areas, and the plurality of triggering areas may be arranged in an array or in a regular arrangement, and the triggering member 110 is disposed in the plurality of triggering areas. It is assumed that the triggering member 110 of cabinet No. 1 100 includes one and is disposed at the first position of the plurality of triggering areas, the triggering member 110 of cabinet No. 2 100 includes one and is disposed at the second position of the plurality of triggering areas, and the triggering member 110 of cabinet No. 3 100 includes two and is disposed at the first position and the second position of the plurality of triggering areas. Specifically, when the sensor unit 200 is placed in cabinet No. 1 100 and is triggered by the first position, the sensor unit 200 generates a node address of 0001; when the sensor unit 200 is placed in cabinet No. 2 100 and is triggered by the second position, the sensor unit 200 generates a node address of 0002; when the sensor unit 200 is placed in cabinet No. 3 100 and is triggered by the first position and the second position at the same time, the sensor unit 200 generates a node address of 0003.
[0056] It is understandable that the position of the trigger member 110 and the positions of multiple trigger members 110 can be pre-set and correspond to unused cabinet 100 addresses, so that the sensor unit 200 can generate corresponding node addresses according to the positions of multiple trigger members 110.
[0057] refer to Figure 4 In this embodiment, the sensing unit 200 includes a voltage divider circuit, which includes a source end and a plurality of parallel voltage divider resistors connected to the source end. The switch element 210 is respectively connected in series with each voltage divider resistor to turn on or off the corresponding voltage divider resistor. Step S210: When one or more switch elements 210 are triggered by the trigger element 110 of any cabinet 100, the node address of the corresponding cabinet 100 is generated, including:
[0058] Step S211: inputting a constant voltage current to the source end.
[0059] Specifically, a constant voltage current is input to the source end. Taking a 10k pull-up resistor with a constant voltage of 3.3v input to the source end as an example, the other end of the source end is connected to four voltage-dividing resistors, namely a 1k resistor, a 2.22k resistor, a 5.71k resistor, and a 26.67k resistor. Each voltage-dividing resistor is connected in series with a corresponding switch element, and each voltage-dividing resistor is turned on to generate a corresponding voltage value, that is, the switch element corresponding to each voltage-dividing resistor is turned on to generate different voltage values, or any two of the voltage-dividing resistors are turned on to generate different voltage values.
[0060] Step S213: when one or more switch elements 210 are triggered, a node address of the corresponding cabinet 100 is generated by acquiring a voltage division value between the source terminal and the voltage division resistor.
[0061] Specifically, when the sensing unit 200 is not triggered, the sensing unit 200 has a specific voltage value or current value, and the voltage divider circuit of the sensing unit 200 includes a plurality of parallel voltage divider resistors, and a plurality of switch elements 210 are arranged corresponding to the plurality of parallel voltage divider resistors to turn on or off the corresponding voltage divider resistors. When one or more parallel voltage divider resistors of the voltage divider circuit in the sensing unit 200 are turned on or off, the voltage value or current value of the sensing unit 200 changes, and the corresponding node address is generated according to the changed voltage value or current value.
[0062] For example, Figure 4 As shown in the figure, a 10k resistor is used to input a 3.3v constant voltage to the source end (it can be combined with Figure 7 and Figure 8 , Figure 7 A schematic diagram showing 10 switch elements being turned on by the trigger element, Figure 8 10 switch elements are not turned on by the trigger element), when the sensor unit 200 is not triggered by the trigger element 110, that is, when the four switch elements 210 in the figure are not turned on, the current voltage value of the sensor unit 200 is 3.3V. Assume that the sensor unit 200 includes four groups of parallel voltage-dividing resistors, and the voltage values or current groups of the four groups of voltage-dividing resistors are different. The voltage value corresponding to the first group of 1k voltage-dividing resistors is 0.3V (0.3=3.3*[1 / (10+1)]), and the voltage value corresponding to the second group of 2.22k voltage-dividing resistors is 0.6V ( 0.6=3.3*[2.22 / (10+2.22)]), the voltage value corresponding to the third group of 5.71k voltage-dividing resistors is 1.2v (1.2=3.3*[5.71 / (10+5.71)]), the voltage value corresponding to the fourth group of 26.67k voltage-dividing resistors is 2.4v (2.4=3.3*[26.67 / (10+26.67)]), and so on. Each voltage-dividing resistor is triggered or multiple voltage-dividing resistors are triggered to generate different voltage values, and different node addresses are generated according to different voltage values.
[0063] Specifically, when the first group of switch components 210 of the sensor unit 200 is triggered, that is, the first group of 1k voltage-dividing resistors corresponding to the first group of switch components 210 are turned on, the voltage value of the sensor unit 200 after being turned on is 0.3v, and the corresponding code is 1 according to the 0.3v voltage value, that is, the node address No. 1. When the second group of switch components 210 of the sensor unit 200 is triggered, that is, the second group of 2.22k voltage-dividing resistors corresponding to the second group of switch components 210 are turned on, the corresponding code is 2 according to the voltage value after being turned on, that is, the node address No. 2. When the third group of switch components 210 of the sensor unit 200 is triggered, that is, the third group of 5.71k voltage-dividing resistors corresponding to the second group of switch components 210 are turned on, the corresponding code is 4 according to the voltage value after being turned on, that is, the node address No. 4. It is understandable that when the first and second groups of switch elements 210 of the sensing unit 200 are triggered at the same time, that is, the first group of 1k and the second group of 2.22k voltage-dividing resistors corresponding to the first and second groups of switch elements 210 and 210 are turned on, the corresponding code 3 is generated according to the current voltage value 0.9 after the conduction, that is, the node address No. 3, and so on. Different voltage values are preset to correspond to specific node addresses, so that the sensing unit 200 generates corresponding node addresses according to different voltage values or current values. It is understandable that since the switch elements 210 of the sensing unit 200 can be triggered individually, two or more can be triggered at the same time, and the voltage values obtained after the triggering are different, different voltage values correspond to different node addresses, so that 4 voltage-dividing resistors can achieve 16 codes, that is, 16 node addresses, which is conducive to saving the cost of electronic components. In order to adapt to the cabinet 10 with more cabinets 100, the voltage-dividing resistors can also be set to 5 or more, so as to achieve a larger number of codes.
[0064] refer to Figure 3 In this embodiment, the cabinet 100 includes a first cabinet 100 and a second cabinet 100. Step S200: when the sensor unit 200 is triggered by the trigger element 110 of any cabinet 100, generating a node address corresponding to the cabinet 100 includes:
[0065] Step S220: When the sensor unit 200 is triggered by the trigger element 110 of the first compartment 100, a first node address is generated;
[0066] Correspondingly, sending the node address, the identification of the sensor unit 200, and the sensor data collected by the sensor unit 200 to a data processing device includes:
[0067] Step S420: Send the first node address, the identifier of the sensor unit 200, and the sensor data collected by the sensor unit 200 to a data processing device.
[0068] Specifically, the cabinet 100 includes a plurality of cabinets, the plurality of cabinets 100 includes a first cabinet 100 and a second cabinet 100, the sensor unit 200 is triggered by the trigger 110 of the first cabinet 100 to generate a first node address, and the first node address, the identification of the sensor unit 200 and the collected sensor data are sent to the data processing device. The specific method can refer to the above embodiment, which will not be repeated here.
[0069] In this embodiment, the data transmission method of the dynamic sensing unit 200 of the cabinet and the cabinet 10 also include:
[0070] Step S230: When the sensor unit 200 is triggered by the trigger element 110 of the first compartment 100 and then by the trigger element 110 of the second compartment 100, a second node address is generated;
[0071] Step S430: Send the second node address, the identifier of the sensor unit 200, and the sensor data collected by the sensor unit 200 to the data processing device, and clear or update the first node address.
[0072] Specifically, when the same sensor unit 200 is taken out of the first cabinet 100 and placed in the second cabinet 100, the sensor unit 200 is triggered by the trigger 110 of the second cabinet 100 to generate a second node address, and the second node address, the identification of the sensor unit 200, and the sensor data collected by the sensor unit 200 are sent to the data processing device, and the first node address is cleared or updated. It can be understood that when the same sensor unit 200 is triggered by the trigger 110 of two cabinets 100 before and after, the first node address and the second node address can be generated before and after, that is, the two node addresses can be retained, but when the node address, identification and sensor data need to be sent to the data processing device, the previous node address needs to be updated to the later node address so that the data can be updated in time to ensure the timeliness and accuracy of the data. The addresses of the above-mentioned different cabinets are generated and sent by the sensor unit 200 according to the different trigger components 110 of the cabinet 100. The sensor unit 200 can be set at the position in different cabinets 100 at will, thereby realizing the dynamic deployment of the sensor unit 200 in the cabinet 100 of the cabinet body 10. The item management of the entire cabinet body 10 can still be achieved normally through the updated address.
[0073] Embodiment 2
[0074] In this embodiment, a sensor unit 200 is provided. The sensor unit 200 is applied to a cabinet 10. The cabinet 10 includes a plurality of cabinet compartments 100. Each cabinet compartment 100 includes a corresponding triggering member 110. The sensor unit 200 includes:
[0075] An address generation module, used for generating a node address of a corresponding cabinet 100 when the sensor unit 200 is triggered by a trigger member 110 of any cabinet 100, wherein different cabinets 100 trigger the sensor unit 200 to generate different node addresses according to the position of the corresponding trigger member 110;
[0076] The sending module is used to send the node address, the identification of the sensor unit 200, and the sensor data collected by the sensor unit 200 to a data processing device.
[0077] Specifically, the cabinet 10 includes a plurality of cabinets 100, each cabinet 100 includes a corresponding trigger 110, and when the user places the sensor unit 200 in any cabinet 100, the trigger 110 corresponding to the current cabinet 100 can trigger the sensor unit 200, so that the address generation module of the sensor unit 200 generates a corresponding node address according to the corresponding trigger 110. It can be understood that the trigger 110 of each cabinet 100 is set at a different position, that is, different cabinets 100 trigger the sensor unit 200 to generate different node addresses according to the position of the corresponding trigger 110, so as to ensure that the sensor unit 200 can intelligently obtain the node address of the corresponding cabinet 100 through the different positions of the trigger 110, so as to improve the timeliness of the sensor unit 200 obtaining the corresponding node address.
[0078] Each sensor unit 200 has a corresponding identifier and sensor data collected by the sensor unit 200. The sending module sends the node address generated by the sensor unit 200, the identifier of the sensor unit 200 and the sensor data to a data processing device, wherein the data processing device can integrate the acquired information and send it to a corresponding display device, etc. For example, when the sensor unit 200 includes a weighing sensor, the user places the weighing sensor in any cabinet 100, and the address generation module of the weighing sensor is triggered by the trigger 110 inside the cabinet 100 to generate a corresponding node address. The sending module sends the node address, the identifier corresponding to each weighing sensor and the collected weighing data to the data processing device, and the data processing device integrates the information and sends it to the display device of the corresponding cabinet 100, so that the display device displays the weighing data of the items stored in the corresponding cabinet 100. Among them, the sensor unit 200 can also be an RFID reader, or other equipment that can identify or collect information inside the cabinet 100.
[0079] Specifically, the addresses of different cabinets are generated and sent by the sensor unit 200 according to the different trigger components 110 of the cabinet 100, rather than through the cabinet body 10 and the cabinet body 100. There is no need for electrical connection between the cabinet body 10 and the cabinet body 100. Since only the sensor unit 200 generates and sends data, there is no need to set up lines between the cabinet body 10 and the cabinet body 100. The sensor unit 200 is standardized and the sensor unit 200 can be set at any position in different cabinets 100, thereby realizing dynamic deployment of the sensor unit 200 in the cabinet body 100 of the cabinet body 10. Regardless of whether the sensor unit 200 is placed in the wrong cabinet or the position of the sensor unit 200 in the cabinet body 100 of the cabinet body 10 needs to be dynamically adjusted, the item management of the entire cabinet body 10 can still be achieved through the updated address. Normal management, while also greatly simplifying the structural design of the cabinet body 10, is also achieved.
[0080] In this embodiment, the sensor unit 200 includes a plurality of switch elements 210 , and the address generation module is further configured to generate a node address of the corresponding cabinet 100 when one or more switch elements 210 are triggered by a trigger element 110 of any cabinet 100 .
[0081] Specifically, the triggering member 110 of the cabinet 100 also includes multiple ones, and the position of the triggering member 110 corresponding to each cabinet 100 is different. When one or more of the multiple switch members 210 of the sensor unit 200 is triggered, the address generation module generates different node addresses. For example: the multiple cabinets 100 may include cabinet No. 1 100, cabinet No. 2 100, cabinet No. 3 100, etc., each cabinet 100 has multiple triggering areas, and the multiple triggering areas can be arranged in an array or regularly, and the triggering member 110 is set in the multiple triggering areas. Among them, it is assumed that the triggering member 110 of the cabinet No. 1 100 includes 1 and is set at the first position of the multiple triggering areas, the triggering member 110 of the cabinet No. 2 100 includes 1 and is set at the second position of the multiple triggering areas, and the triggering member 110 of the cabinet No. 3 100 includes 2 and is set at the first position and the second position of the multiple triggering areas. Specifically, when the sensor unit 200 is placed in cabinet No. 1 100 and is triggered by the first position, the address generation module of the sensor unit 200 generates a node address of 0001; when the sensor unit 200 is placed in cabinet No. 2 100 and is triggered by the second position, the address generation module of the sensor unit 200 generates a node address of 0002; when the sensor unit 200 is placed in cabinet No. 3 100 and is triggered by the first position and the second position at the same time, the address generation module of the sensor unit 200 generates a node address of 0003.
[0082] In this embodiment, the sensing unit 200 includes a voltage divider circuit, which includes a source end and multiple parallel voltage divider resistors connected to the source end. The switch element 210 is respectively connected in series with each voltage divider resistor to turn on or off the corresponding voltage divider resistor. The address generation module is also used to input a constant voltage current to the source end, and when one or more switch elements 210 are triggered, the node address of the corresponding cabinet 100 is generated by obtaining the voltage divider value between the source end and the voltage divider resistor.
[0083] Specifically, a constant voltage current is input to the source end. Taking a 10k pull-up resistor with a constant voltage of 3.3v input to the source end as an example, the other end of the source end is connected to 4 voltage-dividing resistors, namely, a 1k resistor, a 2.22k resistor, a 5.71k resistor, and a 26.67k resistor. Each voltage-dividing resistor is connected in series with a corresponding switch element. Each voltage-dividing resistor is turned on to generate a corresponding voltage value, that is, the switch element corresponding to each voltage-dividing resistor is turned on to generate a different voltage value, or any two of the voltage-dividing resistors are turned on to generate different voltage values. When the sensing unit 200 is not triggered, the sensing unit 200 has a specific voltage value or current value. The voltage-dividing circuit of the sensing unit 200 includes a plurality of parallel voltage-dividing resistors, and a plurality of switch elements 210 are correspondingly arranged with the plurality of parallel voltage-dividing resistors to turn on or block the corresponding voltage-dividing resistors. When one or more parallel voltage-dividing resistors of the voltage-dividing circuit in the sensing unit 200 are turned on or off, the voltage value or current value of the sensing unit 200 changes, and the address generation module generates a corresponding node address according to the changed voltage value or current value.
[0084] For example, Figure 4Taking the 10k resistor that inputs a constant voltage of 3.3v to the source end as an example, when the sensor unit 200 is not triggered by the trigger element 110, that is, when the four switch elements 210 in the figure are not turned on, the current voltage value of the sensor unit 200 is 3.3v. Assume that the sensor unit 200 includes four groups of parallel voltage-dividing resistors, and the voltage values or current groups of the four groups of voltage-dividing resistors are different. The voltage value corresponding to the first group of voltage-dividing resistors is 0.3v, the voltage value corresponding to the second group of voltage-dividing resistors is 0.6v, the voltage value corresponding to the third group of voltage-dividing resistors is 1.2v, and the voltage value corresponding to the fourth group of 26.67k voltage-dividing resistors is 2.4v, and so on. Each voltage-dividing resistor is triggered or multiple voltage-dividing resistors are triggered to generate different voltage values, and different node addresses are generated according to different voltage values. Specifically, when the first group of switch components 210 of the sensor unit 200 is triggered, that is, the first group of 1k voltage-dividing resistors corresponding to the first group of switch components 210 are turned on, the voltage value of the sensor unit 200 after being turned on is 0.3v, and the address generation module generates a corresponding code of 1 according to the 0.3v voltage value, that is, the node address No. 1. When the second group of switch components 210 of the sensor unit 200 is triggered, that is, the second group of 2.22k voltage-dividing resistors corresponding to the second group of switch components 210 are turned on, the corresponding code is 2 according to the voltage value after being turned on, that is, the node address No. 2. When the first group and the second group of switch components 210 of the sensor unit 200 are triggered at the same time, that is, the first group of 1k and the second group of 2.22k voltage-dividing resistors corresponding to the first group of switch components 210 and the second group of switch components 210 are turned on, the address generation module generates a corresponding code of 3 according to the current voltage value after being turned on, that is, the node address No. 3, and so on. Different voltage values are preset to correspond to specific node addresses, so that the sensor unit 200 generates corresponding node addresses according to different voltage values or current values.
[0085] In this embodiment, the cabinet 100 includes a first cabinet 100 and a second cabinet 100, and the address generation module is further used to generate a first node address when the sensor unit 200 is triggered by the trigger element 110 of the first cabinet 100;
[0086] Correspondingly, the sending module is also used to send the first node address, the identification of the sensor unit 200, and the sensor data collected by the sensor unit 200 to the data processing device;
[0087] The node address generation module of the cabinet 100 is also used to generate a second node address when the sensor unit 200 is triggered by the triggering element 110 of the first cabinet 100 and then by the triggering element 110 of the second cabinet 100;
[0088] Correspondingly, the sending module is also used to send the second node address, the identification of the sensor unit 200, and the sensor data collected by the sensor unit 200 to the data processing device, and clear or update the first node address.
[0089] Specifically, when the same sensor unit 200 is taken out of the first cabinet 100 and placed in the second cabinet 100, the address generation module of the sensor unit 200 is triggered by the trigger 110 of the second cabinet 100 to generate a second node address, and the sending module sends the second node address, the identification of the sensor unit 200, and the sensor data collected by the sensor unit 200 to the data processing device, and clears or updates the first node address. It can be understood that when the same sensor unit 200 is triggered by the trigger 110 of two cabinets 100 before and after, the address generation module can generate the first node address and the second node address before and after, that is, the two node addresses can be retained, but when the node address, identification and sensor data need to be sent to the data processing device, the previous node address needs to be updated to the later node address so that the data can be updated in time to ensure the timeliness and accuracy of the data.
[0090] Embodiment 3
[0091] refer to Figure 5 , Figure 6 and Figure 7 In this embodiment, a cabinet 10 is provided, the cabinet 10 includes a plurality of cabinet compartments 100 and a sensor unit 200 of the second embodiment. The cabinet 10 includes a plurality of cabinet compartments 100 and at least one sensor unit 200, and each cabinet compartment 100 includes a corresponding trigger member 110.
[0092] Specifically, the cabinet 10 may include a cabinet that does not have a data transmission function, such as a medicine cabinet and a cargo cabinet. When the cabinet 10 is a medicine cabinet, a plurality of compartments 100 are used to store medicines, and the sensor unit 200 may include a device with a data reading function, such as a weighing sensor, an RFID reader, and the like that can read items stored inside the cabinet 10. Taking a weighing sensor as an example, when the weighing sensor is placed in the compartment 100, it can be triggered by a trigger 110 in the compartment 100 to generate a corresponding node address, and the medicines can be placed on the weighing sensor to facilitate the collection of weighing data. It is understandable that the size of the weighing sensor can be adapted to the bottom size of the compartment 100, so that when the weighing sensor is placed inside the compartment 100, the medicines can be placed above the weighing sensor to prevent the medicines from sliding from the weighing sensor to the bottom of the compartment 100 and affecting the weighing accuracy. Reference Figure 7 and Figure 8For example, one of the cabinets 100 has 10 triggering components 110 arranged in an array, and the sensor unit 200 has 10 switch components 210, each switch component 210 corresponds to a triggering component 110, and when the sensor unit 200 is placed in the cabinet 100, the 10 switch components 210 of the sensor unit 200 abut against the 10 triggering components 110 to achieve triggering, and when the 10 triggering components 110 are triggered at the same time, a corresponding voltage value is generated, and a node address is generated according to the current voltage value. Among them, the triggering components 110 inside the remaining cabinets 100 can also include 1, 2, or more, and the positions of the triggering components 110 inside each cabinet 100 are different, so that the triggering components 110 at different positions are triggered, and then the corresponding node addresses are generated according to their respective voltage values.
[0093] refer to Fig. 9 and Fig.10 The switch component 210 can be extended and retracted, and the switch component 210 has an electrically retractable portion. When the sensor unit 200 is placed inside the cabinet 100, the trigger component 110 presses against the switch component 210 to make the switch component 210 contract, thereby completing the electrical contact inside the switch component 210, that is, completing the conduction of the voltage divider resistor corresponding to the current switch component 210, and the voltage value after conduction changes, and the corresponding node address is generated according to the currently changed voltage value.
[0094] In this embodiment, the sensor unit 200 includes multiple, and the cabinet 100 also includes at least one accommodating groove 120 (not shown in the figure), each sensor unit 200 includes multiple switch components 210, one or more of the multiple switch components 210 can be supported and contracted by the trigger component 110, and the switch component 210 that is not supported and contracted by the trigger component 110 can be accommodated in the accommodating groove 120.
[0095] Specifically, the position of the switch 210 corresponds to the position of the trigger 110. When the multiple switch 210 of the sensor unit 200 is arranged at the bottom, the trigger 110 is arranged at the bottom of the cabinet 100, so that when the sensor unit 200 is placed in the cabinet 100, the switch 210 can be abutted by the trigger 110. It can also be understood that when the multiple switch 210 of the sensor unit 200 is arranged at the back, the trigger 110 is arranged at the back of the cabinet 100 to achieve the triggering of the trigger 110 and the switch 210. In this embodiment, when the sensor unit 200 is placed in the cabinet 100, one or more of the multiple switch 210 can be retracted by the address of the trigger 110, and the remaining switch 210 can be accommodated in the accommodation slot, that is, not triggered, and the sensor unit 200 generates a corresponding node address according to the triggered switch 210.
[0096] In this embodiment, each cabinet 100 has multiple triggering areas, which can be arranged in an array or regularly, and the triggering member 110 is set in multiple triggering areas. The triggering member 110 in each cabinet 100 is set in a different triggering area to trigger the switch 210. The sensor unit 200 generates different node addresses according to the triggered switch 210. The triggering area without the triggering member 110 can be set as a receiving groove 120 to accommodate the remaining switch 210. It can be understood that the triggering member 110 can be a slightly convex structure or a plane, and the triggering member 110 can be retracted when it abuts against the plane or the slightly convex structure.
[0097] In another embodiment, the cabinet 10 further includes a display 300, which includes a plurality of displays 300, the plurality of displays 300 corresponding one-to-one to the plurality of cabinet compartments 100, and arranged on the front end surface of the corresponding cabinet compartment 100, and the display 300 is used to display the weighing data of the medicines stored in the current cabinet compartment 100.
[0098] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0099] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the patent application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent application shall be subject to the attached claims.
Claims
1. A data transmission method for a dynamic sensing unit of a cabinet, characterized in that: The cabinet includes a plurality of compartments and at least one sensor unit, each compartment includes a corresponding triggering member, and the method includes: When the sensor unit is triggered by a triggering element of any cabinet, a node address of the corresponding cabinet is generated, wherein different cabinets trigger the sensor unit to generate different node addresses according to the position of the corresponding triggering element; The node address, the identification of the sensor unit, and the sensor data collected by the sensor unit are sent to a data processing device. The sensor unit includes a plurality of switch elements, and when the sensor unit is triggered by a trigger element of any cabinet, generating a node address of the corresponding cabinet includes: When one or more switch elements are triggered by a trigger element of any cabinet, a node address of the corresponding cabinet is generated. The sensing unit includes a voltage divider circuit, the voltage divider circuit includes a source end and a plurality of parallel voltage divider resistors connected to the source end, the switch element is respectively connected in series with each voltage divider resistor to turn on or off the corresponding voltage divider resistor, and when one or more switch elements are triggered by a trigger element of any cabinet, the node address corresponding to the cabinet is generated, including: Inputting a constant voltage current to the source end; When one or more switch elements are triggered, a node address of a corresponding cabinet is generated by acquiring a voltage division value between the source end and the voltage division resistor; Wherein, the voltage-dividing resistors include a first group of voltage-dividing resistors, a second group of voltage-dividing resistors, a third group of voltage-dividing resistors and a fourth group of voltage-dividing resistors, and the switch components include a first group of switch components, a second group of switch components, a third group of switch components and a fourth group of switch components. When the first group of switch components is triggered, the first group of voltage-dividing resistors corresponding to the first group of switch components are turned on, and a corresponding node address No. 1 is generated according to a corresponding voltage value. When the second group of switch components is triggered, the second group of voltage-dividing resistors corresponding to the second group of switch components are turned on, and a corresponding node address No. 2 is generated according to a corresponding voltage value. When the third group of switch components is triggered, the third group of voltage-dividing resistors corresponding to the second group of switch components are turned on, and a corresponding node address No. 4 is generated according to a corresponding voltage value. When the first group of switch components and the second group of switch components are triggered at the same time, the first group of voltage-dividing resistors and the second group of voltage-dividing resistors corresponding to the first group of switch components and the second group of switch components are turned on, and a corresponding node address No. 3 is generated according to a corresponding voltage value, thereby realizing the generation of corresponding node addresses according to different voltage values.
2. A sensing unit, characterized in that: The sensor unit is applied to a cabinet, the cabinet includes a plurality of compartments, each compartment includes a corresponding triggering member, and the sensor unit includes: An address generation module, used for generating a node address of a corresponding compartment when the sensor unit is triggered by a triggering member of any compartment, wherein different compartments trigger the sensor unit to generate different node addresses according to the position of the corresponding triggering member; A sending module, used for sending the node address, the identification of the sensor unit, and the sensor data collected by the sensor unit to a data processing device; Wherein, the sensing unit includes a plurality of switch elements, and the address generating module is further used to generate a node address of a corresponding cabinet when one or more switch elements are triggered by a trigger element of any of the cabinets; Wherein, the sensing unit includes a voltage divider circuit, the voltage divider circuit includes a source end and a plurality of parallel voltage divider resistors connected to the source end, the switch element is respectively connected in series with each voltage divider resistor for turning on or off the corresponding voltage divider resistor, the address generation module is further used to input a constant voltage current to the source end, and when one or more switch elements are triggered, the node address of the corresponding cabinet is generated by obtaining the voltage divider value between the source end and the voltage divider resistor; Wherein, the voltage-dividing resistors include a first group of voltage-dividing resistors, a second group of voltage-dividing resistors, a third group of voltage-dividing resistors and a fourth group of voltage-dividing resistors, and the switch components include a first group of switch components, a second group of switch components, a third group of switch components and a fourth group of switch components. When the first group of switch components is triggered, the first group of voltage-dividing resistors corresponding to the first group of switch components are turned on, and a corresponding node address No. 1 is generated according to a corresponding voltage value. When the second group of switch components is triggered, the second group of voltage-dividing resistors corresponding to the second group of switch components are turned on, and a corresponding node address No. 2 is generated according to a corresponding voltage value. When the third group of switch components is triggered, the third group of voltage-dividing resistors corresponding to the second group of switch components are turned on, and a corresponding node address No. 4 is generated according to a corresponding voltage value. When the first group of switch components and the second group of switch components are triggered at the same time, the first group of voltage-dividing resistors and the second group of voltage-dividing resistors corresponding to the first group of switch components and the second group of switch components are turned on, and a corresponding node address No. 3 is generated according to a corresponding voltage value, thereby realizing the generation of corresponding node addresses according to different voltage values.
3. A cabinet, characterized in that: The cabinet body comprises a plurality of cabinet compartments and the sensor unit as claimed in claim 2, and each cabinet compartment comprises a corresponding triggering member.
4. The cabinet according to claim 3, characterized in that: The cabinet body comprises a medicine cabinet, and the plurality of cabinet compartments are used to store medicines. The sensing unit comprises a weighing sensor or an RFID reader / writer to read items stored inside the cabinet body.
5. The cabinet according to claim 4, characterized in that: One of the cabinets has 10 trigger elements arranged in an array, and the sensor unit has 10 switch elements, each switch element corresponds to a trigger element. When the sensor unit is placed in the corresponding cabinet, the 10 switch elements of the sensor unit resist the 10 trigger elements, thereby generating a node address according to the voltage value.
6. The cabinet according to claim 4 or 5, characterized in that: The cabinet body also includes a display, which includes multiple displays, and the multiple displays correspond one-to-one to the multiple cabinet compartments and are arranged on the front end surfaces of the corresponding cabinet compartments. The display is used to display the weighing data of the medicines stored in the corresponding cabinet compartments.
