I have a problem with Dongle BLED112.
I loaded spp_over_ble firmware 184.108.40.206 for BLED112 on two USB dongles and the spp_over_ble application runs fine. (I controlled usbcdc.xml file with USB = enabled property)
Now I can't enter in DFU mode.
If I check firmware revision on this two dongles with BLEGUI2 I obtain:
ble_rsp_system_get_info major: 0 (0x0000) minor: 0 (0x0000) patch: 2076 (0x081c) build: 29810 (0x7472) ll_version: 51465 (0xc909) protocol_version: 0 (0x00) hw: 136 (0x88)
I know that the only workaround is to open dongle and use CCDebugger, but where did I get wrong?
Did you try enter command ATY to put the dongle into DFU mode? There is also another backdoor to enter DFU mode, it is by writing 0xff to the characteristic c_dfu_reboot_trigger.
Thank you very much.
It works fine and I can enter in dfu mode without open it.
So if I use spp over ble example I can't enter in DFU mode via BLEGUI2 because it doesn't work: correct?
Correct, when running a BGScript application in BLED112 dongle you need to have some "backdoor" that will put the dongle into DFU mode.
This topic is covered in detail in the following thread:
i am a novice when it comes to writing bgscripts to the bled112 dongle can you please explan how do i write the 0xff to the characteristic c_dfu_reboot_trigger to the dongle do i connect it to the usb port and open a bgscript from the command line in windows?
@louwng no, you don't run BGScript on the host PC. BGScript applications are compiled into a binary image that can be flashed into the dongle. The script is then executed in the dongle using the internal 8051 MCU. For introduction to some of the basic concepts, see for example this article:
This article explains how to run BGScript applications on a BLED112 dongle and how to ensure that the dongle can be returned into DFU mode when needed:
Some of our BGscript examples implement a proprietary "DFU reboot" service that allows the dongle to be rebooted into DFU mode. To use this "backdoor", you need to connect to the dongle over the air, using for example our BLE Android demo App that is available here:
See attached screenshot to see how the DFU reboot can be triggered using the demo app. Once you have booted the dongle into DFU mode you can then use our BLEGUI PC tool to reflash the dongle with new firmware.