A signal wake-up unlocking method

By judging the local IoT communication mode and selecting the appropriate data interaction mode, the problem of unlocking delay and failure of electric scooters is solved, the safety and reliability of unlocking are improved, and the fast and stable unlocking of electric scooters is ensured.

CN118400407BActive Publication Date: 2024-09-03深圳市伟创高科电子有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410845630.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-09-03
Estimated Expiration
2044-06-27

AI Technical Summary

Technical Problem

Existing electric scooter unlocking technology has problems such as poor security and easy to be stolen or copied, and the unlocking method based on wireless remote control is susceptible to signal interference. Especially in logistics warehouse application scenarios, user APPs can remotely unlock electric scooters with delays or even Failure problem.

Method used

By receiving the unlocking command initiated by the user APP, it is judged whether the local IoT communication mode can be established, and if so, it is sent directly to the electric scooter; if not, the switch of the cloud server is used to perform data interaction mode cutting and packet sending, and the packet is sent according to the packet sending rate. Choose the appropriate data interaction mode to ensure reliable transmission of unlocking instructions.

Benefits of technology

It improves the safety and reliability of unlocking electric scooters, avoids network delay and failure problems, and enhances the reliability and robustness of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118400407B
    Figure CN118400407B
Patent Text Reader

Abstract

The present invention relates to the technical field of unlocking electric scooters, and discloses a signal wake-up unlocking method, including: receiving an unlocking instruction initiated by a user APP, determining the electric scooter to be awakened according to the unlocking instruction, using the user APP to generate a request packet, and sending the request packet to the switch where the cloud server is located, when the request packet is successfully sent to the cloud server, calculating the packet sending rate of the switch where the cloud server is located, selecting the data interaction mode between the user APP and the electric scooter according to the packet sending rate, using the selected data interaction mode, sending the unlocking instruction to the electric scooter, obtaining the awakening result, transmitting the awakening result to the cloud server, and completing the signal wake-up unlocking of the electric scooter. The main purpose of the present invention is to solve the problem of delay or even failure in remotely unlocking an electric scooter by a user APP.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a signal awakening unlocking method, belonging to the technical field of electric scooter unlocking. Background Art

[0002] Electric scooters include electric scooters, electric beach buggies, etc. Electric scooters play an important role in specific scenarios, such as transportation in logistics warehouses, providing transportation, etc. Therefore, in order to improve the convenience of users using electric scooters, a safe and reliable unlocking mechanism is required.

[0003] At present, there are still some problems with the unlocking technology based on electric scooters. First, the traditional physical key unlocking method has the risk of poor security and easy theft or copying. Secondly, the unlocking methods based on wireless remote control, such as RFID, infrared, etc., are susceptible to signal interference or eavesdropping, especially in the application scenarios of logistics warehouses. Due to the existence of a variety of shielding devices, RFID, infrared and other unlocking methods are easily affected. In addition, the existing technology uses user APP and remotely unlocks the electric scooter based on the TCP protocol, but because the data interaction mode between the user APP and the electric scooter has not been improved, the user APP remote unlocking of the electric scooter is delayed or even fails. Summary of the invention

[0004] The present invention provides a signal wake-up unlocking method, device and computer-readable storage medium, the main purpose of which is to solve the problem of delay or even failure in user APP remote unlocking of an electric scooter.

[0005] To achieve the above object, the present invention provides a signal wake-up unlocking method, comprising:

[0006] Receiving an unlocking instruction initiated by a user APP, and determining the electric scooter to be awakened according to the unlocking instruction, wherein the electric scooter is driven by electricity and has a maximum speed not exceeding 25 km / h;

[0007] Determine whether the user APP and the electric scooter can establish a communication mode of the local Internet of Things. If the user APP and the electric scooter can establish a communication mode of the local Internet of Things, use the local Internet of Things to send an unlock command directly to the electric scooter to obtain a wake-up result;

[0008] Transmit the unlocking command and the wake-up result to the pre-built cloud server to complete the signal wake-up unlocking of the electric scooter;

[0009] If the user APP and the electric scooter cannot establish a local IoT communication mode, a request packet is generated by the user APP and sent to the switch where the cloud server is located;

[0010] When the request packet is successfully sent to the cloud server, the packet sending rate of the switch where the cloud server is located is calculated;

[0011] A data interaction mode between the user APP and the electric scooter is selected according to the packet sending rate, wherein the data interaction mode is based on the TCP protocol;

[0012] By using the selected data interaction mode, an unlocking instruction is sent to the electric scooter to obtain a wake-up result, which is then transmitted to the cloud server to complete the signal wake-up unlocking of the electric scooter.

[0013] Optionally, calculating the packet sending rate of the switch where the cloud server is located includes:

[0014] Using the cloud server to perform segmentation on the request packet, obtaining at least 2 groups of segmented packets;

[0015] Confirm the interval time for sending each set of cutting packages to the mobility scooter;

[0016] According to the interval time, each group of cutting packets is sent to the electric scooter in turn through the switch where the cloud server is located;

[0017] Waiting for the confirmation packet sent back by the electric scooter according to each group of cutting packets, and the number of groups of confirmation packets is less than or equal to the number of groups of cutting packets;

[0018] The packet sending rate is calculated based on the cut packets, the confirmation packets and the interval time.

[0019] Optionally, the cloud server is used to perform segmentation on the request packet to obtain at least two groups of segmented packets, including:

[0020] Get the data volume of the request packet and calculate the number of groups of cut packets according to the following formula:

[0021]

[0022] in, Indicates the first request packets, To calculate the weight factor for the number of groups of cut packages, Indicates cutting The number of groups of cut packets obtained by request packets, represents a natural constant, Indicates rounding operation;

