Configuration method of drawer with multiple medicine boxes and drawer
By designing a detachable and connected fence and detection system in the drawer of the medicine grid, the dynamic size setting and automatic identification of specification parameters of the medicine grid are solved, and the problem of mismatch between the medicine specifications and the grid size is improved, and the efficiency of drug storage and distribution is improved. accuracy.
Patent Information
- Application Number
- CN202411268769.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-11
- Publication Date
- 2025-01-10
AI Technical Summary
The lattice structure in the existing drug grid drawer is fixed, which causes the drug specifications to not be placed or removed correctly when the size of the lattice does not match the size of the lattice, which affects the storage effect and distribution efficiency. Dynamic adjustment of the lattice structure requires frequent reconfiguration of specification parameters, which is time-consuming and labor-intensive and prone to errors. .
By designing a detachable and connected fence, a dynamic medicine grid cell area is formed, and fence in-position detection is performed using detection circuits and processors, and the row position data and column position data of the medicine grid are automatically identified and configured to realize dynamic setting of the size of the medicine grid. and specification parameters are automatically identified.
It realizes the dynamic size setting and automatic identification of specification parameters of the drug grid, improves the efficiency of drug storage and distribution, reduces the complexity and error rate of the configuration process, and meets the storage needs of different types and quantities of drugs.
Smart Images

