Device with locking function and locking mechanism

By designing a locking mechanism that includes a frame, locking parts, elastic parts and operating parts, the problem of the server locking mechanism being inconvenient to operate and occupying space is solved, and the server can be conveniently locked and released, which is suitable for server maintenance and design needs.

CN118540896APending Publication Date: 2024-08-23WIWYNN CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310276831.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-02-21
Filing Date
2023-03-21
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The existing server locking mechanism is inconvenient to operate and takes up space, affecting the maintenance and design of the server.

Method used

A locking mechanism is designed that includes a frame, a locking piece, an elastic piece, an operating piece and a lock release piece. Through the cooperation of the elastic piece and the operating piece, the server can be conveniently operated and compactly designed to ensure stable locking of the server in the cabinet. .

Benefits of technology

It realizes the convenient locking and releasing of the server, reduces the difficulty of operation, saves space, and is suitable for the maintenance and design needs of the server.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118540896A
    Figure CN118540896A
Patent Text Reader

Abstract

The invention discloses a device with a locking function and a locking mechanism. The device with the locking function comprises a seat body, a shell and the locking mechanism, the seat body is provided with a first clamping part. The locking mechanism comprises a frame, a locking piece, a first elastic piece, an operating piece and an unlocking piece. The frame is provided with a second clamping part. The locking piece is provided with a third clamping part. And the third clamping part is clamped with the first clamping part so as to lock the shell in the seat body. The unlocking piece is provided with a fourth clamping part. And the fourth clamping part is clamped with the second clamping part so as to limit the operating piece. When the unlocking piece is pressed, the fourth clamping part is separated from the second clamping part, and the first elastic piece drives the locking piece to move towards the interior of the frame, so that the third clamping part is separated from the first clamping part, and the locking piece drives the operating piece to move towards the exterior of the frame.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a locking mechanism, in particular to a locking mechanism which is easy to operate and does not occupy space, and a device equipped with the locking mechanism. Background Art

[0002] With the rise of big data, machine learning, the Internet of Things, and numerous network platforms, the demand for servers in life is increasing. Servers are hardware that requires regular maintenance, so the server casing is mostly installed in a cabinet in a slidable manner. In order to prevent the server from sliding out of the cabinet due to vibration or other external forces, a locking structure must be set on the server to lock the server in the cabinet. However, the current locking mechanism of the server is inconvenient to operate and takes up a lot of space, which is not conducive to the maintenance and design of the server. Summary of the invention

[0003] According to one embodiment, the device with a locking function of the present invention comprises a seat, a shell and a locking mechanism. The seat has a first engaging portion. The shell is disposed in the seat. The locking mechanism is disposed in the shell. The locking mechanism comprises a frame, a locking member, a first elastic member, an operating member and a release member. The frame is fixed to the shell. The frame has a second engaging portion. The locking member is movably disposed in the frame. The locking member has a third engaging portion. The third engaging portion engages with the first engaging portion to lock the shell in the seat. The first elastic member is connected to the locking member. The operating member is movably disposed in the frame. The release member is movably connected to the operating member. The release member has a fourth engaging portion. The fourth engaging portion engages with the second engaging portion to limit the operating member. When the release member is pressed, the fourth engaging portion disengages from the second engaging portion, and the first elastic member drives the locking member to move toward the inside of the frame, so that the third engaging portion disengages from the first engaging portion, and the locking member drives the operating member to move toward the outside of the frame.

[0004] According to another embodiment, the locking mechanism of the present invention comprises a frame, a locking member, a first elastic member, an operating member and a release member. The locking member is movably disposed in the frame. The first elastic member is connected to the locking member. The operating member is movably disposed in the frame. The release member is movably connected to the operating member. The release member is engaged with the frame. When the release member is pressed, the release member is disengaged from the frame, the first elastic member drives the locking member to move toward the inside of the frame, and the locking member drives the operating member to move toward the outside of the frame. BRIEF DESCRIPTION OF THE DRAWINGS

[0005] Figure 1 A three-dimensional diagram of a device with a locking function according to an embodiment of the present invention;

[0006] Figure 2 for Figure 1 A partial stereoscopic view of the device after the base is removed;

[0007] Figure 3 for Figure 2 A three-dimensional diagram of the locking mechanism in another perspective;

[0008] Figure 4 for Figure 2 A three-dimensional diagram of the locking mechanism in another perspective;