[0023] According to the number of groups of the cut packets, the request packet is cut to obtain multiple groups of cut packets.

[0024] Optionally, the calculating the packet sending rate according to the cut packets, the confirmation packets and the interval time includes:

[0025] Calculate the sending rate from the first group of cut packets to the second group of cut packets to obtain the first rate;

[0026] Calculate the sending rate from the second group of cut packets to the third group of cut packets, and get the second rate, the third rate Group cutting package to The sending rate of the group-cut packet is obtained rate, ..., Group cutting package to The sending rate of the group-cut packet is obtained Rate, where The calculation of the rate needs to be based on the previous Group cutting package, with front The confirmation package and interval time corresponding to the group cutting package are calculated;

[0027] According to the first rate, the second rate, ..., the rate, ..., Rate, calculate the packet sending rate.

[0028] Optionally, the Rate calculation, including:

[0029] According to the following formula, we can calculate rate:

[0030]

[0031] in, Indicates rate, represents the interval time, Indicates sending Group cuts the package and waits After that, the cumulative number of bytes of all confirmation packets received, Indicates sending The cumulative number of bytes of all confirmation packets received before the group cut packet, Indicates sending Group cuts the package and waits After that, the cumulative number of bytes of all confirmation packets received, Indicates sending The cumulative number of bytes of all confirmation packets received before the group cut packet, Indicates Group cutting package, Indicates Group cutting package.

[0032] Optionally, the first rate, the second rate, ..., the rate, ..., Rate, calculate the packet sending rate, including:

[0033] Statistics of the first rate, the second rate, ..., the rate, ..., Among the rates, the number of rates with a rate of 0 and a negative number gives an unstable number;

[0034] Calculate the ratio of the unstable number to the number of groups of the cut package to obtain the instability factor;

[0035] When the instability factor is greater than or equal to the preset instability threshold, the packet sending rate is directly set to zero;

[0036] When the instability factor is less than the instability threshold, the first rate, the second rate, ..., the first rate are added. rate, ..., The sum rate is obtained, and the sum rate is divided by the number of groups of cut packets to obtain the packet sending rate.

[0037] Optionally, selecting a data interaction mode between the user APP and the electric scooter according to the packet sending rate includes:

[0038] Summarize the first request packet, the second request packet, ..., request packets, ..., The packet sending rate of request packets is obtained Packet sending rate;

[0039] According to the sending time of each request packet sent by the user APP, The packet sending rates are sorted by time to obtain Packet sending rate;

[0040] will have a time relationship The packet sending rate is used as the input data of the rate prediction model to calculate the packet prediction rate;

[0041] When the packet prediction rate is greater than a preset packet rate threshold, the data interaction mode between the user APP and the electric scooter is determined to be a standard transmission mode;

[0042] When the predicted packet rate is less than or equal to a preset packet rate threshold, it is determined that the data interaction mode between the user APP and the electric scooter is a congestion avoidance mode.

[0043] Optionally, the time sequence relationship The packet sending rate is used as the input data of the rate prediction model to calculate the packet prediction rate, including:

[0044] Calculate the time sequence The rate difference of the packet sending rate is calculated as follows:

[0045]

[0046] in, Indicates The packet sending rate of request packets, Indicates The packet sending rate of request packets, Indicates The request packet and The rate difference of request packets;

[0047] Fit all rate differences with a time sequence relationship to obtain a rate prediction model, wherein the independent variable of the rate prediction model is time and the dependent variable is the rate difference;

[0048] The rate prediction model obtained by fitting is used to predict the rate difference at the next time point to obtain the predicted rate difference;

[0049] The packet prediction rate is calculated according to the following formula:

[0050]

[0051] in, Indicates the predicted packet rate at the next time point, represents the predicted rate difference, Indicates The packet sending rate of request packets.

[0052] Optionally, the step of transmitting the unlocking instruction and the wake-up result to a pre-built cloud server to complete the signal wake-up unlocking of the electric scooter includes:

[0053] Parse the unlock command to obtain the device identification code of the electric scooter;

[0054] Determine whether the wake-up result is a successful wake-up of the electric mobility scooter or a failed wake-up of the electric mobility scooter;

[0055] If the wake-up result is a failure to wake up the electric scooter, the unlocking instruction and the wake-up result are directly transmitted to a pre-built cloud server, and an abnormal reminder instruction of the electric scooter is generated according to the device identification code;

[0056] Using the cloud server to send abnormal reminder instructions to the maintenance personnel of the electric scooter;

[0057] If the wake-up result is that the electric scooter is successfully woken up, the power information of the electric scooter is queried in the cloud server using the device identification code, wherein the power information includes the real-time voltage and the remaining power;

[0058] After the power information is transmitted back to the user's APP, the unlocking instruction and wake-up result are transmitted to the cloud server to complete the signal wake-up unlocking of the electric scooter.

[0059] Optionally, the electric mobility scooter includes an electric scooter, an electric beach buggy, an electric motorcycle, an electric tricycle, an electric four-wheeled transport vehicle, and an electric four-wheeled sightseeing vehicle.

[0060] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:

[0061] at least one processor; and,

[0062] a memory communicatively connected to the at least one processor; wherein,

[0063] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to implement the signal wake-up unlocking method described above.

[0064] In order to solve the above problem, the present invention also provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is executed by a processor in an electronic device to implement the above-mentioned signal wake-up unlocking method.

