I am working on a dev board which utilizes the WMP100. I have recently been trying to incorporate SW deep sleep mode activated by AT+WBHV=1,2 into my app.
I seem to have locked myself out of two of my test devices. In my app I set AT+WBHV=1,2 and deactivate serial/USB ports using command AT+WMFM. Then I reset the device with AT+CFUN=1 as required for the module to take on the sleep mode. I have a software timer set and an accelerometer interrupt set which upon activation should reset to active mode AT+WBHV=1,0 and reboots the device. The code worked fine when I did not deactivate the serial port, and I could still communicate with the WMP (although in this case the sleep mode did not take effect) but has bugged up with the serial ports off… So now with the serial ports OFF and module state AT+WBHV=1,2 saved to flash I cannot communicate with the device to deactivate from sleep mode and none of my wake events are working!
It was easy with AT+W32K=1 sleep mode because it is not saved to flash so all you need to do is restart the device and it would default to normal idle. According to the Open AT tutorial documentation it implies you can exit sleep mode when “DTR line goes up”… does this mean setting the DTR line high will reset the stored values of WBHV=1,2 and WMFM=0,0,1 back to their defaults?
Any advice would be much appreciated!