A retractable socket control method, system, storage medium and intelligent terminal
By automatically controlling the extension and retraction of the cover and socket panel, combined with identity and plug recognition, the operation of the socket is optimized, solving the problem of inconvenience in using existing CD retractable sockets, and achieving a convenient and hygienic socket user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- ZHEJIANG VACIN BIO PHARMA LTD
- Filing Date
- 2023-01-09
- Publication Date
- 2026-04-28
AI Technical Summary
Existing retractable CD holders require users to manually flip the cover and squeeze the switch, which easily leads to dust and bacteria buildup and makes them inconvenient to use.
By identifying the user's initial and intermediate location information, the system determines whether the socket needs to be used, automatically controls the cover to flip and the socket panel to extend or retract, and optimizes the extension length and angle of the socket panel by combining identity recognition and plug feature recognition, providing guidance signs.
It automates the operation of the socket, reduces dust and bacteria on the user's hands, and improves ease of use and plug insertion efficiency.
Smart Images

Figure CN115986503B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of smart socket technology, and in particular to a retractable socket control method, system, storage medium, and smart terminal. Background Technology
[0002] A socket is a receptacle with one or more electrical wires that can be inserted, allowing various wires to be plugged in so that electrical devices can be powered on and used. Currently, to prevent sockets from accumulating dust when not in use, they are often retracted into the wall, such as rotatable concealed sockets and retractable CD player sockets.
[0003] In related technologies, CD retractable sockets are installed inside the wall. When the user squeezes the corresponding resilient switch, the socket extends from the wall. When the socket is not needed, the user squeezes it back into the wall, where internal components engage with the socket to secure it internally. To reduce the entry of external debris, a flip-up cover is provided at the opening in the wall for the retractable socket. This allows the opening to be sealed when the socket is not in use, and the user can simply flip the cover upwards to use the socket when needed.
[0004] Regarding the aforementioned technologies, the inventors believe that when using the socket, users need to manually flip the cover and manually squeeze the switch to make the socket pop out. This not only makes it easy for dust and bacteria from the user's hands to stick to the socket and cover, but also makes it inconvenient for daily use. There is still room for improvement. Summary of the Invention
[0005] To facilitate user operation of the socket and reduce the accumulation of dust and bacteria from users' hands on the socket and cover, this application provides a retractable socket control method, system, storage medium, and smart terminal.
[0006] Firstly, this application provides a method for controlling a retractable socket, employing the following technical solution:
[0007] A method for controlling a retractable socket includes:
[0008] Obtain the recognition status information of the preset recognition area, where the recognition area is located on the ground in front of the wall where the socket is located;
[0009] When the identified status information matches the preset arrival status, the user's initial location information is obtained, and a preset fixed-duration countdown is controlled.
[0010] The user's location information is obtained when the countdown reaches zero after a fixed duration.
[0011] The planned path information is determined by connecting the initial location information and the preset socket locations.
[0012] The projection position information is determined by projecting the position corresponding to the intermediate position information onto the path corresponding to the planned path information.
[0013] The distance information is determined by calculating based on the initial position information and the projected position information.
[0014] Determine whether the distance value corresponding to the distance information is greater than the preset lower limit value;
[0015] If the distance value corresponding to the interval information is not greater than the lower limit value, the intermediate position information will be updated to the new initial position information, and the fixed duration will be restarted.
[0016] If the distance value corresponding to the distance information is greater than the lower limit value, the detection image information is obtained based on the intermediate position information, and feature recognition is performed in the detection image information to determine whether there is a preset plug feature.
[0017] If a plug feature is present, the preset cover plate is flipped and the preset socket plate is extended. After a preset open time, the socket plate is retracted and the cover plate is flipped back to its original state.
[0018] If no plug feature is present, the control cover and socket panel remain in their original state.
[0019] By adopting the above technical solution, when a user enters the recognition area, the user's movement is determined. When the user moves towards the socket, an image is acquired to determine if there is a plug that needs to be inserted into the socket. When the socket needs to be used, the cover can be automatically opened and the socket plate can be automatically extended, which makes it easier for the user to use the socket and reduces the occurrence of dust and bacteria on the user's hands sticking to the socket and cover.
[0020] Optionally, when the state corresponding to the identified state information matches the in-position state, the retractable socket control method further includes:
[0021] Obtain current time information and worker identification information;
[0022] Based on the current time information, determine the identity information of the scheduled personnel in the preset worksheet;
[0023] Determine whether the identity information of the operator matches the identity information of the scheduler;
[0024] If the identity information of the operator matches the identity information of the scheduler, then obtain the user's initial location information;
[0025] If the identity information of the operator does not match the identity information of the scheduler, the initial location information will not be obtained.
[0026] By adopting the above technical solution, the identity of the staff can be determined. When the staff's identity is incorrect, the control of the socket panel and cover will not be activated, thereby reducing the occurrence of other personnel accidentally plugging or unplugging plugs.
[0027] Optionally, if a plug feature is present, methods for controlling the extension of the socket panel include:
[0028] Three-dimensional modeling is performed based on the detected image information to determine the three-dimensional information of the plug;
[0029] The insertion contact surface information and the pin position information are determined based on the three-dimensional information of the plug.
[0030] On the contact surface corresponding to the insertion contact surface information, determine the edge position information that is furthest from the position corresponding to the preset socket length direction and the plug position information;
[0031] Based on the edge position information and the plug position information, the interval distance information is determined in the length direction of the socket. The interval distance information with the smallest corresponding distance value is determined and defined as the inner distance information, and the other interval distance information is defined as the outer distance information.
[0032] Matching analysis is performed based on the inner distance information and extension length information stored in the preset distance database to determine the extension length information corresponding to the inner distance information;
[0033] The control socket panel extends to the length value corresponding to the extension length information.
[0034] By adopting the above technical solution, the socket can be extended to a reasonable length according to the plug size for plug insertion, so that the unused part does not need to extend, thereby reducing the occurrence of external dust falling on the socket.
[0035] Optionally, after determining the inner and outer distance information, the control method for the retractable socket further includes:
[0036] Obtain information on the number of sockets in use;
[0037] Determine if the quantity value corresponding to the number of sockets used is zero;
[0038] If the quantity value corresponding to the number of sockets used is zero, the extension length information is determined based on the inner distance information, and the socket panel is controlled to extend.
[0039] If the quantity value corresponding to the number of sockets used is not zero, then obtain the innermost used position information and the original extension length information on the socket in the length direction of the socket.
[0040] Based on the innermost usage position information, determine the nearest socket along the length of the socket, and determine the gap length information based on the position of the socket and the innermost usage position information;
[0041] Determine whether the distance value corresponding to the outermost distance information is greater than the length value corresponding to the gap length information;
[0042] If the distance value corresponding to the outer distance information is not greater than the length value corresponding to the gap length information, then the extension length information is determined according to the inner distance information, and the extension length information and the original extension length information are used to control the extension of the socket panel.
[0043] If the distance value corresponding to the outer distance information is greater than the length value corresponding to the gap length information, the extension length information is determined based on the inner distance information, and the extension length information, the original extension length information, and the preset socket spacing value are used to control the extension of the socket panel.
[0044] By adopting the above technical solution, the extension of the socket panel can be controlled according to the usage of the socket, so that the extended socket can allow the plug to be inserted better.
[0045] Optionally, if the distance value corresponding to the outer distance information is greater than the length value corresponding to the gap length information, the retractable socket control method further includes:
[0046] Determine whether the distance value corresponding to the inner distance information is less than the length value corresponding to the gap length information;
[0047] If the distance value corresponding to the inner distance information is not less than the length value corresponding to the gap length information, then the extension length information is determined according to the inner distance information, and the extension length information, the original extension length information, and the preset socket spacing value are used to control the extension of the socket panel.
[0048] If the distance value corresponding to the inner distance information is less than the length value corresponding to the gap length information, the outer distance information and the inner distance information are exchanged, and the extension length information is determined based on the new inner distance information, and then the socket panel is controlled to extend.
[0049] By adopting the above technical solutions, the plug insertion situation can be further planned to maximize the utilization rate of the socket.
[0050] Optionally, after the retractable socket panel extends, the control method for the retractable socket also includes:
[0051] Obtain the total extended length of the socket panel;
[0052] Determine visual height and behavioral distance information based on the worker's identification information;
[0053] The horizontal distance information is determined by summing the behavioral distance information and the total extension length information.
[0054] The vertical distance information is determined by calculating the difference between the visual height information and the preset socket height.
[0055] The tilt angle information is determined based on the horizontal and vertical distance information.
[0056] The control socket panel rotates along the preset adjustment direction, and the tilt angle corresponds to the angle value.
[0057] By adopting the above technical solution, the socket panel can be rotated to a reasonable tilt angle according to the user's height, so that the user can directly see the socket and insert the plug.
[0058] Optionally, after the socket panel rotates, the control method for the retractable socket also includes:
[0059] The contact surface corresponding to the inserted contact surface information is aligned according to the inserted contact surface information and the edge position information to determine the alignment of the contact surface information;
[0060] Based on the inner distance information and the outer distance information, the corresponding contact surface is positioned to determine the positioning contact surface information;
[0061] Based on the positioning contact surface information, the preset projection device controls the projection onto the socket to form a guide mark.
[0062] By adopting the above technical solution, guidance signs can be set for users to refer to, further facilitating users in inserting and using the plug.
[0063] Secondly, this application provides a retractable socket control system, which adopts the following technical solution:
[0064] A retractable socket control system includes:
[0065] The acquisition module is used to acquire the recognition status information of a preset recognition area, wherein the recognition area is located on the ground in front of the wall where the socket is located;
[0066] The processing module, connected to the acquisition and judgment modules, is used for information storage and processing;
[0067] The judgment module, connected to the acquisition and processing modules, is used for judging information.
[0068] When the judgment module determines that the state corresponding to the identified state information is consistent with the preset arrival state, the acquisition module acquires the user's initial position information and causes the control module to control the preset fixed duration countdown.
[0069] The acquisition module obtains the user's mid-journey location information when the fixed-duration countdown reaches zero.
[0070] The processing module makes connections based on the initial location information and the preset socket locations to determine the planned path information;
[0071] The processing module projects the location corresponding to the intermediate location information onto the path corresponding to the planned path information to determine the projection location information;
[0072] The processing module calculates and determines the distance information based on the initial position information and the projected position information;
[0073] The judgment module determines whether the distance value corresponding to the distance information is greater than the preset lower limit value;
[0074] If the judgment module determines that the distance value corresponding to the distance information is not greater than the lower limit value, the processing module will update the intermediate position information to the new initial position information and start the fixed duration timing again.
[0075] If the judgment module determines that the distance value corresponding to the distance information is greater than the lower limit value, the acquisition module acquires the detection image information based on the intermediate position information, and the judgment module performs feature recognition in the detection image information to determine whether there is a preset plug feature.
[0076] If the judgment module determines that there is a plug feature, the processing module controls the preset cover to flip and controls the preset socket plate to extend. After a preset opening time, the socket plate is controlled to retract and the cover is then controlled to flip back to its original state.
[0077] If the judgment module determines that there is no plug feature, the processing module controls the cover and socket panel to maintain their original state.
[0078] By adopting the above technical solution, when a user enters the recognition area, the acquisition module determines the user's movement. When the user moves towards the socket, the acquisition module acquires an image so that the judgment module can determine whether there is a plug that needs to be inserted into the socket. When the judgment module determines that the socket needs to be used, the processing module can control the cover to open automatically and control the socket plate to extend automatically, thereby making it easier for the user to use the socket and reducing the occurrence of dust and bacteria on the user's hands sticking to the socket and cover.
[0079] Thirdly, this application provides a smart terminal, which adopts the following technical solution:
[0080] A smart terminal includes a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and executed any of the above-described retractable socket control methods.
[0081] By adopting the above technical solution and using a smart terminal, when a user enters the recognition area, the user's movement is determined. When the user approaches the socket, an image is acquired to determine if there is a plug that needs to be inserted into the socket. When the socket needs to be used, the cover can be automatically opened and the socket panel can be automatically extended, which makes it easier for the user to use the socket and reduces the occurrence of dust and bacteria from the user's hands sticking to the socket and cover.
[0082] Fourthly, this application provides a computer storage medium capable of storing corresponding programs, which facilitates user operation of the socket and reduces the adhesion of dust and bacteria from the user's hands to the socket and cover plate. The technical solution adopted is as follows:
[0083] A computer-readable storage medium storing a computer program that can be loaded by a processor and executed any of the above-described retractable socket control methods.
[0084] By adopting the above technical solution, the computer program of the retractable socket control method in the storage medium determines the user's movement after the user enters the recognition area. When the user moves towards the socket, an image is acquired to determine whether there is a plug that needs to be inserted into the socket. When the socket needs to be used, the cover can be automatically opened and the socket plate can be automatically extended, which makes it convenient for the user to use the socket and reduces the occurrence of dust and bacteria on the user's hands sticking to the socket and cover.
[0085] In summary, this application includes at least one of the following beneficial technical effects:
[0086] 1. The cover and socket panel can be automatically flipped up and extended when the socket is needed, which makes it easier for users to use the socket and reduces the occurrence of dust and bacteria from the user's hands sticking to the socket and cover.
[0087] 2. The socket panel can be extended to a reasonable length according to actual needs, thereby reducing the occurrence of external dust falling on unused sockets;
[0088] 3. The extended socket panel can be rotated according to the user's needs, so that the user can easily insert the plug. Attached Figure Description
[0089] Figure 1 This is a flowchart of the control method for retractable sockets.
[0090] Figure 2 This is a diagram illustrating the movement of people.
[0091] Figure 3 This is a schematic diagram of the socket panel and cover.
[0092] Figure 4 This is a flowchart of the identity recognition and determination method.
[0093] Figure 5 This is a flowchart of the method for determining the extension length.
[0094] Figure 6 This is a flowchart of the method for determining the actual extension length.
[0095] Figure 7 This is a flowchart of the plug usage planning method.
[0096] Figure 8 This is a flowchart of the method for determining the tilt angle.
[0097] Figure 9 This is a flowchart of the method for projecting signage.
[0098] Figure 10 This is a flowchart of the control method for retractable sockets. Detailed Implementation
[0099] To make the purpose, technical solution, and advantages of this application clearer, the following description is provided in conjunction with the appendix. Figure 1-10 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.
[0100] The embodiments of this application will now be described in further detail with reference to the accompanying drawings.
[0101] This application discloses a retractable socket control method. When a user enters the identification area, the user's identity is identified. If the identity is correct, the user's movement is used to determine whether to move towards the socket. If the user moves towards the socket, image recognition can be used to determine whether the socket needs to be used. If the socket needs to be used, the cover can be automatically flipped and the socket panel can be extended to a reasonable length so that the user can insert the plug to turn on the power. This makes it easier for the user to use the socket and reduces the occurrence of dust and bacteria from the user's hands sticking to the socket and cover.
[0102] Reference Figure 1 The method flow for controlling a retractable socket includes the following steps:
[0103] Step S100: Obtain the recognition status information of the recognition area, wherein the recognition area is located on the ground in front of the wall where the socket is located.
[0104] Reference Figure 2The identification area is the area on the ground in front of the wall where the socket is located. This identification area is equipped with devices that can identify RFID chips. The identification status information corresponds to the status of the devices that can identify RFID chips in the identification area, including whether an external RFID chip has been identified or not.
[0105] Step S101: When the state corresponding to the identified state information is consistent with the preset arrival state, obtain the user's initial position information and control the preset fixed time countdown.
[0106] The "Appointment Status" refers to the status set by the staff when the identification device reads the external RFID chip while the user is in the identification area. When the identification status information matches the "Appointment Status," it indicates that a user has passed through the identification area. The user's RFID card can be installed on the bottom of the work shoe for easy signal reading. The "Initial Position Information" corresponds to the user's position when entering the identification area, which is determined by the RFID chip signal reading. The "Fixed Duration" is a fixed duration set by the staff.
[0107] Step S102: Obtain the user's mid-journey location information when the fixed-duration countdown reaches zero.
[0108] The location information during the intermediate journey corresponds to the user's location after entering the recognition area for a fixed period of time. If the user is no longer in the recognition area after the fixed period of time, the intermediate location information is abnormal, no further calculations are performed, and the system is restored to its initial state.
[0109] Step S103: Connect the lines according to the initial location information and the preset socket locations to determine the planned path information.
[0110] The socket location is the position of the socket projected onto the ground, and the planned path information is the straight line connecting the initial location information and the socket location.
[0111] Step S104: Project the location corresponding to the intermediate location information onto the path corresponding to the planned path information to determine the projection location information.
[0112] The location corresponding to the projection location information is the vertical projection of the location corresponding to the intermediate location information onto the path corresponding to the planned path information.
[0113] Step S105: Calculate the distance information based on the initial position information and the projected position information.
[0114] The distance value corresponding to the distance information is the distance length between the position corresponding to the initial position information and the position corresponding to the projected position information.
[0115] Step S106: Determine whether the distance value corresponding to the distance information is greater than the preset lower limit value.
[0116] The proximity threshold is the minimum distance a user needs to move within a fixed time period when the staff determines that the user is moving towards the socket. The purpose of this determination is to determine whether the user is moving towards the socket.
[0117] Step S1061: If the distance value corresponding to the distance information is not greater than the lower limit value, then update the intermediate position information to the new initial position information and start the fixed duration timing again.
[0118] When the distance value corresponding to the distance information is not greater than the lower limit, it means that the user did not move towards the socket in the first time. At this time, the intermediate position information is updated to the new initial position information, and the fixed time is restarted so that the user can still move towards the socket for subsequent analysis and judgment.
[0119] Step S1062: If the distance value corresponding to the distance information is greater than the lower limit value, then obtain the detection image information based on the intermediate position information, and perform feature recognition in the detection image information to determine whether there is a preset plug feature.
[0120] When the distance value corresponding to the distance information is greater than the lower limit, it indicates that the user is moving towards the socket. At this time, the user may need to use the socket. The image corresponding to the detected image information is an image containing the position information of the intermediate position. This image can be captured by several shooting devices at different angles to reduce the occurrence of some objects being obscured and not detected. The plug feature is the plug that needs to be inserted into the socket. The staff inputs the plug image in advance, and then uses a neural network learning method to determine whether there is a plug in the current image. The purpose of the judgment is to know whether the user moving towards the socket needs to use the socket.
[0121] Step S10621: If a plug feature is present, control the preset cover plate to flip and control the preset socket plate to extend. After a preset open time, control the socket plate to retract and then control the cover plate to flip back to its original state.
[0122] When a plug is present, it indicates that the user is likely to need to use the socket. At this time, the control cover flips upwards to open the opening, and then the socket panel extends to allow the user to insert the plug. Simultaneously, after a set period of time, the socket panel retracts, ensuring the socket is not exposed during use and reducing the likelihood of dust falling onto the panel. The set period of time is a predetermined value set by the operator. (Refer to...) Figure 3The opening in the wall is relatively large, and the cover plate can completely cover the opening. The cover plate has holes for the plug wire to pass through. The rotation axis of the cover plate is parallel to the upper edge of the opening, so that the cover plate can flip upward when it is turned. The socket panel consists of several socket sections, and adjacent sockets can rotate. Each socket section has only one socket. The flipping of the cover plate and the movement of the socket panel are both achieved by the set drive mechanism, which can be driven by a motor. The specific drive method is set by the staff and will not be described in detail.
[0123] Step S10622: If there is no plug feature, the control cover and socket panel remain in their original state.
[0124] When there is no plug feature, it means that the user who is approaching the socket does not need to use the socket, and there is no need to extend the socket panel for use.
[0125] Reference Figure 4 When the identified status information matches the in-position status, the retractable socket control method further includes:
[0126] Step S200: Obtain the current time information and the identity information of the operators.
[0127] The current time information corresponds to the time point when the user enters the recognition area, and the operator's identity information corresponds to the identity of the user who entered the recognition area at the time point corresponding to the current time information. This can be obtained through the information recorded in the RFID chip being recognized.
[0128] Step S201: Determine the identity information of the scheduling personnel in the preset worksheet based on the current time information.
[0129] The worksheet is a schedule of staff in the current socket environment. Different times correspond to different staff, and the identity information of the scheduled staff corresponds to the user identity who needs to work in this environment at the current time.
[0130] Step S202: Determine whether the identity corresponding to the operator's identity information is consistent with the identity corresponding to the scheduler's identity information.
[0131] The purpose of this determination is to ascertain whether the person entering the identification area is a staff member of that area, so as to facilitate subsequent control of the socket.
[0132] Step S2021: If the identity corresponding to the operator's identity information is consistent with the identity corresponding to the scheduler's identity information, then obtain the user's initial location information.
[0133] When the identity information of the operator matches the identity information of the shift worker, it means that the person entering the identification area is indeed the staff member of that area. At this time, the initial location information is acquired normally for subsequent control analysis.
[0134] Step S2022: If the identity information of the operator does not match the identity information of the scheduler, the initial location information will not be obtained.
[0135] When the identity information of the operator does not match the identity information of the shift worker, it means that the person currently entering the identification area is not a staff member of that area, and there is no need to control the socket. At this time, the initial position information is not acquired, thereby reducing the occurrence of unauthorized personnel accidentally plugging or unplugging the plug.
[0136] Reference Figure 5 The plug-like features include methods for controlling the extension of the socket panel, such as:
[0137] Step S300: Perform 3D modeling based on the detected image information to determine the 3D information of the plug.
[0138] The 3D image corresponding to the plug's 3D information is a 3D image of the plug features in the acquired image. It can be obtained by 3D modeling from images acquired from different angles. 3D modeling can be done using 3D modeling software such as SolidWorks and UG. The method of 3D modeling objects in images is a conventional technique for those skilled in the art and will not be elaborated here.
[0139] Step S301: Determine the insertion contact surface information and the pin position information based on the three-dimensional information of the plug.
[0140] The contact surface information corresponds to the end face that will contact the upper surface of the socket when the plug is inserted. The position information corresponds to the position of the plug's connecting pin on the contact surface information.
[0141] Step S302: Determine the edge position information that is furthest from the position corresponding to the pin position information in the preset socket length direction on the contact surface corresponding to the insertion contact surface information.
[0142] The length direction of the socket is the direction in which the socket extends and retracts. The position corresponding to the edge position information is the position on the contact surface that is farthest from the plug on the length of the socket when the plug is inserted. Since the orientation of the plug when it is inserted is uncertain, there are two positions corresponding to the edge position information.
[0143] Step S303: Determine the interval distance information along the length of the socket based on the edge position information and the plug position information, and determine the interval distance information with the smallest corresponding distance value from the interval distance information, so as to define the interval distance information as the inner distance information and define the other interval distance information as the outer distance information.
[0144] The distance value corresponding to the interval distance information is the distance between the position corresponding to the edge position information and the position corresponding to the plug position information along the length direction of the socket. The distance can be determined by the projection points of the two positions along the length direction of the socket. The inner distance information and the outer distance information are defined to distinguish the two interval distance information, so as to know the length of the socket ends from the plug, which is convenient for planning the subsequent plug insertion.
[0145] Step S304: Perform a matching analysis based on the inner distance information and extension length information stored in the preset distance database to determine the extension length information corresponding to the inner distance information.
[0146] The longer end of the plug is inserted externally to avoid affecting the other sockets inside the outlet. Different internal distances indicate different outlet areas that need to be covered. When the internal distance is greater than the distance between two sockets, two extensions of the outlet are needed for use. When the internal distance is less than the distance between two sockets, only one extension is needed. Therefore, different internal distances correspond to different extension lengths. The relationship between the two is determined by staff through multiple experiments, and a distance database is established based on the correspondence between the two. The method for establishing the database is a conventional technique for those skilled in the art and will not be elaborated here.
[0147] Step S305: Control the socket panel to extend to the length value corresponding to the extension length information.
[0148] The extension length of the socket panel is controlled so that the plug can be inserted normally while the sockets that are not in use do not need to extend, thereby reducing the possibility of external dust falling into the sockets during the extension process.
[0149] Reference Figure 6 After determining the inner and outer distance information, the control method for retractable sockets also includes:
[0150] Step S400: Obtain the number of sockets in use.
[0151] The quantity information corresponding to the number of sockets used is the value of the number of sockets that can no longer be plugged in. This can be obtained by installing a photosensitive sensor in the socket. When the socket is inserted by a plug post or blocked by a contact surface, it can be marked. In order to enable other photosensitive sensors to detect light, a light is installed in the hole where the socket panel is placed.
[0152] Step S401: Determine whether the quantity value corresponding to the number of sockets used is zero.
[0153] The purpose of this judgment is to determine whether there is no plug already inserted in the socket.
[0154] Step S4011: If the quantity value corresponding to the number of sockets is zero, determine the extension length information based on the inner distance information and control the socket panel to extend.
[0155] When the number of sockets is zero, it means that the plug can be inserted into the outermost socket. In this case, the distance information of the inner socket can be analyzed to determine the corresponding extension length.
[0156] Step S4012: If the quantity value corresponding to the number of sockets used is not zero, then obtain the innermost used position information and the original extension length information on the socket in the length direction of the socket.
[0157] When the number of sockets used is not zero, it means that at least one plug is already inserted in the socket panel. In this case, the plug cannot be inserted into the outermost socket. Therefore, it is necessary to consider whether the longer end of the plug to be inserted can be inserted between the socket and the adjacent plug that is already inserted. The position corresponding to the innermost position information is the position of the innermost plug in the socket panel, which can be determined by the usage of the socket and the inner distance of the plug. The original extension length information corresponds to the length when it was extended last time for the innermost plug to be inserted.
[0158] Step S402: Determine the nearest socket along the length of the socket based on the innermost usage position information, and determine the gap length information based on the position of the socket and the innermost usage position information.
[0159] The nearest socket along the length of the socket is the socket that is closest to the existing plug and can be used. The length value corresponding to the gap length information is the distance between the socket and the position corresponding to the innermost use position information.
[0160] Step S403: Determine whether the distance value corresponding to the outer distance information is greater than the length value corresponding to the gap length information.
[0161] The purpose of the judgment is to determine whether the plug to be inserted can place its longest end between the socket and the already inserted plug.
[0162] Step S4031: If the distance value corresponding to the outer distance information is not greater than the length value corresponding to the gap length information, then determine the extension length information based on the inner distance information, and control the extension of the socket panel based on the extension length information and the original extension length information.
[0163] When the distance value corresponding to the outer distance information is not greater than the length value corresponding to the gap length information, it means that the longer end of the plug can be set to face outward. At this time, the corresponding extension length information is determined according to the inner distance information, and the required extension length is added to the original extension length to control the socket panel to extend, so that the socket can be used normally.
[0164] Step S4032: If the distance value corresponding to the outer distance information is greater than the length value corresponding to the gap length information, then determine the extension length information based on the inner distance information, and control the extension of the socket panel based on the extension length information, the original extension length information, and the preset socket spacing value.
[0165] When the distance value corresponding to the outermost distance information is greater than the length value corresponding to the gap length information, it means that the longer end of the plug cannot be inserted between the nearest socket and the adjacent plug. At this time, it is necessary to move one socket inward to insert into another socket. The socket spacing value is the distance value between the two sockets. At this time, the corresponding extension length is determined by using the innermost distance. Then, the total extension length required is calculated by using the extension length, the original extension length, and the socket spacing value to realize the extension of the socket panel, so that the socket panel can be used normally for plugs.
[0166] Reference Figure 7 If the distance value corresponding to the outer distance information is greater than the length value corresponding to the gap length information, the control method for the retractable socket also includes:
[0167] Step S500: Determine whether the distance value corresponding to the inner distance information is less than the length value corresponding to the gap length information.
[0168] The purpose of the judgment is to determine whether the shorter end of the plug can be placed in the gap if the longer end cannot be placed in the corresponding gap.
[0169] Step S5001: If the distance value corresponding to the inner distance information is not less than the length value corresponding to the gap length information, then determine the extension length information according to the inner distance information, and control the extension of the socket panel according to the extension length information, the original extension length information and the preset socket spacing value.
[0170] When the distance value corresponding to the inner distance information is not less than the length value corresponding to the gap length information, it means that the shorter end of the plug cannot be placed in the gap. At this time, the plug cannot be inserted into the socket regardless of whether it is oriented forward or backward. Therefore, it is necessary to move it further inward to find a socket for insertion.
[0171] Step S5002: If the distance value corresponding to the inner distance information is less than the length value corresponding to the gap length information, the outer distance information and the inner distance information are exchanged, and the extension length information is determined according to the new inner distance information, and then the socket panel is controlled to extend.
[0172] When the distance value corresponding to the inner distance information is less than the length value corresponding to the gap length information, it means that the shorter end of the plug can be placed into the gap. At this time, you only need to set the end that originally needed to face inward to face outward and the end that originally needed to face outward to face inward. This will exchange the outer distance information and the inner distance information so that the new inner distance information can determine a more accurate extension length, so that the extension length of the control socket panel is more reasonable when it extends.
[0173] Reference Figure 8 After the socket panel extends, the control method for the retractable socket also includes:
[0174] Step S600: Obtain the total extended length information of the socket panel.
[0175] The total extension length information corresponds to the total extension length value on the socket panel, which can be determined by the number of extension sections.
[0176] Step S601: Determine the visual height information and behavioral distance information based on the operator's identity information.
[0177] The visual height information corresponds to the height value of the user's eyes. This data can be recorded and stored in the RFID chip and read synchronously when reading personnel identity information. The behavioral distance information corresponds to the distance value that the person will stop in front of the socket when plugging in a plug during daily work. It can be obtained by averaging the distance values when standing within a fixed number of previous times. If the number of times has not reached the fixed number, it is determined by the fixed value set by the staff.
[0178] Step S602: Calculate the horizontal distance information by summing the behavioral distance information and the total extension length information.
[0179] The horizontal distance information corresponds to the vertical distance between the user and the wall when the plug is inserted. It is determined by adding the distance corresponding to the behavioral distance information to the length corresponding to the total extension length information.
[0180] Step S603: Calculate the difference between the visual height information and the preset socket height to determine the vertical distance information.
[0181] The socket height is the height value of the socket itself. The vertical distance information corresponds to the distance value between the socket and the user's eyes in the vertical direction, which is determined by subtracting the socket height from the height value corresponding to the visual height information.
[0182] Step S604: Determine the tilt angle information based on the horizontal distance information and the vertical distance information.
[0183] The tilt angle information corresponds to the angle between the user's line of sight to the socket and the wall. It is determined by calculating the horizontal and vertical distances using trigonometric functions. The calculation method is a conventional technique for those skilled in the art and will not be elaborated upon.
[0184] Step S605: Control the socket panel to rotate along the preset adjustment direction and the angle value corresponding to the tilt angle information.
[0185] The adjustment direction is the angle at which the socket panel can flip downwards. The angle value corresponding to the tilt angle information of the socket panel in the adjustment direction is controlled so that the socket on the socket panel is directly facing the user's eyes, so that the user can directly see the position of the socket and insert the plug.
[0186] Reference Figure 9 After the socket panel rotates, the control method for the retractable socket also includes:
[0187] Step S700: Align the contact surface corresponding to the inserted contact surface information according to the inserted contact surface information and the edge position information to determine the alignment of the contact surface information.
[0188] The contact surface information corresponds to the contact surface of the plug to be inserted after it has been aligned in the width direction of the socket.
[0189] Step S701: Based on the inner distance information and the outer distance information, locate the contact surface corresponding to the alignment contact surface information to determine the positioning contact surface information.
[0190] The contact surface information corresponding to the positioning contact surface is the contact surface after it is aligned in the width direction and the contact surface after it is aligned in the length direction of the socket.
[0191] Step S702: Based on the positioning contact surface information, control the preset projection device to project the information onto the socket to form a guide mark.
[0192] The projection device can be installed on the end face of the cover plate facing the socket panel. The projection device can project the contact surface information corresponding to the positioning contact surface onto the socket, so that the socket can form a guide mark for the user to refer to when inserting the plug. This reduces the occurrence of delays caused by the user inserting the plug in the wrong direction.
[0193] Reference Figure 10 Based on the same inventive concept, embodiments of the present invention provide a retractable socket control system, comprising:
[0194] The acquisition module is used to acquire the recognition status information of a preset recognition area, wherein the recognition area is located on the ground in front of the wall where the socket is located;
[0195] The processing module, connected to the acquisition and judgment modules, is used for information storage and processing;
[0196] The judgment module, connected to the acquisition and processing modules, is used for judging information.
[0197] When the judgment module determines that the state corresponding to the identified state information is consistent with the preset arrival state, the acquisition module acquires the user's initial position information and causes the control module to control the preset fixed duration countdown.
[0198] The acquisition module obtains the user's mid-journey location information when the fixed-duration countdown reaches zero.
[0199] The processing module makes connections based on the initial location information and the preset socket locations to determine the planned path information;
[0200] The processing module projects the location corresponding to the intermediate location information onto the path corresponding to the planned path information to determine the projection location information;
[0201] The processing module calculates and determines the distance information based on the initial position information and the projected position information;
[0202] The judgment module determines whether the distance value corresponding to the distance information is greater than the preset lower limit value;
[0203] If the judgment module determines that the distance value corresponding to the distance information is not greater than the lower limit value, the processing module will update the intermediate position information to the new initial position information and start the fixed duration timing again.
[0204] If the judgment module determines that the distance value corresponding to the distance information is greater than the lower limit value, the acquisition module acquires the detection image information based on the intermediate position information, and the judgment module performs feature recognition in the detection image information to determine whether there is a preset plug feature.
[0205] If the judgment module determines that there is a plug feature, the processing module controls the preset cover to flip and controls the preset socket plate to extend. After a preset opening time, the socket plate is controlled to retract and the cover is then controlled to flip back to its original state.
[0206] If the judgment module determines that there is no plug feature, the processing module controls the cover and socket panel to maintain their original state;
[0207] The identity recognition module is used to determine the user's identity in order to reduce the occurrence of unauthorized personnel accidentally plugging or unplugging the plug;
[0208] The extension control module extends the socket panel to an appropriate length according to the type of plug to be inserted, thereby reducing the occurrence of external dust falling into unused sockets;
[0209] The multi-port usage control module analyzes the usage of multiple sockets on the socket to make the extension of the socket more reasonable;
[0210] The extension length optimization module rationally plans the plugs that need to be plugged in, enabling the socket to be used in a planned manner, thereby improving the socket's utilization rate;
[0211] The tilt angle determination module determines a reasonable tilt angle based on the user's situation, so that the extended socket plate can rotate so that the user can directly see the socket and facilitate the subsequent plug insertion.
[0212] The guidance label determination module is used to project appropriate guidance labels so that users can easily insert the plug.
[0213] 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.
[0214] This invention provides a computer-readable storage medium storing a computer program that can be loaded by a processor and executed as a retractable socket control method.
[0215] 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.
[0216] 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 by the processor and executed as a retractable socket control method.
[0217] 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.
[0218] 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 for controlling a retractable socket, characterized in that, include: Obtain the recognition status information of the preset recognition area, where the recognition area is located on the ground in front of the wall where the socket is located; When the identified status information matches the preset arrival status, the user's initial location information is obtained, and a preset fixed-duration countdown is controlled. The user's location information is obtained when the countdown reaches zero after a fixed duration. The planned path information is determined by connecting the initial location information and the preset socket locations. The projection position information is determined by projecting the position corresponding to the intermediate position information onto the path corresponding to the planned path information. The distance information is determined by calculating based on the initial position information and the projected position information. Determine whether the distance value corresponding to the distance information is greater than the preset lower limit value; If the distance value corresponding to the interval information is not greater than the lower limit value, the intermediate position information will be updated to the new initial position information, and the fixed duration will be restarted. If the distance value corresponding to the distance information is greater than the lower limit value, the detection image information is obtained based on the intermediate position information, and feature recognition is performed in the detection image information to determine whether there is a preset plug feature. If a plug feature is present, the preset cover plate is flipped and the preset socket plate is extended. After a preset open time, the socket plate is retracted and the cover plate is flipped back to its original state. If no plug feature is present, the control cover and socket panel remain in their original state; When the state corresponding to the identified state information matches the position state, the retractable socket control method further includes: Obtain current time information and worker identification information; Based on the current time information, determine the identity information of the scheduled personnel in the preset worksheet; Determine whether the identity information of the operator matches the identity information of the scheduler; If the identity information of the operator matches the identity information of the scheduler, then obtain the user's initial location information; If the identity information of the operator does not match the identity information of the scheduler, the initial location information will not be obtained. If a plug feature is present, methods for controlling the extension of the socket panel include: Three-dimensional modeling is performed based on the detected image information to determine the three-dimensional information of the plug; The insertion contact surface information and the pin position information are determined based on the three-dimensional information of the plug. On the contact surface corresponding to the insertion contact surface information, determine the edge position information that is furthest from the position corresponding to the preset socket length direction and the plug position information; Based on the edge position information and the plug position information, the interval distance information is determined in the length direction of the socket. The interval distance information with the smallest corresponding distance value is determined and defined as the inner distance information, and the other interval distance information is defined as the outer distance information. Matching analysis is performed based on the inner distance information and extension length information stored in the preset distance database to determine the extension length information corresponding to the inner distance information; The control socket panel extends to the length value corresponding to the extension length information; After determining the inner and outer distance information, the control method for retractable sockets also includes: Obtain information on the number of sockets in use; Determine if the quantity value corresponding to the number of sockets used is zero; If the quantity value corresponding to the number of sockets used is zero, the extension length information is determined based on the inner distance information, and the socket panel is controlled to extend. If the quantity value corresponding to the number of sockets used is not zero, then obtain the innermost used position information and the original extension length information on the socket in the length direction of the socket. Based on the innermost usage position information, determine the nearest socket along the length of the socket, and determine the gap length information based on the position of the socket and the innermost usage position information; Determine whether the distance value corresponding to the outermost distance information is greater than the length value corresponding to the gap length information; If the distance value corresponding to the outer distance information is not greater than the length value corresponding to the gap length information, then the extension length information is determined according to the inner distance information, and the extension length information and the original extension length information are used to control the extension of the socket panel. If the distance value corresponding to the outer distance information is greater than the length value corresponding to the gap length information, then the extension length information is determined according to the inner distance information, and the extension length information, the original extension length information, and the preset socket spacing value are used to control the extension of the socket panel. If the distance value corresponding to the outer distance information is greater than the length value corresponding to the gap length information, the control method for the retractable socket also includes: Determine whether the distance value corresponding to the inner distance information is less than the length value corresponding to the gap length information; If the distance value corresponding to the inner distance information is not less than the length value corresponding to the gap length information, then the extension length information is determined according to the inner distance information, and the extension length information, the original extension length information, and the preset socket spacing value are used to control the extension of the socket panel. If the distance value corresponding to the inner distance information is less than the length value corresponding to the gap length information, the outer distance information and the inner distance information are exchanged, and the extension length information is determined based on the new inner distance information, and then the socket panel is controlled to extend.
2. The retractable socket control method according to claim 1, characterized in that, After the socket panel extends, the control method for the retractable socket also includes: Obtain the total extended length of the socket panel; Determine visual height and behavioral distance information based on the worker's identification information; The horizontal distance information is determined by summing the behavioral distance information and the total extension length information. The vertical distance information is determined by calculating the difference between the visual height information and the preset socket height. The tilt angle information is determined based on the horizontal and vertical distance information. The control socket panel rotates along the preset adjustment direction, and the tilt angle corresponds to the angle value.
3. The retractable socket control method according to claim 2, characterized in that, After the socket panel rotates, the control method for the retractable socket also includes: The contact surface corresponding to the inserted contact surface information is aligned according to the inserted contact surface information and the edge position information to determine the alignment of the contact surface information; Based on the inner distance information and the outer distance information, the corresponding contact surface is positioned to determine the positioning contact surface information; Based on the positioning contact surface information, the preset projection device controls the projection onto the socket to form a guide mark.
4. A retractable socket control system, characterized in that, The system is used to execute a retractable socket control method as described in any one of claims 1 to 3, comprising: The acquisition module is used to acquire the recognition status information of a preset recognition area, wherein the recognition area is located on the ground in front of the wall where the socket is located; The processing module, connected to the acquisition and judgment modules, is used for information storage and processing; The judgment module, connected to the acquisition and processing modules, is used for judging information. When the judgment module determines that the state corresponding to the identified state information is consistent with the preset arrival state, the acquisition module acquires the user's initial position information and causes the control module to control the preset fixed duration countdown. The acquisition module obtains the user's mid-journey location information when the fixed-duration countdown reaches zero. The processing module makes connections based on the initial location information and the preset socket locations to determine the planned path information; The processing module projects the location corresponding to the intermediate location information onto the path corresponding to the planned path information to determine the projection location information; The processing module calculates and determines the distance information based on the initial position information and the projected position information; The judgment module determines whether the distance value corresponding to the distance information is greater than the preset lower limit value; If the judgment module determines that the distance value corresponding to the distance information is not greater than the lower limit value, the processing module will update the intermediate position information to the new initial position information and start the fixed duration timing again. If the judgment module determines that the distance value corresponding to the distance information is greater than the lower limit value, the acquisition module acquires the detection image information based on the intermediate position information, and the judgment module performs feature recognition in the detection image information to determine whether there is a preset plug feature. If the judgment module determines that there is a plug feature, the processing module controls the preset cover to flip and controls the preset socket plate to extend. After a preset opening time, the socket plate is controlled to retract and the cover is then controlled to flip back to its original state. If the judgment module determines that there is no plug feature, the processing module controls the cover and socket panel to maintain their original state.
5. A smart terminal, characterized in that, It includes a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and executed according to any one of claims 1 to 3.
6. A computer-readable storage medium, characterized in that, The computer program is stored that can be loaded by a processor and executed according to any one of claims 1 to 3.
Citation Information
Patent Citations
Socket with dustproof function
CN105514677A
Telescopic socket
CN207303483U