[0009] Figure 5 for Figure 2 An exploded view of the locking mechanism in FIG.

[0010] Figure 6 for Figure 2 An exploded view of the locking mechanism in another perspective;

[0011] Figure 7 is a top view of the locking mechanism in a locked state;

[0012] Figure 8 A top view of the locking mechanism in a released state;

[0013] Fig. 9 It is a partial three-dimensional diagram of a locking mechanism equipped with a first elastic member;

[0014] Fig.10 It is a partial three-dimensional diagram of a locking mechanism equipped with a first elastic member;

[0015] Fig.11 A top view of a locking mechanism in a locked state according to another embodiment of the present invention;

[0016] Fig.12 for Fig.11 A top view of the locking mechanism in a released state;

[0017] Fig.13 A top view of a locking mechanism in a locked state according to another embodiment of the present invention;

[0018] Fig.14 for Fig.13 A top view of the locking mechanism in the released state.

[0019] Explanation of symbols

[0020] 1: Device

[0021] 10: base body

[0022] 12: Shell

[0023] 14,14',14": Locking mechanism

[0024] 100: first engaging portion

[0025] 102: Slide rail

[0026] 120: Track

[0027] 140:Frame

[0028] 140a: Upper cover

[0029] 140b: Lower cover

[0030] 142: Locking piece

[0031] 144, 144', 144": first elastic member

[0032] 146: Operating parts

[0033] 148: Release piece

[0034] 150: Rotating parts

[0035] 152: Second elastic member

[0036] 154: Limiting piece

[0037] 156: Pivot

[0038] 1400: second engaging portion

[0039] 1402a, 1402b, 1402c: chute

[0040] 1404: Positioning slot

[0041] 1406: Retaining Wall

[0042] 1408: Side wall

[0043] 1420a, 1420b: sliding part

[0044] 1422: Third engagement portion

[0045] 1424: First driving slope

[0046] 1426,1462: linkage part

[0047] 1460: Positioning unit

[0048] 1464: Plug-in unit

[0049] 1466: Limiting slot

[0050] 1468: Second driving slope

[0051] 1470:Drive slot

[0052] 1480: Sleeve

[0053] 1482: Fourth engagement portion

[0054] 1484: Incline

[0055] 1500: first drive slot

[0056] 1502: Second drive slot

[0057] 1504: Protrusion

[0058] A1~A6: Arrow DETAILED DESCRIPTION

[0059] See also Figures 1 to 8 , Figure 1 is a three-dimensional diagram of a device 1 with a locking function according to an embodiment of the present invention, Figure 2 for Figure 1 A partial stereoscopic view of the device 1 after removing the base 10, Figure 3 for Figure 2 A three-dimensional view of the locking mechanism 14 in another perspective, Figure 4 for Figure 2 A three-dimensional view of the locking mechanism 14 in another perspective, Figure 5 for Figure 2 An exploded view of the locking mechanism 14 in FIG. Figure 6 for Figure 2 The locking mechanism 14 is an exploded view from another perspective, Figure 7 is a top view of the locking mechanism 14 in a locked state, Figure 8 It is a top view of the locking mechanism 14 in the unlocked state.

[0060] like Figure 1 As shown, the device 1 with a locking function comprises a base 10, a shell 12 and a locking mechanism 14. The shell 12 is disposed in the base 10, and the locking mechanism 14 is disposed in the shell 12, wherein the locking mechanism 14 is used to lock the shell 12 in the base 10. In one embodiment, the base 10 may be a cabinet for installing a server, and the shell 12 may be a casing of the server. Therefore, the locking mechanism 14 may be used to lock the casing of the server in the cabinet. It should be noted that the device 1 may also be other electronic devices or non-electronic devices that require a locking function, depending on the actual application.

[0061] like Figure 1 and Figure 2As shown, the base 10 has a first engaging portion 100 and a slide rail 102. The position of the first engaging portion 100 corresponds to the position of the locking mechanism 14. In this embodiment, the first engaging portion 100 can be an engaging hole, but is not limited thereto. In practical applications, two locking mechanisms 14 can be provided on both sides of the housing 12, and two first engaging portions 100 are formed on both sides of the base 10, so that the locking and unlocking of the housing 12 are more stable in operation. Of course, in some embodiments, a locking mechanism 14 can also be provided only on one side of the housing 12, and a first engaging portion 100 can be formed on one side of the housing 10, depending on the practical application. In addition, the housing 12 has a track 120. The track 120 can slide in the slide rail 102, so that the housing 12 is slidably installed in the base 10. In practical applications, two slide rails 102 can be provided on the two inner side walls of the base 10, and two tracks 120 can be provided on the two outer side walls of the housing 12.

