Rotary code scanning mechanism, method, device and sample detector
By using a rotating scanning mechanism and controlling the tightness between the roller and the target container using indicator information, automated scanning of the target container is achieved, solving the problem of high manpower consumption and low efficiency, and improving scanning efficiency and reliability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN REETOO BIOTECHNOLOGY CO LTD
- Filing Date
- 2021-06-30
- Publication Date
- 2026-05-15
AI Technical Summary
In existing technologies, scanning targets for containers requires a large amount of manpower and is inefficient.
A rotary scanning mechanism is adopted. The first drive mechanism drives the roller to move and the second drive mechanism drives the target container to rotate at a preset tension, so that the scanning terminal can scan the barcode and control the tension between the roller and the container using the indication information.
It saves manpower, improves scanning efficiency, and can adapt to target containers of different diameters, thus improving the reliability of scanning operations.
Smart Images

Figure CN115541902B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the fields of medical monitoring and control technology, and in particular to a rotating barcode scanning mechanism, method, device and sample detector. Background Technology
[0002] With the continuous improvement of the modernization and automation of testing instruments, in batch sample testing and analysis, barcodes are usually affixed to the target containers used for testing samples for easy identification and statistics. Then, a barcode scanner is used to scan the pre-set barcodes on the target containers to obtain the corresponding barcode information. Currently, this is generally done by technicians using handheld scanners to scan the target containers. However, this method consumes a lot of manpower, and manual scanning is inefficient.
[0003] Therefore, how to improve the efficiency of scanning target containers and reduce the consumption of human resources is a technical problem that needs to be solved by those skilled in the art. Summary of the Invention
[0004] Therefore, it is necessary to provide a rotary barcode scanning mechanism, method, device, and sample detector that can improve the efficiency of scanning target containers and reduce the consumption of human resources, in order to address the above-mentioned technical problems.
[0005] A rotating barcode scanning mechanism, the mechanism comprising:
[0006] Sweep the docks;
[0007] Roller;
[0008] Controller;
[0009] The first drive mechanism and the second drive mechanism;
[0010] The controller is used to control the first drive mechanism to drive the roller to move relative to the target container, to control the second drive mechanism to drive the roller to rotate so as to drive the target container to rotate, and to receive indication information characterizing the tightness between the roller and the target container;
[0011] When the controller receives the instruction information, it controls the first drive mechanism to drive the roller to move away from the target container to the target position so as to control the roller and the target container to reach a preset tightness. The controller also controls the second drive mechanism to drive the roller to rotate under the preset tightness so as to drive the target container to rotate, so that the scanning dock can scan the barcode preset on the target container and obtain the barcode information.
[0012] In one embodiment, the indication information includes:
[0013] Information indicating that the first drive mechanism is stalled and / or the drive of the second drive mechanism is obstructed and / or the pressure on the roller exceeds a preset pressure threshold.
[0014] In one embodiment, the controller acquires a first electrical signal of the first drive mechanism and / or a second electrical signal of the second drive mechanism;
[0015] When the first electrical signal changes, it is determined that the first drive mechanism has stalled;
[0016] When the second electrical signal exceeds the signal threshold, information indicating that the drive of the second drive mechanism is blocked is determined.
[0017] In one embodiment, the controller receives a pressure value detected by a pressure sensor, and when the pressure value exceeds the preset pressure threshold, determines that the pressure on the roller exceeds the preset pressure threshold; wherein the pressure sensor is preset on the roller.
[0018] In one embodiment, the first drive mechanism or the second drive mechanism is a motor, and the first electrical signal or the second electrical signal is a current signal flowing through the motor.
[0019] In one embodiment, after the roller drives the target container to rotate a preset number of times, the controller controls the second drive mechanism to stop driving the roller to rotate and controls the first drive mechanism to drive the roller to a preset initial position.
[0020] In one embodiment, after receiving the barcode information scanned by the scanning dock, the controller controls the second drive mechanism to stop driving the roller to rotate and controls the first drive mechanism to drive the roller to a preset initial position.
[0021] In one embodiment, the mechanism further includes an optocoupler disposed beside the preset initial position and connected to the controller. The controller determines whether the roller moves to the preset initial position based on whether it receives a control signal from the optocoupler. When the roller moves to a position between the transmitter and receiver of the optocoupler, causing the optical signal transmission between the transmitter and the receiver to be interrupted, the control signal is generated.
[0022] In one embodiment, upon receiving the instruction information, the controller controls the first drive mechanism to drive the roller to move a preset distance away from the target container or to drive the roller to move until the controller no longer receives the instruction information.
[0023] A rotary scanning method, applied to any of the rotary scanning mechanisms described above, the method comprising:
[0024] Control the first drive mechanism to drive the roller to move in a direction closer to the target container;
[0025] When an indication is received that represents the tightness between the roller and the target container, the first drive mechanism is controlled to drive the roller to move away from the target container to the target position so as to control the roller and the target container to reach a preset tightness.
[0026] The second drive mechanism is controlled to drive the roller to rotate at the preset tension level, thereby causing the target container to rotate, so that the scanning terminal can scan the barcode preset on the target container and obtain the barcode information.
[0027] In one embodiment, the indication information includes:
[0028] Information indicating that the first drive mechanism is stalled and / or the drive of the second drive mechanism is obstructed and / or the pressure on the roller exceeds a preset pressure threshold.
[0029] In one embodiment, the process of obtaining information that the first drive mechanism is stalled and information that the drive of the second drive mechanism is obstructed includes:
[0030] Detect the first electrical signal of the first drive mechanism and / or the second electrical signal of the second drive mechanism;
[0031] When the first electrical signal changes, it is determined that the first drive mechanism has stalled;
[0032] When the second electrical signal exceeds the signal threshold, it is determined that the drive of the second drive mechanism is blocked.
[0033] In one embodiment, the process of obtaining information that the pressure on the roller exceeds the preset pressure threshold includes:
[0034] The system receives a pressure value detected by a pressure sensor, and when the pressure value exceeds a preset pressure threshold, it determines that the pressure on the roller exceeds the preset pressure threshold; wherein the pressure sensor is preset on the roller.
[0035] A rotating barcode scanning device, the device comprising:
[0036] The first control module is used to control the first drive mechanism to drive the roller to move in a direction close to the target container;
[0037] The second control module is used to control the first drive mechanism to drive the roller to move in a direction away from the target container to the target position when it receives an indication information representing the tightness between the roller and the target container, so as to control the roller and the target container to reach a preset tightness.
[0038] The third control module is used to control the second drive mechanism to drive the roller to rotate under the preset tension level, thereby causing the target container to rotate, so that the scanning dock can scan the barcode preset on the target container and obtain the barcode information.
[0039] A sample detector, comprising a sample injection module and a detection module, wherein the detection module comprises any of the aforementioned rotary barcode scanning mechanisms.
[0040] The aforementioned rotary barcode scanning mechanism, method, apparatus, and sample detector, through a first driving mechanism driving a roller to move relative to a target container, and when a preset tightness is reached between the roller and the target container, a second driving mechanism drives the roller to rotate, thereby causing the target container to rotate. This allows the scanning head to scan the barcode preset on the target container and obtain barcode information. This achieves rotary barcode scanning of the target container, thus saving manpower and improving the efficiency of scanning the target container. Furthermore, the controller in the rotary barcode scanning mechanism, upon receiving an indication of the tightness between the roller and the target container, controls the first driving mechanism to move the roller away from the target container to a target position to control the preset tightness between the roller and the target container. This prevents the roller from pressing too loosely or too tightly against the target container, enabling the rotary barcode scanning mechanism to perform rotary barcode scanning operations on target containers of different diameters, improving the reliability of the scanning operation. Attached Figure Description
[0041] Figure 1 This is a schematic diagram of a rotating barcode scanning mechanism in one embodiment;
[0042] Figure 2 A side view of a rotating barcode scanner mechanism in one embodiment;
[0043] Figure 3 This is a flowchart illustrating a rotating barcode scanning method in one embodiment;
[0044] Figure 4 This is a structural block diagram of a rotating barcode scanning device in one embodiment. Detailed Implementation
[0045] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0046] Figure 1 This is a schematic diagram of a rotating barcode scanning mechanism provided in an embodiment of the present invention. Figure 2 This is a side view of a rotating barcode scanning mechanism provided in an embodiment of the present invention; as shown. Figure 1 and Figure 2 As shown, the organization includes:
[0047] Sweep the dock (not shown in the picture);
[0048] Roller 101;
[0049] Controller (not shown in the diagram);
[0050] First drive mechanism (not shown in the figure) and second drive mechanism (not shown in the figure);
[0051] The controller is used to control the first drive mechanism to move the drive roller relative to the target container 102, to control the second drive mechanism to rotate the drive roller 101 to drive the target container 102 to rotate, and to receive indication information representing the tightness between the roller 101 and the target container 102.
[0052] When the controller receives the instruction information, it controls the first drive mechanism to drive the roller 101 to move away from the target container 102 to the target position so as to control the roller 101 and the target container 102 to reach a preset tightness. It also controls the second drive mechanism to drive the roller 101 to rotate under the preset tightness so as to drive the target container 102 to rotate, so that the scanning dock can scan the barcode preset on the target container 102 and obtain the barcode information.
[0053] Specifically, a barcode scanner is a device used to scan barcodes to obtain the corresponding barcode information. This embodiment does not limit the specific type of barcode scanner; it is generally determined based on the type of barcode. In actual operation, the target container 102 is a test tube. Barcodes are pre-set on each target container 102, and the barcode scanner faces the target container 102. When the target container 102 is placed on the test tube rack, there may be situations where the barcode on the target container 102 is facing away from or to the side of the barcode scanner. In this case, the barcode scanner cannot scan the barcode and obtain the corresponding barcode information.
[0054] The controller is connected to the first drive mechanism and the second drive mechanism, which are respectively connected to the roller 101. The controller controls the first drive mechanism and the second drive mechanism to perform corresponding operations to realize the rotation scanning operation. Specifically, the first drive mechanism drives the roller 101 to move relative to the target container 102, including moving towards the target container 102 and moving away from the target container 102; the second drive mechanism drives the roller 101 to rotate, thereby rotating the target container 102. Furthermore, this embodiment does not limit the specific type of controller; it can be a central processing unit (CPU), a microcontroller, etc., as long as it can perform the operations required by the controller in this embodiment.
[0055] Specifically, both the second drive mechanism and the roller 101 are mounted on the frame. The controller moves the frame relative to the target container 102 by controlling the first drive mechanism, thereby driving the roller 101 to move towards the target container 102 and away from it. More specifically, the controller first obtains the initial stroke length of the roller 101, then controls the first drive mechanism to move the roller 101 towards the target container 102. During the movement of the roller 101, if an indication is received, the controller stops driving the roller 101; if no indication is received, the controller continues to drive the roller 101 until the stroke length of the roller 101 equals the initial stroke length, at which point the controller stops driving the roller 101. The initial stroke length is obtained based on the distance between the preset initial position of the roller 101 and the target container 102, and the minimum diameter of the target container 102.
[0056] Specifically, the roller 101 includes a driving wheel 1011 and a driven wheel 1012. The second drive mechanism is connected to the driving wheel 1011, and the driving wheel 1011 and the driven wheel 1012 are connected by a conveyor belt 1013. The controller controls the second drive mechanism to drive the driving wheel 1011 to rotate. The driving wheel 1011 drives the driven wheel 1012 to rotate using the conveyor belt 1013 between the driving wheel 1011 and the driven wheel 1012. Thus, when the driven wheel 1012 is in contact with the target container 102 and has friction, the driven wheel 1012 drives the target container 102 to rotate.
[0057] Specifically, when the controller receives the instruction information, it controls the first drive mechanism to stop driving the roller 101 to move. At this time, the roller 101 contacts the target container 102. The controller further controls the first drive mechanism to drive the roller 101 to move in a direction away from the target container 102 to the target position so as to control the roller 101 and the target container 102 to reach a preset tightness.
[0058] It should be noted that the indication information is information characterizing the tightness between the roller 101 and the target container 102, which can be determined based on the driving state of the first driving mechanism or the second driving mechanism or based on the pressure between the roller 101 and the target container 102. This embodiment does not limit this.
[0059] The preset tightness between roller 101 and target container 102 means that the contact pressure between roller 101 and target container 102 is such that roller 101 can just drive target container 102 to rotate. The preset tightness between roller 101 and target container 102 is achieved by driving roller 101 to move away from target container 102 to target position. This can be achieved by controlling the first drive mechanism to drive roller 101 to move a preset distance away from target container 102 to reach target position, or by driving roller 101 to move until the controller no longer receives instruction information to determine the target position. This embodiment does not limit this.
[0060] Specifically, after the first drive mechanism drives the roller 101 to move so that the roller 101 and the target container 102 reach a preset tightness, the second drive mechanism is further controlled to drive the roller 101 to rotate under the preset tightness to drive the target container 102 to rotate. During the rotation of the target container 102, the barcode preset on the target container 102 can rotate. When the barcode is facing the scanning terminal, the scanning terminal can scan the barcode preset on the target container 102 and obtain the barcode information.
[0061] This invention provides a rotary barcode scanning mechanism. A first drive mechanism moves a roller relative to a target container. Once a preset tension is achieved between the roller and the target container, a second drive mechanism rotates the roller, causing the target container to rotate as well. This allows the scanning head to scan the barcode pre-set on the target container and obtain the barcode information. This rotary barcode scanning mechanism saves manpower and improves scanning efficiency. Furthermore, the controller in the rotary barcode scanning mechanism, upon receiving an indication of the tension between the roller and the target container, controls the first drive mechanism to move the roller away from the target container to a target position to achieve the preset tension. This prevents the roller from pressing too loosely or too tightly against the target container, enabling the rotary barcode scanning mechanism to perform rotary scanning operations on target containers of different diameters and improving the reliability of the scanning operation.
[0062] For example, in one implementation, the first driving mechanism can be controlled to drive the roller 101 to move a fixed distance toward the target container 102, so that the roller 101 reaches a fixed position corresponding to the fixed distance. Then, the second driving mechanism is controlled to drive the roller 101 to rotate, thereby causing the target container 102 to rotate, so that the scanning dock can scan the barcode preset on the target container 102 and obtain the barcode information.
[0063] However, in practical applications, since the diameters of the target containers 102 to be scanned may vary, after the roller 101 moves a fixed distance, for target containers 102 with larger diameters, the roller 101 will press too tightly against them, causing the roller 101 to be unable to rotate the target container 102 or to move the test tube rack along with it. For target containers 102 with smaller diameters, the roller 101 will press too loosely against them or not contact the test tubes, causing the roller 101 to be unable to rotate the target container 102. To address this issue, a spring can be added to the side of the driven wheel 1012 in the roller 101 away from the target container 102 to accommodate target containers 102 of different diameters. The spring causes the driven wheel 1012 to press against the target container 102. If the friction between the target container 102 and the roller 101 is high, the spring behind the driven wheel 1012 will be compressed and pushed backward, and then pushed forward again by the spring. This repeated action will cause vibration and abnormal noise.
[0064] In comparison, the embodiments of the present invention, upon receiving indication information representing the tightness between the roller and the target container, control the first drive mechanism to move the roller away from the target container to the target position to control the roller and the target container to reach a preset tightness, so that the roller does not press too loosely or too tightly on the target container. This allows the rotary scanning mechanism to perform rotary scanning operations on target containers of different diameters, improving the reliability of the scanning operation; and avoids using springs to press the target container, thereby avoiding vibration and abnormal noise of the rotary scanning mechanism.
[0065] Based on the above embodiments, this embodiment further explains and optimizes the technical solution. Specifically, in this embodiment, the indication information includes:
[0066] Information indicating that the first drive mechanism is stalled and / or the drive of the second drive mechanism is obstructed and / or the pressure on the roller 101 exceeds a preset pressure threshold.
[0067] Specifically, in this embodiment, the indication information used to characterize the tightness between the roller 101 and the target container 102 can be information indicating that the first drive mechanism has stalled. Specifically, stalling of the first drive mechanism refers to a situation where, when the first drive mechanism drives the roller 101 to move towards the target container 102, the first drive mechanism still outputs torque at a rotational speed of 0 revolutions per minute. This indicates that the roller 101 is in contact with the target container 102, and the target container 102 is preventing the roller 101 from continuing to move towards the target container 102.
[0068] Furthermore, the indication information used to characterize the tightness between roller 101 and target container 102 can also be information indicating that the second drive mechanism is obstructed. It should be noted that when the second drive mechanism drives roller 101 to rotate, thereby rotating target container 102, the friction between roller 101 and target container 102 will obstruct the second drive mechanism. When the pressure between roller 101 and target container 102 is too high, the friction between them will be too high, indicating that the second drive mechanism is obstructed.
[0069] Additionally, the indication information used to characterize the tightness between the roller 101 and the target container 102 can also be information that the pressure on the roller 101 exceeds a preset pressure threshold. By directly detecting the pressure between the roller 101 and the target container 102, if the pressure on the roller 101 exceeds the preset pressure threshold, that is, the tightness between the roller 101 and the target container 102 is too tight, the corresponding indication information is obtained.
[0070] It should also be noted that the controller can receive the above three types of information, or any two of the above three types of information, or any one of the above three types of information, which means that it has received the instruction information. This embodiment does not limit this.
[0071] In a preferred embodiment, the controller acquires a first electrical signal of the first drive mechanism and / or a second electrical signal of the second drive mechanism;
[0072] When the first electrical signal changes, it is determined that the first drive mechanism has stalled;
[0073] When the second electrical signal exceeds the signal threshold, it is determined that the drive of the second drive mechanism is blocked.
[0074] Specifically, in this embodiment, by acquiring the first electrical signal of the first drive mechanism, when the first electrical signal changes, it indicates that the first drive mechanism is stalled, and at this time, the information that the first drive mechanism is stalled is obtained.
[0075] Specifically, by acquiring the second electrical signal of the second drive mechanism, when the second electrical signal changes, it indicates that the second drive mechanism is driving the target container 102 to rotate by driving the roller 101 to rotate; when the second electrical signal exceeds the preset signal threshold, it indicates that the drive of the second drive is blocked, thus obtaining the information that the drive of the second drive mechanism is blocked.
[0076] In a preferred embodiment, the first drive mechanism or the second drive mechanism is a motor, and the first electrical signal or the second electrical signal is a current signal flowing through the motor.
[0077] Specifically, an electric motor is an electromagnetic device that converts or transmits electrical energy based on the law of electromagnetic induction. The main function of an electric motor is to generate driving torque and serve as a power source for electrical appliances or various machines. This embodiment does not limit the specific type of electric motor.
[0078] For example, a process for determining whether the first drive motor is stalled includes: first, setting a preset threshold, then determining the difference between the current value and the standard current value, that is, determining the change in current at the current moment. If the change is greater than the preset threshold, it indicates that the electrical signal has changed, and thus it is determined that the first drive mechanism is stalled.
[0079] It is understandable that, since current signals are easy to detect and judge, they can be used to conveniently, intuitively and accurately determine information about the stall of the first drive mechanism and / or the obstruction of the drive of the second drive mechanism.
[0080] In a preferred embodiment, the controller receives the pressure value detected by the pressure sensor, and determines that the pressure on the roller 101 exceeds the preset pressure threshold when the pressure value exceeds the preset pressure threshold; wherein the pressure sensor is preset on the roller 101.
[0081] Specifically, in this embodiment, a pressure sensor is installed on the roller 101. When the roller 101 contacts the target container 102, the pressure sensor will detect the pressure value between the roller 101 and the target container 102. After receiving the pressure value, the controller compares the pressure value with a preset pressure threshold. When the received pressure value exceeds the preset pressure threshold, it indicates that the pressure between the roller 101 and the target container 102 is too high, that is, the tightness between the roller 101 and the target container 102 is too tight. At this time, an indication message is determined.
[0082] As can be seen, this embodiment can determine the indication information based on whether the first electrical signal changes, whether the second electrical signal exceeds the signal threshold, and whether the pressure value between the roller and the target sensor exceeds the preset pressure threshold. It can flexibly select the corresponding method to determine the indication information according to the actual situation, and can use multiple methods to determine the indication information, thereby improving the accuracy of the determined indication information.
[0083] Based on the above embodiments, this embodiment further explains and optimizes the technical solution. Specifically, in this embodiment, after the roller 101 drives the target container 102 to rotate a preset number of times, the controller controls the second drive mechanism to stop driving the roller 101 to rotate and controls the first drive mechanism to drive the roller 101 to move to a preset initial position.
[0084] Specifically, in this embodiment, during the process of using a scanning dock to scan the rotating target container 102 to obtain barcode information corresponding to the barcode preset on the target container 102, the number of rotations of the target container 102 driven by the roller 101 is further counted and compared with a preset number of rotations. When the target container 102 reaches the preset number of rotations, if the scanning dock still has not scanned a barcode or obtained the corresponding barcode information, it indicates that the target container 102 may not have a barcode, or the barcode on the target container 102 may be damaged. Then, the second drive mechanism is controlled to stop driving the roller 101 to rotate, and the first drive mechanism is controlled to drive the roller 101 to move away from the target container 102 until the roller 101 reaches a preset initial position. The preset initial position refers to the starting position when the roller 101 begins to move towards the target container 102. The controller controlling the first drive mechanism to stop driving the roller 101 to move means that the controller issues a control command to the first drive mechanism to stop its operation.
[0085] As can be seen, this embodiment further considers the situation where the barcode information of the target container cannot be obtained. After the target container rotates a preset number of times, the second drive mechanism is controlled to stop driving the roller to rotate and the first drive mechanism is controlled to drive the roller to move to a preset initial position. This can avoid the second drive mechanism from continuously driving the roller to rotate the target container, thereby avoiding the waste of control resources.
[0086] Based on the above embodiments, this embodiment further explains and optimizes the technical solution. Specifically, in this embodiment, after receiving the barcode information scanned by the scanning dock, the controller controls the second drive mechanism to stop the rotation of the drive roller 101 and controls the first drive mechanism to drive the roller 101 to move to the preset initial position.
[0087] In this embodiment, the barcode on the target container 102 is scanned at the scanning dock, the corresponding barcode information is obtained, and the barcode information is sent to the controller. That is, after the controller obtains the barcode information of the target container 102, it indicates that the rotational scanning operation of the target container 102 has been completed. Therefore, it controls the second drive mechanism to stop driving the roller 101 to rotate and controls the first drive mechanism to drive the roller 101 to move away from the target container 102 until the roller 101 reaches a preset initial position. The preset initial position refers to the starting position when the roller 101 begins to move towards the target container 102. The controller controlling the first drive mechanism to stop driving the roller 101 to move means that the controller issues a control command to the first drive mechanism to stop its operation.
[0088] As can be seen, in this embodiment, after the controller receives the barcode information scanned by the scanning dock, it controls the roller to move to a preset initial position so as to move the test tube rack and perform a rotational scanning operation on the next target container on the test tube rack.
[0089] Based on the above embodiments, this embodiment further explains and optimizes the technical solution. Specifically, in this embodiment, the mechanism also includes an optical coupler disposed beside the preset initial position and connected to the controller. The controller determines whether the roller 101 moves to the preset initial position based on whether it receives the control signal from the optical coupler. When the roller 101 moves to the position between the transmitter and receiver of the optical coupler, causing the optical signal transmission between the transmitter and receiver to be interrupted, a control signal is generated.
[0090] Specifically, an optocoupler is a device that uses light as a medium to transmit electrical signals. It encapsulates a transmitter, such as an infrared light-emitting diode (LED), and a receiver, such as a photosensitive semiconductor tube, in the same housing. After receiving an electrical signal, the transmitter emits a corresponding light signal, and after receiving the light signal, the receiver generates a corresponding photocurrent and outputs it, thereby realizing the "electric-to-optical-to-electric" conversion.
[0091] In this embodiment, an optical coupler is set next to the pre-initial position. When the roller 101 moves between the transmitter and receiver of the optical coupler, the light signal emitted by the transmitter is blocked by the roller 101 and cannot be transmitted to the receiver. The receiver of the optical coupler does not receive the light signal emitted by the transmitter of the optical coupler, and the "electric-optical-electric" conversion is interrupted. At this time, a control signal is generated.
[0092] It should be noted that the operation method of using optocouplers to determine whether the roller has reached the preset initial position in this embodiment is convenient and easy to implement; and optocouplers have advantages such as small size, long life, no contacts, strong anti-interference ability, insulation between output and input, and unidirectional signal transmission.
[0093] Based on the above embodiments, this embodiment further explains and optimizes the technical solution. Specifically, in this embodiment, when receiving the instruction information, the controller controls the first drive mechanism to drive the roller 101 to move a preset distance away from the target container 102 or to drive the roller 101 to move until the controller no longer receives the instruction information.
[0094] In this embodiment, the target position can be determined by controlling the first drive mechanism to drive the roller 101 to move a preset distance away from the target container 102. The preset distance is set based on the actual experience of the technicians, and the specific length of the preset distance is not limited in this embodiment. In actual operation, after determining the preset distance, a preset step size corresponding to the preset distance is determined based on factors such as the motor torque of the first drive mechanism. By driving the first drive mechanism to rotate by the preset step size, the first drive mechanism can be controlled to drive the roller 101 to retract a preset distance corresponding to the preset step size.
[0095] Alternatively, during the movement of the drive roller 101 away from the target container 102, it is possible to detect in real time whether an indication of the tightness between the roller 101 and the target container 102 is received. When no indication is received, it indicates that the roller 101 and the target container 102 have reached a preset tightness. At this time, the roller 101 has moved to the target position. Therefore, the first drive mechanism is controlled to stop driving the roller 101 to move, and the second drive mechanism is controlled to drive the roller 101 to rotate to achieve rotary scanning.
[0096] As can be seen, the method of this embodiment controls the roller to move to the target position so that the roller and the target container reach a preset tightness, and the operation is convenient and accurate.
[0097] In one embodiment, such as Figure 3 As shown, a rotary scanning method is provided, which is applied to the controller of any of the above-mentioned rotary scanning mechanisms, and includes the following steps:
[0098] Step 302: Control the first drive mechanism to drive the roller to move in the direction closer to the target container;
[0099] Step 304: When receiving the indication information representing the tightness between the roller and the target container, control the first drive mechanism to drive the roller to move away from the target container to the target position so as to control the roller and the target container to reach the preset tightness.
[0100] Step 306: Control the second drive mechanism to drive the roller to rotate at a preset tension level so that the target container can rotate, enabling the scanning dock to scan the barcode preset on the target container and obtain the barcode information.
[0101] For details on the specific implementation of the rotating scanning method, please refer to the technical content described above regarding the rotating scanning mechanism; further details will not be provided here.
[0102] This invention provides a rotary barcode scanning method. A first driving mechanism drives a roller to move relative to a target container. Once a preset tension is reached between the roller and the target container, a second driving mechanism drives the roller to rotate, causing the target container to rotate as well. This allows the scanning terminal to scan the barcode pre-set on the target container, acquiring the barcode information and performing rotary barcode scanning on the target container. This saves manpower and improves the efficiency of scanning the target container. Furthermore, upon receiving an indication of the tension between the roller and the target container, this method controls the first driving mechanism to move the roller away from the target container to a target position to achieve the preset tension. This prevents the roller from pressing too loosely or too tightly against the target container, enabling the rotary barcode scanning mechanism to perform rotary barcode scanning operations on target containers of different diameters, thus improving the reliability of the scanning operation.
[0103] Based on the above embodiments, this embodiment further explains and optimizes the technical solution. Specifically, in this embodiment, the indication information includes:
[0104] Information indicating that the first drive mechanism is stalled and / or the drive of the second drive mechanism is obstructed and / or the pressure on the roller exceeds a preset pressure threshold.
[0105] Based on the above embodiments, this embodiment further explains and optimizes the technical solution. Specifically, in this embodiment, the process of obtaining information about the stalling of the first drive mechanism and the driving obstruction of the second drive mechanism includes:
[0106] Acquire the first electrical signal of the first drive mechanism and / or the second electrical signal of the second drive mechanism;
[0107] When the first electrical signal changes, it is determined that the first drive mechanism has stalled;
[0108] When the second electrical signal exceeds the signal threshold, it is determined that the drive of the second drive mechanism is blocked.
[0109] In a preferred embodiment, the process of obtaining information that the pressure on the roller exceeds a preset pressure threshold includes:
[0110] The system receives pressure values detected by a pressure sensor and determines that the pressure on the roller exceeds a preset pressure threshold when the pressure value exceeds the preset pressure threshold; wherein, the pressure sensor is preset on the roller.
[0111] In a preferred embodiment, the first drive mechanism or the second drive mechanism is a motor, and the first electrical signal or the second electrical signal is a current signal flowing through the motor.
[0112] In a preferred embodiment, after the roller drives the target container to rotate a preset number of times, the second drive mechanism is controlled to stop driving the roller to rotate and the first drive mechanism is controlled to drive the roller to move to a preset initial position.
[0113] In a preferred embodiment, after receiving the barcode information scanned by the dock, the second drive mechanism is controlled to stop the rotation of the drive roller and the first drive mechanism is controlled to move the drive roller to a preset initial position.
[0114] In a preferred embodiment, the process of determining the preset initial position includes:
[0115] Whether the roller moves to the preset initial position is determined by whether a control signal is received from the optocoupler located next to the preset initial position; wherein, when the roller moves to the position between the transmitter and receiver of the optocoupler, causing the optical signal transmission between the transmitter and receiver to be interrupted, a control signal is generated.
[0116] In a preferred embodiment, upon receiving an instruction, the process of controlling the first drive mechanism to move the roller along a direction away from the target container to the target position includes:
[0117] Control the first drive mechanism to move the roller a preset distance away from the target container, or move the roller until the controller no longer receives instruction information.
[0118] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps.
[0119] In one embodiment, such as Figure 4 As shown, a rotating barcode scanning device is provided, comprising: a first control module 401, a second control module 402, and a third control module 403, wherein:
[0120] The first control module 401 is used to control the first drive mechanism to drive the roller to move in a direction close to the target container;
[0121] The second control module 402 is used to control the first drive mechanism to drive the roller to move in a direction away from the target container to the target position when it receives the indication information representing the tightness between the roller and the target container, so as to control the roller and the target container to reach a preset tightness.
[0122] The third control module 403 is used to control the second drive mechanism to drive the roller to rotate under a preset tension level, thereby causing the target container to rotate, so that the scanning dock can scan the barcode preset on the target container and obtain the barcode information.
[0123] The present invention provides a rotary scanning device that determines whether to control the first driving mechanism to stop driving the roller to move by detecting whether the first driving mechanism is stalled. In other words, it determines whether to control the roller to stop moving based on the pressure between the roller and the target container, so that the roller does not press too loosely or too tightly on the target container. This enables rotary scanning operations for target containers of different diameters and improves the reliability of the scanning operation.
[0124] Specific limitations regarding the rotary scanning device can be found in the limitations of the rotary scanning method described above, and will not be repeated here. Each module in the aforementioned rotary scanning device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0125] In one embodiment, a sample detector is also provided, which includes a sample injection module and a detection module, wherein the detection module includes any of the aforementioned rotary scanning mechanisms.
[0126] The sample detector provided in this embodiment of the invention has the beneficial effects corresponding to the rotating barcode scanning mechanism described above.
[0127] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the methods described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical storage, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.
[0128] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0129] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. A rotary barcode scanning mechanism, characterized in that, The institutions include: Sweep the docks; Roller; Controller; The first drive mechanism and the second drive mechanism; The controller is used to control the first drive mechanism to drive the roller to move relative to the target container, to control the second drive mechanism to drive the roller to rotate so as to drive the target container to rotate, and to receive indication information characterizing the tightness between the roller and the target container; When the controller receives the instruction information, it obtains the initial stroke length of the roller and controls the first drive mechanism to drive the roller to move towards the target container. During the movement of the roller, if the instruction information is obtained, the controller controls the first drive mechanism to stop driving the roller to move. If the instruction information is not received, the controller continues to control the first drive mechanism to drive the roller to move until the stroke length of the roller is equal to the initial stroke length. Then, the controller controls the first drive mechanism to stop driving the roller to move, so as to control the roller and the target container to reach a preset tightness. The controller also causes the second drive mechanism to drive the roller to rotate under the preset tightness to drive the target container to rotate, so that the scanning dock can scan the barcode preset on the target container and obtain the barcode information. The initial stroke length is obtained based on the distance between the preset initial position of the roller and the target container and the minimum diameter of the target container.
2. The mechanism according to claim 1, characterized in that, The indication information includes: Information indicating that the first drive mechanism is stalled and / or the drive of the second drive mechanism is obstructed and / or the pressure on the roller exceeds a preset pressure threshold.
3. The mechanism according to claim 2, characterized in that, The controller acquires a first electrical signal from the first drive mechanism and / or a second electrical signal from the second drive mechanism; When the first electrical signal changes, it is determined that the first drive mechanism has stalled; When the second electrical signal exceeds the signal threshold, information indicating that the drive of the second drive mechanism is blocked is determined.
4. The mechanism according to claim 2, characterized in that, The controller receives a pressure value detected by a pressure sensor, and when the pressure value exceeds the preset pressure threshold, it determines that the pressure on the roller exceeds the preset pressure threshold; wherein the pressure sensor is preset on the roller.
5. The mechanism according to claim 3, characterized in that, The first driving mechanism or the second driving mechanism is a motor, and the first electrical signal or the second electrical signal is a current signal flowing through the motor.
6. The mechanism according to claim 1, characterized in that, After the roller drives the target container to rotate a preset number of times, the controller controls the second drive mechanism to stop driving the roller to rotate and controls the first drive mechanism to drive the roller to move to a preset initial position.
7. The mechanism according to claim 1, characterized in that, After receiving the barcode information scanned by the scanning dock, the controller controls the second drive mechanism to stop driving the roller to rotate and controls the first drive mechanism to drive the roller to a preset initial position.
8. The mechanism according to claim 7, characterized in that, The mechanism also includes an optocoupler disposed beside the preset initial position and connected to the controller. The controller determines whether the roller has moved to the preset initial position based on whether it receives a control signal from the optocoupler. The control signal is generated when the roller moves to a position between the transmitter and receiver of the optocoupler, causing the optical signal transmission between the transmitter and the receiver to be interrupted.
9. The mechanism according to any one of claims 1 to 8, characterized in that, Upon receiving the instruction information, the controller controls the first drive mechanism to drive the roller to move a preset distance away from the target container, or to drive the roller to move until the controller no longer receives the instruction information.
10. A rotary scanning method, applied to the rotary scanning mechanism as described in any one of claims 1 to 9, characterized in that, The method includes: Control the first drive mechanism to drive the roller to move in a direction closer to the target container; When an indication message representing the tightness between the roller and the target container is received, the initial stroke length of the roller is obtained, and the first drive mechanism is controlled to drive the roller to move towards the target container. During the movement of the roller, if the indication message is obtained, the first drive mechanism is controlled to stop driving the roller to move. If the indication message is not received, the first drive mechanism is controlled to continue driving the roller to move until the stroke length of the roller is equal to the initial stroke length. Then, the first drive mechanism is controlled to stop driving the roller to move, so as to control the roller and the target container to reach a preset tightness. The initial stroke length is obtained based on the distance between the preset initial position of the roller and the target container and the minimum diameter of the target container. The second drive mechanism is controlled to drive the roller to rotate at the preset tension level, thereby causing the target container to rotate, so that the scanning terminal can scan the barcode preset on the target container and obtain the barcode information.
11. The method according to claim 10, characterized in that, The indication information includes: Information indicating that the first drive mechanism is stalled and / or the drive of the second drive mechanism is obstructed and / or the pressure on the roller exceeds a preset pressure threshold.
12. The method according to claim 11, characterized in that, The process of acquiring information about a stall in the first drive mechanism and information about a drive obstruction in the second drive mechanism includes: Detect the first electrical signal of the first drive mechanism and / or the second electrical signal of the second drive mechanism; When the first electrical signal changes, it is determined that the first drive mechanism has stalled; When the second electrical signal exceeds the signal threshold, it is determined that the drive of the second drive mechanism is blocked.
13. The method according to claim 11, characterized in that, The process of obtaining information that the pressure on the roller exceeds the preset pressure threshold includes: The system receives a pressure value detected by a pressure sensor, and when the pressure value exceeds a preset pressure threshold, it determines that the pressure on the roller exceeds the preset pressure threshold; wherein the pressure sensor is preset on the roller.
14. A rotary barcode scanning device, characterized in that, The device includes: The first control module is used to control the first drive mechanism to drive the roller to move in a direction close to the target container; The second control module is used to, when receiving indication information representing the tightness between the roller and the target container, obtain the initial stroke length of the roller and control the first drive mechanism to drive the roller to move towards the target container. During the movement of the roller, if the indication information is obtained, the first drive mechanism is controlled to stop driving the roller to move. If the indication information is not received, the first drive mechanism is continuously controlled to drive the roller to move until the stroke length of the roller is equal to the initial stroke length. Then, the first drive mechanism is controlled to stop driving the roller to move, so as to control the roller and the target container to reach a preset tightness. The initial stroke length is obtained based on the distance between the preset initial position of the roller and the target container and the minimum diameter of the target container. The third control module is used to control the second drive mechanism to drive the roller to rotate at the preset tension level, thereby causing the target container to rotate, so that the scanning dock can scan the barcode preset on the target container and obtain the barcode information.
15. A sample detector, characterized in that, The sample detector includes a sample injection module and a detection module, wherein the detection module includes a rotary barcode scanning mechanism as described in any one of claims 1 to 9.