Hl7812 kudpsnd no carrier issue

Hi,
HL7812.5 .5.8.0-23.10.0.F reeRTOS.w41 is the modem and sw version.

[AT+KUDPSND=1,“10.105.16.254”,53,64] is started returning NO CARRIER error after connect print. I was running a dns resolution app without this problem previously. Any idea what may have caused this issue?

I am running the same application on the other boards which have the same configs without problems.

Here are the logs:

[00:01:53.327,000] <dbg> modem_hl7812: send_at_cmd: OUT: [AT+KUDPCFG?]
[00:01:53.327,000] <dbg> modem_hl7812: send_at_cmd: SEND ATCMD k_sem_take RET01: 0
+KUDPCFG: 1,1,0,4184,0,"",0,0,1,0,3
[00:01:53.336,000] <dbg> modem_hl7812: hl7812_rx: HANDLE +KUDPCFG:  (len:25)
[00:01:53.336,000] <dbg> modem_hl7812: on_cmd_sockcreate: +KUDPCFG: 1
[00:01:53.336,000] <dbg> modem_hl7812: on_cmd_sockcreate: look up new socket by creation id
OK
[00:01:53.337,000] <dbg> modem_hl7812: hl7812_rx: HANDLE OK (len:0)
[00:01:53.337,000] <dbg> modem_hl7812: send_at_cmd: reset iface_ctx.response_sem: 0
[00:01:53.337,000] <dbg> modem_hl7812: send_at_cmd: OUT: [AT+CGCONTRDP=1]
[00:01:53.338,000] <dbg> modem_hl7812: send_at_cmd: SEND ATCMD k_sem_take RET01: 0
+CGCONTRDP: 1,5,"netxxadsada,10.149.38.235.255.255.255.248,10.149.38.233,10.105.16.254,10.105.144.254,,,,
[00:01:53.351,000] <dbg> modem_hl7812: hl7812_rx: HANDLE +CGCONTRDP:  (len:121)
[00:01:53.351,000] <dbg> modem_hl7812: on_cmd_atcmdinfo_ipaddr: IP info: 121 1,5,"net",10.149.38.235.255.255.255.248,10.149.38.233,10.105.16.254,10.105.144.254,,,,,,,,,
[00:01:53.351,000] <dbg> modem_hl7812: on_cmd_atcmdinfo_ipaddr: IP string len: 30
[00:01:53.352,000] <dbg> modem_hl7812: on_cmd_atcmdinfo_ipaddr: IP addr: 10.149.38.235
[00:01:53.352,000] <dbg> modem_hl7812: on_cmd_atcmdinfo_ipaddr: IPv4 DNS addr: 10.105.16.254
OK
[00:01:55.456,000] <dbg> modem_hl7812: send_at_cmd: OUT: [AT+KUDPSND=1,"10.105.16.254",53,64]
CONNECT
[00:01:55.470,000] <dbg> modem_hl7812: hl7812_rx: HANDLE CONNECT (len:0)
[00:01:55.546,000] <dbg> modem_hl7812: send_data: Sent 64 bytes
NO CARRIER
[00:01:55.556,000] <dbg> modem_hl7812: hl7812_rx: HANDLE NO CARRIER (len:0)

00:01:55.556,000] <err> aws_iot_: getaddrinfo, error -11
[00:01:55.556,000] <err> aws_iot client_broker_init, error: -10

+KUDP_NOTIF: 1,8
[00:01:55.558,000] <dbg> modem_hl7812: hl7812_netfeasa_rx: HANDLE +KUDP_NOTIF:  (len:3)
[00:01:55.558,000] <wrn> modem_hl7812: +K**P_NOTIF: 1,8

Can you paste the ok log for comparison

Hi @jyijyi here it is

