CN114590343A - Data processing method and device and terminal equipment - Google Patents
Data processing method and device and terminal equipment Download PDFInfo
- Publication number
- CN114590343A CN114590343A CN202210113783.9A CN202210113783A CN114590343A CN 114590343 A CN114590343 A CN 114590343A CN 202210113783 A CN202210113783 A CN 202210113783A CN 114590343 A CN114590343 A CN 114590343A
- Authority
- CN
- China
- Prior art keywords
- data
- preset
- queue
- acceleration
- updated
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B62—LAND VEHICLES FOR TRAVELLING OTHERWISE THAN ON RAILS
- B62H—CYCLE STANDS; SUPPORTS OR HOLDERS FOR PARKING OR STORING CYCLES; APPLIANCES PREVENTING OR INDICATING UNAUTHORIZED USE OR THEFT OF CYCLES; LOCKS INTEGRAL WITH CYCLES; DEVICES FOR LEARNING TO RIDE CYCLES
- B62H5/00—Appliances preventing or indicating unauthorised use or theft of cycles; Locks integral with cycles
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60R—VEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
- B60R25/00—Fittings or systems for preventing or indicating unauthorised use or theft of vehicles
- B60R25/20—Means to switch the anti-theft system on or off
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G07C9/00—Individual registration on entry or exit
- G07C9/00174—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
- G07C9/00309—Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60R—VEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
- B60R2325/00—Indexing scheme relating to vehicle anti-theft devices
- B60R2325/20—Communication devices for vehicle anti-theft devices
- B60R2325/205—Mobile phones
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60R—VEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
- B60R2325/00—Indexing scheme relating to vehicle anti-theft devices
- B60R2325/30—Vehicles applying the vehicle anti-theft devices
- B60R2325/306—Motorcycles
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Mechanical Engineering (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
The specification provides a data processing method, a data processing device and terminal equipment. Based on the method, when the user uses the riding device, the terminal device associated with the riding device can monitor whether the motion data of the terminal device meets the preset conditions or not in real time. When the user uses the riding device to lock, the user can simply shake the held terminal device to give an indication; at this moment, the terminal device monitors that the motion data of the terminal device meets the preset conditions, and then the user can be determined to initiate target shaking operation for indicating locking, and a locking instruction for the riding device is generated, so that the locking operation of the riding device is automatically completed. Therefore, the operation of the user side can be effectively simplified, the user can conveniently and efficiently complete the locking of the riding equipment, and the user can obtain better interactive experience.
Description
Technical Field
The present specification belongs to the field of internet technologies, and in particular, to a data processing method, an apparatus, and a terminal device.
Background
Based on the existing method, after the user finishes using the sharing bicycle, the user needs to click the corresponding sharing bicycle APP on the mobile phone to enter a specific operation interface; in the operation interface, the user further needs to perform a corresponding click operation according to the related indication to issue a lock closing instruction, so as to finally complete the lock closing operation on the shared bicycle. The operation process is relatively complicated and complex, and the interaction experience of the user is poor.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The specification provides a data processing method, a data processing device and a terminal device, which can effectively simplify the operation of a user side, enable a user to conveniently and efficiently complete locking of riding equipment and enable the user to obtain better interactive experience.
An embodiment of the present specification provides a data processing method, which is applied to a terminal device, wherein the terminal device is associated with a riding device, and the method includes: monitoring whether the motion data of the terminal equipment meets a preset condition or not; under the condition that the motion data of the terminal equipment are monitored to meet preset conditions, determining that a user initiates target shaking operation for indicating locking, and generating a locking instruction for riding equipment; and the riding equipment executes locking operation according to the locking instruction.
An embodiment of the present specification provides a data processing method, which is applied to a riding device, and includes: receiving a locking instruction; the locking instruction is generated by the terminal equipment under the condition that the terminal equipment monitors that the motion data of the terminal equipment meets the preset condition; responding to the locking instruction, acquiring the current running speed, and detecting whether the current running speed is less than or equal to a preset speed threshold value; and under the condition that the current running speed is determined to be less than or equal to the preset speed threshold, performing locking operation according to the locking command.
An embodiment of the present specification provides a data processing apparatus, which is applied to a terminal device, wherein the terminal device is associated with a riding device, and the data processing apparatus includes: the monitoring module is used for monitoring whether the motion data of the terminal equipment meets a preset condition or not; the processing module is used for determining that a user initiates a target shaking operation for indicating locking under the condition that the motion data of the terminal equipment is monitored to meet a preset condition, and generating a locking instruction for the riding equipment; and the riding equipment executes locking operation according to the locking instruction.
The embodiment of the specification provides a terminal device, which comprises a processor and a memory for storing processor-executable instructions, wherein the processor executes the instructions to realize the relevant steps of the data processing method.
The embodiment of the specification provides a computer readable storage medium, on which computer instructions are stored, and the instructions realize the relevant steps of the data processing method when executed by a processor.
Based on the data processing method and device and the terminal device provided by the embodiment of the specification, when a user uses the riding device, the terminal device associated with the riding device can monitor whether the motion data of the terminal device meets the preset conditions or not in real time. When the user needs to lock the riding device after using the riding device, the user can initiate an indication by simply shaking the held terminal device; at this moment, the terminal device can monitor that the motion data of the terminal device meet the preset conditions, and then it can be determined that the user initiates target shaking operation for indicating locking, and a locking instruction for the riding device is generated, so that the locking operation of the riding device is automatically completed based on the locking instruction. Therefore, the operation of the user side can be effectively simplified, the user can conveniently and efficiently complete the locking of the riding equipment, and the user can obtain better interactive experience.
Drawings
In order to more clearly illustrate the embodiments of the present specification, the drawings needed to be used in the embodiments will be briefly described below, and the drawings in the following description are only some of the embodiments described in the specification, and it is obvious to those skilled in the art that other drawings can be obtained based on the drawings without any inventive work.
FIG. 1 is a flow diagram of a data processing method provided by one embodiment of the present description;
FIG. 2 is a schematic structural component view of the riding device provided by one embodiment of the present description;
FIG. 3 is a diagram illustrating an embodiment of a data processing method according to an embodiment of the present disclosure;
FIG. 4 is a diagram illustrating an embodiment of a data processing method according to an embodiment of the present disclosure;
FIG. 5 is a diagram illustrating an embodiment of a data processing method according to an embodiment of the present disclosure;
FIG. 6 is a diagram illustrating an embodiment of a data processing method according to an embodiment of the present disclosure;
FIG. 7 is a diagram illustrating an embodiment of a data processing method according to an embodiment of the present disclosure;
FIG. 8 is a flow diagram of a data processing method provided by one embodiment of the present description;
fig. 9 is a schematic structural component diagram of a terminal device provided in an embodiment of the present specification;
fig. 10 is a schematic structural composition diagram of a data processing apparatus according to an embodiment of the present specification.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all of the embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step should fall within the scope of protection of the present specification.
Referring to fig. 1, an embodiment of the present disclosure provides a data processing method. The method is particularly applied to the side of the terminal equipment. Wherein the terminal device is associated with the riding device. In particular implementations, the method may include the following.
S101: and monitoring whether the motion data of the terminal equipment meets a preset condition.
S102: under the condition that the motion data of the terminal equipment are monitored to meet preset conditions, determining that a user initiates target shaking operation for indicating locking, and generating a locking instruction for riding equipment; and the riding equipment executes locking operation according to the locking instruction.
In an embodiment, the terminal device may specifically include a user terminal disposed at a user side and capable of implementing functions such as data acquisition and data transmission. Specifically, the terminal may be, for example, an electronic device such as a tablet computer, a smart phone, and a smart wearable device. Alternatively, the terminal device may be a software application capable of running in the electronic device. For example, it may be an XX sharing bicycle APP running on a smartphone, or the like. The present specification mainly takes a client APP installed and running in a smart phone as an example for specific description.
In an embodiment, the motion data of the terminal device may specifically include acceleration data of the terminal device. Correspondingly, the terminal device may be specifically provided with an accelerometer for detecting acceleration data of the terminal device.
As the motion data of the terminal device, velocity data, displacement data, or the like of the terminal device may be used instead of the acceleration data, as the case may be.
In one embodiment, the riding device may specifically include at least one of: shared bicycles, shared electric vehicles, shared bicycles, and the like. Of course, the above listed riding devices are only illustrative. In specific implementation, the riding device may further include other types of riding devices according to specific application scenarios and processing requirements. The present specification is not limited to these. The present specification mainly takes a shared electric vehicle as an example for specific description. Reference may be made to the related embodiments of the shared electric vehicle for other types of riding devices.
Specifically, referring to fig. 2, the riding device may be provided with a speed sensor for detecting a driving speed of a user. In addition, the riding device can be provided with a transceiver module for receiving and transmitting data signals, such as a T-BOX module. The transceiver module can support data interaction based on Bluetooth and/or data interaction based on network. Further, the riding device can be provided with a controller for controlling the unlocking operation and the locking operation.
In one embodiment, the terminal device is specifically associated with the riding device. In specific implementation, the terminal device may be bound to the riding device.
Specifically, for example, when a user needs to use a certain shared electric vehicle, the user may first scan a two-dimensional code arranged on a body of the shared electric vehicle through a "code scanning and riding" function in an XX shared electric vehicle APP installed on a mobile phone; the two-dimension codes correspond to the shared electric vehicles one by one. Then, the XX shared electric vehicle APP of the mobile phone can generate a riding request aiming at the shared electric vehicle according to the two-dimensional code obtained by scanning; sending the riding request to a cloud server of an XX shared electric vehicle service platform; the riding request can carry the scanned two-dimensional code. After receiving the riding request, the cloud server can determine a shared electric vehicle which a user wants to use according to the two-dimensional code; and binding the shared electric vehicle with the mobile phone initiating the riding request, so that the shared electric vehicle is associated with the mobile phone held by the user.
Further, the cloud server can respond to the riding request and generate an unlocking instruction for the shared electric vehicle; and sending the unlocking instruction to the corresponding shared electric vehicle through the network. Correspondingly, the shared electric vehicle can receive the unlocking instruction through the transceiver module; and performs an unlocking operation through the controller. Meanwhile, the cloud server can also send a use prompt of 'unlocking success and using' to the mobile phone of the user. Thus, the user can smoothly ride the shared electric vehicle associated with the mobile phone of the user.
In this embodiment, the cloud server may specifically include a background negative server disposed on one side of a network platform (e.g., XX sharing electric vehicle service platform, etc.), and capable of implementing functions such as data transmission and data processing. Specifically, the cloud server may be, for example, an electronic device having data operation, storage function and network interaction function. Or, the cloud server may also be a software program that runs in the electronic device and provides support for data processing, storage, and network interaction. In this embodiment, the number of servers included in the cloud server is not specifically limited. The cloud server may be specifically one server, or may be several servers, or a server cluster formed by a plurality of servers.
In one embodiment, the terminal device may be specifically configured to trigger monitoring of the operation data of the terminal device when it is determined that the user uses the riding device.
In an embodiment, when the method is implemented, the following may be further included: detecting whether a user uses a riding device; and under the condition that the riding device is detected to be used by the user, triggering whether the running data of the monitoring terminal device meets the preset conditions.
In one embodiment, the terminal device may determine whether the user is currently using the riding device by collecting and detecting whether the speed data of the terminal device is greater than the speed lower limit value. During specific implementation, if the speed data acquired by the terminal device is less than or equal to the speed lower limit value, it can be judged that the current user does not start to use the riding device, and further subsequent speed data can be continuously detected. If the speed data collected by the terminal equipment is greater than the speed lower limit value, the riding equipment can be judged to be used at present, and then whether the running data of the terminal equipment meets the preset conditions or not can be monitored.
In one embodiment, the terminal device may determine whether the user initiates a target shaking operation indicating to close the lock by monitoring whether the motion data of the terminal device satisfies a preset condition, so that a lock closing instruction for the riding device may be automatically generated under the condition that it is determined that the user initiates the target shaking operation, so as to implement the lock closing operation for the riding device.
It should be noted that, based on the data processing method provided in the embodiment of the present specification, a user does not need to first click a corresponding shared bicycle app on a mobile phone to enter a specific operation interface as in the existing method; and in the operation interface, performing corresponding click operation according to the related indication to issue a locking instruction so as to complete the locking operation of the shared bicycle. Referring to fig. 3, a user can initiate target shaking operation by shaking the terminal device, and the locking operation of the riding device can be completed more efficiently and conveniently.
In this embodiment, in order to avoid erroneous judgment and reduce errors, the target shake operation is specifically defined as: and shaking operation in which the terminal device is continuously shaken more than a preset lower limit of times within a smaller period of time. The preset lower limit of the number of times may be specifically 3, or another value greater than 3. The preset lower limit of times is set, so that the target shaking operation can be effectively distinguished from most of collision vibration normally encountered by the riding equipment in the riding process or shaking generated by misoperation, and misjudgment is avoided.
In addition, when the specific monitoring is judged, the terminal device may monitor whether the motion data of the terminal device satisfies a preset condition based on a preset target shaking operation detection algorithm.
Therefore, misjudgment caused by normal vibration generated in the process of using the riding device by the user can be effectively avoided.
In an embodiment, the monitoring whether the motion data of the terminal device meets the preset condition may include the following steps:
s1: collecting motion data of the terminal equipment at equal intervals;
s2: updating a data queue by using the motion data according to a preset rule; and determining whether the terminal equipment meets the preset condition or not according to the updated data queue.
In one embodiment, the motion data may specifically include at least one of: acceleration data, velocity data, displacement data, and the like. It should be noted that the above listed motion data is only an exemplary description. In specific implementation, other suitable motion data can be selected according to specific situations.
In an embodiment, the collecting the motion data of the terminal device at equal intervals specifically includes: and acquiring the motion data of the terminal equipment at preset time intervals. Of course, in specific implementation, according to specific situations and processing requirements, in some scenarios, for example, the motion data of the terminal device may be acquired through a preset distance interval.
Through the embodiment, whether the preset condition is met or not can be determined according to the motion data of the monitoring terminal equipment based on the preset target shaking operation detection algorithm, and whether the target shaking operation indicating locking is initiated by a user or not can be accurately judged.
In one embodiment, considering that the user initiates the target shaking operation, the shaking direction of shaking the terminal device is not fixed, and in order to more accurately monitor and determine whether the user actually initiates the target shaking operation, deceleration data in multiple directions can be monitored simultaneously.
In one embodiment, the acceleration data is used as the motion data for example. For the case of using other motion data, reference may be made to an embodiment that uses acceleration data as the motion data, and details are not described in this specification.
The acceleration data may specifically include: first acceleration data, second acceleration data, and third acceleration data; the first acceleration data is acceleration data in a first direction, the second acceleration data is acceleration data in a second direction, and the third acceleration data is acceleration data in a third direction;
correspondingly, updating a data queue by using the acceleration data according to a preset rule; the data queue may specifically include: a first data queue corresponding to the first acceleration data, a second data queue corresponding to the second acceleration data, and a third data queue corresponding to the third acceleration data;
the updated data queue may specifically include: the data queue comprises a first updated data queue, a second updated data queue and a third updated data queue.
In one embodiment, when implemented, the first acceleration data may specifically include an acceleration in a left direction or a right direction, and may be recorded as acceleration data along the X-axis direction. Specifically, the first acceleration data in the left direction may be represented as a positive number, and the first acceleration data in the right direction may be represented as a negative number.
The second acceleration data may specifically include acceleration in a forward direction or a backward direction, and may be recorded as acceleration data in the Y-axis direction. Specifically, the second acceleration data in the forward direction may be written as a positive number, and the second acceleration data in the backward direction may be written as a negative number.
The third acceleration data may specifically include an acceleration in an upward direction or a downward direction, and may be recorded as acceleration data in the Z-axis direction. Specifically, the third acceleration data in the downward direction may be written as a positive number, and the third acceleration data in the upward direction may be written as a negative number.
In specific implementation, one or more of the first acceleration data, the second acceleration data and the third acceleration data can be screened out and combined to serve as the acceleration data to be monitored according to specific conditions and processing requirements.
In one embodiment, the first data queue may be specifically understood as a data queue corresponding to first acceleration data, the second data queue may be specifically understood as a data queue corresponding to second acceleration data, and the third data queue may be specifically understood as a data queue corresponding to third acceleration data.
Specifically, as shown in fig. 4, the first data queue may be denoted as X, the second data queue may be denoted as Y, and the third data queue may be denoted as Z.
Taking the first data queue X as an example, the first data queue X includes a plurality of first acceleration data arranged according to the sequence of the acquisition time. Wherein each first acceleration data corresponds to an acquisition time.
For example, the first data queue X has arranged from front to back: the first acceleration data x1 collected at the time t1, the first acceleration data x2 collected at the time t2, and the first acceleration data xn collected at the time … … tn. A preset time interval is set between the acquisition times of two adjacent first acceleration data in the first data queue X, and may be recorded as Δ t.
For the second data queue Y and the third data queue Z, reference may be made to the related embodiments of the first data queue X, which are not described herein again.
In one embodiment, in implementation, the acceleration data in the corresponding direction may be collected at preset time intervals by an accelerometer built in the terminal device.
Wherein, the preset time interval may be set to 5 seconds. Of course, it should be noted that the preset time interval listed above is only an exemplary illustration. During specific implementation, other numerical values can be set as a preset time interval according to specific conditions and precision requirements, and the preset time interval can also be set by a user through terminal equipment in a self-defined mode.
In an embodiment, the updating the data queue by using the acceleration data according to the preset rule to obtain an updated data queue may include the following steps: updating the current first data queue by using the current first acceleration data according to a preset rule in the following mode to obtain an updated first data queue; the current first acceleration data is first acceleration data acquired at a current preset time interval:
s1: detecting whether the current first acceleration data is larger than a preset acceleration threshold value;
s2: and writing the current first acceleration data into the tail of the current first data queue to obtain an updated first data queue under the condition that the current first acceleration data is determined to be larger than a preset acceleration threshold.
The preset acceleration threshold may be recorded as g. Specifically, the specific value of the preset acceleration threshold can be set to 9.8m/s ^ 2.
In specific implementation, referring to fig. 5, when the terminal device acquires the current first acceleration data (xn +1) at the time (tn +1) through the accelerometer, the current first acceleration data may be compared with the preset acceleration threshold, and when it is determined that the current first acceleration data is greater than the preset acceleration threshold, the current first acceleration data may be directly written into the tail of the first data queue to correspond to the time tn +1, so that the updated first data queue may be obtained.
In an embodiment, after detecting whether the current first acceleration data is greater than the preset acceleration threshold, the method may further include, when implemented, the following:
s1: under the condition that the current first acceleration data is determined to be smaller than or equal to a preset acceleration threshold value, writing the current first acceleration data into the tail of the current first data queue to obtain a current first intermediate queue;
s2: detecting whether continuous first preset first acceleration data of a plurality of first preset acceleration data are smaller than or equal to a preset acceleration threshold value from the current first acceleration data in the current first intermediate queue along the direction to the head of the queue;
s3: and emptying the current first intermediate queue to obtain an updated first data queue under the condition that continuous first preset first acceleration data of a plurality of first preset acceleration data which are less than or equal to a preset acceleration threshold value exist in the current first intermediate queue from the current first acceleration data along the direction towards the head of the queue.
In specific implementation, referring to fig. 6, when it is determined that the current first acceleration data (xn +1) is less than or equal to the preset acceleration threshold, the current first acceleration data may be directly written into the tail of the current first data queue to obtain the current first intermediate queue. Further, whether continuous first preset first acceleration data are smaller than or equal to a preset acceleration threshold or not is detected from the current first acceleration data in the current first intermediate queue along the direction towards the head of the queue.
If it is determined that there are a first preset number of consecutive acceleration data less than or equal to a preset acceleration threshold, it may be determined that the acceleration data greater than the preset acceleration threshold stored in the current first intermediate queue is error data rather than data corresponding to the target shake operation with a high probability. The error data may be, for example, acceleration data generated by the riding device due to collision vibration when the riding device passes through a ground bulge or a road shoulder; for example, the acceleration data may be acceleration data generated by a transient vibration of the terminal device when the user performs an error operation.
At this time, referring to fig. 6, the current first intermediate queue may be emptied, and the emptied queue is obtained as the updated first data queue, so as to record the first data queue again.
Through the embodiment, error data can be identified in preparation based on the preset target shaking operation detection algorithm, and errors occurring when the target shaking operation is judged can be effectively reduced.
In an embodiment, after detecting whether there are a first preset number of consecutive acceleration data in the current first intermediate queue from the current first acceleration data in the direction toward the head of the queue, where the number of consecutive first preset number of acceleration data is less than or equal to a preset acceleration threshold, the method may further include the following steps: and under the condition that it is determined that continuous first preset first acceleration data are not present in the current first intermediate queue from the current first acceleration data along the direction to the head of the queue, the current first intermediate queue is determined as an updated first data queue.
It should be noted that, for the update of the second data queue and the third data queue, reference may be made to the update process of the first data queue, and details are not described in this specification.
In an embodiment, the determining whether the motion data of the terminal device meets the preset condition according to the updated data queue may include the following steps:
s1: detecting whether at least one updated data queue in the updated first data queue, the updated second data queue and the updated third data queue meets preset requirements or not;
s2: and under the condition that at least one updated data queue in the updated first data queue, the updated second data queue and the updated third data queue meets the preset requirement, determining that the motion data of the terminal equipment meets the preset condition.
In this embodiment, the updated data queue includes an updated first data queue, an updated second data queue, and an updated third data queue at the same time, and whether the three updated data queues, that is, the updated first data queue, the updated second data queue, and the updated third data queue, meet preset requirements may be respectively detected based on a preset target shaking operation detection algorithm; and if the situation that at least one updated data queue in the three updated data queues meets the preset requirement is detected, the motion data of the terminal equipment can be determined to meet the preset condition, and then the situation that the user really initiates target shaking operation for indicating locking is judged.
In an embodiment, the detecting whether at least one updated data queue exists in the updated first data queue, the updated second data queue, and the updated third data queue, and the detecting may include: detecting whether the updated first data queue meets the preset requirement or not according to the following modes:
s1: detecting whether a second preset number of first acceleration data with acceleration larger than a preset acceleration threshold exist in the updated first data queue;
s2: determining that the updated first data queue meets the preset requirement under the condition that the updated first data queue has first acceleration data with second preset number of accelerations larger than a preset acceleration threshold; and emptying the updated first data queue.
In this embodiment, during the specific test, it may be counted and detected whether the number of the first acceleration data greater than the preset acceleration threshold in the updated first data queue is greater than a second preset number, and if the number of the first acceleration data greater than the preset acceleration threshold in the updated first data queue is greater than the second preset number, it may be determined that the updated first data queue meets the preset requirement. Otherwise, determining that the updated first data queue does not meet the preset requirement.
The specific numerical value of the second preset number may be determined according to a preset lower limit of the shaking frequency in the target shaking operation. Specifically, for example, the specific numerical value of the second preset number may be set to 3 or a number greater than 3.
The second preset number is set in such a way that one to two times of vibration (belonging to collision vibration normally occurring in the riding process) is easily generated if the riding equipment passes through a road surface bulge or a road shoulder and the like, so that one to two acceleration data with the numerical value larger than the preset deceleration threshold value are easily generated in the acquired data queue. Therefore, the second preset number is set to be greater than or equal to 3, the object shaking operation initiated by the user can be effectively avoided being judged by mistake by the vibration generated when the riding device passes through a road surface bulge or a road shoulder, so that the error can be reduced, and the accuracy is improved.
For the detection of the updated second data queue and the updated third data queue, reference may be made to the detection process of the updated first data queue, which is not described in detail herein.
Through the embodiment, whether the user initiates the target shaking operation indicating locking can be accurately identified by detecting whether the data queue meets the preset requirement.
In an embodiment, the first preset number and the preset acceleration threshold may be specifically determined according to user data of a user holding the terminal device.
In this embodiment, it is considered that different users tend to have differences when specifically initiating a target shake operation. For example, older users or female users often have a small action range and slow response when shaking the terminal device. While a user with a small age or a male user often appears to have a large action range, a fast response, and the like when shaking the terminal device.
In order to more accurately judge whether the user holding the terminal equipment initiates the target shaking operation, different types of users can be distinguished, and the first preset number and the preset acceleration threshold value which are matched are set in a targeted mode aiming at the different types of users, so that whether the user initiates the target shaking operation for indicating locking can be more accurately judged in the following.
In one embodiment, in specific implementation, the terminal device may first query the user database according to the user identifier of the login user to obtain the user data of the user. The user data may specifically include age, gender, occupation, and the like. And distinguishing different types of users according to the user data of the users, and setting a first preset number matched with the users and an acceleration threshold value.
Specifically, for example, according to the user data of the user, when it is determined that the user is a older user or a female user, the value of the preset acceleration threshold may be set to be relatively small, and the value of the first preset number may be set to be relatively large; when it is determined that the user is a younger user or a male user, the value of the preset acceleration threshold may be set to be relatively large, and the value of the first preset number may be set to be relatively small.
It should be noted that the above mentioned user data is collected and used by compliance means on the premise that the user knows and authorizes to agree. In the collecting and using process, measures such as data encryption and the like are adopted to carry out secret processing on the user data, leakage of the user data in the collecting and using process is avoided, and the safety of the user data is protected.
In an embodiment, the first preset number and the preset acceleration threshold may also be values that are determined by the cloud server through learning of operation records of a large number of users when initiating target shaking operations and match operation habits of most users. In addition, the first preset number and the preset acceleration threshold value can also be set by a user through a terminal device in a self-defined manner, so that the personalized customization requirement of the user can be met.
In one embodiment, the terminal device determines that a user initiates a target shaking operation indicating locking under the condition that the motion data of the terminal device is monitored to meet a preset condition, and generates a locking instruction for the riding device.
In an embodiment, after the lock-off instruction for the riding device is generated, when the method is implemented, the following may be further included: sending the locking instruction to a cloud server; the cloud server forwards the locking instruction to riding equipment; or the locking instruction is sent to the riding equipment through Bluetooth connection; the riding equipment receives and responds to the locking instruction, acquires the current running speed and detects whether the current running speed is less than or equal to a preset speed threshold value; and under the condition that the current running speed is determined to be less than or equal to the preset speed threshold, performing locking operation according to the locking command.
In specific implementation, for example, when a user uses the terminal device to unlock and uses the riding device, the terminal device establishes and maintains a bluetooth connection with the riding device; the terminal equipment can directly send the locking instruction to the riding equipment through the Bluetooth connection.
For another example, referring to fig. 7, the terminal device may further send the lock closing instruction to the cloud server of the XX shared electric vehicle service platform through the mobile phone network; the cloud server forwards the locking instruction to the corresponding riding device through the network.
The locking operation of the riding device can be not immediately executed after the riding device receives the locking instruction, but the current running speed of the riding device is firstly collected through a speed sensor built in the riding device, and whether the current running speed is smaller than or equal to a preset speed threshold value or not is detected. The preset speed threshold may be a smaller speed value close to 0, for example, 0.1 m/s.
Under the condition that the current running speed is determined to be less than or equal to the preset speed threshold, it can be determined that the current locking operation does not cause risks to the safety of the user, and then the specific locking operation is executed according to the locking instruction.
Conversely, when it is determined that the current driving speed is greater than the preset speed threshold, it may be determined that the current locking operation is likely to cause a risk to the safety of the user, and at this time, the locking operation may not be executed for the moment.
Therefore, the safety of the user can be well protected, and the danger of the user caused by emergency locking under the condition that the user uses the riding equipment at a high speed is effectively avoided.
In an embodiment, after the lock-off instruction for the riding device is generated, when the method is implemented, the method may further include: the terminal equipment acquires the current speed of the terminal equipment through a built-in speed sensor; and under the condition that the current speed of the terminal equipment is determined to be less than or equal to the preset speed threshold value, providing a locking instruction for the riding equipment. In contrast, in the case where it is determined that the current speed of the terminal device is equal to the preset speed value, the locking instruction may not be provided to the riding device for the moment. And an error prompt can be sent to the user. So that the danger of the user's safety from emergency locking in case the user uses the riding device at a higher speed can also be avoided.
As can be seen from the above, based on the data processing method provided in the embodiments of the present specification, when a user uses a riding device, a terminal device associated with the riding device may monitor whether motion data of the terminal device meets a preset condition in real time. When the user uses the riding device and needs to lock, the user can simply shake the held terminal device; at this moment, the terminal device monitors that the motion data of the terminal device meets the preset conditions, and then the user can be determined to initiate target shaking operation for indicating locking, and a locking instruction for the riding device is generated, so that the locking operation of the riding device is automatically completed. Therefore, the operation of the user side can be effectively simplified, the user can conveniently and efficiently complete the locking of the riding equipment, and the user can obtain better interactive experience.
Referring to fig. 8, another data processing method is provided in the embodiments of the present disclosure. The method is applied to one side of the riding device, and the riding device is associated with the terminal device held by the user. The method may be embodied as follows.
S801: receiving a locking instruction; the locking instruction is generated by the terminal equipment under the condition that the terminal equipment monitors that the motion data of the terminal equipment meets the preset condition;
s802: responding to the locking instruction, acquiring the current running speed, and detecting whether the current running speed is less than or equal to a preset speed threshold value;
s803: and under the condition that the current running speed is determined to be less than or equal to the preset speed threshold, performing locking operation according to the locking command.
Through the data processing method, the riding equipment can cooperate with the terminal equipment, when the situation that the user initiates the target shaking operation for indicating locking is determined, the locking operation of the riding equipment is automatically and safely completed according to the locking instruction initiated by the terminal equipment, and the safety of the user when using the riding equipment is protected.
An embodiment of the present specification further provides a terminal device, including a processor and a memory for storing processor-executable instructions, where the processor, when implemented specifically, may perform the following steps according to the instructions: monitoring whether the motion data of the terminal equipment meets a preset condition or not; under the condition that the motion data of the terminal equipment are monitored to meet preset conditions, determining that a user initiates target shaking operation for indicating locking, and generating a locking instruction for riding equipment; and the riding equipment executes locking operation according to the locking instruction.
In order to complete the above instruction more accurately, referring to fig. 9, an embodiment of the present specification further provides another specific terminal device, where the terminal device includes a network communication port 901, a processor 902, and a memory 903, and the above structures are connected by an internal cable, so that each structure may perform specific data interaction.
The network communication port 901 may be specifically configured to acquire acceleration data of the terminal device as motion data.
The processor 902 may be specifically configured to monitor whether the motion data of the terminal device meets a preset condition; under the condition that the motion data of the terminal equipment are monitored to meet preset conditions, determining that a user initiates target shaking operation for indicating locking, and generating a locking instruction for riding equipment; and the riding equipment executes locking operation according to the locking instruction.
The memory 903 may be specifically configured to store a corresponding instruction program.
In this embodiment, the network communication port 901 may be a virtual port that is bound to different communication protocols, so that different data can be sent or received. For example, the network communication port may be a port responsible for web data communication, a port responsible for FTP data communication, or a port responsible for mail data communication. In addition, the network communication port can also be a communication interface or a communication chip of an entity. For example, it may be a wireless mobile network communication chip, such as GSM, CDMA, etc.; it can also be a Wifi chip; it may also be a bluetooth chip.
In this embodiment, the processor 902 may be implemented in any suitable manner. For example, the processor may take the form of, for example, a microprocessor or processor and a computer-readable medium that stores computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, an embedded microcontroller, and so forth. The description is not intended to be limiting.
In this embodiment, the memory 903 may include multiple layers, and in a digital system, the memory may be any memory as long as binary data can be stored; in an integrated circuit, a circuit without a physical form and with a storage function is also called a memory, such as a RAM, a FIFO and the like; in the system, the storage device in physical form is also called a memory, such as a memory bank, a TF card and the like.
The present specification further provides a computer storage medium based on the above data processing method, where the computer storage medium stores computer program instructions, and when the computer program instructions are executed, the computer storage medium implements: monitoring whether the motion data of the terminal equipment meets a preset condition or not; under the condition that the motion data of the terminal equipment are monitored to meet preset conditions, determining that a user initiates target shaking operation for indicating locking, and generating a locking instruction for riding equipment; and the riding equipment executes locking operation according to the locking instruction.
In this embodiment, the storage medium includes, but is not limited to, a Random Access Memory (RAM), a Read-Only Memory (ROM), a Cache (Cache), a Hard Disk Drive (HDD), or a Memory Card (Memory Card). The memory may be used to store computer program instructions. The network communication unit may be an interface for performing network connection communication, which is set in accordance with a standard prescribed by a communication protocol.
The present specification further provides a computer storage medium based on the above data processing method, where the computer storage medium stores computer program instructions, and when the computer program instructions are executed, the computer storage medium implements: receiving a locking instruction; the locking instruction is generated by the terminal equipment under the condition that the terminal equipment monitors that the motion data of the terminal equipment meets the preset condition; responding to the locking instruction, acquiring the current running speed, and detecting whether the current running speed is less than or equal to a preset speed threshold value; and under the condition that the current running speed is determined to be less than or equal to the preset speed threshold, performing locking operation according to the locking command.
In this embodiment, the functions and effects specifically realized by the program instructions stored in the computer storage medium can be explained by comparing with other embodiments, and are not described herein again.
Referring to fig. 10, in a software level, an embodiment of the present specification further provides a data processing apparatus, which may specifically include the following structural modules:
the monitoring module 1001 may be specifically configured to monitor whether the motion data of the terminal device meets a preset condition;
the processing module 1002 may be specifically configured to determine that a user initiates a target shaking operation indicating locking and generate a locking instruction for the riding device, when it is monitored that the motion data of the terminal device meets a preset condition; and the riding equipment executes locking operation according to the locking instruction.
In an embodiment, when the monitoring module 1001 is implemented specifically, it may monitor whether the motion data of the terminal device meets a preset condition in the following manner: collecting motion data of the terminal equipment at equal intervals; updating a data queue by using the motion data according to a preset rule; and determining whether the terminal equipment meets the preset condition or not according to the updated data queue.
In one embodiment, the motion data may specifically include at least one of: acceleration data, velocity data, displacement data, and the like.
In an embodiment, when the monitoring module 1001 is implemented, the motion data of the terminal device may be collected at preset time intervals.
In one embodiment, the acceleration data may specifically include: first acceleration data, second acceleration data, and third acceleration data; the first acceleration data is acceleration data in a first direction, the second acceleration data is acceleration data in a second direction, and the third acceleration data is acceleration data in a third direction; correspondingly, when the monitoring module 1001 is implemented specifically, the data queue may be updated by using the acceleration data according to a preset rule; the data queue may specifically include: a first data queue corresponding to the first acceleration data, a second data queue corresponding to the second acceleration data, and a third data queue corresponding to the third acceleration data; the updated data queue may specifically include: the data queue comprises a first updated data queue, a second updated data queue and a third updated data queue.
In an embodiment, when the processing module 1002 is implemented, the data queue may be updated by using the acceleration data in the following manner, so as to obtain an updated data queue: updating a current first data queue by using current first acceleration data according to a preset rule in the following mode to obtain an updated first data queue; the current first acceleration data is first acceleration data acquired at a current preset time interval: detecting whether the current first acceleration data is larger than a preset acceleration threshold value; and writing the current first acceleration data into the tail of the current first data queue to obtain an updated first data queue under the condition that the current first acceleration data is determined to be larger than a preset acceleration threshold.
In one embodiment, after detecting whether the current first acceleration data is greater than the preset acceleration threshold, the processing module 1002 may write the current first acceleration data into the tail of the current first data queue to obtain a current first intermediate queue if it is determined that the current first acceleration data is less than or equal to the preset acceleration threshold; detecting whether continuous first preset first acceleration data of a plurality of first preset acceleration data are smaller than or equal to a preset acceleration threshold value from the current first acceleration data in the current first intermediate queue along the direction to the head of the queue; and emptying the current first intermediate queue to obtain an updated first data queue under the condition that continuous first preset first acceleration data of a plurality of first preset acceleration data which are less than or equal to a preset acceleration threshold value exist in the current first intermediate queue from the current first acceleration data along the direction towards the head of the queue.
In an embodiment, in implementation, when the processing module 1002 is implemented, after detecting whether there are consecutive first preset number of pieces of acceleration data smaller than or equal to a preset acceleration threshold value in the current first intermediate queue from the current first acceleration data in the direction toward the head of the queue, the current first intermediate queue may be determined as the updated first data queue in a case where it is determined that there are no consecutive first preset number of pieces of first acceleration data smaller than or equal to the preset acceleration threshold value in the current first intermediate queue from the current first acceleration data in the direction toward the head of the queue.
In an embodiment, when the processing module 1002 is implemented, it may determine whether the motion data of the terminal device meets a preset condition according to the updated data queue in the following manner: detecting whether at least one updated data queue in the updated first data queue, the updated second data queue and the updated third data queue meets preset requirements or not; and under the condition that at least one updated data queue in the updated first data queue, the updated second data queue and the updated third data queue meets the preset requirement, determining that the motion data of the terminal equipment meets the preset condition.
In an embodiment, when the processing module 1002 is implemented specifically, it may be detected whether at least one updated data queue in the updated first data queue, the updated second data queue, and the updated third data queue meets a preset requirement in the following manner: detecting whether the updated first data queue meets the preset requirement or not according to the following modes: detecting whether a second preset number of first acceleration data with acceleration larger than a preset acceleration threshold exist in the updated first data queue; determining that the updated first data queue meets the preset requirement under the condition that a second preset number of first acceleration data with acceleration larger than a preset acceleration threshold exist in the updated first data queue; and emptying the updated first data queue.
In an embodiment, the first preset number and the preset acceleration threshold are determined according to user data of a user holding the terminal device.
In an embodiment, the apparatus may further include a sending module. In specific implementation, after a locking instruction for riding equipment is generated, the locking instruction is sent to a cloud server through a sending module; the cloud server forwards the locking instruction to riding equipment; or the locking instruction is sent to the riding equipment through Bluetooth connection; the riding equipment receives and responds to the locking instruction, acquires the current running speed and detects whether the current running speed is less than or equal to a preset speed threshold value; and under the condition that the current running speed is determined to be less than or equal to the preset speed threshold, performing locking operation according to the locking command.
In one embodiment, the apparatus may further include a detection module, which may be specifically configured to detect whether the user uses the riding device; and under the condition that the riding device is detected to be used by the user, triggering whether the running data of the monitoring terminal device meets the preset conditions.
An embodiment of the present specification further provides a data processing apparatus, which may specifically include: the receiving module is used for receiving a locking instruction; the locking instruction is generated by the terminal equipment under the condition that the terminal equipment monitors that the motion data of the terminal equipment meets the preset condition; the detection module is used for responding to the locking instruction, acquiring the current running speed and detecting whether the current running speed is less than or equal to a preset speed threshold value; and the execution module is used for executing the locking operation according to the locking instruction under the condition that the current running speed is determined to be less than or equal to the preset speed threshold value.
It should be noted that, the units, devices, modules, etc. illustrated in the above embodiments may be implemented by a computer chip or an entity, or implemented by a product with certain functions. For convenience of description, the above devices are described as being divided into various modules by functions, and are described separately. It is to be understood that, in implementing the present specification, functions of each module may be implemented in one or more pieces of software and/or hardware, or a module that implements the same function may be implemented by a combination of a plurality of sub-modules or sub-units, or the like. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of logical functional division, and other divisions may be realized in practice, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Therefore, based on the data processing device provided by the embodiment of the specification, the operation of the user side can be effectively simplified, the user can conveniently and efficiently complete locking of the riding equipment, and the user can obtain better interactive experience.
Although the present specification provides method steps as described in the examples or flowcharts, additional or fewer steps may be included based on conventional or non-inventive means. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. When an apparatus or client product in practice executes, it may execute sequentially or in parallel (e.g., in a parallel processor or multithreaded processing environment, or even in a distributed data processing environment) according to the embodiments or methods shown in the figures. The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the presence of additional identical or equivalent elements in a process, method, article, or apparatus that comprises the recited elements is not excluded. The terms first, second, etc. are used to denote names, but not any particular order.
Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may therefore be considered as a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
This description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, classes, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
From the above description of the embodiments, it is clear to those skilled in the art that the present specification can be implemented by software plus necessary general hardware platform. With this understanding, the technical solutions in the present specification may be essentially embodied in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a mobile terminal, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments in the present specification.
The embodiments in the present specification are described in a progressive manner, and the same or similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. The description is operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
While the specification has been described with examples, those skilled in the art will appreciate that there are numerous variations and permutations of the specification that do not depart from the spirit of the specification, and it is intended that the appended claims include such variations and modifications that do not depart from the spirit of the specification.
Claims (15)
1. A data processing method is applied to a terminal device, wherein the terminal device is associated with a riding device, and the method comprises the following steps:
monitoring whether the motion data of the terminal equipment meets a preset condition or not;
under the condition that the motion data of the terminal equipment are monitored to meet preset conditions, determining that a user initiates target shaking operation for indicating locking, and generating a locking instruction for riding equipment; and the riding equipment executes locking operation according to the locking instruction.
2. The method of claim 1, wherein monitoring whether the motion data of the terminal device meets a preset condition comprises:
collecting motion data of the terminal equipment at equal intervals;
updating a data queue by using the motion data according to a preset rule; and determining whether the terminal equipment meets the preset condition or not according to the updated data queue.
3. The method of claim 2, wherein the motion data comprises at least one of: acceleration data, velocity data, displacement data.
4. The method of claim 3,
the motion data of the equal interval acquisition terminal equipment comprises the following steps: acquiring motion data of the terminal equipment at preset time intervals;
the acceleration data includes: first acceleration data, second acceleration data, and third acceleration data; the first acceleration data is acceleration data in a first direction, the second acceleration data is acceleration data in a second direction, and the third acceleration data is acceleration data in a third direction;
correspondingly, updating a data queue by using the acceleration data according to a preset rule; the data queue includes: a first data queue corresponding to the first acceleration data, a second data queue corresponding to the second acceleration data, and a third data queue corresponding to the third acceleration data;
the updated data queue includes: the data queue comprises a first updated data queue, a second updated data queue and a third updated data queue.
5. The method of claim 4, wherein updating the data queue with the acceleration data according to a predetermined rule to obtain an updated data queue comprises:
updating the current first data queue by using the current first acceleration data according to a preset rule in the following mode to obtain an updated first data queue; the current first acceleration data is first acceleration data acquired at a current preset time interval:
detecting whether the current first acceleration data is larger than a preset acceleration threshold value;
and writing the current first acceleration data into the tail of the current first data queue to obtain an updated first data queue under the condition that the current first acceleration data is determined to be larger than a preset acceleration threshold.
6. The method of claim 5, wherein after detecting whether the current first acceleration data is greater than a preset acceleration threshold, the method further comprises:
under the condition that the current first acceleration data is determined to be smaller than or equal to a preset acceleration threshold value, writing the current first acceleration data into the tail of the current first data queue to obtain a current first intermediate queue;
detecting whether continuous first preset first acceleration data of a plurality of first preset acceleration data are smaller than or equal to a preset acceleration threshold value from the current first acceleration data in the current first intermediate queue along the direction to the head of the queue;
and emptying the current first intermediate queue to obtain an updated first data queue under the condition that continuous first preset first acceleration data of a plurality of first preset acceleration data which are less than or equal to a preset acceleration threshold value exist in the current first intermediate queue from the current first acceleration data along the direction towards the head of the queue.
7. The method according to claim 6, wherein after detecting whether there is a first preset number of consecutive acceleration data in the current first intermediate queue from the current first acceleration data in a head-of-queue direction less than or equal to a preset acceleration threshold, the method further comprises:
and under the condition that it is determined that continuous first preset first acceleration data are not present in the current first intermediate queue from the current first acceleration data along the direction to the head of the queue, the current first intermediate queue is determined as an updated first data queue.
8. The method of claim 6, wherein determining whether the motion data of the terminal device meets a preset condition according to the updated data queue comprises:
detecting whether at least one updated data queue in the updated first data queue, the updated second data queue and the updated third data queue meets preset requirements or not;
and under the condition that at least one updated data queue in the updated first data queue, the updated second data queue and the updated third data queue meets the preset requirement, determining that the motion data of the terminal equipment meets the preset condition.
9. The method of claim 8, wherein detecting whether at least one updated data queue of the updated first data queue, the updated second data queue, and the updated third data queue meets a predetermined requirement comprises:
detecting whether the updated first data queue meets the preset requirement or not according to the following modes:
detecting whether a second preset number of first acceleration data with acceleration larger than a preset acceleration threshold exist in the updated first data queue;
determining that the updated first data queue meets the preset requirement under the condition that the updated first data queue has first acceleration data with second preset number of accelerations larger than a preset acceleration threshold; and emptying the updated first data queue.
10. The method according to claim 7, wherein the first predetermined number and the predetermined acceleration threshold are determined according to user data of a user holding the terminal device.
11. The method of claim 1, wherein after generating the lock-off instruction for the cycling device, the method further comprises:
sending the locking instruction to a cloud server; the cloud server forwards the locking instruction to riding equipment;
or the like, or, alternatively,
the locking instruction is sent to riding equipment through Bluetooth connection;
the riding equipment receives and responds to the locking instruction, acquires the current running speed and detects whether the current running speed is less than or equal to a preset speed threshold value; and under the condition that the current running speed is determined to be less than or equal to the preset speed threshold value, the riding device executes locking operation according to the locking instruction.
12. A data processing method is applied to riding equipment and comprises the following steps:
receiving a locking instruction; the locking instruction is generated by the terminal equipment under the condition that the terminal equipment monitors that the motion data of the terminal equipment meets the preset condition;
responding to the locking instruction, acquiring the current running speed, and detecting whether the current running speed is less than or equal to a preset speed threshold value;
and under the condition that the current running speed is determined to be less than or equal to the preset speed threshold, performing locking operation according to the locking command.
13. The data processing device is applied to a terminal device, wherein the terminal device is associated with a riding device, and comprises:
the monitoring module is used for monitoring whether the motion data of the terminal equipment meets a preset condition or not;
the processing module is used for determining that a user initiates a target shaking operation for indicating locking under the condition that the motion data of the terminal equipment is monitored to meet a preset condition, and generating a locking instruction for the riding equipment; and the riding equipment executes locking operation according to the locking instruction.
14. A terminal device comprising a processor and a memory for storing processor-executable instructions which, when executed by the processor, implement the steps of the method of any one of claims 1 to 11.
15. A computer-readable storage medium having stored thereon computer instructions which, when executed by a processor, carry out the steps of the method of any one of claims 1 to 11, or 12.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210113783.9A CN114590343B (en) | 2022-01-30 | 2022-01-30 | Data processing method, device and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210113783.9A CN114590343B (en) | 2022-01-30 | 2022-01-30 | Data processing method, device and terminal equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114590343A true CN114590343A (en) | 2022-06-07 |
CN114590343B CN114590343B (en) | 2023-09-01 |
Family
ID=81806669
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210113783.9A Active CN114590343B (en) | 2022-01-30 | 2022-01-30 | Data processing method, device and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114590343B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106412311A (en) * | 2016-10-19 | 2017-02-15 | 广东欧珀移动通信有限公司 | Data transmission method and terminal device |
CN106447855A (en) * | 2016-09-19 | 2017-02-22 | 深圳博科智能科技有限公司 | Shake-based unlocking method and terminal equipment |
CN106600781A (en) * | 2016-12-14 | 2017-04-26 | 北京拜克洛克科技有限公司 | Method and device for controlling locking of intelligent bicycle lock as well as intelligent bicycle lock and bicycle |
CN106875524A (en) * | 2017-01-24 | 2017-06-20 | 青岛工学院 | A kind of smart bluetooth lock for mountain bike |
US20190347881A1 (en) * | 2018-05-11 | 2019-11-14 | Abus August Bremicker Soehne Kg | Handheld Transmitter for a Portable Lock |
CN113554786A (en) * | 2021-08-02 | 2021-10-26 | 南马实业(深圳)有限公司 | Vehicle control method and system of Bluetooth vehicle key |
-
2022
- 2022-01-30 CN CN202210113783.9A patent/CN114590343B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106447855A (en) * | 2016-09-19 | 2017-02-22 | 深圳博科智能科技有限公司 | Shake-based unlocking method and terminal equipment |
CN106412311A (en) * | 2016-10-19 | 2017-02-15 | 广东欧珀移动通信有限公司 | Data transmission method and terminal device |
CN106600781A (en) * | 2016-12-14 | 2017-04-26 | 北京拜克洛克科技有限公司 | Method and device for controlling locking of intelligent bicycle lock as well as intelligent bicycle lock and bicycle |
CN106875524A (en) * | 2017-01-24 | 2017-06-20 | 青岛工学院 | A kind of smart bluetooth lock for mountain bike |
US20190347881A1 (en) * | 2018-05-11 | 2019-11-14 | Abus August Bremicker Soehne Kg | Handheld Transmitter for a Portable Lock |
CN113554786A (en) * | 2021-08-02 | 2021-10-26 | 南马实业(深圳)有限公司 | Vehicle control method and system of Bluetooth vehicle key |
Also Published As
Publication number | Publication date |
---|---|
CN114590343B (en) | 2023-09-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106056841B (en) | Safe early warning method, apparatus and system based on mobile terminal | |
CN102937869B (en) | The method and apparatus of a kind of terminal device trigging control instruction | |
US20230037099A1 (en) | Systems and methods for detecting vehicle tailgating | |
US20220345854A1 (en) | Rider location detection and sharing system | |
CN107533371A (en) | Controlled using the user interface for influenceing gesture | |
CN110570542A (en) | Video recording method, device, vehicle and machine readable storage medium | |
US20150288788A1 (en) | Mobile Device Management | |
CN109450669A (en) | A kind of method of abnormal alarm, equipment and computer storage medium | |
US10925342B2 (en) | Helmet communication and safety system | |
CN111385410B (en) | Control method and device of terminal equipment and storage medium | |
CN112543195B (en) | Information security assessment method and device for intelligent networked automobile and electronic equipment | |
CN103345304A (en) | Operating method and device of mobile equipment on the basis of time-share trigger of sensor | |
US11609558B2 (en) | Processing system for dynamic event verification and sensor selection | |
CN106022055A (en) | Fingerprint unlocking control method and terminal equipment | |
CN114590343B (en) | Data processing method, device and terminal equipment | |
US11222213B2 (en) | Vehicle behavior detection system | |
CN106066953B (en) | Fingerprint unlocking control method and terminal equipment | |
US20210125423A1 (en) | Processing System for Dynamic Collison Verification & Sensor Selection | |
CN115140073A (en) | Driving diagnosis apparatus and driving diagnosis method | |
CN113808397A (en) | Data processing method and device for non-motor vehicle accidents and cloud server | |
US20240286568A1 (en) | Method for detecting and evaluating an accident of a vehicle | |
US20210316701A1 (en) | System and method for identifying a driver of a vehicle after the vehicle has been started | |
US20240331465A1 (en) | In-vehicle capability determining system and method of using | |
US20240330063A1 (en) | Rule prioritization system and method of using | |
Ridwan et al. | A Smart System to Detect Bike Accidents and Reduce Casualties |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |