Quectel: Use enum to express the command types and the states returned by the commands
@aleksm I have modified it according to your suggestions. Please help to check, thanks!
Verified through CLI that it can be executed normally At present, the system command function of our module has not been fully implemented. So here we only show the execution results of the AT command.
$ mbimcli --help-quectel
Usage:
mbimcli [OPTION…] - Control MBIM devices
Quectel options:
--quectel-query-radio-state Query radio state
--quectel-set-radio-state=[(on)] Set radio state
--quectel-set-command=[(Command type),("Command")] Send command to module (Command type is optional, defaults to AT, allowed options: (at, system)
$ sudo mbimcli -d /dev/cdc-wdm0 -p --quectel-set-command=at,"at+cversion;+qgmr;+csub"
VERSION: EM061KGLAAR01A02M2G Apr 2 2024 22:18:36 Authors: QCT
EM061KGLAAR01A02M2G_01.013.00.000
SubEdition: V01
OK
$ sudo mbimcli -d /dev/cdc-wdm0 -p --quectel-set-command="at+cversion;+qgmr;+csub"
VERSION: EM061KGLAAR01A02M2G Apr 2 2024 22:18:36 Authors: QCT
EM061KGLAAR01A02M2G_01.013.00.000
SubEdition: V01
OK
Signed-off-by: mank.wang mank.wang@quectel.com