[00:01:54.612,000] <dbg> modem_hl7812: send_at_cmd: OUT: [AT+KUDPSND=1,"10.105.16.254",53,64]
CONNECT
[00:01:54.627,000] <dbg> modem_hl7812: hl7812_rx: HANDLE CONNECT (len:0)
[00:01:54.704,000] <dbg> modem_hl7812: send_data: Sent 64 bytes
OK
[00:01:54.711,000] <dbg> modem_hl7812: hl7812_rx: HANDLE OK (len:0)
[00:01:54.711,000] <dbg> modem_hl7812: allow_sleep: Keep sleep
+KUDP_DATA: 1,192
[00:01:55.422,000] <dbg> modem_hl7812: hl7812_rx: HANDLE +KUDP_DATA:  (len:5)
[00:01:55.422,000] <dbg> modem_hl7812: allow_sleep: Keep awake
[00:01:55.422,000] <dbg> modem_hl7812: allow_sleep_with_timeout: Keep awake
[00:01:55.422,000] <dbg> modem_hl7812: is_cmd_ready: 265 LOWPOWER VGPIO:1 GPIO6:1 UART_CTS:0
[00:01:55.422,000] <dbg> modem_hl7812: start_socket_rx: Start socket RX ID:1 size:192
[00:01:55.422,000] <dbg> modem_hl7812: send_at_cmd: OUT: [AT+KUDPRCV=1,192]
CONNECT
[00:01:55.433,000] <dbg> modem_hl7812: hl7812_rx: HANDLE CONNECT (len:0)
[00:01:55.433,000] <dbg> modem_hl7812: sock_read: Socket 1 RX 192 bytes
[00:01:55.433,000] <dbg> modem_hl7812: wait_for_modem_data: cur:0, exp:1
[00:01:55.483,000] <dbg> modem_hl7812: sock_read: Processing RX, buf len: 234
[00:01:55.483,000] <dbg> modem_hl7812: sock_read: Got all data, get EOF and OK (buf len:42)
[00:01:55.484,000] <dbg> modem_hl7812: sock_read: Sock 1 RX done
[00:01:55.484,000] <dbg> modem_hl7812: allow_sleep: Keep sleep
+KUDP_RCV: "10.105.16.254",53

did you compare AT+KUDPCFG? and AT+CGCONTRDP=1?
have you tried to swap the SIM card?

did you compare AT+KUDPCFG? and AT+CGCONTRDP=1?

Yes, that part is the same for both, thats why i didnt share it

I swapped the sim card as well, but the issue still exists.

how about just send 1 byte instead of 64 bytes?
Is it the same for TCP connection?

I just wanted to share logs for both cases (failure and success) again:

Succesfull connection on another board:

[00:01:59.614,000] <dbg> modem_hl7812: send_at_cmd: OUT: [AT+KCNXCFG=1,"GPRS","",,,"IPV4V6"]
[00:01:59.617,000] <dbg> modem_hl7812: send_at_cmd: SEND ATCMD k_sem_take RET01: 0
OK
[00:01:59.634,000] <dbg> modem_hl7812: hl7812_rx: HANDLE OK (len:0)
[00:01:59.634,000] <dbg> modem_hl7812: send_at_cmd: reset iface_ctx.response_sem: 0
[00:01:59.634,000] <dbg> modem_hl7812: send_at_cmd: OUT: [AT+KTCPCFG?]
[00:01:59.635,000] <dbg> modem_hl7812: send_at_cmd: SEND ATCMD k_sem_take RET01: 0
OK
[00:01:59.640,000] <dbg> modem_hl7812: hl7812_rx: HANDLE OK (len:0)
[00:01:59.640,000] <dbg> modem_hl7812: send_at_cmd: reset iface_ctx.response_sem: 0
[00:01:59.640,000] <dbg> modem_hl7812: send_at_cmd: OUT: [AT+KUDPCFG?]
[00:01:59.641,000] <dbg> modem_hl7812: send_at_cmd: SEND ATCMD k_sem_take RET01: 0
OK
[00:01:59.646,000] <dbg> modem_hl7812: hl7812_rx: HANDLE OK (len:0)
[00:01:59.646,000] <dbg> modem_hl7812: send_at_cmd: reset iface_ctx.response_sem: 0
[00:01:59.646,000] <dbg> modem_hl7812: send_at_cmd: OUT: [AT+CGCONTRDP=1]
[00:01:59.647,000] <dbg> modem_hl7812: send_at_cmd: SEND ATCMD k_sem_take RET01: 0
+CGCONTRDP: 1,5,"net",10.149.39.65.255.255.255.252,10.149.39.66,10.105.16.254,10.105.144.254,,,,,,
[00:01:59.660,000] <dbg> modem_hl7812: hl7812_rx: HANDLE +CGCONTRDP:  (len:119)
[00:01:59.660,000] <dbg> modem_hl7812: on_cmd_atcmdinfo_ipaddr: IP info: 119 1,5,"net",10.149.39.65.255.255.255.252,10.149.39.66,10.105.16.254,10.105.144.254,,,,,,,,,
[00:01:59.660,000] <dbg> modem_hl7812: on_cmd_atcmdinfo_ipaddr: IP string len: 29
[00:01:59.660,000] <dbg> modem_hl7812: on_cmd_atcmdinfo_ipaddr: IP addr: 10.149.39.65
[00:01:59.660,000] <dbg> modem_hl7812: on_cmd_atcmdinfo_ipaddr: IPv4 DNS addr: 10.105.16.254
OK
[00:01:59.661,000] <dbg> modem_hl7812: hl7812_rx: HANDLE OK (len:0)
[00:02:01.661,000] <dbg> modem_hl7812: send_at_cmd: OUT: [AT+KUDPCFG=1,0,,,,,0,0]
[00:02:01.663,000] <dbg> modem_hl7812: send_at_cmd: SEND ATCMD k_sem_take RET11: 0
+KUDPCFG: 1
[00:02:01.698,000] <dbg> modem_hl7812: hl7812_rx: HANDLE +KUDPCFG:  (len:1)
[00:02:01.698,000] <dbg> modem_hl7812: on_cmd_sockcreate: +KUDPCFG: 1
[00:02:01.698,000] <dbg> modem_hl7812: on_cmd_sockcreate: look up new socket by creation id
OK
[00:02:01.699,000] <dbg> modem_hl7812: hl7812_rx: HANDLE OK (len:0)
+KCNX_IND: 1,1,0
[00:02:01.717,000] <dbg> modem_hl7812: hl7812_rx: HANDLE +KCNX_IND:  (len:5)
[00:02:01.717,000] <dbg> modem_hl7812: on_cmd_kcnx_ind: CNX_CNF: 1, STATUS: 1
[00:02:01.717,000] <inf> modem_hl7812: Connected with AF: 0
+KUDP_IND: 1,1
[00:02:02.733,000] <dbg> modem_hl7812: hl7812_rx: HANDLE +KUDP_IND:  (len:3)
[00:02:02.733,000] <dbg> modem_hl7812: on_cmd_sock_ind: +KUDP_IND ID: 1
[00:02:02.733,000] <dbg> modem_hl7812: allow_sleep: Keep sleep
[00:02:02.733,000] <dbg> modem_hl7812: offload_bind: offload_bind
[00:02:02.733,000] <dbg> modem_hl7812: dns_work_cb: DNS ready
[00:02:02.733,000] <dbg> modem_module: pdn_event_handler: PDN_EVENT_ACTIVATED
[00:02:02.733,000] <dbg> LTE_HL7812: iface_ready_evt_handler: LTE is ready!
[00:02:02.733,000] <dbg> modem_module: pdn_event_handler: PDN_EVENT_ACTIVATED
[00:02:02.734,000] <dbg> LTE_HL7812: iface_ready_evt_handler: LTE is ready!
[00:02:02.734,000] <dbg> modem_module: state_set: State transition STATE_DISCONNECTED --> STATE_CONNECTED
[00:02:02.734,000] <dbg> cloud_module: state_set: State transition STATE_LTE_DISCONNECTED --> STATE_LTE_CONNECTED
[00:02:02.734,000] <dbg> cloud_module: connect_cloud: Connecting to cloud
[00:02:02.734,000] <wrn> cloud_module: CLOUD CONNECT RETRIES: 0
[00:02:02.734,000] <dbg> cloud_module: connect_cloud: Cloud connection establishment in progress
[00:02:02.734,000] <dbg> cloud_module: connect_cloud: New connection attempt in 32 seconds if not successful
[00:02:02.853,000] <dbg> aws_iot_integration: aws_iot_event_handler: AWS_IOT_EVT_CONNECTING
[00:02:02.853,000] <dbg> cloud_module: cloud_wrap_event_handler: CLOUD_WRAP_EVT_CONNECTING
[00:02:02.854,000] <dbg> modem_hl7812: offload_recv: offload_recv
[00:02:02.854,000] <dbg> modem_hl7812: offload_sendto: offload_sendto
[00:02:02.854,000] <dbg> modem_hl7812: allow_sleep: Keep awake
[00:02:02.854,000] <dbg> modem_hl7812: allow_sleep_with_timeout: Keep awake
[00:02:02.854,000] <dbg> modem_hl7812: is_cmd_ready: 265 LOWPOWER VGPIO:1 GPIO6:1 UART_CTS:0
[00:02:02.854,000] <dbg> modem_hl7812: send_at_cmd: OUT: [AT+KUDPSND=1,"10.105.16.254",53,64]
CONNECT
[00:02:02.869,000] <dbg> modem_hl7812: hl7812_rx: HANDLE CONNECT (len:0)
[00:02:02.945,000] <dbg> modem_hl7812: send_data: Sent 64 bytes
OK
[00:02:02.952,000] <dbg> modem_hl7812: hl7812_rx: HANDLE OK (len:0)
[00:02:02.952,000] <dbg> modem_hl7812: allow_sleep: Keep sleep
+KUDP_DATA: 1,192
[00:02:03.772,000] <dbg> modem_hl7812: hl7812_rx: HANDLE +KUDP_DATA:  (len:5)
[00:02:03.772,000] <dbg> modem_hl7812: allow_sleep: Keep awake
[00:02:03.772,000] <dbg> modem_hl7812: allow_sleep_with_timeout: Keep awake
[00:02:03.772,000] <dbg> modem_hl7812: is_cmd_ready: 265 LOWPOWER VGPIO:1 GPIO6:1 UART_CTS:0
[00:02:03.772,000] <dbg> modem_hl7812: start_socket_rx: Start socket RX ID:1 size:192
[00:02:03.772,000] <dbg> modem_hl7812: send_at_cmd: OUT: [AT+KUDPRCV=1,192]
CONNECT
[00:02:03.783,000] <dbg> modem_hl7812: hl7812_rx: HANDLE CONNECT (len:0)
[00:02:03.783,000] <dbg> modem_hl7812: sock_read: Socket 1 RX 192 bytes
[00:02:03.783,000] <dbg> modem_hl7812: wait_for_modem_data: cur:0, exp:1
[00:02:03.833,000] <dbg> modem_hl7812: sock_read: Processing RX, buf len: 234
[00:02:03.834,000] <dbg> modem_hl7812: sock_read: Got all data, get EOF and OK (buf len:42)
[00:02:03.834,000] <dbg> modem_hl7812: sock_read: Sock 1 RX done
[00:02:03.834,000] <dbg> modem_hl7812: allow_sleep: Keep sleep
+KUDP_RCV: "10.105.16.254",53
[00:02:03.834,000] <dbg> modem_hl7812: hl7812_rx: UNHANDLED RX IN2
                                       2b 4b 55 44 50 5f 52 43  56 3a 20 22 31 30 2e 31 |+KUDP_RC V: "10.1
                                       30 35 2e 31 36 2e 32 35  34 22 2c 35 33          |05.16.25 4",53   
