搜尋
搜尋結果
搜尋Quick Start ,
共找到 38 筆
- 排序
- 依時間
- 依熱門度
培訓
工具
學習
影片長度 - 8:36
Hello everyone, I am Morgan, the principal engineer of Nuvoton Technology. Today, I will show you how to use 4G LTE or NB-IoT with Mbed OS on NuMaker-IoT-M487 development board.
This tutorial needs a cellular expansion board to work with NuMaker-IoT-M487 development board. You can purchase the 4G LTE expansion board, RF-EC21A, on Nuvoton Direct (https://direct.nuvoton.com/communication-module/). Please install your 4G LTE SIM card in the mini SIM card slot on the back, and install the antenna at the MAIN connector on the front of the board.
Although there is an NB-IoT expansion board, it requires an NB-IoT SIM card. Using LTE is more convenient. Just use your own LTE SIM card which has data plan.
Then install the expansion board to the Arduino UNO connector of the NuMaker-IoT-M487 development board.
Because the power consumption of the 4G LTE module is higher, it is not enough to supply power from USB only. You need to plug in the 5V/2A power supply. If you use NB-IoT module, no additional power supply is needed.
We used “New” to select a template to create a new project. This time, we use the example on GitHub to create a new project. The URL of template used for this tutorial is https://github.com/OpenNuvoton/NuMaker-mbed-Cellular-example
In chrome browser, enter the URL https://ide.mbed.com to use Mbed Online Compiler environment.
After you log in, make sure that NuMaker-IoT-M487 board already selected in the upper right corner. If not, please refer Nuvoton IoT Tutorial series “Get Started with Mbed OS” which has a detailed description of how to add a board.
Click the second option “Import” on the upper left.
In the Import Wizard, click “Click here”
On the “Source URL:”, enter the tempalte URL https://github.com/OpenNuvoton/NuMaker-mbed-Cellular-example . Then move mouse cursor to “Import Name:” and click it, the Project name will be automatically fill in. Then click “Import” button.
Now you can see that the sample code has loaded. Depending on the cellular module used, the configuration may need to be modified. Click on “Readme.md” to open it. It lists configurations for supported cellular modules.
Because the tutorial uses RF-EC21A expansion board which includes a Quectel EC21 LTE module, let’s check and modify the configuration in mbed_app.json file.
Click the “mbed_app.json” file to open it. It is a JSON file to customize compile time configuration parameters in Mbed OS. The “*” (asterisk) in “target_overrides” session indicates all development boards are applicable. You can set in the designated board session, so the settings are only applicable to the specified board.
The default mbed_app.json file in the example has configured for RF-EC21A. Such as,
"target.network-default-interface-type" has set to "CELLULAR" for cellular connection.
Both "lwip.ppp-enabled” and "lwip.tcp-enabled" set to true.
Use generic AT3GPP driver for RF-EC21A ("GENERIC_AT3GPP.provide-default": true)
And the RF-EC21A UART connects on Arduino D0/D1 ("GENERIC_AT3GPP.tx": "D1" and "GENERIC_AT3GPP.rx": "D0")
When your SIM card installed in your mobile phone, you can find the APN, username and password settings in your mobile phone. Or contact your telecom operator to get this information. In the example, APN has set to “internet”, no username, and no password. (Move mouse cursor around these settings)
The final setting to check is PIN code. In the example, the setting is no PIN code. If your SIM card has PIN code, for example 1234, please set it like this “\”1234\”” (Move mouse cursor around the setting)
Save it then build it.
It is in compiling, please wait a moment.
Then you can see the last message is “Success!”.
The browser will download the binary firmware file directly after a successful compiling. It will be saved in a default download folder or the folder based on your browser setting. In Chrome, you can click download file and select “Show in folder”.
Then we connect the NuMaker-IoT-M487 USB port to your computer and don’t forget to plug in external 5V power supply.
Please find the virtual COM port assigned for NuMaker-IoT-M487 in Device Manager. In the demonstration, the “Nu-Link Virtual Com Port” is COMx.
Then use your favorite terminal tool. Here we use Putty. Open the COMx port with 115200 baud rate, 8 bits, 1 stop bit, none parity, and no flow control settings. Then “Open” it.
Let’s back to the download folder where you can see the binary firmware file (NuMaker-mbed-Cellular-example.NUMAER_IOT_M487.bin). Drag and drop the file to NuMicro MCU drive.
You will see the copying progress dialog box.
You can see the connection messages printed on terminal. It shows that the board creates a TCP connection to server “echo.mbedcloudtesting.com”, send 4 bytes data and get the data back from server.
That’s all for this tutorial. Thank you.
For more information, please visit Nuvoton Technology: https://bit.ly/3hVdcmC
Buy now: https://direct.nuvoton.com/en/numaker-iot-m487
#tool #training #learning #intermediate #en
培訓
工具
學習
影片長度 - 5:29
Hello everyone, I am Morgan, the principal engineer of Nuvoton Technology. Today, I will show you how to use Wi-Fi with Mbed OS on NuMaker-IoT-M487 development board.
First, open Chrome browser, enter the URL https://ide.mbed.com
Please make sure that NuMaker-IoT-M487 board already selected in the upper right corner after you log in. If not, please refer Nuvoton IoT Tutorial series “Get Started with Mbed OS” which has a detailed description of how to add a board.
Click the “New” on the upper left, a “Create new program” window will be displayed. You can see that the Platform has been set to NuMaker-IoT-M487. In the Template field, select the "NuMaker WiFi TCP Example" for this tutorial. Then click OK.
Now you can see that the sample code has loaded on the page. Click on “mbed_app.json” to open it.
In order to use Wi-Fi, you have to configure SSID and password to match your Wi-Fi access point setting. In the mbed_app.json file, the default Wi-Fi security set to WPA and WPA2 in “nsapi.default-wifi-security” field. Please modify the field “nsapi.default-wifi-ssid” to your Wi-Fi SSID
Then modify “nsapi.default-wifi-password” to your Wi-Fi password.
Click on “Compile” to build it.
It is in compiling, please wait a moment.
Then you can see the last message is “Success!” at the bottom of this page.
The browser will download the binary firmware file directly after a successful compiling. It will be saved in a default download folder or the folder based on your browser setting. In Chrome, you can click download file and select “Show in folder”.
Then we connect the NuMaker-IoT-M487 USB port to your computer and make sure the onboard LED lights up.
Let’s back to the download folder where you can see the binary firmware file (NuMaker-mbed-wifi-tcp.NUMAKER_IOT_M487.bin). Drag and drop the file to NuMicro MCU drive.
You will see the copying progress dialog box.
Please find the virtual COM port assigned for NuMaker-IoT-M487 in Device Manager. In the demonstration, the “Nu-Link Virtual Com Port” is COMx.
Then use your terminal tool. Here we use Putty. Open the COMx port with 115200 baud rate, 8 bits, 1 stop bit, none parity, and no flow control settings. Then “Open” it.
Press Reset button on board to run again.
You can see the connection messages printed on terminal. It shows the board’s IP address obtained from the Wi-Fi access point, sends a TCP/HTTP connection to server, and the result of return.
That’s all for this tutorial. Thank you for watching. Welcome to subscribe to our channel. If you want to know more information, please contact us at SalesSupport@nuvoton.com
-
For more information, please visit Nuvoton Technology Website: https://bit.ly/3hVdcmC
Buy now: https://direct.nuvoton.com/en/numaker-iot-m487
Contact us: SalesSupport@nuvoton.com
#Tool #Training #Learning #Intermediate #en
培訓
工具
學習
影片長度 - 3:51
Hello everyone, I am the principal engineer of Nuvoton Technology, Morgan. Today, I will show you how to use Mbed OS on the NuMaker-IoT-M487 development board to control LED and buttons.
First, open Chrome browser, enter the URL https://ide.mbed.com.
Please make sure that NuMaker-IoT-M487 board already selected in the upper right corner after you log in. If not, please refer Nuvoton IoT Tutorial series “Get Started with Mbed OS” which has a detailed description of how to add a board.
Then click the “New” on the upper left, a “Create new program” window will be displayed. You can see that the Platform has been set to NuMaker-IoT-M487. In the Template field, select the "NuMaker GPIO Interrupt with Debounce Setting" for this tutorial. Then click OK.
Now you can see that the sample code has loaded on the page. Click on “main.cpp”, this sample code uses SW2 button for demonstration. Click on “Compile” to build it.
It is in compiling, please wait a moment.
Then you can see a lot of messages at the bottom of the page. The last message is “Success!”
The browser will download the binary firmware file directly after a successful compiling. It will be saved in a default download folder or the folder based on your browser setting. In Chrome, you can click download file and select “Show in folder”.
Then we have to connect the NuMaker-IoT-M487 USB port to your computer and make sure the onboard LED lights up.
Let’s head back to the download folder where you can see the binary firmware file (NuMaker-mbed-GPIO-Interrupt.NUMAKER_IOT_M487.bin). Drag and drop the file to NuMicro MCU drive.
You will see the copying progress dialog box.
Next step is to press the SW2 button on the board to toggle LED. You can see the reaction of each press.
That’s all for this tutorial. Thank you for watching. Welcome to subscribe to our channel. If you want to know more information, please contact us at SalesSupport@nuvoton.com
-
For more information, please visit Nuvoton Technology Website: https://bit.ly/3hVdcmC
Buy now: https://direct.nuvoton.com/en/numaker-iot-m487
Contact us: SalesSupport@nuvoton.com
#Tool #Training #Learning #Intermediate #en
培訓
工具
學習
影片長度 - 8:57
Hello everyone, I am the principal engineer of Nuvoton Technology, Morgan. The development board we are using today is Nuvoton’s NuMaker-IoT-M487. It is powered by the NuMicro M487 microcontroller with Arm Cortex-M4 core, built-in RJ45 Ethernet, and Wi-Fi module allowing users to connect to clouds by wire or wirelessly. It supports several RTOS including Arm Mbed OS, Amazon FreeRTOS, and AliOS Things.
Today, I will show you how to use Mbed OS on the NuMaker-IoT-M487 development board.
First, open Chrome browser, enter the URL https://os.mbed.com to register an account if you don’t have one.
Move the mouse cursor to the human icon in the upper right corner then click “Log in or Sign up” or click “Sign up for free” directly.
Then click “Sign up”
Fill in your e-mail address and relevant information, and finally click Sign up. Check your mailbox to receive the certification letter and authorize it.
Then let’s log in to use the online compiler environment. Move to the human icon in the upper right corner, and then click “Log in or Sign up”. And enter your account and password. After a successful login, it will return to the first page and then click “Compiler” on the left side of the human icon. It will lead us to the online compiler web page.
The following demonstration is all operated on this page
Click “No device selected” in the upper right corner to add and select Nuvoton’s NuMaker-IoT-M487 development board.
It opens the “Select a Platform” page. We click the button, show “Add Board” with green “+”, in the lower-left corner.
Next, it shows the page, let us choose a board.
Scroll down to find NuMaker-IoT-M487, and click it. It opens the NuMaker-IoT-M487 board page (https://os.mbed.com/platforms/NUMAKER-IOT-M487/). Scroll down the page to find the button “+Add to your Mbed Compiler”, and click it.
Click “Compiler” on top of the page to return to the online compiler environment. If the “NuMaker-IoT-M487” small icon appears in the upper right corner, you can start to import a sample code. Otherwise, click “No device selected” again. At this time, you can see the NuMaker-IoT-M487 icon already in the “Select a Platform” dialog box, click the icon to select it and then click “Select Platform” in the upper right corner.
It returns to the online compiler page, and the “NuMaker-IoT-M487” icon shows in the top right corner. You can now start to import a sample code.
First, click “New” on the top left side, a small “Create new program” dialog box appears. The “Platform” selects “NuMaker-IoT-M487” automatically. In the “Template” field, please select “mbed OS Blinky HelloWorld” example code, click OK.
You can see the sample project has been loaded on the page, click “main.cpp” to show the source code. Let’s add a printf() function to print out a string in the main program.
Check if statements are correct, save it, and click “Compile” to build code.
Now it’s compiling, let’s wait for a moment.
And you can see a lot of messages at the bottom of the page. The last message is “Success!”
The browser will download the binary firmware file directly after a successful compiling. It will be saved in a default download folder or any folder based on your browser setting. In Chrome, you can click download file and select “Show in folder”.
Then we need to connect the NuMaker-IoT-M487 USB port to your computer and make sure the onboard LED lights up.
Let’s head back to the download folder where you can see the binary firmware file (mbed-os-example-blinky.NUMAKER_IOT_M487.bin). Drag and drop the file to NuMicro MCU drive.
You will see the copying progress dialog box. After the copy is completed, the firmware starts to execute. One LED on board starts blinking. To see the printout message, go on the following steps.
Please find the virtual COM port assigned for NuMaker-IoT-M487 in Device Manager. In the demonstration, the “Nu-Link Virtual Com Port” is COMx.
Then use your terminal tool of choice. Here we use Putty. Open the COMx port with 9600 baud rate, 8 bits, 1 stop bit, none parity, and no flow control settings.
You can see “Hello World!” printed in the terminal.
That’s all for this tutorial. Thank you for watching.
If you want to know more information, please contact us at SalesSupport@nuvoton.com
-
For more information, please visit Nuvoton Technology Website: https://bit.ly/3hVdcmC
Buy now: https://direct.nuvoton.com/en/numaker-iot-m487
Contact us: SalesSupport@nuvoton.com
#Tool #Training #Learning #Intermediate #en
前瞻應用
學習
影片長度 - 3:16
This short video clip introduces a real smart meter design in starting volume deployment in South Korea. A real meter machine and mobile phone APP show the auto meter reading online.
#Application #Learning #Basic #en
-
For more information, please visit Nuvoton Technology Website: https://bit.ly/3hVdcmC
buy now: https://direct.nuvoton.com
contact us: SalesSupport@nuvoton.com
培訓
工具
學習
影片長度 - 6:47
以新唐 NuMaker-IoT-M487 為平台,使用 Mbed OS 進行開發,學習各種功能。觀看本片,您將學會使用 NuMaker-IoT-M487 開發板配合 Mbed OS 與 Pelion 的範例程式連接 Pelion。
哈囉大家好,我是新唐工程師 Miya,今天為大家介紹如何使用新唐 NuMaker IoT-M487 在 MbedOS 跟 Pelion 上連接雲端。
因為憑證下載需求,所以操作前請先準備好一張 Format 好的 MicoSD Card 待用。
打開 Chrome 瀏覽器輸入網址"https://cloud.mbed.com/quick-start"
需要先啟動免費帳號,點選中間上方”Activate your free access” 後,下一個頁面點 Log in 登入您的帳號密碼,Log in。
啟動後,選擇中間選項"Start the Connect Tutorial",系統會自動轉到這個頁面,往下拉選取 NuMaker-IoT-M487 (WiFi)。
選好後,點"Get started",系統將導入此頁面,點選 1.2,將 pelion-example-common example 加進線上編譯平台。
確認系統匯入 pelion-example-common 後,點 Import。
Load code 中,請稍待片刻。
先點選"pelion-example-common program.",接著在 Online compiler IDE 環境的 menu bar 上,到 Pelion Device Management 中下拉選取"Manage Connect Certificates"來建立 Pelion 憑證。
API Key 這邊按一下 OK。
點"Create",輸入您想存的連接憑證名字,之後按 OK。
點一下您建立的憑證,再按 OK,OK。
點 Pelion Device Management 選取"Apply Update Certificate."會出現 Update Certificates 視窗,按 Create,點"Download Private Key"。
接著先確認右上方板子已經有帶出”NuMaker-IoT-M487 及板子小圖示”了,如果沒有可參考教學影片”step by step 讓你了解如何運行 Mbed OS”,裡面有詳細的示範怎麼新增板子的方法!
由於要使用 Wi-Fi,所以需要將 SSID 及密碼改成可符合您連線環境的設定。
找到 mbed_app.json 裡面 SSID 設定"wifi-ssid",此版 sample code 在第 9 行,更改為您使用無線網路所設定的 SSID (我使用的是 nu),接著再找到"wifi-password"設定,此版在第 10 行裡的 Password 改成您無線網路連接設定的密碼,改好後存檔,Compile,現在 Compile 中,需要等待一下,完成後看到最下方會秀出"Success!"。
系統會把 compile 完成的 bin 檔放在 download 資料夾, 直接從下方進入,上拉後,點一下”Show in folder”。
接著需要先把 format 過的 Micro SD Card 插入卡槽,再將 NuMaker-IoT-M487 板子跟 PC 接上 USB,確認板子有亮燈就是通電了。
回到剛才的資料夾,可以看到多了一個剛才 compile 完成的 bin 檔,按右鍵傳送到 NuMicro MCU(E:) 這邊分配到哪一槽要看各位的電腦決定!有成功點選到的話會出現傳送過去的畫面。
接著到電腦的裝置管理員查看分配到的 port 編號,在本機按右鍵,選管理,找到裝置管理員,到連接埠(COM 和 LPT) 可以看到 USB 序列裝置,就知道這部 PC 分配給它的是 COM9。
接下來使用終端機模擬軟體,各位可以用自己熟悉的軟體操作即可,設定 Serial line 為 COM9, Speed 為 115200,到 Serial 將 Flow control 改為 None,接著 OPEN。
設定好之後,在板子上按一次 reset,接著在終端機摸擬軟體就可以看到目前板子已經成功連接無線網路,看到雲端回傳的 Endpoint name 就代表連接成功囉!
以上是這次的教學影片,感謝您的收看。歡迎訂閱我們的頻道。
如果您想知道更多資訊歡迎聯絡我們!
-
更多產品資訊,請至新唐科技網站 https://bit.ly/3hVdcmC
購買管道:https://direct.nuvoton.com/tw/numaker-iot-m487
聯絡我們: SalesSupport@nuvoton.com
#Tool #Training #Learning #Intermediate #zh-Hant
培訓
工具
學習
影片長度 - 7:34
介紹如何在 NuMaker IoT M487 上運行 MicroPython,以及展示使用 Python 程式碼,來控制開發板上的 LED。
大家好,我是新唐工程師 Cliff,現在為您介紹新唐 IoT 系列課程。讓您了解如何在 NuMicro 系列 MCU 上運行 Python 程式碼。在這部影片中,我們將呈現如何將 Python 直譯器下載及燒錄到 NuMaker 板子上,以及寫一段簡單 Python 程式碼,來控制 LED 的明滅。
首先我先介紹 MicroPython。MicroPython 是使用 ANSI C 來打造可在微控器上運行的 Python 直譯器、核心程式庫和底層硬體介面模組。借助 MicroPython,使用者可以使用 Python 語言來實現微控器底層硬體控制,例如:LED 的控制,ADC 的讀取等。
另外 MicroPython 還提供了 REPL 模式 ( Read Eval Print Loop ),讓使
用者可以直接在命令列上直接下達輸入 Python 程式碼,無需編譯,直接在微控器上執行。
接下來這是系統架構示意圖。應用程式是使用 Python 語言寫成的,可以被儲存在內建 Flash 或 SD card 內,或者由命令列輸入。 MicroPython 做為一個直譯器,它會持續的在硬體上運行,從內建 Flash 讀取 Python 應用程式碼並執行應用程式碼內容。那如何讓 MicroPython 跑在 NuMicro MCU 上呢? 新唐提供了 NuMicroPy 這個 MicroPython 的移植方案,您可以從
github.com/OpenNuvoton/NuMicroPy 這位網址下載這整個軟體
開發包。
NuMicroPy 移植了 MicroPython 直譯器和核心庫外,也移植了底層硬體介面模組,如:UART, I2C, CAN, Ethernet 等。另外也提供 USB Mass Storage 的方式來更新使用者的 Python 應用程式碼,僅需 USB 線便可以在電腦上,使用複製貼上方式將使用者的程式碼寫入到微控器的內建 Flash。
NuMicroPy 目前支援了三塊 NuMaker 板子。分別是 M487 系列的 NuMaker-PFM-M487 和 NuMaker-IOT-M487。它的核心為 Arm Cotrex M4。
以及,M263系列的 NuMaker-M263KI 板子,它的核心為 Arm Cotrex M23。以上這三塊板子您可以從 Nuvoton Direct 購得。
這個圖表列出了目前 MicroPython 移植到這三塊板子後,所需要的 ROM 和 RAM 空間。由於 M263 不支援 Ethernet,所以在 ROM 和 RAM 的需求上會比較小。注意:列出的空間需求,不包含 Python 應用程式。
接下來為各位示範 ”如何在 NuMicro上玩 Python”。首先準備一塊NuMaker-IoT-M487板子,二條USB線。
軟體上的需求是,請先下載 NuMicroPy 軟體開發包。然後安裝終端模擬程式,如:Tera Term, PuTTY等。最後選用一個你常用的文件編輯器,例如: Notepad,來編寫 Python 程式。
接下來為各位示範 "如何在 M487 IOT 開發板上玩 Python”。
請先下載 NuMicroPy 軟體開發包。然後安裝終端模擬程式,如
:Tera Term, PuTTY等。最後選用一個你常用的文件編輯器,例如: Notepad,來編寫 Python 程式。
東西準備好了後,我們先確認開發板上 NuLink-Me 的 Mass
storage 和 Virtual com port 的功能是否開啟。然後將開發板上請
將 ISW1 開關元件,都切至 ON 的位置,以打開開發板上 NuLink-
Me 的 Mass storage 和 Virtual com port 的功能。
接著將 NuLink Me 的 USB 接上電腦,這時電腦會出現一個 ”NuMicro MCU” 磁碟槽,這表示 NuLink-Me 的 Mass storage 已開啟。
接下來開啟 Tera term 終端模擬程式來連接 NuLink-Me 的 Virtual com port。點選序列埠,選擇 USB Serial Device。
從 Setup 點選 Serial port,然後設定 Baud rate 到為 115200,按下 OK。
接下來我們要著進行 MicroPython 直譯器的燒錄。
在 NuMicroPy 開發包裡 build目錄下,放置了已編譯好的 MicroPython firmware,進入相對應的開發板目錄,會有一個 firmware.bin檔案。
複製將這 firmware.bin 這個檔案,使用複製然後貼上到 ”NuMicro MCU” 磁碟槽內。
等檔案寫入成功並且終端模擬器出現 MicroPython 的 REPL 提示號,表示MicroPython 已成功的運行在開發板上。
最後我們將寫一段簡單控制 LED 明滅的 Python 程式碼,並把它儲存到開發板內建 Flash。
首先產生一個 main.py 檔,並使用文字編輯器編輯 Python 程式碼。
Import pyb 模組,從 pyb 模組 import LED class 產生一個 led 物件,在無限迴圈裡,執行:led 滅,延時一秒,led 亮,延時一秒。結束,存檔。
接著把開發板上的 USB1.1 接上電腦後,按住 SW2 按鍵並
同時,接著按一下 RESET 鍵後。
等終端模擬程式出現 ”Start USB device MSC class” 後才放
開 SW2 鍵。這時候電腦會出現 ”PYBFLASH” 磁碟槽,裡面會有一個
main.py 檔。把我們剛寫好的 main.py 檔,使用複製貼上替換掉
”PYBFLASH” 磁碟槽內的 main.py。
完成後再按一下 RESET 鍵,這時候剛完成的 Python 應用程式就會開始被執行。您會看到 led 明滅變化。
以上是這次的教學影片,感謝您的收看。
如果您想知道更多資訊,歡迎聯絡我們!
-
更多產品資訊,請至新唐科技網站 https://bit.ly/3hVdcmC
購買管道:https://direct.nuvoton.com/tw/numaker-iot-m487
聯絡我們: SalesSupport@nuvoton.com
#Tool #Training #Learning #Intermediate #zh-Hant
培訓
工具
學習
影片長度 - 7:49
以新唐 NuMaker-IoT-M487 與 AliOS Things 為平台進行開發,學習開發各式功能。觀看本片,您將學會如何以 AliOS Things 範例程式使用乙太網路連接阿里雲。
大家好,我是新唐工程師 Wayne,
現在為您介紹新唐 IoT 系列課程主題 -讓您了解如何在 AliOS Things 操作系統下使用 Ethernet 連接阿里雲。
在這部影片中,我們將呈現如何取得設備證書、如何編譯使用 Ethernet連接阿里雲專案、如何執行檔案的燒錄下載以及測試點亮LED 燈。
如果您還沒有下載 AliOS-Things 軟體開發包,您可以觀看我們的另一部影片 - 開始使用 AliOS Things-控制 LED 與按鍵 (AliOS Things篇)。
首先打開瀏覽器,並在網址列輸入阿里雲入口網址,網址如下 - http://iot.console.aliyun.com。連接。
瀏覽器畫面目前顯示的是 阿里雲登錄頁面。選擇 中國站-簡體中文 ,依照提示完成註冊。輸入申請的帳號與密碼後,點選登錄。成功登錄後,畫面目前顯示阿里雲個人首頁。找到個人控制台選項連結,點選。
畫面目前顯示阿里雲個人控制台,頁面列出已申請使用的雲服務。
找到物聯網平台選項連結,點選。畫面目前顯示物聯網服務的專屬控制頁面。點選頁面左邊的設備管理選項,再點選產品,然後點選創建產品,新增一個設備產品。產品名稱輸入 numicro_iot,並輸入以下設備產品相關資訊,這裡連網方式的選項 包含選擇 Wi-Fi、乙太網或是其它,取決於產品設備使用的通訊連網方式,我們選擇乙太網,然後點選完成,畫面即呈現設備產品建立完成,頁面上產生一筆記錄。我們在這筆記錄上,點選查看,並切換至 Topic 類列表,再點選 定義 Topic 類,在彈跳出來的小視窗內,Topic 類欄位輸入 data,並將設備操作權限改為發佈和訂閱,然後點選確定。接著我們點選頁面左邊的設備選項,再點選右邊的添加設備選項。然後,畫面彈跳出一個填寫設備資訊的視窗,接著在產品選項列表選擇剛剛我們新增的產品 - numicro_iot,並輸入設備名稱 - test_01,填入完成後,點選確認。接著畫面彈跳出該產品設備的三元組資訊。
點選 一鍵複製 ,把設備三元組資訊儲存在筆記本文件 內暫存。
在 AliOS-Things 軟體開發包找到 numicro_aliyun_ethernet keil 專案檔案。它的路徑如下-
projects\Keil\numicro_aliyun_ethernet@numaker-iot-m487\keil_project
打開 Keil 專案檔,並打開 mqtt_example.c,
將設備證書分別填入 PRODUCT_KEY, DEVICE_NAME, DEVICE_SECRET
常數定義。
然後,點擊 Rebuild 圖示編譯專案。在編譯成功後,它將產生一個可執行檔案在 Objects 目錄內,完整檔案路徑如下:
projects\Keil\numicro_aliyun_ethernet@numaker-iot-
m487\keil_project\Objects,輸出的檔案名稱為
numicro_aliyun_ethernet@numaker-iot-m487.bin
接下來,我們開始進行可執行檔案的燒錄下載,在這之前,我們先確認開發板上的 ISW1 開關元件,都切至 ON 的位置。 接著將 USB 線插上電腦。
這時侯我的電腦出現一個 NuMicro MCU 磁碟機。我們回到可執行檔案儲放的目錄,在可執行檔案 numicro_aliyun_ethernet@numaker-iot-m487.bin上,按下滑鼠右鍵,傳送到 NuMicro MCU 磁碟機,
然後畫面出現檔案傳輸視窗,等到傳輸完成後,也結束燒錄下載流程。
我們開啟 Tera term 終端模擬連線工具,序列埠選擇 Nu-Link Virtual Com Port 編號 - COM5。其它的連接埠設定如畫面呈現。如畫面設定。
在完成設定後,點選確定並按下開發板上的 Reset 按鍵。
Tera term 將印出 AliOS-Things 的開機資訊並提供命令模式。
我們接著將網路線接到具備網際網路連線功能的路由器上,
接上後,終端機顯示 plugged!! 100 full,代表乙太網路實體連接交握完成,這時,輸入 netmgr start 指令進行本地IP網路連接。在成功連接之後,範例程式也會連接上阿里雲。我們接著按下板子上 SW2 和 SW3 按鍵,由於在範例程式內,同時訂閱與發佈同一個 Topic ,在終端機上顯示按鍵被按下、按鍵被按下事件訊息被發佈到雲服務器後和
收到從雲服務器發過來的訊息。
我們亦可在阿里雲物聯網平台頁面上,查看從設備發佈的主題訊息。點選左邊的日誌服務,產品選擇numicro_iot,切換到上行消息分析分頁,在MessageID 欄位這邊第一個數字連結,彈出一個小視窗,內容選項選擇 Text(UTF-8) 後,右邊的訊息顯示 SW3 pressed!,代表雲服務器成功接收並儲存這個訊息至資料庫。
以上,是設備上行的測試; 我們接著進行下行至設備測試:
點選左邊的設備,找到設備名稱 test_01,點選查看,切至 Topic 列表分頁,在設 user/data 這個 Topic,點選發佈消息 ,它彈跳出一個小視窗,我們在消息內容的欄位上 ,填入 LED*=OFF 字串,並點選確認。在按下確認後,板子的 3 顆 LED 燈就熄滅; 再發佈LED*=ON 訊息一次,板子的 3 顆 LED 燈就亮起。到這裡,我們完成了測試。
-
更多產品資訊,請至新唐科技網站 https://bit.ly/3hVdcmC
購買管道:https://direct.nuvoton.com/tw/numaker-iot-m487
聯絡我們: SalesSupport@nuvoton.com
#Tool #Training #Learning #Intermediate #zh-Hant
影片長度 - 4:59
Secure Smart Metering Communication Reference Design
Hi everybody, today we are going to introduce a reference design of Smart-Metering communication card based on NuMicro M2351 Series microcontroller. You can find useful security features based on the Arm Cortex-M23 CPU core with Nuvoton’s in-house technology integration.
The auto-metering is an infrastructure for automatic, remotely, wire or wireless meter data reading. It’s highly possible to be intervened if there is no security mechanism. That is a very typical IoT security issue in the IoT era.
In many countries, there are a lot of Auto-Metering Infrastructure (AMI) projects being undertaken by main electricity power companies worldwide. Most projects start from upgrading the communication modem cards as the first step rather than retiring the meters. The modem card can play as a gateway to monitor the incorrect device operation and data transmission security. Issues of modem card security are covering:
First, a limited performance due to crypto computation efficiency
Second, speed limitation due to interface choice
The third, cost burden due to extra hardware modules for different communication protocols
Nuvoton’s reference design of Secure Smart Meter Communication is an end-to-end security solution for AMI. With the collaboration with SPI-Korea, the solution incorporates a lot of advantages such as TrustZone security for firmware, a range of interfaces for device communication, secure over-the-air firmware update, and remote management. With the complete hardware specification of M2351, a security software company, SPI-Korea, can easily implement their secure AMI solution for modem card which connects meters and cloud servers. M2351 also contributes the crypto acceleration during the cryptographic computing in order to save CPU time for different communication protocol modules by its powerful hardware functionalities during message transmission outside of a microcontroller unit.
SPI-Korea has developed a range of Armv8-M TrustZone based technologies. Her expertise covers Boot Manager, Key Manager, and Device Manager, which is very useful for microcontroller security and certainly shows the stability of a microcontroller device. Also, they are certified by Korea Electricity Company. We hope this successful experience can be further adopted in other areas worldwide because it’s a secure, accurate and environmentally safe solution for AMI.
This slide is a picture for SPI-Korea AMI modem card design. NuMicro Family microcontrollers can be utilized for designs of auto-metering infrastructure devices. We start from AMI modem card and we are confident to support meters of any next-generation of AMI. We now integrate M23-based microcontroller with M4-based or Arm9-based microcontroller as a proposal for next-generation modem card of Korea AMI and we hope to provide high-performing cost-effective solution for all AMI devices in the future.
-
For more information, please visit Nuvoton Technology Website: https://bit.ly/3hVdcmC
contact us: SalesSupport@nuvoton.com
影片長度 - 4:52
說明Nuvoton Nu-Link Debug Adapter是一個基於SWD(串列調試)信號介面的USB調試及燒錄器,可應用在Nuvoton NuMicro™ 家族晶片的開發中。用戶可以用ICP工具進行批量燒錄。Nu-Link Adapter也支援協力廠商的開發工具。本視頻介紹Nu-Link Adapter的種類、功能,及如何搭配IAR使用。
粤公网安备 44030502010001号