Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
408 views
in Technique[技术] by (71.8m points)

Android Studio - Java Bluetooth Gatt connection issue

Having connection issues between a android 7.0 device and a Sumup card reader (Cheap Bluetooth card terminal that has a SDK), Connection is intermittent and im wondering is BluetoothGatt causing issues in android ?

Kinda stuck here and have reached out to Sumup who provide the SDK but decided to post here anyway

Added some debug output from the android device below

Any help is appreciated!

Thanks

'I/BluetoothLeScanner: startRegisteration: mLeScanClients={com.sumup.merchant.reader.bluetooth.ModernBtSmartScanner$1@3f2b743=android.bluetooth.le.BluetoothLeScanner$BleScanCallbackWrapper@300a1c0}'

'D/BluetoothAdapter: 116905321: getState(). Returning 12'

'D/BluetoothLeScanner: stopScan'

'D/BluetoothAdapter: getLeState() returning 12'
    
'STATE_ON'

'I/BluetoothLeScanner: startRegisteration: mLeScanClients={com.sumup.merchant.reader.bluetooth.ModernBtSmartScanner$1@3f2b743=android.bluetooth.le.BluetoothLeScanner$BleScanCallbackWrapper@300a1c0} ,callback=com.sumup.merchant.reader.bluetooth.ModernBtSmartScanner$1@3f2b743'

'D/BluetoothGatt: connect() - device: F7:D1:AB:B3:81:73, auto: false'

'D/BluetoothGatt: registerApp()registerApp() - UUID=484a6743-fe92-481c-a2fc-e606d475e21d'

'D/BluetoothGatt: onClientRegistered() - status=0 clientIf=10'

'D/BluetoothGatt: onClientConnectionState() - status=133 clientIf=10 device=F7:D1:AB:B3:81:73'

'W/SumUp: (SourceFile:112)@BtSmart-Receiver | BluetoothAdapter not initialized'

'E/SumUp: (SourceFile:153)@main | onTransportError() CardReaderError{Name = TRANSPORT_ERROR mErrorCode=3}'
question from:https://stackoverflow.com/questions/65944822/android-studio-java-bluetooth-gatt-connection-issue

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...