[0062] like Figures 3 to 6 As shown, the locking mechanism 14 includes a frame 140 , a locking member 142 , a first elastic member 144 , an operating member 146 , a releasing member 148 , a rotating member 150 , a second elastic member 152 and a limiting member 154 .

[0063] In this embodiment, the frame 140 may include an upper cover 140a and a lower cover 140b, but the present invention is not limited thereto. The frame 140 is fixed to the housing 12, and the frame 140 has a second engaging portion 1400. In this embodiment, the second engaging portion 1400 may be an engaging hole located at one side of the upper cover 140a, but the present invention is not limited thereto.

[0064] The locking member 142 is movably disposed in the frame 140. The frame 140 may have a slide groove, and the locking member 142 may have a sliding portion. The sliding portion is disposed in the slide groove, so that the locking member 142 is movably disposed in the frame 140. In this embodiment, the upper cover 140a of the frame 140 may have two slide grooves 1402a and 1402b, the lower cover 140b of the frame 140 may have a slide groove 1402c, and the locking member 142 may have two sliding portions 1420a and 1420b. The sliding portion 1420a may extend from both sides of the locking member 142 and be disposed in the slide groove 1402a of the upper cover 140a and the slide groove 1402c of the lower cover 140b. The sliding portion 1420b may extend from one side of the locking member 142 and be disposed in the slide groove 1402b of the upper cover 140a. It should be noted that the number of the slide grooves and the sliding portions can be determined according to actual applications and is not limited to the embodiment shown in the figure. In addition, the locking member 142 has a third engaging portion 1422. The third engaging portion 1422 is used to engage with the first engaging portion 100 of the base 10 to lock the housing 12 in the base 10. In this embodiment, the third engaging portion 1422 can be an engaging protrusion, but is not limited thereto.

[0065] The first elastic member 144 is connected to the locking member 142. In this embodiment, the first elastic member 144 may be a tension spring, wherein two ends of the first elastic member 144 may be connected to the sliding portion 1420a of the locking member 142 and the upper cover 140a of the frame 140 respectively.

[0066] The operating member 146 is movably disposed in the frame 140. In the present embodiment, the frame 140 may have a positioning groove 1404, and the operating member 146 may have a positioning portion 1460. The positioning portion 1460 is disposed in the positioning groove 1404, so that the operating member 146 is movably disposed in the frame 140. In the present embodiment, the extending direction of the slide grooves 1402a, 1402b, and 1402c is perpendicular to the extending direction of the positioning groove 1404, so that the moving direction of the locking member 142 is perpendicular to the moving direction of the operating member 146. In the present embodiment, the upper cover 140a and the lower cover 140b of the frame 140 may have a positioning groove 1404 respectively, and two sides of the operating member 146 may have two positioning portions 1460. In addition, the lower cover 140b of the frame 140 may have two retaining walls 1406. The operating member 146 may be sandwiched between the two retaining walls 1406 to make the setting of the operating member 146 more stable.

[0067] The rotating member 150 is pivotally connected to the lower cover 140b of the frame 140 via a pivot 156. In this embodiment, the rotating member 150 may have a first driving groove 1500 and a second driving groove 1502. In addition, the operating member 146 may have a linkage portion 1462. The sliding portion 1420a of the locking member 142 may be disposed in the first driving groove 1500 of the rotating member 150, and the linkage portion 1462 of the operating member 146 may be disposed in the second driving groove 1502 of the rotating member 150.

