A hand brake detection method based on an electric bicycle battery replacement process and an electric bicycle
By automatically detecting the handbrake status during the battery replacement process of electric motorcycles, using the power level and body status to determine the vehicle to be replaced, and combining the brake lever rebound time and stroke change curve, the problems of low handbrake detection efficiency and poor accuracy in the existing technology are solved, and efficient and accurate fault identification is achieved.
Patent Information
- Application Number
- CN202311390599.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-24
- Publication Date
- 2025-10-24
- Estimated Expiration
- 2043-10-24
AI Technical Summary
Existing fault detection of mechanical handbrakes on motorcycles relies on manual inspections, which has problems of low detection efficiency and poor accuracy, leading to safety hazards.
By obtaining the power value and body status of the motorcycle, the vehicle to be replaced is judged, the parking location is determined, and a handbrake detection instruction is sent to the operation and maintenance personnel. The handbrake status is judged using the rebound time and stroke change curve of the brake lever, and the brake stroke is quantified in combination with the angle sensor to achieve automated detection.
The accuracy and efficiency of handbrake detection are improved, which can quickly identify handbrake faults, reduce missed inspections and repairs, and ensure the safety of motorcycles.
Smart Images

Figure CN117429540B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electric motorcycles, and in particular to a handbrake detection method based on an electric motorcycle battery replacement process and an electric motorcycle. Background Art
[0002] Up to now, shared electric motorcycles have been put into operation in the market for some time. With the increase of usage time, the mechanical handbrakes of many shared electric motorcycles have more or less problems with the brakes being too tight or too loose. When the brakes are too tight, the user presses the brake lever while riding the motorcycle, and the speed of the vehicle will drop rapidly in a short time, causing sudden braking, which is very likely to cause safety problems; when the brakes are too loose, the speed of the vehicle is difficult to quickly drop to the desired speed in a short time, which is also very likely to cause safety problems.
[0003] Currently, the mechanical handbrakes of shared e-bikes are typically inspected and maintained regularly by maintenance personnel. This is typically done by battery swappers when replacing batteries on low-powered e-bikes, reducing maintenance costs. However, in practice, these inspections are often overlooked by battery swappers. This may be due to their subjective judgment of whether the handbrake is too loose or too tight, resulting in poor judgment and inaccuracy. Alternatively, they may overlook or fail to inspect the brakes, resulting in some e-bikes with varying degrees of brake problems still operating on the road, posing a potential threat to user safety.
[0004] In view of this, it is necessary to propose a handbrake detection method and an electric motorcycle based on the battery replacement process of an electric motorcycle to solve or at least alleviate the above-mentioned defects. Summary of the Invention
[0005] The main purpose of the present invention is to provide a handbrake detection method and an electric motorcycle based on the battery replacement process of an electric motorcycle, so as to solve the problem that the fault detection of the mechanical handbrake of an electric motorcycle in the prior art relies on manual inspection, has low detection efficiency and cannot accurately detect whether there is a fault in the handbrake.
[0006] To achieve the above object, the present invention provides a method for detecting a handbrake during a battery replacement process of an electric motorcycle, comprising the steps of:
[0007] S1, obtaining a current battery level and a current vehicle state of the electric motorcycle, and determining whether the electric motorcycle is a vehicle to be replaced based on the current battery level and the current vehicle state; wherein the current vehicle state can be either an in-use state or a non-use state;
[0008] S2, when the electric motorcycle is the vehicle to be replaced with a battery, determining a parking location of the electric motorcycle;
[0009] S3, sending a hand brake detection instruction to a selected maintenance personnel according to the parking position; the hand brake detection instruction comprises the parking position, battery replacement of the electric scooter, and a preset hand brake maintenance operation on the electric scooter; wherein the preset hand brake detection operation is: pressing the brake lever to the maximum brake stroke and maintaining for a first preset time, and then releasing the brake lever to test the first rebound time of the brake lever when rebounding to the initial state by relying on the rebound force of the spring itself;
[0010] S4, obtaining a first brake stroke change curve corresponding to each hand brake within a second preset time after sending the hand brake detection instruction to the selected maintenance personnel, and determining whether the selected maintenance personnel performs the preset hand brake maintenance operation according to the first brake stroke change curve; wherein the second preset time is greater than the first preset time;
[0011] S5, when the selected maintenance personnel performs the preset hand brake maintenance operation, determining the first rebound time of the corresponding hand brake according to the first brake stroke change curve, and determining whether the first rebound time is within a preset range at the end of the second preset time;
[0012] S61, when the first rebound time is within the preset range, determining that the corresponding hand brake is in a normal state;
[0013] S62, when the first rebound time is not within the preset range, determining that the corresponding hand brake is in a fault state.
[0014] Preferably, the step S1 of determining whether the electric scooter is a vehicle to be replaced according to the current power value and the current vehicle state comprises the steps of:
[0015] When both the current power value is less than or equal to the first preset threshold and the electric scooter is in a non-use state, the electric scooter is determined to be the first electric scooter;
[0016] When both the current power value is greater than the first preset threshold and less than a second preset threshold, and the electric scooter is in a use state, the electric scooter is determined to be a second electric scooter;
[0017] The first electric scooter and the second electric scooter are taken as the vehicle to be replaced.
[0018] Preferably, the step S2 of determining the parking position of the electric scooter comprises the steps of:
[0019] When the electric scooter is the first electric scooter, the current position of the first electric scooter is obtained, and the current position is taken as the parking position;
[0020] When the electric bicycle is the second electric bicycle, a destination position of the second electric bicycle is acquired, and the destination position is taken as the parking position.
[0021] Preferably, the selected maintenance personnel in the step S3 is obtained through the following steps:
[0022] According to the parking position, personnel positions of a plurality of alternative maintenance personnel within a preset range from the parking position are acquired, and a current maintenance amount of each of the alternative maintenance personnel is acquired.
[0023] The alternative maintenance personnel closest to the parking position and having a current maintenance amount less than a preset value among the plurality of alternative maintenance personnel is determined as the selected maintenance personnel.
[0024] When the number of the alternative maintenance personnel closest to the parking position and having a current maintenance amount less than the preset value among the plurality of alternative maintenance personnel is more than one, one of the alternative maintenance personnel is randomly selected as the selected maintenance personnel.
[0025] Preferably, the step S62 specifically comprises the following steps:
[0026] S621, when the first rebound time is greater than an upper limit value of the preset range, it is determined that the corresponding handbrake is in an over-loose fault state;
[0027] S622, when the first rebound time is less than a lower limit value of the preset range, it is determined that the corresponding handbrake is in an over-tight fault state.
[0028] Preferably, the step S62 further comprises the following steps:
[0029] S631, when the corresponding handbrake is in a fault state, a maintenance instruction is sent to the selected maintenance personnel;
[0030] S632, a second brake stroke change curve corresponding to each handbrake within a third preset time length after the maintenance instruction is sent to the selected maintenance personnel is acquired, a second rebound time of the corresponding handbrake is determined according to the second brake stroke change curve, and whether the second rebound time is within a preset range is determined at the end of the third preset time length;
[0031] S633, when the second rebound time is within the preset range, it is determined that the corresponding handbrake is in a normal state, and a maintenance success instruction is sent to the selected maintenance personnel;
[0032] S634, when the second rebound time is not within the preset range, it is determined that the corresponding handbrake is in a fault state, and the step S631 is returned.
[0033] Preferably, the first preset time length is set to 2s.
[0034] The application also provides an electric bicycle, comprising a bicycle body, a brake lever and an electric bicycle handlebar, an angle sensor and a control system arranged in the bicycle body, the angle sensor is used to detect the included angle between the brake lever and the electric bicycle handlebar, the angle sensor is connected with the control system, the control system comprises a memory, a processor and a computer program stored in the memory and executable on the processor, and the computer program is executed by the processor to realize the steps of the hand brake detection method based on the electric bicycle battery replacement process.
[0035] Compared with the prior art, the application has the following beneficial effects:
[0036] The application provides a hand brake detection method based on the electric bicycle battery replacement process and an electric bicycle, by acquiring the current power value and the current vehicle body state of the electric bicycle, determining the parking position of the electric bicycle when the electric bicycle is a vehicle to be replaced, sending a hand brake detection instruction to the selected maintenance personnel according to the parking position, acquiring the first brake stroke change curve corresponding to each hand brake within a second preset time length after the hand brake detection instruction is sent to the selected maintenance personnel, determining the first rebound time of the corresponding hand brake according to the first brake stroke change curve when the selected maintenance personnel performs the preset hand brake maintenance operation, and judging whether the first rebound time is within a preset range at the end of the second preset time length, if yes, it is determined that the corresponding hand brake is in a normal state, and if no, it is determined that the corresponding hand brake is in a fault state. The application has high detection efficiency and can accurately detect whether the electric bicycle hand brake is faulty.
[0037] Specifically, the application detects the brake according to the preset hand brake maintenance operation while the battery replacement personnel replaces the low-power electric bicycle, determines the rebound time of the brake from the maximum stroke to the initial value by determining the brake stroke change curve, determines whether the maintenance personnel performs the brake detection operation according to the requirements by determining whether the brake stroke curve is close to the curve in the normal range, and judges whether the electric bicycle hand brake is faulty by comparing the actual detected rebound time with the rebound time range in the normal case, which has high detection precision and can quickly and objectively reflect whether the brake is faulty.
[0038] In addition, the change of the brake stroke is reflected by the change of the angle between the brake lever and the electric bicycle handlebar, which has high accuracy, the brake stroke (distance value) is converted into an angle value, the quantification of the brake stroke is realized, and the accuracy of the final detection result is improved. BRIEF DESCRIPTION OF DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed in the embodiments or prior art description. Obviously, the drawings in the following description only represent some of the embodiments of the present application, and for those skilled in the field, other drawings can be obtained from the structures shown in these drawings without any creative effort.
[0040] Fig. 1 A flowchart of an embodiment of the present application;
[0041] Fig. 2 A schematic diagram of an embodiment of the present application reflecting the angle of the brake stroke.
[0042] The purposes, functional features and advantages of the present application will be further described with reference to the embodiments and the accompanying drawings.
[0043] Explanation of reference signs:
[0044] 100, handle of an electric bicycle; 200, brake lever. DETAILED DESCRIPTION
[0045] It should be understood that the specific embodiments described herein are merely used to explain the present application, and are not used to limit the present application.
[0046] The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings of the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without any creative effort fall within the scope of protection of the present application.
[0047] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present application are only used to explain the relative positional relationship, movement condition, etc. between components in a certain posture (as shown in the drawings), and if the certain posture changes, the directional indications also change accordingly.
[0048] In addition, the description of "first", "second" and the like in the present application is only for the purpose of description, and cannot be understood as indicating or implying the relative importance of the indicated technical features or implicitly indicating the number of the indicated technical features. Therefore, the features with "first", "second" can explicitly or implicitly include at least one of the features. In addition, the technical solutions of each embodiment can be combined with each other, but it must be based on the fact that the technical solutions can be realized by those skilled in the art. When the combination of technical solutions appears contradictory or unachievable, it should be considered that the combination of technical solutions does not exist, and is not within the scope of protection required by the present application.
[0049] Referring to Figs. 1-2 In an embodiment, the application provides a hand brake detection method based on the battery replacement process of an electric bicycle, comprising the steps of:
[0050] S1, obtaining the current power value and the current vehicle body state of the electric bicycle, and determining whether the electric bicycle is a vehicle to be replaced according to the current power value and the current vehicle body state; wherein the current vehicle body state is any one of a use state and a non-use state;
[0051] It is worth noting that in the prior art, the hand brake of the electric bicycle is generally inspected by the staff subjectively, usually by the battery replacement personnel, but in actual use, the battery replacement personnel often miss the inspection or subjectively observe inaccurately, so the technical solution of the present application is proposed.
[0052] Specifically, the power value and the vehicle body state of the electric bicycle can be obtained in real time, and the vehicle to be replaced can be an electric bicycle with low power and parked on the roadside, usually parked at a parking point P, or an electric bicycle in use but close to low power. As a preferred embodiment, the step S1 of determining whether the electric bicycle is a vehicle to be replaced according to the current power value and the current vehicle body state specifically comprises the steps of:
[0053] When the current power value is less than or equal to the first preset threshold and the electric bicycle is in a non-use state, it is determined that the electric bicycle is the first electric bicycle; wherein the first preset threshold can be an electric bicycle with less than 20% power, and the non-use state means that the electric bicycle is not unlocked for use, and is generally a vehicle parked at a parking point.
[0054] When the current power value is greater than the first preset threshold and less than the second preset threshold, and the electric bicycle is in a use state, it is determined that the electric bicycle is a second electric bicycle; wherein the second preset threshold can be set to 30%, and this type of electric bicycle still has a certain amount of power, but is close to the state of low power that needs to be replaced. Therefore, this type of electric bicycle is also considered as a vehicle to be replaced. The first electric bicycle and the second electric bicycle are considered as the vehicle to be replaced. Therefore, the vehicle to be replaced in this embodiment includes two types of electric bicycles. In addition, an electric bicycle with power higher than 30% and in a use state is not considered as an object because the power is relatively high.
[0055] S2, when the electric bicycle is the vehicle to be replaced, determining the parking position of the electric bicycle;
[0056] Furthermore, determining the parking position of the electric motorcycle in step S2 specifically includes the following steps: when the electric motorcycle is the first electric motorcycle, obtaining the current position of the first electric motorcycle, and using the current position as the parking position; when the electric motorcycle is the second electric motorcycle, obtaining the destination position of the second electric motorcycle, and using the destination position as the parking position.
[0057] That is, the parking position of the first electric motorcycle is the current position of this type of electric motorcycle, and the parking position of the second electric motorcycle is the destination position of this type of electric motorcycle. The destination position can be obtained in advance when the user uses the motorcycle. After the parking position is clear, it is convenient for the battery replacement personnel to perform accurate operation and maintenance. It should be noted that the battery replacement solution provided in this embodiment can not only replace the battery of electric motorcycles that are definitely in need of operation and maintenance, but also can operate and maintain electric motorcycles that are in use and whose power is close to the lower limit, thereby improving the battery replacement efficiency, reducing the battery replacement cost, increasing the effective use time of the electric motorcycle, and increasing the operating income of the electric motorcycle.
[0058] S3, sending a handbrake test instruction to the selected operation and maintenance personnel based on the parking position; the handbrake test instruction includes the parking position, replacing the battery of the motorcycle, and performing a preset handbrake inspection operation on the motorcycle; wherein the preset handbrake test operation is: pressing the brake lever 200 to the maximum brake travel and maintaining it for a first preset time, and then releasing the brake lever 200 to test a first rebound time for the brake lever 200 to rebound to the initial state by its own spring rebound force;
[0059] It is worth noting that the key principle of the brake detection in this application is the preset handbrake detection operation, that is, by pressing the brake to the maximum brake travel and maintaining a first preset time, which can be set to 1-2 seconds, preferably 2 seconds, and then instantly releasing the brake lever 200, allowing the brake lever 200 to rebound to its initial state by relying on the rebound force of its own spring without the influence of human external force. Specifically, the brakes of electric motorcycles currently generally use mechanical handbrakes, which can be seen in the attached figure. Fig. 2 In the structural form shown, the brake lever 200 is hinged to the motorcycle handlebar 100. The rebound recovery of the brake lever 200 is achieved by a torsion spring. When the user does not brake, the distance between the brake lever 200 and the motorcycle handlebar 100 is the farthest. When the user fully presses the brake, the distance between the brake lever 200 and the motorcycle handlebar 100 is the shortest. Correspondingly, the position change of the brake lever 200 is the brake stroke of the motorcycle referred to in this application. Furthermore, the state of not pressing the brake lever 200 can be regarded as the brake stroke state of zero, and the state of fully pressing the brake can be regarded as the brake stroke state of maximum. Therefore, it can be concluded that the first rebound time is the time it takes for the brake stroke to return from the maximum value to the minimum value.
[0060] The skilled in the art can understand that, in view of the problems of brake being too tight and too loose existing in the current hand brake, if the brake is too tight, the brake lever 200 will be shorter in time to rebound to the initial position by relying on the torsional spring than in normal case, if the brake is too loose, the brake lever 200 will be longer in time to rebound to the initial position by relying on the torsional spring than in normal case, thus it can be judged by the rebound time whether the corresponding hand brake has a fault.
[0061] As a preferred embodiment, the selected maintenance personnel in the step S3 is obtained by the following steps: obtaining personnel positions of a plurality of alternative maintenance personnel within a preset range from the parking position according to the parking position, and obtaining a current maintenance amount of each of the alternative maintenance personnel; wherein the preset range can be set according to actual needs, for example, within a range of 2km.
[0062] The alternative maintenance personnel closest to the parking position and having a current maintenance amount less than a preset value among the plurality of alternative maintenance personnel is determined as the selected maintenance personnel.
[0063] When the number of alternative maintenance personnel closest to the parking position and having a current maintenance amount less than the preset value among the plurality of alternative maintenance personnel is more than one, one of the alternative maintenance personnel is randomly selected as the selected maintenance personnel.
[0064] The embodiment provides a specific method for selecting the selected maintenance personnel, by obtaining the parking position of the electric bicycle and the personnel positions of a plurality of alternative maintenance personnel, and considering the current maintenance amount of each alternative maintenance personnel, so as to comprehensively select the best maintenance personnel, to realize reasonable, rapid and efficient arrangement.
[0065] S4, obtaining a first brake stroke change curve corresponding to each hand brake within a second preset time length after sending a hand brake detection instruction to the selected maintenance personnel, and judging whether the selected maintenance personnel performs the preset hand brake maintenance operation according to the first brake stroke change curve; wherein the second preset time length is greater than the first preset time length.
[0066] Specifically, the second preset time length can be set according to actual needs, for example, set to 30s, that is, the first brake stroke change curve (the relationship curve of brake stroke value and time) corresponding to each hand brake (left hand brake and right hand brake) is obtained within 30s after sending the hand brake detection to the selected operation and maintenance personnel. It can be understood that if the selected operation and maintenance personnel performs the detection operation as required, the corresponding brake lever 200 will change in angle, thereby causing the corresponding brake stroke value to change. According to the comparison between the first brake stroke change curve and the brake stroke change curve under normal conditions, if the difference between the first brake stroke change curve and the brake stroke change curve under normal conditions is within the preset range, it is determined that the operation and maintenance personnel has performed the preset hand brake detection operation according to the specification, otherwise, the preset hand brake detection operation is not performed.
[0067] S5, when the selected operation and maintenance personnel performs the preset hand brake detection operation, determining the first rebound time of the corresponding hand brake according to the first brake stroke change curve, and judging whether the first rebound time is within a preset range at the end of the second preset time length;
[0068] It can be understood that if the battery replacement personnel performs detection according to the standard operation, it can be seen from the first brake stroke change curve that the stroke changes abruptly, and if the battery replacement personnel does not perform detection according to the standard operation, the first brake stroke change curve will be abnormal. Therefore, by determining whether the first rebound time of the corresponding hand brake is within the preset range, which is the rebound time range corresponding to the detection range of the brake, and the range is the numerical range of the rebound time under normal conditions of the brake, this step can not only determine whether the hand brake is in a normal state, but also determine whether the battery replacement personnel has performed the preset hand brake detection operation, thereby avoiding the problem of missed detection by the battery replacement personnel. If there is a missed detection, the first brake stroke change curve will obviously be abnormal.
[0069] S61, when the first rebound time is within the preset range, determining that the corresponding hand brake is in a normal state; wherein the preset range can be uniformly / previously detected and set when the brake is in a normal condition.
[0070] S62, when the first rebound time is not within the preset range, determining that the corresponding hand brake is in a fault state.
[0071] Further, the step S62 specifically includes the steps of:
[0072] S621, when the first rebound time is greater than the upper limit value of the preset range, determining that the corresponding hand brake is in an over-loose fault state;
[0073] S622, when the first rebound time is less than the lower limit value of the preset range, determining that the corresponding hand brake is in an over-tight fault state.
[0074] As a preferred embodiment, the step S62 further comprises the following steps:
[0075] S631, when the corresponding handbrake is in a failure state, sending a maintenance instruction to the selected maintenance personnel; specifically, the embodiment continues to send a maintenance instruction to the selected maintenance personnel when the handbrake is in a failure state, reminding the selected maintenance personnel to maintain the failure handbrake, and then detecting again, specifically as follows:
[0076] S632, obtaining a second brake stroke change curve corresponding to each handbrake within a third preset time period after the maintenance instruction is sent to the selected maintenance personnel, determining a second rebound time of the corresponding handbrake according to the second brake stroke change curve, and judging whether the second rebound time is within a preset range at the end of the third preset time period; the third preset time period can be set according to actual needs, for example, 10 minutes. The selected maintenance personnel maintains the handbrake within the time range (normally, the preset handbrake maintenance operation is performed again after the maintenance is completed). By obtaining the second brake stroke change curve within the third preset time period, determining the second rebound time of the corresponding handbrake according to the second brake stroke change curve, and judging whether the second rebound time is within the preset range at the end of the third preset time period, it is determined whether the maintenance is successful.
[0077] S633, when the second rebound time is within the preset range, determining that the corresponding handbrake is in a normal state, and sending a maintenance success instruction to the selected maintenance personnel;
[0078] S634, when the second rebound time is not within the preset range, determining that the corresponding handbrake is in a failure state, and returning to step S631. It should be noted that the embodiment provides a cyclic detection method, that is, when the second rebound time is still not within the preset range, it means that the maintenance is not qualified. At this time, the step S631 is returned to send a maintenance instruction to the selected maintenance personnel again, and then the brake stroke change curve within a new third preset time period is obtained again, the rebound time is determined again according to the curve, and the process is stopped until it is determined that the corresponding handbrake is in a normal state, so as to ensure the brake qualification and avoid the problem of missed maintenance and detection of the maintenance personnel, and to ensure that the failure handbrake is successfully maintained.
[0079] In addition, it should be noted that, in order to fully illustrate the technical solutions of the embodiment, please refer to the accompanying drawings again Fig. 2L1 is the axis of the electric bicycle handlebar 100, L2 is the parallel line of L1 offset to the hinge center position of the brake lever 200, L3 is the straight line indicating the extension direction of the brake lever 200 in the ideal state when the brake lever 200 is closest to the electric bicycle handlebar 100, L5 is the straight line indicating the extension direction of the brake lever 200 in the ideal state when the brake lever 200 is farthest from the electric bicycle handlebar 100, and L4 is the straight line indicating the extension direction of the brake lever 200 after pressing the brake at a certain time node.
[0080] Notably, the electric bicycle handlebar 100 and the brake lever 200 constitute a “open triangle” with only two sides in space, that is, L3-L5 and L2 constitute a triangle with a left opening, in which case the brake stroke (the swing arc length of the brake lever 200 around the corresponding hinge fulcrum) cannot be quantified, and therefore, in the present application, the brake stroke is reflected by determining the included angle between L3-L5 and L2, which can be achieved by setting an angle sensor.
[0081] In the ideal state, the brake of the electric bicycle is in a normal state, at which time the included angle θ1 between the brake lever 200 and the electric bicycle handlebar 100 when the brake lever 200 is farthest from the electric bicycle handlebar 100 in the ideal state, corresponding to the included angle between L2 and L5, and the included angle θ2 between the brake lever 200 and the electric bicycle handlebar 100 when the brake lever 200 is closest to the electric bicycle handlebar 100, corresponding to the included angle between L3 and L5, are determined, and thus the maximum angle that the brake lever 200 can swing in the ideal state, that is, the angle difference between the included angle θ1 and the included angle θ2, is obtained.
[0082] By reflecting the change of the brake stroke through the change of the angle between the brake lever 200 and the electric bicycle handlebar 100, the accuracy is high, the brake stroke (distance value) is converted into an angle value, the quantification of the brake stroke is achieved, and thus the accuracy of the final detection result is improved.
[0083] The present application provides an electric bicycle, comprising a vehicle body, the vehicle body comprising a brake lever 200 and an electric bicycle handlebar 100, further comprising an angle sensor and a control system arranged in the vehicle body, the angle sensor is used to detect the included angle between the brake lever 200 and the electric bicycle handlebar 100, the angle sensor is connected with the control system, the control system comprises a memory, a processor and a computer program stored in the memory and executable on the processor, when the computer program is executed by the processor, the steps of the electric bicycle hand brake detection method based on the electric bicycle battery replacement process are realized.
[0084] Specifically, the angle sensor refers to a sensor that can sense the measured angle and convert it into a usable output signal. The angle sensor is used to detect the angle, and it has a hole in its body that can match the axle of the Lego. When connected to the RCX, the axle will count once every 1 / 16 of a turn. When rotating in one direction, the count increases, and when changing the direction of rotation, the count decreases. The count is related to the initial position of the angle sensor. When initializing the angle sensor, its count value is set to 0. Therefore, the angle sensor can be arranged on the brake lever 200, and the brake lever 200 can be theoretically (in practice, it is generally impossible to coincide with the electric bicycle handlebar 100) rotated to a position parallel to the electric bicycle handlebar 100, for example, the straight line L2 in the figure, and the angle at this time is set to 0. Fig. 2
[0085] The application further provides a storage medium, which stores a computer program. The computer program is executed by a processor to implement the steps of the hand brake detection method based on the electric bicycle battery replacement process. It can be understood that the computer program is executed by the processor to implement the hand brake detection method based on the electric bicycle battery replacement process. Therefore, all embodiments of the above method are applicable to the storage medium, and can achieve the same or similar beneficial effects.
[0086] The above is only a preferred embodiment of the application, and does not limit the patent scope of the application. Any equivalent structure or equivalent process transformation based on the content of the specification and drawings, or direct or indirect application in other related technical fields, is also included in the patent protection scope of the application.
Claims
1. A method for detecting a handbrake during an electric bicycle battery swapping process, characterized in that, The method comprises the steps of: S1, obtaining the current power value and the current vehicle body state of the electric bicycle, and determining whether the electric bicycle is a vehicle to be replaced according to the current power value and the current vehicle body state; wherein the current vehicle body state is any one of a use state and a non-use state; S2, when the electric bicycle is the vehicle to be replaced, determining the parking position of the electric bicycle; S3, sending a hand brake detection instruction to a selected maintenance personnel according to the parking position; the hand brake detection instruction comprises the parking position, battery replacement of the electric bicycle, and a preset hand brake maintenance operation on the electric bicycle; wherein the preset hand brake detection operation is: pressing the brake lever to the maximum brake stroke and maintaining for a first preset time, and then releasing the brake lever to test the first rebound time of the brake lever when it rebounds to the initial state by relying on the rebound force of the spring itself; S4, obtaining a first brake stroke change curve corresponding to each hand brake within a second preset time after sending the hand brake detection instruction to the selected maintenance personnel, and determining whether the selected maintenance personnel performs the preset hand brake maintenance operation according to the first brake stroke change curve; wherein the second preset time is greater than the first preset time; S5, when the selected maintenance personnel performs the preset hand brake maintenance operation, determining the first rebound time of the corresponding hand brake according to the first brake stroke change curve, and determining whether the first rebound time is within a preset range at the end of the second preset time; S61, when the first rebound time is within the preset range, determining that the corresponding hand brake is in a normal state; S62, when the first rebound time is not within the preset range, determining that the corresponding hand brake is in a fault state.
2. The method of claim 1, wherein the method further comprises: The step S1 of determining whether the electric bicycle is a vehicle to be replaced according to the current power value and the current vehicle body state comprises the steps of: when both the current power value is less than or equal to a first preset threshold and the electric bicycle is in a non-use state, determining that the electric bicycle is a first electric bicycle; when both the current power value is greater than the first preset threshold and less than a second preset threshold, and the electric bicycle is in a use state, determining that the electric bicycle is a second electric bicycle; the first electric bicycle and the second electric bicycle are regarded as the vehicle to be replaced.
3. The method of claim 2, wherein the method further comprises: The step S2 of determining the parking position of the electric bicycle comprises the steps of: when the electric bicycle is the first electric bicycle, obtaining the current position of the first electric bicycle, and taking the current position as the parking position; when the electric bicycle is the second electric bicycle, obtaining the destination position of the second electric bicycle, and taking the destination position as the parking position.
4. The method of claim 1, wherein the method further comprises: The selected maintenance personnel in step S3 is obtained by the following steps: obtaining the personnel positions of a plurality of alternative maintenance personnel within a preset range from the parking position according to the parking position, and obtaining the current maintenance amount of each alternative maintenance personnel; determining the alternative maintenance personnel closest to the parking position and having a current maintenance amount less than a preset value among the plurality of alternative maintenance personnel as the selected maintenance personnel; When the number of the alternative operation and maintenance personnel whose current operation and maintenance volume is less than the preset value is more than one, one of the alternative operation and maintenance personnel is randomly selected as the selected operation and maintenance personnel.
5. The method of claim 3, wherein the method further comprises: The step S62 specifically comprises steps of: S621, when the first rebound time is greater than the upper limit value of the preset range, determining that the corresponding handbrake is in an over-loose fault state; S622, when the first rebound time is less than the lower limit value of the preset range, determining that the corresponding handbrake is in an over-tight fault state.
6. The method for detecting handbrake during battery replacement of an electric motorcycle according to claim 1, characterized in that: The step S62 further comprises steps of: S631, when the corresponding handbrake is in a fault state, sending a maintenance instruction to the selected operation and maintenance personnel; S632, obtaining a second brake stroke change curve corresponding to each handbrake within a third preset time period after the maintenance instruction is sent to the selected operation and maintenance personnel, determining a second rebound time of the corresponding handbrake according to the second brake stroke change curve, and determining whether the second rebound time is within a preset range at the end of the third preset time period; S633, when the second rebound time is within the preset range, determining that the corresponding handbrake is in a normal state, and sending a maintenance success instruction to the selected operation and maintenance personnel; S634, when the second rebound time is not within the preset range, determining that the corresponding handbrake is in a fault state, and returning to step S631.
7. The method of claim 1, wherein the method further comprises: The first preset time period is set to 2s.
8. An electric bicycle comprising a vehicle body, the vehicle body comprising a brake lever and an electric bicycle handlebar, characterized in that, The electric bicycle further comprises an angle sensor and a control system arranged in the vehicle body. The angle sensor is configured to detect an included angle between the brake lever and the handlebar of the electric bicycle. The angle sensor is connected to the control system. The control system comprises a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the handbrake detection method based on the electric bicycle battery replacement process according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Brake fault detection method and device of bicycle and bicycle
CN113942603A
Brake handle tightness detection device and riding tool
CN210592309U