Method and device for controlling use of electric bicycle and electric bicycle
By detecting whether a helmet is placed on the electric bicycle body and controlling the helmet lock, the problem of inaccurate detection during the return process of electric bicycle helmets is solved, automatic locking is achieved, the return process is simplified, and the success rate and user experience are improved.
Patent Information
- Application Number
- CN202210071136.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-21
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-01-21
AI Technical Summary
During the return process of existing electric bicycle helmets, due to the limited detection contact points between the helmet lock and the helmet, the user frequently touches or rebounds, causing the detection results to jitter and unable to accurately detect whether the helmet is placed in the set position, resulting in return failure. .
By detecting whether a helmet is placed at the set position of the vehicle body, the unlocking and closing status of the helmet lock is controlled based on the detection results to ensure that the helmet is automatically locked after being placed correctly, improving return efficiency and success rate.
After the user places the helmet at the set location, it can be automatically locked without user terminal operation, simplifying the return process, improving user experience, and improving the success rate and efficiency of helmet return.
Smart Images

Figure CN114475880B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the technical field of electric bicycle control, and more specifically, to a method and device for controlling the use of an electric bicycle and an electric bicycle. Background Art
[0002] At present, sharing vehicles has become a new way of travel in cities, which can effectively meet the travel needs of urban people. The existing shared vehicles are mainly bicycles, but because electric bicycles have advantages over bicycles such as labor saving and speed, electric bicycles have also begun to join the ranks of shared vehicles.
[0003] For electric bicycles, users are currently required to wear helmets during use. Therefore, shared electric bicycles are equipped with helmets for users to use. Before returning the shared electric bicycle, the user needs to return the helmet, that is, place the helmet at the set position of the shared electric bicycle, and send a request to return the helmet to the server through the user terminal. In response to the request, the server sends a helmet lock closing instruction to the shared electric bicycle so that the helmet lock locks the helmet.
[0004] However, since there are fewer contact points between the helmet lock and the helmet for detecting whether a helmet is placed at the set position, the user frequently touches the helmet or the pin rope of the helmet lock rebounds, which causes the helmet detection result to shake easily. As a result, after the user puts the helmet away, the shared electric bicycle cannot detect that there is a helmet at the set position when it receives the lock command to close the helmet lock, resulting in the user's failure to return the helmet.
[0005] Therefore, in the scenario of returning the helmet, it is necessary to provide a method for controlling the use of an electric bicycle that is conducive to improving the efficiency and success rate of returning the helmet during the process of the user returning the helmet. Summary of the invention
[0006] An object of the disclosed embodiments is to provide a new usage control scheme for an electric bicycle.
[0007] According to a first aspect of the present disclosure, a method for controlling the use of an electric bicycle is provided. The electric bicycle includes a vehicle body, a helmet disposed on the vehicle body, and a helmet lock. The method includes:
[0008] Detecting whether a helmet is placed at a set position of the vehicle body, and obtaining a helmet detection result;
[0009] According to the helmet detection result, detecting whether an event of changing from a first state to a second state at the set position occurs; wherein the first state is a state where the helmet is not placed at the set position, and the second state is a state where the helmet is placed at the set position;
[0010] When the occurrence of the event is detected, the helmet lock is controlled to be closed to lock the helmet.
[0011] Optionally, the method further includes:
[0012] Detecting the state of the helmet lock;
[0013] When the state of the helmet lock is unlocked, the step of detecting whether an event of changing from the first state to the second state at the set position occurs according to the helmet detection result is performed;
[0014] When the state of the helmet lock is the locked state, the step of detecting whether a helmet is placed at the set position of the vehicle body to obtain a helmet detection result is performed.
[0015] Optionally, after controlling the helmet lock to be locked, the method further includes:
[0016] Detecting whether the helmet lock is locked successfully;
[0017] When it is detected that the helmet lock is successfully locked, detecting whether the helmet is placed at the set position of the vehicle body;
[0018] When it is detected that the helmet is not placed at the set position of the vehicle body, the helmet lock is controlled to be unlocked.
[0019] Optionally, the method further includes:
[0020] When it is detected that the helmet lock fails to be locked, receiving a locking instruction to close the helmet lock;
[0021] The helmet lock is controlled to execute the locking instruction so that the helmet lock locks the helmet.
[0022] Optionally, the method further includes:
[0023] Obtaining the status of the helmet lock;
[0024] The status of the helmet lock is reported to the server.
[0025] Optionally, the method further includes:
[0026] In the case where it is detected that the helmet lock is abnormally reset, the step of detecting whether a helmet is placed at the set position of the vehicle body is re-executed to obtain a helmet detection result; and based on the helmet detection result, detecting whether an event of the set position changing from a first state to a second state occurs.
[0027] Optionally, the method further includes:
[0028] When it is detected that the helmet lock is locked successfully, the vehicle body is controlled to be locked.
[0029] According to a second aspect of the present disclosure, a use control device for an electric bicycle is provided, the electric bicycle comprising a vehicle body, a helmet arranged on the vehicle body, and a helmet lock, the device comprising:
[0030] A first detection module is used to detect whether a helmet is placed at a set position of the vehicle body and obtain a helmet detection result;
[0031] A second detection module is used to detect whether an event of changing from a first state to a second state at the set position occurs according to the helmet detection result; wherein the first state is a state where the helmet is not placed at the set position, and the second state is a state where the helmet is placed at the set position;
[0032] The locking control module is used to control the helmet lock to lock the helmet when the event occurs.
[0033] According to a third aspect of the present disclosure, an electric bicycle is provided, comprising the device described in the second aspect of the present disclosure.
[0034] According to a fourth aspect of the present disclosure, an electric bicycle is provided, comprising a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to control the electric bicycle to execute the method according to the first aspect of the present disclosure when executing the computer program.
[0035] Through the method of this embodiment, when it is detected that the set position changes from a first state where no helmet is placed to a second state where a helmet is placed, the helmet lock is controlled to be locked. After the user places the helmet at the set position, there is no need to return the helmet through the user terminal. This can speed up the helmet return process, facilitate user operation, and improve the user's helmet return experience.
[0036] Further features and advantages of the present invention will become apparent from the following detailed description of exemplary embodiments of the present invention with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
[0038] Figure 1 It is a schematic diagram of the composition structure of an electric bicycle system capable of implementing the use control method of the electric bicycle according to the embodiment of the present invention;
[0039] Figure 2 is a flow chart of a method for controlling the use of an electric bicycle according to an embodiment;
[0040] Figure 3 is a block diagram of a use control device for an electric bicycle according to an embodiment;
[0041] Figure 4 is a block diagram of an electric bicycle according to one embodiment. DETAILED DESCRIPTION
[0042] Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless otherwise specifically stated.
[0043] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
[0044] Technologies, methods and equipment known to persons of ordinary skill in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods and equipment should be considered part of the specification.
[0045] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0046] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0047] <Hardware Configuration>
[0048] Figure 1 1 is a schematic diagram of the composition structure of an electric bicycle system 100 that can be used to implement the use control method of the embodiment of the present disclosure. The electric bicycle system 100 can be applied as a whole to the use control scenario of an electric bicycle.
[0049] like Figure 1 As shown, the electric bicycle system 100 includes a server 1000 , a user terminal 2000 , and an electric bicycle 3000 .
[0050] The server 1000 provides a business point for processing, database, and communication facilities. The server 1000 can be a monolithic server, a distributed server across multiple computers, a computer data center, a cloud server, or a server cluster deployed in the cloud, etc. The server can be of various types, such as but not limited to, a network server, a news server, a mail server, a message server, an advertising server, a file server, an application server, an interactive server, a database server, or a proxy server. In some embodiments, each server may include hardware, software, or an embedded logic component or a combination of two or more such components for executing the appropriate functions supported or implemented by the server. For example, a server such as a blade server, a cloud server, etc., or a server group consisting of multiple servers, which may include one or more of the above-mentioned types of servers, etc.
[0051] In one embodiment, the server 1000 may be Figure 1 As shown, it includes a processor 1100 , a memory 1200 , an interface device 1300 , a communication device 1400 , a display device 1500 , and an input device 1600 .
[0052] The processor 1100 is used to execute a computer program, which can be written in an instruction set of an architecture such as x86, Arm, RISC, MIPS, SSE, etc. The memory 1200 includes, for example, a ROM (read-only memory), a RAM (random access memory), a non-volatile memory such as a hard disk, etc. The interface device 1300 includes, for example, various bus interfaces, such as a serial bus interface (including a USB interface), a parallel bus interface, etc. The communication device 1400 is capable of wired or wireless communication. The display device 1500 is, for example, a liquid crystal display, an LED display, a touch display, etc. The input device 1600 may include, for example, a touch screen, a keyboard, etc.
[0053] In this embodiment, the memory 1200 of the server 1000 is used to store a computer program, and the computer program is used to control the processor 1100 to operate to perform the use control method according to the embodiment of the present invention. A technician can design the computer program according to the scheme disclosed in the present invention. How the computer program controls the processor to operate is well known in the art, so it will not be described in detail here.
[0054] Despite Figure 1 , multiple devices of the server 1000 are shown; however, the present invention may only involve some of the devices, for example, the server 1000 only involves the memory 1200 , the processor 1100 and the communication device 1400 .
[0055] In this embodiment, the user terminal 2000 is, for example, a mobile phone, a portable computer, a tablet computer, a PDA, a wearable device, etc.
[0056] The user terminal 2000 is installed with a vehicle-using application client, so as to achieve the purpose of using the electric bicycle by operating the vehicle-using application client.
[0057] like Figure 1 As shown, the user terminal 2000 may include a processor 2100, a memory 2200, an interface device 2300, a communication device 2400, a display device 2500, an input device 2600, a speaker 2700, a microphone 2800, and the like.
[0058] The processor 2100 is used to execute a computer program, which can be written in an instruction set of an architecture such as x86, Arm, RISC, MIPS, SSE, etc. The memory 2200 includes, for example, a ROM (read-only memory), a RAM (random access memory), a non-volatile memory such as a hard disk, etc. The interface device 2300 includes, for example, a USB interface, a headphone interface, etc. The communication device 2400 is capable of wired or wireless communication, and the communication device 2400 may include at least one short-range communication module, such as any module for short-range wireless communication based on short-range wireless communication protocols such as Hilink protocol, WiFi (IEEE 802.11 protocol), Mesh, Bluetooth, ZigBee, Thread, Z-Wave, NFC, UWB, LiFi, etc. The communication device 2400 may also include a remote communication module, such as any module for WLAN, GPRS, 2G / 3G / 4G / 5G remote communication. The display device 2500 is, for example, a liquid crystal display, a touch display, etc. The input device 2600 may include, for example, a touch screen, a keyboard, etc. The user terminal 2000 can output audio signals through the speaker 2700 and collect audio signals through the microphone 2800 .
[0059] In this embodiment, the memory 2200 of the user terminal 2000 is used to store a computer program, which is used to control the processor 2100 to operate to execute the method of using the electric bicycle, for example, including: obtaining the unique identification of the electric bicycle 3000, forming an unlocking request for a specific electric bicycle and sending it to the server; and performing bill settlement according to the fee settlement notice sent by the server, etc. The technician can design a computer program according to the scheme disclosed in the present invention. How a computer program controls the processor to operate is well known in the art, so it will not be described in detail here.
[0060] like Figure 1As shown, the electric bicycle 3000 may include a processor 3100, a memory 3200, an interface device 3300, a communication device 3400, an output device 3500, and an input device 3600, etc. The processor 3100 is used to execute a computer program, which can be written in an instruction set of an architecture such as x86, Arm, RISC, MIPS, SSE, etc. The memory 3200 includes, for example, a ROM (read-only memory), a RAM (random access memory), a non-volatile memory such as a hard disk, etc. The interface device 3300 includes, for example, a USB interface, an earphone interface, etc. The communication device 3400 includes at least one communication module, for example, capable of wired or wireless communication, and for example, capable of short-distance and long-distance communication. The output device 3500 may be, for example, a device for outputting signals, a display device, such as an LCD screen, a touch screen, etc., or a speaker, etc., for outputting voice information, etc. The input device 3600 may include, for example, a touch device such as a touch screen, a sound sensing device such as a key, a microphone, a pressure sensing device such as a pressure sensor, etc.
[0061] In this embodiment, the electric bicycle 3000 can report its own location information to the server 1000 .
[0062] In this embodiment, the memory 3200 of the electric bicycle 3000 is used to store a computer program, and the computer program is used to control the processor 3100 to operate to perform the use control method according to any embodiment of the present invention. A technician can design the computer program according to the scheme disclosed in the present invention. How the computer program controls the processor to operate is well known in the art, so it will not be described in detail here.
[0063] The network 4000 may be a wireless communication network or a wired communication network, and may be a local area network or a wide area network. Figure 1 In the electric bicycle system 100 shown, the electric bicycle 3000 and the server 1000, and the user terminal 2000 and the server 1000 can communicate through the network 4000. In addition, the network 4000 based on which the electric bicycle 3000 and the server 1000, and the user terminal 2000 and the server 1000 communicate can be the same or different.
[0064] It should be understood that although Figure 1 Only one server 1000 , user terminal 2000 , and electric bicycle 3000 are shown, but this does not mean to limit the respective numbers. The electric bicycle system 100 may include multiple servers 1000 , multiple user terminals 2000 , multiple electric bicycles 3000 , and the like.
[0065] Figure 1The illustrated electric bicycle system 100 is illustrative only and is in no way intended to limit the invention, its application, or uses.
[0066] <Method Example>
[0067] Figure 2 The flowchart of the method for controlling the use of an electric bicycle according to an embodiment is shown. The method steps of this embodiment are implemented by the electric bicycle, for example, Figure 1 3,000 electric bicycles were implemented.
[0068] In this embodiment, the electric bicycle may include a body, a helmet arranged on the body, and a helmet lock.
[0069] like Figure 2 As shown, the method for controlling the use of an electric bicycle in this embodiment may include the following steps S2100 to S2300:
[0070] Step S2100, detecting whether a helmet is placed at a set position of the vehicle body, and obtaining a helmet detection result.
[0071] The set position in this embodiment can be a pre-set position where a helmet lock is provided for storing a helmet, for example, the set position can be in a basket of a vehicle body. The helmet lock can be fixed at the set position to lock a helmet placed at the set position.
[0072] In one embodiment of the present disclosure, an NFC tag may be provided on the helmet, and an NFC reader may be provided on the helmet lock. When the NFC reader reads the tag information of the NFC tag of the helmet, it is determined that a helmet is placed at the set position of the vehicle body; when the NFC reader does not read the tag information of the NFC tag of the helmet, it is determined that no helmet is placed at the set position of the vehicle body.
[0073] Furthermore, the NFC tag may be pre-set with a unique identification code for the helmet. When the NFC reader performs NFC scanning and the scanning result includes the unique identification code of the specified helmet, it is determined that a helmet is placed at the set position of the vehicle body; when the scanning result of the NFC reader does not include the unique identification code of the specified helmet, it is determined that no helmet is placed at the set position of the vehicle body.
[0074] In another embodiment of the present disclosure, at least one first contact may be provided on the helmet, and at least one second contact may be provided on the helmet lock. When it is detected that at least one second contact is in contact with the first contact, it is determined that a helmet is placed at the set position of the vehicle body; when all second contacts are not in contact with the first contact, it is determined that no helmet is placed at the set position of the vehicle body.
[0075] In the embodiment of the present disclosure, step S2100 may be performed according to a set frequency, wherein the set frequency may be pre-set according to an application scenario or specific requirements, for example, the set frequency may be 1 time / second.
[0076] Step S2200: Detect, based on the helmet detection result, whether an event of changing from a first state to a second state at a set position occurs.
[0077] The first state is a state where no helmet is placed at the set position, and the second state is a state where a helmet is placed at the set position.
[0078] In this step, when the previous helmet detection result indicates that no helmet is placed at the set position, and the current helmet detection result indicates that a helmet is placed at the set position, it can be determined that an event of the set position changing from the first state to the second state occurs. When the previous helmet detection result and the current helmet detection result are the same, both indicating that no helmet is placed at the set position, or both indicating that a helmet is placed at the set position, it can be determined that an event of the set position changing from the first state to the second state does not occur.
[0079] Step S2300: When the event is detected, the helmet lock is controlled to be closed to lock the helmet.
[0080] In one example, an automatic locking program may be set in the helmet lock. When the helmet lock detects that an event occurs at a set position where the first state changes to the second state, the automatic locking program is executed to lock the helmet.
[0081] Through the method of this embodiment, when it is detected that the set position changes from a first state where no helmet is placed to a second state where a helmet is placed, the helmet lock is controlled to be locked. After the user places the helmet at the set position, there is no need to return the helmet through the user terminal. This can speed up the helmet return process, facilitate user operation, and improve the user's helmet return experience.
[0082] In one embodiment of the present disclosure, the method may further include: detecting a state of a helmet lock, wherein the state of the helmet lock may be an unlocked state or a locked state.
[0083] When the helmet lock is in the unlocked state, it means that the helmet is being used by the user, and it is necessary to detect the user's action of placing the helmet at the set position in time, that is, to detect whether an event of changing from the first state to the second state occurs at the set position, and control the helmet lock to be locked according to the event detection result. Therefore, when the helmet lock is in the unlocked state, step S2200 may be executed.
[0084] When the helmet lock is in the locked state, it means that the helmet is placed at the set position and the helmet lock has locked the helmet, and there is no need to control the helmet lock to lock according to the event detection result based on whether an event of changing from the first state to the second state occurs at the set position. Therefore, when the helmet lock is in the unlocked state, step S2100 may be continued, or the state of the helmet lock may be continued to be detected.
[0085] In one embodiment of the present disclosure, after executing step S2300, the method may further include steps S3100 to S3300 as shown below:
[0086] Step S3100, detecting whether the helmet lock is locked successfully.
[0087] In this embodiment, steps S3100 to S3300 may be executed by a main control device of the electric bicycle.
[0088] Specifically, in step S2300, when the helmet lock detects that the first state at the set position changes to the second state, the preset automatic locking program is executed to lock the helmet. If the preset automatic locking program in the helmet lock is abnormal, the helmet lock may fail to lock.
[0089] Step S3200, when it is detected that the helmet lock is successfully locked, detect whether the helmet is placed at a set position on the vehicle body.
[0090] In this embodiment, in order to prevent the occurrence of a helmet fraud incident in which the user takes the helmet from the set position before the helmet lock is locked during the execution of step S2300, it may be possible to re-check whether the helmet is still placed at the set position on the vehicle body after the helmet lock is locked.
[0091] Step S3300: When it is detected that the helmet is not placed at the set position, control the helmet lock to unlock.
[0092] If it is detected that the helmet is not placed at the set position, it means that the user may take the helmet from the set position before the helmet lock locks the helmet, resulting in a helmet fraud event during the execution of step S2300. Therefore, the helmet lock may be controlled to unlock so that the user returns the helmet.
[0093] When it is detected that the helmet is placed at the set position, the state of the helmet lock may be reported to the server, so that the server can control the body of the electric bicycle to be locked according to the state of the helmet lock. Specifically, when it is detected that the helmet is placed at the set position, the state of the helmet lock is locked.
[0094] In one embodiment of the present disclosure, the method may further include step S3400 as shown below: when it is detected that the helmet lock fails to lock, receiving a locking instruction to close the helmet lock, and controlling the helmet lock to execute the locking instruction so that the helmet lock locks the helmet.
[0095] In this embodiment, when it is detected that the helmet lock fails to close, a helmet lock failure reminder may be sent to the user, so that the user triggers a request to return the helmet through the user terminal, and sends the request to return the helmet to the server. In response to the request to return the helmet, the server sends a lock instruction to close the helmet lock to the electric bicycle.
[0096] In one embodiment of the present disclosure, after executing step S3300 or step S3400, the method may further include: obtaining the status of the helmet lock, and reporting the status of the helmet lock to the server, so that the server can control the body lock of the electric bicycle according to the status of the helmet lock.
[0097] Specifically, after executing step S3300, the state of the helmet lock may be an unlocked state. After executing step S3400, the state of the helmet lock may be a locked state.
[0098] In one embodiment of the present disclosure, the method may further include: controlling the vehicle body to be locked when it is detected that the helmet lock is successfully locked.
[0099] In another embodiment of the present disclosure, in order to further regulate user parking, the server may detect whether the electric bicycle meets the set return conditions when the state of the helmet lock changes from the unlocked state to the locked state, and send another lock instruction to close the lock of the electric bicycle when the electric bicycle meets the return conditions. The electric bicycle executes the other lock instruction to control the body to lock.
[0100] The vehicle return conditions may include at least one of the following:
[0101] The parking location of electric bicycles is located in the designated parking area;
[0102] The parking direction of electric bicycles complies with the standard parking direction of the parking area.
[0103] In one embodiment of the present disclosure, the method may further include: in the case of detecting that the helmet lock is abnormally reset, step S2100 and step S2200 may be re-executed to re-detect whether an event of changing from the first state to the second state at the set position occurs.
[0104] <Device Example>
[0105] Corresponding to the above method, the present disclosure also provides a use control device 300 of an electric bicycle, the electric bicycle comprising a vehicle body, a helmet arranged on the vehicle body, and a helmet lock, such as Figure 3 As shown, the use control device 300 of the electric bicycle may include a first detection module 310, a second detection module 320 and a lock control module 330. The first detection module 310 is used to detect whether a helmet is placed at a set position of the vehicle body to obtain a helmet detection result; the second detection module 320 is used to detect whether an event of the set position changing from a first state to a second state occurs according to the helmet detection result; wherein the first state is a state where no helmet is placed at the set position, and the second state is a state where the helmet is placed at the set position; the lock control module 330 is used to control the helmet lock to lock the helmet when the event is detected.
[0106] In one embodiment of the present disclosure, the use control device 300 of the electric bicycle may further include:
[0107] A module for detecting the status of the helmet lock;
[0108] The second detection module 320 is used to execute the step of detecting whether the event of the setting position changing from the first state to the second state occurs according to the helmet detection result when the state of the helmet lock is the unlocked state;
[0109] The first detection module 310 is used to detect whether a helmet is placed at a set position of the vehicle body when the helmet lock is in a locked state, and obtain a helmet detection result.
[0110] In one embodiment of the present disclosure, the use control device 300 of the electric bicycle may further include:
[0111] A module for detecting whether the helmet lock is successfully locked;
[0112] A module for detecting whether the helmet is placed at the set position on the vehicle body when detecting that the helmet lock is successfully locked;
[0113] A module for controlling the helmet lock to unlock when it is detected that the helmet is not placed at the set position of the vehicle body.
[0114] In one embodiment of the present disclosure, the use control device 300 of the electric bicycle may further include:
[0115] A module for receiving a locking instruction to close the helmet lock when it is detected that the helmet lock fails to be locked;
[0116] A module for controlling the helmet lock to execute the locking instruction so that the helmet lock locks the helmet.
[0117] In one embodiment of the present disclosure, the use control device 300 of the electric bicycle may further include:
[0118] A module for obtaining the status of the helmet lock;
[0119] A module for reporting the status of the helmet lock to a server.
[0120] In one embodiment of the present disclosure, the use control device 300 of the electric bicycle may further include:
[0121] The second detection module 320 is also used to re-execute the step of detecting whether the event of the setting position changing from the first state to the second state occurs according to the helmet detection result when it is detected that the helmet lock is abnormally reset.
[0122] In one embodiment of the present disclosure, the use control device 300 of the electric bicycle may further include:
[0123] A module for controlling the vehicle body to be locked when it is detected that the helmet lock is successfully locked.
[0124] Those skilled in the art should understand that the use control device 300 of the electric bicycle can be implemented in various ways. For example, the use control device 300 of the electric bicycle can be implemented by configuring the processor with instructions. For example, the instructions can be stored in a ROM, and when the device is started, the instructions are read from the ROM into a programmable device to implement the use control device 300 of the electric bicycle. For example, the use control device 300 of the electric bicycle can be solidified into a dedicated device (such as an ASIC). The use control device 300 of the electric bicycle can be divided into independent units, or they can be combined together for implementation. The use control device 300 of the electric bicycle can be implemented by one of the various implementations described above, or can be implemented by a combination of two or more of the various implementations described above.
[0125] In this embodiment, the use control device 300 of the electric bicycle can have multiple implementation forms. For example, the use control device 300 of the electric bicycle can be a functional module running in any software product or application that provides electric bicycle use control services, or it can be an external embedded component, plug-in, patch, etc. of these software products or applications, or it can also be these software products or applications themselves.
[0126] <Electric Bicycle Example>
[0127] This embodiment provides an electric bicycle 400. In one example, the electric bicycle may include the aforementioned electric bicycle use control device 300.
[0128] In another example, Figure 4 As shown, the electric bicycle 400 may include a memory 420 and a processor 410, the memory 420 is used to store program instructions, and the processor 410 is used to control the electric bicycle 400 to execute any one of the use control methods provided in this embodiment when executing the computer program.
[0129] The present invention may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present invention.
[0130] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0131] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0132] The computer program instructions for performing the operation of the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be personalized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present invention.
[0133] Various aspects of the present invention are described herein with reference to the flow charts and / or block diagrams of the methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each box of the flow chart and / or block diagram and the combination of each box in the flow chart and / or block diagram can be implemented by computer-readable program instructions.
[0134] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0135] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0136] The flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of an instruction, and a part of the module, program segment or instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of the boxes in the block diagram and / or the flowchart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.
[0137] Embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein are selected to best explain the principles of the embodiments, practical applications, or technical improvements in the marketplace, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present invention is defined by the appended claims.
Claims
1. A method for controlling the use of an electric bicycle, the electric bicycle comprising a body, a helmet arranged on the body, and a helmet lock, the method comprising: Detecting whether a helmet is placed at a set position of the vehicle body, and obtaining a helmet detection result; According to the helmet detection result, detecting whether an event of changing from a first state to a second state at the set position occurs; wherein the first state is a state where the helmet is not placed at the set position, and the second state is a state where the helmet is placed at the set position; When the occurrence of the event is detected, the helmet lock is controlled to be locked to lock the helmet without the user having to perform an operation of returning the helmet through the user terminal; After controlling the helmet lock to be locked, the method further includes: Detecting whether the helmet lock is locked successfully; When it is detected that the helmet lock is successfully locked, detecting whether the helmet is placed at the set position of the vehicle body; When it is detected that the helmet is not placed at the set position of the vehicle body, controlling the helmet lock to unlock; The method further comprises: When it is detected that the helmet lock fails to close, a helmet lock closing failure reminder is sent to the user, so that the user triggers a request to return the helmet through the user terminal, and sends the request to return the helmet to the server, and receives a locking instruction to close the helmet lock sent by the server; the helmet lock is controlled to execute the locking instruction, so that the helmet lock locks the helmet.
2. The method according to claim 1, further comprising: Detecting the state of the helmet lock; When the state of the helmet lock is unlocked, the step of detecting whether an event of changing from the first state to the second state at the set position occurs according to the helmet detection result is performed; When the state of the helmet lock is the locked state, the step of detecting whether a helmet is placed at the set position of the vehicle body to obtain a helmet detection result is performed.
3. The method according to claim 1 or 2, further comprising: Obtaining the status of the helmet lock; The status of the helmet lock is reported to the server.
4. The method according to claim 1, further comprising: In the case where it is detected that the helmet lock is abnormally reset, the step of detecting whether a helmet is placed at the set position of the vehicle body is re-executed to obtain a helmet detection result; The step of detecting whether an event of changing from a first state to a second state at the set position occurs according to the helmet detection result.
5. The method according to claim 1, further comprising: When it is detected that the helmet lock is locked successfully, the vehicle body is controlled to be locked.
6. A use control device for an electric bicycle, the electric bicycle comprising a body, a helmet arranged on the body and a helmet lock, the device comprising: A first detection module is used to detect whether a helmet is placed at a set position of the vehicle body and obtain a helmet detection result; A second detection module is used to detect whether an event of changing from a first state to a second state at the set position occurs according to the helmet detection result; wherein the first state is a state where the helmet is not placed at the set position, and the second state is a state where the helmet is placed at the set position; A lock control module, for controlling the helmet lock to lock when the event is detected, so as to lock the helmet without requiring the user to perform an operation of returning the helmet through the user terminal; The device also includes: a module for detecting whether the helmet lock is successfully locked; A module for detecting whether the helmet is placed at the set position on the vehicle body when detecting that the helmet lock is successfully locked; A module for controlling the helmet lock to unlock when it is detected that the helmet is not placed at the set position of the vehicle body; The device also includes: a module for receiving a locking instruction for closing the helmet lock when it is detected that the helmet lock fails to be locked, and specifically for sending a helmet lock failure reminder to the user when it is detected that the helmet lock fails to be locked, so that the user triggers a request to return the helmet through the user terminal, and sends the request to return the helmet to the server, receives the locking instruction for closing the helmet lock sent by the server; and controls the helmet lock to execute the locking instruction so that the helmet lock locks the helmet.
7. An electric bicycle comprising the device according to claim 6.
8. An electric bicycle, comprising a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to control the electric bicycle to execute the method according to any one of claims 1 to 5 when executing the computer program.