[0068] The release member 148 is movably connected to the operating member 146. In this embodiment, the operating member 146 may have a plug-in portion 1464, and the release member 148 may have a sleeve portion 1480. The sleeve portion 1480 is sleeved on the plug-in portion 1464, and the second elastic member 152 is disposed in the sleeve portion 1480, wherein two ends of the second elastic member 152 are respectively connected to the plug-in portion 1464 and the sleeve portion 1480. In this embodiment, the second elastic member 152 may be a compression spring. In addition, the plug-in portion 1464 may have a limiting groove 1466. After the sleeve portion 1480 is sleeved on the plug-in portion 1464, the limiting member 154 is disposed on the sleeve portion 1480 and is located in the limiting groove 1466 to prevent the release member 148 from being separated from the operating member 146. Furthermore, the release member 148 has a fourth engaging portion 1482. The fourth engaging portion 1482 is used to engage with the second engaging portion 1400 of the frame 140 to limit the position of the operating member 146. In this embodiment, the fourth engaging portion 1482 can be a hook, but is not limited thereto.

[0069] like Figure 1 and Figure 7 As shown, the shell 12 can be locked in the base 10 by the locking mechanism 14. Further, the third engaging portion 1422 of the locking member 142 engages with the first engaging portion 100 of the base 10 to lock the shell 12 in the base 10. At the same time, the fourth engaging portion 1482 of the release member 148 engages with the second engaging portion 1400 of the frame 140 to limit the operating member 146. At this time, the first elastic member 144 is in a stretched state. When the user wants to take the shell 12 out of the base 10, the user can hold the operating member 146 with the index finger and press the release member 148 in the direction of the arrow A1 with the thumb. When the release member 148 is pressed, the fourth engaging portion 1482 will disengage from the second engaging portion 1400. At this time, the first elastic member 144 will drive the locking member 142 to move toward the inside of the frame 140 (in the direction of the arrow A2), so that the third engaging portion 1422 disengages from the first engaging portion 100, as shown in FIG. Figure 8As shown. When the first elastic member 144 drives the locking member 142 to move toward the inside of the frame 140, the sliding portion 1420a of the locking member 142 pushes against the first driving groove 1500 of the rotating member 150 and drives the rotating member 150 to rotate in the direction of arrow A3. When the rotating member 150 rotates in the direction of arrow A3, the second driving groove 1502 of the rotating member 150 pushes against the linkage portion 1462 of the operating member 146 and drives the operating member 146 to move toward the outside of the frame 140 (in the direction of arrow A5). In other words, in this embodiment, when the release member 148 is pressed, the locking member 142 indirectly drives the operating member 146 to move toward the outside of the frame 140 through the rotating member 150, so as to facilitate the user to hold the operating member 146. Therefore, the user can easily pull the housing 12 out of the seat 10 by pulling the operating member 146.

[0070] When the user wants to install the housing 12 on the base 10, the user can push the housing 12 into the base 10 along the slide rail 102. In this embodiment, the rotating member 150 has a protrusion 1504. When the housing 12 is pushed into the base 10 along the slide rail 102, the protrusion 1504 is pushed by the slide rail 102 to drive the rotating member 150 to rotate in the direction of arrow A4. When the rotating member 150 rotates in the direction of arrow A4, the first driving groove 1500 of the rotating member 150 pushes against the sliding portion 1420a of the locking member 142 to drive the locking member 142 to move toward the outside of the frame 140 (in the direction of arrow A1), and the second driving groove 1502 of the rotating member 150 pushes against the linkage portion 1462 of the operating member 146 to drive the operating member 146 to move toward the inside of the frame 140 (in the direction of arrow A6), so that the third engaging portion 1422 of the locking member 142 engages with the first engaging portion 100 of the base 10, and the fourth engaging portion 1482 of the release member 148 engages with the second engaging portion 1400 of the frame 140. In this embodiment, the fourth engaging portion 1482 of the release member 148 has an inclined surface 1484. When the operating member 146 moves toward the inside of the frame 140 (in the direction of arrow A6), the side wall 1408 of the frame 140 pushes against the inclined surface 1484, so that the release member 148 moves toward the operating member 146 (in the direction of arrow A1). After the fourth engaging portion 1482 of the release member 148 is aligned with the second engaging portion 1400 of the frame 140, the second elastic member 152 resets the release member 148 in the direction of arrow A2, so that the fourth engaging portion 1482 of the release member 148 is engaged with the second engaging portion 1400 of the frame 140. Therefore, when the user pushes the housing 12 into the seat body 10, the present invention can achieve automatic locking through the cooperation between the protrusion 1504 and the slide rail 102.

[0071] It should be noted that the present invention may also omit the protrusion 1504. When the user pushes the housing 12 into the base 10, the user only needs to push the operating member 146 toward the inside of the frame 140 (in the direction of arrow A6) to drive the locking member 142 to move toward the outside of the frame 140 (in the direction of arrow A1) to lock the housing 12 in the base 10.

