BC660K - recommended uplink/downlink command sequence

Dear friends,
I would like to rest assured about correct command sequence in case of BC660K incorporated into outdoor sensor regularly, e.g. once per hour, sending uplink message (telemetric data) to the cloud with occasional downlink messages (configuration) from time-to-time, e.g. once per day, using UDP:

  1. after network registration (+CEREG: 5) open UDP socket and keep opened (AT+QIOPEN=0,0,UDP,server.address,port)
  2. after specified measurement interval check socket open state AT+QISTATE=1,0,
  3. if socket open, proceed sending with release assistance after downlink AT+QISEND=0,4,DEADBEEF,2
  4. if downlink available, process +QIURC
  5. go to sleep, repeat from 2

Thank you for your suggestion.
Peter

Do you need AT Commands to start with registering the network?
Have you enabled PSM?

Initial Commands fo registering, psm etc. was omitted for brevity. My question was toward keeping connection open and data transfer commands.

I think you can work it out by referring to the documentation
Quectel_BC660K-GL_TCP(IP)_Application_Note_V1.0.pdf (361.0 KB)