4G Module Setting Message Format+CMGF

4G module setting message format+CMGF

 

Grammar structure

Command

Response

+CMGF=[<mode>]

OK

+CME ERROR:<err>

+CMGF?

+CMGF:<mode>

+CMGF=?

+CMGF: (listof supported<mode>s)

 

Description of command

 

4G module setting command can be used to select the coding format of message, and there are two modes of format, namely PDU mode and text mode, which is decided by <mode> parameter. Setting of CMGF will influence the operational parameter and return parameter of CMGR, CMGL, CMGS, CMGW, and other commands. Generally, ME side only needs to realize either PDU or text message mode, and PDU mode is recommended.

 

Explanation of value

  <mode>: working mode

Value

Meaning

0

PDU mode/p>

1

Text mode (unavailable now)

 

 

 <mt>:MT message

Value

Meaning

0

Unavailable

1

Available

 

 <mo>:MO message

Value

Meaning

0

Unavailable

1

Available

 

 

 <bm>:CBS message

Value

Meaning

0

Unavailable

1

Available

   Typical case

  Request: AT+CMGF=?<CR>

  Response: <CR><LF>+CMGF:(0-1)<CR><LF><CR><LF>OK<CR><LF>

  Request: AT+CMGF?<CR> Response: <CR><LF>+CMGF:0<CR><LF><CR><LF>OK<CR><LF>

  Request: AT+CMGF=0<CR>

  Response: <CR><LF>OK<CR><LF>