[0072] See also Fig. 9 , Fig. 9 FIG. 1 is a partial three-dimensional diagram of the locking mechanism 14 equipped with the first elastic member 144'. Fig. 9 As shown, the first elastic member 144 ′ may be a compression spring, wherein two ends of the first elastic member 144 ′ are respectively connected to the sliding portion 1420 a and the lower cover 140 b of the frame 140 . Figure 7 and Figure 8 The first elastic member 144 can Fig. 9 When the locking mechanism 14 is in Figure 7 In the locked state shown in FIG. 1 , the first elastic member 144 ′ is in a compressed state. Figure 8 As shown, when the release member 148 is pressed, the first elastic member 144 ′ drives the locking member 142 to move toward the inside of the frame 140 (in the direction of arrow A2 ), so that the third engaging portion 1422 is separated from the first engaging portion 100 .

[0073] See also Fig.10 , Fig.10 FIG. 1 is a partial stereoscopic view of the locking mechanism 14 equipped with the first elastic member 144″. Fig.10 As shown, the first elastic member 144 ″ may be a torsion spring, wherein the first elastic member 144 ″ is sleeved on the pivot 156 , and two ends of the first elastic member 144 ″ are respectively connected to the sliding portion 1420 a and the lower cover 140 b of the frame 140 . Figure 7 and Figure 8 The first elastic member 144 can Fig.10 When the locking mechanism 14 is in Figure 7 In the locked state shown in FIG. 1 , the first elastic member 144 ″ is in a twisted state. Figure 8 As shown, when the release member 148 is pressed, the first elastic member 144 ″ drives the locking member 142 to move toward the inside of the frame 140 (in the direction of arrow A2 ), so that the third engaging portion 1422 is separated from the first engaging portion 100 .

[0074] See also Fig.11 as well as Fig.12 , Fig.11 is a top view of a locking mechanism 14' in a locked state according to another embodiment of the present invention, Fig.12 for Fig.11A top view of the locking mechanism 14' in the unlocked state.

[0075] The main difference between the locking mechanism 14' and the above-mentioned locking mechanism 14 is that the locking mechanism 14' does not include the above-mentioned rotating member 150. Fig.11 and Fig.12 As shown, the locking member 142 has a first driving bevel 1424, and the operating member 146 has a second driving bevel 1468, wherein the first driving bevel 1424 abuts against the second driving bevel 1468. Therefore, when the first elastic member 144 drives the locking member 142 to move toward the inside of the frame 140 (in the direction of arrow A2), the first driving bevel 1424 will push against the second driving bevel 1468 and drive the operating member 146 to move toward the outside of the frame 140 (in the direction of arrow A5). Similarly, when the operating member 146 is pushed toward the inside of the frame 140 (in the direction of arrow A6), the second driving bevel 1468 will push against the first driving bevel 1424 and drive the locking member 142 to move toward the outside of the frame 140 (in the direction of arrow A1). The above-mentioned locking mechanism 14 can be replaced by a locking mechanism 14' so as to utilize the locking mechanism 14' to lock the shell 12 in the base 10. It should be noted that, Figure 11 to Figure 12 Zhongyu Figures 1 to 8 The same components as shown in the figure have substantially the same working principles, which will not be described in detail here. Fig. 9 The first elastic member 144' or Fig.10 The first elastic member 144" in is replaced.

[0076] See also Fig.13 as well as Fig.14 , Fig.13 is a top view of a locking mechanism 14" in a locked state according to another embodiment of the present invention, Fig.14 for Fig.13 A top view of the locking mechanism 14" in the unlocked state.