[00:02:03.834,000] <dbg> modem_hl7812: sockreadrecv_cb_work: Sock 1 RX CB (size: 220)
[00:02:03.931,000] <dbg> aws_iot_netfeasa: broker_init: IPv4 Address found 52.213.132.116
[00:02:03.938,000] <dbg> modem_hl7812: offload_get: offload_get
[00:02:03.938,000] <dbg> modem_hl7812: allow_sleep: Keep sleep
[00:02:03.938,000] <dbg> modem_hl7812: offload_recv: offload_recv
[00:02:03.938,000] <dbg> modem_hl7812: offload_bind: offload_bind
[00:02:03.938,000] <dbg> modem_hl7812: offload_connect: offload_connect
[00:02:03.938,000] <dbg> modem_hl7812: allow_sleep: Keep awake
[00:02:03.938,000] <dbg> modem_hl7812: allow_sleep_with_timeout: Keep awake
[00:02:03.938,000] <dbg> modem_hl7812: is_cmd_ready: 265 LOWPOWER VGPIO:1 GPIO6:1 UART_CTS:0
[00:02:03.938,000] <dbg> modem_hl7812: send_at_cmd: OUT: [AT+KTCPCFG=1,0,"52.213.132.116",8883,,,,0,,0]
[00:02:03.942,000] <dbg> modem_hl7812: send_at_cmd: SEND ATCMD k_sem_take RET11: 0
+KTCPCFG: 2
[00:02:03.962,000] <dbg> modem_hl7812: hl7812_rx: HANDLE +KTCPCFG:  (len:1)
[00:02:03.962,000] <dbg> modem_hl7812: on_cmd_sockcreate: +KTCPCFG: 2
[00:02:03.962,000] <dbg> modem_hl7812: on_cmd_sockcreate: look up new socket by creation id
OK
[00:02:03.963,000] <dbg> modem_hl7812: hl7812_rx: HANDLE OK (len:0)
[00:02:04.343,000] <dbg> modem_hl7812: send_at_cmd: OUT: [AT+KTCPCNX=2]
[00:02:04.344,000] <dbg> modem_hl7812: send_at_cmd: SEND ATCMD k_sem_take RET11: 0
OK
[00:02:04.369,000] <dbg> modem_hl7812: hl7812_rx: HANDLE OK (len:0)
+KTCP_IND: 2,1
[00:02:04.890,000] <dbg> modem_hl7812: hl7812_rx: HANDLE +KTCP_IND:  (len:3)
[00:02:04.890,000] <dbg> modem_hl7812: on_cmd_sock_ind: +KTCP_IND ID: 2
[00:02:04.890,000] <dbg> modem_hl7812: allow_sleep: Keep sleep
[00:02:04.907,000] <dbg> modem_hl7812: allow_sleep: Keep awake
[00:02:04.907,000] <dbg> modem_hl7812: allow_sleep_with_timeout: Keep awake
[00:02:04.907,000] <dbg> modem_hl7812: is_cmd_ready: 265 LOWPOWER VGPIO:1 GPIO6:1 UART_CTS:0
[00:02:04.907,000] <dbg> modem_hl7812: send_at_cmd: reset iface_ctx.response_sem: 0
[00:02:04.907,000] <dbg> modem_hl7812: send_at_cmd: OUT: [AT+CCLK?]
[00:02:04.907,000] <dbg> modem_hl7812: send_at_cmd: SEND ATCMD k_sem_take RET01: 0
+CCLK: "24/07/07,17:38:14+08"
[00:02:04.912,000] <dbg> modem_hl7812: hl7812_rx: HANDLE +CCLK:  (len:22)
[00:02:04.912,000] <dbg> modem_hl7812: wait_for_modem_data: cur:23, exp:25
[00:02:04.962,000] <inf> modem_hl7812: RTC string: '"24/07/07,17:38:14+08"'
OK