[0065] Compared with the problems described in the background technology, the present invention first realizes direct communication between the user APP and the electric scooter through the local Internet of Things. When the user initiates an unlocking command, the present invention will first determine whether the user APP and the electric scooter can establish a communication mode of the local Internet of Things. If communication can be established, the unlocking command will be directly sent to the electric scooter, thereby avoiding the delay problem that may be caused by transmitting the unlocking command through the cloud server; when the local Internet of Things communication mode cannot be established, the present invention sends the request packet to the switch where the pre-built cloud server is located, and then selects a suitable data interaction mode according to the packet sending rate of the switch, and uses the selected The data interaction mode sent out sends the unlocking instruction to the electric scooter. This alternative solution can effectively deal with the situation where the local Internet of Things communication is unavailable, ensuring the transmission reliability of the unlocking instruction; finally, in summary, the present invention transmits the unlocking instruction through two different ways (local Internet of Things and cloud server), fully considering the diversity and uncertainty of the network environment. The local Internet of Things communication mode directly sends the instruction to the electric scooter, which is faster and more stable, and can avoid network delays and failures. The cloud server, as an alternative solution, provides an alternative solution when the local Internet of Things communication is unavailable, enhancing the reliability and robustness of the system. Therefore, the signal wake-up unlocking method, device, electronic device and computer-readable storage medium proposed in the present invention are mainly intended to solve the problem of delay or even failure when the user APP remotely unlocks the electric scooter. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] Figure 1 A schematic diagram of a flow chart of a signal wake-up unlocking method provided by an embodiment of the present invention;

[0067] Figure 2 This is an interface diagram of a user APP that can generate an unlock command provided by an embodiment of the present invention;

[0068] Figure 3 A display interface for power information of an electric scooter provided by an embodiment of the present invention;

[0069] Figure 4 A schematic diagram of the structure of an electronic device for implementing the signal wake-up unlocking method provided by an embodiment of the present invention.

[0070] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments. DETAILED DESCRIPTION

[0071] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0072] The embodiment of the present application provides a signal wake-up unlocking method. The execution subject of the signal wake-up unlocking method includes but is not limited to at least one of the electronic devices such as a server, a terminal, etc. that can be configured to execute the method provided by the embodiment of the present application. In other words, the signal wake-up unlocking method can be executed by software or hardware installed in a terminal device or a server device. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc.

[0073] Embodiment 1:

[0074] Reference Figure 1 FIG. 1 is a flow chart of a signal wake-up unlocking method provided in an embodiment of the present invention. In this embodiment, the signal wake-up unlocking method includes:

[0075] S1. Receive an unlocking command initiated by a user APP, and determine the electric scooter to be awakened according to the unlocking command, wherein the electric scooter is driven by electricity and has a maximum speed not exceeding 25 km / h.

[0076] It should be emphasized that the electric mobility scooters described in the embodiments of the present invention include but are not limited to electric scooters, electric beach buggies, electric motorcycles, electric tricycles, electric four-wheeled transport vehicles, electric four-wheeled sightseeing vehicles, etc., and since these electric mobility scooters generally have fixed usage scenarios and the usage scenarios are relatively simple, and the maximum driving speed does not exceed 25km / h, their corresponding electric drive systems are relatively simple. Therefore, how to efficiently wake up the locked electric mobility scooter is a technical issue that needs to be considered.

[0077] It should be explained that the unlocking command is generally initiated by the user of the electric scooter. For example, Xiao Zhang is a staff member of a logistics warehouse. Now a large number of items to be transported have arrived at the logistics warehouse where Xiao Zhang works, and an electric four-wheel transfer vehicle is needed to transport the large number of items to be transported from the logistics warehouse to the logistics vehicle. Therefore, Xiao Zhang opens the user APP to initiate the unlocking command, the purpose of which is to obtain an electric four-wheel transfer vehicle that is available in the logistics warehouse and has sufficient power.

[0078] Importantly, Figure 2 This is an interface diagram of a user APP according to one of the embodiments of the present invention. In the interface diagram of the user APP, Xiao Zhang can directly click the button "Zero Start" to generate an unlock instruction.

[0079] S2. Determine whether the user APP and the electric scooter can establish a local Internet of Things communication mode.

[0080] S3. If the user APP and the electric scooter can establish a communication mode of a local Internet of Things, the unlocking command is directly sent to the electric scooter using the local Internet of Things to obtain a wake-up result.

[0081] It should be explained that since the driving method of the electric scooter described in the embodiment of the present invention is simple, the capacity of the internal energy storage battery is relatively low, and the communication mode designed internally is also relatively simple, in order to ensure efficient utilization of the energy storage battery capacity, the embodiment of the present invention first determines whether the user APP and the electric scooter can establish a local Internet of Things. If the local Internet of Things can be established, the unlocking command is directly transmitted to the electric scooter using the local Internet of Things to obtain the wake-up result.

[0082] As is known, the local Internet of Things is an extension of the Internet, which connects various physical devices and enables them to communicate and exchange data with each other. The local Internet of Things described in the embodiment of the present invention mainly adopts Bluetooth, which is a short-range wireless communication technology. With the continuous development of Bluetooth technology, the latest version of Bluetooth technology has a higher data transmission rate, lower energy consumption and wider coverage, which can effectively help the embodiment of the present invention solve the problem of efficiently realizing the purpose of waking up the electric scooter with minimal power consumption.

[0083] S4: Transmit the unlocking instruction and the wake-up result to the pre-built cloud server to complete the signal wake-up unlocking of the electric scooter.

[0084] It is understandable that the wake-up results are divided into two types: successful wake-up of the electric scooter and failed wake-up of the electric scooter. In order to facilitate the subsequent iteration and optimization of the electric scooter by the R&D personnel of the electric scooter, the embodiment of the present invention will transmit each unlocking instruction and wake-up result to a pre-built cloud server.

[0085] In particular, the main purpose of the cloud server described in the embodiment of the present invention is to manage the user APP and the electric scooter, and to assist the user APP and the electric scooter in performing data transmission.

