diff --git a/docs/Quick_start/en/README.md b/docs/Quick_start/en/README.md index fc398dc21d167db1e087cfc717a8840c8f7e5057..4aa4c9c311199bc63dd0dbb621f745ce9d92dfa7 100644 --- a/docs/Quick_start/en/README.md +++ b/docs/Quick_start/en/README.md @@ -1,9 +1,10 @@ ## Revision History -| Version | Date | Author | Description | -| ------- | ---------- | ------ | ---------------------------------------------- | -| 1.0 | 2021-09-02 | Kayden | Initial compilation& User Guide on Quick-Start | -| 1.1 | 2021-09-10 | David | Added the notices on environment building | +| Version | Date | Author | Description | +| ------- | ---------- | ---------- | ---------------------------------------------- | +| 1.0 | 2021-09-02 | Kayden | Initial compilation& User Guide on Quick-Start | +| 1.1 | 2021-09-10 | David.Tang | Added the notices on environment building | +| 1.2 | 2022-02-12 | David.Tang | Translate Chinese operation pictures | ## Preface @@ -17,13 +18,11 @@ This document is a little monotonous probably. However, if you scan over, you ca **Document address**: **[https://python.quectel.com/doc/](https://python.quectel.com/doc/)** , which includes Quick-start, Common interfaces development, Development improvement and Simple tests. -**Address for downloading development resources**: [https://python.quectel.com/download](https://python.quectel.com/download), which includes development tool, driver, FW and Referential HW design. +**Address for downloading development resources**: **[https://python.quectel.com/download](https://python.quectel.com/download)**, which includes development tool, driver, FW and Referential HW design. -**QuecPython Community link** :[https://forumschinese.quectel.com/c/function-subjects/quectpython/43] +**QuecPython Community link** :**[https://forums.quectel.com/c/quecpython/66](https://forums.quectel.com/c/quecpython/66)** -**[](https://forumschinese.quectel.com/c/function-subjects/quectpython/43)** - - + Or you can use the magnifier in the top right-hand corner to find what you want. If there is none, you can apply for us when it is convenient to you. @@ -45,8 +44,6 @@ After acquiring the EVB, plug in the USB interface on the EVB and carry out pow ### How to Boot - - | EVB | Boot operation | | -------------------------- | ------------------------------------------------------------ | | EC600S_QuecPython_EVB_V1.0 | Plug in to boot | @@ -74,24 +71,21 @@ Notices on driver installation 3. **In RDA platform, after downloading USB driver zip, it contains drivers of both Windows 7 and Windows 10.** - - + Please do as following sequence: open " **My Computer** "--" **Management** "--" **Device manager** " Before installing driver: - + After installing driver -![](media/readme_5.png) +![](media/readme_5.jpg) Open unzipped package, then double click to run " **setup.exe** "; after that, keep on clicking the " **Next Step** " till the installation is done. If the port marked with " **exclamation** " in " **device manager** " is invisible, which means the installation is a success and normal communication can be executed. **As the above figure implies, there still exists an" exclamation ", please just ignore for it is useless.** -![](media/readme_6.png) - -![](media/readme_7.png) +![](media/readme_6.jpg) ![](media/readme_8.png) @@ -143,7 +137,7 @@ In QuecPython, the string is indicated by a pair of single quotation marks, such ### In Real Scenario -****![](media/readme_11.png) +****![](media/readme_11.jpg) After opening up QPYcom, we can see three ports in “select interface” are module-related, among which: @@ -167,7 +161,7 @@ Hello World! QuecPython >>> ``` -![image-20210910111634969](media/readme_12.png) +![image-20210910111634969](media/readme_12.jpg) The returned value of module is visible and "Hello world! QuecPython " is outputted successfully. @@ -237,21 +231,21 @@ Referential document Take *PyCharm* as an example -![](media/PyCharm_1.png) +![](media/readme_13.jpg) ### Run Code on Module Select the compiled code above via clicking"**+**" (Or drag from left to right), the file will be downloaded to module. -![](media/C59.png) +![](media/readme_14.jpg) Select script file in " **file** " selection under QPYcom, click " **Run** " as following figure shows: -![](media/C60.png) +![](media/readme_15.jpg) Skip to " **Interaction** " surface automatically, then you can see the executed result of module. -![](media/C61.png) +![](media/readme_16.jpg) What we can find is that the result in QPYcom is as same as that in module. Normally, when compiling codes, we can verify service logic and sentence in PC but execute in module, as a result, the development efficiency will be improved prominently. @@ -267,11 +261,11 @@ API Introduction on WIKI (In Chinese): https://python.quectel.com/wiki/#/zh-cn/a API Introduction on WIKI (In English): https://python.quectel.com/wiki/#/en-us/api/ -![](media/C62.png) +![](media/readme_17.jpg) Click the corresponding item, detailed introduction on API will be displayed. -![](media/C63.png) +![](media/readme_18.jpg) @@ -283,16 +277,12 @@ Address to download demo:https://python.quectel.com/download For more practical demos, you can search for key words for downloading in QQ Group: 445121768. -![](media/C65.png)Unzip the folder and add it into the **pycarm** after downloading, then you can check and compile the code in demo conveniently. +![](media/C65.jpg)Unzip the folder and add it into the **pycharm** after downloading, then you can check and compile the code in demo conveniently. -![](media/C64.png) +![](media/readme_19.png) There exists illustration on every code. -![](media/C66.png) - - - from machine import Pin import utime @@ -301,21 +291,19 @@ import checkNet -,,, +''' It is a must to have following two variates. Users can modify the value of these two variates according to the actual need. And before executing user codes, the value of these two variates will be printed beforehand. -**PROJECT_NAME = "QuecPython_Pin_example"** +''' - **PROJECT_VERSION = "1. 0. 0"** +**PROJECT_NAME = "QuecPython_Pin_example"** - + **PROJECT_VERSION = "1. 0. 0"** checkNet = checkNet. CheckNetwork(PROJECT_NAME, PROJECT_VERSION) - - - ,,, +\''' * Parameter 1: Pin No. @@ -335,4 +323,6 @@ It is a must to have following two variates. Users can modify the value of these +''' + Abundant and complete demos are displayed on official website, which can do a great favor in developing user product. \ No newline at end of file diff --git a/docs/Quick_start/en/media/C59.png b/docs/Quick_start/en/media/C59.png deleted file mode 100644 index 4a48d8867d37516fb3e77a6b693029ef3c2b933d..0000000000000000000000000000000000000000 Binary files a/docs/Quick_start/en/media/C59.png and /dev/null differ diff --git a/docs/Quick_start/en/media/C60.png b/docs/Quick_start/en/media/C60.png deleted file mode 100644 index 10055841c98181681b5778f62852a658426d905b..0000000000000000000000000000000000000000 Binary files a/docs/Quick_start/en/media/C60.png and /dev/null differ diff --git a/docs/Quick_start/en/media/C61.png b/docs/Quick_start/en/media/C61.png deleted file mode 100644 index 425216facdc92c607b9977efe5cdb85d9b154428..0000000000000000000000000000000000000000 Binary files a/docs/Quick_start/en/media/C61.png and /dev/null differ diff --git a/docs/Quick_start/en/media/C65.jpg b/docs/Quick_start/en/media/C65.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1a6bf431305b64fb3630810b30870dee1cd87a18 Binary files /dev/null and b/docs/Quick_start/en/media/C65.jpg differ diff --git a/docs/Quick_start/en/media/PyCharm_1.png b/docs/Quick_start/en/media/PyCharm_1.png deleted file mode 100644 index 000a1935cafafaa5e89a0655bcb4c97d1114b265..0000000000000000000000000000000000000000 Binary files a/docs/Quick_start/en/media/PyCharm_1.png and /dev/null differ diff --git a/docs/Quick_start/en/media/c62.png b/docs/Quick_start/en/media/c62.png deleted file mode 100644 index 229c81a208685581810df2806df9f9bf38837c11..0000000000000000000000000000000000000000 Binary files a/docs/Quick_start/en/media/c62.png and /dev/null differ diff --git a/docs/Quick_start/en/media/c63.png b/docs/Quick_start/en/media/c63.png deleted file mode 100644 index 0c2a8496510f468afa9dd58466b43904c981dc44..0000000000000000000000000000000000000000 Binary files a/docs/Quick_start/en/media/c63.png and /dev/null differ diff --git a/docs/Quick_start/en/media/c65.png b/docs/Quick_start/en/media/c65.png deleted file mode 100644 index c98202212282d578b2705c6238ceb8fa7ec2c18d..0000000000000000000000000000000000000000 Binary files a/docs/Quick_start/en/media/c65.png and /dev/null differ diff --git a/docs/Quick_start/en/media/readme_1.jpg b/docs/Quick_start/en/media/readme_1.jpg new file mode 100644 index 0000000000000000000000000000000000000000..5c5fec23bc8816fb64b18f70e17025cda05ce88c Binary files /dev/null and b/docs/Quick_start/en/media/readme_1.jpg differ diff --git a/docs/Quick_start/en/media/readme_1.png b/docs/Quick_start/en/media/readme_1.png deleted file mode 100644 index 51789476a6efc242259f33b2e7afb1432f2c89ab..0000000000000000000000000000000000000000 Binary files a/docs/Quick_start/en/media/readme_1.png and /dev/null differ diff --git a/docs/Quick_start/en/media/readme_11.jpg b/docs/Quick_start/en/media/readme_11.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f7ca94b917ce2d588af46e92a2862f55f3f197c6 Binary files /dev/null and b/docs/Quick_start/en/media/readme_11.jpg differ diff --git a/docs/Quick_start/en/media/readme_11.png b/docs/Quick_start/en/media/readme_11.png deleted file mode 100644 index 83209e323b8ca1a203265f2d5b98ddff4e09f00a..0000000000000000000000000000000000000000 Binary files a/docs/Quick_start/en/media/readme_11.png and /dev/null differ diff --git a/docs/Quick_start/en/media/readme_12.jpg b/docs/Quick_start/en/media/readme_12.jpg new file mode 100644 index 0000000000000000000000000000000000000000..ebbb19a639346eefc687e106ca18aad2e9f480bb Binary files /dev/null and b/docs/Quick_start/en/media/readme_12.jpg differ diff --git a/docs/Quick_start/en/media/readme_12.png b/docs/Quick_start/en/media/readme_12.png deleted file mode 100644 index 54c80c139e92f1ac825c2d06603eaa162eb92a87..0000000000000000000000000000000000000000 Binary files a/docs/Quick_start/en/media/readme_12.png and /dev/null differ diff --git a/docs/Quick_start/en/media/readme_13.jpg b/docs/Quick_start/en/media/readme_13.jpg new file mode 100644 index 0000000000000000000000000000000000000000..893414099d75d0a945bbe46cd319251f18c7d216 Binary files /dev/null and b/docs/Quick_start/en/media/readme_13.jpg differ diff --git a/docs/Quick_start/en/media/readme_14.jpg b/docs/Quick_start/en/media/readme_14.jpg new file mode 100644 index 0000000000000000000000000000000000000000..9bbaa51d15bcb4728cf85aabed6c34820530ae9e Binary files /dev/null and b/docs/Quick_start/en/media/readme_14.jpg differ diff --git a/docs/Quick_start/en/media/readme_15.jpg b/docs/Quick_start/en/media/readme_15.jpg new file mode 100644 index 0000000000000000000000000000000000000000..59f266599398dfe90b839323af6a9b7424cc5ab0 Binary files /dev/null and b/docs/Quick_start/en/media/readme_15.jpg differ diff --git a/docs/Quick_start/en/media/readme_16.jpg b/docs/Quick_start/en/media/readme_16.jpg new file mode 100644 index 0000000000000000000000000000000000000000..4e634a17ae8db0e16306f66ac75f726919a18226 Binary files /dev/null and b/docs/Quick_start/en/media/readme_16.jpg differ diff --git a/docs/Quick_start/en/media/readme_17.jpg b/docs/Quick_start/en/media/readme_17.jpg new file mode 100644 index 0000000000000000000000000000000000000000..153d7499957b7b564406ae55d03f97091687ee04 Binary files /dev/null and b/docs/Quick_start/en/media/readme_17.jpg differ diff --git a/docs/Quick_start/en/media/readme_18.jpg b/docs/Quick_start/en/media/readme_18.jpg new file mode 100644 index 0000000000000000000000000000000000000000..3381812e8d1da583a6b89b312e6ab6785537a332 Binary files /dev/null and b/docs/Quick_start/en/media/readme_18.jpg differ diff --git a/docs/Quick_start/en/media/c64.png b/docs/Quick_start/en/media/readme_19.png similarity index 100% rename from docs/Quick_start/en/media/c64.png rename to docs/Quick_start/en/media/readme_19.png diff --git a/docs/Quick_start/en/media/readme_3.jpg b/docs/Quick_start/en/media/readme_3.jpg new file mode 100644 index 0000000000000000000000000000000000000000..07c15f102325f067099895e1d964d20f1b5b748e Binary files /dev/null and b/docs/Quick_start/en/media/readme_3.jpg differ diff --git a/docs/Quick_start/en/media/readme_3.png b/docs/Quick_start/en/media/readme_3.png deleted file mode 100644 index 07aecf4bad2c1dc03cc4ce0566cb1610158e027a..0000000000000000000000000000000000000000 Binary files a/docs/Quick_start/en/media/readme_3.png and /dev/null differ diff --git a/docs/Quick_start/en/media/readme_4.jpg b/docs/Quick_start/en/media/readme_4.jpg new file mode 100644 index 0000000000000000000000000000000000000000..180aea7d90ae694a5276810703c22f65421f33c3 Binary files /dev/null and b/docs/Quick_start/en/media/readme_4.jpg differ diff --git a/docs/Quick_start/en/media/readme_4.png b/docs/Quick_start/en/media/readme_4.png deleted file mode 100644 index bd937d65808cf8de9ada02a5eef4783d3d3e209e..0000000000000000000000000000000000000000 Binary files a/docs/Quick_start/en/media/readme_4.png and /dev/null differ diff --git a/docs/Quick_start/en/media/readme_5.jpg b/docs/Quick_start/en/media/readme_5.jpg new file mode 100644 index 0000000000000000000000000000000000000000..bb27216350ac189938ba84b3352e3ac44211272e Binary files /dev/null and b/docs/Quick_start/en/media/readme_5.jpg differ diff --git a/docs/Quick_start/en/media/readme_5.png b/docs/Quick_start/en/media/readme_5.png deleted file mode 100644 index 5bccaf329f8c622ae3b84928b6da717546e18905..0000000000000000000000000000000000000000 Binary files a/docs/Quick_start/en/media/readme_5.png and /dev/null differ diff --git a/docs/Quick_start/en/media/readme_6.jpg b/docs/Quick_start/en/media/readme_6.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1b68e75dd6af2f1f61e97f682dccdb667d89c8c8 Binary files /dev/null and b/docs/Quick_start/en/media/readme_6.jpg differ diff --git a/docs/Quick_start/en/media/readme_6.png b/docs/Quick_start/en/media/readme_6.png deleted file mode 100644 index 32c7e6d20c56de18fdb1611664fd75a920963b77..0000000000000000000000000000000000000000 Binary files a/docs/Quick_start/en/media/readme_6.png and /dev/null differ diff --git a/docs/Quick_start/en/media/readme_7.png b/docs/Quick_start/en/media/readme_7.png deleted file mode 100644 index a9994c317042f818fd1167f82f7444b3f765f35e..0000000000000000000000000000000000000000 Binary files a/docs/Quick_start/en/media/readme_7.png and /dev/null differ diff --git a/docs/sbs/en/BSP/UART.md b/docs/sbs/en/BSP/UART.md index 0622b32b80660426789ce134daa2126488f79cb0..6f08baf63c6a151fa00f16b3a22eb8af51a13fa4 100644 --- a/docs/sbs/en/BSP/UART.md +++ b/docs/sbs/en/BSP/UART.md @@ -1,8 +1,9 @@ ## Revision history -| Version | Date | Author | Change expression | -| ------- | ---------- | ---------- | ----------------- | -| 1.0 | 2021-09-02 | David.Tang | Initial version | +| Version | Date | Author | Change expression | +| ------- | ---------- | ---------- | ------------------------------------ | +| 1.0 | 2021-09-02 | David.Tang | Initial version | +| 1.1 | 2022-02-12 | David | Translate Chinese operation pictures | In this document, it mainly introduces how to use *QuecPython_UART* based on EC600X (Including in EC600S, EC600N and EC600U). As a universal serial data bus, UART can be used in asynchronous communication so as to realize duplex transmission and reception. In embedded design, the UART is used to communicate with PC, including in monitoring debugger as well as other components. After reading the whole context, you may learn about all setting parameters and application notes of *EC600X_UART*. @@ -26,11 +27,11 @@ As for the QuecPython EVB of V1.2 and V1.3, the specific location of URAT is sho ## SW Design -As for SW design, please refer to wiki on official website. Here shows the link: [UART_API Library](https://python.quectel.com/wiki/#/zh-cn/api/QuecPythonClasslib?id=uart) +As for SW design, please refer to wiki on official website. Here shows the link: [UART_API Library](https://python.quectel.com/wiki/#/en-us/api/QuecPythonClasslib?id=uart) -Interact with module via QPYcom. Take following case as an example, it is based on UART0. While as for UART1 and UART2, the operation is just the same. +Interact with module via QPYcom. Take following case as an example, it is based on UART1. While as for UART2, the operation is just the same. -![](media/UART_02.png) +![](media/UART_02.jpg) **Note** @@ -40,7 +41,7 @@ Interact with module via QPYcom. Take following case as an example, it is based ## Download and verify -Module: EC600N_QuecPython EV +Module: EC600U_QuecPython EVB Serial port: UART1 @@ -101,8 +102,8 @@ Do power supply to module via type-c, The connection of *UART-to-USB* and *TTL-t | Pin on EVB | TTL-to-USB module | Wire color on the figure | | ----------- | ----------------- | ------------------------ | -| Pin12 on J6 | Tx | Red | -| Pin13 on J6 | Rx | Orange | +| Pin12 on J6 | Tx | Orange | +| Pin13 on J6 | Rx | Red | | GND | GND | Brown | The HW connection is displayed as next figure: @@ -116,7 +117,7 @@ The HW connection is displayed as next figure: 3. Run *example_uart_file.py* on QPYcom, then we can see the data of UART write on Qcom. For more details, please check the red box on the screen-shot. 5. Then write message of QuecPython for several times on Qcom and check the read data on QPYcom. For more details, please check the blue box on the screen-shot. -![image-20210902135941009](media/UART_05.png) +![image-20210902135941009](media/UART_05.jpg) ## Matched Codes diff --git a/docs/sbs/en/BSP/media/UART_02.jpg b/docs/sbs/en/BSP/media/UART_02.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c6a8adba350a431814fb60ede546faf3dbad019a Binary files /dev/null and b/docs/sbs/en/BSP/media/UART_02.jpg differ diff --git a/docs/sbs/en/BSP/media/UART_02.png b/docs/sbs/en/BSP/media/UART_02.png deleted file mode 100644 index 8aafaaded8a9bf3aca2dd3d40abfcf4d04f3af26..0000000000000000000000000000000000000000 Binary files a/docs/sbs/en/BSP/media/UART_02.png and /dev/null differ diff --git a/docs/sbs/en/BSP/media/UART_05.jpg b/docs/sbs/en/BSP/media/UART_05.jpg new file mode 100644 index 0000000000000000000000000000000000000000..e7e901f4737f1113d98e9d32b69e483c490f3d8a Binary files /dev/null and b/docs/sbs/en/BSP/media/UART_05.jpg differ diff --git a/docs/sbs/en/BSP/media/UART_05.png b/docs/sbs/en/BSP/media/UART_05.png deleted file mode 100644 index de8e5c88e701dc3074f665aacce35a3ab5afefb9..0000000000000000000000000000000000000000 Binary files a/docs/sbs/en/BSP/media/UART_05.png and /dev/null differ diff --git a/docs/sbs/en/QuecPythonWirelessNetwork/media/ntp_01.jpg b/docs/sbs/en/QuecPythonWirelessNetwork/media/ntp_01.jpg new file mode 100644 index 0000000000000000000000000000000000000000..cd032438c868c707ee2337efee92116f8af2ae3a Binary files /dev/null and b/docs/sbs/en/QuecPythonWirelessNetwork/media/ntp_01.jpg differ diff --git a/docs/sbs/en/QuecPythonWirelessNetwork/media/ntp_01.png b/docs/sbs/en/QuecPythonWirelessNetwork/media/ntp_01.png deleted file mode 100644 index d3ff00fe6989a40b433d3c2a88feb41cdd47908f..0000000000000000000000000000000000000000 Binary files a/docs/sbs/en/QuecPythonWirelessNetwork/media/ntp_01.png and /dev/null differ diff --git a/docs/sbs/en/QuecPythonWirelessNetwork/media/ntp_02.jpg b/docs/sbs/en/QuecPythonWirelessNetwork/media/ntp_02.jpg new file mode 100644 index 0000000000000000000000000000000000000000..6118beda05b86b5b5af89e7a7cb6f8fa64280dcc Binary files /dev/null and b/docs/sbs/en/QuecPythonWirelessNetwork/media/ntp_02.jpg differ diff --git a/docs/sbs/en/QuecPythonWirelessNetwork/media/ntp_02.png b/docs/sbs/en/QuecPythonWirelessNetwork/media/ntp_02.png deleted file mode 100644 index cf01c852045c1a2b91b96c5498b7143e31ef16bc..0000000000000000000000000000000000000000 Binary files a/docs/sbs/en/QuecPythonWirelessNetwork/media/ntp_02.png and /dev/null differ diff --git a/docs/sbs/en/QuecPythonWirelessNetwork/media/ntp_03.jpg b/docs/sbs/en/QuecPythonWirelessNetwork/media/ntp_03.jpg new file mode 100644 index 0000000000000000000000000000000000000000..8d09ccb3733ef9c451116a5b5d79112cd4c1b7a6 Binary files /dev/null and b/docs/sbs/en/QuecPythonWirelessNetwork/media/ntp_03.jpg differ diff --git a/docs/sbs/en/QuecPythonWirelessNetwork/media/ntp_03.png b/docs/sbs/en/QuecPythonWirelessNetwork/media/ntp_03.png deleted file mode 100644 index 01a07df983814ad728c799bfb93d48d33662da4a..0000000000000000000000000000000000000000 Binary files a/docs/sbs/en/QuecPythonWirelessNetwork/media/ntp_03.png and /dev/null differ diff --git a/docs/sbs/en/QuecPythonWirelessNetwork/media/ntp_04.jpg b/docs/sbs/en/QuecPythonWirelessNetwork/media/ntp_04.jpg new file mode 100644 index 0000000000000000000000000000000000000000..58d8d473481728f95c90776ee6a3743796940f94 Binary files /dev/null and b/docs/sbs/en/QuecPythonWirelessNetwork/media/ntp_04.jpg differ diff --git a/docs/sbs/en/QuecPythonWirelessNetwork/media/ntp_04.png b/docs/sbs/en/QuecPythonWirelessNetwork/media/ntp_04.png deleted file mode 100644 index ced3c491f839bb0aaf03315e37ba1433a7ba430d..0000000000000000000000000000000000000000 Binary files a/docs/sbs/en/QuecPythonWirelessNetwork/media/ntp_04.png and /dev/null differ diff --git a/docs/sbs/en/QuecPythonWirelessNetwork/media/ntp_05.png b/docs/sbs/en/QuecPythonWirelessNetwork/media/ntp_05.png deleted file mode 100644 index 489fc4e8e019475afad73bbde61b4f09212d1f3f..0000000000000000000000000000000000000000 Binary files a/docs/sbs/en/QuecPythonWirelessNetwork/media/ntp_05.png and /dev/null differ diff --git a/docs/sbs/en/QuecPythonWirelessNetwork/ntp.md b/docs/sbs/en/QuecPythonWirelessNetwork/ntp.md index 222e4d8355b21eeed848c58de24a229bbd51da1d..c182ba5b7a2a6e42ab9d3edb18538231ca3a21cd 100644 --- a/docs/sbs/en/QuecPythonWirelessNetwork/ntp.md +++ b/docs/sbs/en/QuecPythonWirelessNetwork/ntp.md @@ -3,6 +3,7 @@ |------|------|------|------| | 1.0 | 2021-4-1 | gary.zhou | Initial version | | 1.1 | 2021-9-15 | David.Tang | Checked and modified | +| 1.2 | 2022-02-15 | David.Tang | Translate Chinese operation pictures | ## Foreword @@ -18,38 +19,34 @@ In order to prevent the malicious damage to time server, the Authentication mech ## About API -For detailed API, please refer to [QuecPython-ntptime-NTP Time Service](https://python.quectel.com/wiki/#/zh-cn/api/QuecPythonThirdlib?id=ntptime-ntp对时) +For detailed API, please refer to [QuecPython-ntptime-NTP Time Service](https://python.quectel.com/wiki/#/en-us/api/QuecPythonThirdlib?id=ntptime-ntp-time-synchronization) ## Function realization For NTP time service, you should get time from NTP server. Therefore, there is a need to connect network beforehand. In this document, we just take the access to network via SIM card as an example. ### Step 1 -Prepare one usable SIM card, plug in, power on and wait for the automatic dial up. Take **EC600S-CN** as an example. The NANO SIM socket, with a feature of push - push, downward touching point and inward notch, is implemented on *the EC600S_QuecPython_EVB_V1.1*. +Prepare one usable SIM card, plug in, power on and wait for the automatic dial up. Take **EC200U-EU** as an example. After automatic dial up, verify whether it is a success via following method: - ![ntp-01(E)](media\ntp-01(E).png) Figure 1 Insert SIM card +![](media/ntp_01.jpg) -After automatic dial up, verify whether it is a success via following method: - -![](media/ntp_02.png) - -​ Figure 2: The verification of data call is a success +​ Figure 1: The verification of data call is a success ### Step 2 Import *ntptime* module and return to the current NTP server, which is *ntp.aliyun.com* by default. -![](media/ntp_03.png) +![](media/ntp_02.jpg) - ​ Figure 3 Current NTP Server + ​ Figure 2: Current NTP Server ### Step 3 Set NTP server. If it is a success, which will return 0, while it is a failure, which will return -1. -![](media/ntp_04.png) +![](media/ntp_03.jpg) - ​ Figure 4: Set NTP Server + ​ Figure 3: Set NTP Server ### Step 4 @@ -59,9 +56,9 @@ As for the time service result, it is available to verify via *utime.localtime() The returned time is UTC via *ntptime.settime()*, however, the Beijing time is ahead of UTC for 8 eight, therefore, compared with current time, the time goes back 8 hours. -![](media/ntp_05.png) +![](media/ntp_04.jpg) - ​ Figure 5: Success in Time Service + ​ Figure 4: Success in Time Service ## Appendix: Term abbreviation