A control method and apparatus for a bailing vehicle lock
By combining a comprehensive management and control platform with the MQTT protocol, vehicle speed thresholds, and electronic fences, remote or local control of retrieval locks is achieved, solving the problems of permission settings and flow rate control of traditional retrieval locks, and improving security and management efficiency.
Patent Information
- Application Number
- CN202311831470.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-28
- Publication Date
- 2026-02-03
- Estimated Expiration
- 2043-12-28
AI Technical Summary
Traditional retrieval locks cannot set access permissions for equipment opening and closing, cannot control the crude oil flow rate, and cannot be promptly corrected after personnel errors, posing a safety vulnerability and the risk of crude oil leakage.
The electromagnetic lock position and RTU current number are set through the integrated management and control platform. Telemetry transmission is carried out using the MQTT protocol. Control is performed based on the unique identifier of the electromagnetic lock. Combined with vehicle speed threshold and electronic fence, remote or local lock control operation can be realized. Ten levels of flow rate control are set, and the lock is automatically applied or de-sealed when the vehicle speed changes.
It enables real-time, accurate, and efficient control of the retrieval vehicle lock, preventing unauthorized opening and crude oil leakage, simplifying management processes, and improving safety and the scientific nature of operation.
Smart Images

Figure CN117803263B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of intelligent control technology, and in particular to the control of retrieval locks. Background Technology
[0002] With the continuous upgrading of the oilfield industry structure and the emergence of new business demands, electromagnetic locks for oil pipelines on oil retrieval vehicles have been developed to prevent loopholes in internal management and to standardize the operations of oil retrieval vehicles.
[0003] The following problems frequently occur during the transportation of retrieval vehicles:
[0004] 1. Personnel opened the valve of the retrieval vehicle without authorization, resulting in the theft of crude oil.
[0005] 2. The valve was left open and then forgotten to be closed, causing crude oil leakage.
[0006] 3. The valve opening is fixed, making it impossible to control the crude oil flow rate. If the flow rate is too fast during unloading, it will cause crude oil to overflow.
[0007] Traditional tank truck locks cannot set access permissions for equipment opening and closing, nor can they control the liquid flow rate. Furthermore, there are no remedial measures in case of operator error and forgetting to lock the equipment. Most importantly, traditional locks cannot pinpoint the equipment's location, making them highly susceptible to theft by those on duty. Summary of the Invention
[0008] The purpose of this invention is to solve the above-mentioned technical problems, including the low real-time performance, efficiency, and accuracy of the electromagnetic lock control for the oil pipe of the retrieval vehicle, and to provide a control method and device for the retrieval vehicle lock.
[0009] This invention is achieved through the following technical solution. One aspect of this invention provides a control method for retrieving a vehicle lock, the method comprising:
[0010] The vehicle is entered into the integrated management and control platform and its permissions and unique electromagnetic lock identifier are attached; the electromagnetic lock location, the RTU current occupied by the remote terminal unit and the relay number are set in the integrated management and control platform, and the retrieval vehicle lock is attached to the specific vehicle; according to the unique identifier of the electromagnetic lock, the message queue telemetry transmission protocol MQTT publish and subscribe topics are set;
[0011] The degree of lock opening and closing is controlled based on the RTU calibration current value. The formula for calculating the degree of lock opening and closing is as follows:
[0012] Switching degree = [(calibration current - zero-point reading) / scale division value];
[0013] The sealing and unsealing processes are controlled by opening and closing the electromagnetic lock;
[0014] When a vehicle speed threshold is set, the electromagnetic lock will automatically seal the vehicle when the speed is greater than or equal to the set threshold; when the speed is less than the set threshold and the vehicle enters the electronic fence, the electromagnetic lock will automatically unlock the vehicle.
[0015] Furthermore, the range of the rtu current is 4-20mA.
[0016] Furthermore, the method for obtaining the RTU calibration current value is as follows: the RTU current value is calibrated using Ohm's law to obtain the RTU calibration current value, where the RTU calibration current value is i*150 / 138.3, and i is the current before calibration.
[0017] Furthermore, the zero-point reading is 4mA, the scale division is 0.16mA, and the switching degree is α = [(i*150 / 138.3 - 4) / 0.16].
[0018] Furthermore, the control of unsealing and sealing via the electromagnetic lock's on / off state includes remote manual sealing control. Sealing refers to the ability to remotely operate the electromagnetic lock while preventing on-site operation, specifically including:
[0019] Step 1: The platform sends a sealing command;
[0020] Step 2: Determine if the vehicle is within the electronic fence;
[0021] Step 3: The vehicle is within the electronic fence, and the lock does not activate;
[0022] Step 4: The vehicle is outside the electronic fence; determine if the lock is open.
[0023] Step 5: With the lock in the open state, apply a locking operation to the lock, and then close the lock.
[0024] Step 6: With the lock in the closed state, apply a sealing operation to the lock.
[0025] Furthermore, the control of unsealing and sealing via the electromagnetic lock's on / off state includes remote manual unsealing control, specifically including:
[0026] Step 1: The platform sends an unblocking command;
[0027] Step 2: Determine if the vehicle is within the electronic fence;
[0028] Step 3: The vehicle is within the electronic fence, and the lock does not activate;
[0029] Step 4: Once the vehicle is outside the electronic fence, unlock the lock.
[0030] Furthermore, the electronic fence is a circular area centered on the oil loading or unloading point with a settable distance as its radius. The radius is calculated as follows:
[0031] S = 6378.137 * 2*arcsin((sin(a / 2)*sin(a / 2)+cos(lat1)*cos(lat2)*sin(b / 2)* sin(b / 2))^1 / 2)
[0032] Where latitude1 is the vehicle latitude; lat1 is the vehicle conversion latitude; latitude2 is the latitude of the loading / unloading point; lat2 is the conversion latitude of the loading / unloading point; longitude1 is the vehicle longitude; lng1 is the vehicle conversion longitude; longitude2 is the longitude of the loading / unloading point; lng2 is the conversion longitude of the loading / unloading point.
[0033] lat1 = π*latitude1 / 180
[0034] lat2 = π*latitude2 / 180
[0035] lng1 = π*longitude1 / 180
[0036] lng2 = π*longitude2 / 180
[0037] The difference in latitude is: a = π*latitude1 / 180 - π*latitude2 / 180
[0038] The difference in longitude is: b = π*longitude1 / 180 - π*longitude2 / 180.
[0039] Furthermore, the setting of a vehicle speed threshold means that when the vehicle speed is greater than or equal to the set threshold, the electromagnetic lock automatically seals; when the vehicle speed is less than the set threshold and enters the electronic fence, the electromagnetic lock automatically unlocks. Specifically, this includes:
[0040] Step 1: The platform receives the vehicle's latitude, longitude, and speed;
[0041] Step 2: Determine if the vehicle speed is greater than or equal to the threshold;
[0042] Step 3: If the vehicle speed is greater than or equal to the threshold, determine the lock status;
[0043] Step 4: With the lock in the closed state, automatic sealing will be performed;
[0044] Step 5: With the lock in the open state, the automatic sealing will be applied after the locking action is performed;
[0045] Step 6: If the vehicle speed is less than the threshold, determine whether the vehicle is within the electronic fence;
[0046] Step 7: Once the vehicle is within the electronic fence, the lock will automatically unlock;
[0047] Step 8: The vehicle is outside the electronic fence; check the lock status.
[0048] Step 9: With the lock in the open state, perform the locking operation, and then perform the sealing operation;
[0049] Step 10: With the lock in the closed state, apply a sealing operation to the lock.
[0050] Furthermore, controlling the degree of lock opening and closing specifically includes:
[0051] Step 1: The platform sends a switch command to control the opening degree to 0, 10, 20, 30, 40, 50, 60, 70, 80, 90 and 100;
[0052] Step 2: Determine whether the lock is locked or unlocked;
[0053] Step 3: The lock is unlocked; the lock does not perform any action.
[0054] Step 4: To lock the door, perform the opening and closing actions on the lock.
[0055] Secondly, the present invention provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor runs the computer program stored in the memory, it executes the steps of the control method for retrieving a car lock as described above.
[0056] The beneficial effects of this invention are:
[0057] This invention allows for remote or local switching of the equipment through sealing and unsealing operations (remote switching is possible only in the sealed state, and local switching is possible only in the unsealed state), maximizing scientific management. Regarding flow rate control, this invention provides 10 levels to indirectly control the lock's opening and closing, with level 0 being the closed position. If the operator forgets to close the lock, it will automatically close and re-seal once the vehicle speed exceeds a set threshold. If needed, an electronic fence can be set up; when a vehicle enters the electronic fence and its speed is below the threshold, it will automatically unseal, facilitating on-site lock / unlocking.
[0058] This invention can also input the real-time status of vehicles and retrieval locks into a database, allowing users to view the current status of the equipment. Furthermore, vehicles can be linked to an organizational structure, presenting the entire retrieval fleet in a clear and concise directory tree structure.
[0059] The purpose of this invention is to provide real-time, accurate, and efficient control of the retrieval vehicle lock, thereby solving the safety problems associated with the retrieval vehicle lock operation.
[0060] This invention is applicable to the control of the electromagnetic lock on the oil pipe of the retrieval vehicle. Attached Figure Description
[0061] To more clearly illustrate the technical solution of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0062] Figure 1 Flowchart for remote manual sealing application;
[0063] Figure 2 Flowchart for remote manual unsealing;
[0064] Figure 3 Flowchart for remote lock opening and closing;
[0065] Figure 4 This is a flowchart for the automatic application and removal of seals. Detailed Implementation
[0066] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain the present invention, and should not be construed as limiting the present invention.
[0067] Implementation Method 1: A control method for retrieving a vehicle lock, the method comprising:
[0068] The vehicle is entered into the integrated management and control platform and its permissions and unique electromagnetic lock identifier are attached; the electromagnetic lock location, the RTU current occupied by the remote terminal unit and the relay number are set in the integrated management and control platform, and the retrieval vehicle lock is attached to the specific vehicle; according to the unique identifier of the electromagnetic lock, the message queue telemetry transmission protocol MQTT publish and subscribe topics are set;
[0069] The degree of lock opening and closing is controlled based on the RTU calibration current value. The formula for calculating the degree of lock opening and closing is as follows:
[0070] Switching degree = [(calibration current - zero-point reading) / scale division value];
[0071] The sealing and unsealing processes are controlled by opening and closing the electromagnetic lock;
[0072] When a vehicle speed threshold is set, the electromagnetic lock will automatically seal the vehicle when the speed is greater than or equal to the set threshold; when the speed is less than the set threshold and the vehicle enters the electronic fence, the electromagnetic lock will automatically unlock the vehicle.
[0073] In this embodiment, a method for calculating the on / off degree for controlling liquid flow is provided. This method obtains the result through a large sample sampling and weighted average. After rounding, the unlocking error is within 2%, and the locking error is close to 0.1%.
[0074] This implementation allows for remote or local switching of the equipment via sealing and unsealing operations (remote switching is possible only in the sealed state, and local switching is possible only in the unsealed state), maximizing scientific management. Regarding flow rate control, this implementation uses 10 levels to indirectly control the lock's opening and closing, with level 0 being the closed position. If the operator forgets to close the lock, it will automatically close and re-seal once the vehicle speed exceeds a set threshold. If necessary, an electronic fence can be set up; when a vehicle enters the electronic fence and its speed is below the threshold, it will automatically unseal, facilitating on-site lock / unlocking.
[0075] Implementation Method Two: This implementation method further defines the control method for retrieving a vehicle lock described in Implementation Method One. In this implementation method, the range of the RTU current is further defined, specifically including:
[0076] The range of the RTU current is 4-20mA.
[0077] In this embodiment, 4mA is the minimum operating voltage of the RTU, and it cannot work properly if the voltage is below 4mA; 20mA is the maximum operating voltage of the RTU, and the voltage above 20mA will reduce the service life of the RTU.
[0078] Implementation Method 3 is a further limitation on the control method for retrieving a vehicle lock described in Implementation Method 1. In this implementation method, the method for obtaining the RTU calibration current value is further defined, specifically including:
[0079] The method for obtaining the RTU calibration current value is as follows: the RTU current value is calibrated using Ohm's law to obtain the RTU calibration current value, where the RTU calibration current value is i*150 / 138.3, and i is the current before calibration.
[0080] In this embodiment, the resistance of the semiconductor component in the RTU device changes due to temperature variations. Furthermore, the high viscosity of crude oil can cause blockages in critical equipment components. Therefore, current calibration is performed.
[0081] Implementation Method Four: This implementation method further defines the control method for retrieving vehicle locks described in Implementation Method One. In this implementation method, the zero-point reading, scale division, and opening degree are further defined, specifically including:
[0082] The zero-point reading is 4mA, the scale division is 0.16mA, and the switching degree is α = [(i*150 / 138.3 - 4) / 0.16]
[0083] The zero-point reading, scale division value, and switching degree setting values in this embodiment can ensure the normal operation of the equipment and reduce the error between the equipment's switching degree and the actual value.
[0084] Implementation method five is a further limitation on the control method for retrieving a vehicle lock described in implementation method one. In this implementation method, the control of unlocking and sealing via the electromagnetic lock's on / off state is further defined, specifically including:
[0085] The control of unsealing and sealing via the electromagnetic lock's on / off state includes remote manual sealing control. Sealing refers to the ability to remotely operate the electromagnetic lock while maintaining on-site control. Specifically, this includes:
[0086] Step 1: The platform sends a sealing command;
[0087] Step 2: Determine if the vehicle is within the electronic fence;
[0088] Step 3: The vehicle is within the electronic fence, and the lock does not activate;
[0089] Step 4: The vehicle is outside the electronic fence;
[0090] Step 5: With the lock in the open state, apply a locking operation to the lock, and then close the lock.
[0091] Step 6: With the lock in the closed state, apply a sealing operation to the lock.
[0092] This implementation method enables real-time remote control of the retrieval vehicle lock, which is used to solve the problem of personnel opening the retrieval vehicle valve without authorization.
[0093] Implementation method six is a further limitation on the control method for retrieving a vehicle lock described in implementation method one. In this implementation method, the control of unlocking and sealing via the electromagnetic lock's on / off state is further defined, specifically including:
[0094] The control of unsealing and sealing via the electromagnetic lock's on / off state includes remote manual unsealing control, specifically including:
[0095] Step 1: The platform sends an unblocking command;
[0096] Step 2: Determine if the vehicle is within the electronic fence;
[0097] Step 3: The vehicle is within the electronic fence, and the lock does not activate;
[0098] Step 4: Once the vehicle is outside the electronic fence, unlock the lock.
[0099] This implementation method enables real-time remote control of the retrieval vehicle lock, which can be used to solve the problem of temporary oil unloading when the retrieval vehicle encounters an emergency.
[0100] Implementation method seven is a further limitation on the control method for retrieving a vehicle lock described in implementation method one. In this implementation method, the electronic fence is further defined, specifically including:
[0101] The electronic fence is a circular area centered at the oil loading or unloading point with a settable radius. The radius is calculated as follows:
[0102] S = 6378.137 * 2*arcsin((sin(a / 2)*sin(a / 2)+cos(lat1)*cos(lat2)*sin(b / 2)* sin(b / 2))^1 / 2)
[0103] Where latitude1 is the vehicle latitude; lat1 is the vehicle conversion latitude; latitude2 is the latitude of the loading / unloading point; lat2 is the conversion latitude of the loading / unloading point; longitude1 is the vehicle longitude; lng1 is the vehicle conversion longitude; longitude2 is the longitude of the loading / unloading point; lng2 is the conversion longitude of the loading / unloading point.
[0104] lat1 = π*latitude1 / 180
[0105] lat2 = π*latitude2 / 180
[0106] lng1 = π*longitude1 / 180
[0107] lng2 = π*longitude2 / 180
[0108] The difference in latitude is: a = π*latitude1 / 180 - π*latitude2 / 180
[0109] The difference in longitude is: b = π*longitude1 / 180 - π*longitude2 / 180.
[0110] In this embodiment, a method for calculating the radius of the electronic fence is provided to determine whether the retrieval vehicle is within the radius of the electronic fence.
[0111] Implementation method eight further defines the control method for retrieving vehicle locks described in implementation method one. In this implementation, a vehicle speed threshold is set. When the vehicle speed is greater than or equal to the set threshold, the electromagnetic lock automatically seals; when the vehicle speed is less than the set threshold and enters the electronic fence, the electromagnetic lock automatically unlocks. This further defines the method, specifically including:
[0112] The system sets a vehicle speed threshold. When the vehicle speed is greater than or equal to the set threshold, the electromagnetic lock automatically seals the gate; when the vehicle speed is less than the set threshold and the vehicle enters the electronic fence, the electromagnetic lock automatically unlocks the gate. Specifically, this includes:
[0113] Step 1: The platform receives the vehicle's latitude, longitude, and speed;
[0114] Step 2: Determine if the vehicle speed is greater than or equal to the threshold;
[0115] Step 3: If the vehicle speed is greater than or equal to the threshold, determine the lock status;
[0116] Step 4: With the lock in the closed state, automatic sealing will be performed;
[0117] Step 5: With the lock in the open state, the automatic sealing will be applied after the locking action is performed;
[0118] Step 6: If the vehicle speed is less than the threshold, determine whether the vehicle is within the electronic fence;
[0119] Step 7: Once the vehicle is within the electronic fence, the lock will automatically unlock;
[0120] Step 8: The vehicle is outside the electronic fence; check the lock status.
[0121] Step 9: With the lock in the open state, perform the locking operation, and then perform the sealing operation;
[0122] Step 10: With the lock in the closed state, apply a sealing operation to the lock.
[0123] This implementation method enables real-time and effective control of the retrieval vehicle lock, simplifying the administrator's work and preventing the crude oil from leaking due to forgetting to lock the vehicle.
[0124] Implementation Method Nine: This implementation method further defines the control method for retrieving a vehicle lock described in Implementation Method One. In this implementation method, the degree of opening and closing of the lock is further controlled and defined, specifically including:
[0125] The control of the degree of lock opening and closing specifically includes:
[0126] Step 1: The platform sends a switch command to control the opening degree to 0, 10, 20, 30, 40, 50, 60, 70, 80, 90 and 100;
[0127] Step 2: Determine whether the lock is locked or unlocked;
[0128] Step 3: The lock is unlocked; the lock does not perform any action.
[0129] Step 4: To lock the door, perform the opening and closing actions on the lock.
[0130] This implementation method can achieve real-time and effective control of the retrieval vehicle lock, which can be used to solve the problem of crude oil overflow caused by excessive crude oil flow rate.
[0131] Implementation method ten: This implementation method is an embodiment of the control method for retrieving a vehicle lock as described above, specifically including:
[0132] This embodiment provides a method for controlling a vehicle lock during retrieval based on modern communication technology. The method includes the following steps:
[0133] S1: Register the vehicle on the platform and attach permissions and a unique electromagnetic lock identifier;
[0134] S2: After setting the electromagnetic lock position, occupied RTU (remote terminal unit) current and relay number in the oil and gas field wide-area visualization intelligent integrated management and control platform, attach the retrieval vehicle lock to the specific vehicle.
[0135] S3: Based on the unique identifier of the electromagnetic lock, set up MQTT (Message Queuing Telemetry Transport Protocol) publish and subscribe topics. Subscribed topics are used to view the real-time status of the electromagnetic lock, and published topics are used to control the electromagnetic lock.
[0136] S4: Set vehicle speed threshold for automatic sealing;
[0137] S5: Set up electronic fences for vehicles to automatically unlock;
[0138] S7: The current range of the facility RTU is 4-20mA (4mA is the minimum operating voltage of the RTU, it cannot work properly if it is below 4mA; 20mA is the maximum operating voltage of the RTU, it will reduce the service life of the RTU if it is above 20mA).
[0139] S8: RTU current value calibration is performed using Ohm's law: i = u / r, where r is the default value of 150 ohms, i is the current before calibration, and u is the voltage measured by the equipment. Because the semiconductor components in the RTU are affected by temperature, their resistance changes. Furthermore, crude oil has a high viscosity, which can cause blockages in critical components. Therefore, the current is calibrated, and the calibration current is i*150 / 138.3.
[0140] S9: The lock's opening / closing degree is calculated using the calibrated current value and displayed: Opening / closing degree = [(calibrated current - zero-point reading) / scale division value], where the zero-point reading is 4mA and the scale division value is 0.16mA, i.e., α = [(i*150 / 138.3 -4) / 0.16]. This formula is obtained by weighted averaging after large-sample sampling. After rounding, the unlocking error is within 2%, and the locking error is close to 0.1%.
[0141] S10: The degree of lock opening and closing is controlled by the current value. The degree of opening and closing is divided into 10 levels, namely 0, 10, 20, 30, 40, 50, 60, 70, 80, 90 and 100. For details, please refer to the remote lock opening and closing flowchart.
[0142] S11 indirectly controls the sealing and unlocking processes by switching the electromagnetic lock on and off. When on, only on-site personnel can operate the lock; when off, only remote operation is possible.
[0143] S12: After sealing, the electromagnetic lock can be opened and closed remotely, but cannot be opened and closed on-site. After unsealing, the electromagnetic lock cannot be opened and closed remotely, but can be opened and closed on-site.
[0144] S13: When the vehicle speed is greater than or equal to the set threshold, the electromagnetic lock will automatically apply the seal. If the electromagnetic lock is in the unlocked state, it will first close to the 0 position before applying the seal.
[0145] S14: To simplify command center operations, loading or unloading points can be designated as electronic fences. An electronic fence is a circular area with the loading or unloading point as its center and a settable radius. When a vehicle's speed is below a set threshold and enters the electronic fence, it is automatically unblocked. The radius is calculated as follows:
[0146] latitude1 is the vehicle's latitude; lat1 is the vehicle's converted latitude.
[0147] latitude2 is the latitude of the loading / unloading point; lat2 is the latitude conversion point for loading / unloading.
[0148] longitude1 is the vehicle's longitude; lng1 is the vehicle's converted longitude;
[0149] longitude2 is the longitude of the loading / unloading point; lng2 is the conversion longitude of the loading / unloading point;
[0150] lat1 = π*latitude1 / 180
[0151] lat2 = π*latitude2 / 180
[0152] lng1 = π*longitude1 / 180
[0153] lng2 = π*longitude2 / 180
[0154] Difference in latitude:
[0155] a = π*latitude1 / 180 - π*latitude2 / 180
[0156] Difference in longitude:
[0157] b = π*longitude1 / 180 - π*longitude2 / 180
[0158] Formula for calculating the distance between the vehicle and the loading / unloading point:
[0159] S = 6378.137 * 2*arcsin((sin(a / 2)*sin(a / 2)+cos(lat1)*cos(lat2)*sin(b / 2)* sin(b / 2))^1 / 2)
[0160] Furthermore, remote manual sealing control, such as Figure 1 As shown, it specifically includes:
[0161] Step 1: The platform sends a sealing command;
[0162] Step 2: Determine if the vehicle is within the electronic fence;
[0163] Step 3: The vehicle is within the electronic fence, and the lock does not activate;
[0164] Step 4: The vehicle is outside the electronic fence; determine if the lock is open.
[0165] Step 5: With the lock in the open state, apply a locking operation to the lock, and then close the lock.
[0166] Step 6: With the lock in the closed state, apply a sealing operation to the lock.
[0167] Furthermore, remote manual unsealing control, such as Figure 2 As shown, it specifically includes:
[0168] Step 1: The platform sends an unblocking command;
[0169] Step 2: Determine if the vehicle is within the electronic fence;
[0170] Step 3: The vehicle is within the electronic fence, and the lock does not activate;
[0171] Step 4: Once the vehicle is outside the electronic fence, unlock the lock.
[0172] Furthermore, remote lock / unlock control, such as Figure 3 As shown, it specifically includes:
[0173] Step 1: The platform sends a switch command to control the opening degree to 0, 10, 20, 30, 40, 50, 60, 70, 80, 90 and 100;
[0174] Step 2: Determine whether the lock is locked or unlocked;
[0175] Step 3: The lock is unlocked; the lock does not perform any action.
[0176] Step 4: To lock the door, perform the opening and closing actions on the lock.
[0177] Furthermore, automatic sealing and unsealing control methods, such as Figure 4 As shown, it specifically includes:
[0178] Step 1: The platform receives the vehicle's latitude, longitude, and speed;
[0179] Step 2: Determine if the vehicle speed is greater than or equal to the threshold;
[0180] Step 3: If the vehicle speed is greater than or equal to the threshold, determine the lock status;
[0181] Step 4: With the lock in the closed state, automatic sealing will be performed;
[0182] Step 5: With the lock in the open state, the automatic sealing will be applied after the locking action is performed;
[0183] Step 6: If the vehicle speed is less than the threshold, determine whether the vehicle is within the electronic fence;
[0184] Step 7: Once the vehicle is within the electronic fence, the lock will automatically unlock;
[0185] Step 8: The vehicle is outside the electronic fence; check the lock status.
[0186] Step 9: With the lock in the open state, perform the locking operation, and then perform the sealing operation;
[0187] Step 10: With the lock in the closed state, apply a sealing operation to the lock.
Claims
1. A control method for retrieving a vehicle lock, characterized in that, The method includes: The vehicle is entered into the integrated management and control platform and its permissions and unique electromagnetic lock identifier are attached; the electromagnetic lock location, the RTU current occupied by the remote terminal unit and the relay number are set in the integrated management and control platform, and the retrieval vehicle lock is attached to the specific vehicle; according to the unique identifier of the electromagnetic lock, the message queue telemetry transmission protocol MQTT publish and subscribe topics are set; The degree of lock opening and closing is controlled based on the RTU calibration current value. The formula for calculating the degree of lock opening and closing is as follows: Switching degree = [(calibration current - zero-point reading) / scale division value]; The sealing and unsealing processes are controlled by opening and closing the electromagnetic lock; When a vehicle speed threshold is set, the electromagnetic lock will automatically seal the vehicle when the speed is greater than or equal to the set threshold; when the speed is less than the set threshold and the vehicle enters the electronic fence, the electromagnetic lock will automatically unlock the vehicle.
2. The control method for retrieving a vehicle lock according to claim 1, characterized in that, The range of the RTU current is 4-20mA.
3. The control method for retrieving a vehicle lock according to claim 1, characterized in that, The method for obtaining the RTU calibration current value is as follows: the RTU current value is calibrated using Ohm's law to obtain the RTU calibration current value, where the RTU calibration current value is i*150 / 138.3, and i is the current before calibration.
4. The control method for a retrieval lock according to claim 1, characterized in that, The zero-point reading is 4mA, the scale division is 0.16mA, and the switching degree is α = [(i*150 / 138.3 - 4) / 0.16].
5. The control method for lifting a vehicle lock according to claim 1, characterized in that, The control of unsealing and sealing via the electromagnetic lock's on / off state includes remote manual sealing control. Sealing refers to the ability to remotely operate the electromagnetic lock while maintaining on-site control. Specifically, this includes: Step 1: The platform sends a sealing command; Step 2: Determine if the vehicle is within the electronic fence; Step 3: The vehicle is within the electronic fence, and the lock does not activate; Step 4: The vehicle is outside the electronic fence; determine if the lock is open. Step 5: With the lock in the open state, apply a locking operation to the lock, and then close the lock. Step 6: With the lock in the closed state, apply a sealing operation to the lock.
6. The control method for retrieving a vehicle lock according to claim 1, characterized in that, The control of unsealing and sealing via the electromagnetic lock's on / off state includes remote manual unsealing control, specifically including: Step 1: The platform sends an unblocking command; Step 2: Determine if the vehicle is within the electronic fence; Step 3: The vehicle is within the electronic fence, and the lock does not activate; Step 4: Once the vehicle is outside the electronic fence, unlock the lock.
7. The control method for a retrieval lock according to claim 1, characterized in that, The electronic fence is a circular area centered at the oil loading or unloading point with a settable radius. The radius is calculated as follows: S = 6378.137 * 2*arcsin((sin(a / 2)*sin(a / 2)+cos(lat1)*cos(lat2)*sin(b / 2)*sin(b / 2))^1 / 2) Where latitude1 is the vehicle latitude; lat1 is the vehicle conversion latitude; latitude2 is the latitude of the loading / unloading point; lat2 is the conversion latitude of the loading / unloading point; longitude1 is the vehicle longitude; lng1 is the vehicle conversion longitude; longitude2 is the longitude of the loading / unloading point; lng2 is the conversion longitude of the loading / unloading point. lat1 = π*latitude1 / 180 lat2 = π*latitude2 / 180 lng1 = π*longitude1 / 180 lng2 = π*longitude2 / 180 The difference in latitude is: a = π*latitude1 / 180 - π*latitude2 / 180 The difference in longitude is: b = π*longitude1 / 180 - π*longitude2 / 180.
8. The control method for a retrieval lock according to claim 1, characterized in that, The system sets a vehicle speed threshold. When the vehicle speed is greater than or equal to the set threshold, the electromagnetic lock automatically seals the gate; when the vehicle speed is less than the set threshold and the vehicle enters the electronic fence, the electromagnetic lock automatically unlocks the gate. Specifically, this includes: Step 1: The platform receives the vehicle's latitude, longitude, and speed; Step 2: Determine if the vehicle speed is greater than or equal to the threshold; Step 3: If the vehicle speed is greater than or equal to the threshold, determine the lock status; Step 4: With the lock in the closed state, automatic sealing will be performed; Step 5: With the lock in the open state, the automatic sealing will be applied after the locking action is performed; Step 6: If the vehicle speed is less than the threshold, determine whether the vehicle is within the electronic fence; Step 7: Once the vehicle is within the electronic fence, the lock will automatically unlock; Step 8: The vehicle is outside the electronic fence; check the lock status. Step 9: With the lock in the open state, perform the locking operation, and then perform the sealing operation; Step 10: With the lock in the closed state, apply a sealing operation to the lock.
9. The control method for a retrieval lock according to claim 1, characterized in that, The control of the degree of lock opening and closing specifically includes: Step 1: The platform sends a switch command to control the opening degree to 0, 10, 20, 30, 40, 50, 60, 70, 80, 90 and 100; Step 2: Determine whether the lock is locked or unlocked; Step 3: The lock is unlocked; the lock does not perform any action. Step 4: To lock the door, perform the opening and closing actions on the lock.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, The steps of the method according to any one of claims 1 to 9 are performed when the processor runs the computer program stored in the memory.
Citation Information
Patent Citations
Tank fill cap locking system
CA1207160A
Internet-of-things oil tank truck oil anti-theft lock system and work method thereof
CN110847725A