diff --git a/docs/sbs/en/QuecPythonPlatform/code/modem_get_dev_info.py b/docs/sbs/en/QuecPythonPlatform/code/modem_get_dev_info.py new file mode 100644 index 0000000000000000000000000000000000000000..e39bcfe82ce225a94bf0f9e6f5981b31d07a19dc --- /dev/null +++ b/docs/sbs/en/QuecPythonPlatform/code/modem_get_dev_info.py @@ -0,0 +1,29 @@ +import modem +import log + +state = 1 +log.basicConfig(level=log.INFO) # Set the output level of log + +log = log.getLogger("QuecPython") + +def modem_msg(): + global state + modem_Imei = modem.getDevImei() + modem_DevModel = modem.getDevModel() + modem_DevSN = modem.getDevSN() + modem_DevFwVersion = modem.getDevFwVersion() + modem_DevProductId = modem.getDevProductId() + log.info("modem_Imei:{}".format(modem_Imei)) + log.info("modem_DevModel:{}".format(modem_DevModel)) + log.info("modem_DevSN:{}".format(modem_DevSN)) + log.info("modem_DevFwVersion:{}".format(modem_DevFwVersion)) + log.info("modem_DevProductId:{}".format(modem_DevProductId)) + state = 0 + +if __name__ == "__main__": + modem_msg() + while 1: + if state: + pass + else: + break \ No newline at end of file diff --git a/docs/sbs/en/QuecPythonPlatform/media/Qp_modem_get_dev_info_01.png b/docs/sbs/en/QuecPythonPlatform/media/Qp_modem_get_dev_info_01.png index 898c2ff0b615f66e26166a8465b661ecd07db57e..300aea63a626305689a1be886b6c71a05a3c9b33 100644 Binary files a/docs/sbs/en/QuecPythonPlatform/media/Qp_modem_get_dev_info_01.png and b/docs/sbs/en/QuecPythonPlatform/media/Qp_modem_get_dev_info_01.png differ diff --git a/docs/sbs/en/QuecPythonPlatform/media/Qp_modem_get_dev_info_02.jpg b/docs/sbs/en/QuecPythonPlatform/media/Qp_modem_get_dev_info_02.jpg new file mode 100644 index 0000000000000000000000000000000000000000..e375c23f4178292061994c9cbe872d6aff34f779 Binary files /dev/null and b/docs/sbs/en/QuecPythonPlatform/media/Qp_modem_get_dev_info_02.jpg differ diff --git a/docs/sbs/en/QuecPythonPlatform/media/Qp_modem_get_dev_info_02.png b/docs/sbs/en/QuecPythonPlatform/media/Qp_modem_get_dev_info_02.png deleted file mode 100644 index 4754b01a58814167259f5236522573f1ebc9ec78..0000000000000000000000000000000000000000 Binary files a/docs/sbs/en/QuecPythonPlatform/media/Qp_modem_get_dev_info_02.png and /dev/null differ diff --git a/docs/sbs/en/QuecPythonPlatform/modem_get_dev_info.md b/docs/sbs/en/QuecPythonPlatform/modem_get_dev_info.md index 5d408bc63901ed3728958686a8d2d589c854a787..5153b698e3e100965fde2b0a7da16e29235e523c 100644 --- a/docs/sbs/en/QuecPythonPlatform/modem_get_dev_info.md +++ b/docs/sbs/en/QuecPythonPlatform/modem_get_dev_info.md @@ -3,9 +3,10 @@ ## Revision History -| Version | Date | Author | Description | -| ------- | ---------- | ---------- | --------------- | -| 1.0 | 2021-09-15 | David.Tang | Initial version | +| Version | Date | Author | Description | +| ------- | ---------- | ---------- | ------------------------------------ | +| 1.0 | 2021-09-15 | David.Tang | Initial version | +| 1.1 | 2022-02-15 | David.Tang | Translate Chinese operation pictures | ## Foreword @@ -13,11 +14,11 @@ In this document, it ilustrates how to get device info via QuecPython modem base ## SW design -In terms of SW design, please refer to the wiki on official website, which is located in [modem_API Library](https://python.quectel.com/wiki/#/zh-cn/api/QuecPythonClasslib?id=%e8%8e%b7%e5%8f%96%e8%ae%be%e5%a4%87%e7%9a%84imei) +In terms of SW design, please refer to the wiki on official website, which is located in [modem_API Library](https://python.quectel.com/wiki/#/en-us/api/QuecPythonClasslib?id=modem-related-device) ## Interaction operation -Interact with EC600S-CN via QPYcom. +Interact with EC200U-EU via QPYcom. ```Python >>> import modem @@ -37,7 +38,7 @@ object is of type module >>> getDevModel() 'EC600S' >>> getDevFwVersion() -'EC600SCNAAR01A01M16_OCPU_PY_BETA1211' +'EC200UEUABR01A03M08_PY' >>> getDevProductId() 'Quectel' ``` @@ -51,7 +52,7 @@ Note: #### SW code -Download **.py** file and run on EC600S-CN, please check codes +Download **.py** file and run on EC200U-EU, please check codes ```python import modem @@ -93,9 +94,9 @@ HW connection is not necessary Run *modem_file.py* in QPYcom. -![modem_01(E)](media\modem_01(E).png) +![modem_01](media/Qp_modem_get_dev_info_01.png) Please refer to the result. -![image-20210915165947749](media/Qp_modem_get_dev_info_02.png) +![image-20210915165947749](media/Qp_modem_get_dev_info_02.jpg)