[0086] In detail, the unlocking instruction and the wake-up result are transmitted to a pre-built cloud server to complete the signal wake-up unlocking of the electric scooter, including:

[0087] Parse the unlock command to obtain the device identification code of the electric scooter;

[0088] Determine whether the wake-up result is a successful wake-up of the electric mobility scooter or a failed wake-up of the electric mobility scooter;

[0089] If the wake-up result is a failure to wake up the electric scooter, the unlocking instruction and the wake-up result are directly transmitted to a pre-built cloud server, and an abnormal reminder instruction of the electric scooter is generated according to the device identification code;

[0090] Using the cloud server to send abnormal reminder instructions to the maintenance personnel of the electric scooter;

[0091] If the wake-up result is that the electric scooter is successfully woken up, the power information of the electric scooter is queried in the cloud server using the device identification code, wherein the power information includes the real-time voltage and the remaining power;

[0092] After the power information is transmitted back to the user's APP, the unlocking instruction and wake-up result are transmitted to the cloud server to complete the signal wake-up unlocking of the electric scooter.

[0093] Exemplarily, Xiao Zhang uses the user APP to initiate an unlocking instruction, wherein the unlocking instruction includes the device identification code of the electric four-wheeled transport vehicle that Xiao Zhang pre-bound, and the device identification code is unique, and the device identification code of each electric scooter is pre-stored in the cloud server. When the wake-up result is a failure to wake up the electric scooter, it means that there is an abnormality in the electric four-wheeled transport vehicle that Xiao Zhang wants to use, so an abnormal reminder instruction for the electric four-wheeled transport vehicle is generated, and the abnormal reminder instruction is sent to the maintenance personnel of the electric four-wheeled transport vehicle. Furthermore, if the wake-up result is a successful wake-up of the electric scooter, refer to Figure 3 As shown, it is a display interface about power information of one embodiment of the present invention, and this display interface can play the role of reminding the user to use the electric scooter.

[0094] S5. If the user APP and the electric scooter cannot establish a local IoT communication mode, a request packet is generated by the user APP and sent to the switch where the cloud server is located.

[0095] It should be explained that when the user APP and the electric scooter cannot establish a local Internet of Things, it means that the user APP and the electric scooter are relatively far apart, so it is necessary to use the switch where the cloud server is located to assist the user APP and the electric scooter to perform the unlocking operation.

[0096] It should be explained that the traditional method generally transmits the request packet generated by the user APP directly to the electric scooter using the switch where the cloud server is located, and waits for the confirmation packet sent back by the electric scooter based on the request packet. The confirmation packet is also called ACK, which is the abbreviation of "Acknowledgment". In communication, ACK is a signal or data packet used to confirm the received data. When one device sends a request packet to another device, the receiver sends an ACK to the sender, indicating that the request packet has been successfully received. This confirmation mechanism is very important in network communication because it ensures reliable data transmission. If the sender does not receive the ACK, it usually tries to resend the request packet to ensure the integrity and accuracy of the data. ACK is usually used with other communication protocols, such as TCP (Transmission Control Protocol) or UDP (User Datagram Protocol).

[0097] S6. When the request packet is successfully sent to the cloud server, the packet sending rate of the switch where the cloud server is located is calculated.

[0098] Importantly, due to the geographical location, its own communication equipment, etc., or because the switch where the cloud server is located has a large number of tasks at present, the electric scooter is unable to receive the request packet or transmit the confirmation packet in time, resulting in the user APP having to wait for a long time. Therefore, in order to overcome this technical problem, the embodiment of the present invention needs to first calculate the packet sending rate of the switch where the cloud server is located, and confirm the packet transmission strategy that meets the requirements of this unlocking based on the packet sending rate.

[0099] In detail, the calculation of the packet sending rate of the switch where the cloud server is located includes:

[0100] Using the cloud server to perform segmentation on the request packet, obtaining at least 2 groups of segmented packets;

[0101] Confirm the interval time for sending each set of cutting packages to the mobility scooter;

[0102] According to the interval time, each group of cutting packets is sent to the electric scooter in turn through the switch where the cloud server is located;

[0103] Waiting for the confirmation packet sent back by the electric scooter according to each group of cutting packets, and the number of groups of confirmation packets is less than or equal to the number of groups of cutting packets;

[0104] The packet sending rate is calculated based on the cut packets, the confirmation packets and the interval time.

[0105] It should be explained that the traditional method generally directly sends the request packet to the electric scooter through the switch, and obtains the confirmation packet sent back by the electric scooter, so as to quickly establish a "handshake" between the user APP and the electric scooter ("successful handshake" usually means that a reliable connection has been established between the two communication entities, so the term "handshake" is often used to describe the connection establishment process in network communications, especially in the TCP / IP protocol). However, this method will also cause excessive errors. It is possible that at the time of the request packet and the confirmation packet, the user APP and the electric scooter have a communication connection basis, but during the subsequent direct command interaction, the interaction is delayed or fails due to the instability of the user APP and the electric scooter.

[0106] In order to overcome the above problems, the embodiment of the present invention first uses the cloud server to perform segmentation on the request packet. Specifically, the cloud server is used to perform segmentation on the request packet to obtain at least two groups of segmentation packets, including:

[0107] Get the data volume of the request packet and calculate the number of groups of cut packets according to the following formula:

[0108]

[0109] in, Indicates the first request packets, To calculate the weight factor for the number of groups of cut packages, Indicates cutting The number of groups of cut packets obtained by request packets, represents a natural constant, Indicates rounding operation. Indicates the number of the request packet;

[0110] According to the number of groups of the cut packets, the request packet is cut to obtain multiple groups of cut packets.

