Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scanning for the DFU Bootloader timeouts with error 255 #484

Open
w-sso opened this issue Dec 20, 2024 · 2 comments
Open

Scanning for the DFU Bootloader timeouts with error 255 #484

w-sso opened this issue Dec 20, 2024 · 2 comments
Labels

Comments

@w-sso
Copy link

w-sso commented Dec 20, 2024

Where do you suspect the issue?

Issue in DFU library, e.g. upload stops in the middle

Version

2.7.0 or 2.8.0 (Latest)

Describe the issue

It appeared while trying to connect

Relevant log output

 refresh() - device: EC:5E:F3:75:F9:12
2024-12-23 08:43:14.472  7546-7718  BluetoothGatt   cancelOpen() - device: EC:5E:F3:75:F9:12
2024-12-23 08:43:14.474  7546-7718  BluetoothGatt   close()
2024-12-23 08:43:14.474  7546-7718  BluetoothGatt   unregisterApp() - mClientIf=9
2024-12-23 08:43:14.502  7546-7718  BluetoothGatt   connect() - device: EC:5E:F3:75:F9:12, auto: false, eattSupport: false
2024-12-23 08:43:14.502  7546-7718  BluetoothGatt   registerApp()
2024-12-23 08:43:14.502  7546-7718  BluetoothGatt   registerApp() - UUID=b82ca537-b56c-46b8-9702-a020a88bbf3d
2024-12-23 08:43:14.505  7546-7568  BluetoothGatt   onClientRegistered() - status=0 clientIf=9
2024-12-23 08:43:44.526  7546-7569  BluetoothGatt   onClientConnectionState() - status=255 clientIf=9 device=EC:5E:F3:75:F9:12
@w-sso w-sso added the bug label Dec 20, 2024
@w-sso w-sso changed the title Scanning for the DFU Bootloader... (timeout 5000 ms) Scanning for new address finished with: null Connection state change error: 255 newState: 0 How did it happen? Connection state change error: 255 newState: 0 An error occurred while connecting to the device: 255 Dec 23, 2024
@w-sso w-sso changed the title Connection state change error: 255 newState: 0 An error occurred while connecting to the device: 255 Scanning for the DFU Bootloader... (timeout 5000 ms) Scanning for new address finished with: null Connection state change error: 255 newState: 0 How did it happen? Connection state change error: 255 newState: 0 An error occurred while connecting to the device: 255 Dec 23, 2024
@w-sso
Copy link
Author

w-sso commented Dec 23, 2024

 public void onScanResult(final int callbackType, final ScanResult result) {
        final String address = result.getDevice().getAddress();
        Log.i("TAG", "onScanResult: "+
                result.getDevice().getAddress()+" mDeviceAddress "+mDeviceAddress
        +"  mDeviceAddressIncremented " );
        if (!mFound && mSelector.matches(
                result.getDevice(), result.getRssi(),
                result.getScanRecord().getBytes(),
                mDeviceAddress, mDeviceAddressIncremented
        )) {
            mBootloaderAddress = address;
            mFound = true;

            // Notify the waiting thread
            synchronized (mLock) {
                mLock.notifyAll();
            }
        }
    }

Why does the address increment problem exist

@philips77 philips77 changed the title Scanning for the DFU Bootloader... (timeout 5000 ms) Scanning for new address finished with: null Connection state change error: 255 newState: 0 How did it happen? Connection state change error: 255 newState: 0 An error occurred while connecting to the device: 255 Scanning for the DFU Bootloader timeouts with error 255 Dec 30, 2024
@philips77
Copy link
Member

Please provide full log. The snippet above isn't enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants