MZCommands
Module Ready URC
This URC is sent by monoZ:Jet to the host upon successful power-on. monoZ:Jet does not accept command inputs until this URC is sent back to host. If the host does not receive this URC, a hardware reset or power reboot of monoZ:Jet is recommended.
+MZREADY
Maximum Response Time
| +MZREADY | 1 second |
- If host and monoZ:Jet is powered ON at the same time, then there is a possibility the host may miss the +MZREADY message.
Module Start
This command initializes the monoZ:Jet module and establish communication with the cellular network and the IoT platform using the configured BAND & ORG ID parameters. If the SIM is not detected(+MZSTART: 1), the Band setting is incorrect(+MZSTART: 2), or the modem fails to start(+MZSTART: 5), the respective error URCs(+MZSTART: 1/2/5) is immediately generated and monoZ:Jet shall not make any retry attempt. In the event of a failed network connection (+MZSTART: 3) or failed IoT platform connection (+MZSTART: 4), monoZ:Jet will return its respective failure URCs (+MZSTART: 3/4) and retry every few minutes (2min followed by 3min followed by every 5min) indefinitely until a successful connection (+MZSTART: 0) is established. The host can force an exit from this loop through a hardware reset, full sleep, or a power shutdown. Even after successful execution (+MZSTART: 0), host can +MZSTART URCs in the event of any error or failures.
MZSTART
MZOK/MZFAIL
+MZSTART: <s_sts>
+MZDEBUG: <dbg_sts>
Defined Values
<s_sts>
Integer Type.
0
Start Success
1
SIM not inserted. Check SIM.
2
Band setting fail. Check band setting.
3
Network connection failed.
Reattempting netwok connection.
4
IoT Platform connection failed.
Reattemping platform connection.
5
Modem start fail. Perform hardware reset.
<dbg_sts>
*Only when Debug mode is ON.
Integer Type.
Maximum Response Time
| MZOK/MZFAIL | 2 seconds |
| +MZSTART/+MZDEBUG | 3 minutes |
Usage
Without Debug Mode
Note: Response varies based on network situation.+MZREADY
MZSTART
MZOK
+MZSTART: 3
+MZSTART: 0
With Debug Mode
Note: Response varies based on network situation.MZSTART
MZOK
MZDEBUG=1
MZOK
+MZDEBUG: 10
+MZDEBUG: 2
+MZDEBUG: 0
+MZDEBUG: 2
+MZDEBUG: 2
+MZDEBUG: 2
+MZDEBUG: 5
+MZDEBUG: 15
+MZDEBUG: 20
+MZSTART: 0
- Reception of FOTA data from IoT Platform data to monoZ:Jet will be enabled upon +MZSTART:0
- MZBAND & MZORGID setting can be set only before executing MZSTART command
Firmware Version
This command reads the current firmware version of monoZ:Jet.
MZVERSION
MZOK/MZFAIL
+MZVERSION: <version>
Defined Values
<version>
String Type.
Maximum Response Time
| MZOK/MZFAIL | 2 seconds |
| +MZVERSION | 2 seconds |
Usage
MZVERSION
MZOK
+MZVERSION: MZJ2_V2.0.1
Data Send
This command transmits payload data to the IoT platform. If an internal timeout occurs, monoZ:Jet automatically retries up to three times at the protocol level before returning a data send failure URC to the host. Following a failure, the module disconnects and reconnects to the network and IoT platform to resolve any potential network or platform related issues.
MZSEND=<payload>
MZOK/MZFAIL
+MZSEND: <send_sts>
+MZDEBUG: <dbg_sts>
Defined Values
<payload>
String Type.
Max byte size
1024B
Accepted Characters
Alphanumeric, Kanji, “#$%&’()/<>.,?;+-!@
There is a possibility certain kanji characters may not be accepted.
<send_sts>
Integer Type.
0
Data Send Success
1
Data Send Failed
2
Payload Size Exceeds limit
<dbg_sts>
*Only when Debug mode is ON.
Integer Type.
30
Data Send Success
31
Data Send Retransmit
32
Data Send Failed
Maximum Response Time
| MZOK/MZFAIL | 2 seconds |
| +MZSEND/+MZDEBUG | 20 seconds |
Usage
Without Debug Mode
Normal case
MZSEND=Payload123
MZOK
+MZSEND: 0
Network/Platform Disruption while MZSEND: case 1
MZSEND=Payload123
MZOK
+MZSEND: 1
+MZSTART: 3 or 4
+MZSTART: 0
Network/Platform Disruption while MZSEND: case 2
MZSEND=Payload123
MZOK
+MZSTART: 3 or 4
+MZSTART: 3 or 4
+MZSTART: 0
+MZSEND: 0
With Debug Mode
MZSEND=Payload123
MZOK
+MZDEBUG: 30
+MZSEND: 0
Downlink Data
This command enables monoZ:Jet to open downlink session with IoT platfom. Once enabled, the session remains active until a power-off, hardware reset, or full sleep occurs. In the event of a network disconnection and reconnection, the module automatically re-enables itself without requiring host intervention.
MZRECEIVE
MZOK/MZFAIL
+MZRECEIVE: <r_sts>
+MZRECEIVE: <r_sts>,<DL_data>
+MZDEBUG: <dbg_sts>
Defined Values
<DL_data>
String Type.
Max Byte size
1020B
Accepted Characters
Alphanumeric, Kanji, “#$%&’()/<>.,?;+-!@
There is a possibility certain kanji characters may not be accepted.
<receive_sts>
Integer Type.
0
Downlink enable success
1
Downlink enable failed
2
Downlink data received
3
Downlink data error - payload size exceed limit
<dbg_sts>
*Only when Debug mode is ON.
Integer Type.
Maximum Response Time
| MZOK/MZFAIL | 2 seconds |
| +MZRECEIVE/+MZDEBUG | 5 seconds |
Usage
Without Debug Mode
MZRECEIVE
MZOK
+MZRECEIVE: 0
<when message sent from platform>
+MZRECEIVE: 2,"Test message"
With Debug Mode
MZRECEIVE
+MZDEBUG: 40
+MZRECEIVE: 0
<when message sent from platform>
+MZRECEIVE: 2,"Test message"
Sleep Mode
This command puts the monoZ:Jet module to different Low Power Modes(LPM).
MZSLEEP=<Key_val>
MZOK/MZFAIL
+MZSLEEP: <sleep_sts>
+MZDEBUG: <dbg_sts>
Defined Values
<Key_val>
Integer Type.
0
Full sleep mode. monoZ:Jet will go to full deep sleep mode within 5 seconds of sending back +MZSLEEP: 0 URC to the host. monoZ:Jet cannot take MZ commands in this mode and wake up is triggered by raising HOST to BOARD_WKP(P407) Pin to HIGH or via power off/on.
Avg. Power consumption: ~20μA
1
Semi sleep mode.monoZ:Jet shall be in ON state however it will be disconnected from the network similar to airplane mode. Wakeup is triggered using MZSTART.
Avg. Power consumption: ~25mA
2
Light Sleep mode. monoZ:Jet shall be in network connected state however the module shall be disconnected from the IoT platform. Wakeup is triggered using MZSTART.
Avg. Power consumption: ~110mA
<sleep_sts>
Integer Type.
0
Sleep mode success
1
Sleep mode fail
<dbg_sts>
*Only when Debug mode is ON.
Integer Type.
Maximum Response Time
| MZOK/MZFAIL | 2 seconds |
| +MZSLEEP/+MZDEBUG | 10 seconds |
Usage
Without Debug Mode
MZSLEEP=1
MZOK
+MZSLEEP:0
With Debug Mode
MZSLEEP=1
MZOK
+MZDEBUG: 16
+MZSLEEP: 0
- monoZ:Jet stores the last connected network information during the full sleep process. To speed up network connection after the next power-on, it is recommended to execute MZSLEEP=0 before powering off the monoZ:Jet.
- If MZRECEIVE was enabled on the monoZ:Jet before Semi sleep or Light sleep, then monoZ:Jet automatically enables the session after wakeup.
- In the case of Full Sleep, the user must reenable the downlink session upon wakeup.
Network Time
This command is used to capture and return the system clock.
MZTIME
MZOK/MZFAIL
+MZTIME: <r_sts>,<yy/mm/dd,hh:mm:ss±zz>
+MZTIME: <r_sts>
Defined Values
<r_sts>
Integer Type.
0
Time Read Success
1
Time Read Failed
Maximum Response Time
| MZOK/MZFAIL | 2 seconds |
| +MZTIME | 2 seconds |
Usage
MZTIME
+MZTIME: 0,2024/06/17,16:11:23+36
Network Status
This command is used to read the status of connected network.
MZNWSTATUS
MZOK
+MZNWSTATUS: <r_sts>,"<lac>","<ci>","<oper>","<band>",<rssi>,<rsrp>,<sinr>,<rsrq>
+MZNWSTATUS: <r_sts>
Defined Values
<r_sts>
Integer Type.
<lac>
String type.
Two-byte location area code in hexadecimal format.
<ci>
String type.
Four-byte E-UTRAN cell ID in hexadecimal format.
<oper>
String type.
Operator in numeric format.
<band>
String type.
Selected band for network connection.
<rssi>
Integer type.
LTE Received signal strength indicator.
<rsrp>
Integer type.
Reference signal received power.
<sinr>
Integer type.
Integer type. Signal-to-interference-plus-noise-ratio (SINR). Logarithmic value of
SINR. Values are in 1/5th of a dB. Range: 0–250, which translates to -20dB to +30dB.
<rsrq>
Integer type.
Reference signal received quality (RSRQ). Unit: dB.
Maximum Response Time
| MZOK/MZFAIL | 2 seconds |
| +MZNWSTATUS | 2 seconds |
Usage
MZNWSTATUS
MZOK
+MZNWSTATUS: 0,"1859","017CED06","44020","LTE BAND 8",-66,-94,75,-15
Debug
This command enables or disables debugging mode on monoZ:Jet. When enabled, the module generates additional URCs, indicated by +MZDEBUG, for the corresponding MZ commands.
MZDEBUG=<key_val>
MZOK/MZFAIL
Defined Values
<key_val>
Integer Type.
0
Exit Debug Mode
1
Enter Debug Mode
Maximum Response Time
| MZOK/MZFAIL | 2 seconds |
Usage
MZDEBUG=1
MZOK
Set Org ID
This command configures the Organization ID (ORGID) required for connecting to the monoZ:Link IoT platform. The ORGID configuration is stored in non-volatile memory of the device. This setting must be done before executing MZSTART.
MZORGID="<org_id>"
MZOK/MZFAIL
+MZORGID: <cfg_sts>