MZCS Application Commands
MZCS Start Process
MZCS can be executed as a standalone application from the CLI or it can be controlled and run from the Process-handler. The service can be started by following the specified pattern,
monoZConnectService.exe-c<COM Port>
<upon success>
MZOK
<upon failure>
MZNG
Defined Values
COM Port
Maximum Response Time
15s |
MZCS Device Initialization
This API establishes the communication with the MZC device and check the device’s configuration status. If MZC device is not configured, the service will be closed and an appropriate message will be displayed. To ensure proper usage, this API must be called first after the start of MZCS application.
mzcs_init
<upon success>
MZOK
<upon failure>
MZRUNDEVICECONFIG
MZNG
Defined Values
None
Maximum Response Time
311 s + 900 ms |
MZCS Device Configuration
The main function of this API is to set up the MZC device by configuring its Band, APN, LwM2M settings. The configured settings will be saved in the device memory. Once the device has been successfully configured, this API returns the endpoint name that will be used for further communication with the PF. Additionally, the application will close its service upon completion of this API. It is recommended to use this API when initially configuring the device or when updating the existing settings. However, frequent usage of this API should be avoided as it is intended for configuring the device only.
mzcs_devcfg
<upon success>
MZOK
<upon failure>
MZNG
Defined Values
None
Maximum Response Time
1407 s + 200 ms |
MZCS Set Network Attach
To establish communication with the Server/Platform (PF), the MZC device needs network connectivity, which can be enabled by using this API. It is important to note that the usage of this API should be restricted to the following conditions:
- It must be called after a successful execution of the “MZCS Device Initialization” API.
- It should not be called before network disconnection (network detach).
- It should not be called until the registration interval expires. For more information, please refer to “Network Attach Attempt”.
mzcs_nwattach
<upon success>
MZOK
<upon failure>
MZNG
Defined Values
None
Maximum Response Time
530 s + 200 ms |
MZCS Set Data
This API enables the storage of data on the device for a specific Object ID, Instance ID, Resource ID. It is important to note that the data must be in Hex format and must not exceed the specified limit of 1428 bytes after conversion to Hex. This stored data will be transferred to the server, whenever there’s a read request from the server.
mzcs_setdata: -o <OID> -i <IID> -r <RID> -d <Data>
<upon success>
MZOK
<upon failure>
MZNG
Defined Values
OID:
LwM2M Object (19)
IID:
LwM2M Instance (0~2)
RID:
LwM2M Resource (0)
Data:
Hex string (max. 1428 bytes)
Maximum Response Time
15 s + 100 ms |
MZCS Send Data
This API enables transfer of data to the server for a specific Object ID, Instance ID, Resource ID. Additionally, it overwrites the previous stored data on the device. It is important to note that the data must be in Hex format and must not exceed the specified limit of 1428 bytes after conversion to Hex.
This API has a restriction on the frequency of usage, which is set to 900 second by default. For more information, please refer Section 5.7 Send Data Limitation Lock in the MZCS message description.
1. mzcs_senddata: -o <OID> -i <IID> -r <RID> -d <Data> -a <ACK>
2. mzcs_senddata: -o <OID> -i <IID> -r <RID> -d <Data> -d <Data>
<upon success>
MZOK
<upon failure>
MZNG
Defined Values
OID:
LwM2M Object (19)
IID:
LwM2M Instance (0~2)
RID:
LwM2M Resource (0)
Data:
Hex string (max. 1428 bytes)
ACK:
0: Non conformable notify
1: Conformable notify (default)
Maximum Response Time
245 s + 200 ms |
Please note that if the send data API returns with MZNG after displaying the message “Sending OK”, MZCS will clear the data stored on the device for the specified OID, IID and RID by replacing it with null data.
MZCS Get RF Status
This API provides the RF status of the device. If -r
is used in the API it provides raw RF info, and if it is not used then RF status is provided in simplified form.
mzcs_rf -r
<upon success - simplified>
RF status: [1] Good
[2] Poor
[3] Bad
[4] Cell searching
[5] No service:
MZOK
<upon failure - simplified>
RF status: [6] No response
MZNG
<upon success - raw>
<earfcn>,<cellID>,<RSRP>,<RSRQ>,<SINR>
MZOK
<upon failure - raw>
MZNG
Defined Values
None
Maximum Response Time
15 s + 100 ms |
MZCS Device Reset
This API allows the user to restart the MZC device, returning it to its default state without altering any configuration settings. Following the reset the user must initiate the “MZCS Network Attach” API to reconnect and re-register with the network.
mzcs_devicereset
<upon success>
MZOK
<upon failure>
MZNG
Defined Values
None