Guide to Adding BLE Connection Passcodes for the KT1025A Bluetooth Chip
Introduction The BLE function of the KT1025A Bluetooth chip supports connection passcodes. By default, the passcode is fixed at 6 digits , and its length cannot be changed. In the default program, the passcode is set to 123456 . Please note that each digit must be in the range 0–9 and must not exceed this range. However, it is important to note a limitation of BLE : even with a passcode set, certain apps may bypass it. Therefore, it is recommended to implement an interactive encryption mechanism between your app and the Bluetooth chip after a connection is established. For example, after a successful connection, the app can send a data frame to the Bluetooth chip, which then parses and replies according to a predefined protocol. If no correct reply is received, the device can be considered unauthorized. AT Command Instructions Set the passcode Command: AT +BN Format: AT +BN[passcode] (up to 6 digits) Example: AT +BN8...