Keepalive in PSM BG77

hello, I am using BG77 to send messages to the server through the MQTT protocol now. But after I woke up from PSM mode, I lost connection with my server, which meant that I could not send a message to the server. Although I configured keepalive time follow as AT+QMTCFG=“keepalive”,0,3600 and set T3324 as 10 minutes and T3412 as 40 minutes, but something wrong. Can someone help me fix or explain it? I extremely appreciate any help.

Hello @Vinh_Tran

After enter PSM, the network will be disconnected, the PDP will detach/release. so the socket actually already disconnect after wakeup from PSM.

so, which are specific cases that I should use the command AT+QMTCFG=“keepalive”",,?