A socket dust cover control method, system, storage medium and intelligent terminal
By automatically controlling the dust cover of the socket to open and return to its initial clearance angle during disinfection testing, the problem of excessive manual operation before socket disinfection in pharmaceutical production workshops is solved, disinfection efficiency is improved, short circuits are prevented, and the sockets are kept clean.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-23
- Publication Date
- 2026-03-31
AI Technical Summary
In pharmaceutical manufacturing workshops, where there are many sockets, the dust covers need to be opened manually before disinfection, resulting in a large workload and low efficiency.
By acquiring disinfection detection trigger information, the system automatically controls the socket dust cover to rotate to the initial avoidance angle to open all socket holes, and restores it to the covered state after disinfection, reducing manual operation.
It improves disinfection efficiency, prevents short circuits in sockets and plugs, and keeps sockets clean.
Smart Images

Figure CN115793719B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of socket dustproof technology, and in particular to a socket dustproof cover control method, system, storage medium and smart terminal. Background Technology
[0002] A socket, also known as a power outlet or switch socket, is a receptacle that allows one or more electrical connections to be inserted. This facilitates connection to other circuits. The connection or disconnection of the circuit is achieved through the connection and disconnection of the wiring and copper components.
[0003] In related technologies, such as Chinese Patent No. CN209487833U, a rotating dustproof structure for a socket is disclosed, including a socket body. The lower end of the socket body is provided with a magnetic base, and the upper end of the socket body is provided with a rotating plate slot. A rotating plate is provided inside the rotating plate slot, and a pressing plate is provided in the middle of the rotating plate. A torsion switch is provided at the upper end of the pressing plate. A USB interface is provided on the surface of the rotating plate slot. A two-prong plug is provided on one side of the USB interface, a three-prong plug is provided on one side of the two-prong plug, and a Type-C interface is provided on one side of the three-prong plug. A sealing ring A is provided at the inner edge of the lower end of the rotating plate, and a sealing ring B is provided at the inner edge of the upper end of the rotating plate slot.
[0004] Regarding the aforementioned technologies, the inventors believe that when sockets are used in pharmaceutical production workshops, dust covers need to be installed to seal them when not in use. When the entire workshop needs to be sterilized or the sockets need to be used, the dust covers need to be opened. These tasks are all done manually by workshop staff. When there are many sockets in a workshop, the dust covers on all sockets need to be opened before the sterilization work begins, which results in a large workload for the staff and a waste of a lot of labor. There is still room for improvement. Summary of the Invention
[0005] To address the issue of excessive workload for workers when all sockets in a workshop require opening their dust covers before disinfection, this application provides a socket dust cover control method, system, storage medium, and smart terminal.
[0006] In a first aspect, this application provides a method for controlling a socket dust cover, which adopts the following technical solution:
[0007] A method for controlling a socket dust cover includes:
[0008] Obtain disinfection detection trigger information and current status information;
[0009] When disinfection detection trigger information is obtained, it is determined whether the current status information is the preset fully open status information;
[0010] If so, maintain the fully open status information;
[0011] If not, obtain the cover angle information within the preset moving area information;
[0012] The angle difference information is calculated based on the cover angle information and the initial avoidance angle information preset within the movement area information;
[0013] The difference in the rotation angle of the dust cover is used to determine the fully open state.
[0014] After the disinfection detection trigger information disappears, the dust cover will be rotated in the opposite direction by the angle difference information to achieve the preset full shielding state information.
[0015] By adopting the above technical solution, when the disinfection detection is triggered, the rotation process is automatically triggered, so that all dust covers are rotated to the initial avoidance angle information so that all socket holes are open, and then disinfection is carried out. After disinfection, the covers are automatically restored to the fully covered state to prevent dust, reducing manual operation and improving disinfection efficiency.
[0016] Optionally, methods for determining movement area information include:
[0017] Obtain information on the inserted plug and the angle of the inserted socket;
[0018] Determine if the angle information of the inserted socket is greater than 1.
[0019] If there is more than one, the angle information of the inserted sockets will be sorted to obtain the angle sorting information of the inserted sockets;
[0020] Based on the angle sorting information of the inserted sockets, the angle group information of two adjacent sockets is analyzed;
[0021] The angular range between two adjacent socket angle groups is defined as the movement area information;
[0022] If there is one or fewer, then the preset full-area information will be defined as mobile area information.
[0023] By adopting the above technical solution, it is possible to determine whether the socket can be divided into multiple areas by judging whether it has been inserted. The purpose of this is to determine whether the dust cover can be moved to the initial avoidance angle information, thereby improving the smoothness of the dust cover movement.
[0024] Optionally, it also includes a method for opening the dust cover when the current status information is a preset fully closed status information, the method including:
[0025] Obtain the information of the front image;
[0026] The feature information of the nearby object in the previous image information is analyzed, and the expected plug type information is also analyzed.
[0027] Matching analysis is performed based on the socket type information, socket angle information and expected plug type information stored in the preset matching database to determine the socket type and socket angle corresponding to the expected plug type information. The socket type is defined as the target socket type information and the socket angle is defined as the target socket angle information.
[0028] Determine whether the angle information of the target socket falls within the movement area information;
[0029] If it falls into the target socket, the dust cover number information and the target socket angle information stored in the preset obstruction database will be matched and analyzed to determine the dust cover number corresponding to the target socket angle information, and the dust cover number will be defined as the target dust cover number information.
[0030] Based on the adjacent avoidance area information, adjacent avoidance angle information and target socket angle information stored in the preset adjacent database, a matching analysis is performed to determine the adjacent avoidance area and adjacent avoidance angle corresponding to the target socket angle information. The adjacent avoidance area is defined as the target avoidance area information, and the adjacent avoidance angle is defined as the target avoidance angle information.
[0031] The movement angle information is calculated based on the target avoidance angle information and the target socket angle information;
[0032] Rotate the dust cover corresponding to the target dust cover number according to the moving angle information;
[0033] After the feature information of the nearby object disappears, the dust cover corresponding to the target dust cover number information is rotated in the opposite direction according to the movement angle information.
[0034] If it does not fall into the range, no action is taken.
[0035] By adopting the above technical solution, since the dust cover on the socket is generally in a covered state, the dust cover can be automatically opened when a plug is about to be inserted by determining whether there is an image of a plug about to be inserted into the socket. This prevents the dust cover from rebounding and causing damage, reduces the time spent manually opening the dust cover, and improves the smoothness of the dust cover management system and the service life of the dust cover.
[0036] Optionally, if the angle information of the inserted socket is less than or equal to 1, the method of rotating the dust cover by the angle difference information to achieve the fully open state information includes:
[0037] Determine if the angle information of the inserted socket exists;
[0038] If it exists, then match and analyze the rotation trajectory information, angle difference information and cover angle information stored in the preset rotation database to determine the rotation trajectory corresponding to the angle difference information and cover angle information, and define the rotation trajectory as the expected rotation trajectory information.
[0039] Determine whether the angle information of the inserted socket falls within the expected rotation trajectory information;
[0040] If it falls within the expected rotation trajectory information, the reverse angle difference information is calculated based on the angle difference information and the preset reverse angle information;
[0041] The dust cover is rotated in the opposite direction of the angle difference to achieve a fully open state.
[0042] If it does not fall within the expected rotation trajectory information, the dust cover rotation angle difference information will be used to achieve the fully open state information;
[0043] If not, the dust cover rotation angle difference information will be used to achieve the fully open state information.
[0044] By adopting the above technical solution, when the dust cover moves to the trajectory of the initial avoidance angle information and there is a plug already inserted in the socket, it can avoid the plug by rotating in the opposite direction, thus improving the smoothness of the dust cover returning to the position of the initial avoidance angle information.
[0045] Optionally, if there is information on the inserted socket angle and disinfection detection trigger information, the method for controlling the socket dust cover includes:
[0046] Determine whether the inserted plug information is the preset plug information with a flange;
[0047] If so, obtain the activity dust cover number information sorted by depth and the current angle information;
[0048] Filter out the activity dust cover number information with the deepest depth, define it as the deepest activity dust cover number information, and define its corresponding current angle information as the deepest angle information;
[0049] The metal angle range information and the inserted plug information stored in the preset item database are matched and analyzed to determine the metal angle range information corresponding to the inserted plug information.
[0050] The warping angle information is calculated based on the deepest angle information and the metal angle range information;
[0051] The reverse tilt angle information is calculated based on the metal angle range information and the reverse angle information.
[0052] Rotate the deepest active dust cover number information with the tilt angle information until the current angle information is one of the boundary values of the metal angle range information, then rotate in the opposite direction and tilt the angle information in the opposite direction until the current angle information is the other boundary value of the metal angle range information;
[0053] Delete and update the deepest movable dust cover number information, and recalculate the tilt angle information and reverse tilt angle information. Then rotate according to the tilt angle information and reverse tilt angle information until the deepest movable dust cover number information no longer exists or the plug information has been inserted.
[0054] If not, no action will be taken.
[0055] By adopting the above technical solution, the bottom dust cover is inserted between the plug's baffle and the socket surface to lift the plug and detach it from the socket. This prevents short circuits caused by electrical continuity between the socket and plug during sterilization and disinfection, thus improving the socket's safety.
[0056] Optionally, the method of rotating the deepest active dust cover number information by tilting it up until the current angle information is one of the boundary values of the metal angle range information, and then rotating it in the opposite direction until the current angle information is another boundary value of the metal angle range information includes:
[0057] Obtain the motor rotation speed information when rotating the deepest active dust cover with the tilt angle information;
[0058] When the motor rotation speed information is equal to 0, determine whether the current angle information is one of the boundary values of the metal angle range information;
[0059] If so, then rotate in the opposite direction and tilt the angle information in the opposite direction until the current angle information is another boundary value of the metal angle range information;
[0060] If not, obtain the motor torque information;
[0061] Determine whether the motor torque information is less than the preset critical torque information;
[0062] If it is less than, then continue to increase the motor torque information and reacquire the motor rotation speed information;
[0063] If equal, then reverse the rotation and tilt the angle information until the current angle information is another boundary value of the metal angle range information.
[0064] By adopting the above technical solution, the motor rotation speed and rotation torque are determined to determine whether the plug can continue to be lifted. When the speed is insufficient to insert the plug and socket, the reverse rotation generates inertia and inserts the plug and socket, thus improving the efficiency of lifting the plug.
[0065] Optionally, you can arbitrarily select the avoidance area information and the corresponding avoidance angle information within the movement area information;
[0066] The opening angle information is calculated based on the cover angle information and the avoidance angle information;
[0067] Matching analysis is performed based on the rotation trajectory information, opening angle information, and cover angle information stored in the rotation database to determine the rotation trajectory corresponding to the opening angle information and cover angle information, and the rotation trajectory is defined as the ideal rotation trajectory information;
[0068] Determine whether the angle information of the inserted socket falls within the ideal expected rotation trajectory information;
[0069] If it falls in, the reverse opening angle information is calculated based on the opening angle information and the reverse angle information;
[0070] Calculate the sum of the absolute values of all opening angle information and reverse opening angle information, and define this sum as the total movement angle information;
[0071] Filter out the one with the smallest total movement angle information and define the total movement angle information as the minimum total movement angle information;
[0072] Update the initial angle information to the sum of the minimum movement angles;
[0073] If it does not fall into the range, calculate the sum of the absolute values of all opening angle information and define the sum as the positive angle sum information;
[0074] The one with the smallest sum of positive angles is selected and defined as the minimum sum of positive angles.
[0075] Update the initial angle information to the minimum positive angle sum information.
[0076] By adopting the above technical solution, the avoidance area with the smallest rotation angle is selected by calculating the sum of the angles reaching each avoidance area, so that all can be quickly rotated into the avoidance area within a single movement area. On the other hand, each operation is based on the inserted public information, so the initial angle information may be different each time, thus allowing all areas to be cleaned after multiple disinfections, improving the cleanliness of the socket.
[0077] Secondly, this application provides a socket dust cover control system, which adopts the following technical solution:
[0078] A socket dust cover control system, comprising:
[0079] The acquisition module is used to acquire disinfection detection trigger information, current status information, cover angle information, inserted plug information, inserted socket angle information, front image information, and motor rotation speed information;
[0080] A memory for storing the program of the control method for any of the above-mentioned socket dust cover control methods;
[0081] The processor and the program in the memory can be loaded and executed by the processor to implement any of the above-mentioned socket dust cover control methods.
[0082] By adopting the above technical solution, when the disinfection detection is triggered, the rotation process is automatically triggered, so that all dust covers are rotated to the initial avoidance angle information so that all socket holes are open, and then disinfection is carried out. After disinfection, the covers are automatically restored to the fully covered state to prevent dust, reducing manual operation and improving disinfection efficiency.
[0083] Thirdly, this application provides a smart terminal, which adopts the following technical solution:
[0084] The intelligent terminal includes a memory and a processor, the memory storing a computer program that can be loaded by the processor and executed any of the above-mentioned socket dust cover control methods.
[0085] By adopting the above technical solution, when the disinfection detection is triggered, the rotation process is automatically triggered, so that all dust covers are rotated to the initial avoidance angle information so that all socket holes are open, and then disinfection is carried out. After disinfection, the covers are automatically restored to the fully covered state to prevent dust, reducing manual operation and improving disinfection efficiency.
[0086] Fourthly, this application provides a computer storage medium capable of storing corresponding programs, characterized by sensitive detection and accurate operation.
[0087] Computer-readable storage media adopt the following technical solutions:
[0088] A computer-readable storage medium storing a computer program that can be loaded by a processor and executed any of the above-described socket dust cover control methods.
[0089] By adopting the above technical solution, when the disinfection detection is triggered, the rotation process is automatically triggered, so that all dust covers are rotated to the initial avoidance angle information so that all socket holes are open, and then disinfection is carried out. After disinfection, the covers are automatically restored to the fully covered state to prevent dust, reducing manual operation and improving disinfection efficiency.
[0090] In summary, this application includes at least the following beneficial technical effects:
[0091] 1. When the disinfection detection is triggered, all dust covers are rotated to the initial avoidance angle information so that all socket holes are open, reducing manual operation and improving disinfection efficiency;
[0092] 2. Insert the dust cover between the plug's baffle and the socket surface to detach the plug from the socket, preventing short circuits caused by electrical continuity between the socket and plug during sterilization and disinfection, thus improving the socket's safety.
[0093] 3. All devices within a single movement area can quickly rotate into the avoidance area, resulting in different initial angles each time. This allows all areas to be cleaned after multiple disinfection processes, improving the cleanliness of the sockets. Attached Figure Description
[0094] Figure 1 This is a flowchart of a socket dust cover control method in an embodiment of this application.
[0095] Figure 2 This is a schematic diagram of the socket and dust cover in the embodiments of this application.
[0096] Figure 3 This is a flowchart of the method for determining mobile area information in the embodiments of this application.
[0097] Figure 4 This is a flowchart of a method for opening the dust cover when the current state information is a preset fully enclosed state information in an embodiment of this application.
[0098] Figure 5 This is a flowchart illustrating a method in this application embodiment for rotating the dust cover by the angle difference information to achieve a fully open state when the angle information of the inserted socket is less than or equal to 1.
[0099] Figure 6 This is a flowchart illustrating the method for controlling the socket dust cover when there is inserted socket angle information and disinfection detection trigger information in an embodiment of this application.
[0100] Figure 7This is a flowchart of a method in this application embodiment for rotating the deepest active dust cover number information by tilting it up at an angle until the current angle information is one of the boundary values of the metal angle range information, and then rotating it in the opposite direction and tilting it up at an angle until the current angle information is another boundary value of the metal angle range information.
[0101] Figure 8 This is a flowchart of the method for determining initial angle information in the embodiments of this application.
[0102] Figure 9 This is a system block diagram of a socket dust cover control method according to an embodiment of this application. Detailed Implementation
[0103] To make the purpose, technical solution, and advantages of this application clearer, the following description is provided in conjunction with the appendix. Figure 1-9 The present application will be further described in detail below with reference to embodiments. It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the application.
[0104] This application discloses a method for controlling a socket dust cover. (Refer to...) Figure 1 A method for controlling a socket dust cover includes:
[0105] Step 100: Obtain disinfection detection trigger information and current status information.
[0106] The disinfection detection trigger information is a manually set message indicating that workshop disinfection and sterilization is about to begin. It is obtained by manually pressing the button that signals this. The current status information is the current state of the protective shield, including closed, partially closed, and fully open states. For example... Figure 2 As shown, the closed state is when all dust covers are in the area with the socket and are completely covered and sealed, while the semi-closed state is when they are partially covered and sealed, and the fully open state is when all the sockets are exposed to the air and are not covered by dust covers.
[0107] Step 101: When the disinfection detection trigger information is obtained, determine whether the current status information is the preset fully open status information.
[0108] The "fully open" status indicates that all sockets are exposed to the air and not covered by dust covers.
[0109] Step 1011: If so, maintain the fully open state information.
[0110] If so, it means that the sockets are exposed to the air and can be sterilized. Since pharmaceutical production workshops require sterilization of production equipment, all corners need to be sterilized, including sockets. Therefore, when the socket is fully open, no adjustment is needed.
[0111] Step 1012: If not, obtain the cover angle information within the preset moving area information.
[0112] The movable area information refers to the area where the dust cover can rotate around the center of the socket. Since an appliance plug is inserted into the socket, the cover angle information refers to the current angle of the cover. For example... Figure 2 As shown, it is equipped with an angle sensor, which can also be obtained through image recognition.
[0113] It should be noted that in this embodiment, the angle of the central axis of symmetry of all regions and objects is used as the angle determination line, that is, all angle information is information of the central axis of symmetry.
[0114] like Figure 2 As shown, if there are two locations with plugs, the area between the plugs and the area outside the two plugs are separate movable areas and cannot be accessed from the other area. If not, the angle at which the dust cover can be rotated needs to be determined to reach the open position. For example... Figure 2 As shown, a socket has at least two sockets, so the socket area has at least two sockets, and the other clearance areas have the same number. The number of dust covers is also the same. The dust covers rotate around the central axis and can be driven by a motor. The dust covers are arranged sequentially along the length of the motor shaft. When a dust cover needs to be moved closer, it is connected to the motor shaft in the inner ring. For example, there is a gear on the motor shaft. When needed, the motor shaft is extended or retracted to engage the gear with the inner ring of the corresponding dust cover, thus driving the dust cover to rotate. Therefore, the angle information of the cover is required.
[0115] Step 102: Calculate the angle difference information based on the cover angle information and the preset initial avoidance angle information within the moving area information.
[0116] The initial clearance angle information is the angle at which all sockets are exposed to the air when all dust covers are moved to this position. The angle difference information is the difference between the cover angle information and the initial clearance angle information; in fact, it is the rotation angle required to rotate from the angle corresponding to the cover angle information to the initial clearance angle information. It is calculated by subtracting the cover angle information from the initial clearance angle information. It has a positive or negative sign, but this sign only represents the direction of rotation.
[0117] Step 103: Adjust the dust cover rotation angle difference information to achieve a fully open state.
[0118] The "fully open" status information indicates that all sockets are open. Each dust cover corresponds to one angle difference; since they are all located on circles of different lengths, they will not collide with each other.
[0119] Step 104: After the disinfection detection trigger information disappears, rotate the dust cover in the opposite direction by the angle difference information to achieve the preset full shielding state information.
[0120] The full-coverage state information refers to the state where all sockets are covered. Each socket will return to its original covered state after rotating from its initial position according to its corresponding rotation angle difference information.
[0121] Reference Figure 3 Methods for determining mobile area information include:
[0122] Step 200: Obtain information on the inserted plug and the angle of the inserted socket.
[0123] The "Plug Inserted" information refers to the information of plugs already inserted into the socket. This can be obtained through image recognition, meaning that all dust covers are captured in the image and are within the avoidance area, while some sockets are not captured in the image, thus generating the "Plug Inserted" information. The "Socket Inserted" angle information refers to the angle of the socket corresponding to the plug already inserted. For example... Figure 2 As shown, this area also includes a nearby fan-shaped area.
[0124] Step 201: Determine if the angle information of the inserted socket is greater than 1.
[0125] Step 2011: If there is more than one, sort the angle information of the inserted sockets to obtain the angle sorting information of the inserted sockets.
[0126] The inserted socket angle sorting information consists of the angles of all inserted sockets relative to a given line, starting from that line as the initial angle. This information is obtained by sorting from smallest to largest. If there is more than one, it means there are at least two inserted plugs. These plugs affect the rotation of the dust cover, so the movable area of the dust cover between the plugs is only between the two plugs. Therefore, the plugs need to be sorted to determine which two plugs are adjacent.
[0127] Step 2012: If there is less than or equal to 1, then the preset full area information is defined as mobile area information.
[0128] The full area information refers to information about all areas on the surface of the socket. If the angle information of the inserted socket is less than or equal to 1, it means that the plug will not affect the movement of the dust cover into all the avoidance areas. Therefore, the full area information is the movement area information.
[0129] Step 202: Analyze the angle group information of two adjacent sockets based on the angle sorting information of the inserted sockets.
[0130] The angle group information for two adjacent sockets consists of the angles of adjacent sockets within the ranking of the inserted socket angle sorting information. The analysis method involves arbitrarily matching the angle information of two adjacent sockets in the sorting. The socket angles corresponding to the largest and smallest socket angles are also considered as two adjacent socket angle group information.
[0131] Step 203: Define the angle range between two adjacent socket angle groups as the movement area information.
[0132] When the movable area information is the angle range between two adjacent socket angle groups, the internal area is the area where the internal dust cover can move, so it can be defined as movable area information.
[0133] Reference Figure 4 It also includes a method for opening the dust cover when the current status information is a preset fully enclosed status information, the method including:
[0134] Step 300: Obtain the information of the front image.
[0135] The front-facing image information can be from an angle facing the socket, or from an angle approaching the socket. It is acquired using a camera.
[0136] Step 301: Analyze the feature information of the nearby object in the front image information and analyze the expected plug type information.
[0137] The "nearby object feature information" refers to the characteristics of objects near the socket. This involves image comparison, where images of all plugs are taken from different angles and compared with the preceding image information. The final consistent image feature is the "nearby object feature information." The "expected plug type information" refers to the type of plug that corresponds to the "nearby object feature information," such as a USB interface or a three-prong plug. The analysis method is the same as for the "nearby object feature information." While the "nearby object feature information" includes all features, the "expected plug type information" refers to the type of plug that corresponds to the "nearby object feature information."
[0138] Step 302: Perform matching analysis based on the socket type information, socket angle information and expected plug type information stored in the preset matching database to determine the socket type and socket angle corresponding to the expected plug type information, define the socket type as the target socket type information, and define the socket angle as the target socket angle information.
[0139] like Figure 2As shown, the target socket type information refers to the type of socket that can be matched with the expected plug type information. For example... Figure 2 As shown, the target socket angle information refers to the angle of the target socket type on the socket. The database stores a mapping relationship between socket type information, socket angle information, and expected plug type information. This mapping is input and stored by those skilled in the art, combining common sense with the types of sockets currently available and the measured corresponding angles. When the system receives the expected plug type information, it automatically retrieves the corresponding socket type and socket angle from the database and outputs them as the target socket type information and the target socket angle information, respectively.
[0140] Step 303: Determine whether the angle information of the target socket falls within the movement area information.
[0141] Step 3031: If it falls into the target socket, the dust cover number information and the target socket angle information stored in the preset obstruction database are matched and analyzed to determine the dust cover number corresponding to the target socket angle information, and the dust cover number is defined as the target dust cover number information.
[0142] The target dust cover number information corresponds to the dust cover information of the socket corresponding to the target socket angle information; that is, each socket position corresponds to one dust cover. The database stores the mapping relationship between dust cover number information and target socket angle information, which is pre-set by those skilled in the art. When the system receives the corresponding target socket angle information, it automatically looks up the corresponding dust cover number from the database and outputs it as the target dust cover number information.
[0143] Step 3032: If it does not fall into the range, no operation is performed.
[0144] Step 304: Based on the adjacent avoidance area information, adjacent avoidance angle information and target socket angle information stored in the preset adjacent database, perform matching analysis to determine the adjacent avoidance area and adjacent avoidance angle corresponding to the target socket angle information, define the adjacent avoidance area as target avoidance area information, and define the adjacent avoidance angle as target avoidance angle information.
[0145] The target avoidance area information refers to the area that the dust cover enters to avoid the plug inserted into the socket corresponding to the target socket angle information, such as the area adjacent to the target socket angle information. Figure 2As shown, each socket has a clearance zone nearby. The target clearance angle information is the angle corresponding to the target clearance zone. The database stores the mapping relationship between adjacent clearance zone information, adjacent clearance angle information, and target socket angle information, which is recorded by those skilled in the art based on the actual situation of the sockets. When the system receives the target socket angle information, it automatically looks up the corresponding adjacent clearance zone and adjacent clearance angle from the database and outputs them as target clearance zone information and target clearance angle information, respectively.
[0146] Step 305: Calculate the movement angle information based on the target avoidance angle information and the target socket angle information.
[0147] The movement angle information refers to the angle required to move from the dust cover at the angle corresponding to the target socket angle information to the angle corresponding to the target avoidance angle information. The calculation method is the subtraction of the two.
[0148] Step 306: Rotate the dust cover corresponding to the target dust cover number information according to the movement angle information.
[0149] Step 307: After the feature information of the nearby object disappears, rotate the dust cover corresponding to the target dust cover number information in the opposite direction according to the movement angle information.
[0150] Reference Figure 5 If the angle information of the inserted socket is less than or equal to 1, the method to rotate the dust cover by the angle difference information to achieve a fully open state includes:
[0151] Step 400: Determine if the angle information of the inserted socket exists.
[0152] The purpose of the judgment is to determine the direction of rotation.
[0153] Step 4001: If it exists, perform matching analysis based on the rotation trajectory information, angle difference information and cover angle information stored in the preset rotation database to determine the rotation trajectory corresponding to the angle difference information and cover angle information, and define the rotation trajectory as the expected rotation trajectory information.
[0154] The projected rotation trajectory information is the trajectory that would follow if the system rotated from the cover angle information according to the angle difference information. The database stores the mapping relationship between rotation trajectory information, angle difference information, and cover angle information, which is recorded and stored by those skilled in the art based on various angle possibilities. When the system receives angle difference information and cover angle information, it automatically retrieves the corresponding rotation trajectory from the database and outputs the projected rotation trajectory information.
[0155] Step 4002: If not, then use the dust cover rotation angle difference information to achieve the fully open state information.
[0156] If it does not exist, it means that there is no object interfering with the dust cover's trajectory, and you can directly rotate it based on the corresponding angle difference information.
[0157] Step 401: Determine whether the angle information of the inserted socket falls within the expected rotation trajectory information.
[0158] The purpose of the judgment is to determine whether the presence of an inserted plug will interfere with the movement of the dust cover.
[0159] Step 4011: If the rotation trajectory falls within the expected trajectory information, the reverse angle difference information is calculated based on the angle difference information and the preset reverse angle information.
[0160] The reverse angle information is the angle opposite to the rotation based on the angle difference information, and its magnitude is equal to 360°. The reverse angle difference information is the angle difference that allows reaching the destination from the opposite direction. It is calculated by subtracting the reverse angle information from the angle difference information. A negative value indicates the direction of the reverse rotation.
[0161] Step 4012: If it does not fall within the expected rotation trajectory information, then adjust the dust cover rotation angle difference information to achieve the fully open state information.
[0162] If it does not fall in, it means that although a plug is inserted into the socket, it does not affect the rotation of the dust cover. Therefore, the difference in the rotation angle of the dust cover is used to achieve the fully open state.
[0163] Step 402: Rotate the dust cover in the opposite direction by the angle difference information to achieve a fully open state.
[0164] Reference Figure 6 If there is information on the angle of the inserted socket and information on the disinfection detection trigger, the methods for controlling the socket dust cover include:
[0165] Step 500: Determine whether the inserted plug information is the preset plug information with a baffle.
[0166] The information regarding plugs with guards refers to plug types that have guards that rest against the socket surface, such as triangular plugs. Exposed plugs, such as USB data cables, typically have few guards. Because disinfection is required, sockets must be equipped with a detection system to check for plugs that are not unplugged in order to prevent leakage or short circuits.
[0167] Step 5001: If yes, obtain the activity dust cover number information sorted by depth and the current angle information.
[0168] The active dust cover number information refers to the dust cover's serial number, which is sorted by depth. Dust cover number 1 is the deepest dust cover and the one closest to the socket surface. The current angle information is the angle corresponding to the active dust cover's serial number. This information is obtained through camera capture or manual inspection.
[0169] Step 5002: If not, no operation is performed.
[0170] If not, it means the socket is safe and can be disinfected.
[0171] Step 501: Filter out the deepest active dust cover number information, define it as the deepest active dust cover number information, and define its corresponding current angle information as the deepest angle information.
[0172] The deepest active dust cover number information refers to the number of the dust cover with the deepest depth. The deepest angle information refers to the current angle of the dust cover corresponding to the deepest active dust cover number. The filtering method is based on numerical comparison; for example, the deepest point closest to the socket surface is defined as the active dust cover number. The purpose of filtering is also to facilitate sorting in subsequent operations.
[0173] Step 502: Perform a matching analysis based on the metal angle range information and the inserted plug information stored in the preset item database to determine the metal angle range information corresponding to the inserted plug information.
[0174] The metal angle range information refers to the relative angle range of the metal part inserted into the socket in the plug information on the socket. The database stores the mapping relationship between the metal angle range information and the plug information. That is, once the plug information is determined, the width values of both sides of its metal part are already determined. Therefore, when the plug angle information is determined, its metal angle range information is already determined.
[0175] Step 503: Calculate the warping angle information based on the deepest angle information and the metal angle range information.
[0176] The tilt angle information refers to the angle required to move from the deepest angle information to the boundary of the metal angle range information. When the dust cover moves to the boundary of the metal angle range information, it is now positioned between the retaining edge and the socket surface, meaning it has lifted the socket by the thickness of the dust cover. The calculation method involves subtracting the two angles on the same side.
[0177] Step 504: Calculate the reverse tilt angle information based on the metal angle range information and the reverse angle information.
[0178] The reverse tilt angle information is the angle information obtained by rotating in the opposite direction from a critical point in the metal angle range information to a critical point. It is calculated by subtracting the reverse angle information from the other side of the metal angle range information.
[0179] Step 505: Rotate the deepest active dust cover number information with the tilt angle information until the current angle information is one of the boundary values of the metal angle range information, then rotate in the opposite direction and tilt the angle information in the opposite direction until the current angle information is the other boundary value of the metal angle range information.
[0180] This movement causes the socket to lift up the thickness of the dust cover.
[0181] Step 506: Delete and update the deepest movable dust cover number information, and recalculate the tilt angle information and reverse tilt angle information. Then rotate according to the tilt angle information and reverse tilt angle information until the deepest movable dust cover number information no longer exists or the plug information has been inserted.
[0182] The purpose of deleting and updating the deepest active dust cover number information is to ensure that all dust covers sequentially lift the plug, thereby disengaging the plug from the socket.
[0183] It should be noted that, in order to facilitate the insertion of the dust cover between the two, the dust cover may have guide surfaces on both sides.
[0184] Reference Figure 7 The method of rotating the deepest active dust cover number information by tilting it up until the current angle information is one of the boundary values of the metal angle information, and then rotating it in the opposite direction until the current angle information is another boundary value of the metal angle information includes:
[0185] Step 600: Obtain the motor rotation speed information when rotating the deepest active dust cover with the tilt angle information.
[0186] The motor rotation speed information refers to the rotational speed of the motor shaft that drives the dust cover to turn. This information is obtained by installing a speed sensor on the motor shaft.
[0187] Step 601: When the motor rotation speed information is equal to 0, determine whether the current angle information is one of the boundary values of the metal angle range information.
[0188] When the motor rotation speed information is equal to 0, it means that either the motor has reached a position within the metal angle range information, or the resistance it encounters is too great, preventing the motor from continuing to move forward.
[0189] Step 6011: If so, rotate in the opposite direction and tilt the angle information in the opposite direction until the current angle information is another boundary value of the metal angle range information.
[0190] If so, it means that one side has been successfully lifted, and you can then rotate to lift the other side.
[0191] Step 6012: If not, obtain motor torque information.
[0192] The motor torque information refers to the torque force applied to the motor, obtained from a torque sensor. If this information is not available, it indicates that the resistance encountered is too great, preventing the motor from moving forward.
[0193] Step 602: Determine whether the motor torque information is less than the preset critical torque information.
[0194] The critical torque information is the rated torque of the motor.
[0195] Step 6021: If it is less than, continue to increase the motor torque information and reacquire the motor rotation speed information.
[0196] If it is less than, it means that the motor can output more torque, thereby increasing the torque.
[0197] Step 6022: If equal, then rotate in the opposite direction and tilt the angle information in the opposite direction until the current angle information is another boundary value of the metal angle range information.
[0198] If the torque is equal to the critical torque, it means that the motor cannot increase the torque to continue moving forward. In this way, it will rotate in the opposite direction. This will generate inertial force when it rotates forward again, so that the actual torque is greater than the critical torque information and continues to push the dust cover to insert between the two.
[0199] Reference Figure 8 It also includes a method for determining initial angle information, which includes:
[0200] Step 700: Randomly select the avoidance area information and the corresponding avoidance angle information within the movement area information.
[0201] The avoidance area information refers to the area where the corresponding socket area can be exposed for placing the dust cover. The avoidance angle information refers to the angle of the center of the avoidance area.
[0202] Step 701: Calculate the opening angle information based on the cover angle information and the avoidance angle information.
[0203] The opening angle information is the rotation angle required to move from the cover angle information to the avoidance angle information. It is calculated by subtracting the cover angle information from the avoidance angle information.
[0204] Step 702: Perform matching analysis based on the rotation trajectory information, opening angle information, and cover angle information stored in the rotation database to determine the rotation trajectory corresponding to the opening angle information and cover angle information, and define the rotation trajectory as the ideal rotation trajectory information.
[0205] The ideal rotation trajectory information is the information of the rotation trajectory that would be traversed if the rotation started from the cover angle information and proceeded according to the opening angle information. The establishment of the database has been described in section 4001.
[0206] Step 703: Determine whether the angle information of the inserted socket falls within the ideal expected rotation trajectory information.
[0207] Step 7031: If it falls in, calculate the reverse opening angle information based on the opening angle information and the reverse angle information.
[0208] If it falls in, it means the dust cover needs to be rotated in the opposite direction to reach the initial avoidance angle. The calculation method is to subtract the reverse angle information from the opening angle information.
[0209] Step 7032: If it does not fall into the range, calculate the sum of the absolute values of all opening angle information and define the sum as the positive angle sum information.
[0210] The positive angle summation information is the sum of the absolute values of all opening angle information. If it does not fall within this range, it means there is absolutely no plug interference trajectory, and calculation can begin directly.
[0211] Step 704: Calculate the sum of the absolute values of all opening angle information and reverse opening angle information, and define this sum as the total movement angle information.
[0212] The total movement angle information is the sum of the absolute values of all opening angle information and reverse opening angle information. Since some dust covers need to be rotated in the opposite direction, it is necessary to calculate the angle corresponding to the sum of forward and reverse rotation.
[0213] Step 705: Filter out the one with the smallest total movement angle information and define the total movement angle information as the minimum total movement angle information.
[0214] The minimum total movement angle information is the information with the smallest total movement angle, that is, the angle by which the dust cover needs to be rotated the smallest.
[0215] Step 706: Update the initial angle information to the minimum total movement angle information.
[0216] After the update, the initial angle information is the angle at which the dust cover consumes the least energy and moves the fastest during the process.
[0217] Step 707: Filter out the one with the smallest sum of positive angles and define the sum of the moving angles as the minimum sum of positive angles.
[0218] The minimum sum of positive angles is the information with the smallest sum of positive angles.
[0219] Step 708: Update the initial angle information to the minimum positive angle sum information.
[0220] The same steps as 706 will not be repeated here.
[0221] Based on the same inventive concept, embodiments of the present invention provide a socket dust cover control system.
[0222] Reference Figure 9 A socket dust cover control system, comprising:
[0223] The acquisition module is used to acquire disinfection detection trigger information, current status information, cover angle information, inserted plug information, inserted socket angle information, front image information, and motor rotation speed information;
[0224] A memory for storing a program for a control method of a socket dust cover control method;
[0225] A control method that allows a program in a processor or memory to be loaded and executed by the processor to implement a socket dust cover control method.
[0226] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0227] This invention provides a computer-readable storage medium storing a computer program that can be loaded by a processor and executed as a method for controlling a socket dust cover.
[0228] Computer storage media include, for example, USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, optical disks, and other media that can store program code.
[0229] Based on the same inventive concept, embodiments of the present invention provide a smart terminal, including a memory and a processor, wherein the memory stores a computer program that can be loaded and executed by the processor to control a socket dust cover.
[0230] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0231] The above are all preferred embodiments of this application and are not intended to limit the scope of protection of this application. Any feature disclosed in this specification (including the abstract and drawings) may be replaced by other equivalent or similar features unless specifically stated otherwise. That is, unless specifically stated otherwise, each feature is only one example of a series of equivalent or similar features.
Claims
1. A method of controlling a dust cover of a socket, characterized by, The application comprises the following steps: acquiring disinfection detection trigger information and current state information; judging whether the current state information is preset full opening state information when the disinfection detection trigger information is acquired; if yes, maintaining the full opening state information; if no, acquiring cover angle information in preset moving area information; calculating angle difference information according to the cover angle information and preset initial avoidance angle information in the moving area information, the initial avoidance angle information being information of an angle at which all dustproof covers are moved to all jacks being exposed to air; rotating the dustproof cover by the angle difference information to reach the full opening state information; after the disinfection detection trigger information disappears, reversing the rotation of the dustproof cover by the angle difference information to reach preset full shielding state information; The determination method of the moving area information comprises the following steps: acquiring inserted plug information and inserted socket angle information; judging whether the inserted socket angle information is greater than 1; if yes, sorting the inserted socket angle information to obtain inserted socket angle sorting information; analyzing two adjacent socket angle group information according to the inserted socket angle sorting information; defining an angle range between the two adjacent socket angle group information as the moving area information; if no, defining preset full area information as the moving area information; if there is inserted socket angle information and disinfection detection trigger information, the socket dustproof cover control method comprises the following steps: judging whether the inserted plug information is preset plug information with a baffle; if yes, acquiring active dustproof cover number information sorted according to depth and current angle information, the active dustproof cover number information being information of a number of the dustproof cover, the number of the dustproof cover being a number after sorting, the dustproof cover with number 1 being the deepest dustproof cover, the dustproof cover with number 1 being the dustproof cover closest to the surface of the socket; screening out the active dustproof cover number information with the deepest depth, defining it as the deepest active dustproof cover number information, and defining the current angle information corresponding to the deepest active dustproof cover number information as the deepest angle information; matching and analyzing metal angle range information stored in a preset article database and the inserted plug information to determine metal angle range information corresponding to the inserted plug information; calculating a lifting angle information according to the deepest angle information and the metal angle range information; calculating a reverse lifting angle information according to the metal angle range information and the reverse angle information; rotating the deepest active dustproof cover number information by the lifting angle information until the current angle information is a boundary value of the metal angle range information, and then reversing the rotation by the reverse lifting angle information until the current angle information is another boundary value of the metal angle range information; deleting the deepest active dustproof cover number information, updating the deepest active dustproof cover number information, and then recalculating the lifting angle information and the reverse lifting angle information, and then rotating according to the lifting angle information and the reverse lifting angle information until there is no deepest active dustproof cover number information or inserted plug information; if no, no operation is performed.
2. The control method of a dust cover of a socket according to claim 1, wherein The method for opening the dustproof cover when the current state information is preset full closure state information comprises the following steps: acquiring front image information; Analyzing the approaching object feature information in the pre-image information and analyzing the predicted plug type information; According to the matching database stored in the preset plug type information, the plug angle information and the predicted plug type information, the plug type corresponding to the predicted plug type information is determined, and the plug type is defined as the target plug type information, and the plug angle is defined as the target plug angle information; Determine whether the target plug angle information falls within the moving area information; If it falls, the dust cover number information and the target plug angle information stored in the preset shielding database are matched and analyzed to determine the dust cover number corresponding to the target plug angle information, and the dust cover number is defined as the target dust cover number information; According to the adjacent avoidance area information and the adjacent avoidance angle information stored in the preset adjacent database and the target plug angle information, the adjacent avoidance area and the adjacent avoidance angle corresponding to the target plug angle information are determined, and the adjacent avoidance area is defined as the target avoidance area information, and the adjacent avoidance angle is defined as the target avoidance angle information; According to the target avoidance angle information and the target plug angle information, the moving angle information is calculated; The dust cover corresponding to the target dust cover number information is rotated according to the moving angle information; After the approaching object feature information disappears, the dust cover corresponding to the target dust cover number information is rotated in the reverse direction according to the moving angle information; If it does not fall, no operation is performed.
3. The control method of claim 2, wherein, If the inserted plug angle information is less than or equal to 1, the method for rotating the dust cover to the fully open state information includes: Determine whether the inserted plug angle information exists; If it exists, the rotation trajectory information and the angle difference information stored in the preset rotation database and the cover angle information are matched and analyzed to determine the rotation trajectory corresponding to the angle difference information and the cover angle information, and the rotation trajectory is defined as the predicted rotation trajectory information; Determine whether the inserted plug angle information falls within the predicted rotation trajectory information; If it falls within the predicted rotation trajectory information, the reverse angle difference information is calculated according to the angle difference information and the preset reverse angle information; The dust cover is rotated by the reverse angle difference information to reach the fully open state information; If it does not fall within the predicted rotation trajectory information, the dust cover is rotated by the angle difference information to reach the fully open state information; If it does not exist, the dust cover is rotated by the angle difference information to reach the fully open state information.
4. The control method of claim 1, wherein, The method for rotating the deepest active dust cover number information by the lifting angle information until the current angle information is one of the boundary values of the metal angle range information, and then reversing the reverse lifting angle information until the current angle information is another boundary value of the metal angle range information includes: Get the motor rotation speed information when the deepest active dust cover number information is rotated by the lifting angle information; When the motor rotation speed information is equal to 0, determine whether the current angle information is one of the boundary values of the metal angle range information; If yes, reverse the reverse lifting angle information until the current angle information is another boundary value of the metal angle range information; If no, obtain the motor torque information; Determine whether the motor torque information is less than the preset critical torque information; If yes, continue to increase the motor torque information and reacquire the motor rotation speed information; If yes, reverse the reverse lifting angle information until the current angle information is another boundary value of the metal angle range information.
5. The control method of claim 3, wherein, The method also includes determining the initial angle information, and the method includes: Arbitrarily selecting an avoidance area information and corresponding avoidance angle information in a moving area information; Calculating the opening angle information according to the cover angle information and the avoidance angle information; Matching and analyzing the opening angle information and the cover angle information according to the stored rotation trajectory information in the rotation database to determine the rotation trajectory corresponding to the opening angle information and the cover angle information, and defining the rotation trajectory as ideal rotation trajectory information; Determining whether the inserted socket angle information falls within the ideal expected rotation trajectory information; If yes, calculating the reverse opening angle information according to the opening angle information and the reverse angle information; If no, calculating the sum of absolute values of all opening angle information, and defining the sum as forward angle sum information; Calculating the sum of absolute values of all opening angle information and reverse opening angle information, and defining the sum as moving angle sum information; Screening out one with the smallest moving angle sum information, and defining the moving angle sum information as the smallest moving angle sum information; Updating the initial angle information to the smallest moving angle sum information; Screening out one with the smallest forward angle sum information, and defining the moving angle sum information as the smallest forward angle sum information; Updating the initial angle information to the smallest forward angle sum information.
6. A receptacle dust cover control system, characterized by, The method includes: An obtaining module, configured to obtain disinfection detection trigger information, current state information, cover angle information, inserted plug information, inserted socket angle information, front image information, and motor rotation speed information; A memory, configured to store a program of a control method of a socket dust cover control method according to any one of claims 1 to 5; A processor, the program in the memory can be loaded and executed by the processor, and the control method of the socket dust cover control method according to any one of claims 1 to 5 is implemented.
7. A smart terminal, characterized in that The memory and the processor are included, and the memory stores a computer program capable of being loaded and executed by the processor, and the computer program is the socket dust cover control method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The memory stores a computer program capable of being loaded and executed by the processor, and the computer program is the socket dust cover control method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Dustproof safety socket
CN105633677A
Rotary dustproof structure of socket
CN209487833U