Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clearly understood, the embodiments of the present disclosure are described in further detail below with reference to the accompanying drawings and the embodiments. It is to be understood that the specific embodiments described herein are merely illustrative of the embodiments of the disclosure and that no limitation to the embodiments of the disclosure is intended.
First, before specifically describing the technical solution of the embodiment of the present disclosure, a technical background or a technical evolution context on which the embodiment of the present disclosure is based is described. In general, in the field of shared devices, a battery of a shared device needs to be replaced regularly by an operation and maintenance person to ensure normal use of the shared device, and the current technical background is as follows: the method includes the steps that the batteries of the sharing equipment are replaced point to point through operation and maintenance personnel, namely the sharing equipment needing to be replaced is found through the operation and maintenance personnel, then the batteries are replaced after the batteries of the sharing equipment are opened through specific application authorization, and the batteries of the sharing equipment are closed after the batteries are replaced. Based on the background, the applicant finds that the utilization rate of the sharing device by the user is low if the battery replacement efficiency of the sharing device is low through long-term experimental data collection, demonstration and verification. How to improve the battery replacement efficiency of the sharing device under the requirement of higher utilization rate of the sharing device becomes a difficult problem to be solved urgently at present. In addition, it should be noted that, from the problem of determining that the battery replacement efficiency of the shared device is low and the technical solutions described in the following embodiments, the applicant has paid a lot of creative efforts.
The following describes technical solutions related to the embodiments of the present disclosure with reference to a scenario in which the embodiments of the present disclosure are applied.
The battery compartment unlocking method provided by the embodiment of the disclosure can be applied to a system architecture as shown in fig. 1. The system architecture includes a sharing device 101, a probe 102, and a server 103. The sharing device 101 may be a non-motorized vehicle such as a pedal bicycle, an electric bicycle, a scooter, or a motorcycle, or a motorized vehicle such as an automobile; the detector 102 may be an electronic device such as a mobile phone, a tablet computer, an IPAD, or the like; the server 103 may be an independent server or a server cluster composed of a plurality of servers. The sharing device 101 is provided with a communication component, which can communicate with the probe 102 or the server 103 in a wireless manner, for example, the server 103 can send an unlocking instruction or the like to the sharing device according to an unlocking operation of a user. In addition, the communication between the detector 102 and the server 103 can be performed in a wireless or wired manner. The communication method among the sharing device 101, the detector 102, and the server 103 is not limited in the embodiment of the present disclosure.
In one embodiment, as shown in fig. 2, a battery compartment unlocking method is provided, which is described by taking the example of the method applied to the detector in fig. 1, and includes the following steps:
s201, receiving a Bluetooth information packet sent by a sharing device; the Bluetooth information packet comprises a device identifier of the sharing device and a battery replacement flag bit.
The device identifier of the sharing device may be an Identity Document (ID) that can be used as a unique identifier of the sharing device, or may be in other self-defined data formats, and is used to distinguish other sharing devices, as long as the server can issue the instruction to the sharing device through the device identifier. The battery replacement flag bit of the sharing device is in a user-defined data format and is used as an identifier for identifying whether the battery of the sharing device needs to be replaced, and optionally, the value of the battery replacement flag bit of the sharing device may be actively issued to the sharing device by the server or determined by the sharing device itself.
Specifically, the detector receives a bluetooth packet sent by the sharing device. The Bluetooth information packet comprises a device identifier of the sharing device and a battery replacement flag bit. Optionally, the sharing device may broadcast the bluetooth packet at a certain fixed frequency in a bluetooth broadcast manner, and the detector receives the bluetooth packet broadcast by the sharing device through a bluetooth channel between the detector and the sharing device. Optionally, the sharing device may also directionally send the bluetooth packet to the probe, and in the embodiment of the present disclosure, the manner in which the sharing device sends the bluetooth packet to the probe is not limited. Optionally, the sharing device may be any one of a sharing bicycle, a sharing automobile, a sharing unmanned aerial vehicle, a sharing ship, and a sharing glider. Optionally, the detector may be any one of mobile intelligent devices, where the hardware of the detector includes a Central Processing Unit (CPU), a memory, a bluetooth module, a network module, and a scan switch, an operating system of the detector may be, but is not limited to, Linux, real-time operating system (RTOS), Android, and other systems that can be used for the mobile device, the bluetooth module of the detector is used to scan and process broadcast information of peripheral bluetooth devices, the network module of the detector is used to communicate with the server, and the scan switch of the detector is used to turn on or turn off a scan mode of the detector.
S202, if the battery swapping flag bit indicates that battery swapping is needed, sending a battery swapping request comprising an equipment identifier to a server; and the battery swapping request is used for indicating the server to issue a battery bin opening instruction to the shared equipment corresponding to the equipment identifier.
Specifically, if a battery replacement flag bit in a bluetooth information packet sent by a shared device indicates that battery replacement is required, a detector sends a battery replacement request including a device identifier of the shared device to a server; and the battery swapping request is used for indicating the server to issue a battery bin opening instruction to the shared device corresponding to the device identifier included in the battery swapping request. Exemplarily, it is assumed that a battery swapping flag of a shared device includes two types of values, 1 and 0, where 1 indicates that battery swapping is needed, and 0 indicates that battery swapping is not needed, and if the battery swapping flag in a bluetooth information packet received by a detector is 1, it indicates that the shared device corresponding to the bluetooth information packet needs to swap, and then the detector sends a battery swapping request including a device identifier of the shared device that needs to swap to a server. Optionally, the detector may be connected to the server through a network, and the detector may send a power swapping request including a device identifier of a shared device that needs power swapping to the server through a network channel with the server. Optionally, the server may issue the battery compartment opening instruction to the sharing device corresponding to the device identifier through a communication channel between the server and the sharing device. Optionally, the server may respectively issue a battery compartment opening instruction to each shared device that needs to swap batteries, or may issue a battery compartment opening instruction to a shared device that needs to swap batteries in a broadcast manner, which is not limited in the embodiment of the present disclosure.
In the battery compartment unlocking method, the detector receives a Bluetooth information packet sent by the sharing device, wherein the Bluetooth information packet sent by the sharing device and received by the detector comprises a device identifier and a battery replacement flag bit of the sharing device, if the battery replacement flag bit in the Bluetooth information packet received by the detector indicates that battery replacement is required, the detector sends a battery replacement request comprising the device identifier of the sharing device to the server, the server is instructed to send a battery compartment opening instruction to the sharing device corresponding to the device identifier, the detector can effectively judge whether the sharing device needs battery replacement through the battery replacement flag bit in the Bluetooth information packet, the efficiency of determining whether the sharing device needs battery replacement is improved, and when the sharing device needs battery replacement according to the battery replacement flag bit, the battery replacement request is sent to the server, and the server controls the sharing device to automatically open the battery compartment through the instruction, maintenance personnel are not required to find the sharing equipment needing to replace the battery, and the maintenance personnel are not required to manually open the battery bin, so that the efficiency of replacing the sharing equipment battery is improved.
In some scenarios, the server may also verify the validity of the identity of the detector that sent the power swapping request. In one embodiment, the power swapping request further includes a communication authentication code of the detector; the communication authentication code is used for indicating the server to verify whether the identity of the detector is legal or not through the communication authentication code.
Specifically, the power swapping request sent by the detector to the server also comprises a communication authentication code of the detector; the communication authentication code is used for indicating the server to verify whether the identity of the detector is legal or not through the communication authentication code. Optionally, the server may pre-establish a correspondence between the communication authentication code of the detector and the identity validity of the detector, and after receiving the battery swapping request sent by the detector, the server verifies whether the identity of the detector sending the battery swapping request is valid according to the pre-established correspondence through the communication authentication code included in the received battery swapping request. Optionally, the communication authentication code of the detector may be 0 or 1, and in this case, the correspondence between the communication authentication code of the detector and the identity validity of the detector, which is pre-established by the server, may be: if the communication authentication code of the detector is 1, it indicates that the identity of the detector is legal, and if the communication authentication code of the detector is 0, it indicates that the identity of the detector is illegal, for example, if the communication authentication code included in the battery swapping request received by the server is 1, the server confirms that the identity of the detector sending the battery swapping request is legal. Optionally, the communication authentication code of the detector may be an identity of the detector, and in this case, the correspondence between the communication authentication code of the detector and the identity validity of the detector, which is pre-established by the server, may be: if the communication authentication code of the detector is within the preset communication authentication code range, the server confirms that the identity of the detector sending the power swapping request is legal, for example, if the preset communication authentication code range is 70-90, and if the communication authentication code of the detector included in the power swapping request received by the server is 85, the server confirms that the identity of the detector sending the power swapping request is legal.
In this embodiment, the power swapping request sent by the detector to the server further includes a communication authentication code of the detector, and the communication authentication code can indicate the server to verify whether the identity of the detector is legal through the communication authentication code, so that it is ensured that the server is a battery compartment opening instruction issued according to the power swapping request sent by the legal detector, and the accuracy and reliability of the battery compartment opening instruction issued by the server are further improved.
In the foregoing scenario that the battery swap flag of the shared device indicates that battery swap is required, in an embodiment, if the value of the battery swap flag bit is the first value, the battery swap flag bit indicates that battery swap is required; and if the value of the battery replacement flag bit is a second value, the battery replacement flag bit indicates that battery replacement is not required.
Specifically, if the value of the battery swapping flag bit of the shared device is a first value, the battery swapping flag bit indicates that the shared device needs to swap batteries; and if the value of the battery replacement flag bit of the shared device is a second value, the battery replacement flag indicates that the shared device does not need to replace the battery. For example, the first value may be 1, the second value may be 0, if the battery swap flag bit of the shared device received by the detector is 1, the battery swap flag bit indicates that the shared device needs to swap battery, and if the battery swap flag bit of the shared device received by the detector is 0, the battery swap flag indicates that the shared device does not need to swap battery. Optionally, the value of the battery replacement flag of the sharing device is determined by the sharing device according to the current remaining power of the battery.
Optionally, in this embodiment, the value of the battery replacement flag of the sharing device may be determined by the sharing device according to the current remaining power of the battery and a preset power threshold, or may be determined by the sharing device according to a preset ratio and a ratio between the current remaining power of the battery and the total capacity of the battery, and the following detailed description describes a specific implementation manner that the two methods are adopted:
the first method comprises the following steps: if the value of the battery swapping flag bit of the sharing device is determined by the sharing device according to the current remaining power of the battery and the preset power threshold, the determining of the value of the battery swapping flag bit by the sharing device according to the current remaining power of the battery includes:
and step A, if the current residual electric quantity of the battery is smaller than a preset electric quantity threshold value, the value of the battery replacement flag bit is a first value.
Specifically, if the current remaining power of the battery of the sharing device is smaller than the preset power threshold, the value of the battery replacement flag is the first value. For example, if the preset power threshold is 5 degrees, the current remaining power of the battery of the sharing device is 2 degrees, and the current remaining power of the battery of the sharing device is smaller than the preset power threshold, the sharing device determines that the value of the battery replacement flag is the first value.
And step B, if the current residual electric quantity of the battery is greater than or equal to the preset electric quantity threshold value, the value of the battery replacement flag bit is a second value.
Specifically, if the current remaining power of the shared device battery is greater than or equal to the preset power threshold, the value of the battery replacement flag is the second value. Illustratively, continuing to describe with the preset power threshold as 5 degrees as an example, if the current remaining power of the battery of the sharing device is 8 degrees and the current remaining power of the battery of the sharing device is greater than the preset power threshold, the sharing device determines that the value of the battery replacement flag is the second value.
And the second method comprises the following steps: if the value of the battery replacement flag bit of the sharing device is determined by the sharing device according to the preset ratio and the ratio of the current residual capacity of the battery to the total capacity of the battery, the value of the battery replacement flag bit is determined by the sharing device according to the current residual capacity of the battery, and the method includes:
and step C, if the ratio of the current residual capacity of the battery to the total capacity of the battery is smaller than a preset ratio, the value of the battery replacement flag bit is a first value.
Specifically, if the ratio of the current remaining capacity of the battery of the sharing device to the total capacity of the battery is smaller than the preset ratio, the value of the battery replacement flag of the sharing device is the first value. Illustratively, the preset ratio is 2/5, and if the ratio of the current remaining capacity of the battery of the sharing device to the total capacity of the battery is 1/5 and the ratio of the current remaining capacity of the battery of the sharing device to the total capacity of the battery is smaller than the preset ratio, the sharing device determines that the value of the battery swap flag is the first value.
And D, if the ratio of the current residual capacity of the battery to the total capacity of the battery is greater than or equal to a preset ratio, the value of the battery replacement flag bit is a second value.
Specifically, if the ratio of the current remaining capacity of the battery of the sharing device to the total capacity of the battery is greater than or equal to the preset ratio, the value of the battery replacement flag of the sharing device is the second value. Illustratively, continuing to take the preset ratio of 2/5 as an example, if the ratio of the current remaining capacity of the battery of the sharing device to the total capacity of the battery is 4/5, and the ratio of the current remaining capacity of the battery of the sharing device to the total capacity of the battery is greater than the preset ratio, the sharing device determines that the value of the battery replacement flag is the second value.
In this embodiment, if the value of the battery replacement flag bit is a first value, the battery replacement flag bit indicates that battery replacement is required, and if the value of the battery replacement flag bit is a second value, the battery replacement flag bit indicates that battery replacement is not required, the sharing device sends the bluetooth packet including the battery replacement flag bit to the detector, so that whether the sharing device sending the bluetooth packet needs to replace battery can be quickly and accurately determined by the detector, and then the detector can quickly and accurately send a battery replacement request including a device identifier of the sharing device to the server according to the indication of the battery replacement flag bit, and instruct the server to issue a battery compartment opening instruction to the sharing device corresponding to the device identifier, thereby improving accuracy and efficiency of opening a battery compartment of the sharing device.
In the scene that the detector receives the Bluetooth information packet sent by the sharing device, the detector can receive the Bluetooth information packet sent by the sharing device after starting the scanning mode. In one embodiment, as shown in fig. 3, the method further comprises:
s301, receiving a starting instruction triggered by a scanning switch on the detector by a user.
Specifically, the detector receives an on command triggered by a user through a scan switch on the detector. Optionally, the scan switch may be a push button switch or a toggle switch. Illustratively, when the scanning switch is a button switch, the opening instruction is triggered when the user presses the scanning switch on the detector; when the scanning switch is a wave switch, the opening instruction is triggered when the scanning switch on the detector is turned by a user.
And S302, controlling the detector to start a scanning mode according to the starting instruction.
Specifically, the detector controls the detector to start the scanning mode according to a starting instruction triggered by a user through the scanning switch. The above S201 includes: and in the scanning mode, receiving a Bluetooth information packet sent by the sharing device. It can be understood that, when the scanning mode is started by the detector, the detector will scan the surrounding shared devices and receive the bluetooth information packet sent by the shared devices, and then when the battery replacement flag bit included in the bluetooth information packet indicates that battery replacement is required, a battery replacement request including the device identifier of the shared devices is sent to the server, so that the detector can start all battery replacement flag bits within the bluetooth coverage of the detector as the battery compartment of the shared devices requiring battery replacement, and along with the movement of the detector, the battery replacement flag bit on the moving route of the detector can be started as the battery compartment of the shared devices requiring battery replacement. And when the scanning mode of the detector is not started, the detector cannot receive the Bluetooth information packet sent by the sharing equipment, and the battery bin of the sharing equipment cannot be started.
In this embodiment, the detector can receive the start instruction that the user triggered through the scanning switch on the detector, and then opens scanning mode according to opening instruction control detector, can make the detector just receive the bluetooth information package that shared device sent under scanning mode like this, when scanning mode is not opened, the bluetooth information package that shared device sent will not be received to the detector, can reduce the consumption of detector like this, only just scan when scanning mode of detector is opened, resources are saved, the wasting of resources has been avoided.
In the scene that the detector controls the detector to start the scanning mode according to the starting instruction, the detector needs to perform safety authentication on the identity of the user, and the detector is controlled to start the scanning mode according to the starting instruction under the condition that the authentication is successful. In one embodiment, as shown in fig. 4, the method further includes:
s401, obtaining the identity authentication information of the user.
Specifically, the detector obtains authentication information of the user. Optionally, the authentication information of the user includes an authentication password and/or biometric information of the user. Optionally, in the case that the authentication information of the user is an authentication password, the detector may obtain the authentication information of the user through a touch screen thereof; under the condition that the identity authentication information of the user is the biological characteristic information of the user, the detector can acquire the identity authentication information of the user through a camera of the detector.
S402, performing security authentication on the identity of the user according to the identity authentication information.
Specifically, the detector performs security authentication on the identity of the user according to the acquired identity authentication information of the user, and if the authentication is successful, the step of controlling the detector to start the scanning mode according to the start instruction is executed. Optionally, the detector may compare the acquired authentication information of the user with the authentication information of the user in the preset database, so as to perform security authentication on the authentication information of the user. For example, taking the authentication information of the user as the authentication password, the detector may compare the received authentication password with the password stored in the preset database, and if the authentication password is consistent, the authentication is successful, and if the authentication password is inconsistent, the authentication is unsuccessful.
In this embodiment, the detector obtains the authentication information of the user, and performs security authentication on the identity of the user according to the authentication information of the user, thereby ensuring the validity of the identity of the user triggering the start instruction of the detector, ensuring that even if the detector is lost or stolen, the scan mode of the detector cannot be triggered by an illegal user through a scan switch on the detector to start the scan mode of the detector, and further ensuring that the battery compartment of the sharing device cannot be illegally started.
In one embodiment, as shown in fig. 5, a battery compartment unlocking method is provided, which is described by taking the method as an example applied to the server in fig. 1, and includes the following steps:
s501, receiving a power swapping request which is sent by a detector and carries the equipment identifier of the shared equipment; the battery replacement request is generated by the detector according to a battery replacement flag bit in a Bluetooth information packet broadcasted by the sharing device.
Specifically, the server receives a power swapping request which is sent by the detector and carries the device identifier of the shared device. The battery replacement request is generated by the detector according to a battery replacement identification bit in a Bluetooth information packet broadcasted by the sharing device. Exemplarily, assuming that the battery swapping flag bit of the shared device includes two types of values, 1 and 0, where 1 indicates that battery swapping is needed, and 0 indicates that battery swapping is not needed, if the battery swapping flag bit in the bluetooth information packet received by the detector is 1, it indicates that the shared device corresponding to the bluetooth information packet needs to swap battery, and then the detector generates the battery swapping request according to the battery swapping flag bit, and sends the generated battery swapping request to the server. Optionally, the detector may be connected to the server through a network, and the detector may send a power swapping request carrying a device identifier of the shared device that needs power swapping to the server through a network channel with the server.
And S502, issuing a battery bin opening instruction to the sharing equipment corresponding to the equipment identifier.
Specifically, the server issues a battery compartment opening instruction to the shared device corresponding to the device identifier of the shared device carried in the battery swapping request. Optionally, the server may issue the battery compartment opening instruction to the sharing device corresponding to the device identifier through a communication channel between the server and the sharing device. Optionally, the server may respectively issue a battery compartment opening instruction to each shared device that needs to be powered, or may issue a battery compartment opening instruction to a shared device that needs to be powered in a broadcast manner, which is not limited in the embodiment of the present disclosure.
In the battery compartment unlocking method, the server receives a battery replacement request which is sent by the detector and carries the equipment identifier of the shared equipment, then a battery compartment opening instruction is issued to the shared equipment corresponding to the equipment identifier carried in the battery replacement request, because the battery replacement request is generated by the detector according to the battery replacement flag bit in the Bluetooth information packet broadcasted by the shared equipment, the detector can quickly and effectively judge whether the shared equipment needs to replace the battery through the battery replacement flag bit in the Bluetooth information packet, the efficiency of determining whether the shared equipment needs to replace the battery is improved, the efficiency of generating the battery replacement request by the detector according to the battery replacement flag bit is further improved, thus the server can timely receive the battery replacement request of the equipment identifier carrying the shared equipment and timely issue the battery compartment opening instruction to the shared equipment corresponding to the equipment identifier carried in the battery replacement request, and further, the efficiency of replacing the shared equipment battery is improved.
In some scenarios, the power swapping request sent by the detector to the server further includes a communication authentication code of the detector, and the server can verify the identity validity of the detector sending the power swapping request according to the communication authentication code of the detector. In one embodiment, the power swapping request further includes a communication authentication code of the detector; the method further comprises the following steps: and verifying whether the identity of the detector is legal or not through the communication authentication code.
Specifically, the power swapping request sent by the detector to the server further includes a communication authentication code of the detector, and the server verifies whether the identity of the detector is legal or not through the communication authentication code. Optionally, the server may pre-establish a correspondence between the communication authentication code of the detector and the identity validity of the detector, and after receiving the battery swapping request sent by the detector, the server verifies whether the identity of the detector sending the battery swapping request is valid according to the pre-established correspondence through the communication authentication code included in the received battery swapping request. Optionally, the communication authentication code of the detector may be 0 or 1, and in this case, the correspondence between the communication authentication code of the detector and the identity validity of the detector, which is pre-established by the server, may be: if the communication authentication code of the detector is 1, it indicates that the identity of the detector is legal, and if the communication authentication code of the detector is 0, it indicates that the identity of the detector is illegal, for example, if the communication authentication code included in the battery swapping request received by the server is 1, the server confirms that the identity of the detector sending the battery swapping request is legal. Optionally, the communication authentication code of the detector may be an identity of the detector, and in this case, the correspondence between the communication authentication code of the detector and the identity validity of the detector, which is pre-established by the server, may be: if the communication authentication code of the detector is within the preset communication authentication code range, the server confirms that the identity of the detector sending the power swapping request is legal, for example, if the preset communication authentication code range is 70-90, and if the communication authentication code of the detector included in the power swapping request received by the server is 85, the server confirms that the identity of the detector sending the power swapping request is legal.
In this embodiment, the power change request sent by the detector and received by the server further includes the communication authentication code of the detector, so that the server can verify whether the identity of the detector is legal through the communication authentication code, thereby ensuring that the server is a battery compartment opening instruction issued according to the power change request sent by the legal detector, and further improving the accuracy of the battery compartment opening instruction issued by the server.
In the foregoing scenario that the battery swap flag of the shared device indicates that battery swap is required, in an embodiment, if the value of the battery swap flag bit is the first value, the battery swap flag bit indicates that battery swap is required; and if the value of the battery replacement flag bit is a second value, the battery replacement flag bit indicates that battery replacement is not required.
Specifically, if the value of the battery swapping flag bit of the shared device is a first value, the battery swapping flag bit indicates that the shared device needs to swap batteries; and if the value of the battery replacement flag bit of the shared device is a second value, the battery replacement flag indicates that the shared device does not need to replace the battery. For example, the first value may be 1, the second value may be 0, if the battery swap flag bit of the shared device received by the detector is 1, the battery swap flag bit indicates that the shared device needs to swap battery, and if the battery swap flag bit of the shared device received by the detector is 0, the battery swap flag indicates that the shared device does not need to swap battery.
Optionally, in this embodiment, the value of the battery replacement flag of the sharing device may be determined by the sharing device according to the current remaining power of the battery and a preset power threshold, or may be determined by the sharing device according to a ratio between the current remaining power of the battery and the total capacity of the battery and a preset ratio.
In this embodiment, if the value of the battery replacement flag bit is a first value, the battery replacement flag bit indicates that battery replacement is required, and if the value of the battery replacement flag bit is a second value, the battery replacement flag bit indicates that battery replacement is not required, the sharing device sends a bluetooth packet including the battery replacement flag bit to the detector, and the detector can quickly and accurately determine whether the sharing device sending the bluetooth packet needs to replace battery according to the battery replacement flag bit, so that the detector can quickly and accurately send a battery replacement request including a device identifier of the sharing device to the server according to the indication of the battery replacement flag bit, and instruct the server to issue a battery compartment opening instruction to the sharing device corresponding to the device identifier, thereby improving accuracy and efficiency of opening a battery compartment of the sharing device.
In one embodiment, as shown in fig. 6, a battery compartment unlocking method is provided, which is described by taking the method as an example for being applied to the sharing device in fig. 1, and includes the following steps:
s601, receiving a battery compartment opening instruction issued by a server; the battery compartment opening instruction is generated by the server according to the battery replacement request sent by the detector; the battery replacement request is generated by the detector according to the battery replacement flag bit of the shared device.
Specifically, the sharing device receives a battery compartment opening instruction issued by the server. The battery bin opening instruction is generated by the server according to a battery replacement request sent by the detector; the battery replacement request is generated by the detector according to the battery replacement flag bit of the shared device. Optionally, the sharing device may receive a battery compartment opening instruction issued by the server through a communication channel with the server. Optionally, the battery compartment opening instruction issued by the server may be issued by the server to each sharing device requiring battery replacement, or may be issued by the server to the sharing device requiring battery replacement in a broadcast manner. Optionally, in this embodiment, if the value of the battery swap flag bit of the shared device is the first value, the battery swap flag bit indicates that the shared device needs to swap batteries; and if the value of the battery replacement flag bit of the shared device is a second value, the battery replacement flag indicates that the shared device does not need to replace the battery. For example, the first value may be 1, the second value may be 0, if the battery swap flag bit of the shared device received by the detector is 1, the battery swap flag bit indicates that the shared device needs to swap battery, and if the battery swap flag bit of the shared device received by the detector is 0, the battery swap flag indicates that the shared device does not need to swap battery.
S602, opening the battery compartment according to the battery compartment opening instruction, and outputting prompt information; the prompting message is used for prompting that the battery of the sharing equipment needs to be replaced.
Specifically, the sharing device starts a battery compartment of the sharing device according to a battery compartment starting instruction issued by the server, and outputs prompt information; wherein, the prompt message is used for prompting that the shared battery needs to be replaced. Optionally, the prompt message may include a light message and/or an audio message. It can be understood that the prompt information output by the sharing device enables the operation and maintenance personnel to quickly find the sharing device needing to replace the battery, so that the operation and maintenance personnel can replace the battery of the sharing device in time.
In the battery compartment unlocking method, a battery compartment opening instruction received by the sharing device and sent by the server is generated by the server according to a battery replacing request sent by the detector, the battery replacing request is generated by the detector according to a battery replacing flag bit in a Bluetooth information packet broadcasted by the sharing device, the detector can quickly and effectively judge whether the sharing device needs to replace the battery through the battery replacing flag bit in the Bluetooth information packet, the efficiency of determining whether the sharing device needs to replace the battery is improved, the efficiency of generating the battery replacing request by the detector according to the battery replacing flag bit is further improved, thus the server can receive the battery replacing request carrying the device identifier of the sharing device in time and send the battery compartment opening instruction to the sharing device corresponding to the device identifier carried in the battery replacing request in time, and the sharing device can receive the battery compartment opening instruction in time, the efficiency of replacing the shared equipment battery is improved; in addition, the sharing equipment opens the battery compartment according to the battery compartment opening instruction, and the output prompt information enables operation and maintenance personnel to replace the battery of the sharing equipment in time, so that the efficiency of replacing the battery of the sharing equipment is improved.
In the scene that the detector changes the battery flag bit according to the battery of the sharing device, the sharing device is required to determine the value of the battery change flag bit of the sharing device, and a bluetooth information packet is generated according to the device identifier of the sharing device and the battery change flag bit and sent to the detector. In one embodiment, as shown in fig. 7, the method further includes:
and S701, determining the value of a battery replacement flag bit according to the current residual capacity of the battery.
Specifically, the sharing device determines the value of the battery replacement flag bit according to the current remaining capacity of the battery of the sharing device. Optionally, in this embodiment, the value of the battery replacement flag of the sharing device may be determined by the sharing device according to the current remaining power of the battery and a preset power threshold, or may be determined by the sharing device according to a preset ratio and a ratio between the current remaining power of the battery and the total capacity of the battery, and the following detailed description describes a specific implementation manner that the two methods are adopted:
the first method comprises the following steps: if the value of the battery swapping flag bit of the sharing device is determined by the sharing device according to the current remaining power of the battery and the preset power threshold, the determining of the value of the battery swapping flag bit by the sharing device according to the current remaining power of the battery includes:
and E, if the current residual electric quantity of the battery is smaller than a preset electric quantity threshold value, determining that the value of the battery replacement flag bit is a first value.
Specifically, if the current remaining power of the battery of the sharing device is smaller than the preset power threshold, the sharing device determines that the value of the battery replacement flag bit of the sharing device is the first value. For example, if the preset power threshold is 5 degrees, the current remaining power of the battery of the sharing device is 2 degrees, and the current remaining power of the battery of the sharing device is smaller than the preset power threshold, the sharing device determines that the value of the battery replacement flag is the first value.
And F, if the current residual electric quantity of the battery is greater than or equal to the preset electric quantity threshold value, determining that the value of the battery replacement flag bit is a second value.
Specifically, if the current remaining power of the battery of the sharing device is greater than or equal to the preset power threshold, the sharing device determines that the value of the battery replacement flag bit of the sharing device is the second value. Illustratively, continuing to describe with the preset power threshold as 5 degrees as an example, if the current remaining power of the battery of the sharing device is 8 degrees and the current remaining power of the battery of the sharing device is greater than the preset power threshold, the sharing device determines that the value of the battery replacement flag is the second value.
And the second method comprises the following steps: if the value of the battery replacement flag bit of the sharing device is determined by the sharing device according to the preset ratio and the ratio of the current residual capacity of the battery to the total capacity of the battery, the value of the battery replacement flag bit is determined by the sharing device according to the current residual capacity of the battery, and the method includes:
and G, if the ratio of the current residual capacity of the battery to the total capacity of the battery is smaller than a preset ratio, determining that the value of the battery replacement flag bit is a first value.
Specifically, if the ratio of the current remaining power of the battery of the sharing device to the total capacity of the battery is smaller than the preset ratio, the sharing device determines that the value of the battery replacement flag of the sharing device is the first value. Illustratively, the preset ratio is 2/5, and if the ratio of the current remaining capacity of the battery of the sharing device to the total capacity of the battery is 1/5 and the ratio of the current remaining capacity of the battery of the sharing device to the total capacity of the battery is smaller than the preset ratio, the sharing device determines that the value of the battery swap flag is the first value.
And H, if the ratio of the current residual capacity of the battery to the total capacity of the battery is greater than or equal to a preset ratio, determining that the value of the battery replacement flag bit is a second value.
Specifically, if the ratio of the current remaining capacity of the battery of the sharing device to the total capacity of the battery is greater than or equal to the preset ratio, the sharing device determines that the value of the battery replacement flag bit of the sharing device is the second value. Illustratively, continuing to take the preset ratio of 2/5 as an example, if the ratio of the current remaining capacity of the battery of the sharing device to the total capacity of the battery is 4/5, and the ratio of the current remaining capacity of the battery of the sharing device to the total capacity of the battery is greater than the preset ratio, the sharing device determines that the value of the battery replacement flag is the second value.
S702, generating a Bluetooth information packet according to the own equipment identification and the value of the battery replacement flag bit, and broadcasting the Bluetooth information packet.
Specifically, the sharing device generates a bluetooth information packet according to the device identifier of the sharing device and the determined value of the battery replacement flag bit, and broadcasts the bluetooth information packet. It can be understood that the bluetooth packet generated by the sharing device includes the device identifier and the battery replacement flag bit of the sharing device. Optionally, the sharing device may also directionally transmit the generated bluetooth packet to the probe through a communication channel with the probe.
In this embodiment, the sharing device can quickly and accurately determine the value of the battery replacement flag according to the current remaining circuit of the battery of the sharing device, and then can quickly and accurately generate the bluetooth information packet according to the device identifier of the sharing device and the value of the battery replacement flag, and broadcast the bluetooth information packet, so that the detector can timely receive the bluetooth information packet, and further can quickly and accurately send a battery replacement request including the device identifier of the sharing device to the server according to the indication of the battery replacement flag in the bluetooth information packet, and instruct the server to issue a battery compartment opening instruction to the sharing device corresponding to the device identifier, thereby improving the accuracy and efficiency of opening the battery compartment of the sharing device.
To facilitate understanding by those skilled in the art, the battery compartment unlocking method provided by the present disclosure is described in detail below, and as shown in fig. 8, the method may include:
and S801, the sharing equipment determines the value of the battery replacement flag bit according to the current residual capacity of the battery.
S802, the sharing equipment generates a Bluetooth information packet according to the equipment identification of the sharing equipment and the value of the battery replacement flag bit, and broadcasts the Bluetooth information packet.
And S803, the detector receives an opening instruction triggered by a user through a scanning switch on the detector.
S804, the detector acquires the identity authentication information of the user; the authentication information includes an authentication password and/or biometric information of the user.
And S805, the detector performs security authentication on the identity of the user according to the identity authentication information.
And S806, if the identity authentication of the user by the detector is successful, the detector controls the detector to start the scanning mode according to the starting instruction.
S807, the detector receives the Bluetooth information packet sent by the sharing equipment in a scanning mode; the Bluetooth information packet comprises a device identifier of the sharing device and a battery replacement flag bit;
s808, if the battery replacement flag bit indicates that battery replacement is needed, the detector sends a battery replacement request comprising the equipment identifier to the server; and the battery swapping request is used for indicating the server to issue a battery bin opening instruction to the shared equipment corresponding to the equipment identifier.
S809, the server receives a power swapping request which is sent by the detector and carries the equipment identifier of the shared equipment; the battery replacement request is generated by the detector according to a battery replacement flag bit in a Bluetooth information packet broadcasted by the sharing device.
And S810, the server verifies whether the identity of the detector is legal or not through the communication authentication code of the detector included in the battery swapping request.
And S811, the server issues a battery bin opening instruction to the sharing equipment corresponding to the equipment identifier.
S812, the sharing equipment receives a battery compartment opening instruction issued by the server; the battery compartment opening instruction is generated by the server according to the battery replacement request sent by the detector; the battery replacement request is generated by the detector according to the battery replacement flag bit of the shared device.
S813, the sharing equipment opens the battery compartment according to the battery compartment opening instruction and outputs prompt information; the prompting information is used for prompting that the battery of the sharing equipment needs to be replaced; the prompt message includes light information and/or audio information.
In the step of determining, by the sharing device, the value of the battery swapping flag according to the current remaining capacity of the battery in S801, the value of the battery swapping flag of the sharing device may be determined by the sharing device according to the current remaining capacity of the battery and a preset capacity threshold, or may be determined by the sharing device according to a preset ratio and a ratio between the current remaining capacity of the battery and a total capacity of the battery, and a specific implementation manner of the two methods is described in detail below:
the first method comprises the following steps: if the value of the battery swapping flag bit of the sharing device is determined by the sharing device according to the current remaining power of the battery and the preset power threshold, the determining of the value of the battery swapping flag bit by the sharing device according to the current remaining power of the battery includes:
d1, if the current remaining power of the battery is less than the preset power threshold, the value of the battery replacement flag is the first value.
And D2, if the current remaining capacity of the battery is greater than or equal to the preset capacity threshold, the value of the battery replacement flag bit is a second value.
And the second method comprises the following steps: if the value of the battery replacement flag bit of the sharing device is determined by the sharing device according to the preset ratio and the ratio of the current residual capacity of the battery to the total capacity of the battery, the value of the battery replacement flag bit is determined by the sharing device according to the current residual capacity of the battery, and the method includes:
i1, if the ratio of the current remaining capacity of the battery to the total capacity of the battery is smaller than the preset ratio, the value of the battery replacement flag is the first value.
And I2, if the ratio of the current remaining capacity of the battery to the total capacity of the battery is greater than or equal to a preset ratio, the value of the battery replacement flag bit is a second value.
It should be noted that, for the descriptions in the above S801 to S813, D1 to D2, and I1 to I2, reference may be made to the related descriptions in the above embodiments, and the effects thereof are similar, and no further description is given here.
It should be understood that although the various steps in the flow charts of fig. 2-8 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-8 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 9, there is provided a battery compartment unlocking system, including a probe, a server and a sharing device, the server being in communication connection with the probe and the sharing device, respectively;
a detector for performing the battery compartment unlocking method as described above in the embodiments of fig. 2-4;
a server for executing the battery compartment unlocking method as described in the embodiment of fig. 5 above;
and the sharing device is used for executing the battery compartment unlocking method in the embodiment of the figures 6 to 7.
The implementation principle and technical effect of the battery compartment unlocking system are similar to those of the method embodiment, and are not described herein again.
In one embodiment, as shown in fig. 10, there is provided a battery compartment unlocking device including: a first receiving module 10 and a sending module 11, wherein:
a first receiving module 10, configured to receive a bluetooth packet sent by a sharing device; the Bluetooth information packet comprises a device identifier of the sharing device and a battery replacement flag bit.
The sending module 11 is configured to send a battery swap request including the device identifier to the server if the battery swap flag bit indicates that battery swap is required; and the battery swapping request is used for indicating the server to issue a battery bin opening instruction to the shared equipment corresponding to the equipment identifier.
Optionally, the power swapping request further includes a communication authentication code of the detector; the communication authentication code is used for indicating the server to verify whether the identity of the detector is legal or not through the communication authentication code.
Optionally, if the value of the battery replacement flag bit is a first value, the battery replacement flag bit indicates that battery replacement is required; and if the value of the battery replacement flag bit is a second value, the battery replacement flag bit indicates that battery replacement is not required.
Optionally, the value of the battery replacement flag is determined by the sharing device according to the current remaining power of the battery.
Optionally, the determining, by the sharing device, the value of the battery replacement flag according to the current remaining power of the battery includes:
if the current residual electric quantity of the battery is smaller than a preset electric quantity threshold value, the value of the battery replacement flag bit is a first value;
and if the current residual electric quantity of the battery is greater than or equal to the preset electric quantity threshold value, the value of the battery replacement flag bit is a second value.
Optionally, the determining, by the sharing device, the value of the battery replacement flag according to the current remaining power of the battery includes:
if the ratio of the current residual capacity of the battery to the total capacity of the battery is smaller than a preset ratio, the value of the battery replacement flag bit is a first value;
and if the ratio of the current residual capacity of the battery to the total capacity of the battery is greater than or equal to a preset ratio, the value of the battery replacement flag bit is a second value.
The battery compartment unlocking device provided by the embodiment can execute the method embodiment, the implementation principle and the technical effect are similar, and details are not repeated herein.
On the basis of the embodiment shown in fig. 10, as shown in fig. 11, optionally, the apparatus further includes: a second receiving module 12 and a control module 13, wherein:
the second receiving module 12 is configured to receive an opening instruction triggered by a scanning switch on the detector;
the control module 13 is used for controlling the detector to start a scanning mode according to the starting instruction;
the first receiving module 10 is configured to receive a bluetooth packet sent by a sharing device in a scan mode.
The battery compartment unlocking device provided by the embodiment can execute the method embodiment, the implementation principle and the technical effect are similar, and details are not repeated herein.
On the basis of the embodiment shown in fig. 11, as shown in fig. 12, optionally, the apparatus further includes: an acquisition module 14 and an authentication module 15, wherein:
an obtaining module 14, configured to obtain authentication information of a user;
the authentication module 15 is used for performing security authentication on the identity of the user according to the identity authentication information;
and the control module 13 is configured to control the detector to start the scanning mode according to the start instruction if the authentication is successful.
Optionally, the identity verification information includes an authentication password and/or biometric information of the user.
The battery compartment unlocking device provided by the embodiment can execute the method embodiment, the implementation principle and the technical effect are similar, and details are not repeated herein.
For specific definition of the battery compartment unlocking device, reference may be made to the above definition of the battery compartment unlocking method, which is not described herein again. The modules in the battery compartment unlocking device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a processor in the detector or independent of the processor in the detector in a hardware form, and can also be stored in a memory in the detector in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, as shown in fig. 13, there is provided a battery compartment unlocking device including: a receiving module 20 and a sending module 21, wherein:
a receiving module 20, configured to receive a power swapping request that carries an apparatus identifier of a shared apparatus and is sent by a detector; the battery replacement request is generated by the detector according to a battery replacement flag bit in a Bluetooth information packet broadcasted by the sharing equipment;
and the issuing module 21 is configured to issue a battery compartment opening instruction to the shared device corresponding to the device identifier.
Optionally, if the value of the battery replacement flag bit is a first value, the battery replacement flag bit indicates that battery replacement is required; and if the value of the battery replacement flag bit is a second value, the battery replacement flag bit indicates that battery replacement is not required.
Optionally, the value of the battery replacement flag is determined by the sharing device according to the current remaining power of the battery.
Optionally, the determining, by the sharing device, the value of the battery replacement flag according to the current remaining power of the battery includes:
if the current residual electric quantity of the battery is smaller than a preset electric quantity threshold value, the value of the battery replacement flag bit is a first value;
and if the current residual electric quantity of the battery is greater than or equal to the preset electric quantity threshold value, the value of the battery replacement flag bit is a second value.
Optionally, the determining, by the sharing device, the value of the battery replacement flag according to the current remaining power of the battery includes:
if the ratio of the current residual capacity of the battery to the total capacity of the battery is smaller than a preset ratio, the value of the battery replacement flag bit is a first value;
and if the ratio of the current residual capacity of the battery to the total capacity of the battery is greater than or equal to a preset ratio, the value of the battery replacement flag bit is a second value.
The battery compartment unlocking device provided by the embodiment can execute the method embodiment, the implementation principle and the technical effect are similar, and details are not repeated herein.
On the basis of the embodiment shown in fig. 13, as shown in fig. 14, optionally, the power swapping request further includes a communication authentication code of the detector, and the apparatus further includes: an authentication module 22, wherein:
and the verification module 22 is used for verifying whether the identity of the detector is legal or not through the communication authentication code.
The battery compartment unlocking device provided by the embodiment can execute the method embodiment, the implementation principle and the technical effect are similar, and details are not repeated herein.
For specific definition of the battery compartment unlocking device, reference may be made to the above definition of the battery compartment unlocking method, which is not described herein again. The modules in the battery compartment unlocking device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the server, and can also be stored in a memory in the server in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, as shown in fig. 15, there is provided a battery compartment unlocking device including: a receiving module 30 and an opening module 31, wherein:
the receiving module 30 is used for receiving a battery compartment opening instruction issued by the server; the battery compartment opening instruction is generated by the server according to the battery replacement request sent by the detector; the battery replacement request is generated by the detector according to a battery replacement flag bit of the shared device;
the starting module 31 is used for starting the battery compartment according to the battery compartment starting instruction and outputting prompt information; the prompting message is used for prompting that the battery of the sharing equipment needs to be replaced.
Optionally, the prompt message includes a light message and/or an audio message.
Optionally, if the value of the battery replacement flag bit is a first value, the battery replacement flag bit indicates that battery replacement is required; and if the value of the battery replacement flag bit is a second value, the battery replacement flag bit indicates that battery replacement is not required.
The battery compartment unlocking device provided by the embodiment can execute the method embodiment, the implementation principle and the technical effect are similar, and details are not repeated herein.
On the basis of the embodiment shown in fig. 15, as shown in fig. 16, optionally, the apparatus further includes: a determination module 32 and a generation module 33, wherein:
the determining module 32 is configured to determine a value of a battery replacement flag according to the current remaining power of the battery;
and the generating module 33 is configured to generate a bluetooth information packet according to the device identifier of the generating module and the value of the battery replacement flag, and broadcast the bluetooth information packet.
The battery compartment unlocking device provided by the embodiment can execute the method embodiment, the implementation principle and the technical effect are similar, and details are not repeated herein.
On the basis of the embodiment shown in fig. 16, as shown in fig. 17, optionally, the determining module 32 includes: a first determining unit 321 and a second determining unit 322, wherein:
the first determining unit 321 is configured to determine that a value of the battery replacement flag is a first value if the current remaining power of the battery is smaller than a preset power threshold.
The second determining unit 322 is configured to determine that the value of the battery replacement flag is a second value if the current remaining power of the battery is greater than or equal to the preset power threshold.
The battery compartment unlocking device provided by the embodiment can execute the method embodiment, the implementation principle and the technical effect are similar, and details are not repeated herein.
On the basis of the embodiment shown in fig. 16, as shown in fig. 18, optionally, the determining module 32 includes: a third determining unit 323 and a fourth determining unit 324, wherein:
the third determining unit 323 is configured to determine that the value of the battery replacement flag is the first value if a ratio of the current remaining capacity of the battery to the total capacity of the battery is smaller than a preset ratio.
A fourth determining unit 324, configured to determine that the value of the battery replacement flag is a second value if a ratio of the current remaining capacity of the battery to the total capacity of the battery is greater than or equal to a preset ratio.
The battery compartment unlocking device provided by the embodiment can execute the method embodiment, the implementation principle and the technical effect are similar, and details are not repeated herein.
For specific definition of the battery compartment unlocking device, reference may be made to the above definition of the battery compartment unlocking method, which is not described herein again. The modules in the battery compartment unlocking device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the shared device, or can be stored in a memory in the shared device in a software form, so that the processor can call and execute operations corresponding to the modules.
FIG. 19 is a block diagram illustrating a detector 1300 according to an exemplary embodiment. For example, the probe 1300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 20, a detector 1300 may include one or more of the following components: a processing component 1302, a memory 1304, a power component 1306, a multimedia component 1308, an audio component 1310, an input/output (I/O) interface 1312, a sensor component 1314, and a communication component 1316. Wherein the memory has stored thereon a computer program or instructions for execution on the processor.
The processing component 1302 generally controls overall operation of the electronic device 1300, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1302 may include one or more processors 1320 to execute instructions to perform all or part of the steps of the method described above. Further, the processing component 1302 can include one or more modules that facilitate interaction between the processing component 1302 and other components. For example, the processing component 1302 may include a multimedia module to facilitate interaction between the multimedia component 1308 and the processing component 1302.
The memory 1304 is configured to store various types of data to support operation at the electronic device 1300. Examples of such data include instructions for any application or method operating on the electronic device 1300, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1304 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 1306 provides power to the various components of the electronic device 1300. Power components 1306 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for electronic device 1300.
The multimedia component 1308 includes a touch-sensitive display screen that provides an output interface between the electronic device 1300 and a user. In some embodiments, the touch display screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1308 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the electronic device 1300 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1310 is configured to output and/or input audio signals. For example, the audio component 1310 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 1300 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1304 or transmitted via the communication component 1316. In some embodiments, the audio component 1310 also includes a speaker for outputting audio signals.
The I/O interface 1312 provides an interface between the processing component 1302 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 1314 includes one or more sensors for providing various aspects of state assessment for the electronic device 1300. For example, the sensor assembly 1314 may detect an open/closed state of the electronic device 1300, the relative positioning of components, such as a display and keypad of the electronic device 1300, the sensor assembly 1314 may also detect a change in the position of the electronic device 1300 or a component of the electronic device 1300, the presence or absence of user contact with the electronic device 1300, orientation or acceleration/deceleration of the electronic device 1300, and a change in the temperature of the electronic device 1300. The sensor assembly 1314 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1314 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1314 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1316 is configured to facilitate communications between the electronic device 1300 and other devices in a wired or wireless manner. The electronic device 1300 may access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1316 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 1316 also includes a Near Field Communications (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 1300 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components for performing the above-described battery compartment unlocking methods.
Fig. 20 is a block diagram illustrating a server 1400 in accordance with an example embodiment. Referring to fig. 20, server 1400 includes a processing component 1420, which further includes one or more processors, and memory resources, represented by memory 1422, for storing instructions or computer programs, e.g., applications, that are executable by processing component 1420. The application programs stored in memory 1422 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1420 is configured to execute instructions to perform the method of battery compartment unlocking described above.
The server 1400 may also include a power component 1424 configured to perform power management of the device 1400, a wired or wireless network interface 1426 configured to connect the device 1400 to a network, and an input/output (I/O) interface 1428. The server 1400 may operate based on an operating system stored in memory 1422, such as Window 1414 over, Mac O14 XTM, UnixTM, LinuxTM, FreeB14DTM, or the like.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 1304 comprising instructions, executable by the processor 1320 of the electronic device 1300 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a storage medium comprising instructions, such as the memory 1422 comprising instructions, executable by the processor of the server 1400 to perform the above-described method is also provided. The storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided by the embodiments of the disclosure may include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express a few implementation modes of the embodiments of the present disclosure, and the description thereof is specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for those skilled in the art, variations and modifications can be made without departing from the concept of the embodiments of the present disclosure, and these are all within the scope of the embodiments of the present disclosure. Therefore, the protection scope of the patent of the embodiment of the disclosure should be subject to the appended claims.