搜尋

已選項目

搜尋結果

搜尋GUI library , 共找到 15 筆
  • 排序
  • 依時間
  • 依熱門度
前瞻應用  學習  影片長度 - 10:23
新唐 NuMicro M031BT 雙模藍牙低功耗 5.0 (Bluetooth Low Energy, BLE5.0) 提供了 BLE UART 透傳的展示,並實際操作如何使用 AT 命令模式來作設定與使用資料傳輸模式來收發資料。 【KEIL MDK Nuvoton edition M0/M23(Free License)】 https://www2.keil.com/nuvoton/M0-M23 【Nu-Link_Keil_Driver】 https://www.nuvoton.com/resource-download.jsp?tp_GUID=SW1120200221180521 【M031 BLE AT Command User Guide】 M031_Series_BSP_CMSIS_V3.xx.xxx\SampleCode\NuMaker-M03xBT_XXXXXX\BLE\Doc\M031 BLE AT Command User Guide.pdf 【Related sample codes in the BSP (Board Support Package)】 BSP_ Library\M031_Series_BSP_CMSIS_V3.xx.xxx\SampleCode\NuMaker-M03xBT_xxxxxx\BLE\Demo ATCMD 【App】 App Store (Apple devices): https://apps.apple.com/tw/app/nuvotonble/id1514073524 Google Play Store (Android devices): https://play.google.com/store/apps/details?id=com.nuvoton.nuble 大家好,我是新唐的工程師 Oliver,今天爲大家介紹 M031BT 的 BLE UART 透傳範例程式的展示,另外也會簡單介紹一下 M031BT 的特點。 M031BT 的特點是它是一個有豐富周邊且帶有 BLE 5.0 無線傳輸的 MCU,在系統方面 CPU 可以運行到 48MHz,Flash 最多可達 128 KB,SRAM 最多可達 16KB,封裝是 QFN 5x5mm,在 48 pin 的 IC 中算是非常小的,在類比周邊部分 ADC 是 12-bit 且采樣速度可以高達 2 MSPS,另外還有 2 組比較器;數位周邊也非常的豐富,像是UART有3組、I2C有2組、PWM有12通道,且PWM解析度可以高達2倍的系統頻率96 MHz、Timer有4個;在無線傳輸部分支援BLE 5.0或2.4G私有協議,可調整的發射功率可達+8 dBm,接收靈敏度可達 -94 dBm 新唐對於藍牙的開發支援了透傳/HOGP/heatbeat三種profile並且有OTA功能,此外central mode/peripheral mode的切換功能,有更多元場景應用的可能性,對於不熟悉藍牙開發的客戶我們也支援AT command協助客戶可以快速開發,透過新唐所推出的M031BT您可以應用在個人醫療儀器、個人保健照護、量測儀器或是智慧門鎖等應用 接下來介紹今天demo的BLE UART透傳,在demo的系統中會有個HOST透過UART傳資料給M031BT,M031BT再經由BLE將資料傳送給手機,或由手機發資料透過BLE傳送到M031BT,再由M031BT的UART傳給HOST,再這個dome中分爲兩種模式一種是AT Command,是用來對M031BT做基本設定,另一種模式是資料傳輸模式也就是透傳模式,M031BT會將UART收到的資料轉爲BLE送出去,或將BLE收到的資料轉爲UART再給HOST,這兩種模式的切換是透過HOST控制高低准位並且輸入到M031BT的GPIO來切換 在開始測試之前我們需要先準備測試環境,我們使用NuMaker-M031BTYE一台電腦當作HOST,NuMaker-M031BTYE上的Nu-Link2-Me當作USB轉UART的橋接器,M031BT的UART脚位PA0/PA1會經由VCOM switch連接到Nu-Link2-Me 的UART引脚,我們只要把VCOM指撥開關的Pin1/Pin2撥到ON就可以連接 另外M031BT的模式控制脚位PB0若連接到VDD是AT command 模式,若連接到GND是資料傳輸模式,模式控制脚位預設內部上拉至VDD,所以預設是AT command 模式 現在我們將USB線接上NuMaker與電腦後,開啓裝置管理員確認com port是否有連接上,確認是COM3就可以關掉了,接著電腦上需要安裝任一種的串列通訊軟體,影片中我們使用Putty當作範例,安裝完Putty之後,開啓Putty選擇Serial,輸入剛剛確認的COM3還有115200的波特率,按下OPEN 再來我們需要將AT Command的固件下載到M031BT,我們開啓ATCMD這個範例的專案,按下編譯,編譯完之後按下載等待下載完成,下載完成後我們可以看到Putty的視窗中已經有打印出一些信息了,代表燒錄成功 再來是如果安卓裝置要在Google Play Store下載App若是iOS的話要在App Store下載後安裝,影片中以安卓來當作範例,開啓Paly Store並輸入Nuvoton BLE看到後點選安裝,等安裝完成後初步的環境設置就算完成了 接著來看看ATCMD支援的命令有哪些,這是AT command 的列表,主要都是用來查看M031BT的參數或是設定M031BT的參數 例如輸入AT是測試命令,查看M031BT在AT command模式是否正常; 輸入AT+HELP? 是查看支援那些命令; 輸入AT+UART是察看UART波特率是多少,預設是115200,也可以設定波特率,目前支援五種不同的波特率; AT+NAME可以看裝置名稱或修改裝置名稱; AT+ADVINT可以查看目前的廣告間隔時間與設定廣告間隔時間; AT+ADVEN可以開啓廣告,讓手機可以搜尋的到,要注意的是預設沒有開的AT+TXPWR可以設定輸發射功率,目前有三種段數可設定,分別是0/4/8 dBm; AT+SLEEP可以讓M031BT沒發送資料時候進入睡眠模式,節省功耗 其他詳細說明可以參考這份表格或M031 BLE AT Command User Guide這份文件,這個文件在BSP裏面可以找到 接下來我們來實際操作,這一頁說明ATCMD這個範例程式的預設參數設定,像是波特率是115200,發射功率是+8 dBm,大家可以參考一下。 我們先前開啓過裝置管理員確認設定是COM3還有波特率是115200,接著NuMaker-M031BTYE的reset 按鍵,就可以看到M031BT AT Command的字顯示在PuTTY的視窗中,那預設模式脚位的PB0預設是上拉到VDD,所以預設是AT command 模式 接著使用鍵盤輸入AT按下enter按鍵,若出現OK代表AT command 模式是正常,即可輸入其他指令 若要查看支援那些指令,可以輸入AT+HELP?再按下enter鍵,就會出現全部支援的指令有哪些 若要看現在的波特率設定輸入AT+UART? 再按下enter鍵,就可以知道UART目前的波特率 廣告的間隔時間可以查看也可以修改,輸入AT+ADVINT? 就可以得到目前的廣告間隔時間,看到目前是160,這個數值每個單位是0.625us,也就是100ms,間隔時間的設定會影響到平均的功耗,這時間也可以修改,間隔時間越長平均功耗越低,不過也是要看應用需要多少時間 再來我們輸入AT+ADVINT=320可以看到回復OK,代表時間已經改爲200ms,我們可以再次輸入AT+ADVINT?得到間隔時間是320,確認修改成功 輸入AT+ADVEN可以開啓廣告讓手機可以搜尋的到,預設並沒有開啓,所以輸入開啓的指令 輸入AT+ADDR?可以查詢BLE設備位址 再來我們可以輸入AT+NAME?來查詢BLE設備的名稱,我們可以看到裝置名稱是NVT-M031BT, 打開手機的APP來搜尋看看,搜尋到的就是NVT-M031BT 那也可以修改BLE設備的名稱,只要依據前面的表格下指令就可以 再來是數據傳輸模式演示,也就是透傳模式,我們首先再AT command模式下輸入AT+ADVEN啓用廣告可讓手機搜尋的到,再來開啓NuBLE掃描並連接到NVT-M031BT,接著我們必須要手動將模式控制引脚PB0如畫面上的連接到GND,就可以切換成爲數據傳輸模式也就是透傳模式 再來我們在文字輸入欄位中輸入字符串,然後點擊SEND按鍵,那麽手機上輸入的資料就會透過BLE傳送資料到M031BT,M031BT再將收到的資料經由UART透過Nu-Link2-Me傳送到PC的終端窗口中 剛剛已經演示過兩種模式的使用方式,在相關資源部分 基本的開發環境KEIL我們提供的免費許可證,依照連結網頁內的步驟來做只要使用新唐的M0/M23 MCU就可以免費使用,另外Nu-Link的driver也提供連結下載 另外關于影片中的M031 BLE AT Command用戶指南已經放入BSP內,裏面有更詳細的操作與說明,BSP可從官網下載,APP部分也附上連結,方便大家使用 以上是這次的教學影片,感謝您的收看。歡迎訂閱我們的頻道。 如果您想知道更多資訊歡迎聯絡我們! #zh-Hant #Learning #Basic #Application - 更多產品資訊,請至新唐科技網站 https://bit.ly/3hVdcmC 購買管道:https://direct.nuvoton.com/tw 聯絡我們:SalesSupport@nuvoton.com
培訓  前瞻應用  工具  學習  影片長度 - 32:41
● Intro ● Software preparation ● GUI design ● Animation & Interaction ● Build code ● SPIM function ● Demo This video demonstrates how to use the Nuvoton M467 HMI evaluation board(NuMaker-HMI-M467) with the SEGGER emWin AppWizard tool to rapidly create an electric bicycle dashboard interface. The video covers various aspects, including creating interaction and design by combining different objects, exporting the code, code explanations, compiling the code, and showcasing the results of the emWin AppWizard E-bike example program. This step-by-step guide enables users to easily operate the Nuvoton-HMI-M467 and emWin AppWizard tool. Example code download link: http://forum.nuvoton.com/viewtopic.php?f=19&t=11186&sid=1f4715f5205c1fb45b47aa8ad301cf2c #NuMicro #Nuvoton #Basic #Application #Tool #Training #Learning #HMI #M4 #emWin #AppWizard #GUI #Ebike #dashboard #新唐科技 #MCU #Microcontroller #MCU #en - For more information, please visit Nuvoton Technology Website: https://bit.ly/3hVdcmC buy now: https://direct.nuvoton.com/ contact us: SalesSupport@nuvoton.com
創新產品  前瞻應用  研討會  影片長度 - 3:45
Introduce Nuvoton's GUI solution. Nuvoton GUI platform supports TFT-LCD with different interfaces and resolutions. The platform includes low power, high-performance MCUs (microcontroller), and MPUs (microprocessor) with built-in high-density DDR and graphics accelerator. We provide emWin, LVGL, Qt graphic libraries, and GUI tools such as AppWizard and SquareLine for you to easily create embedded system GUI. Today, we will give you a quick introduction of three of the NuMaker-HMI evaluation boards. ● NuMaker-HMI-M467 ● NuMaker-HMI-N9H30 ● NuMaker-HMI-MA35D1-S1 #en #Product #Application #General #Seminar #2023 Roadshow #Nuvoton #GUI #NuMicro #MCU #NuMaker-HMI-M467 #NuMaker-HMI-N9H30 #NuMaker-HMI-MA35D1-S1 - For more information, please visit Nuvoton Technology Website: https://bit.ly/3hVdcmC buy now: https://direct.nuvoton.com/ contact us: SalesSupport@nuvoton.com
創新產品  前瞻應用  研討會  影片長度 - 3:18
AppWizard is a graphic human-machine interface design tool that supports the emWin graphics library. This tool allows GUI design and development to be completed with minimal coding using a drag-and-drop interface and settings. This demo showcases the use of the AppWizard tool with the M467 development platform to design an electric bicycle dashboard interface. Therefore, the video will be divided into two parts: the M467 development platform introduction and the key features of the AppWizard. #en #Product #Application #General #Seminar #2023 Roadshow #Nuvoton #Nuvoton #E-bike #Dashboard #emWin AppWizard #NuMicro #MCU #M467 - For more information, please visit Nuvoton Technology Website: https://bit.ly/3hVdcmC buy now: https://direct.nuvoton.com/ contact us: SalesSupport@nuvoton.com
前瞻應用  學習  影片長度 - 0:40
Motorcycle Dashboard Demo on NuMaker-HMI-N9H30 EVB 【Demo Features】 • Fast booting (booting time less than 1 sec) • The dashboard GUI implementation by emWin graphics library • The 2D GFx help the smooth TFT-LCD display #en #Application #Learning #Basic - For more information, please visit Nuvoton Technology Website: https://bit.ly/3hVdcmC buy now: https://direct.nuvoton.com/ contact us: SalesSupport@nuvoton.com
創新產品  前瞻應用  學習  影片長度 - 5:20
Hi everyone, I'm Aaron. The FAE of Nuvoton technology. Today, I'm glad to show you the Nuvoton secure development board, NuMaker-IoT-M2354. The NuMaker-IoT-M2354 is an IoT evaluation board powered by the NuMicro® M2354 series. Before the introduction of NuMaker-IoT-M2354, I will take you to a quick understanding of NuMicro M2354. The M2354 is the latest NuMicro IoT series product which is based on Arm® Cortex®-M23 CPU core technology. The TrustZone® technology based on Armv8-M architecture is a CPU system-wide approach to microcontroller security. The M2354 series carry 1 Mbytes embedded Flash memory and 256 Kbytes SRAM. It's essential for IoT devices with real-time OS requirements. And you can focus on software development without warring about the flash and SRAM resource. The M2354 series is equipped with plenty of peripherals. In addition to providing UART I2C SPI Timer, it also supports the Quad SPI, USB FS OTG, and CAN BUS. Furthermore, to satisfy the IoT device's display development, the M2354 series built-in 8 COM x 40 SEG LCD controller drives up to 320 dots to meet various smart home and IoT appliances. In addition to providing many peripherals, the critical feature of M2354 is supporting many security functions. The secure boot ensures the legality and integrity of the running firmware. The hardware crypto with RSA/ECC/AES/SHA accelerators can help the device connect to the cloud fast and safely. Moreover, the M2354 is equipped with Key Store, which could be used with crypto accelerators to enhance the chip security level. To comply with Arm PSA CertifiedTM Level 3, the M2354 has implemented some countermeasures to protect against non-invasive attacks like side-channel attacks or fault injection attacks. The NuMaker-IoT-M2354 equips a Bosch environmental sensor, BME680, which contains temperature, humidity, barometric pressure, and VOC gas sensing capabilities. After getting data from the sensor, users can send data to the cloud, such as Pelion or AWS, by Mbed OS. Because M2354 supports hardware crypto, the data can be sent more efficiently and safely. The data could be shown on the LCD panel by the LCD library provided in the M2354 BSP. The NuMaker-IoT-M2354 contains a Wi-Fi module and LoRa module for wireless applications. Depending on the data throughput and power consumption, you can choose one of them for your IoT applications. In the LoRa network, each node is not connected but must be connected to the gateway before being linked back to the central host, or data can be transmitted to another node through the central host. For example, if choosing the LoRa module for the cloud development, you could use NUC980 LoRa Gateway for your gateway platform. The NuMaker-IoT-M2354 supports the radio frequency band of the LoRa module on 915MHz and 433MHz, depending on the customer's requirement. In addition to providing the rich peripheral, the NuMaker-IoT-M2354 also equips the Arduino UNO connector and mikroBUS™ connector for flexible applications. Suppose you want to develop other wireless connecting features like 4G-LTE or NB-IoT. In that case, the Nuvoton also provides a UNO-to-PCI adapter board to supports Quectel EC21 4G/LTE and Quectel BG96 NB-IoT modules. The NuMaker-IoT-M2354 also provides multiple power supplies by external power connectors and an ammeter connector that can instantly measure power consumption. In addition, the Nu-link2-Me on the board is a debugger and programmer supporting development on Keil, IAR, GCC, and Mbed IDE. #en #Learning #Basic #Application #Product - Online Purchase Development Tools: ● M2354 Series https://www.nuvoton.com/products/microcontrollers/arm-cortex-m23-mcus/m2354-series/index.html ● NuMaker-LoRa-NUC980 https://www.nuvoton.com/products/iot-solution/lora-platform/ ● NuMaker-M2354 https://direct.nuvoton.com/tw/numaker-m2354 ● Quectel-BG96A https://direct.nuvoton.com/en/quectel-bg96a ● Quectel-EC21A https://direct.nuvoton.com/en/quectel-ec21a - For more information, please visit Nuvoton Technology Website: https://bit.ly/3hVdcmC buy now: https://direct.nuvoton.com/ contact us: SalesSupport@nuvoton.com
影片長度 - 5:45
The video introduces Nuvoton's emWin graphic library for HMI applications, it also includes the breif HMI introduction, emWin resources. - For more information, please visit Nuvoton Technology Website: https://bit.ly/3hVdcmC buy now: https://direct.nuvoton.com/ contact us: SalesSupport@nuvoton.com
創新產品  學習  影片長度 - 6:6
Nuvoton announced the latest ML56 microcontroller, built-in capacitive touch sensing, LCD driver highly integrated low power platform. And provides capacitive touch sensor and LCD driver library. The solution is delivered through the API guide, which includes details on each function call, parameters and returns. Finally, this video provides an overview on how to develop a custom touch key and LCD application from the BSP release. - For more information, please visit Nuvoton Technology Website: https://bit.ly/3hVdcmC Buy now: https://direct.nuvoton.com/tw/low-power-8051-series/ Contact us: SalesSupport@nuvoton.comon.com #Product #Learning #Basic #en
培訓  工具  學習  影片長度 - 2:21
Hello everyone! I am Chris, the Field Application Engineer from Nuvoton Technology. Today, I will introduce how to run a simple sample code on NuMicro M251/M252 series microcontroller. First, we connect the M251/M252 NuMaker development Board to the computer. Then click the M251/M252 BSP folder, click the Sample Code folder, template folder, Keil folder, and finally open the Template project file. What we are going to do is running a simple GPIO Toggle LED Sample Code. Introduce the main program briefly. First, set GPIO PB14 to Output Mode. After writing a small loop, set PB14 to reverse. Finally, set CLK_SysTickDelay to 300,000 microseconds (uSec). Before Rebuild, we must add the GPIO Source Code to the Library, find the corresponding Source Code and load it, and press Rebuild after it is complete. After the Rebuild, press Load and program the Code into the IC. When programing is over, press the reset button on the development board to confirm whether the LED lights are flashing on the board. That’s all for the tutorial of running sample code. Thank you for watching it. If you want to know more information, please feel free to contact us. #Tool #Training #Learning #Intermediate #en - For more information, please visit Nuvoton Technology Website: https://bit.ly/3hVdcmC Buy now: https://direct.nuvoton.com/numaker-m251sd Contact us: SalesSupport@nuvoton.com
前瞻應用  學習  影片長度 - 3:7
只需使用 N9H20 產品 LQFP128 封裝 ARM9 CPU 產出具有多國語言語音提示彩色動畫顯示參考設計。 - 更多產品資訊,請至新唐科技網站 https://bit.ly/3hVdcmC 購買管道:https://direct.nuvoton.com/tw/ 聯絡我們: SalesSupport@nuvoton.com #application #learning #intermediate #zh-Hant
創新產品  學習  影片長度 - 15:55
Nuvoton has provided all kinds of size panels from 3.5 to 7 inches that support i80 mode and RGB interface to show GUI. N9H series supports hardware 2D Graphics Accelerator and MJPEG codec to process images. To meet customers HMI needs, Nuvoton has already prepared low-end to high-end products including M0, M4, and Arm9 series. #Product #Learning #Basic #en - For more information, please visit Nuvoton Technology Website: https://bit.ly/3hVdcmC buy now: https://direct.nuvoton.com/tw/numaker-emwin-n9h30 contact us: SalesSupport@nuvoton.com 0:00 簡介 1:32 Nuvoton HMI Solutions 3:04 Nuvoton HMI Development Systems 4:40 emWin Supported HMI Solution 5:29 Nuvoton Homemade Free GUI Templates 5:55 HMI Successful Story 7:15 Nuvoton MCU Feature for GUI 7:58 NuMicro N9H Series 9:26 NuMicro M480 Series 10:26 What is HMI and emWin Library 11:01 Windows Tools 12:34 Use GUIBuilder to easily create GUI 13:32 em Win sample code path in Nuvoton BSP 13:54 How to build the project • Both of the BSP and hardware are right, the display should 14:10 Nuvoton Forum 14:57 Supported LCD driver IC List (the popular ones)
影片長度 - 9:40
以新唐 NuMaker NUC980 IIoT 為平台,使用 Linux 進行開發,學習開發各式功能,觀看本片,您將學會在 NuMaker NUC980 IIoT上使用 Ethernet 連接到 AWS IoT 服務。 大家好我是新唐工程師 Miya,今天要為各位介紹,如何使用 NuMaker NUC980 IIoT 開發平台連接 Amazon 的物聯網,以下簡稱 AWS 連結網址 https://aws.amazon.com/ ,登入 AWS 帳號 點擊右上角的 “Sign In to the Console”,進入帳號登入頁面 輸入您的帳號密碼,點擊 “Sign In” 進行登入 登入之後,進到 “AWS 管理控制台” 頁面 在搜尋欄位,輸入 “IoT Core”,會出現 IoT Core 連結,點擊進入 在左邊的欄位選擇 “入門” 頁面 在 “設定裝置” 點擊 “開始使用” ,開始設置 IoT 裝置 選擇連接 AWS IoT連線方式。platform 請選擇 Linux, SDK 請選擇 Python。 點擊 “下一步” 進到下一個頁面。 接下來開始註冊一個 IoT Thing,有三個步驟。 首先命名 IoT Thing,接著按下一步。 這個連線套件不會用到,按取消之後跳到下一步。 接下來2個頁面直接按 “完成” “完成”。 系統會跳回到管理頁面。 點擊左側選單 “管理”  “實物”。可以看到剛剛建立的 my-IoT 出現在 IoT Thing 裡面了。 接下來要對這個新建立的 Thing 做一些設定,直接點擊新建立的 Thing-my-IoT,進入管理頁面。 在左側選單,選擇 “互動” 。 在互動頁面裡可以看到 Thing 的 HTTPS 連結。 複製此 HTTPS,用戶端應用程序需要知道這個連結,才能夠連接到這個 IoT Thing。 接下來下載安全憑證,請在頁面左側選單,點擊 “安全”,進入憑證頁面。 然後點擊 “建立憑證”。 憑證建立完成會產生三個檔案,分別是憑證、公鑰及私鑰。分別點擊 “下載”以下載這三個檔案,NuMaker NUC980 IIoT 開發平台用戶端進行 AWS IoT 連線的時候會用到。 下載完成之後,點擊 “啟用”,使這個安全憑證生效。 接著還需要下載 AWS IoT 的根憑證,點擊 “CA 下載” 連結,以開啟另一個瀏覽頁面。 點 CA Certificates for Service Authentication 連結,系統會跳到 AWS IoT root CA 的下載頁面。 請選擇第一個根憑證,RSA 2048 bit key,按滑鼠右鍵,另存連結,存到檔案 “AmazonRootCA1.pem”。 下載完成之後,回到剛剛的頁面。 接下來,點擊 “連接政策”,進行 policy 設定。 點擊 “建立新政策”以建立一個新的 policy。 先輸入 policy 名稱。 選擇 “進階模式”,直接編輯 policy 內容。 在Effect 敘述輸入 Allow,允許操作。 在 Action 敘述輸入 “I:*”,接受所有的 IoT 命令。 在 Resource 敘述輸入 “*”, 允許取用 resource。 按 “建立” 建立新的 Policy。 在左側選單,重新點擊 “管理”→ “實物”,選擇 my-IoT thing,回到 my-IoT 頁面。 再次點擊 “安全”,然後選擇剛才建立的憑證。 在憑證頁面左側的選單選擇 “政策”。目前 Policies 還是空的。 打開右上角的 “動作”下拉選單,選擇 “連接政策”。 在 Policy 列表裡面,會出現剛才新建立的 Policy。打勾選取,然後按 “連接 “,完成 policy 的附加。 這時候 Policies 頁面就會出現我們所選擇的 Policy 了。到這邊已經建立好了雲端的 IoT Thing。接下來,要在 NuMaker NUC980 IoT 板上建立用戶端 IoT 應用。 請連接網址 tls.mbed.org/download 以下載 mbedTLS library。 點擊連結 mbed TLS 2.16.3(Apache) 進行下載儲存。 接下來要將把下載的 mbedTLS library 複製到 NUC980 Linux 開發環境下;先解壓 mbedTLS library後,用 git 下載 AWS 的 SDK。 git clone https://github.com/aws/aws-iot-device-sdk-embedded-C 下載完成之後,先刪除他在 external lib 目錄下的 mbedTLS 目錄,這是個空目錄。 將先前下載解壓後的 mbedTLS 目錄移動到 external lib 目錄下就可以直接編譯 AWS SDK 的範例了。 進到 AWS SDK 的 samples 目錄下的 Linux 目錄下可以看到 5 個 範例。要使用的範例是最底下這個 subscribe_publish_sample。 進到這個範例的目錄下。 有三個檔案,需要作一些修改。 首先修改 makefile,將 compiler linker 由 gcc,改為 NUC980 Linux toolchain 的 compiler linker。 51. 往底下找到 CRYPTO_LIB_DIR,修改路徑,將 crypto 刪除,這樣 makefile 就完成修改了。 (~00:25) 52. 接著是 header file,修改MQTT HOST 連結路徑,先前我們在 IoT thing 的 “互動” 頁面所複製 的 HTTPS 連結,將它貼到這裡。(~00:46) 53. CLIENT ID 請任意取一個名稱,不要與其他用戶端名稱重複即可。(~00:55) 54. MY THING NAME 要用前面建立的 IoT Thing 的名稱: my-IoT。(~01:02) 55. 底下的 ROOT CA file name,IoT Certificate file name,以及 IoT private key filename。 56. 前面在建立 IoT Thing 安全憑證過程中,有下載了 Root CA 及 IoT 安全憑證幾個檔案,請將 檔案名稱填寫到這裡。 最後是修改 點 C,系統會將範例程式執行檔放到 root file system 的 usr/bin 目錄下,並將憑證檔案放到 usr/certs 目錄下。 這裡請將憑證指定目錄改為 相對路徑的 ../certs。 接著打 make 直接進行編譯。 編譯需要幾分鐘的時間,影片跳過了編譯部分。 接下來,將編譯好的應用程序複製到 rootfs 的 /usr/bin 目錄下。 然後將根憑證及 IoT 安全憑證檔案複製到 rootfs 的 /usr/certs 目錄下。這裡已經事先複製好了。完成後到 BSP Linux 目錄下,編譯 kernel。 將 kernel 上傳到 IoT 開發板上面執行。 下 ifconfig + udhcpc 指令連接網絡。 由於憑證有時效性問題,需要修改系統時間,以免因為憑證過期導致無法連接。 進到 usr/bin 目錄下,執行 AWS用戶端範例程序。 可以看到用戶端已經成功連接 AWS 雲端。這個範例會不斷地發佈並且接收訊息。 - 更多產品資訊,請至新唐科技網站 https://bit.ly/3hVdcmC 購買管道:https://direct.nuvoton.com/tw/numaker-nuc980-iiot 聯絡我們: SalesSupport@nuvoton.com
This website uses cookies to ensure you get the best experience on our website. Learn more
OK