주요 qmi cli 명령어 리스트 정리 - netipark/lte_m2m GitHub Wiki
- DMS(Data Management): Device의 정보 로딩
- NAS(Network Access): Network 등록 관련 기능 제공
- WDS(Wireless Data): IP Connection 세팅
- CTL(Control): Client 생성 Handling - Client ID 할당/해제
qmicli -d /dev/cdc-wdm0 --dms-uim-get-imsi
root@allinone:~# qmicli -d /dev/cdc-wdm0 --dms-uim-get-imsi
[/dev/cdc-wdm0] UIM IMSI retrieved:
IMSI: '001011234567890'
qmicli -d /dev/cdc-wdm0 --nas-get-home-network
root@allinone:~# qmicli -d /dev/cdc-wdm0 --nas-get-home-network
[/dev/cdc-wdm0] Successfully got home network:
Home network:
MCC: '1'
MNC: '1'
Description: 'Test1-1'
qmicli -d /dev/cdc-wdm0 --nas-get-cell-location-info
root@allinone:~# qmicli -d /dev/cdc-wdm0 --nas-get-cell-location-info
[/dev/cdc-wdm0] Successfully got cell location info
Intrafrequency LTE Info
UE In Idle: 'no'
PLMN: '001'
Tracking Area Code: '256'
Global Cell ID: '274431'
EUTRA Absolute RF Channel Number: '47140'
Serving Cell ID: '42'
Cell [0]:
Physical Cell ID: '42'
RSRQ: '-5.9' dB
RSRP: '-73.3' dBm
RSSI: '-50.7' dBm
Interfrequency LTE Info
UE In Idle: 'no'
LTE Info Neighboring GSM
UE In Idle: 'no'
LTE Info Neighboring WCDMA
UE In Idle: 'no'
qmicli -d /dev/cdc-wdm0 --nas-get-signal-strength
root@allinone:~# qmicli -d /dev/cdc-wdm0 --nas-get-signal-strength
[/dev/cdc-wdm0] Successfully got signal strength
Current:
Network 'lte': '-55 dBm'
RSSI:
Network 'lte': '-55 dBm'
ECIO:
Network 'lte': '-2.5 dBm'
IO: '-106 dBm'
SINR: (8) '9.0 dB'
RSRQ:
Network 'lte': '-6 dB'
SNR:
Network 'lte': '28.0 dB'
RSRP:
Network 'lte': '-82 dBm'
qmicli -d /dev/cdc-wdm0 --nas-get-signal-info
root@allinone:~# qmicli -d /dev/cdc-wdm0 --nas-get-signal-info
[/dev/cdc-wdm0] Successfully got signal info
LTE:
RSSI: '-55 dBm'
RSRQ: '-6 dB'
RSRP: '-76 dBm'
SNR: '29.4 dB'
root@allinone:~# qmicli -d /dev/cdc-wdm0 --nas-get-tx-rx-info=lte
[/dev/cdc-wdm0] Successfully got TX/RX info
RX Chain 0:
Radio tuned: 'yes'
Power: '-52.3 dBm'
ECIO: '6.1 dB'
RSRP: '75.3 dBm'
Phase: '0.00 degrees'
RX Chain 1:
Radio tuned: 'yes'
Power: '-74.1 dBm'
ECIO: '5.7 dB'
RSRP: '96.8 dBm'
Phase: '0.00 degrees'
TX:
In traffic: 'no'
qmicli -d /dev/cdc-wdm0 --nas-get-serving-system
root@allinone:~# qmicli -d /dev/cdc-wdm0 --nas-get-serving-system
[/dev/cdc-wdm0] Successfully got serving system:
Registration state: 'registered'
CS: 'detached'
PS: 'attached'
Selected network: '3gpp'
Radio interfaces: '1'
[0]: 'lte'
Roaming status: 'off'
Data service capabilities: '1'
[0]: 'lte'
Current PLMN:
MCC: '1'
MNC: '1'
Description: 'Test1-1'
Roaming indicators: '1'
[0]: 'off' (lte)
3GPP location area code: '65534'
3GPP cell ID: '274431'
Detailed status:
Status: 'available'
Capability: 'ps'
HDR Status: 'none'
HDR Hybrid: 'no'
Forbidden: 'no'
LTE tracking area code: '256'
Full operator code info:
MCC: '1'
MNC: '1'
MNC with PCS digit: 'no'
root@allinone:~#
qmicli -d /dev/cdc-wdm0 --nas-get-system-selection-preference
root@allinone:~# qmicli -d /dev/cdc-wdm0 --nas-get-system-selection-preference
[/dev/cdc-wdm0] Successfully got system selection preference
Emergency mode: 'no'
Mode preference: 'lte'
Band preference: 'bc-0-a-system, bc-0-b-system, bc-1-all-blocks, bc-2, bc-3-a-system, bc-4-all-blocks, bc-5-all-blocks, gsm-dcs-1800, gsm-900-extended, gsm-900-primary, bc-6, bc-7, bc-8, bc-9, bc-10, bc-11, gsm-450, gsm-480, gsm-750, gsm-850, gsm-900-railways, gsm-pcs-1900, wcdma-2100, wcdma-pcs-1900, wcdma-dcs-1800, wcdma-1700-us, wcdma-850-us, wcdma-800, bc-12, bc-14, wcdma-2600, wcdma-900, wcdma-1700-japan, bc-16, bc-17, bc-18, bc-19'
LTE band preference: '1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 17, 18, 19, 20, 21, 24, 25, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43'
TD-SCDMA band preference: 'a, b, c, d, e, f'
Roaming preference: 'any'
Network selection preference: 'automatic'
Service domain preference: 'ps-only'
Service selection preference: 'wcdma'
qmicli --help-all
root@allinone:~# qmicli --help-all
Usage:
qmicli [OPTION...] - Control QMI devices
Help Options:
-h, --help Show help options
--help-all Show all help options
--help-dms Show Device Management Service options
--help-nas Show Network Access Service options
--help-wds Show Wireless Data Service options
--help-pbm Show Phonebook Management options
--help-uim Show User Identity Module options
--help-wda Show Wireless Data Administrative options
DMS options
--dms-get-ids Get IDs
--dms-get-capabilities Get capabilities
--dms-get-manufacturer Get manufacturer
--dms-get-model Get model
--dms-get-revision Get revision
--dms-get-msisdn Get MSISDN
--dms-get-power-state Get power state
--dms-uim-set-pin-protection=[(PIN|PIN2),(disable|enable),(current PIN)] Set PIN protection in the UIM
--dms-uim-verify-pin=[(PIN|PIN2),(current PIN)] Verify PIN
--dms-uim-unblock-pin=[(PIN|PIN2),(PUK),(new PIN)] Unblock PIN
--dms-uim-change-pin=[(PIN|PIN2),(old PIN),(new PIN)] Change PIN
--dms-uim-get-pin-status Get PIN status
--dms-uim-get-iccid Get ICCID
--dms-uim-get-imsi Get IMSI
--dms-uim-get-state Get UIM State
--dms-uim-get-ck-status=[(pn|pu|pp|pc|pf)] Get CK Status
--dms-uim-set-ck-protection=[(pn|pu|pp|pc|pf),(disable),(key)] Disable CK protection
--dms-uim-unblock-ck=[(pn|pu|pp|pc|pf),(key)] Unblock CK
--dms-get-hardware-revision Get the HW revision
--dms-get-operating-mode Get the device operating mode
--dms-set-operating-mode=[(Operating mode)] Set the device operating mode
--dms-get-time Get the device time
--dms-get-prl-version Get the PRL version
--dms-get-activation-state Get the state of the service activation
--dms-activate-automatic=[Activation Code] Request automatic service activation
--dms-activate-manual=[SPC,SID,MDN,MIN] Request manual service activation
--dms-get-user-lock-state Get the state of the user lock
--dms-set-user-lock-state=[(disable|enable),(current lock code)] Set the state of the user lock
--dms-set-user-lock-code=[(old lock code),(new lock code)] Change the user lock code
--dms-read-user-data Read user data
--dms-write-user-data=[(User data)] Write user data
--dms-read-eri-file Read ERI file
--dms-restore-factory-defaults=[(Service Programming Code)] Restore factory defaults
--dms-validate-service-programming-code=[(Service Programming Code)] Validate the Service Programming Code
--dms-get-band-capabilities Get band capabilities
--dms-get-factory-sku Get factory stock keeping unit
--dms-list-stored-images List stored images
--dms-select-stored-image=[modem#,pri#] where # is the index Select stored image
--dms-delete-stored-image=[modem#|pri#] where # is the index Delete stored image
--dms-set-fcc-authentication Set FCC authentication
--dms-reset Reset the service state
--dms-noop Just allocate or release a DMS client. Use with `--client-no-release-cid' and/or `--client-cid'
NAS options
--nas-get-signal-strength Get signal strength
--nas-get-signal-info Get signal info
--nas-get-tx-rx-info=[(Radio Interface)] Get TX/RX info
--nas-get-home-network Get home network
--nas-get-serving-system Get serving system
--nas-get-system-info Get system info
--nas-get-technology-preference Get technology preference
--nas-get-system-selection-preference Get system selection preference
--nas-set-system-selection-preference=[cdma-1x|cdma-1xevdo|gsm|umts|lte|td-scdma] Set system selection preference
--nas-network-scan Scan networks
--nas-get-cell-location-info Get Cell Location Info
--nas-reset Reset the service state
--nas-noop Just allocate or release a NAS client. Use with `--client-no-release-cid' and/or `--client-cid'
WDS options
--wds-start-network=[(APN),(PAP|CHAP|BOTH),(Username),(Password)] Start network (Authentication, Username and Password are optional)
--wds-follow-network Follow the network status until disconnected. Use with `--wds-start-network'
--wds-stop-network=[Packet data handle] Stop network
--wds-get-packet-service-status Get packet service status
--wds-get-packet-statistics Get packet statistics
--wds-get-data-bearer-technology Get data bearer technology
--wds-get-current-data-bearer-technology Get current data bearer technology
--wds-get-profile-list=[3gpp|3gpp2] Get profile list
--wds-get-default-settings=[3gpp|3gpp2] Get default settings
--wds-reset Reset the service state
--wds-noop Just allocate or release a WDS client. Use with `--client-no-release-cid' and/or `--client-cid'
PBM options
--pbm-get-all-capabilities Get all phonebook capabilities
--pbm-noop Just allocate or release a PBM client. Use with `--client-no-release-cid' and/or `--client-cid'
UIM options
--uim-read-transparent=[0xNNNN,0xNNNN,...] Read a transparent file given the file path
--uim-get-file-attributes=[0xNNNN,0xNNNN,...] Get the attributes of a given file
--uim-get-card-status Get card status
--uim-reset Reset the service state
--uim-noop Just allocate or release a UIM client. Use with `--client-no-release-cid' and/or `--client-cid'
WDA options
--wda-set-data-format=[raw-ip|802-3] Set data format
--wda-get-data-format Get data format
--wda-noop Just allocate or release a WDA client. Use with `--client-no-release-cid' and/or `--client-cid'
Application Options:
-d, --device=[PATH] Specify device path
--get-service-version-info Get service version info
--device-set-instance-id=[Instance ID] Set instance ID
--device-open-version-info Run version info check when opening device
--device-open-sync Run sync operation when opening device
-p, --device-open-proxy Request to use the 'qmi-proxy' proxy
--device-open-net=[net-802-3|net-raw-ip|net-qos-header|net-no-qos-header] Open device with specific link protocol and QoS flags
--client-cid=[CID] Use the given CID, don't allocate a new one
--client-no-release-cid Do not release the CID when exiting
-v, --verbose Run action with verbose logs, including the debug ones
--silent Run action with no logs; not even the error/warning ones
-V, --version Print version