Download BL600 smartBASIC Module
Transcript
smart BASIC User Manual BLESECMNGRKEYSIZES is an extension function. BleSecMngrIoCap This function is used to set the user i/o capability for subsequent pairings and is used to determine if the pairing is authenticated or not. This is related to Simple Secure Pairing as described in the following whitepapers:https://www.bluetooth.org/docman/handlers/DownloadDoc.ashx?doc_id=86174 https://www.bluetooth.org/docman/handlers/DownloadDoc.ashx?doc_id=86173 In addition the “Security Manager Specification” in the core 4.0 specification Part H provides a full description. You will need to be registered with the Bluetooth SIG (www.bluetooth.org) to get access to all these documents. An authenticated pairing is deemed to be one with less than 1 in a million probability that the pairing was compromised by a MITM (Man in the middle) security attack. The valid user i/o capabilities are as described below. BLESECMNGRIOCAP (nIoCap) FUNCTION Returns: INTEGER An integer result code. The most typical value is 0x0000, which indicates a successful operation. Arguments: nIoCap byVal nIoCap AS INTEGER. The user i/o capability for all subsequent pairings. 0 None also known as ‘Just Works’ (unauthenticated pairing) 1 Display with Yes/No input capability (authenticated pairing) 2 Keyboard Only (authenticated pairing) 3 Display Only (authenticated pairing – if other end has input cap) 4 Keyboard only (authenticated pairing) Interactive Command: NO DIM RC RC = blesecmngriocap(0) ‘Select ‘just works’ pairing BLESECMNGRIOCAP is an extension function. www.lairdtech.com 179 Laird Technologies