Figure CN119279347A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of medical technology, and in particular to a configuration method and a drawer of multiple medicine boxes. Background Art
[0002] In the current medical industry, drug management is an important link to ensure the safety of patients' medication and the therapeutic effect. As an important tool for drug storage and distribution, the rationality of the design and functionality of the medicine grid have a direct impact on the efficiency of medical work. However, in the prior art, the grid structure of the medicine grid formed in the drawer is usually fixed, which greatly restricts its use. For example, when the specifications of the drugs to be stored do not match the grid size of the medicine grid, the drugs may not be placed or taken out correctly, thereby affecting the storage effect and distribution efficiency of the drugs. For example, due to the fixed number and arrangement of the grids, the medicine grid is stretched when storing drugs of different types and quantities, and it is difficult to meet the needs of actual work. If the grid structure of the medicine grid is set to be dynamic, it is necessary to reconfigure the specification parameters of the medicine grid (such as position information, size information, etc.) after each adjustment and re-manage it with the system, which is laborious and error-prone. Therefore, how to realize the dynamic setting of the size of the medicine grid and the automatic recognition of the specification parameters of the medicine grid is a technical problem that needs to be solved urgently. Summary of the invention
[0003] The main purpose of the embodiments of the present application is to propose a configuration method and drawer of multiple medicine boxes, aiming to dynamically set the size of the medicine grid and realize automatic identification of the specification parameters of the medicine grid.
[0004] To achieve the above-mentioned purpose, a first aspect of an embodiment of the present application proposes a configuration method for a multi-medicine box drawer, which is applied to a drawer, wherein the drawer includes a drawer body and a plurality of fences, wherein a bottom plate of the drawer body is defined as N rows and M columns to form N*M medicine grid unit areas, and any two fences can be detachably connected, and each fence is arranged on the boundary of a corresponding medicine grid unit area; the plurality of fences separate the drawer body into at least one medicine grid; the method includes:
[0005] Perform fence in-place detection on the boundaries of the N*M medicine grid unit areas to determine the row position data and column position data of each medicine grid;
[0006] According to the row position data and column position data of each medicine grid, the specification parameters of the corresponding medicine grid are configured.
[0007] To achieve the above-mentioned purpose, a second aspect of an embodiment of the present application provides a drawer, the drawer comprising:
[0008] A drawer body, wherein the bottom plate of the drawer body is defined as N rows and M columns and forms N*M medicine grid unit areas;
[0009] A plurality of fences, each end of which can be detachably connected to the surrounding edge of the drawer body and any two ends of the fences can be detachably connected, and the first side of each fence is correspondingly arranged on the boundary of a medicine grid unit area; the plurality of fences separate the drawer body into at least one medicine grid;
[0010] A control module, wherein the control module includes a processor and a detection circuit, wherein the detection circuit is used to detect the in-place status of each fence, the processor is electrically connected to the detection circuit, and the processor is used to execute the method described in the first aspect.
[0011] To achieve the above objectives, a third aspect of an embodiment of the present application proposes an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method described in the first aspect is implemented.
[0012] To achieve the above-mentioned purpose, the fourth aspect of an embodiment of the present application proposes a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.
[0013] In the above-mentioned embodiment of the present application, the fence is detachably connected to the edge of the drawer body, and any two fences are also set to be detachably connected. By defining the drawer body as N rows and M columns, medicine grids of different sizes can be formed in the drawer body by adjusting the boundary position of the fence in the medicine grid unit area and the enclosure relationship of the fence. And by performing in-situ detection of the fence on the boundary of each medicine grid unit area, the row position data and column position data of each medicine grid can be determined, and then the medicine grid and the parameters related to the specifications such as the size of the medicine grid can be located according to the row position data and the column position data, so as to realize automatic identification of the medicine grid. Therefore, compared with the related art, the embodiment of the present application can realize the dynamic setting of the size of the medicine grid and the automatic identification of the specification parameters of the medicine grid. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 It is a structural schematic diagram of an embodiment of a drawer provided by the present application;
[0015] Figure 2 is a schematic diagram of a drawer body in one embodiment of the drawer provided by the present application;
[0016] Figure 3a is a schematic diagram of a fence in an embodiment of a drawer provided by the present application;
[0017] Figure 3b yes Figure 3a An enlarged schematic diagram of a part A of the middle fence;
[0018] Figure 3c yes Figure 3a A structural diagram of the middle fence from another perspective;
[0019] Figure 3d It is a structural schematic diagram of an embodiment of the connection of multiple fences in a drawer provided by the present application;
[0020] Figure 3e yes Figure 3d An enlarged schematic diagram of a local D in FIG.
[0021] Figure 4a It is a structural schematic diagram of another embodiment of the connection of two fences in a drawer provided by the present application;
[0022] Figure 4b yes Figure 4a A magnified schematic diagram of the part B in the middle;
[0023] Figure 4c yes Figure 4a A schematic diagram of the structure of the connecting piece connecting two fences;
[0024] Figure 4d yes Figure 4c A magnified schematic diagram of the local C in the middle;
[0025] Figure 5a is a schematic diagram of the circuit principle of the processor in the drawer provided by the present application;
[0026] Figure 5b It is a circuit principle schematic diagram of the sensor power supply control circuit in the drawer provided by the present application;
[0027] Figure 5c It is a schematic diagram of the circuit principle of the detection circuit where the induction element in the drawer provided by the present application is located;
[0028] Figure 6a It is a circuit principle schematic diagram of the indicator light display circuit in the drawer provided by the present application;
[0029] Figure 6b It is a circuit principle schematic diagram of a light source power supply circuit connected to an indicator light display circuit in a drawer provided by the present application;
[0030] Figure 6c It is a schematic diagram of the circuit principle of the connection terminal between the indicator light control branch in the drawer and the processor provided by the present application;
[0031] Figure 7 It is a flowchart of a configuration method of a multi-medicine box drawer provided by the present application;
[0032] Figure 8is an example diagram of a drawer of the configuration method of the multi-medicine box drawer provided by the present application;
[0033] Fig. 9 is another example diagram of a drawer of the configuration method of the multi-medicine box drawer provided by the present application;
[0034] Fig.10 This is a schematic diagram of the deployment of the sensing element in the drawer body in one embodiment of the configuration method of the multi-medicine box drawer provided by the present application;
[0035] Fig.11 This is a schematic diagram of power supply of an induction component in one embodiment of a configuration method of a multi-medicine box drawer provided by the present application;
[0036] Fig.12 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application.
[0037] Reference numerals:
[0038] Drawer 10,
[0039] Medicine box assembly 100,
[0040] fence 1000, first fence 1100, second fence 1200, third fence 1300, fourth fence 1400,
[0041] Connector 10000, body 11000, polyhedral cylinder 11100, first surface 11110, second surface 11120, third surface 11130, rounded curved surface 11140, connecting end 12000, first connecting end 12100, cam 12110, second connecting end 12200, groove 12210, rotation limiting portion 13000,
[0042] Partition 20000, mounting portion 21000,
[0043] Medicine Grid 110,
[0044] Drawer body 200 , accommodating cavity 210 , bottom plate 220 , sensing element 221 , and light emitting element 222 . DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0046] It should be noted that, although the functional modules are defined in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module definition in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0047] 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 are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0048] In the current medical industry, drug management is an important link to ensure the safety of patients' medication and the therapeutic effect. As an important tool for drug storage and distribution, the rationality of the design and functionality of the medicine grid have a direct impact on the efficiency of medical work. However, in the prior art, the grid structure of the medicine grid formed in the drawer is usually fixed, which greatly restricts its use. For example, when the specifications of the drugs to be stored do not match the grid size of the medicine grid, the drugs may not be placed or taken out correctly, thereby affecting the storage effect and distribution efficiency of the drugs. For example, due to the fixed number and arrangement of the grids, the medicine grid is stretched when storing drugs of different types and quantities, and it is difficult to meet the needs of actual work. If the grid structure of the medicine grid is set to be dynamic, it is necessary to reconfigure the specification parameters of the medicine grid (such as position information, size information, etc.) after each adjustment and re-manage it with the system, which is laborious and error-prone. Therefore, how to realize the dynamic setting of the size of the medicine grid and the automatic recognition of the specification parameters of the medicine grid is a technical problem that needs to be solved urgently. Based on this, the embodiments of the present application provide a configuration method, drawer, device and storage medium for a multi-medicine box drawer, which dynamically sets the size of the medicine grid and automatically identifies the specification parameters of the medicine grid.
[0049] The configuration method, drawer, device and storage medium of the multiple medicine box drawer provided in the embodiments of the present application are specifically described through the following embodiments. First, the configuration method of the multiple medicine box drawer in the embodiments of the present application is described.
[0050] The configuration method of multiple medicine box drawers provided in the embodiment of the present application relates to the field of medical technology. In the embodiment of the present application, the above method can be implemented by controlling the drawer through a management terminal, and the management terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.; the management terminal can be configured with a server, and the server side can be configured as an independent physical server, or a server cluster or distributed system composed of multiple physical servers, and can also be configured as a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the configuration method of multiple medicine box drawers is software applied to the management terminal, and the software can be an application that implements the configuration method of multiple medicine box drawers, etc., but is not limited to the above forms.
[0051] Understandably, referring to Figure 1 and Figure 2 As shown, according to a drawer 10 proposed in an embodiment of the present application, the drawer 10 includes:
[0052] The drawer body 200, the bottom plate 220 of the drawer body 200 is defined as N rows and M columns and forms N*M medicine grid unit areas;
[0053] A plurality of fences 1000, each end of which can be detachably connected to the surrounding edge of the drawer body 200 and the ends of any two fences 1000 can be detachably connected, and the first side of each fence 1000 is correspondingly arranged on the boundary of a medicine grid unit area; the plurality of fences 1000 separate the drawer body 200 to form at least one medicine grid 110;
[0054] The control module includes a processor and a detection circuit, the detection circuit is used to detect the in-place status of each fence 1000, the processor is electrically connected to the detection circuit, and the processor is used to perform fence 1000 in-place detection on the boundaries of N*M medicine grid unit areas according to the detection results of the detection circuit, and determine the row position data and column position data of each medicine grid 110 separated and formed in the drawer body 200; output specification parameters according to the row position data and column position data of each medicine grid 110.
[0055] For example, Figure 1 As shown, the bottom plate 220 of the drawer body 200 is defined as a medicine grid unit area with 8 rows and 6 columns, and a plurality of fences 1000 are provided, forming 3 medicine grids 110 spliced by 4 medicine grid unit areas, 2 medicine grids 110 spliced by 2 medicine grid unit areas, and 32 medicine grids 110 of the size of a medicine grid unit area. Each fence 1000 is correspondingly arranged on a row boundary or a column boundary of a medicine grid unit area. Figure 1As shown, a plurality of fences 1000 enclosing medicine grids 110 of different shapes and sizes form a set of medicine box assemblies 100 .
[0056] It is understandable that a sensor (such as a distance sensor, a Hall sensor, etc.) is provided on the boundary of the medicine grid unit area, and the sensor is used to detect the in-position state of the fence 1000. For example, refer to Figure 2 As shown, the sensing element on the drawer body 200 is arranged along the boundary of the medicine grid unit area.
[0057] Understandably, referring to Figure 3a and Figure 3b As shown, the fence 1000 includes a partition 20000 and a connecting member 10000, and the connecting member 10000 is arranged at the end of the partition 20000. Figure 3b As shown, the connecting member 10000 includes a main body 11000 and a plurality of connecting ends 12000, some of the connecting ends 12000 protrude or recess from the main body 11000 toward a first direction, and some of the connecting ends 12000 protrude or recess from the main body 11000 toward a second direction, and the plurality of connecting members 10000 are interlocked with each other through corresponding connecting ends 12000; a partition 20000 extends from the main body 11000 toward a third direction, and a trigger member corresponding to the sensing member is arranged on the partition 20000. By protruding or recessing the connection ends 12000 of different connectors 10000 in different directions, the connection ends 12000 of multiple connectors 10000 are interlocked with each other through protrusions and recesses to connect, so that when the connector 10000 is connected to the corresponding partition 20000, each partition 20000 can follow the multiple different connection directions of the connection end 12000 of the connector 10000 and remain in a specific position area. With the increase or decrease in the number of connectors 10000 and the corresponding connected partitions 20000, the physical form of the combination of multiple partitions 20000 can be dynamically changed. And by simply installing or removing the trigger and the sensor 221, it can be conveniently adapted to different usage requirements.
[0058] In some embodiments, Figure 3bAs shown, the body 11000 includes a polyhedral column 11100, the connecting end 12000 includes a first connecting end 12100 and a second connecting end 12200, the polyhedral column 11100 includes a first surface 11110 and a second surface 11120, the first connecting end 12100 protrudes or recesses from the first surface 11110 toward the first direction W1, and the second connecting end 12200 protrudes or recesses from the second surface 11120 toward the second direction W2, so as to connect another connecting member 10000. Through the first connecting end 12100 and the second connecting end 12200, the connection function from two different directions (the first direction W1 and the second direction W2) is realized. This design significantly enhances the versatility of the connecting member 10000, so that it can adapt to more complex assembly scenarios.
[0059] In some embodiments, the first connecting end 12100 includes a cam 12110, the second connecting end 12200 includes a groove 12210, and the polyhedral cylinder 11100 further includes a third surface 11130. Figure 3b As shown, the partition 20000 extends from the third surface 11130 toward the third direction W3, and the cam 12110 is engaged in the groove 12210 of another connecting member 10000 to connect at least two partitions 20000.
[0060] In some embodiments, the cam 12110 can be configured as an eccentric cam, and the groove 12210 can be configured as an eccentric groove. The cam 12110 and the groove 12210 are engaged, and the first surface 11110 or the second surface 11120 of one connecting member 10000 abuts against the first surface 11110 or the second surface 11120 of the other connecting member 10000. The configuration of the eccentric cam and the eccentric groove makes the connection between the connecting members 10000 directional. Only in the correct direction can the eccentric cam be smoothly embedded in the eccentric groove, and the connection cannot be completed in the opposite direction, thereby effectively preventing the occurrence of reverse insertion.
[0061] Among them, in other embodiments, the cam 12110 can be set as a symmetrical cam; the groove 12210 is set as a symmetrical groove. Due to the structural symmetry of the cam 12110 and the groove 12210, the connection between the connectors 10000 becomes relatively simple. Whether it is the cam 12110 or the groove 12210, there is no need to distinguish a specific direction or position, thereby reducing the possibility of installation errors. At the same time, the design of the symmetrical cam and the symmetrical groove makes the entire structure geometrically symmetrical. This symmetry not only makes the structure more beautiful, but also simplifies the design and manufacturing process. By reducing unnecessary complexity and asymmetrical elements, production efficiency can be improved and costs can be reduced. At the same time, in some embodiments, in order to achieve the anti-reverse insertion effect of the symmetrical cam and the symmetrical groove, the bottom surface area of the symmetrical cam can be larger than the top surface, or the top surface area of the symmetrical cam can be larger than the bottom surface. Since the bottom surface area of the symmetrical cam is larger than the top surface area, or the top surface area of the symmetrical cam is larger than the bottom surface area, one of the connecting parts 10000 can only insert the end of the symmetrical cam with the smallest area into the end of the symmetrical groove with the largest area of the other connecting part 10000, thereby realizing the anti-reverse insertion function of the symmetrical cam and the symmetrical groove.
[0062] In some embodiments, Figure 3b As shown, the connector 10000 connected to the partition 20000 further includes a rotation stopper 13000, which protrudes or is recessed outward from the corresponding body 11000 or the connection end 12000. The rotation stopper 13000 prevents the connector 10000 from rotating after being connected, thereby improving the moment resistance of the connector 10000 after being connected, thereby improving the connection strength between the multiple partitions 20000, and thus improving the stability and reliability of the medicine grid 110.
[0063] In some embodiments, Figure 3c As shown, the partition 20000 includes a mounting portion 21000, and the mounting portion 21000 can be used to install a trigger member, which is used to indicate the installation status of the fence 1000, and / or indicate the installation direction of the fence 1000 or the connecting member 10000. In other embodiments, the mounting portion 21000 can also be connected to an indicator, and can also be used to detachably connect the fence 1000 and an external device. This design allows the fence 1000 to be easily integrated with other devices or systems, thereby improving the practicality and functionality of the fence 1000. Therefore, the mounting portion 21000 can intuitively display the installation status of the fence 1000. This helps to quickly check whether the fence 1000 has been correctly installed and firmly fixed, thereby improving the efficiency and quality of the installation work.
[0064] It is understandable that the setting of the sensing member and the triggering member can indicate the installation status of the fence 1000. In some embodiments, the sensing member can be set as a Hall sensor, and the triggering member can be set as a magnetic member. When the magnetic member approaches or moves away from the Hall sensor, the sensor generates signals of different levels, which are received and processed by the processor or processors, thereby realizing accurate detection of the insertion or detachment status of the fence 1000. At the same time, due to the high sensitivity and fast response characteristics of the Hall sensor, the system can detect the state change of the fence 1000 in a very short time and respond immediately.
[0065] Reference Figure 1 , Figure 3d and Figure 3e As shown, the fence 1000 includes a first fence 1100, a second fence 1200, a third fence 1300 and a fourth fence 1400. One end of the third fence 1300 and the other end of the second fence 1200 are connected by respective connectors 10000. One end of the fourth fence 1400 is connected to one end of the third fence 1300, and one end of the fourth fence 1400 is connected to the other end of the first fence 1100. The other end of the first fence 1100 and the other end of the second fence 1200 are connected by respective connectors 10000, so that each medicine can have an independent storage space by forming a medicine grid 110 surrounded by partitions 20000 on multiple fences 1000. The rounded curved surface 11140 is arranged between the partitions 20000, so that the original right-angled edge becomes more rounded, reducing the accidental damage that may be caused when taking and placing medicines. The rounded curved surface 11140 plays a reinforcing role in the structure, increases the connection strength between the partitions 20000, and makes the entire medicine grid 110 more stable. like Figure 3e As shown, the cams 12110 and grooves 12210 corresponding to two adjacent fences 1000 have a gap F when connected, which allows light to pass through for display when the light-emitting element 222 is present.
[0066] Therefore, when it is necessary to make the physical form of the combination of multiple partitions 20000 in a specific product dynamically changeable, for example, in the drug management equipment of a hospital, when multiple drug management devices need to be mobilized to change their size and shape, by connecting or removing the corresponding partitions 20000 in different connection directions of the connection end 12000 of the connector 10000, the size and shape of the corresponding device can be changed as the number of partitions 20000 constituting the device increases or decreases, so that the user can adjust the size of the drug management device, thereby managing as many types of drugs as possible in the smallest possible drug management equipment, thereby improving the space utilization rate of the medicine cabinet.
[0067] In some embodiments, to improve the convenience of fence 1000 management and splicing, as Figures 4a to 4cAs shown, a separate connecting piece 10000 is provided to connect the connecting pieces 10000 of a plurality of fences 1000 together in a straight line. Figure 4a As shown, the connecting pieces 10000 of the two fences 1000 are spliced together through independent connecting pieces 10000 to form a longer partition plate 20000. Figure 4b to Figure 4d As shown, the first connection end 12100 and the second connection end 12200 both include a cam 12110, and the cams 12110 on the first connection end 12100 and the second connection end 12200 are respectively embedded in the grooves 12210 of the connecting pieces 10000 of two adjacent fences 1000 distributed along a straight line to assemble the two fences 1000.
[0068] It is understandable that the drawer body 200 satisfies at least one of the following conditions:
[0069] The surrounding edge of the drawer body 200 is formed by splicing a plurality of fences 1000;
[0070] The drawer main body 200 is formed by splicing a plurality of drawer sub-bodies, and the surrounding edges of the plurality of drawer sub-bodies are spliced to form the surrounding edge of the drawer main body 200 .
[0071] In some embodiments, to facilitate the assembly of the fence 1000 and the surrounding edge of the drawer body 200, as shown in FIG. Figure 1 As shown, the surrounding edge of the drawer body 200 is formed by a plurality of rails 1000 spliced along a straight line.
[0072] Each drawer body can be divided into a plurality of continuously distributed medicine grid unit areas.
[0073] In some embodiments, in order to further adapt to different drug storage requirements, multiple drawer sub-bodies are spliced to form a larger drawer body 200. In some embodiments, the edges of the drawer sub-bodies are also spliced by fences 1000. Those skilled in the art can selectively set according to actual needs. For example, Fig.10 As shown, the drawer body 200 is formed by splicing an A board and a B board, and both the A board and the B board are drawer sub-bodies.
[0074] It can be understood that sensing elements are provided on all boundaries of the medicine grid unit area except those overlapping with the drawer body 200. Taking the sensing element on the bottom plate 220 as an example, Hall sensors are provided on all boundaries of the medicine grid unit area except those overlapping with the drawer body 200; the power supply ends of the Hall sensors on the column boundaries of the same column are arranged in parallel to form a first detection branch, and the power supply ends of the Hall sensors on the row boundaries of the same column are arranged in parallel to form a second detection branch. The detection circuit includes multiple sensor power supply control circuits, and multiple sensor power supply control circuits are arranged. Each first detection branch is connected to a sensor power supply control circuit, and each second detection branch is connected to a sensor power supply control circuit. The control input end of the sensor power supply control circuit is connected to the processor.
[0075] For example, refer to Fig.10 As shown, the drawer body 200 is defined as 7 columns and 8 rows, and the corresponding first detection branches are provided with 7 and the second detection branches are provided with 8. Taking the first detection branch of the first column as an example, Fig.10 As shown, the Hall sensors on the first detection branch are R1-1, R2-1, R3-1, R4-1, R5-1, R6-1, R7-1 and R8-1. The power supply ends of R1-1, R2-1, R3-1, R4-1, R5-1, R6-1, R7-1 and R8-1 are arranged in parallel. Taking the second detection branch of the first column as an example, the Hall sensors on the second detection branch are L1-1, L2-1, L3-1, L4-1, L5-1, L6-1, L7-1 and L8-1. The power supply ends of L1-1, L2-1, L3-1, L4-1, L5-1, L6-1, L7-1 and L8-1 are arranged in parallel.
[0076] In some embodiments, Figure 5a As shown, the processor is set to U3, and IOVV1~IOVV8 indicated in U3 are all detection result input pins, and IOVV1~IOVV8 can be connected to the output end of a Hall sensor. In some embodiments, each output end of each Hall sensor is provided with a one-to-one corresponding diode; Figure 5c As shown, the Hall sensor is set to U51, and the diode is set to D69; the output end of U51 is connected to the first end of the diode D69, and the second end of each D69 is connected to the detection result input pin of the processor U3. Figure 5a As shown, IOVV1 to IOVV8 in the processor U3 are respectively connected to the second end of a corresponding diode D69, so that the detection results of each U51 can be obtained.
[0077] For example, refer to Figure 5a and Figure 5bAs shown, the sensor power supply control circuit includes a first MOS tube Q3 and a second MOS tube Q1, the source of the second MOS tube Q1 is connected to the power supply, and the drain of the second MOS tube Q1 is connected to the power supply end of a Hall sensor. The gate of the second MOS tube Q1 is connected to the drain of the first MOS tube Q3, the source of the first MOS tube Q3 is grounded, and the gate of the first MOS tube is connected to the detection control pin of the processor U3. Figure 5a As shown, the detection control pin of U3 is as follows Figure 5a The pins corresponding to IOH1~IOH9 are shown.
[0078] It is understandable that the detection circuit also includes an indicator light control branch, which is formed by connecting a plurality of indicator light display circuits in series in sequence, and the control end of the first indicator light display circuit of the indicator light control branch is used to receive a control signal.
[0079] Each indicator light display circuit includes a light emitting element 222, and the input and output of two adjacent light emitting elements 222 are interconnected. In some embodiments, the light emitting element 222 can be set as a light source chip, such as WSE. In some embodiments, the control end of the indicator light display circuit can be connected to a controller. The controller receives the level signal of the sensing element to realize the light control of the indicator light display circuit. The controller sends the level signal of the sensing element to the processor to realize the configuration of the specification parameters of the medicine grid 110. In other embodiments, the control end of the indicator light display circuit can also be connected to the processor.
[0080] The convenience of deployment can be improved by setting in series, and the addition of an indicator light display circuit can indicate the position of the medicine grid 110. In some embodiments, the indicator light display circuits on the column boundaries of the medicine box areas of each column can be connected in series in sequence to form an indicator light control branch, and the indicator light display circuits on the row boundaries of the medicine box areas of each column can be connected in series in sequence to form another indicator light control branch. In other embodiments, the indicator light display circuits on the column boundaries of the medicine box areas of each column can also be connected in series in sequence and then connected in series in units of columns, so that all indicator light display circuits on the drawer body 200 are set in series.
[0081] For example, the light emitting element 222 is a light source chip WSE, and the light emitting element 222 is controlled by a processor. Figure 6a As shown, the indicator light display circuit in the drawer body 200 is only distributed on the column boundaries of the medicine box area unit, such as Figure 6a As shown, the indicator light display circuit is divided into 4 rows, each row corresponds to a column of medicine box area units, and the last indicator light display circuit of each row is connected in series with the indicator light display circuit of the adjacent row, thereby forming an indicator light control branch. Figure 6aAs shown, the light source chips in each indicator light display circuit are U20~U47. Each light source chip can be connected to the power supply end of the same light source power supply circuit. U20~U47 are connected in series to form an indicator light control branch. Among them, U20 and U47 are respectively connected to U3 as the last indicator light display circuit and the first indicator light display circuit of the indicator light control branch. Among them, pins 4 and 5 of U20 are respectively connected to U3 as output pins. Figure 6a The 34th pin (also PWM2 in the figure) and the 42nd pin (also PWM1 in the figure) of the processor U3 are connected to the processor U3 as input pins. Figure 6c As shown, U47 is connected to U3 in a one-to-one correspondence via the connection terminal 12000 sub-CON5.
[0082] Here, the light emitting element 222 is a light source chip WSE, and the light emitting element 222 is controlled by a processor as an example. Figure 6b As shown, the light source power supply circuit includes a third MOS tube Q2 and a fourth MOS tube Q4, wherein the source of the third MOS tube Q2 is connected to the power supply, the drain of the third MOS tube Q2 is connected to the VCC terminal of the light source chip, the gate of the third MOS tube Q2 is connected to the drain of the fourth MOS tube Q4, the source of the fourth MOS tube Q4 is grounded, and the gate of the fourth MOS tube Q4 is connected to the processor U3, so that the synchronous power supply of the light source chip can be controlled by the processor U3.
[0083] It is understandable that the light emitting element 222 can be arranged on the boundary of the medicine grid unit area, such as Figure 2 As shown, the light emitting element 222 and the inductive element 221 are both arranged on the boundary of the medicine grid unit area. Figures 5a to 6b It can be seen that when any of the sensing elements 221 detects that its corresponding trigger element is triggered, the processor will immediately receive the signal and quickly analyze and judge. Once it is confirmed that it is a valid trigger signal (that is, when the partition 20000 is installed correctly), the processor will quickly send instructions to the corresponding light-emitting element 222 to make it start to emit light, thereby prompting the user that the partition 20000 is installed correctly.
[0084] It is understandable that the sensor power supply control circuit, the light source power supply circuit, and the processor power supply can all be connected through the buck-boost circuit, so that one external power supply can power multiple different circuits. Specific technical personnel in this field can refer to the existing buck-boost circuit structure for selective setting, and the embodiments of this application will not be described one by one.
[0085] The specific implementation of the drawer is basically the same as the specific embodiment of the configuration method of the multi-medicine box drawer mentioned above, and will not be repeated here.
[0086] Figure 7is an optional flow chart of a method for configuring a multi-medicine box drawer provided in an embodiment of the present application. Figure 7 The method may include but is not limited to steps S100 to S200. Figure 7 As shown, the first aspect of the embodiment of the present application proposes a configuration method for a multi-medicine box drawer, which is applied to a drawer, wherein the drawer includes a drawer body and a plurality of fences, wherein the bottom plate of the drawer body is defined as N rows and M columns and forms N*M medicine grid unit areas, and any two fences can be detachably connected, and the first side of each fence is correspondingly arranged on the boundary of a medicine grid unit area; the plurality of fences separate the drawer body into at least one medicine grid; the method includes:
[0087] Step S100, performing fence in-place detection on the boundaries of N*M medicine grid unit areas to determine the row position data and column position data of each medicine grid;
[0088] Step S200: configuring specification parameters of the corresponding medicine grid according to the row position data and column position data of each medicine grid.
[0089] Therefore, by detachably connecting the fence to the edge of the drawer body, any two fences are also set to be detachably connected, and by defining the drawer body as N rows and M columns, medicine grids of different sizes can be formed in the drawer body by adjusting the boundary position of the fence in the medicine grid unit area and the enclosure relationship of the fence. And by performing in-situ detection of the fence on the boundary of each medicine grid unit area, the row position data and column position data of each medicine grid can be determined, and then the medicine grid and the parameters related to the specifications such as the size of the medicine grid can be located according to the row position data and the column position data, so as to realize automatic identification of the medicine grid. Therefore, compared with the related art, the embodiment of the present application can realize the dynamic setting of the size of the medicine grid and the automatic identification and configuration of the specification parameters of the medicine grid.
[0090] The number of fences can be determined according to the size and shape of the medicine grid to be enclosed and the location where it needs to be placed, and the embodiments of the present application do not impose too many restrictions.
[0091] The row position data characterizes the row boundary information of the medicine grid formed by the row occupied by the corresponding medicine grid, and may include the row information of the starting row and the ending row of each column occupied by the medicine grid. For example, in some embodiments, the medicine grid is an irregular shape, and multiple starting rows and ending rows may be set, and the row profile and size and other specification parameters of each row of the medicine grid can be determined according to the starting row and the ending row of each column. In other embodiments, the medicine grid is a regular square, and each medicine grid can record a starting row and an ending row, or a starting row and the number of rows.
[0092] The column position data characterizes the medicine grid column boundary information formed by the columns occupied by the corresponding medicine grid, including column information such as the starting column and the ending column. In some embodiments, the medicine grid is a regular square, and the column position data includes column information of a starting column and an ending column, or a starting column and the number of columns. In other embodiments, the medicine grid is an irregular shape, and multiple starting columns can be set, and multiple ending columns can also be set, so that the column outline and size and other specification parameters of each row of the medicine grid can be determined according to the starting column and the ending column of each row.
[0093] Specification parameters are used to characterize the position and size of the medicine grid. For example, they can be directly set as row and column data, or recorded as the starting position and size capacity.
[0094] It is understandable that the presence detection of the fence on the boundary can be performed by means of a distance sensor, a Hall sensor, etc., and in this regard, the embodiments of the present application do not impose too many restrictions.
[0095] The partition of the fence is planar. The first side is the side between the two ends.
[0096] Both N and M are positive integers greater than or equal to 1, and at least one of N and M is a positive integer greater than 1.
[0097] It is understandable that step S100, performing fence in-place detection on the boundaries of N*M medicine grid unit areas to determine the row position data and column position data of each medicine grid, includes:
[0098] Select a medicine grid unit area that has not been traversed from the N*M medicine grid unit areas, and determine a starting row and a starting column of the medicine grid to be determined;
[0099] Perform fence in-place detection on row boundaries of medicine grid unit areas that have not been traversed row by row starting from the starting column, and perform fence in-place detection on column boundaries of medicine grid unit areas that have not been traversed column by column starting from the starting column;
[0100] When there are fences on the boundaries of the medicine grid areas formed by the combination of the traversed medicine grid unit areas, stop traversing the remaining medicine grid unit areas;
[0101] According to the medicine grid area, determine the row position data and column position data of the current medicine grid to be determined;
[0102] When there is an untraversed medicine grid unit area among the N*M medicine grid unit areas, jump to the step of selecting an untraversed medicine grid unit area from the N*M medicine grid unit areas and determining a starting row and starting column of a medicine grid to be located.
[0103] It is understandable that the embodiments of the present application do not restrict how to select the medicine grid unit area that has not been traversed. It can be an adjacent and untraversed medicine grid unit area in the determined medicine grid, or any one of the untraversed medicine grid unit areas. The starting behavior is the row where the medicine grid unit area selected is located, and the starting column is the column where the selected medicine grid unit area is located. If the medicine grid unit area in the 1st row and the 2nd column is selected, the starting behavior to be determined is the first row, and the starting column is the first column.
[0104] It is understandable that the traversed medicine grid unit area can be ensured to be continuous row by row, and the traversed medicine grid unit area can also be ensured to be continuous column by column. Therefore, it can be determined whether the detection of the medicine grid to be determined has been completed based on whether there is a fence on the boundary of the medicine grid area. For example, Figure 8 As shown, area ①, area ②, area ③, area ④, area ⑤, area ⑥, area ⑦, area ⑧ and area ⑨ are all medicine grid unit areas that have not been traversed. Area ② is selected to determine the starting row and starting column of the first medicine grid to be determined, and then column boundary detection is performed from the second column. When it is detected that there is a fence on the right side of the second column and there is no fence on the left side of the second column, the fence in-place detection is continued for the first column; similarly, row boundary in-place detection is performed from the first row of area ②. When the fences are detected in the adjacent areas ①, ④, and ⑤ starting from area ②, and the boundaries of the medicine grid area formed by the combination of ①, ②, ④, and ⑤ are all fenced, the recognition of the first medicine grid to be determined is terminated, and then a medicine grid unit area is selected from areas ③, ⑥, ⑦, ⑧ and ⑨ to determine the starting row and starting column of the second medicine grid to be determined, and the row and column detection of the second medicine grid is started. By analogy, the specification parameters of each medicine grid on the bottom plate are identified.
[0105] For example, for an irregular medicine grid, such as Fig. 9As shown, the drawer body is defined as a 3x3 medicine grid unit area. The medicine grid unit areas in the first row are area ①, area ② and area ③; the medicine grid unit areas in the second row are area ④, area ⑤ and area ⑥; the medicine grid unit areas in the third row are area ⑦, area ⑧ and area ⑨. In the initial state, all medicine grid unit areas are medicine grid unit areas that have not been traversed. Assuming that area ① is the medicine grid unit area selected for the first medicine grid to be determined and used to determine the inspiration row and starting column, for the first medicine grid, start from area ① to perform column-by-column detection. When it is detected that there is a fence on the column boundary of area ①, start to detect the row boundary of area ① row-by-row. When there is a fence on the row boundary of area ④ and the column boundary of area ④ has not been traversed, start to traverse the column boundary of area ④ column by column. When a fence is detected on the column boundary of area ⑤ in the same row as area ④, the row boundary detection is performed based on area ⑤, and so on, until the boundaries of each medicine grid unit area where the fence is detected can form a closed medicine grid area. As shown Fig. 9 As shown, area ①, area ④ and area ⑤ are traversed and can form a closed area, so the first medicine grid is formed by enclosing area ①, area ④ and area ⑤. Similarly, for the second medicine grid, the medicine grid unit area closest to the first medicine grid can be selected from the medicine grid unit areas that have not been traversed and the starting row and starting column of the second medicine grid can be determined. Each column is traversed from the starting row, and the traversal is performed row by row based on the number of columns. Then, the fence in place state of the column boundary of the adjacent medicine grid unit area is re-determined based on the number of rows until multiple consecutive medicine grid unit areas form a closed area.
[0106] It can be understood that the starting row and starting column of the first medicine grid to be located are the first row and the first column on the bottom plate respectively; the medicine grid is set to be a square, and fence in-place detection is performed on the row boundaries of the medicine grid unit area that has not been traversed row by row starting from the starting column, and fence in-place detection is performed on the column boundaries of the medicine grid unit area that has not been traversed column by column starting from the starting column, including:
[0107] Perform fence in-place detection and traversal on the column boundaries of the medicine grid unit area of the starting column of the medicine grid to be determined and the subsequent columns on the same row, and determine the number of columns occupied by the starting row of the medicine grid to be determined;
[0108] According to the number of columns and the starting column, the row boundaries of the medicine grid unit areas of the starting row of the medicine grid to be determined and the rows thereafter on the same column are traversed by fence in-place detection to determine the number of rows occupied by the medicine grid to be determined;
[0109] Correspondingly, when there are fences on the boundaries of the medicine grid areas formed by the combination of the traversed medicine grid unit areas, the traversal of the remaining medicine grid unit areas is stopped, including:
[0110] When the number of rows occupied by the medicine grid to be located is determined, the traversal of the remaining medicine grid unit areas is stopped.
[0111] For the drawer body, the first row and the first column are the rows and columns adjacent to the surrounding edge of the drawer body. Traversing from the medicine grid unit area of the first row and the first column can further ensure the accuracy of medicine grid recognition.
[0112] In some embodiments, when the medicine grids are all set to be regular squares, once the number of columns is determined, the number of rows can be determined to determine the specification parameters of the medicine grid.
[0113] Fence in place detection can be performed by real-time detection of the fence through a sensor, or all fences in the drawer body can be detected first to obtain a detection result, and then it is determined based on the detection result whether there is a fence at the row boundary and column boundary of each medicine grid unit area.
[0114] For example, taking the medicine grids as regular squares, refer to Figure 8 As shown, it is assumed that the drawer body is defined as a 3x3 medicine grid unit area, in which each cell formed by the dotted line part corresponds to a medicine grid unit area, such as Figure 2 As shown in the figure, the medicine grid unit areas in the first row are area ①, area ② and area ③; the medicine grid unit areas in the second row are area ④, area ⑤ and area ⑥; the medicine grid unit areas in the third row are area ⑦, area ⑧ and area ⑨. A sensing element is set on the boundary of each medicine grid unit area, and the detection is carried out from the first column of the first row, that is, from area ①, the row where the row boundary is located is detected column by column, as shown in the figure. Figure 2 As shown, there is no fence at the column boundary of area ①, and there is a fence at the column boundary of area ②, so the number of columns is 2, and then refer to Figure 2 As shown, starting from the column where area ① is located, the row boundaries of each medicine grid unit area are scanned column by column. There is no fence on the row boundary of area ①, and there is a fence on the row boundary of area ④; there is no fence on the row boundary of area ②, and there is a fence on the row boundary of area ⑤. Then it is determined that the first medicine grid is a medicine box with 2 rows and 2 columns, and the starting position is the first row and the first column. For the second medicine grid, the boundary of area ③ adjacent to the first medicine grid has not been traversed. The row where area ③ is located is used as the starting row of the second medicine grid, and the column where area ③ is located is used as the starting column of the second medicine grid. When fences are detected on both the row boundary and the column boundary of area ③, area ③ forms the corresponding second medicine grid. At this time, there are still the boundaries of area ⑥, area ⑦, area ⑧ and area ⑨ that have not been traversed. Then continue to traverse area ⑥, area ⑦, area ⑧ and area ⑨ to detect the third medicine grid, and so on until the boundaries of each medicine grid unit area are traversed.
[0115] In some embodiments, an identification may be set for each medicine grid unit area determined to be a medicine grid to identify different medicine grids and whether they are traversed.
[0116] It is understandable that when the fence is reset, the medicine compartment automatic identification step can be restarted to execute steps S100 and S200 to configure the specification parameters.
[0117] The boundaries of the medicine grid unit region include two parallel row boundaries and two parallel column boundaries of the medicine grid unit region.
[0118] In some embodiments, a sensing element may be provided at each row boundary and each column boundary of the medicine grid unit area so that each boundary can be detected. In other embodiments, a sensing element may be provided at each row boundary and each column boundary in each medicine grid unit area except those that coincide with the surrounding edge of the drawer body.
[0119] Taking the induction element as a Hall sensor as an example, each boundary of each medicine grid unit area except the boundary that coincides with the surrounding edge of the drawer body is provided with a Hall sensor, and a magnetic element is provided on the side of the fence close to the medicine grid unit area; before performing fence in-place detection on the boundaries of N*M medicine grid unit areas and determining the row position data and column position data of each medicine grid, the method includes:
[0120] Obtain the initialized N*M row in-place information and N*M column in-place information, and set the row in-place information of the last row to be in-place; set the column in-place information of the last column to be in-place;
[0121] Perform fence in-place detection on the row boundaries and column boundaries of the N*M medicine grid unit areas, update the N*M row in-place information and update the N*M column in-place information;
[0122] The boundaries of the N*M medicine grid unit areas are respectively subjected to fence in-place detection to determine the row position data and column position data of each medicine grid separated in the drawer body, including:
[0123] According to the N*M row position information and the N*M column position information, the row position data and the column position data of each medicine grid formed by partitioning in the drawer body are determined.
[0124] The magnetic part can be set as a magnetic metal part such as a magnet. When the Hall sensor detects the magnetic part, it will generate a high level signal, and when the magnetic part is not detected, the Hall sensor will generate a low level. Therefore, by setting a magnetic part on each fence and setting a Hall sensor that can detect the magnetic part at the boundary of the medicine grid unit area, it can be further ensured that the detection range of each Hall sensor only involves the boundary where it is located, and the detection result is more accurate.
[0125] By setting the row in-place information of the last row to in-place and the column in-place information of the last column to in-place, the cost of deploying the Hall sensor can be saved while ensuring that the row in-place information and the column in-place information correspond one-to-one to the medicine grid unit area during the execution process, so that the corresponding in-place information can be quickly found according to the index, simplifying the processing flow. The steps of setting the row in-place information of the last row to in-place and the column in-place information of the last column to in-place can be set after all fences are detected or in advance, and the embodiments of the present application do not limit this.
[0126] Updating the N*M row in-place information and updating the N*M column in-place information means updating the actual value of the in-place information in the corresponding position. If updated to 0, it means not in-place, and if updated to 1, it means in-place.
[0127] For example, refer to Fig.10 As shown in FIG. 1 , the drawer body is arranged in 8 rows and 6 columns, that is, each row is provided with 6 medicine grid unit areas, wherein the dotted lines are used to define the rows and columns. The grids in the solid lines correspond to one medicine grid. Fig.10 As shown, each column is provided with 8 medicine grid unit areas, and each row is provided with 7 medicine grid unit areas. Fig.10 As shown, the number of Hall sensors on the column boundary of the jth row is set to 6, namely Rj-1 to Rj-6, and the number of Hall sensors on the row boundary of the i-th column is 7, namely L1-i to L7-i. Assume that the medicine grid unit areas of the first column are areas R1-1 to R8-1, and the medicine grid unit areas of the first row are areas L1-1 to L1-8. Then L1-1 to L1-7 can only detect the row boundaries of areas R1-1 to R7-1, and area R8-1 is not detected by the Hall sensor, but one of the row boundaries of area R8-1 coincides with area R7-1, and another row boundary of area R8-1 coincides with the surrounding edge of the drawer body. Therefore, the Hall sensor can be set at the surrounding edge of the drawer body and the in-position state can be set to in-position by default.
[0128] In some embodiments, reference Fig.10 As shown, the main body of the drawer is formed by splicing a plurality of sub-boards. Fig.10 As shown, the main body of the drawer is composed of plate A and plate B, wherein plate A is the main board and plate B is the auxiliary board, wherein a Hall sensor is provided at the boundary where plate B and plate A meet, so that there is no need to provide a Hall sensor at the boundary of the main body formed by the combination of plate A and plate B, and Hall sensors are provided at each boundary of each medicine grid unit area located within the bottom plate.
[0129] It is understandable that the row presence information and the column presence information can be stored in a two-dimensional array. In this case, the fence presence information can be quickly determined through the array index.
[0130] It can be understood that the power supply ends of the Hall sensors on the column boundaries of the same column are arranged in parallel, and the power supply ends of the Hall sensors on the row boundaries of the same column are arranged in parallel, and the fence in-place detection is performed on the row boundaries and column boundaries of the N*M medicine grid unit areas respectively, and N*M row in-place information and N*M column in-place information are obtained, including:
[0131] Powering the power supply ends of the first row of Hall sensors at the column boundary of each column respectively, and obtaining the detection results of the Hall sensors in each row when the Hall sensors on the column boundary of each column are electrically turned on, to obtain N*M column presence information;
[0132] Power is supplied to the power supply ends of the first row of Hall sensors at the row boundaries of each column respectively, and detection results of the Hall sensors of each column when the Hall sensors of each column are electrically turned on are obtained to obtain N*M row presence information.
[0133] By adopting one-way power control in the same column, circuit control can be simplified and processing efficiency can be higher.
[0134] For example, Fig.11 As shown in FIG. 1 , the drawer body is defined as 5 rows and 4 columns, and the medicine grid unit area of the Nth row and the Mth column is represented as area NM. Fig.11 Taking the first column in the figure as an example, the medicine grid unit areas on the first column are area 1-1, area 2-1, area 3-1, area 4-1 and area 5-1, and Hall sensors are set at the column boundaries of area 1-1, area 2-1, area 3-1, area 4-1 and area 5-1. The VCC (i.e., power supply end) of the five Hall sensors are all connected to the sensor power supply control circuit 2, and the five Hall sensors output IO1, IO2, IO3, IO4 and IO5 respectively. For the row boundaries of the medicine grid unit area on the first column, such as Fig.11 As shown, 4 Hall sensors are provided, and the VCCs of the 4 Hall sensors are all connected to the sensor power supply control circuit 1, and the 4 Hall sensors output IO1, IO2, IO3 and IO4 respectively. By sequentially controlling the sensor power supply control circuit 1 and the sensor power supply control circuit 2, the row boundaries and column boundaries of the medicine grid unit area on the first column can be detected row by row. For the medicine grid unit areas of other columns, the detection control can be performed with reference to the medicine grid unit area of the first column. In some embodiments, the row boundaries of each column of the medicine grid unit area can be detected after the column boundaries of each column of the medicine grid unit area are detected. In other embodiments, the row boundaries and column boundaries of each column of the medicine grid unit area can be detected after the row boundaries and column boundaries of each column of the medicine grid unit area are detected. In this regard, the embodiments of the present application do not limit the detection order of the row boundaries and column boundaries.
[0135] It is understandable that an indicator light display circuit is provided on the boundary of each medicine grid unit area, and each indicator light display circuit is connected in series in sequence. The method further includes:
[0136] Generate control signals according to specification parameters;
[0137] The control signal is sent to the first indicator light display circuit connected in series, so that each indicator light display circuit performs a lighting operation according to the control signal.
[0138] In some embodiments, the indicator light display circuit may be set on each boundary of each medicine grid unit area, or may be set only on the column boundary (or row boundary) of each medicine grid unit area. In this regard, the embodiment of the present application does not limit how to set the indicator light display circuit.
[0139] By arranging the indicator light display circuits in series, one control terminal can simultaneously control multiple indicator light display circuits, making the control simpler. Each indicator light display circuit is used to light up the boundary of the medicine grid unit area. By setting the indicator light display circuit, the position of all medicine grids or the position of the medicine grid to be operated can be indicated. Those skilled in the art can selectively set the conditions for lighting the indicator light display circuit according to actual needs to adapt to different application scenarios.
[0140] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the configuration method of the multi-medicine box drawer when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.
[0141] See also Fig.12 , Fig.12 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:
[0142] The processor 601 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0143] The memory 602 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 602 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 602, and the processor 601 calls and executes the configuration method of the multi-medicine box drawer of the embodiment of this application;
[0144] Input / output interface 603, used to implement information input and output;
[0145] Communication interface 604, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WI FI, Bluetooth, etc.);
[0146] Bus 605 , which transmits information between various components of the device (e.g., processor 601 , memory 602 , input / output interface 603 , and communication interface 604 );
[0147] The processor 601 , the memory 602 , the input / output interface 603 and the communication interface 604 are connected to each other in communication within the device via a bus 605 .
[0148] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the configuration method of the multi-medicine box drawer.
[0149] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0150] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0151] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.
[0152] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0153] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0154] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0155] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0156] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the definition of the above-mentioned units is only a logical function definition. There may be other definitions in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0157] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0158] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0159] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method of each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-On l yMemory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0160] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.
Claims
1. A method for configuring a multi-medicine box drawer, characterized in that: The drawer includes a drawer body and a plurality of fences, the bottom plate of the drawer body is defined as N rows and M columns to form N*M medicine grid unit areas, any two fences can be detachably connected, and each fence is set on the boundary of the corresponding medicine grid unit area; A plurality of fences separate the drawer body into at least one medicine compartment; the method comprises: Perform fence in-place detection on the boundaries of the N*M medicine grid unit areas to determine the row position data and column position data of each medicine grid; According to the row position data and column position data of each medicine grid, the specification parameters of the corresponding medicine grid are configured.
2. The method for configuring a multi-medicine box drawer according to claim 1, characterized in that: The fence in-place detection is performed on the boundaries of the N*M medicine grid unit areas to determine the row position data and column position data of each medicine grid, including: Select a medicine grid unit area that has not been traversed from the N*M medicine grid unit areas, and determine a starting row and a starting column of the medicine grid to be determined; Starting from the starting column, row by row, fence in-place detection is performed on the row boundaries of the medicine grid unit area that has not been traversed, and starting from the starting column, column by column, fence in-place detection is performed on the column boundaries of the medicine grid unit area that has not been traversed; When there are fences on the boundaries of the medicine grid areas formed by the combination of the traversed medicine grid unit areas, stop traversing the remaining medicine grid unit areas; Determine the row position data and column position data of the current medicine grid to be determined according to the medicine grid area; When there is an untraversed medicine grid unit area among the N*M medicine grid unit areas, jump to the step of selecting an untraversed medicine grid unit area from the N*M medicine grid unit areas and determining a starting row and a starting column of a medicine grid to be located.
3. The method for configuring a multi-medicine box drawer according to claim 2, characterized in that: The starting row and the starting column of the first medicine grid to be located are respectively the first row and the first column on the bottom plate; the medicine grid is set to be a square, and the fence in-place detection is performed on the row boundaries of the medicine grid unit area that has not been traversed row by row starting from the starting column, and the fence in-place detection is performed on the column boundaries of the medicine grid unit area that has not been traversed column by column starting from the starting column, including: Perform fence in-place detection and traversal on the column boundaries of the medicine grid unit area of the starting column of the medicine grid to be determined and the subsequent columns on the same row, to determine the number of columns occupied by the starting row of the medicine grid to be determined; According to the number of columns and the starting column, fence in-place detection is performed on the row boundaries of the medicine grid unit area of the starting row of the medicine grid to be determined and the rows thereafter on the same column to determine the number of rows occupied by the medicine grid to be determined; Correspondingly, when there are fences on the boundaries of the medicine grid areas formed by the combination of the traversed medicine grid unit areas, the traversal of the remaining medicine grid unit areas is stopped, including: When the number of rows occupied by the medicine grid to be positioned is determined, the traversal of the remaining medicine grid unit areas is stopped.
4. The method for configuring a multi-medicine box drawer according to claim 1, characterized in that: Each of the medicine grid unit areas is provided with a Hall sensor at each boundary except for the boundary that coincides with the surrounding edge of the drawer body, and a magnetic member is provided at the side of the fence close to the medicine grid unit area; before performing fence in-place detection on the boundaries of the N*M medicine grid unit areas to determine the row position data and column position data of each medicine grid, the method includes: Obtain the initialized N*M row in-place information and N*M column in-place information, and set the row in-place information of the last row to be in-place; set the column in-place information of the last column to be in-place; Perform fence in-place detection on the row boundaries and column boundaries of the N*M medicine grid unit areas respectively, update the N*M row in-place information and update the N*M column in-place information; The fence in-place detection is performed on the boundaries of the N*M medicine grid unit areas respectively to determine the row position data and column position data of each medicine grid separated and formed in the drawer body, including: According to the N*M row position information and the N*M column position information, the row position data and the column position data of each medicine grid formed by separation in the drawer body are determined.
5. The method for configuring a multi-medicine box drawer according to claim 4, characterized in that: The power supply ends of the Hall sensors on the column boundaries of the same column are arranged in parallel, and the power supply ends of the Hall sensors on the row boundaries of the same column are arranged in parallel, and the fence in-place detection is performed on the row boundaries and column boundaries of the N*M medicine grid unit areas respectively to obtain N*M row in-place information and N*M column in-place information, including: Powering the power supply ends of the Hall sensors in the first row at the column boundaries of each column respectively, and obtaining the detection results of the Hall sensors in each row when the Hall sensors on the column boundaries of each column are electrically turned on, to obtain N*M column presence information; The power supply ends of the Hall sensors in the first row at the row boundaries of each column are powered respectively, and the detection results of the Hall sensors in each column when the Hall sensors in each column are electrically turned on are obtained to obtain N*M row presence information.
6. The method for configuring a multi-medicine box drawer according to claim 1, characterized in that: An indicator light display circuit is provided on the boundary of each medicine grid unit area, and each of the indicator light display circuits is connected in series in sequence. The method further includes: generating a control signal according to the specification parameters; The control signal is sent to the first indicator light display circuit connected in series, so that each indicator light display circuit performs a lighting operation according to the control signal.
7. A drawer, characterized in that: The drawer comprises: A drawer body, wherein the bottom plate of the drawer body is defined as N rows and M columns and forms N*M medicine grid unit areas; A plurality of fences, each end of which can be detachably connected to the surrounding edge of the drawer body and any two ends of the fences can be detachably connected, and the first side of each fence is correspondingly arranged on the boundary of a medicine grid unit area; the plurality of fences separate the drawer body into at least one medicine grid; A control module, wherein the control module includes a processor and a detection circuit, wherein the detection circuit is used to detect the in-place status of each fence, the processor is electrically connected to the detection circuit, and the processor is used to execute the method as claimed in claim 1.
8. The drawer according to claim 7, characterized in that: A sensing element is arranged on the boundary of each medicine grid unit area, the fence includes a partition and a connecting element, the connecting element is arranged at the end of the partition, the connecting element includes a main body and a plurality of connecting ends, some of the connecting ends protrude or recessed from the main body toward a first direction, and some of the connecting ends protrude or recessed from the main body toward a second direction, and the plurality of connecting elements are interlocked with each other through corresponding connecting ends; the partition extends from the main body toward a third direction, and a trigger element is arranged on the partition.
9. The drawer according to claim 8, characterized in that: The drawer body satisfies at least one of the following conditions: The surrounding edge of the drawer body is formed by splicing a plurality of the fences; The drawer main body is formed by splicing a plurality of drawer sub-bodies, and the surrounding edges of a plurality of the drawer sub-bodies are spliced to form the surrounding edge of the drawer main body.
10. The drawer according to claim 9, characterized in that: Inductive components are arranged on all boundaries of the medicine grid unit area except those overlapping with the drawer body; the inductive components on the column boundaries of the same column are arranged in parallel to form a first detection branch, and the inductive components on the row boundaries of the same column are arranged in parallel to form a second detection branch. The detection circuit includes a plurality of sensor power supply control circuits, and a plurality of sensor power supply control circuits are arranged, each of the first detection branches is connected to one sensor power supply control circuit, and each of the second detection branches is connected to one sensor power supply control circuit, and the control input end of the sensor power supply control circuit is connected to the processor.
11. The drawer according to claim 10, characterized in that: The detection circuit also includes an indicator light control branch, which includes a plurality of indicator light display circuits connected in series in sequence, and a control end of a first indicator light display circuit of the indicator light control branch is used to receive a control signal.