首先,感謝RT-Thread給ART-Pi Smart 開發(fā)板初次嘗鮮機(jī)會(huì)
本文ART-Pi Smart開箱及初次體驗(yàn)內(nèi)置應(yīng)用
?
開箱
收到有幾天了。我們一步一步揭開他的面紗吧
主板包裝精美嚴(yán)實(shí),但需要保護(hù)的屏反而包裝簡(jiǎn)單了
開箱后,包裝內(nèi)全家福,包裝內(nèi)自帶了兩根 Type-C 線和一根網(wǎng)線。開發(fā)板整體接口還是很豐富的:SDIO、USB、ETH、LCD、Camera。
屏組裝后效果
ART-Pi Smart 開發(fā)板簡(jiǎn)介
ART-Pi Smart 開發(fā)板是RT-Thread聯(lián)合百問科技出品,用于學(xué)習(xí)和評(píng)估RT-Thread Smart微內(nèi)核操作系統(tǒng)。
gitee 文檔代碼倉(cāng)庫(kù)地址 :
https://gitee.com/rtthread/ART-Pi-smart
板載資源:
- i.MX6ULL, Cortex-A7, 800MHz
- RW007 WiFi
- SDIO TF Card slot
- USB Host
- USB OTG with Type-C
- Ethernet port x1
- USB UART x1
- RGB888 FPC connector
- Camera FPC connector
- D1 for 3.3 v power-on
- Two user LEDs
- Three push-buttons (user, reset and boot)
驅(qū)動(dòng)支持:
- GPIO
- UART
- I2C
- SPI
- QSPI
- RTC
- TIMER
- PWM
- SDRAM
- ETH
- WIFI
- LCD
上電
插入 Type-C (兩條Type-C線都插上)電源和網(wǎng)線,打開終端,波特率設(shè)置為 115200
上電調(diào)試信息:
U-Boot 2017.03-g002b758ac9-dirty (Nov 24 2021 - 20:08:02 +0800) CPU: Freescale i.MX6ULL rev1.1 696 MHz (running at 396 MHz) CPU: Industrial temperature grade (-40C to 105C) at 38C Reset cause: WDOG Model: Freescale i.MX6 ULL 14x14 EVK Board Board: MX6ULL 14x14 EVK DRAM: 512 MiB MMC: FSL_SDHC: 0, FSL_SDHC: 1 *** Warning - bad CRC, using default environment Display: TFT7016 (1024x600) Video: 1024x600x24 In: serial Out: serial Err: serial switch to partitions #0, OK mmc1(part 0) is current device Net: eth1: ethernet@020b4000, eth0: ethernet@02188000 [PRIME] Normal Boot Hit any key to stop autoboot: 0 reading /kernel/rtthread.bin 1149312 bytes read in 73 ms (15 MiB/s) ## Starting application at 0x80001000 ... \ | / - RT - Thread Smart Operating System / | \ 5.0.0 build Dec 15 2021 2006 - 2020 Copyright by rt-thread team lwIP-2.1.2 initialized! [15] E/drv.enet: emac device init success [20] I/I2C: I2C bus [i2c3] registered [24] I/I2C: I2C bus [i2c4] registered [83] E/drv.enet: PHY Link down, please check the cable connection and link partner setting. [94] I/SDIO: SD card capacity 31166976 KB. [156] I/SDIO: emmc card capacity 3817472 KB. found part[0], begin: 2098176, size: 500.0MB found part[1], begin: 526386176, size: 1.0GB found part[2], begin: 1600128000, size: 10.0MB found part[3], begin: 1610613760, size: 200.0MB [266] I/touch: rt_touch init success [270] I/gt911: touch device gt911 init success [275] I/sal.skt: Socket Abstraction Layer initialize success. emmc file system initialization done![1751] E/[RW007]: The wifi Stage 1 status 0 0 0 1[1758] I/WLAN.dev: wlan init success[1763] I/WLAN.lwip: eth device init ok name:w0[1768] I/WLAN.dev: wlan init success[1773] I/WLAN.lwip: eth device init ok name:w1rw007 sn: [rw00700000000fc584a2c5001]rw007 ver: [RW007_2.1.0-a7a0d089-57][5247] D/drv.enet: enet1 link up[5789] W/WLAN.mgnt: F:rt_wlan_connect L:1091 not find ap! ssid:rt-threadhello rt-smart!/sd/wifi.sh wi-fi configuration file not exist in sd card![5807] I/mcf.link.tcp: TCPServer Waiting for client on port 5555...[5814] I/mcf.link: MCF link port(3) register successfully.msh />[5850] I/mcf.trans: MCF(V0.1.0) initialized successfully.[5855] I/urpc: uRPC(V0.1.0) initialize successfully.[5861] I/mcf.trans: MCF protocol started successfully.
在終端輸入命令 help (tab鍵,用法與)查看幫助信息(會(huì)列出相關(guān)應(yīng)用)
msh />help RT-Thread shell commands: reboot - reboot system cpu_usage - display cpu usage dbg - dbg memcheck - check memory data memtrace - dump memory trace information gic_dump - show gic status list_page - show page info list_fd - list file descriptor lsof - list open files mount - mount unmount - unmount the mountpoint hello - say hello world clear - clear the terminal screen version - show RT-Thread version information list_thread - list thread list_sem - list semaphore in system list_event - list event in system list_mutex - list mutex in system list_mailbox - list mail box in system list_msgqueue - list message queue in system list_memheap - list memory heap in system list_mempool - list memory pool in system list_timer - list timer in system list_device - list device in system list - list all symbol in system help - RT-Thread shell help. ps - List threads in the system. free - Show the memory usage in the system. ls - List information about the FILEs. cp - Copy SOURCE to DEST. mv - Rename SOURCE to DEST. cat - Concatenate FILE(s) rm - Remove(unlink) the FILE(s). cd - Change the shell working directory. pwd - Print the name of the current working directory. mkdir - Create the DIRECTORY. mkfs - format disk with file system df - disk free echo - echo string to file set - set or show environment variable list_channel - list IPC channel information list_process - list process kill - send a signal to a process killall - kill processes by name list_shm - show share memory info sys_log - sys_log 1(enable)/0(disable) ifconfig - list the information of all network interfaces ping - ping network host dns - list and set the information of dns netstat - list the information of TCP / IP pwm_enable - pwm_enable pwm1 1 pwm_disable - pwm_disable pwm1 1 pwm_set - pwm_set pwm1 1 100 50 date - get date and time or set [year month day hour min sec] wifi - wifi command.
執(zhí)行用戶 app。用戶 app 存放在目錄 /root/bin 目錄下
msh /root/bin>pong.elf & msh /root/bin> Pong: wait on the IPC channel: 3 msh /root/bin>ping msh /root/bin>ping.elf msh /root/bin> Ping: send count = 0 Pong: receive count = 0 Pong: reply count = 0 Ping: receive the reply 0 Ping: send count = 1 Pong: receive count = 1 Pong: reply count = 1 Ping: receive the reply 1 Ping: send count = 2 Pong: receive count = 2 Pong: reply count = 2 Ping: receive the reply 2 Ping: send count = 3 Pong: receive count = 3 Pong: reply count = 3 Ping: receive the reply 3 Ping: send count = 4 Pong: receive count = 4 Pong: reply count = 4 Ping: receive the reply 4 Ping: send count = 5 Pong: receive count = 5 Pong: reply count = 5 Ping: receive the reply 5 Ping: send count = 6 Pong: receive count = 6 Pong: reply count = 6 Ping: receive the reply 6 Ping: send count = 7 Pong: receive count = 7 Pong: reply count = 7 Ping: receive the reply 7
掃描wifi SSID
msh />wifi scan SSID MAC security rssi chn Mbps------------------------------- ----------------- -------------- ---- --- ----SunWIFI 48:0e:ec:cf:50:75 OPEN -29 7 4294SunshineSilicon 4e:0e:ec:cf:50:75 WPA2_MIXED_PSK -30 7 4294DIRECT-09SCX-3400 02:15:99:a0:b1:56 WPA2_AES_PSK -54 7 4294YYH401 c0:b4:7d:90:a4:68 WPA2_AES_PSK -71 6 4294SunshineSilicon cc:08:fb:19:74:7e WPA2_AES_PSK -73 1 4294TP-LINK_12F0 04:95:e6:f1:bd:51 WPA2_AES_PSK -73 3 4294360WiFi-501 a8:6b:7c:c8:35:a2 WPA2_AES_PSK -73 11 4294ChinaNet-Ut5M 08:6b:d1:fb:49:d0 WPA2_MIXED_PSK -73 11 4294DIRECT-2a-Pantum P2200 Series 14:6b:9c:e7:28:ed WPA2_MIXED_PSK -75 11 4294huawei-惠惠 ac:bd:70:d5:2b:2c WPA2_AES_PSK -76 6 4294ChinaNet-sGGV cc:90:e8:39:c9:a5 WPA2_MIXED_PSK -79 5 4294yys c8:5b:a0:ef:13:94 WPA2_AES_PSK -79 11 4294WirelessNet 50:1d:93:68:f4:d0 WPA2_MIXED_PSK -80 1 4294MERCURY_A34C 5c:de:34:9a:a3:4c WPA2_AES_PSK -81 11 4294ChinaNet-2.4G-0770 fc:60:9b:12:07:72 WPA2_MIXED_PSK -83 1 4294嘉源軒 30:a2:c2:78:8d:ba WPA2_MIXED_PSK -84 1 4294ChinaNet-xmPj 18:52:82:40:78:9d WPA2_AES_PSK -84 8 4294ChinaNet-2.4G-6646 ac:e3:42:a0:66:4c WPA2_AES_PSK -86 11 4294502 b8:80:35:c0:57:07 WPA2_AES_PSK -87 11 4294TP-LINK_AB70 54:a7:03:b2:ab:70 WPA2_AES_PSK -87 11 4294
選擇要連接的WIFI
msh />wifi join SunshineSilicon ********************(密碼手動(dòng)****)[274154] I/WLAN.mgnt: wifi connect failed!msh />wifi join SunshineSilicon ********************[283828] I/WLAN.mgnt: wifi connect failed!msh />wifi join SunshineSilicon ********************[288510] I/WLAN.mgnt: wifi connect failed!msh />wifi join SunshineSilicon ********************[294185] I/WLAN.mgnt: wifi connect failed!
連接wifi 基本失敗,好像過很久 自動(dòng)會(huì)連接上
msh /root>[4864107] I/WLAN.mgnt: wifi connect success ssid:SunshineSilicon[4868116] I/WLAN.lwip: Got IP address : 192.168.0.67
插網(wǎng)線后, 獲取IP,也比較慢
Web網(wǎng)頁管理體驗(yàn)
看到上面連接成功的IP192.168.0.67
打開網(wǎng)頁
http://192.168.0.67
登錄
登錄比較慢
登錄后:
界面像路由路管理頁面
點(diǎn)亮LED
右鍵菜單LED功能
LED 屏體驗(yàn)
下載sdl_test
RT-Thread官方編譯好示例下載:
https://gitee.com/rtthread/ART-P ... /firmwares/root/bin
傳應(yīng)用及圖片到開發(fā)板
本想用udbpush到板子上,幾次嘗試,都失敗,還是用古法,下載到SD卡,斷電插卡,再重新上電
切換目錄到sd卡
msh />cd sd
查看文件
msh /sd>lsDirectory /sd:AlmVoice
查看sdl用法
msh /sd>sdl_test.elf -hmsh /sd>screen: lcd - 0x00202000, size 522240screen: bpp 32, width - 480, height - 272Usage: sdl_test.elf option option: -l draw line -r draw a rectangle -t draw a rectangle with texture -p draw a bmp picture with texture
畫條線line
msh /sd>sdl_test.elf -lmsh /sd>screen: lcd - 0x00202000, size 522240screen: bpp 32, width - 480, height - 272
來畫個(gè)矩形吧msh /sd>sdl_test.elf -rmsh /sd>screen: lcd - 0x00202000, size 522240screen: bpp 32, width - 480, height - 272
顯示圖片
msh /sd>sdl_test.elf -p men.bmpmsh /sd>screen: lcd - 0x00202000, size 522240screen: bpp 32, width - 480, height - 272
下回要體驗(yàn)什么功能,客官您請(qǐng)說.
有以下功能示例:
RT-Smart APP
總結(jié)
ART-Pi Smart啟動(dòng)速度快,用戶程序與內(nèi)核分離,可以獨(dú)立開應(yīng)用,很棒的設(shè)計(jì).但有點(diǎn)美中不足,網(wǎng)絡(luò)連接速度太慢了.
出處:谷動(dòng)谷力(微信公眾號(hào))
-
操作系統(tǒng)
+關(guān)注
關(guān)注
37文章
6533瀏覽量
122665 -
開發(fā)板
+關(guān)注
關(guān)注
25文章
4733瀏覽量
95944 -
RT-Thread
+關(guān)注
關(guān)注
31文章
1234瀏覽量
39332
發(fā)布評(píng)論請(qǐng)先 登錄
相關(guān)推薦
評(píng)論