Skip to content

//kotlin-sdk/fr.gasmartbuilding.gasmartaccessreadersdk/FrameProcessor

FrameProcessor

[androidJvm]\ class FrameProcessor(flowAppSDK: GASmartAccessReaderSDK, sdkCallbacks: GASmartAccessReaderCallbacks)

The FrameProcessor class is responsible for processing communication frames related to the GASmartAccessReaderDemo SDK.

This class contains methods to handle various types of frames, ensuring proper decoding, processing, and response generation. It leverages the LockReconUtils utility class to aid in processing and manages frame interactions like generations, validations and transformations.

Each method is designed to handle a specific type of frame, process it, and potentially return a response frame. Proper error handling and logging mechanisms are integrated to facilitate debugging and ensure smooth operation.

Constructors

FrameProcessor [androidJvm]
constructor(flowAppSDK: GASmartAccessReaderSDK, sdkCallbacks: GASmartAccessReaderCallbacks)

Functions

Name Summary
handleGetAppPubKey [androidJvm]
fun handleGetAppPubKey(): ByteArray
This method handles the Get App Public Key frame.
handleGetAppSign1 [androidJvm]
fun handleGetAppSign1(): ByteArray
This method handles the Get App Sign1 frame.
handleGetAppSign2 [androidJvm]
fun handleGetAppSign2(): ByteArray
This method handles the Get App Sign2 frame.
handleGetAuthLockAlarmState [androidJvm]
fun handleGetAuthLockAlarmState(frameData: ByteArray): ByteArray
This method handles the Get Authentication Lock Alarm State frame.
handleGetBadgeId [androidJvm]
fun handleGetBadgeId(): ByteArray
This method handles the Get Badge ID frame.
handleGetChallenge [androidJvm]
fun handleGetChallenge(): ByteArray
This method handles the Get Challenge frame.
handleLaunchSequence [androidJvm]
fun handleLaunchSequence(): ByteArray
This method handles the Set Authentication State frame.
handleSetAuthenticationState [androidJvm]
fun handleSetAuthenticationState(frameData: ByteArray, identifier: String?): ByteArray
This method handles the Set Authentication State frame.
handleSetChallenge [androidJvm]
fun handleSetChallenge(frameData: ByteArray): ByteArray
This method handles the Set Challenge frame.
handleSetProtocolRev [androidJvm]
fun handleSetProtocolRev(frameData: ByteArray): ByteArray
This method handles the Set Protocol Revision frame. The frameData should be structured as follows: REQ_CODE, DATA_LEN, DATA
handleSetSignSar [androidJvm]
fun handleSetSignSar(frameData: ByteArray): ByteArray
This method handles the Set Sign SAR frame.