[0077] The main difference between the locking mechanism 14" and the above-mentioned locking mechanism 14 is that the locking mechanism 14" does not include the above-mentioned rotating member 150. Fig.13 and Fig.14As shown, the locking member 142 has a linkage portion 1426, and the operating member 146 has a driving groove 1470, wherein the linkage portion 1426 is disposed in the driving groove 1470. Therefore, when the first elastic member 144 drives the locking member 142 to move toward the inside of the frame 140 (in the direction of arrow A2), the linkage portion 1426 will push against the driving groove 1470 and drive the operating member 146 to move toward the outside of the frame 140 (in the direction of arrow A5). Similarly, when the operating member 146 is pushed toward the inside of the frame 140 (in the direction of arrow A6), the driving groove 1470 will push against the linkage portion 1426 and drive the locking member 142 to move toward the outside of the frame 140 (in the direction of arrow A1). The above-mentioned locking mechanism 14 can be replaced by a locking mechanism 14" to utilize the locking mechanism 14" to lock the shell 12 in the base 10. It should be noted that, Figure 13 to Figure 14 Zhongyu Figures 1 to 8 The elements with the same reference numerals shown in the figure have substantially the same working principles, which will not be described in detail herein. In addition, the shapes of the frame 140, the operating member 146 and the release member 148 of the locking mechanism 14" and the frame 140, the operating member 146 and the release member 148 of the locking mechanism 14 described above can be designed differently according to actual applications, and the different shapes do not affect the working principles.

[0078] In summary, when the user wants to take the shell out of the base, the user can press the release member to release the engagement between the release member and the frame. At this time, the first elastic member will drive the locking member to move toward the inside of the frame to release the engagement between the locking member and the base. At the same time, the locking member will drive the operating member to move toward the outside of the frame to facilitate the user to hold the operating member. Thus, the user can easily pull the shell out of the base by pulling the operating member. In one embodiment, the base can be a cabinet for installing a server, and the shell can be a casing of the server. Therefore, the locking mechanism of the present invention can be used to lock the casing of the server in the cabinet. Since the locking mechanism of the present invention is easy to operate and does not take up space, it is beneficial to the maintenance and design of the server.

[0079] The above descriptions are only preferred embodiments of the present invention. All equivalent changes and modifications made according to the claims of the present invention should fall within the scope of the present invention.

Claims

1. A device with a locking function, It is characterized in that The device with locking function comprises: The seat body has a first engaging portion; A shell is disposed in the base; and A locking mechanism is disposed in the housing, and the locking mechanism comprises: A frame, fixed to the housing, the frame having a second engaging portion; A locking member is movably disposed in the frame, and has a third engaging portion, wherein the third engaging portion engages with the first engaging portion to lock the housing in the seat; A first elastic member connected to the locking member; an operating member, movably disposed in the frame; as well as A release member is movably connected to the operating member, and the release member has a fourth engaging portion, and the fourth engaging portion engages with the second engaging portion to limit the operating member; When the release member is pressed, the fourth engaging portion disengages from the second engaging portion, and the first elastic member drives the locking member to move toward the inside of the frame, so that the third engaging portion disengages from the first engaging portion, and the locking member drives the operating member to move toward the outside of the frame. 2 . The device with a locking function as claimed in claim 1 , wherein the frame has a slide groove, the locking member has a sliding portion, and the sliding portion is disposed in the slide groove.

3. A device with a locking function as described in claim 2, wherein the locking mechanism further includes a rotating member pivotally connected to the frame, the rotating member having a first drive groove and a second drive groove, the operating member having a linkage portion, the sliding portion being arranged in the first drive groove, and the linkage portion being arranged in the second drive groove; when the first elastic member drives the locking member to move toward the interior of the frame, the sliding portion pushes against the first drive groove to drive the rotating member to rotate; when the rotating member rotates, the second drive groove pushes against the linkage portion to drive the operating member to move toward the outside of the frame.

4. A device with a locking function as described in claim 3, wherein the rotating member is pivotally connected to the frame via a pivot, the first elastic member is a torsion spring, the first elastic member is sleeved on the pivot, and two ends of the first elastic member are respectively connected to the sliding portion and the frame.

5. A device with a locking function as described in claim 3, wherein the base body has a slide rail and the rotating member has a protrusion; when the shell is pushed into the base body along the slide rail, the protrusion is pushed by the slide rail to drive the rotating member to rotate; when the rotating member rotates, the first driving groove pushes against the sliding portion to drive the locking member to move toward the outside of the frame, and the second driving groove pushes against the linkage portion to drive the operating member to move toward the inside of the frame, so that the third engaging portion is engaged with the first engaging portion, and the fourth engaging portion is engaged with the second engaging portion.

6. The device with a locking function as claimed in claim 2, wherein the frame has a positioning groove, the operating member has a positioning portion, the positioning portion is arranged in the positioning groove, and the extension direction of the sliding groove is perpendicular to the extension direction of the positioning groove.

