Cabinet cell addressing method, cabinet, and cabinet cell addressing system for a cabinet body
The cabinet addressing system dynamically generates node addresses for compartments upon detection of electronic devices, improving efficiency and reducing address lookup times by associating devices with compartments instantly.
Patent Information
- Application Number
- CN202310038002.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-06
- Publication Date
- 2025-07-15
- Estimated Expiration
- 2043-01-06
AI Technical Summary
The existing cabinet cabinet addressing method is inefficient and takes a long time, especially when the number of cabinet cabinets is large, resulting in confusion in management.
By setting up an addressing circuit and a switch structure in the cabinet, when the electronic device is placed in the cabinet, the node address is generated through the addressing circuit, and the relationship between the electronic device and the cabinet is established based on the node address, and a unique node address is generated using the voltage divider value of the resistor and the switch.
It improves the efficiency of cabinet addressing cabinet grids, reduces addressing time, enhances the timeliness and accuracy of node addresses, and avoids the search process of preset addresses in the system.
Smart Images

Figure CN116092243B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical fields of the new generation of information technology and the biomedical industry, and particularly relates to a cabinet grid addressing method, a cabinet body, and a cabinet grid addressing system for a cabinet body. Background Art
[0002] With the development of technology, cabinets such as express cabinets, meal pickup cabinets, vending cabinets, and medical intelligent medicine cabinets are more and more widely used. Among them, many cabinets include multiple cabinet grids, and electronic devices that can be placed or taken out are arranged in the cabinet grids. Each cabinet grid is configured with an independent node address to facilitate communication, control, and management of each cabinet grid or electronic device through the node address of the cabinet grid.
[0003] The existing addressing method for cabinet grids of a cabinet generally presets each node address according to the number of cabinet grids and then assigns it to the corresponding cabinet grid. Whether there is an electronic device in the cabinet grid and whether it is in a working state, the node address of the cabinet grid needs to be preset in the system in advance. When an electronic device is placed in the cabinet grid, the node address of the corresponding cabinet grid is retrieved from the system for association. This method is very inefficient. First, it is necessary to detect which cabinet grid has an electronic device placed in it, and then obtain the node address of the cabinet grid from the system. Especially when the number of cabinet grids in the cabinet body is larger, the time required to detect the change in the state of the cabinet grid and find the corresponding cabinet grid node address is longer. Once there is a problem in the addressing process of the cabinet body for the cabinet grid, the management of the electronic device by the cabinet body will become chaotic. Summary of the Invention
[0004] Based on this, in view of the problems of low efficiency and long time consumption in the existing cabinet body's addressing of cabinet grids, it is necessary to provide a new cabinet grid addressing method, a cabinet body, and a cabinet grid addressing system for a cabinet body.
[0005] A cabinet grid addressing method for a cabinet body, the cabinet body includes at least one cabinet grid, the cabinet grid includes an addressing circuit and a switching structure, the switching structure includes an electrical component capable of conducting or interrupting the addressing circuit, and the method includes:
[0006] When the switching structure is triggered by an electronic device placed in the cabinet grid, generate the node address of the cabinet grid through the addressing circuit;
[0007] Establish an association between the electronic device and the cabinet grid according to the node address.
[0008] In one embodiment, there are multiple electronic devices, each electronic device includes a sensing module and a communication module, the sensing module is used to collect the status data of the items in the cabinet body and send it to the cabinet body through the communication module, and establishing the association between the electronic device and the cabinet grid according to the node address includes:
[0009] When the addressing circuit is turned on by the switch structure, receive the status data sent by the electronic device and the identification data corresponding to the electronic device;
[0010] Establish the association between the node address and the identification data;
[0011] Correspondingly, the establishment of the association between the electronic device and the cabinet cell according to the node address specifically includes:
[0012] Establish the association between the corresponding electronic device and the cabinet cell according to the node address and the identification data.
[0013] In one embodiment, the addressing circuit includes a first resistor, a second resistor, a source terminal, and a ground terminal. The switch structure includes a first switch and a second switch. The first resistor and the second resistor are respectively connected to the source terminal. One end of the first switch is connected to the first resistor to conduct or block the first resistor. One end of the second switch is connected to the second resistor to conduct or block the second resistor. The other ends of the first switch and the second switch are respectively connected to the ground terminal. When the switch structure is triggered by the electronic device placed in the cabinet cell, generating the node address of the cabinet cell through the addressing circuit includes:
[0014] When the first switch is turned on by the electronic device, obtain the first voltage division value between the first resistor and the source terminal;
[0015] When the second switch is turned on by the electronic device, obtain the second voltage division value between the second resistor and the source terminal;
[0016] Generate the node address of the cabinet cell according to the first voltage division value and the second voltage division value.
[0017] In one embodiment, the cabinet body includes a plurality of the cabinet cells arranged vertically and horizontally. Each cabinet cell is connected in series between the source terminal and the ground terminal through a bus. The first resistor and the first switch of each cabinet cell are connected in parallel. The second resistor and the second switch of each cabinet cell are connected in parallel. The generation of the node address of the cabinet cell according to the first voltage division value and the second voltage division value includes:
[0018] Turn on the first switch and the second switch to input a constant voltage current to the source terminal;
[0019] When the first switch is blocked by the electronic device, obtain the first voltage division value between the source terminal and the first resistor corresponding to any one of the cabinet cells. When the second switch is blocked by the electronic device, obtain the second voltage division value between the source terminal and the second resistor corresponding to any one of the cabinet cells, so as to generate the node address corresponding to the cabinet cell respectively.
[0020] A cabinet, comprising:
[0021] At least one cabinet compartment, the cabinet compartment including an addressing circuit and a switching structure, the switching structure including electrical components capable of conducting or interrupting the addressing circuit;
[0022] An address generation module, configured to generate a node address of the cabinet compartment through the addressing circuit when the switching structure is triggered by an electronic device placed in the cabinet compartment;
[0023] A calibration module, configured to establish an association between the electronic device and the cabinet compartment according to the node address.
[0024] In one embodiment, there are multiple electronic devices, each electronic device including a sensing module and a communication module, the sensing module being configured to collect status data of articles in the cabinet and send it to the cabinet through the communication module, and the cabinet further including:
[0025] A data processing module, configured to receive the status data sent by the electronic device and identification data corresponding to the electronic device;
[0026] The calibration module is further configured to establish an association between the node address and the identification data, wherein the calibration module is specifically configured to establish an association between the electronic device and the cabinet compartment corresponding to the node address and the identification data.
[0027] In one embodiment, the addressing circuit includes a first resistor, a second resistor, a source terminal, and a ground terminal, the switching structure includes a first switch and a second switch, the first resistor and the second resistor are respectively connected to the source terminal, one end of the first switch is connected to the first resistor to conduct or block the first resistor, one end of the second switch is connected to the second resistor to conduct or block the second resistor, the other ends of the first switch and the second switch are respectively connected to the ground terminal, and the address generation module is further configured to obtain a first voltage division value between the first resistor and the source terminal when the first switch is conducted by the electronic device, and obtain a second voltage division value between the second resistor and the source terminal when the second switch is conducted by the electronic device, and then generate the node address of the cabinet compartment according to the first voltage division value and the second voltage division value.
[0028] In one embodiment, the cabinet body includes a plurality of the cabinet cells arranged vertically and horizontally. Each cabinet cell is connected in series between the source end and the ground end through a bus. The first resistor and the first switch of each cabinet cell are connected in parallel, and the second resistor and the second switch of each cabinet cell are connected in parallel. The address generation module is further configured to turn on the first switch and the second switch to input a constant voltage current to the source end, obtain a first voltage division value between the source end and the first resistor corresponding to any one of the cabinet cells when the first switch is blocked by the electronic device, and obtain a second voltage division value between the source end and the second resistor corresponding to any one of the cabinet cells when the second switch is blocked by the electronic device, so as to generate node addresses corresponding to the cabinet cells respectively.
[0029] A cabinet cell addressing system for a cabinet body includes the cabinet body and the electronic device described above.
[0030] In one embodiment, there are a plurality of the electronic devices. Each electronic device includes a corresponding sensing module and a communication module. The sensing module is configured to collect status data of items in the cabinet body and send it to the cabinet body through the communication module.
[0031] In this embodiment, a cabinet cell addressing method, a cabinet body, and a cabinet cell addressing system for the cabinet body are provided. In the cabinet cell addressing method for the cabinet body, the cabinet body includes at least one cabinet cell. The cabinet cell includes an addressing circuit and a switch structure. When the switch structure is triggered by an electronic device placed in the cabinet cell, a node address of the cabinet cell is generated through the addressing circuit, and an association between the electronic device and the cabinet cell is established according to the node address. In this application, by opening or closing the switch structure by the electronic device, the node address of the current cabinet cell is instantaneously generated or removed through the addressing circuit, without having to search for the node address of the corresponding cabinet cell among the node addresses preset in the system, improving the efficiency of the cabinet body in addressing the cabinet cell and reducing the time for the cabinet body to address the cabinet cell. Description of the Drawings
[0032] Figure 1 It is a flowchart of the cabinet cell addressing method for the cabinet body in the first embodiment;
[0033] Figure 2 It is a specific flowchart of establishing the association between the electronic device and the cabinet cell according to the node address in the cabinet cell addressing method for the cabinet body in the first embodiment;
[0034] Figure 3 It is a specific flowchart of generating the node address of the cabinet cell through the addressing circuit when the switch structure is triggered by the electronic device placed in the cabinet cell in the cabinet cell addressing method for the cabinet body in the first embodiment;
[0035] Figure 4 It is a specific flowchart of generating the node address of the cabinet cell according to the first voltage division value and the second voltage division value in the cabinet cell addressing method for the cabinet body in the first embodiment;
[0036] Figure 5 One of the schematic diagrams of the addressing circuit and the switch structure for the cabinet grid addressing method of the cabinet body in Embodiment 1;
[0037] Figure 6 Another one of the schematic diagrams of the addressing circuit and the switch structure for the cabinet grid addressing method of the cabinet body in Embodiment 1;
[0038] Figure 7 Schematic diagram of the first voltage division value and the second voltage division value for the cabinet grid addressing method of the cabinet body in Embodiment 1;
[0039] Figure 8 Schematic diagram of the structure of the cabinet body in Embodiment 2.
[0040] Reference numerals in the drawings: cabinet body 10, cabinet grid 100, addressing circuit 110, first resistor 111, second resistor 112, switch structure 120, first switch 121, second switch 122, source terminal 130, ground terminal 140, detection terminal 150, pull-up resistor 160, electronic device 200, display device 300. Detailed implementation manners
[0041] To facilitate the understanding of the present application, the present application will be described more comprehensively below with reference to the relevant drawings. The preferred embodiments of the present application are given 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, these embodiments are provided to make the understanding of the disclosure content of the present application more thorough and comprehensive.
[0042] It should be noted that when an element is referred to as being "fixed to" another element, it can be directly on the other element or there may also be an intermediate element. When an element is considered to be "connected" to another element, it can be directly connected to the other element or there may be an intermediate element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are only for the purpose of illustration.
[0043] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field to which the present application belongs. The terms used in the description of the present application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.
[0044] Embodiment 1
[0045] In this embodiment, a method for addressing a cabinet compartment of a cabinet is provided. The cabinet 10 includes at least one cabinet compartment 100. The cabinet compartment 100 includes an addressing circuit 110 and a switch structure 120. The switch structure 120 includes electrical components that can conduct or interrupt the addressing circuit 110. Among them, the cabinet 10 can include cabinets with electrical components such as medicine cabinets and storage cabinets.
[0046] Reference Figure 1 , in this embodiment, the method for addressing a cabinet compartment of a cabinet includes:
[0047] Step S200: When the switch structure 120 is triggered by the electronic device 200 placed in the cabinet compartment 100, generate the node address of the cabinet compartment 100 through the addressing circuit 110.
[0048] Specifically, each cabinet compartment 100 is provided with a corresponding switch structure 120, and the electrical components of the switch structure 120 provided in each cabinet compartment 100 can conduct or interrupt the addressing circuit 110 to generate different node addresses. It can be understood that the cooperation between the switch structure 120 of each cabinet compartment 100 and the addressing circuit 110 is different, so that when the switch structure 120 is triggered by the electronic device 200 placed in any cabinet compartment 100, the node address of the current cabinet compartment 100 can be intelligently obtained, thereby improving the timeliness of generating the node address and having higher efficiency.
[0049] Step S400: Establish an association between the electronic device 200 and the cabinet compartment 100 according to the node address.
[0050] Specifically, after the node address is generated, an association between the cabinet compartment 100 and the current electronic device 200 is established according to the node address, that is, the association between the electronic device 200 and the cabinet compartment 100 is realized. Among them, the electronic device 200 can be a device with data reading function. For example, devices such as a weighing sensor and an RFID reader that can read the items stored inside the cabinet compartment 100. The weighing sensor is used to read the weighing data of the items, and the RFID reader is used to read the label information of the items. Taking the weighing sensor as an example, when the weighing sensor is placed in the cabinet compartment 100 to trigger the switch structure 120 of the current cabinet compartment 100, the cabinet 10 generates a node address and establishes an association between the weighing sensor and the cabinet compartment 100 according to the node address.
[0051] In this embodiment, by opening or closing the switch structure 120 by the electronic device 200, the node address of the current cabinet compartment 100 is instantaneously generated or removed through the addressing circuit 110, without having to search for the node address of the corresponding cabinet compartment 100 among the node addresses preset in the system, which improves the efficiency of the cabinet 10 addressing the cabinet compartment 100 and reduces the time for the cabinet 10 to address the cabinet compartment 100.
[0052] Specifically, in this embodiment, the cabinet 10 includes at least one cabinet 100, and the cabinet 100 includes an addressing circuit 110 and a switch structure 120. When the switch structure 120 is triggered by the electronic device 200 placed in the cabinet 100, the node address of the cabinet 100 is generated by the addressing circuit 110, and the association between the electronic device 200 and the cabinet 100 is established according to the node address. The method generates the node address of the current cabinet 100 in time through the addressing circuit 110 by triggering the switch structure 120 by the electronic device 200, effectively enhancing the allocation efficiency of the node address, and establishing the association between the electronic device 200 and the cabinet 100 after receiving the node address, and the association can be achieved without transferring the node address, and the timeliness is strong.
[0053] In this embodiment, the electronic device 200 includes a plurality of electronic devices 200 , each of which includes a sensor module and a communication module. The sensor module is used to collect status data of items in the cabinet 10 and send the data to the cabinet 10 via the communication module.
[0054] Specifically, each electronic device 200 has unique identification data, and includes a sensor module and a communication module. The sensor module is used to collect the status data of the items in the cabinet 10, wherein the status data is the data collected when the electronic device 200 reads the items in the cabinet. When the electronic device 200 includes a weighing sensor, the status data is the weighing data. When the electronic device 200 includes an RFID reader, the status data is the tag data. Specifically, taking the weighing sensor as an example, the user places the weighing sensor in any cabinet 100, and the weighing sensor triggers the switch structure 120 inside the cabinet 100, so that the cabinet 10 generates a corresponding node address, and establishes an association between the electronic device 200 and the cabinet 100 according to the node address. When the sensor module of the weighing sensor collects the weighing data in the cabinet, the communication module sends the weighing data to the cabinet 10, and the cabinet 10 uploads the weighing data in association with the node address, that is, the node address of the cabinet 10 can be known according to the associated weighing data, that is, the weighing data stored in the cabinet 100 corresponding to the current node address can be known.
[0055] refer to Figure 2 In this embodiment, step S400: establishing an association between the electronic device 200 and the cabinet 100 according to the node address includes:
[0056] Step S410 : when the addressing circuit 110 is turned on by the switch structure 120 , the state data sent by the electronic device 200 and the identification data of the corresponding electronic device 200 are received.
[0057] Specifically, when the switch structure 120 of any cabinet compartment 100 is triggered to conduct the addressing circuit 110, the sensing module of the electronic device 200 collects the weighing data inside the cabinet, and the communication module sends the weighing data and identification data to the cabinet body 10, that is, the cabinet body 10 generates the node address of the current cabinet compartment 100 and can also receive the status data and identification data sent by the electronic device 200.
[0058] Step S420: Establish an association between the node address and the identification data.
[0059] Specifically, after generating the node address, associate the node address with the received identification data to realize the association between the electronic device 200 and the cabinet compartment 100. The association can be realized without performing or relaying the node address, and the timeliness of the association is relatively strong. It can be understood that after the electronic device 200 is associated with the cabinet compartment 100, the node address of the current cabinet compartment 100 can be determined through the received status data.
[0060] Correspondingly, step S400: Establishing the association between the electronic device 200 and the cabinet compartment 100 according to the node address specifically includes:
[0061] Step S430: Establish the corresponding association between the electronic device 200 and the cabinet compartment 100 according to the node address and the identification data.
[0062] Specifically, the corresponding association between the electronic device 200 and the cabinet compartment 100 can be established through the node address and the identification data, and the node address of the current cabinet compartment 100 can be determined through the received status data. It can be understood that a display device 300 is also included. Each cabinet compartment 100 is provided with a corresponding display device 300. The display device 300 is electrically connected to the cabinet compartment 100, and the obtained status data can be uploaded to the display device 300 of the corresponding cabinet compartment 100 according to the node address of the cabinet compartment 100, so that the display device 300 is used to display the status data, which is beneficial for the user to read the status of the items inside the current cabinet compartment 100.
[0063] Reference Figure 5 , in this embodiment, the addressing circuit 110 includes a first resistor 111, a second resistor 112, a source terminal 130, and a ground terminal 140. The switch structure 120 includes a first switch 121 and a second switch 122. The first resistor 111 and the second resistor 112 are respectively connected to the source terminal 130. One end of the first switch 121 is connected to the first resistor 111 to conduct or block the first resistor 111. One end of the second switch 122 is connected to the second resistor 112 to conduct or block the second resistor 112. The other ends of the first switch 121 and the second switch 122 are respectively connected to the ground terminal 140.
[0064] Specifically, a constant-voltage current is input to the source terminal 130. The first switch 121 is connected to the first resistor 111 and is used to conduct or block the current line. The second switch 122 is connected to the second resistor 112 and is used to conduct or block the current line. The first resistors 111 and the second resistors 112 provided in each cabinet compartment 100 are configured according to preset resistance values to obtain a preset voltage division value, that is, the first resistors 111 and the second resistors 111 built in the first cabinet compartment 100 and the second cabinet compartment 100 are different. When the electronic device 200 is placed in any cabinet compartment 100, the first switch 121 and the second switch 122 in the corresponding cabinet compartment 100 can be triggered, so that the corresponding first resistor 111 and second resistor 112 are conducted to obtain a preset first voltage division value and a second voltage division value.
[0065] Reference Figure 3 , in this embodiment, step S200: when the switch structure 120 is triggered by the electronic device placed in the cabinet compartment 100, generating the node address of the cabinet compartment 100 by the addressing circuit 110 includes:
[0066] Step S210: when the first switch 121 is conducted by the electronic device 200, obtaining the first voltage division value between the first resistor 111 and the source terminal 130;
[0067] Step S220: when the second switch 122 is conducted by the electronic device 200, obtaining the second voltage division value between the second resistor 112 and the source terminal 130;
[0068] Step S230: generating the node address of the cabinet compartment 100 according to the first voltage division value and the second voltage division value.
[0069] Specifically, when the electronic device 200 is placed in the cabinet compartment 100, the first switch 121 is conducted by the electronic device 200, so that a first voltage division value is generated between the first resistor 111 and the source terminal 130, and the second switch 122 is conducted by the electronic device 200, so that a second voltage division value is generated between the second resistor 112 and the source terminal 130. The obtained first voltage division value and second voltage division value are converted into corresponding preset addresses a and b, and the corresponding preset addresses a and b are integrated to generate the preset node address ab of the cabinet compartment 100. It can be understood that the preset node address ab is formed by integrating the preset addresses converted from the first voltage division value and the second voltage division value. Among them, the preset address a of the first voltage division value can correspond to the first digit, and the preset address b of the second voltage division value can correspond to the second digit, and the preset node address ab is integrated. It is also possible to correspond the preset address a of the first voltage division value to the second digit, and the preset address b of the second voltage division value to the first digit, and integrate to form the preset node address ba. The above integration method of the preset address can be preset in advance to make the preset node address match the actual arrangement order of the cabinet compartments.
[0070] Among them, the first resistor 111 and the first switch 121 of each cabinet cell 100 are in parallel or series, and the second resistor 112 and the second switch 122 are in parallel or series. First, referring to Figure 5 , when the first resistor 111 and the first switch 121 of each cabinet cell 100 are in parallel, and the second resistor 112 and the second switch 122 are in parallel, the electronic device 200 triggers the first switch 121 and the second switch 122 in the cabinet cell 100, so that the first resistor 111 and the second resistor 112 are blocked to obtain a preset first voltage division value and second voltage division value. The above parallel implementation method can connect multiple voltage division resistors with preset resistance values in series through a cable in sequence, and the first switch 121 or the second switch 122 is connected in parallel to the corresponding voltage division resistor. The triggering of the electronic device 200 independently controls the blocking of the corresponding first switch 121 or second switch 122 to obtain the corresponding preset first voltage division value and second voltage division value. It has strong scalability and effectively simplifies the circuit setting. Second, referring to Figure 6 , when the first resistor 111 and the first switch 121 of each cabinet cell 100 are in series, and the second resistor 112 and the second switch 122 are in series, the electronic device 200 triggers the first switch 121 and the second switch 122 in the cabinet cell 100, so that the first resistor 111 and the second resistor 112 are conducted to obtain a preset first voltage division value and second voltage division value. In the above series implementation method, each cabinet cell 100 is set by an independent cable, and each cable is correspondingly provided with a first switch 121 and a first resistor 111 or a second switch 122 and a second resistor 112. The circuit of each cabinet cell 100 is independent and clear, and the user can accurately find the corresponding circuit according to the corresponding cabinet cell 100, which is convenient for the user's maintenance and replacement.
[0071] Referring to Figure 5 and Figure 6 , in this embodiment, the cabinet body 10 includes a plurality of cabinet cells 100 arranged vertically and horizontally. Each cabinet cell 100 is connected in series between the source terminal 130 and the ground terminal 140 through a bus. The first resistor 111 and the first switch 121 of each cabinet cell 100 are in parallel, and the second resistor 112 and the second switch 122 of each cabinet cell 100 are in parallel.
[0072] Specifically, referring to Figure 7 , the cabinet body 10 includes 9 cabinet cells 100. The 9 cabinet cells 100 are arranged in a vertical and horizontal array. The 9 cabinet cells 100 include 3 layers, and each layer includes 3 cabinet cells 100. The 3 cabinet cells 100 of each layer are connected in series between the source terminal 130 and the ground terminal 140 through a bus. The 3 cabinet cells 100 in each column are also connected in series between the source terminal 130 and the ground terminal 140 through a bus. Among them, the source terminal 130 has a plurality of pins to be used for connecting the buses of multiple layers and multiple columns to provide a constant voltage.
[0073] Among them, the cabinet cell 100 is as Figure 5As shown by the dashed lines, the resistance values of the first resistors 111 corresponding to each row of cabinet cells 100 and the second resistors 112 corresponding to each column of cabinet cells 100 are configured according to preset resistance values to obtain a preset voltage division value, thereby generating a preset node address. Specifically, the resistance values of the first resistors 111 corresponding to each row of cabinet cells 100 and the second resistors 112 corresponding to each column of cabinet cells 100 are configured and combined in sequence according to preset values, so that the preset voltage division values obtained when the detection end 150 is triggered by the first switch 121 and the second switch 122 respectively satisfy the distribution: 2 n *k, where n is a natural number and k is a standard coefficient.
[0074] In this embodiment, the resistance value of the first resistor 111 corresponding to each row of cabinet cells 100 can be configured as a preset value, so that when the first switch 121 is triggered and the corresponding first resistor 111 is blocked, preset voltage division values: 1k, 2k, 4k, 8k... are obtained, and then the obtained voltage division values 1k, 2k, 4k, 8k... are converted into corresponding partial preset addresses 1, 2, 4, 8. Similarly, the resistance value of the second resistor 112 corresponding to each column of cabinet cells 100 can be configured as a preset value, so that when the second switch 122 is triggered and the corresponding first resistor 111 is blocked, preset voltage division values: 1k, 2k, 4k, 8k... are obtained, and then the obtained voltage division values 1k, 2k, 4k, 8k... are converted into corresponding partial preset addresses 1, 2, 4, 8. Then, the partial preset addresses obtained from each row of cabinet cells 100 and each column of cabinet cells 100 are integrated into a preset node address: 11, 12, 14, 18... 21, 22, 24, 28... 41, 42, 44, 48... 81, 82, 84, 88....
[0075] Reference Figure 4 , step S230: Generating the node address of the cabinet cell 100 according to the first voltage division value and the second voltage division value includes:
[0076] Step S232: Turn on the first switch 121 and the second switch 122 to input a constant voltage current to the source end 130.
[0077] Specifically, by setting a pull-up resistor 160 with a fixed resistance value inside the source end 130 or between the source end 130 and the detection end 150, and then configuring a voltage division resistor with a corresponding resistance value, so that the voltage division value obtained by the detection end 150 satisfies 2 n *k.
[0078] For example, when the voltage input by the source terminal 130 is 10V and the pull-up resistor 160, that is, the series resistor is configured as 10Ω, and when the corresponding parallel resistors are configured as 1.11Ω, 2.5Ω, 6.67Ω, and 40Ω, the corresponding output divided voltages of 1V, 2V, 4V, and 8V can be obtained at the detection terminal 150. That is, at this time, the first resistor 111 corresponding to each row of cells 100 and the second resistor 112 corresponding to each column of cells 100 can be configured as 1.11Ω, 2.5Ω, 6.67Ω, and 40Ω in sequence.
[0079] In this embodiment, by setting a unified source terminal 130 and a detection terminal 150, a constant detection voltage is output to each cell 100 by the source terminal 130 respectively. The first resistor 111 and the second resistor 112 are connected in series in sequence, and the corresponding first switch 121 and second switch 122 are connected in parallel through a unified bus to realize the independent control of the corresponding first resistor 111 and second resistor 112. Then, the first resistor 111 and the second resistor 112 are set in one-to-one correspondence with the cell 100. Only one addressing circuit is needed to generate the address of the cell 100. Compared with setting an independent addressing circuit for each cell 100 (such as Figure 6 described), the circuit design is greatly simplified, the failure rate is reduced, and at the same time, it has strong scalability. Only by connecting voltage-dividing resistors with preset resistance values in series according to different numbers of cells 100 in sequence, there is no need for repeated wiring.
[0080] Step S234: Obtain the first divided voltage value between the source terminal 130 and the first resistor 111 corresponding to any cell 100 when the first switch 121 is blocked by the electronic device 200, and obtain the second divided voltage value between the source terminal 130 and the second resistor 112 corresponding to any cell 100 when the second switch 122 is blocked by the electronic device 200, so as to generate the node address corresponding to the cell 100 respectively.
[0081] In this embodiment, by configuring voltage-dividing resistors with preset resistance values, when the switches of different cells 100 are opened, the divided voltage values detected by the detection terminal 150 satisfy 2 n *k, so that the corresponding generated addresses satisfy 2 n , that is, 1, 2, 4, 8. It not only realizes the generation of corresponding addresses when the switches of different cells 100 are independently opened respectively, but also ensures the detection when multiple switches in the addressing circuit are opened simultaneously. For example, in actual use, it is possible that multiple cells 100 are put into the electronic device 200 at the same time, or before a certain cell 100 is put into the electronic device 200, one or more electronic devices 200 have been put into the cabinet 10. As long as it is ensured that the divided voltage value detected by the detection terminal 150 satisfies 2 n *k, the generation of unique addresses in different situations can be realized.
[0082] For example, when the cabinet body 100 includes the cabinet compartments A, B, C, and D on the same layer or in the same column, when it is detected that:
[0083] When the voltage division value is 1k, it means that only the cabinet compartment A is put into the electronic device 200 to be triggered, generating the address 1;
[0084] When the voltage division value is 2k, it means that only the cabinet compartment B is put into the electronic device 200 to be triggered, generating the address 2;
[0085] When the voltage division value is 4k, it means that only the cabinet compartment C is put into the electronic device 200 to be triggered, generating the address 4;
[0086] When the voltage division value is 8k, it means that only the cabinet compartment D is put into the electronic device 200 to be triggered, generating the address 8;
[0087] When the voltage division value is 3k, it means that the cabinet compartments A and B are put into the electronic device 200 to be triggered, generating the addresses 1 and 2;
[0088] When the voltage division value is 5k, it means that the cabinet compartments A and C are put into the electronic device 200 to be triggered, generating the addresses 1 and 4;
[0089] When the voltage division value is 6k, it means that the cabinet compartments B and C are put into the electronic device 200 to be triggered, generating the addresses 2 and 4;
[0090] When the voltage division value is 7k, it means that the cabinet compartments A, B, and C are put into the electronic device 200 to be triggered, generating the addresses 1, 2, and 4;
[0091] When the voltage division value is 9k, it means that the cabinet compartments A and D are put into the electronic device 200 to be triggered, generating the addresses 1 and 8;
[0092] When the voltage division value is 10k, it means that the cabinet compartments B and D are put into the electronic device 200 to be triggered, generating the addresses 2 and 8;
[0093] When the voltage division value is 11k, it means that the cabinet compartments A, B, and D are put into the electronic device 200 to be triggered, generating the addresses 1, 2, and 8;
[0094] When the voltage division value is 12k, it means that the cabinet compartments C and D are put into the electronic device 200 to be triggered, generating the addresses 4 and 8;
[0095] When the voltage division value is 13k, it means that the cabinet compartments A, C, and D are put into the electronic device 200 to be triggered, generating the addresses 1, 4, and 8;
[0096] When the voltage division value is 14k, it means that the cabinet compartments B, C, and D are put into the electronic device 200 to be triggered, generating the addresses 2, 4, and 8;
[0097] When the voltage division value is 15k, it means that the cabinet compartments A, B, C, and D are triggered by the electronic device 200 being placed in them, generating addresses 1, 2, 4, and 8;
[0098] In this embodiment, by configuring voltage division resistors with preset resistance values, when the switches of different cabinet compartments 100 are opened, the voltage division values detected by the detection end 150 satisfy 2 n *k, so that the corresponding generated addresses satisfy 2 n , achieving that each corresponding voltage division value represents a uniquely combined cabinet compartment 100 being triggered by the electronic device 200, thus ensuring the validity of the corresponding generated addresses.
[0099] Embodiment Two
[0100] In this embodiment, a cabinet body 10 is provided. The cabinet body 10 includes at least one cabinet compartment 100, an address generation module, and a calibration module. The cabinet compartment 100 includes an addressing circuit 110 and a switch structure 120. The switch structure 120 includes electrical components that can conduct or interrupt the addressing circuit 110.
[0101] The address generation module is used to generate the node address of the cabinet compartment 100 through the addressing circuit 110 when the switch structure 120 is triggered by the electronic device 200 placed in the cabinet compartment 100.
[0102] Specifically, each cabinet compartment 100 is provided with a corresponding switch structure 120, and the electrical components of the switch structure 120 provided in each cabinet compartment 100 can conduct or interrupt the addressing circuit 110 to generate different node addresses. It can be understood that the cooperation between the switch structure 120 and the addressing circuit 110 of each cabinet compartment 100 is different, so that when the switch structure 120 is triggered by the electronic device 200 placed in any cabinet compartment 100, the node address of the current cabinet compartment 100 can be intelligently obtained, improving the timeliness of generating the node address and having relatively high efficiency.
[0103] The calibration module is used to establish the association between the electronic device 200 and the cabinet compartment 100 according to the node address.
[0104] Specifically, after the node address is generated, the association between the cabinet compartment 100 and the current electronic device 200 is established according to the node address, that is, the association between the electronic device 200 and the cabinet compartment 100 is realized. Among them, the electronic device 200 can be a device with data reading function. For example, a weighing sensor, an RFID reader, etc. are devices that can read the items stored inside the cabinet compartment 100. The weighing sensor is used to read the weighing data of the items, and the RFID reader is used to read the label information of the items. Taking the weighing sensor as an example, when the weighing sensor is placed in the cabinet compartment 100 to trigger the switch structure 120 of the current cabinet compartment 100, the cabinet body 10 generates a node address and establishes the association between the weighing sensor and the cabinet compartment 100 according to the node address.
[0105] In this embodiment, by opening or closing the switch structure 120 through the electronic device 200, the node address of the current cabinet compartment 100 is instantaneously generated or removed through the addressing circuit 110, without having to search for the node address of the corresponding cabinet compartment 100 among the node addresses preset in the system, improving the efficiency of the cabinet body 10 in addressing the cabinet compartment 100 and reducing the time for the cabinet body 10 to address the cabinet compartment 100.
[0106] In this embodiment, there are multiple electronic devices 200. Each electronic device 200 includes a sensing module and a communication module. The sensing module is used to collect the status data of the items in the cabinet body 10 and send it to the cabinet body 10 through the communication module. The cabinet body 10 further includes:
[0107] A data processing module, which is used to receive the status data sent by the electronic device 200 and the identification data of the corresponding electronic device 200.
[0108] Specifically, each electronic device 200 has unique identification data and includes a sensing module and a communication module. The sensing module is used to collect the status data of the items in the cabinet body 10. Among them, the status data is the data collected when the electronic device 200 reads the items in the cabinet. When the electronic device 200 includes a weighing sensor, the status data is weighing data. When the electronic device 200 includes an RFID reader / writer, the status data is tag data. Specifically, taking the weighing sensor as an example, the user places the weighing sensor in any cabinet compartment 100. The weighing sensor triggers the switch structure 120 inside the cabinet compartment 100, so that the cabinet body 10 generates a corresponding node address, and establishes the association between the electronic device 200 and the cabinet compartment 100 according to the node address. When the sensing module of the weighing sensor collects the weighing data in the cabinet, the communication module sends the weighing data to the cabinet body 10. The cabinet body 10 uploads the weighing data in an associated manner with the node address, that is, the node address of the cabinet body 10 can be known according to the associated weighing data, and the weighing data stored in the cabinet compartment 100 corresponding to the current node address can be known.
[0109] A calibration module, which is further used to establish the association between the node address and the identification data. Specifically, the calibration module is used to establish the association between the corresponding electronic device 200 and the cabinet compartment 100 according to the node address and the identification data.
[0110] Specifically, after the node address is generated, it is associated with the received identification data to implement the association between the electronic device 200 and the cabinet compartment 100. The association can be achieved without performing operations on or relaying the node address, and the timeliness of the association is relatively strong. It can be understood that after the electronic device 200 is associated with the cabinet compartment 100, the current node address of the cabinet compartment 100 can be determined through the received status data. It can be understood that a display device 300 is further included. Each cabinet compartment 100 is provided with a corresponding display device 300. The display device 300 is electrically connected to the cabinet compartment 100, and the obtained status data can be uploaded to the display device 300 of the corresponding cabinet compartment 100 according to the node address of the cabinet compartment 100, which is beneficial for the user to read the status of the items inside the current cabinet compartment 100.
[0111] In this embodiment, the addressing circuit 110 includes a first resistor 111, a second resistor 112, a source terminal 130, and a ground terminal 140. The switch structure 120 includes a first switch 121 and a second switch 122. The first resistor 111 and the second resistor 112 are respectively connected to the source terminal 130. One end of the first switch 121 is connected to the first resistor 111 to conduct or block the first resistor 111, and one end of the second switch 122 is connected to the second resistor 112 to conduct or block the second resistor 112. The other ends of the first switch 121 and the second switch 122 are respectively connected to the ground terminal 140. The address generation module is further configured to obtain a first voltage division value between the first resistor 111 and the source terminal 130 when the first switch 121 is conducted by the electronic device 200, and obtain a second voltage division value between the second resistor 112 and the source terminal 130 when the second switch 122 is conducted by the electronic device 200, and then generate the node address of the cabinet compartment 100 according to the first voltage division value and the second voltage division value.
[0112] Specifically, when the electronic device 200 is placed inside the cabinet compartment 100, the first switch 121 is conducted by the electronic device 200 to generate a first voltage division value between the first resistor 111 and the source terminal 130, and the second switch 122 is conducted by the electronic device 200 to generate a second voltage division value between the second resistor 112 and the source terminal 130. The obtained first voltage division value and second voltage division value are converted into corresponding preset addresses a and b, and the corresponding preset addresses a and b are integrated to generate a preset node address ab of the cabinet compartment 100. It can be understood that the preset node address ab is formed by integrating the preset addresses converted from the first voltage division value and the second voltage division value. Among them, the preset address a of the first voltage division value can correspond to the first digit, and the preset address b of the second voltage division value can correspond to the second digit to integrate and form the preset node address ab. It is also possible to correspond the preset address a of the first voltage division value to the second digit and the preset address b of the second voltage division value to the first digit to integrate and form the preset node address ba. The above integration method of the preset address can be preset in advance to make the preset node address match the actual arrangement order of the cabinet compartments.
[0113] In this embodiment, the cabinet 10 includes a plurality of compartments 100 arranged vertically and horizontally. Each compartment 100 is connected in series between the source terminal 130 and the ground terminal 140 through a bus. The first resistor 111 and the first switch 121 of each compartment 100 are connected in parallel, and the second resistor 112 and the second switch 122 of each compartment 100 are connected in parallel. The address generation module is further configured to turn on the first switch 121 and the second switch 122 to input a constant voltage current to the source terminal 130, and obtain a first voltage division value between the source terminal 130 and the first resistor 111 corresponding to any compartment 100 when the first switch 121 is blocked by the electronic device 200, and obtain a second voltage division value between the source terminal 130 and the second resistor 112 corresponding to any compartment 100 when the second switch 122 is blocked by the electronic device 200, so as to generate the node address corresponding to the compartment 100 respectively.
[0114] Specifically, in combination with Figure 7 , the cabinet 10 includes 9 compartments 100. The 9 compartments 100 are arranged in a vertical and horizontal array. The 9 compartments 100 include 3 layers, and each layer includes 3 compartments 100. The 3 compartments 100 in each layer are connected in series between the source terminal 130 and the ground terminal 140 through a bus. The 3 compartments 100 in each column are also connected in series between the source terminal 130 and the ground terminal 140 through a bus. The source terminal 130 has a plurality of pins for connecting the buses of multiple layers and multiple columns to provide a constant voltage.
[0115] Among them, the compartment 100 is as shown by the Figure 5 dotted line. The resistance values of the first resistors 111 corresponding to each row of compartments 100 and the second resistors 112 corresponding to each column of compartments 100 are configured according to a preset resistance value to obtain a preset voltage division value, so as to generate a preset node address. Specifically, the resistance values of the first resistors 111 corresponding to each row of compartments 100 and the second resistors 112 corresponding to each column of compartments 100 are configured and combined in sequence according to a preset value, so that the detection terminal 150 obtains a preset voltage division value that satisfies the distribution: 2 n *k, where n is a natural number and k is a standard coefficient.
[0116] In this embodiment, the resistance value of the first resistor 111 corresponding to each row of cabinet cells 100 can be configured to a preset value, so that when the first switch 121 is triggered and the corresponding first resistor 111 is blocked, preset voltage division values: 1k, 2k, 4k, 8k... are obtained. Then, the obtained voltage division values 1k, 2k, 4k, 8k... are converted into corresponding partial preset addresses 1, 2, 4, 8. Similarly, the resistance value of the second resistor 112 corresponding to each column of cabinet cells 100 can be configured to a preset value, so that when the second switch 122 is triggered and the corresponding first resistor 111 is blocked, preset voltage division values: 1k, 2k, 4k, 8k... are obtained. Then, the obtained voltage division values 1k, 2k, 4k, 8k... are converted into corresponding partial preset addresses 1, 2, 4, 8. Then, the partial preset addresses obtained from each row of cabinet cells 100 and each column of cabinet cells 100 are integrated into preset node addresses: 11, 12, 14, 18... 21, 22, 24, 28... 41, 42, 44, 48... 81, 82, 84, 88...
[0117] Embodiment III
[0118] Reference Figure 8 , in this embodiment, a cabinet cell 100 addressing system for a cabinet body 10, the cabinet body 10 and electronic devices 200, where there are multiple electronic devices 200, and each electronic device 200 includes a corresponding sensing module and a communication module. The sensing module is used to collect the status data of the items in the cabinet body 10 and send it to the cabinet body 10 through the communication module.
[0119] Specifically, the cabinet body 10 can include cabinets with electrical components such as medicine cabinets and storage cabinets. The electronic device 200 can be a device with data reading function. For example, weighing sensors, RFID readers, etc. are devices that can read the items stored inside the cabinet cell 100. The weighing sensor is used to read the weighing data of the items, and the RFID reader is used to read the label information of the items. Taking the weighing sensor as an example, the user places the weighing sensor in any cabinet cell 100, and the weighing sensor triggers the switch structure 120 inside the cabinet cell 100, so that the cabinet body 10 generates a corresponding node address, and establishes the association between the electronic device 200 and the cabinet cell 100 according to the node address. When the sensing module of the weighing sensor collects the weighing data in the cabinet, the communication module sends the weighing data to the cabinet body 10, and the cabinet body 10 uploads the weighing data in association with the node address, that is, according to the associated weighing data, the node address of the cabinet body 10 can be known, and the weighing data stored in the cabinet cell 100 corresponding to the current node address can be known.
[0120] Specifically, the cabinet cell 100 includes an addressing circuit 110 and a switch structure 120. The switch structure 120 includes a first switch 121 and a second switch 122. When the first switch 121 and the second switch 122 are triggered by the electronic device 200 placed in the cabinet cell 100, a node address of the cabinet cell 100 is generated through the addressing circuit 110, and an association between the electronic device 200 and the cabinet cell 100 is established according to the node address.
[0121] The technical features of the above-described embodiments can be combined arbitrarily. For the sake of brevity of description, 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, it should be considered as the scope described in this specification.
[0122] The above-described embodiments only represent several implementation manners of the present application. The description is relatively specific and detailed, but it should not be construed as a limitation on the scope of the patent application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the appended claims.
Claims
1. A cabinet grid addressing method for a cabinet body, characterized in that, The cabinet body includes at least one cabinet compartment, the cabinet compartment includes an addressing circuit and a switching structure, the switching structure includes electrical components capable of conducting or interrupting the addressing circuit, wherein, the addressing circuit includes a first resistor, a second resistor, a source terminal and a ground terminal, the switching structure includes a first switch and a second switch, the first resistor and the second resistor are respectively connected to the source terminal, one end of the first switch is connected to the first resistor for conducting or blocking the first resistor, one end of the second switch is connected to the second resistor for conducting or blocking the second resistor, the other ends of the first switch and the second switch are respectively connected to the ground terminal, the method includes: When the switching structure is triggered by an electronic device placed in the cabinet compartment, generate a node address of the cabinet compartment through the addressing circuit; Establish an association between the electronic device and the cabinet compartment according to the node address; Wherein, the step of generating a node address of the cabinet compartment through the addressing circuit when the switching structure is triggered by an electronic device placed in the cabinet compartment includes: When the first switch is conducted by the electronic device, obtain a first voltage division value between the first resistor and the source terminal; When the second switch is conducted by the electronic device, obtain a second voltage division value between the second resistor and the source terminal; Generate a node address of the cabinet compartment according to the first voltage division value and the second voltage division value.
2. The cabinet grid addressing method according to claim 1, characterized in that, There are multiple electronic devices, each electronic device includes a sensing module and a communication module, the sensing module is used to collect status data of items in the cabinet body and send it to the cabinet body through the communication module, the step of establishing an association between the electronic device and the cabinet compartment according to the node address includes: When the addressing circuit is conducted by the switching structure, receive the status data sent by the electronic device and the identification data corresponding to the electronic device; Establish an association between the node address and the identification data; Correspondingly, the step of establishing an association between the electronic device and the cabinet compartment according to the node address specifically includes: Establish an association between the electronic device and the cabinet compartment corresponding to the node address and the identification data.
3. The cabinet grid addressing method according to claim 2, characterized in that, The cabinet body includes a plurality of the cabinet compartments arranged vertically and horizontally, each cabinet compartment is connected in series between the source terminal and the ground terminal through a bus, the first resistor and the first switch of each cabinet compartment are connected in parallel, the second resistor and the second switch of each cabinet compartment are connected in parallel, the step of generating a node address of the cabinet compartment according to the first voltage division value and the second voltage division value includes: Conduct the first switch and the second switch to input a constant voltage current to the source terminal; When the first switch is blocked by the electronic device, obtain a first voltage division value between the source terminal and the first resistor corresponding to any one of the cabinet compartments, and when the second switch is blocked by the electronic device, obtain a second voltage division value between the source terminal and the second resistor corresponding to any one of the cabinet compartments, so as to generate a node address corresponding to the cabinet compartment respectively.
4. A cabinet, characterized in that, Include: At least one cabinet compartment, the cabinet compartment including an addressing circuit and a switching structure, the switching structure including electrical components capable of conducting or interrupting the addressing circuit, wherein the addressing circuit includes a first resistor, a second resistor, a source terminal and a ground terminal, the switching structure includes a first switch and a second switch, the first resistor and the second resistor are respectively connected to the source terminal, one end of the first switch is connected to the first resistor for conducting or blocking the first resistor, one end of the second switch is connected to the second resistor for conducting or blocking the second resistor, and the other ends of the first switch and the second switch are respectively connected to the ground terminal; An address generation module, configured to generate a node address of the cabinet compartment through the addressing circuit when the switching structure is triggered by an electronic device placed in the cabinet compartment; the address generation module is further configured to, when the first switch is conducted by the electronic device, obtain a first voltage division value between the first resistor and the source terminal, and when the second switch is conducted by the electronic device, obtain a second voltage division value between the second resistor and the source terminal, and then generate the node address of the cabinet compartment according to the first voltage division value and the second voltage division value; A calibration module, configured to establish an association between the electronic device and the cabinet compartment according to the node address.
5. The cabinet according to claim 4, characterized in that, There are multiple of the electronic devices, each electronic device including a sensing module and a communication module, the sensing module being configured to collect status data of the items in the cabinet and send the status data to the cabinet through the communication module, and the cabinet further includes: A data processing module, configured to receive the status data sent by the electronic device and the identification data corresponding to the electronic device; The calibration module is further configured to establish an association between the node address and the identification data, wherein the calibration module is specifically configured to establish an association between the corresponding electronic device and the cabinet compartment according to the node address and the identification data.
6. The cabinet according to claim 5, wherein, The cabinet includes a plurality of the cabinet compartments arranged in a vertical and horizontal manner, each cabinet compartment being connected in series between the source terminal and the ground terminal through a bus, the first resistor and the first switch of each cabinet compartment being in parallel, the second resistor and the second switch of each cabinet compartment being in parallel, and the address generation module is further configured to conduct the first switch and the second switch to input a constant voltage current to the source terminal, obtain a first voltage division value between the source terminal and the first resistor corresponding to any one of the cabinet compartments when the first switch is blocked by the electronic device, and obtain a second voltage division value between the source terminal and the second resistor corresponding to any one of the cabinet compartments when the second switch is blocked by the electronic device, so as to generate the node addresses corresponding to the cabinet compartments respectively.
7. A cabinet grid addressing system for a cabinet body, characterized in that, Including the cabinet as described in any one of claims 4-6 and the electronic device.
8. The cabinet grid addressing system according to claim 7, wherein There are multiple of the electronic devices, each electronic device including a corresponding sensing module and a communication module, the sensing module being configured to collect status data of the items in the cabinet and send the status data to the cabinet through the communication module.
Citation Information
Patent Citations
Electronic unit for storage cabinet and electronic storage system
CN215072485U