CN-121985318-A - Bluetooth binding method and system for electric tricycle
Abstract
The invention discloses a Bluetooth binding method and a Bluetooth binding system for an electric tricycle, which belong to the technical field of intelligent control of the electric tricycle, effectively improve the accuracy of production end data association, establish three-dimensional mapping data of Bluetooth MAC address-equipment SN code-frame number through double checking of the production end, combine station-level secondary checking and a production line acousto-optic alarm mechanism, stop data mismatch caused by manual wrong scanning and cross-station operation, realize AES-256 encryption storage and cloud multiple access control, ensure data transmission storage safety, solve the problems of single-dimension association and data leakage tampering, strengthen the whole-flow safety of binding links, realize triple checking of the cloud against illegal requests, realize triple checking and failure dormancy mechanisms of a dynamic key embedded frame number fragment and a timestamp, avoid key counterfeiting multiplexing, realize double checking of the BLE connection and the SN code, solve the hidden troubles of open pairing, weak key safety and the like.
Inventors
- LIU ZHEN
- YANG QINGQING
- GUO YONGYAN
- CHENG XIAO
- YANG LIANG
- ZHANG XUEXIANG
- SHENG QI
- Zhong Pinghui
- ZHANG LIN
- HUANG DEZHI
Assignees
- 江苏金彭集团有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260109
Claims (10)
- 1. The Bluetooth binding method of the electric tricycle is characterized by comprising the following steps of: s1, double checking at a production end is associated with information; S2, acquiring a user terminal scene scanning code and a Bluetooth address; S3, pairing the multi-factor Bluetooth connection with the secret key; s4, the whole vehicle binding confirmation and the state are synchronous.
- 2. The method for binding the Bluetooth of the electric tricycle according to claim 1, wherein in S1, the specific operation steps are as follows: a1, acquiring hardware information, namely acquiring Bluetooth hardware information of an electric tricycle alarm through a production execution system or bar code scanning equipment in the production process of the electric tricycle; A2, secondarily scanning and correlation checking, namely secondarily scanning a nameplate bar code of a vehicle frame number by a worker, and comparing whether the acquired Bluetooth hardware information and the vehicle frame number come from the same production station by a production execution system so as to form mapping data; a3, checking result processing, namely, if the station association is consistent, reserving mapping data, and if the station association is inconsistent, triggering an audible and visual alarm by a production execution system and suspending a production line until rescanning confirmation; a4, encrypting, storing and controlling access, namely storing the mapping data passing the verification into a cloud database by using an encryption algorithm, setting multiple access verification by the cloud, and only allowing an authorized server of the enterprise official APP to access; in A1, bluetooth hardware information comprises a Bluetooth MAC address and an equipment SN code, and acquired data is transmitted to a production execution system through a production line intranet; In A2, the mapping data is the three-dimensional mapping data of the established Bluetooth MAC address-equipment SN code-frame number; in A4, the encryption algorithm employs an AES-256 encryption algorithm.
- 3. The method for binding the electric tricycle Bluetooth according to claim 2, wherein in S2, the specific operation steps are as follows: B1, account registration and admission, wherein a user completes registration through an APP matched with the electric tricycle, and enters a 'device binding' page after successful registration; A2, activating and limiting a code scanning function, namely starting a Bluetooth scanning function by an APP, detecting the Bluetooth signal intensity of the peripheral electric tricycle alarms in real time, and activating the code scanning function when the Bluetooth signal intensity of the electric tricycle alarms is detected to be more than or equal to-60 dBm; the binding request is initiated, namely a user scans a two-dimensional code on a vehicle frame number nameplate, and after the APP analyzes the vehicle frame number, a user account is automatically attached to send a Bluetooth information request to a cloud database; The cloud database sequentially verifies the API key validity of the APP, whether the request IP is in a white list, the validity of user account registration and the binding state of the mobile phone number, and after triple verification, the Bluetooth MAC address is fed back to the APP by adopting an encryption algorithm; in the step B1, mobile phone numbers are bound and short message verification is completed during registration, so that account uniqueness is guaranteed, and mobile phone number binding is generated in real time through an enterprise server; in the step B2, when the APP detects that the Bluetooth signal intensity is < -60dBm, prompting a user to retry after approaching the vehicle; in B4, the encryption algorithm adopts an RSA asymmetric encryption algorithm, and the validity period of the feedback information is 10 minutes.
- 4. The method for binding the electric tricycle Bluetooth according to claim 3, wherein in S3, the specific operation steps are as follows: C1, BLE connection initiation and equipment SN code secondary verification, namely, APP automatically initiates a BLE connection request according to the acquired Bluetooth MAC address in the valid period of cloud feedback information, and Bluetooth equipment SN code secondary verification is adopted in the connection process; Generating a dynamic key, namely generating the dynamic key by adopting an encryption algorithm in the background after Bluetooth connection is established, embedding a frame number 6-bit fragment and a generation time stamp accurate to seconds into the key; and C3, triple verification and exception handling of the alarm, wherein after the alarm receives the secret key, the triple verification is executed: Verifying whether the key length is 16 bits; verifying whether the frame number rear 6-bit fragment is contained; Verifying whether the difference between the key generation time and the current time of the alarm is less than or equal to 1 minute; if the triple verification is passed, the pairing is completed, otherwise, the pairing is refused, a specific error type is fed back to the APP, and after 3 continuous verification failures, the alarm Bluetooth module is dormant for 5 minutes; In C1, the APP reads the equipment SN code in the alarm broadcast packet, compares the equipment SN code with the equipment unique identification code fed back by the cloud, and continues to connect if the equipment SN code is consistent with the equipment unique identification code fed back by the cloud; In C2, the encryption algorithm adopts an AES-128 encryption algorithm; In C3, the time difference is the difference between the current time of the alarm and the key generation time stamp, accurate to seconds.
- 5. The method for binding the electric tricycle Bluetooth according to claim 1, wherein in S4, the specific operation steps are as follows: After the Bluetooth pairing is successful, the APP sends a binding confirmation request containing a frame number, a user account number and a Bluetooth MAC address to a cloud database, and a timestamp is attached when the pairing is successful; the cloud database stores the binding relation in the record D1, generates a whole-flow log containing a binding time-verification node, and marks the vehicle as a bound state; and D3, feeding back a result and a local cache, namely, the cloud returns a binding success instruction to the APP, the APP locally adopts encryption cache binding information, and displays a binding success interface, so that the whole vehicle Bluetooth binding is finally completed.
- 6. The method for binding the electric tricycle Bluetooth according to claim 1, further comprising the step of unbinding, wherein a user initiates an unbinding request through an APP, the cloud end deletes a binding record, marks the unbinding state of a vehicle, sends an unbinding instruction to an alarm, and the APP clears a local cache.
- 7. The Bluetooth binding system of the electric tricycle comprises a production end double-check module, a user end scene interaction module, a triple verification module, a full-flow recording module and an exception handling module, and is characterized in that the production end double-check module is used for realizing acquisition, check and encryption storage of mapping data and comprises a production execution system, bar code scanning equipment and an encryption storage unit; The production execution system is used for information verification and flow control of a production end, so that an accurate data base is laid for full-link safety binding; the bar code scanning equipment is used for linking production end information acquisition and verification, wherein the information acquisition comprises hardware information acquisition and frame number acquisition; the encryption storage unit is an AES-256 encryption storage unit and is used for guaranteeing storage safety and uniqueness of production-side key binding data and laying a safe and reliable data foundation for full-link Bluetooth binding.
- 8. The system for binding the electric tricycle Bluetooth is characterized in that the user side scenerization interaction module is used for scenerization to acquire a Bluetooth address and initiate connection, and comprises a Bluetooth signal strength detection unit, a two-dimensional code analysis unit, a BLE communication unit and a multi-factor key generation unit; The Bluetooth signal strength detection unit realizes the safety verification of the binding of the user side through space scene limitation; The two-dimensional code analysis unit is used for connecting a user code scanning operation and a cloud information request, providing accurate vehicle identification data for Bluetooth binding, and enhancing safety by matching with scene verification; the BLE communication unit realizes safe, efficient and low-power consumption Bluetooth connection and key data transmission between the APP and the electric tricycle alarm, and lays a communication foundation for multi-factor key pairing; the multi-factor key generation unit generates a dynamic key with safety, uniqueness and timeliness, and provides verification basis for Bluetooth pairing.
- 9. The electric tricycle Bluetooth binding system of claim 8, wherein the triple verification module is deployed at a cloud and an alarm for full-link security verification; The full-flow recording module is used for storing the binding record and marking the binding state of the vehicle, and comprises a binding log storage unit, a vehicle state marking unit and a local encryption cache unit; The binding journal storage unit is used for storing the complete binding relation of the frame number, the user account number and the Bluetooth MAC address, generating and storing a full-flow journal comprising binding time and verification nodes, and providing a data basis for the tracing and checking of the Bluetooth binding full-link; The vehicle state marking unit is used for accurately marking the bound or unbound states of the vehicle, forming a clear mark of the bound state of the vehicle and providing basic support for authority management and control and flow connection of full-link Bluetooth binding; The local encryption caching unit is used for storing Bluetooth binding information in the APP local security mode, forming 'cloud + local' dual data guarantee, and supporting high efficiency and safety of operation after binding.
- 10. The system for binding the electric tricycle Bluetooth according to claim 9, wherein the exception handling module is used for handling exception scenes of production mismatch, verification failure and binding timeout, and comprises an MES alarm unit, an alarm dormancy unit and an APP retry guiding unit; The MES alarm unit is used for timely responding to the problem of binding data mismatch in the production process, guaranteeing the accuracy of one-vehicle-one-alarm-one mapping and firmly building a production-end data security line for all-link Bluetooth binding; the alarm dormancy unit is used for coping with malicious verification or frequent failure scenes in the Bluetooth pairing process, and guaranteeing safety of Bluetooth binding of the electric tricycle and stable operation of the alarm by blocking illegal operation through forced dormancy; the APP retry guiding unit is used for providing accurate prompt and clear retry guiding for various abnormal scenes in the whole Bluetooth binding process, reducing the operation cost of a user, ensuring the promotion of binding flow Cheng Shunchang and improving the user experience and the binding success rate.
Description
Bluetooth binding method and system for electric tricycle Technical Field The invention relates to the technical field of intelligent control of electric tricycles, in particular to a Bluetooth binding method and system of an electric tricycle. Background Along with the continuous promotion of electric tricycle intelligent level, bluetooth technology has wide application in core scenes such as vehicle state monitoring, remote control, burglar alarm, and bluetooth binding is as the leading key link of establishing safe communication link between equipment, and its reliability and security directly influence the effect of falling to the ground and user's use experience of vehicle intelligent function. However, the existing electric tricycle bluetooth binding technology still has a plurality of defects to be solved urgently, and the requirements of safety and accuracy in practical application are difficult to meet: 1. The production end data association accuracy is insufficient, namely in the prior art, the Bluetooth hardware information (such as Bluetooth MAC address) of the alarm is only associated with the frame number in a single dimension, a double check mechanism of a production station level is lacked, and a three-dimensional mapping data system of 'Bluetooth MAC address-equipment SN code-frame number' is not established. In the production process, data binding errors are easily caused by manual error scanning, station crossing operation and the like, meanwhile, collected data are transmitted and stored in a non-encryption mode, the risk of data leakage or tampering exists, and potential safety hazards are buried for subsequent binding flow. 2. The security of the binding link is weak, an open Bluetooth searching pairing mode is adopted, an effective access control strategy is lacking, the binding link is easy to be scanned and hijacked by illegal equipment, a dynamic key is encrypted only by a single algorithm and is not deeply fused with key information such as a vehicle unique identifier (such as a frame number fragment), a timestamp and the like, the security risk of key forging and multiplexing exists, a cloud verification link lacks a multi-dimensional verification mechanism, the validity of an APP, a request source and the validity of a user account are not comprehensively verified, and illegal request attacks are difficult to resist. 3. The user operation scene lacks safety constraint that the code scanning binding flow process does not set limit conditions of space and time layers, the actual distance between the user and the vehicle is not judged through means such as Bluetooth signal intensity detection, so that potential safety hazards of acquiring Bluetooth addresses by remote stealing of frame number two-dimensional codes exist, meanwhile, the Bluetooth information fed back by the cloud has no validity limit, the probability of illegal information utilization is further increased, an effective protection mechanism is lacking in an abnormal verification scene, and malicious cracking attempts are easily suffered. In summary, the existing bluetooth binding method has short plates in terms of data accuracy, link security and operation standardization, so that not only is user binding experience affected, but also security problems such as equipment control authority leakage and vehicle theft possibly caused, and therefore, the bluetooth binding method and system for the electric tricycle are provided. Disclosure of Invention The invention aims to provide an electric tricycle Bluetooth binding method and system, which are used for solving the problems in the background technology. In order to achieve the purpose, the invention provides the following technical scheme that the Bluetooth binding method of the electric tricycle comprises the following steps: s1, double checking at a production end is associated with information; S2, acquiring a user terminal scene scanning code and a Bluetooth address; S3, pairing the multi-factor Bluetooth connection with the secret key; s4, the whole vehicle binding confirmation and the state are synchronous. As a further preferable mode of the technical scheme, in S1, the specific operation steps are as follows: a1, acquiring hardware information, namely acquiring Bluetooth hardware information of an electric tricycle alarm through a production execution system or bar code scanning equipment in the production process of the electric tricycle; A2, secondarily scanning and correlation checking, namely secondarily scanning a nameplate bar code of a vehicle frame number by a worker, and comparing whether the acquired Bluetooth hardware information and the vehicle frame number come from the same production station by a production execution system so as to form mapping data; a3, checking result processing, namely, if the station association is consistent, reserving mapping data, and if the station association is inconsistent, triggering an audible and visual alarm by