failure connection:

[00:01:56.636,000] <dbg> modem_hl7812: send_at_cmd: OUT: [AT+KCNXCFG=1,"GPRS","",,,"IPV4V6"]
[00:01:56.639,000] <dbg> modem_hl7812: send_at_cmd: SEND ATCMD k_sem_take RET01: 0
OK
[00:01:56.656,000] <dbg> modem_hl7812: hl7812_rx: HANDLE OK (len:0)
[00:01:56.656,000] <dbg> modem_hl7812: send_at_cmd: reset iface_ctx.response_sem: 0
[00:01:56.656,000] <dbg> modem_hl7812: send_at_cmd: OUT: [AT+KTCPCFG?]
[00:01:56.657,000] <dbg> modem_hl7812: send_at_cmd: SEND ATCMD k_sem_take RET01: 0
OK
[00:01:56.662,000] <dbg> modem_hl7812: hl7812_rx: HANDLE OK (len:0)
[00:01:56.662,000] <dbg> modem_hl7812: send_at_cmd: reset iface_ctx.response_sem: 0
[00:01:56.662,000] <dbg> modem_hl7812: send_at_cmd: OUT: [AT+KUDPCFG?]
[00:01:56.663,000] <dbg> modem_hl7812: send_at_cmd: SEND ATCMD k_sem_take RET01: 0
+KUDPCFG: 1,1,0,4184,0,"",0,0,1,0,3
[00:01:56.672,000] <dbg> modem_hl7812: hl7812_rx: HANDLE +KUDPCFG:  (len:25)
[00:01:56.672,000] <dbg> modem_hl7812: on_cmd_sockcreate: +KUDPCFG: 1
[00:01:56.672,000] <dbg> modem_hl7812: on_cmd_sockcreate: look up new socket by creation id
OK
[00:01:56.672,000] <dbg> modem_hl7812: hl7812_rx: HANDLE OK (len:0)
[00:01:56.672,000] <dbg> modem_hl7812: send_at_cmd: reset iface_ctx.response_sem: 0
[00:01:56.672,000] <dbg> modem_hl7812: send_at_cmd: OUT: [AT+CGCONTRDP=1]
[00:01:56.674,000] <dbg> modem_hl7812: send_at_cmd: SEND ATCMD k_sem_take RET01: 0
+CGCONTRDP: 1,5,"net",10.149.39.64.255.255.255.128,10.149.39.1,10.105.16.254,10.105.144.254,,,,,,,
[00:01:56.687,000] <dbg> modem_hl7812: hl7812_rx: HANDLE +CGCONTRDP:  (len:118)
[00:01:56.687,000] <dbg> modem_hl7812: on_cmd_atcmdinfo_ipaddr: IP info: 118 1,5,"net",10.149.39.64.255.255.255.128,10.149.39.1,10.105.16.254,10.105.144.254,,,,,,,,,
[00:01:56.687,000] <dbg> modem_hl7812: on_cmd_atcmdinfo_ipaddr: IP string len: 29
[00:01:56.687,000] <dbg> modem_hl7812: on_cmd_atcmdinfo_ipaddr: IP addr: 10.149.39.64
[00:01:56.687,000] <dbg> modem_hl7812: on_cmd_atcmdinfo_ipaddr: IPv4 DNS addr: 10.105.16.254
OK
[00:01:56.687,000] <dbg> modem_hl7812: hl7812_rx: HANDLE OK (len:0)
[00:01:58.687,000] <dbg> modem_hl7812: allow_sleep: Keep sleep
[00:01:58.687,000] <dbg> modem_hl7812: offload_bind: offload_bind
[00:01:58.687,000] <dbg> modem_hl7812: dns_work_cb: DNS ready
[00:01:58.687,000] <dbg> modem_module: pdn_event_handler: PDN_EVENT_ACTIVATED
[00:01:58.687,000] <dbg> LTE_HL7812: iface_ready_evt_handler: LTE is ready!
[00:01:58.688,000] <dbg> modem_module: pdn_event_handler: PDN_EVENT_ACTIVATED
[00:01:58.688,000] <dbg> LTE_HL7812: iface_ready_evt_handler: LTE is ready!
[00:01:58.688,000] <dbg> modem_module: state_set: State transition STATE_DISCONNECTED --> STATE_CONNECTED
[00:01:58.688,000] <dbg> cloud_module: state_set: State transition STATE_LTE_DISCONNECTED --> STATE_LTE_CONNECTED
[00:01:58.688,000] <dbg> cloud_module: connect_cloud: Connecting to cloud
[00:01:58.688,000] <wrn> cloud_module: CLOUD CONNECT RETRIES: 0
[00:01:58.688,000] <dbg> cloud_module: connect_cloud: Cloud connection establishment in progress
[00:01:58.688,000] <dbg> cloud_module: connect_cloud: New connection attempt in 32 seconds if not successful
[00:01:58.791,000] <dbg> aws_iot_integration: aws_iot_event_handler: AWS_IOT_EVT_CONNECTING
[00:01:58.791,000] <dbg> cloud_module: cloud_wrap_event_handler: CLOUD_WRAP_EVT_CONNECTING
[00:01:58.791,000] <dbg> modem_hl7812: offload_recv: offload_recv
[00:01:58.791,000] <dbg> modem_hl7812: offload_sendto: offload_sendto
[00:01:58.791,000] <dbg> modem_hl7812: allow_sleep: Keep awake
[00:01:58.791,000] <dbg> modem_hl7812: allow_sleep_with_timeout: Keep awake
[00:01:58.791,000] <dbg> modem_hl7812: is_cmd_ready: 265 LOWPOWER VGPIO:1 GPIO6:1 UART_CTS:0
[00:01:58.791,000] <dbg> modem_hl7812: send_at_cmd: OUT: [AT+KUDPSND=1,"10.105.16.254",53,64]
CONNECT
[00:01:58.806,000] <dbg> modem_hl7812: hl7812_rx: HANDLE CONNECT (len:0)
[00:01:58.882,000] <dbg> modem_hl7812: send_data: Sent 64 bytes
NO CARRIER
[00:01:58.891,000] <dbg> modem_hl7812: hl7812_rx: HANDLE NO CARRIER (len:0)
[00:01:58.892,000] <dbg> modem_hl7812: allow_sleep: Keep sleep
[00:01:58.892,000] <err> aws_iot_netfeasa: getaddrinfo, error -11
[00:01:58.892,000] <err> aws_iot_netfeasa: client_broker_init, error: -10
[00:01:58.892,000] <dbg> aws_iot_integration: aws_iot_event_handler: AWS_IOT_EVT_CONNECTING
[00:01:58.892,000] <dbg> cloud_module: cloud_wrap_event_handler: CLOUD_WRAP_EVT_CONNECTING
+KUDP_NOTIF: 1,8
[00:01:58.893,000] <dbg> modem_hl7812: hl7812_rx: HANDLE +KUDP_NOTIF:  (len:3)
[00:01:58.893,000] <wrn> modem_hl7812: +K**P_NOTIF: 1,8
[00:02:00.688,000] <dbg> modem_hl7812: allow_sleep: Keep awake
[00:02:00.688,000] <dbg> modem_hl7812: allow_sleep_with_timeout: Keep awake
[00:02:00.688,000] <dbg> modem_hl7812: is_cmd_ready: 265 LOWPOWER VGPIO:1 GPIO6:1 UART_CTS:0
[00:02:00.688,000] <dbg> modem_hl7812: send_at_cmd: reset iface_ctx.response_sem: 0
[00:02:00.688,000] <dbg> modem_hl7812: send_at_cmd: OUT: [AT+CCLK?]
[00:02:00.688,000] <dbg> modem_hl7812: send_at_cmd: SEND ATCMD k_sem_take RET01: 0
+CCLK: "24/07/07,17:33:56+08"
[00:02:00.693,000] <dbg> modem_hl7812: hl7812_rx: HANDLE +CCLK:  (len:22)
[00:02:00.693,000] <dbg> modem_hl7812: wait_for_modem_data: cur:23, exp:25
[00:02:00.743,000] <inf> modem_hl7812: RTC string: '"24/07/07,17:33:56+08"'
OK

in the OK log, AT+KUDPCFG? returns OK
but for the NOK log, AT+KUDPCFG? return differently with “+KUDPCFG: 1,1,0,4184,0,”“,0,0,1,0,3”

can you paste the exact same sequence for comparison of OK log and NOK log?

Also you can try just send one byte and see what happens

Sir you were right there. it was exactly the issue that you pointed there, thanks,

I went through all logs since it booted up, and didn’t see anywhere udpcfg was called and configured.
I dont know that how that configuration was written there and stick, though the modem is rebooted. But after removing UDPCFG and reconfiguring, the issue has been fixed.