[0111] For example, if the request packet is 1M, the number of groups of cut packets calculated using the above formula is 10, and the 1M request packet is cut into 10 groups of cut packets using the cloud server.

[0112] Specifically, the embodiment of the present invention sends 10 groups of cutting packets to the electric scooter in sequence, and receives a confirmation packet sent back by the electric scooter based on the cutting packets. Therefore, it is necessary to confirm the interval time for sending each group of cutting packets to the electric scooter. Assuming that the set interval time is 0.5 seconds, it means that after the first group of cutting packets is sent, the second group of cutting packets will be sent after 0.5 seconds, and so on, until the 10th group of cutting packets is sent.

[0113] Furthermore, if the switch sends the first group of cutting packets to the electric scooter, the electric scooter returns a confirmation packet based on the first group of cutting packets, and then the switch sends the second group of cutting packets to the electric scooter, the electric scooter does not return a confirmation packet, and again, the switch sends the third group of cutting packets to the electric scooter, and the electric scooter returns a confirmation packet, and so on, the entire transmission process from the request packet to the confirmation packet is completed.

[0114] The key point is that, under normal circumstances, the number of confirmation packets is less than or equal to the number of cutting packets. This occurs because the electric scooter has not received the cutting packet or the switch has not received the confirmation packet corresponding to the cutting packet, resulting in the number of confirmation packets being less than the number of cutting packets.

[0115] In detail, the packet sending rate is calculated based on the cut packets, the confirmation packets and the interval time, including:

[0116] Calculate the sending rate from the first group of cut packets to the second group of cut packets to obtain the first rate;

[0117] Calculate the sending rate from the second group of cut packets to the third group of cut packets, and get the second rate, the third rate Group cutting package to The sending rate of the group-cut packet is obtained rate, ..., Group cutting package to The sending rate of the group-cut packet is obtained Rate, where The calculation of the rate needs to be based on the previous Group cutting package, with front The confirmation package and interval time corresponding to the group cutting package are calculated. Indicates the number of the cutting package;

[0118] According to the first rate, the second rate, ..., the rate, ..., Rate, calculate the packet sending rate.

[0119] Exemplarily, as described above, there are 10 groups of cut packets, and it is necessary to calculate the sending rate from the 1st group of cut packets to the 2nd group of cut packets, the sending rate from the 2nd group of cut packets to the 3rd group of cut packets, ..., the sending rate from the 9th group of cut packets to the 10th group of cut packets.

[0120] Furthermore, the Calculation of rate, including:

[0121] According to the following formula, we can calculate rate:

[0122]

[0123] in, Indicates rate, represents the interval time, Indicates sending Group cuts the package and waits After that, the cumulative number of bytes of all confirmation packets received, Indicates sending The cumulative number of bytes of all confirmation packets received before the group cut packet, Indicates sending Group cuts the package and waits After that, the cumulative number of bytes of all confirmation packets received, Indicates sending The cumulative number of bytes of all confirmation packets received before the group cut packet, Indicates Group cutting package, Indicates Group cutting package.

[0124] For example, if the 7th rate needs to be calculated, the difference in the number of accumulated bytes before and after the 7th group of cut packets is calculated. After the 7th group of cut packets are sent, the cumulative number of bytes of all confirmation packets received is 0.6M, and before the 7th group of cut packets are sent, the cumulative number of bytes of all confirmation packets received is 0.5M. That is, it means the difference of the accumulated bytes before and after sending, and the difference is 0.1M. By analogy, assuming that the difference of the accumulated bytes before and after sending the 6th group of cut packets is 0.02M, 0.1M-0.02M is used and divided by the interval time to get the 7th rate.

[0125] It should be noted that when multiple confirmation packets are lost, the first When the rate is 0 or even negative, for example, the difference in the cumulative number of bytes before and after the sending of the 7th group is 0M, and the difference in the cumulative number of bytes before and after the sending of the 6th group of cut packets is 0.02M, a difference of -0.02M will be generated, resulting in a negative rate.

[0126] Importantly, when When the rate is 0 or even negative, it means that the connection between the user APP and the electric scooter is extremely unstable, so it has important reference value for the subsequent packet transmission strategy selection.

[0127] In detail, the first rate, the second rate, ..., the rate, ..., Rate, calculate the packet sending rate, including:

[0128] Statistics of the first rate, the second rate, ..., the rate, ..., Among the rates, the number of rates with a rate of 0 and a negative number gives an unstable number;

[0129] Calculate the ratio of the unstable number to the number of groups of the cut package to obtain the instability factor;

[0130] When the instability factor is greater than or equal to the preset instability threshold, the packet sending rate is directly set to zero;

[0131] When the instability factor is less than the instability threshold, the first rate, the second rate, ..., the first rate are added. rate, ..., The sum rate is obtained, and the sum rate is divided by the number of groups of cut packets to obtain the packet sending rate.

[0132] For example, suppose there are 10 groups of cut packets, and the number of rates with a rate of 0 and a negative number is 7, then 7 is the instability factor, and 7 divided by 10 is an instability factor of 0.7. If the set instability threshold is 0.1, the packet sending rate is directly determined to be zero. Assuming the instability factor is 0.05, all the first rate, the second rate, ..., the first rate, ... ... rate, ..., The rates are added and divided by the number of groups into which the packets are cut, 10, to obtain the packet sending rate.

[0133] S7. Select a data interaction mode between the user APP and the electric scooter according to the packet sending rate, wherein the data interaction mode is based on the TCP protocol.

[0134] It should be explained that the size of the packet sending rate determines the quality of data interaction between the user APP and the electric scooter. If the packet sending rate is large, it indicates that the data interaction between the user APP and the electric scooter is smooth at this time. If the packet sending rate is small, it indicates that the data interaction between the user APP and the electric scooter is stuck or abnormal at this time. Therefore, a solution is needed, that is, the data interaction mode described in the embodiment of the present invention. In detail, the data interaction mode between the user APP and the electric scooter is selected according to the packet sending rate, including:

[0135] Summarize the first request packet, the second request packet, ..., request packets, ..., The packet sending rate of request packets is obtained Packet sending rate, Indicates the total number of request packets;

[0136] According to the sending time of each request packet sent by the user APP, The packet sending rates are sorted by time to obtain Packet sending rate;

[0137] will have a time relationship The packet sending rate is used as the input data of the rate prediction model to calculate the packet prediction rate;

[0138] When the packet prediction rate is greater than a preset packet rate threshold, the data interaction mode between the user APP and the electric scooter is determined to be a standard transmission mode;

[0139] When the predicted packet rate is less than or equal to a preset packet rate threshold, it is determined that the data interaction mode between the user APP and the electric scooter is a congestion avoidance mode.

[0140] For example, suppose that Xiao Zhang's user APP sends a total of 5 request packets, among which The request packet is cut multiple times to obtain the above 10 groups of cut packets, and the first The packet sending rate of the first request packet, the packet sending rate of the second request packet, ..., the packet sending rate of the fifth request packet can be calculated by analogy.

[0141] Furthermore, the rate prediction model described in the embodiment of the present invention can be constructed based on LSTM. It should be explained that LSTM (Long Short-Term Memory) is a prediction model suitable for time series data. The packet sending rate is exactly the time series data, so it is used as the input data of LSTM to calculate the packet prediction rate.

[0142] In addition, in another embodiment of the present invention, the time sequence relationship The packet sending rate is used as the input data of the rate prediction model to calculate the packet prediction rate, including:

[0143] Calculate the time sequence The rate difference of the packet sending rate is calculated as follows:

[0144]

[0145] in, Indicates The packet sending rate of request packets, Indicates The packet sending rate of request packets, Indicates The request packet and The rate difference of request packets;

[0146] Fit all rate differences with a time sequence relationship to obtain a rate prediction model, wherein the independent variable of the rate prediction model is time and the dependent variable is the rate difference;

[0147] The rate prediction model obtained by fitting is used to predict the rate difference at the next time point to obtain the predicted rate difference;

[0148] The packet prediction rate is calculated according to the following formula:

[0149]

[0150] in, Indicates the predicted packet rate at the next time point, represents the predicted rate difference, Indicates The packet sending rate of request packets.

[0151] It can be seen that the packet sending rate between the user APP and the electric scooter at the next time point can be calculated according to the above formula. Therefore, when the predicted packet rate is greater than the preset packet rate threshold, the data interaction mode between the user APP and the electric scooter is determined to be the standard transmission mode. Among them, the standard transmission mode is based on the TCP protocol. When the unlocking command of the user APP and a series of remote operation commands for the electric scooter subsequently issued by the user APP are received, they are directly transmitted to the electric scooter through the switch where the cloud server is located.

[0152] When the packet prediction rate is less than or equal to the preset packet rate threshold, the congestion avoidance mode needs to be adopted to improve the data interaction quality between the user APP and the electric scooter. Compared with the standard transmission mode, the main technical measure of the congestion avoidance mode is to intelligently adjust the size of the congestion window (Congestion Window), where the size of the congestion window (Congestion Window) is referred to as CWND. It should be emphasized that CWND is a mechanism based on the TCP protocol to control traffic transmission. CWND can limit the amount of data that the user APP can send at a certain time, thereby ensuring the normal operation of the switch where the cloud server is located. In other words, the congestion avoidance mode described in the embodiment of the present invention has the main operating principle that when the user APP is determined to be in congestion avoidance mode, the switch where the cloud server is located will limit the amount of data packets sent by other user APPs at the same time, and give priority to the unlocking instructions sent by the user APP determined to be in congestion avoidance mode to enter the transmission channel, thereby improving the data interaction quality between the user APP determined to be in congestion avoidance mode and the electric scooter.

[0153] S8. Using the selected data interaction mode, an unlocking instruction is sent to the electric scooter to obtain a wake-up result, and the wake-up result is transmitted to the cloud server to complete the signal wake-up unlocking of the electric scooter.

[0154] It is understandable that S7 has elaborated on the working process of the standard transmission mode and the congestion avoidance mode. Different modes have different data transmission strategies, thereby ensuring the stable operation of the data interaction between the user APP and the electric scooter.

[0155] Compared with the problems described in the background technology, the present invention first realizes direct communication between the user APP and the electric scooter through the local Internet of Things. When the user initiates an unlocking command, the present invention will first determine whether the user APP and the electric scooter can establish a communication mode of the local Internet of Things. If communication can be established, the unlocking command will be directly sent to the electric scooter, thereby avoiding the delay problem that may be caused by transmitting the unlocking command through the cloud server; when the local Internet of Things communication mode cannot be established, the present invention sends the request packet to the switch where the pre-built cloud server is located, and then selects a suitable data interaction mode according to the packet sending rate of the switch, and uses the selected The data interaction mode sent out sends the unlocking instruction to the electric scooter. This alternative solution can effectively deal with the situation where the local Internet of Things communication is unavailable, ensuring the transmission reliability of the unlocking instruction; finally, in summary, the present invention transmits the unlocking instruction through two different ways (local Internet of Things and cloud server), fully considering the diversity and uncertainty of the network environment. The local Internet of Things communication mode directly sends the instruction to the electric scooter, which is faster and more stable, and can avoid network delays and failures. The cloud server, as an alternative solution, provides an alternative solution when the local Internet of Things communication is unavailable, enhancing the reliability and robustness of the system. Therefore, the signal wake-up unlocking method, device, electronic device and computer-readable storage medium proposed in the present invention are mainly intended to solve the problem of delay or even failure when the user APP remotely unlocks the electric scooter.

