E/DfuBaseService: Connection state change error: 133 newState: 0
See original GitHub issueSorry for submitting a new issue, but I encountered another issue and reopened my issue from earlier, and I’m not sure if you saw it. Also, should DfuTarg advertise with the same MAC address as the device’s address or should it be the device’s address +1?
Any help would be appreciated.
I have created a working zip file to upgrade my device, and I followed these steps below:
- Scan for Bluetooth LE device
- Start DFU using DfuServiceInitiator
- Wait for complete or fail callbacks
I get this error below:
E/DfuBaseService: Connection state change error: 133 newState: 0
E/DfuBaseService: An error occurred while connecting to the device:133
DFU Bootloader version:
SDK version: 11.0 Bonding used: no Library version: 1.10.3 Device information:
Device: Samsung Galaxy S9 OS: Android 10
Logs:
2020-06-15 16:51:31.691 8388-8423/org.aihealth.ineck E/DfuBaseService: Connection state change error: 133 newState: 0
2020-06-15 16:51:31.691 8388-8768/org.aihealth.ineck E/DfuBaseService: An error occurred while connecting to the device:133
2020-06-15 16:51:31.693 8388-8768/org.aihealth.ineck D/BluetoothGatt: refresh() - device: F2:DB:E7:CB:5D:08
2020-06-15 16:51:31.694 8388-8768/org.aihealth.ineck D/BluetoothGatt: close()
2020-06-15 16:51:31.696 8388-8768/org.aihealth.ineck D/BluetoothGatt: unregisterApp() - mClientIf=12
2020-06-15 16:51:33.725 8388-8768/org.aihealth.ineck D/BluetoothAdapter: STATE_ON
2020-06-15 16:51:33.728 8388-8768/org.aihealth.ineck D/BluetoothGatt: connect() - device: F2:DB:E7:CB:5D:08, auto: false
2020-06-15 16:51:33.728 8388-8768/org.aihealth.ineck D/BluetoothAdapter: isSecureModeEnabled
2020-06-15 16:51:33.728 8388-8768/org.aihealth.ineck D/BluetoothGatt: registerApp()
2020-06-15 16:51:33.728 8388-8768/org.aihealth.ineck D/BluetoothGatt: registerApp() - UUID=c6fa3279-14ae-4dd7-a48a-dc5e8718464c
2020-06-15 16:51:33.732 8388-8423/org.aihealth.ineck D/BluetoothGatt: onClientRegistered() - status=0 clientIf=12
2020-06-15 16:51:38.752 8388-8423/org.aihealth.ineck D/BluetoothGatt: onClientConnectionState() - status=133 clientIf=12 device=F2:DB:E7:CB:5D:08
2020-06-15 16:51:38.760 8388-8423/org.aihealth.ineck E/DfuBaseService: Connection state change error: 133 newState: 0
2020-06-15 16:51:38.761 8388-8768/org.aihealth.ineck E/DfuBaseService: An error occurred while connecting to the device:133
2020-06-15 16:51:38.763 8388-8768/org.aihealth.ineck D/BluetoothGatt: refresh() - device: F2:DB:E7:CB:5D:08
2020-06-15 16:51:38.765 8388-8768/org.aihealth.ineck D/BluetoothGatt: close()
2020-06-15 16:51:38.771 8388-8768/org.aihealth.ineck D/BluetoothGatt: unregisterApp() - mClientIf=12
2020-06-15 16:51:40.807 8388-8768/org.aihealth.ineck D/BluetoothAdapter: STATE_ON
2020-06-15 16:51:40.812 8388-8768/org.aihealth.ineck D/BluetoothGatt: connect() - device: F2:DB:E7:CB:5D:08, auto: false
2020-06-15 16:51:40.813 8388-8768/org.aihealth.ineck D/BluetoothAdapter: isSecureModeEnabled
2020-06-15 16:51:40.814 8388-8768/org.aihealth.ineck D/BluetoothGatt: registerApp()
2020-06-15 16:51:40.815 8388-8768/org.aihealth.ineck D/BluetoothGatt: registerApp() - UUID=5bc7b4fe-c9ea-4fd4-a2ed-c8ac47739cbe
2020-06-15 16:51:40.822 8388-8423/org.aihealth.ineck D/BluetoothGatt: onClientRegistered() - status=0 clientIf=12
2020-06-15 16:51:45.851 8388-8423/org.aihealth.ineck D/BluetoothGatt: onClientConnectionState() - status=133 clientIf=12 device=F2:DB:E7:CB:5D:08
2020-06-15 16:51:45.856 8388-8423/org.aihealth.ineck E/DfuBaseService: Connection state change error: 133 newState: 0
2020-06-15 16:51:45.856 8388-8768/org.aihealth.ineck E/DfuBaseService: An error occurred while connecting to the device:133
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
how to solve it? Connection state change error: 133 newState ...
When DFU is executed in the Android application, an error occurs as above. I used only the library given by GitHub.
Read more >Bluetooth in DFU mode: connection always fails for some ...
E/DfuBaseService: Connection state change error: 133 newState: 0 07-26 ... I was able to successfully connect to the device in DFU mode.
Read more >GATT error 133 on ANDROID - Bluetooth forum - TI E2E
the CC26 does not show any connection state change, I tried my project on the CC2650 LaunchPad (rev 1.1) and on my board,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hi I would like to recommend re-opening this issue. I could have created a new issue, but its the same issue without a resolve for me. @philips77 if you would rather, I can log this as a new issue.
I have the exact same issue as this - and I can conclude that it is not because of the phone. I think this is related, identical or the exact same experience that developers go through to other issues others have raised: #245 #250 #255 Possilby #234 (but we’re not using legacy DFU?)
and so it’s worth addressing this with an updated sample code or documentation that prevents this behaviour so people don’t need to go through multiple closed issues.
Here’s what I did:
In my case the device goes into bootloader mode, but then the connection seems to get an error.
I’m really lost as to how the same code as the repository, would create a difference? There must be somewhere that is configuring a different behaviour.
We’re using the latest Android version, firmware and SDK.
Here’s the relevant gradle dependency
As mentioned in #255
This did not work for me, it’s consistently happening.
here’s the log from nRF toolbox clone - a successful update:
and here’s the log from the new implementation - not a successful update.
The implementation is identical to the cloned repository, with the one exception that I hard-coded the
.setPacketsReceiptNotificationsValue()(which was derived from nRFTool box implementation).When I run the above code, the device goes into bootloader mode (nice LED that tells me that) and, well it hangs with the above message.
If I run the nRF Toolbox clone, I get 100% success rate. I run the above code, it’s a 100% failure rate so far (I’ve only started on this today!)
I’m using Samsung Galaxy A10, Android 10. I’ve tried 6 times with the refresh services strategy - and the 133 error seems to come through.
I’ll switch to nRF Toolbox and it works without a hitch! What am I doing wrong?
I got the DFU to work. I talked to my firmware team making the hardware, and they changed the MAC address of DfuTarg to be the same as the device itself. Before it was +1.