7. A device with a locking function as described in claim 1, wherein the locking mechanism further includes a second elastic member, the operating member has a plug-in portion, the release member has a sleeve portion, the sleeve portion is sleeved on the plug-in portion, the second elastic member is arranged in the sleeve portion, and the two ends of the second elastic member are respectively connected to the plug-in portion and the sleeve portion.

8. The device with a locking function as claimed in claim 7, wherein the locking mechanism further comprises a limiting member, the plug-in portion has a limiting groove, and the limiting member is disposed on the sleeve portion and located in the limiting groove.

9. A device with a locking function as described in claim 1, wherein the locking member has a first driving inclined surface, the operating member has a second driving inclined surface, and the first driving inclined surface abuts against the second driving inclined surface; when the first elastic member drives the locking member to move toward the inside of the frame, the first driving inclined surface pushes against the second driving inclined surface and drives the operating member to move toward the outside of the frame.

10. A device with a locking function as described in claim 1, wherein the locking member has a linkage portion, the operating member has a driving groove, and the linkage portion is arranged in the driving groove; when the first elastic member drives the locking member to move toward the inside of the frame, the linkage portion pushes against the driving groove and drives the operating member to move toward the outside of the frame.

11. A locking mechanism, It is characterized in that The locking mechanism comprises: frame; a locking member movably disposed in the frame; A first elastic member connected to the locking member; an operating member, movably disposed in the frame; as well as A release member, movably connected to the operating member, the release member being engaged with the frame; When the release member is pressed, the release member is separated from the frame, the first elastic member drives the locking member to move toward the inside of the frame, and the locking member drives the operating member to move toward the outside of the frame. 12 . The locking mechanism as claimed in claim 11 , wherein the frame has a slide groove, the locking member has a sliding portion, and the sliding portion is disposed in the slide groove.

13. The locking mechanism as described in claim 12 further includes a rotating member pivotally connected to the frame, the rotating member having a first drive groove and a second drive groove, the operating member having a linkage portion, the sliding portion being arranged in the first drive groove, and the linkage portion being arranged in the second drive groove; when the first elastic member drives the locking member to move toward the inside of the frame, the sliding portion pushes against the first drive groove to drive the rotating member to rotate; when the rotating member rotates, the second drive groove pushes against the linkage portion to drive the operating member to move toward the outside of the frame.

14. The locking mechanism as claimed in claim 13, wherein the rotating member is pivotally connected to the frame via a pivot, the first elastic member is a torsion spring, the first elastic member is sleeved on the pivot, and two ends of the first elastic member are respectively connected to the sliding portion and the frame.

15. A locking mechanism as described in claim 13, wherein the rotating member has a protrusion; when the protrusion is pushed to drive the rotating member to rotate, the first driving groove pushes against the sliding portion to drive the locking member to move toward the outside of the frame, and the second driving groove pushes against the linkage portion to drive the operating member to move toward the inside of the frame.

16. The locking mechanism as claimed in claim 12, wherein the frame has a positioning slot, the operating member has a positioning portion, the positioning portion is disposed in the positioning slot, and an extending direction of the sliding slot is perpendicular to an extending direction of the positioning slot.

17. The locking mechanism as described in claim 11 further includes a second elastic member, the operating member has a plug-in portion, the release member has a sleeve portion, the sleeve portion is sleeved on the plug-in portion, the second elastic member is arranged in the sleeve portion, and the two ends of the second elastic member are respectively connected to the plug-in portion and the sleeve portion.

18. The locking mechanism as claimed in claim 17, further comprising a limiting member, the plug-in portion having a limiting groove, the limiting member being disposed on the sleeve portion and located in the limiting groove.

19. A locking mechanism as described in claim 11, wherein the locking member has a first driving inclined surface, the operating member has a second driving inclined surface, and the first driving inclined surface abuts against the second driving inclined surface; when the first elastic member drives the locking member to move toward the inside of the frame, the first driving inclined surface pushes against the second driving inclined surface and drives the operating member to move toward the outside of the frame.

20. A locking mechanism as described in claim 11, wherein the locking member has a linkage portion, the operating member has a driving groove, and the linkage portion is arranged in the driving groove; when the first elastic member drives the locking member to move toward the inside of the frame, the linkage portion pushes against the driving groove and drives the operating member to move toward the outside of the frame.