[0156] Embodiment 2:

[0157] like Figure 4 FIG. 1 is a schematic diagram of the structure of an electronic device for implementing a signal wake-up unlocking method provided by an embodiment of the present invention.

[0158] The electronic device 1 may include a processor 10, a memory 11, a bus 12 and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a signal wake-up unlocking program.

[0159] Among them, the memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example: SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of the electronic device 1, such as a mobile hard disk of the electronic device 1. In other embodiments, the memory 11 can also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a smart memory card (SmartMediaCard, SMC), a secure digital (SecureDigital, SD) card, a flash card (FlashCard), etc. equipped on the electronic device 1. Further, the memory 11 can also include both an internal storage unit of the electronic device 1 and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the electronic device 1, such as the code of the signal wake-up unlocking program, etc., but also can be used to temporarily store data that has been output or is to be output.

[0160] The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips, etc. The processor 10 is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes various functions and processes data of the electronic device 1 by running or executing programs or modules (such as signal wake-up unlocking programs, etc.) stored in the memory 11, and calling data stored in the memory 11.

[0161] The bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.

[0162] Figure 4 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 4 The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0163] For example, although not shown, the electronic device 1 may also include a power source (such as a battery) for supplying power to various components. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device 1 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.

[0164] Furthermore, the electronic device 1 may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device 1 and other electronic devices.

[0165] Optionally, the electronic device 1 may further include a user interface, which may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device, etc. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device 1 and to display a visual user interface.

[0166] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.

[0167] The signal wake-up unlocking program stored in the memory 11 of the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can achieve:

[0168] Receiving an unlocking instruction initiated by a user APP, and determining the electric scooter to be awakened according to the unlocking instruction, wherein the electric scooter is driven by electricity and has a maximum speed not exceeding 25 km / h;

[0169] Determine whether the user APP and the electric scooter can establish a communication mode of the local Internet of Things. If the user APP and the electric scooter can establish a communication mode of the local Internet of Things, use the local Internet of Things to send an unlock command directly to the electric scooter to obtain a wake-up result;

[0170] Transmit the unlocking command and the wake-up result to the pre-built cloud server to complete the signal wake-up unlocking of the electric scooter;

[0171] If the user APP and the electric scooter cannot establish a local IoT communication mode, a request packet is generated by the user APP and sent to the switch where the cloud server is located;

[0172] When the request packet is successfully sent to the cloud server, the packet sending rate of the switch where the cloud server is located is calculated;

[0173] A data interaction mode between the user APP and the electric scooter is selected according to the packet sending rate, wherein the data interaction mode is based on the TCP protocol;

[0174] By using the selected data interaction mode, an unlocking instruction is sent to the electric scooter to obtain a wake-up result, which is then transmitted to the cloud server to complete the signal wake-up unlocking of the electric scooter.

[0175] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to Figures 1 to 4 The description of the relevant steps in the corresponding embodiments will not be repeated here.

[0176] Furthermore, if the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).

[0177] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:

[0178] Receiving an unlocking instruction initiated by a user APP, and determining the electric scooter to be awakened according to the unlocking instruction, wherein the electric scooter is driven by electricity and has a maximum speed not exceeding 25 km / h;

[0179] Determine whether the user APP and the electric scooter can establish a communication mode of the local Internet of Things. If the user APP and the electric scooter can establish a communication mode of the local Internet of Things, use the local Internet of Things to send an unlock command directly to the electric scooter to obtain a wake-up result;

[0180] Transmit the unlocking command and the wake-up result to the pre-built cloud server to complete the signal wake-up unlocking of the electric scooter;

[0181] If the user APP and the electric scooter cannot establish a local IoT communication mode, a request packet is generated by the user APP and sent to the switch where the cloud server is located;

[0182] When the request packet is successfully sent to the cloud server, the packet sending rate of the switch where the cloud server is located is calculated;

[0183] A data interaction mode between the user APP and the electric scooter is selected according to the packet sending rate, wherein the data interaction mode is based on the TCP protocol;

[0184] By using the selected data interaction mode, an unlocking instruction is sent to the electric scooter to obtain a wake-up result, which is then transmitted to the cloud server to complete the signal wake-up unlocking of the electric scooter.

[0185] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0186] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0187] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0188] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims

