Hi,
I've been using DA16200 Mod and usings its AT command as an interface with the HOST MCU.
When the DA16200 MOD goes to DPM and when the Wi-Fi is disconnected, what we are expecting is the default configuration like
"""
60, // 1st Wakeup
60, // 2nd Wakeup : 0xdeadbeaf is no wakeup
60, // 3rd Wakeup : 0xdeadbeaf is no wakeup
60 * 30, // 4th Wakeup : 0xdeadbeaf is no wakeup
60 * 30, // 5th Wakeup : 0xdeadbeaf is no wakeup
60 * 30, // 6th Wakeup : 0xdeadbeaf is no wakeup
60 * 60, // 7th Wakeup : 0xdeadbeaf is no wakeup
60 * 60, // 8th Wakeup : 0xdeadbeaf is no wakeup
0xDEADBEAF // 9th Wakeup : 0xdeadbeaf is no wakeup
is this default config.
We encountered a scenario in which the DA16200 MOD wakes from DPM scans for Wi-Fi and goes to DPM with a periodicity of 13-14 second.
Our project is batterry operated and because of this battery drains rapidly.
DA16200 LOG has been attached where i could find wake up source as 0x90 what i was expecting was 0x82.what does this 0x90 represents i couldnt find it anywhere.
SDK Used :
******************************************************* DA16200 SDK Information* --------------------------------------------------- ** - CPU Type : Cortex-M4 (120MHz)* - OS Type : FreeRTOS 10.4.3* - Serial Flash : 4 MB* - SDK Version : V3.2.2.0 GEN* - F/W Version : FRTOS-GEN01-01-07bc5ab6e-002784* - F/W Build Time : Apr 28 2022 10:27:26* - Boot Index : 0*******************************************************
with changes mentioned in " https://renesasrulz.com/wireles-connectivity/f/wi-fi/20024/da16200-mqtt-dpm-reopened "
SDK Image : SDKV3.2.2_MQTT_stacksize.zip
[Thu Jul 07 14:38:37.612 2022] [Thu Jul 07 14:38:37.612 2022] Wakeup source is 0x82 [Thu Jul 07 14:38:37.612 2022] [Thu Jul 07 14:38:37.643 2022] >>> TIM STATUS: 0x00000008 [Thu Jul 07 14:38:37.643 2022] >>> TIM : No BCN [Thu Jul 07 14:38:37.668 2022] [Thu Jul 07 14:38:37.668 2022] >>> Network Interface (wlan0) : DOWN [Thu Jul 07 14:38:38.687 2022] [wpa_supplicant_event_disassoc] CTRL-EVENT-DISCONNECTED bssid=bc:8a:e8:45:53:4a reason=4 locally_generated=1 [Thu Jul 07 14:38:38.696 2022] Fast scan, freq=2442, num_ssids=1 [Thu Jul 07 14:38:38.759 2022] !!! No selected network !!! [Thu Jul 07 14:38:39.749 2022] [Thu Jul 07 14:38:39.749 2022] +ATPROV=STATUS 0 [Thu Jul 07 14:38:39.769 2022] Fast scan, freq=2442, num_ssids=1 [Thu Jul 07 14:38:39.831 2022] !!! No selected network !!! [Thu Jul 07 14:38:40.837 2022] Fast scan, freq=2442, num_ssids=1 [Thu Jul 07 14:38:40.902 2022] !!! No selected network !!! [Thu Jul 07 14:38:42.696 2022] !!! No selected network !!! [Thu Jul 07 14:38:48.501 2022] !!! No selected network !!! [Thu Jul 07 14:38:54.304 2022] !!! No selected network !!! [Thu Jul 07 14:39:00.105 2022] !!! No selected network !!! [Thu Jul 07 14:39:05.904 2022] !!! No selected network !!! [Thu Jul 07 14:39:08.736 2022] >> Abnormal DPM(1) operation after 1 second. [Thu Jul 07 14:39:23.698 2022] [Thu Jul 07 14:39:23.698 2022] Wakeup source is 0x90 [Thu Jul 07 14:39:23.698 2022] [Thu Jul 07 14:39:23.727 2022] [Thu Jul 07 14:39:23.727 2022] System Mode : Station Only (0) [Thu Jul 07 14:39:23.751 2022] >>> DA16x Supp Ver2.7 - 2020_07 [Thu Jul 07 14:39:23.753 2022] >>> Wi-Fi mode : b/g/n -> b/g (for DPM) [Thu Jul 07 14:39:23.755 2022] >>> MAC address (sta0) : d4:3d:39:10:ba:7c [Thu Jul 07 14:39:23.756 2022] >>> sta0 interface add OK [Thu Jul 07 14:39:23.758 2022] >>> Start STA mode... [Thu Jul 07 14:39:23.827 2022] [Thu Jul 07 14:39:23.827 2022] >>> UART1 : Clock=80000000, BaudRate=115200 [Thu Jul 07 14:39:23.830 2022] >>> UART1 : DMA Enabled ... [Thu Jul 07 14:39:23.830 2022] [Thu Jul 07 14:39:23.830 2022] +ATPROV=STATUS 0 [Thu Jul 07 14:39:24.628 2022] !!! No selected network !!! [Thu Jul 07 14:39:30.422 2022] !!! No selected network !!! [Thu Jul 07 14:39:36.223 2022] !!! No selected network !!! [Thu Jul 07 14:39:42.019 2022] !!! No selected network !!! [Thu Jul 07 14:39:47.827 2022] !!! No selected network !!! [Thu Jul 07 14:39:53.619 2022] !!! No selected network !!! [Thu Jul 07 14:39:53.794 2022] >> Abnormal DPM(1) operation after 1 second. [Thu Jul 07 14:40:08.696 2022] [Thu Jul 07 14:40:08.696 2022] Wakeup source is 0x90 [Thu Jul 07 14:40:08.696 2022] [Thu Jul 07 14:40:08.722 2022] [Thu Jul 07 14:40:08.722 2022] System Mode : Station Only (0) [Thu Jul 07 14:40:08.751 2022] >>> DA16x Supp Ver2.7 - 2020_07 [Thu Jul 07 14:40:08.755 2022] >>> Wi-Fi mode : b/g/n -> b/g (for DPM) [Thu Jul 07 14:40:08.759 2022] >>> MAC address (sta0) : d4:3d:39:10:ba:7c [Thu Jul 07 14:40:08.759 2022] >>> sta0 interface add OK [Thu Jul 07 14:40:08.764 2022] >>> Start STA mode... [Thu Jul 07 14:40:08.826 2022] [Thu Jul 07 14:40:08.826 2022] >>> UART1 : Clock=80000000, BaudRate=115200 [Thu Jul 07 14:40:08.833 2022] >>> UART1 : DMA Enabled ... [Thu Jul 07 14:40:08.833 2022] [Thu Jul 07 14:40:08.833 2022] +ATPROV=STATUS 0 [Thu Jul 07 14:40:09.628 2022] !!! No selected network !!! [Thu Jul 07 14:40:15.418 2022] !!! No selected network !!! [Thu Jul 07 14:40:21.218 2022] !!! No selected network !!! [Thu Jul 07 14:40:27.017 2022] !!! No selected network !!! [Thu Jul 07 14:40:32.818 2022] !!! No selected network !!! [Thu Jul 07 14:40:38.621 2022] !!! No selected network !!! [Thu Jul 07 14:40:38.793 2022] >> Abnormal DPM(1) operation after 1 second. [Thu Jul 07 14:40:53.695 2022] [Thu Jul 07 14:40:53.695 2022] Wakeup source is 0x90 [Thu Jul 07 14:40:53.695 2022] [Thu Jul 07 14:40:53.720 2022] [Thu Jul 07 14:40:53.720 2022] System Mode : Station Only (0) [Thu Jul 07 14:40:53.750 2022] >>> DA16x Supp Ver2.7 - 2020_07 [Thu Jul 07 14:40:53.754 2022] >>> Wi-Fi mode : b/g/n -> b/g (for DPM) [Thu Jul 07 14:40:53.760 2022] >>> MAC address (sta0) : d4:3d:39:10:ba:7c [Thu Jul 07 14:40:53.760 2022] >>> sta0 interface add OK [Thu Jul 07 14:40:53.760 2022] >>> Start STA mode... [Thu Jul 07 14:40:53.825 2022] [Thu Jul 07 14:40:53.825 2022] >>> UART1 : Clock=80000000, BaudRate=115200 [Thu Jul 07 14:40:53.836 2022] >>> UART1 : DMA Enabled ... [Thu Jul 07 14:40:53.836 2022] [Thu Jul 07 14:40:53.836 2022] +ATPROV=STATUS 0 [Thu Jul 07 14:40:54.629 2022] !!! No selected network !!! [Thu Jul 07 14:41:00.417 2022] !!! No selected network !!! [Thu Jul 07 14:41:06.216 2022] !!! No selected network !!! [Thu Jul 07 14:41:12.020 2022] !!! No selected network !!! [Thu Jul 07 14:41:17.815 2022] !!! No selected network !!! [Thu Jul 07 14:41:23.618 2022] !!! No selected network !!! [Thu Jul 07 14:41:23.790 2022] >> Abnormal DPM(1) operation after 1 second. [Thu Jul 07 14:41:38.695 2022] [Thu Jul 07 14:41:38.695 2022] Wakeup source is 0x90 [Thu Jul 07 14:41:38.695 2022] [Thu Jul 07 14:41:38.723 2022] [Thu Jul 07 14:41:38.723 2022] System Mode : Station Only (0) [Thu Jul 07 14:41:38.750 2022] >>> DA16x Supp Ver2.7 - 2020_07 [Thu Jul 07 14:41:38.753 2022] >>> Wi-Fi mode : b/g/n -> b/g (for DPM) [Thu Jul 07 14:41:38.753 2022] >>> MAC address (sta0) : d4:3d:39:10:ba:7c [Thu Jul 07 14:41:38.755 2022] >>> sta0 interface add OK [Thu Jul 07 14:41:38.755 2022] >>> Start STA mode... [Thu Jul 07 14:41:38.824 2022] [Thu Jul 07 14:41:38.824 2022] >>> UART1 : Clock=80000000, BaudRate=115200 [Thu Jul 07 14:41:38.829 2022] >>> UART1 : DMA Enabled ... [Thu Jul 07 14:41:38.829 2022] [Thu Jul 07 14:41:38.829 2022] +ATPROV=STATUS 0 [Thu Jul 07 14:41:39.626 2022] !!! No selected network !!! [Thu Jul 07 14:41:45.415 2022] !!! No selected network !!! [Thu Jul 07 14:41:51.219 2022] !!! No selected network !!! [Thu Jul 07 14:41:57.016 2022] !!! No selected network !!! [Thu Jul 07 14:42:02.817 2022] !!! No selected network !!! [Thu Jul 07 14:42:08.615 2022] !!! No selected network !!! [Thu Jul 07 14:42:08.791 2022] >> Abnormal DPM(1) operation after 1 second. [Thu Jul 07 14:42:23.693 2022] [Thu Jul 07 14:42:23.693 2022] Wakeup source is 0x90 [Thu Jul 07 14:42:23.693 2022] [Thu Jul 07 14:42:23.721 2022] [Thu Jul 07 14:42:23.721 2022] System Mode : Station Only (0) [Thu Jul 07 14:42:23.747 2022] >>> DA16x Supp Ver2.7 - 2020_07 [Thu Jul 07 14:42:23.749 2022] >>> Wi-Fi mode : b/g/n -> b/g (for DPM) [Thu Jul 07 14:42:23.751 2022] >>> MAC address (sta0) : d4:3d:39:10:ba:7c [Thu Jul 07 14:42:23.763 2022] >>> sta0 interface add OK [Thu Jul 07 14:42:23.764 2022] >>> Start STA mode... [Thu Jul 07 14:42:23.821 2022] [Thu Jul 07 14:42:23.821 2022] >>> UART1 : Clock=80000000, BaudRate=115200 [Thu Jul 07 14:42:23.824 2022] >>> UART1 : DMA Enabled ... [Thu Jul 07 14:42:23.825 2022] [Thu Jul 07 14:42:23.825 2022] +ATPROV=STATUS 0 [Thu Jul 07 14:42:24.625 2022] !!! No selected network !!! [Thu Jul 07 14:42:30.417 2022] !!! No selected network !!! [Thu Jul 07 14:42:36.213 2022] !!! No selected network !!! [Thu Jul 07 14:42:42.015 2022] !!! No selected network !!! [Thu Jul 07 14:42:47.817 2022] !!! No selected network !!! [Thu Jul 07 14:42:53.618 2022] !!! No selected network !!! [Thu Jul 07 14:42:53.790 2022] >> Abnormal DPM(1) operation after 1 second. [Thu Jul 07 14:43:08.692 2022] [Thu Jul 07 14:43:08.692 2022] Wakeup source is 0x90 [Thu Jul 07 14:43:08.692 2022] [Thu Jul 07 14:43:08.717 2022] [Thu Jul 07 14:43:08.717 2022] System Mode : Station Only (0) [Thu Jul 07 14:43:08.747 2022] >>> DA16x Supp Ver2.7 - 2020_07 [Thu Jul 07 14:43:08.749 2022] >>> Wi-Fi mode : b/g/n -> b/g (for DPM) [Thu Jul 07 14:43:08.753 2022] >>> MAC address (sta0) : d4:3d:39:10:ba:7c [Thu Jul 07 14:43:08.753 2022] >>> sta0 interface add OK [Thu Jul 07 14:43:08.757 2022] >>> Start STA mode... [Thu Jul 07 14:43:08.822 2022] [Thu Jul 07 14:43:08.822 2022] >>> UART1 : Clock=80000000, BaudRate=115200 [Thu Jul 07 14:43:08.829 2022] >>> UART1 : DMA Enabled ... [Thu Jul 07 14:43:08.829 2022] [Thu Jul 07 14:43:08.829 2022] +ATPROV=STATUS 0 [Thu Jul 07 14:43:09.621 2022] !!! No selected network !!! [Thu Jul 07 14:43:15.414 2022] !!! No selected network !!! [Thu Jul 07 14:43:21.214 2022] !!! No selected network !!! [Thu Jul 07 14:43:27.016 2022] !!! No selected network !!! [Thu Jul 07 14:43:32.814 2022] !!! No selected network !!! [Thu Jul 07 14:43:38.613 2022] !!! No selected network !!! [Thu Jul 07 14:43:38.788 2022] >> Abnormal DPM(1) operation after 1 second. [Thu Jul 07 14:43:53.690 2022] [Thu Jul 07 14:43:53.691 2022] Wakeup source is 0x90 [Thu Jul 07 14:43:53.691 2022] [Thu Jul 07 14:43:53.716 2022] [Thu Jul 07 14:43:53.716 2022] System Mode : Station Only (0) [Thu Jul 07 14:43:53.746 2022] >>> DA16x Supp Ver2.7 - 2020_07 [Thu Jul 07 14:43:53.749 2022] >>> Wi-Fi mode : b/g/n -> b/g (for DPM) [Thu Jul 07 14:43:53.754 2022] >>> MAC address (sta0) : d4:3d:39:10:ba:7c [Thu Jul 07 14:43:53.754 2022] >>> sta0 interface add OK [Thu Jul 07 14:43:53.754 2022] >>> Start STA mode... [Thu Jul 07 14:43:53.820 2022] [Thu Jul 07 14:43:53.820 2022] >>> UART1 : Clock=80000000, BaudRate=115200 [Thu Jul 07 14:43:53.830 2022] >>> UART1 : DMA Enabled ... [Thu Jul 07 14:43:53.830 2022] [Thu Jul 07 14:43:53.830 2022] +ATPROV=STATUS 0 [Thu Jul 07 14:43:54.623 2022] !!! No selected network !!! [Thu Jul 07 14:44:00.412 2022] !!! No selected network !!! [Thu Jul 07 14:44:06.214 2022] !!! No selected network !!! [Thu Jul 07 14:44:12.015 2022] !!! No selected network !!! [Thu Jul 07 14:44:17.815 2022] !!! No selected network !!! [Thu Jul 07 14:44:23.614 2022] !!! No selected network !!! [Thu Jul 07 14:44:23.787 2022] >> Abnormal DPM(1) operation after 1 second. [Thu Jul 07 14:44:38.690 2022] [Thu Jul 07 14:44:38.690 2022] Wakeup source is 0x90 [Thu Jul 07 14:44:38.690 2022] [Thu Jul 07 14:44:38.715 2022] [Thu Jul 07 14:44:38.715 2022] System Mode : Station Only (0) [Thu Jul 07 14:44:38.744 2022] >>> DA16x Supp Ver2.7 - 2020_07 [Thu Jul 07 14:44:38.746 2022] >>> Wi-Fi mode : b/g/n -> b/g (for DPM) [Thu Jul 07 14:44:38.747 2022] >>> MAC address (sta0) : d4:3d:39:10:ba:7c [Thu Jul 07 14:44:38.748 2022] >>> sta0 interface add OK [Thu Jul 07 14:44:38.749 2022] >>> Start STA mode... [Thu Jul 07 14:44:38.818 2022] [Thu Jul 07 14:44:38.818 2022] >>> UART1 : Clock=80000000, BaudRate=115200 [Thu Jul 07 14:44:38.820 2022] >>> UART1 : DMA Enabled ... [Thu Jul 07 14:44:38.820 2022] [Thu Jul 07 14:44:38.820 2022] +ATPROV=STATUS 0 [Thu Jul 07 14:44:39.621 2022] !!! No selected network !!! [Thu Jul 07 14:44:45.413 2022] !!! No selected network !!! [Thu Jul 07 14:44:51.213 2022] !!! No selected network !!! [Thu Jul 07 14:44:57.012 2022] !!! No selected network !!! [Thu Jul 07 14:45:02.809 2022] !!! No selected network !!! [Thu Jul 07 14:45:08.611 2022] !!! No selected network !!! [Thu Jul 07 14:45:08.784 2022] >> Abnormal DPM(1) operation after 1 second. [Thu Jul 07 14:45:23.689 2022] [Thu Jul 07 14:45:23.689 2022] Wakeup source is 0x90 [Thu Jul 07 14:45:23.689 2022] [Thu Jul 07 14:45:23.714 2022] [Thu Jul 07 14:45:23.714 2022] System Mode : Station Only (0) [Thu Jul 07 14:45:23.745 2022] >>> DA16x Supp Ver2.7 - 2020_07 [Thu Jul 07 14:45:23.751 2022] >>> Wi-Fi mode : b/g/n -> b/g (for DPM) [Thu Jul 07 14:45:23.751 2022] >>> MAC address (sta0) : d4:3d:39:10:ba:7c [Thu Jul 07 14:45:23.756 2022] >>> sta0 interface add OK [Thu Jul 07 14:45:23.756 2022] >>> Start STA mode... [Thu Jul 07 14:45:23.817 2022] [Thu Jul 07 14:45:23.817 2022] >>> UART1 : Clock=80000000, BaudRate=115200 [Thu Jul 07 14:45:23.823 2022] >>> UART1 : DMA Enabled ... [Thu Jul 07 14:45:23.823 2022] [Thu Jul 07 14:45:23.823 2022] +ATPROV=STATUS 0 [Thu Jul 07 14:45:24.620 2022] !!! No selected network !!! [Thu Jul 07 14:45:30.413 2022] !!! No selected network !!! [Thu Jul 07 14:45:36.210 2022] !!! No selected network !!! [Thu Jul 07 14:45:42.012 2022] !!! No selected network !!! [Thu Jul 07 14:45:47.811 2022] !!! No selected network !!! [Thu Jul 07 14:45:53.613 2022] !!! No selected network !!! [Thu Jul 07 14:45:53.785 2022] >> Abnormal DPM(1) operation after 1 second. [Thu Jul 07 14:46:08.685 2022] [Thu Jul 07 14:46:08.685 2022] Wakeup source is 0x90 [Thu Jul 07 14:46:08.685 2022] [Thu Jul 07 14:46:08.713 2022] [Thu Jul 07 14:46:08.713 2022] System Mode : Station Only (0) [Thu Jul 07 14:46:08.741 2022] >>> DA16x Supp Ver2.7 - 2020_07 [Thu Jul 07 14:46:08.743 2022] >>> Wi-Fi mode : b/g/n -> b/g (for DPM) [Thu Jul 07 14:46:08.744 2022] >>> MAC address (sta0) : d4:3d:39:10:ba:7c [Thu Jul 07 14:46:08.746 2022] >>> sta0 interface add OK [Thu Jul 07 14:46:08.747 2022] >>> Start STA mode... [Thu Jul 07 14:46:08.814 2022] [Thu Jul 07 14:46:08.814 2022] >>> UART1 : Clock=80000000, BaudRate=115200 [Thu Jul 07 14:46:08.815 2022] >>> UART1 : DMA Enabled ... [Thu Jul 07 14:46:08.817 2022] [Thu Jul 07 14:46:08.817 2022] +ATPROV=STATUS 0 [Thu Jul 07 14:46:09.617 2022] !!! No selected network !!! [Thu Jul 07 14:46:15.409 2022] !!! No selected network !!! [Thu Jul 07 14:46:21.213 2022] !!! No selected network !!! [Thu Jul 07 14:46:27.012 2022] !!! No selected network !!! [Thu Jul 07 14:46:32.809 2022] !!! No selected network !!! [Thu Jul 07 14:46:38.610 2022] !!! No selected network !!! [Thu Jul 07 14:46:38.784 2022] >> Abnormal DPM(1) operation after 1 second. [Thu Jul 07 14:46:53.687 2022] [Thu Jul 07 14:46:53.687 2022] Wakeup source is 0x90 [Thu Jul 07 14:46:53.687 2022] [Thu Jul 07 14:46:53.712 2022] [Thu Jul 07 14:46:53.712 2022] System Mode : Station Only (0) [Thu Jul 07 14:46:53.742 2022] >>> DA16x Supp Ver2.7 - 2020_07 [Thu Jul 07 14:46:53.745 2022] >>> Wi-Fi mode : b/g/n -> b/g (for DPM) [Thu Jul 07 14:46:53.749 2022] >>> MAC address (sta0) : d4:3d:39:10:ba:7c [Thu Jul 07 14:46:53.749 2022] >>> sta0 interface add OK [Thu Jul 07 14:46:53.764 2022] >>> Start STA mode... [Thu Jul 07 14:46:53.817 2022] [Thu Jul 07 14:46:53.817 2022] >>> UART1 : Clock=80000000, BaudRate=115200 [Thu Jul 07 14:46:53.825 2022] >>> UART1 : DMA Enabled ... [Thu Jul 07 14:46:53.825 2022] [Thu Jul 07 14:46:53.825 2022] +ATPROV=STATUS 0 [Thu Jul 07 14:46:54.619 2022] !!! No selected network !!! [Thu Jul 07 14:47:00.411 2022] !!! No selected network !!! [Thu Jul 07 14:47:06.210 2022] !!! No selected network !!! [Thu Jul 07 14:47:12.008 2022] !!! No selected network !!! [Thu Jul 07 14:47:17.809 2022] !!! No selected network !!! [Thu Jul 07 14:47:23.613 2022] !!! No selected network !!! [Thu Jul 07 14:47:23.783 2022] >> Abnormal DPM(1) operation after 1 second. [Thu Jul 07 14:47:38.686 2022] [Thu Jul 07 14:47:38.686 2022] Wakeup source is 0x90 [Thu Jul 07 14:47:38.686 2022] [Thu Jul 07 14:47:38.711 2022] [Thu Jul 07 14:47:38.711 2022] System Mode : Station Only (0) [Thu Jul 07 14:47:38.740 2022] >>> DA16x Supp Ver2.7 - 2020_07 [Thu Jul 07 14:47:38.742 2022] >>> Wi-Fi mode : b/g/n -> b/g (for DPM) [Thu Jul 07 14:47:38.743 2022] >>> MAC address (sta0) : d4:3d:39:10:ba:7c [Thu Jul 07 14:47:38.745 2022] >>> sta0 interface add OK [Thu Jul 07 14:47:38.746 2022] >>> Start STA mode... [Thu Jul 07 14:47:38.815 2022] [Thu Jul 07 14:47:38.815 2022] >>> UART1 : Clock=80000000, BaudRate=115200 [Thu Jul 07 14:47:38.821 2022] >>> UART1 : DMA Enabled ... [Thu Jul 07 14:47:38.821 2022] [Thu Jul 07 14:47:38.821 2022] +ATPROV=STATUS 0 [Thu Jul 07 14:47:39.623 2022] !!! No selected network !!! [Thu Jul 07 14:47:45.407 2022] !!! No selected network !!! [Thu Jul 07 14:47:51.208 2022] !!! No selected network !!! [Thu Jul 07 14:47:57.009 2022] !!! No selected network !!! [Thu Jul 07 14:48:02.808 2022] !!! No selected network !!! [Thu Jul 07 14:48:08.608 2022] !!! No selected network !!! [Thu Jul 07 14:48:08.782 2022] >> Abnormal DPM(1) operation after 1 second. [Thu Jul 07 14:48:23.685 2022] [Thu Jul 07 14:48:23.685 2022] Wakeup source is 0x90 [Thu Jul 07 14:48:23.685 2022] [Thu Jul 07 14:48:23.710 2022] [Thu Jul 07 14:48:23.710 2022] System Mode : Station Only (0) [Thu Jul 07 14:48:23.739 2022] >>> DA16x Supp Ver2.7 - 2020_07 [Thu Jul 07 14:48:23.744 2022] >>> Wi-Fi mode : b/g/n -> b/g (for DPM) [Thu Jul 07 14:48:23.750 2022] >>> MAC address (sta0) : d4:3d:39:10:ba:7c [Thu Jul 07 14:48:23.750 2022] >>> sta0 interface add OK [Thu Jul 07 14:48:23.750 2022] >>> Start STA mode... [Thu Jul 07 14:48:23.815 2022] [Thu Jul 07 14:48:23.815 2022] >>> UART1 : Clock=80000000, BaudRate=115200 [Thu Jul 07 14:48:23.821 2022] >>> UART1 : DMA Enabled ... [Thu Jul 07 14:48:23.821 2022] [Thu Jul 07 14:48:23.821 2022] +ATPROV=STATUS 0 [Thu Jul 07 14:48:24.616 2022] !!! No selected network !!! [Thu Jul 07 14:48:30.408 2022] !!! No selected network !!! [Thu Jul 07 14:48:36.207 2022] !!! No selected network !!! [Thu Jul 07 14:48:42.009 2022] !!! No selected network !!! [Thu Jul 07 14:48:47.809 2022] !!! No selected network !!! [Thu Jul 07 14:48:53.609 2022] !!! No selected network !!! [Thu Jul 07 14:48:53.781 2022] >> Abnormal DPM(1) operation after 1 second. [Thu Jul 07 14:49:08.684 2022] [Thu Jul 07 14:49:08.684 2022] Wakeup source is 0x90 [Thu Jul 07 14:49:08.684 2022] [Thu Jul 07 14:49:08.712 2022] [Thu Jul 07 14:49:08.712 2022] System Mode : Station Only (0) [Thu Jul 07 14:49:08.740 2022] >>> DA16x Supp Ver2.7 - 2020_07 [Thu Jul 07 14:49:08.745 2022] >>> Wi-Fi mode : b/g/n -> b/g (for DPM) [Thu Jul 07 14:49:08.745 2022] >>> MAC address (sta0) : d4:3d:39:10:ba:7c [Thu Jul 07 14:49:08.750 2022] >>> sta0 interface add OK [Thu Jul 07 14:49:08.750 2022] >>> Start STA mode... [Thu Jul 07 14:49:08.814 2022] [Thu Jul 07 14:49:08.814 2022] >>> UART1 : Clock=80000000, BaudRate=115200 [Thu Jul 07 14:49:08.820 2022] >>> UART1 : DMA Enabled ... [Thu Jul 07 14:49:08.820 2022] [Thu Jul 07 14:49:08.820 2022] +ATPROV=STATUS 0 [Thu Jul 07 14:49:09.616 2022] !!! No selected network !!!
Thanks & Regards
Prem Sai
Hi Prem Sai,The wake up sources codes can be found in file rtc.h, enum WAKEUP_SOURCE. According to the enum, code 0x82 corresponds to WAKEUP_COUNTER_WITH_RETENTIONwhile code 0x90 corresponds to WAKEUP_SENSOR_WITH_RETENTIONAre you using the sensor wake up function? Please refer to page 68 of the datasheethttps://www.renesas.com/eu/en/document/dst/da16200-datasheet?language=en&r=1600096 for more information on waking up from sensor.You also mentioned
premsai said:We encountered a scenario in which the DA16200 MOD wakes from DPM scans for Wi-Fi and goes to DPM with a periodicity of 13-14 second.
does this mean that this behaviour is happening some of the times and others not or does it always happen? Have you seen any correlation between the frequency of this scenario or the appearance of it with other possible changes in your setup?Best regards,AA_Renesas
Thanks for the response,
we have not used any WAKEUP_SENSOR in this project.
AA_Renesas said:does this mean that this behaviour is happening some of the times and others not or does it always happen? Have you seen any correlation between the frequency of this scenario or the appearance of it with other possible changes in your setup?
We exactly don't know how this happend. Once this "0x90" is the wakeup source it will continue this abnormal behaviour. Once we Factory reset the module it goes back to the default settings. We couldnt find any correlation since this behaviour was kind of random.Any possible solution how this could have happened in the first place?
I'll attach the AT sequence we used.
FOR INITIAL CONFIGURATION ~~~~~~~~~~~~~~~~~~~~~~~~~ AT+WFJAP=? AT+WFJAPA=XX,XX AT+WFSTA=? AT+NWSNTP=1 AT+DPMKA=30000 AT+DPMTIMWU=10 AT+NWMQCID=xx AT+NWMQPING=600 AT+NWMQTT=xx,1883,xx,xx,1,0 AT+DPM=1 FOR EVERY WAKE-UP OF HOST-MCU ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ AT+MCUWUDONE AT+CLRDPMSLPEXT AT+WFSTA=? AT+NWMQCL=? //Receive commands and process using MQTT ... //Once finished AT+SETDPMSLPEXT
Thanks
Hi Prem Sai,I have noticed that you are using version SDKv3.2.2.0. There is a newer version 3.2.4.0 available for download on our websitehttps://www.renesas.com/eu/en/products/interface-connectivity/wireless-communications/wi-fi/low-power-wi-fi/da16200-ultra-low-power-wi-fi-soc-battery-powered-iot-devices#design_development
Could you please update to the new version and let us know if you are getting similar behaviour?Best regards,AA_Renesas
Currently we are using "SDKv3.2.2.0" with the changes done by DIALOG.
Ref:https://renesasrulz.com/wireles-connectivity/f/wi-fi/20024/da16200-mqtt-dpm-reopened
If we use "SDKv3.2.4.0" these changes might not be present is it possible to provide the updated SDKv3.2.4.0 image with the necessary changes.
Hi Prem Sai,
We are checking this issue internally and will get back to you.Best regards,AA_Renesas
Hi Prem Sai,Can you confirm if you are using one of our Evaluation kits or a custom board?Best regards,AA_Renesas
Hi Renesas support team,
I will be communicating with you now onwards on behalf of Prem Sai regarding any clarifications you need in order to solve this issue,
As for your question, We are using a custom board.
Thank you so much for your prompt responses.
Regards,
Nandagopal
Hi Nandagopal,Thank you for the confirmation. We are working on this and will get back to you.Best regards,AA_Renesas
Hi Nandagopal,Our team internally has tried to replicate this issue using an evaluation kit for the DA16200MOD with no success so far. The device on our side is running and waking up as expected.The interval for 0x90 wake-ups on your side is about 15 seconds. Is it possible that there was some process that the MCU was doing during that time?Please also check below chapter 4 on Abnormal DPM operationhttps://www.renesas.com/kr/en/document/mas/um-wi-005-da16200-da16600-dpm-manager-user-manual?language=en
Could you please share the following information:
1. A description or schematic of the hardware connections between the MCU and the DA16200MOD that is also showing the GPIO pins used.2. If you have made any other changes that you haven't mentioned above.3. UART1 and UART0 (DA16200 console log) logs with timestamps.Best regards,AA_Renesas
Hi Renesas Team,
Thank you for the continued & prompt support.
AA_Renesas said:Is it possible that there was some process that the MCU was doing during that time?
Answer: The Host MCU is in sleep mode most of the time. The Host MCU is only woken up by the Dialog Module via an interrupt signal when an MQTT Message is received.
For this particular issue , The Host MCU is in sleep condition the entire time and hence not involved. This issue is isolated within the Dialog module itself.
I will share the GPIO Schematics soon .
Thank you once again,
Hi Nandagopal,Thank you for your answer. Please let us know with the rest of the requested information (GPIO, schematics, UART logs) when you can.Best regards,AA_Renesas
DA WIFI MODULE.PDF
Please Find Attached GPIO Schematics. If you need any clarification regarding the schematics please let me know
Thank you for your prompt & consistent support
Hi Nandagopal,Thank you for sharing your schematics and for your offer for additional information. Would it be possible to also share the UART1 and UART0 (DA16200 console log) logs with timestamps as requested above?Best regards,AA_Renesas
Hi Renesas team,
I will try to get you the UART Logs. This log was uploaded at the start of this query by Premsai. Does this help in any way?
Hi Nandagopal,Thank you for your answer. While this log is useful it would be very helpful if you could also share the log from the second UART interface too (we need both UART0 and UART1 logs when the erratic behaviour occurs). This could potentially help us better pinpoint the origin of the issue.Best regards,AA_Renesas
I was made aware that only the above submitted UART log was recorded during the occurrence of this issue. The same firmware was flashed again and factory resetted using the Multi downloader tool for Dialog and we were unable to recreate this issue again as of now.
premsai said:Hi, Currently we are using "SDKv3.2.2.0" with the changes done by DIALOG. Ref:https://renesasrulz.com/wireles-connectivity/f/wi-fi/20024/da16200-mqtt-dpm-reopened SDK Image : SDKV3.2.2_MQTT_stacksize.zip If we use "SDKv3.2.4.0" these changes might not be present is it possible to provide the updated SDKv3.2.4.0 image with the necessary changes. Thanks Prem Sai
Hi Renesas Team
Would it possible to provide the updated SDK v3.2.4.0 with the necessary changes that were made by the Dialog Team?
The Reference link will give info on the custom changes that were made by Dialog to the SDK v3.2.2.0 for our requirement , so that you can repeat the same changes in the latest SDK.
Thank you for your constant support!