Hey Admin,
Thanks admin! Thanks for the quick reply. Hard for me to do anything outside of the bootloader, but this might be a possible solution:
can we somehow standardize the code for bluetooth programming. So that we can do something like this:
User always implements a certain method (the one you mentioned)
public void checkBluetoothForProgramming() {
if(uartGetByte(wireless_UART)='Peta' + 0xff + 'bt')//the character 'r' is received
wdt_enable(WDTO_250MS);//reset microcontroller
printf('Peta' + 0xff + 'reply'); //not correct, but just put here to give you an idea
}
}
Maybe Webbot can implement this into his loop, in the future?
Also, instead of just 'r', something more non-generic similar to what the bootloader uses already 'Peta' + 0xff + 'bt', this way we can give users a specific code they need to check for when using bluetooth to program.Also, this method should also include some kind of special reply that would be something along the lines of 'Peta' + 0xff + 'replied', to notify my application that reset has been initiated. This would allow my app to switch to the programming mode. I'll dev something up and send it to Webbot for approval for implementation into his library.
(Note the check strings that can altered to any predefined strings)
This should be a temporary fix until the time comes when I decide to dev a new bootloader.