1. A signal wake-up unlocking method, characterized in that: The method comprises: Receiving an unlocking instruction initiated by a user APP, and determining the electric scooter to be awakened according to the unlocking instruction, wherein the electric scooter is driven by electricity and has a maximum speed not exceeding 25 km / h; Determine whether the user APP and the electric scooter can establish a communication mode of the local Internet of Things. If the user APP and the electric scooter can establish a communication mode of the local Internet of Things, use the local Internet of Things to send an unlock command directly to the electric scooter to obtain a wake-up result; Transmit the unlocking command and the wake-up result to the pre-built cloud server to complete the signal wake-up unlocking of the electric scooter; If the user APP and the electric scooter cannot establish a local IoT communication mode, a request packet is generated by the user APP and sent to the switch where the cloud server is located; When the request packet is successfully sent to the cloud server, the packet sending rate of the switch where the cloud server is located is calculated, wherein the calculation of the packet sending rate of the switch where the cloud server is located includes: Using the cloud server to perform cutting on the request packet to obtain at least two groups of cut packets, wherein the using the cloud server to perform cutting on the request packet to obtain at least two groups of cut packets includes: Get the data volume of the request packet and calculate the number of groups of cut packets according to the following formula: in, Indicates the first request packets, To calculate the weight factor for the number of groups of cut packages, Indicates cutting The number of groups of cut packets obtained by request packets, represents a natural constant, Indicates rounding operation. Indicates the number of the request packet; According to the number of groups of the cut packets, the request packet is cut to obtain multiple groups of cut packets; Confirm the interval time for sending each set of cutting packages to the mobility scooter; According to the interval time, each group of cutting packets is sent to the electric scooter in turn through the switch where the cloud server is located; Waiting for the confirmation packet sent back by the electric scooter according to each group of cutting packets, and the number of groups of confirmation packets is less than or equal to the number of groups of cutting packets; The packet sending rate is calculated based on the cut packets, the confirmation packets and the interval time, wherein the packet sending rate is calculated based on the cut packets, the confirmation packets and the interval time, including: Calculate the sending rate from the first group of cut packets to the second group of cut packets to obtain the first rate; Calculate the sending rate from the second group of cut packets to the third group of cut packets, and get the second rate, the third rate Group cutting package to The sending rate of the group-cut packet is obtained rate, ..., Group cutting package to The sending rate of the group-cut packet is obtained Rate, where Indicates the number of the cut package, and the The calculation of the rate needs to be based on the previous Group cutting package, with front The confirmation package and interval time corresponding to the group cutting package are calculated, and the first Calculation of rate, including: According to the following formula, we can calculate rate: in, Indicates rate, represents the interval time, Indicates sending Group cuts the package and waits After that, the cumulative number of bytes of all confirmation packets received, Indicates sending The cumulative number of bytes of all confirmation packets received before the group cut packet, Indicates sending Group cuts the package and waits After that, the cumulative number of bytes of all confirmation packets received, Indicates sending The cumulative number of bytes of all confirmation packets received before the group cut packet, Indicates Group cutting package, Indicates Group cutting packages; According to the first rate, the second rate, ..., the rate, ..., The packet sending rate is calculated based on the first rate, the second rate, ..., the rate, ..., Rate, calculate the packet sending rate, including: Statistics of the first rate, the second rate, ..., the rate, ..., Among the rates, the number of rates with a rate of 0 and a negative number gives an unstable number; Calculate the ratio of the unstable number to the number of groups of the cut package to obtain the instability factor; When the instability factor is greater than or equal to the preset instability threshold, the packet sending rate is directly set to zero; When the instability factor is less than the instability threshold, the first rate, the second rate, ..., the first rate are added. rate, ..., rate, obtain the sum rate, and divide the sum rate by the number of groups of cut packets to obtain the packet sending rate; A data interaction mode between the user APP and the electric scooter is selected according to the packet sending rate, wherein the data interaction mode is based on the TCP protocol, and the data interaction mode between the user APP and the electric scooter is selected according to the packet sending rate, including: Summarize the first request packet, the second request packet, ..., request packets, ..., The packet sending rate of request packets is obtained Packet sending rate, Indicates the total number of request packets; According to the sending time of each request packet sent by the user APP, The packet sending rates are sorted by time to obtain Packet sending rate; will have a time relationship The packet sending rate is used as the input data of the rate prediction model to calculate the packet prediction rate; When the packet prediction rate is greater than a preset packet rate threshold, the data interaction mode between the user APP and the electric scooter is determined to be a standard transmission mode; When the packet prediction rate is less than or equal to the preset packet rate threshold, determining that the data interaction mode between the user APP and the electric scooter is a congestion avoidance mode; By using the selected data interaction mode, an unlocking instruction is sent to the electric scooter to obtain a wake-up result, which is then transmitted to the cloud server to complete the signal wake-up unlocking of the electric scooter.

2. The signal wake-up unlocking method according to claim 1, characterized in that: The time-series relationship The packet sending rate is used as the input data of the rate prediction model to calculate the packet prediction rate, including: Calculate the time sequence The rate difference of the packet sending rate is calculated as follows: in, Indicates The packet sending rate of request packets, Indicates The packet sending rate of request packets, Indicates The request packet and The rate difference of request packets; Fit all rate differences with a time sequence relationship to obtain a rate prediction model, wherein the independent variable of the rate prediction model is time and the dependent variable is the rate difference; The rate prediction model obtained by fitting is used to predict the rate difference at the next time point to obtain the predicted rate difference; The packet prediction rate is calculated according to the following formula: in, Indicates the predicted packet rate at the next time point, represents the predicted rate difference, Indicates The packet sending rate of request packets.

3. The signal wake-up unlocking method according to claim 1, characterized in that: The unlocking instruction and the wake-up result are transmitted to a pre-built cloud server to complete the signal wake-up unlocking of the electric scooter, including: Parse the unlock command to obtain the device identification code of the electric scooter; Determine whether the wake-up result is a successful wake-up of the electric mobility scooter or a failed wake-up of the electric mobility scooter; If the wake-up result is a failure to wake up the electric scooter, the unlocking instruction and the wake-up result are directly transmitted to a pre-built cloud server, and an abnormal reminder instruction of the electric scooter is generated according to the device identification code; Using the cloud server to send abnormal reminder instructions to the maintenance personnel of the electric scooter; If the wake-up result is that the electric scooter is successfully woken up, the power information of the electric scooter is queried in the cloud server using the device identification code, wherein the power information includes the real-time voltage and the remaining power; After the power information is transmitted back to the user's APP, the unlocking instruction and wake-up result are transmitted to the cloud server to complete the signal wake-up unlocking of the electric scooter.

4. The signal wake-up unlocking method according to claim 3, characterized in that: The electric mobility scooters include electric scooters, electric beach buggies, electric motorcycles, electric tricycles, electric four-wheeled transport vehicles, and electric four-wheeled sightseeing vehicles.