logo资料库

mxchipWNet基础版软件库开发指南(AD0005_mxchipWNet_Library).pdf

第1页 / 共47页
第2页 / 共47页
第3页 / 共47页
第4页 / 共47页
第5页 / 共47页
第6页 / 共47页
第7页 / 共47页
第8页 / 共47页
资料共47页,剩余部分请下载后查看
mxchipWNet Library Development guide for the basic version 上海庆科信息技术有限公司
Agenda • Introduction for the mxchipWNetTM library basic version • Allocation of the hardware resources • Development tools and environment • Guide of the API functions • Demo applications 上海庆科信息技术有限公司
mxchipWNet Authorized Platform EMW3280 EMW3161 EMW3162 More in future… mxchipWNet library can only run on a mxchipWNet authorized platform. 上海庆科信息技术有限公司
mxchipWNet Architecture MXCHIP Wi-Fi module 802.11MAC/Baseband/RF User application mxchipWNet library TCP/IP stack Network services IEEE 802.11 driver Network Processor 上海庆科信息技术有限公司
mxchipWNet Functions • Wi-Fi Features: • • • WEP, WPA/WPA2 encryption • WPS, Easylink configuration • IEEE 802.11 b/g/n driver Station mode, soft AP mode and coexistent IEEE 802.11 roaming, power save mode • TCP/IP stack Features: • TCP client/server, UDP unicast/multicast/broadcast • Block/Unblock mode • DHCP server/client • DNS, mDNS • • TLS/SSL data encryption Flexible memory allocation • Miscellaneous: • • • MD5, AES, SHA algorithm • Demo applications • …… A build-in RTOS (profession version only) System timer 上海庆科信息技术有限公司
mxchipWNet Application Running Mode Basic  version Professional  version  (RTOS) Main mxchipInit Callback 1 Callback 2 Main RTOS thread management Application n mxchipTick Select sleep …… Application 2 Application 1 Callback n mxchipTick Create Main application Create Application n Callback 1 Callback 2 Callback n ! The main loop should less than 500ms Do not execute any library function in a callback 上海庆科信息技术有限公司
mxchipWNet Flash Memory Map 256k bytes RF Driver(D)* Contents should not be changed OTA function can be disabled in bootloader 0x080C0000 0x08060000 0x0800C000 0x08004000 0x08000000 384k bytes Temporary storage for OTA purpose 336k bytes mxchipWNetTM Firmware(A)* 32k bytes APP Parameters(P)* 16k bytes bootloader(B)* * Content Type 上海庆科信息技术有限公司 Start End Type Size (bytes) Content 0x08000000 0x08003FFF 0x08004000 0x0800BFFF 0x0800C000 0x08060000 B P A 16k 32k 336k Bootloader OTA info,user参数 User application 0x08060000 0x080C0000 - 384k OTA storage 0x080C0000 0x080FFFFF D 256k RF Driver
OTA Procedure OTA  steps 1. Download update data to OTA storage (User) 2. Write OTA info to 0x08004000 (User) 3. Reboot (User) 4. Bootloader update the target flash memory using update data (Bootloader) 5. Bootloader clear the update data and OTA info (Bootloader) 6. Start the application (Bootloader) OTA  info  @  0x08004000 Name Data Type Data Length Content START ADDRESS LENGTH VERSION TYPE UPDATE Word Word Byte Byte Byte REVERSED Byte 1 1 8 1 1 6 OTA data storage address (should be 0x08060000 only now) OTA data length Version(Not used) Target content type (’B’,’P’,’A’,’D’) Update tag(‘U’) Reserved Target content type: Which data block should be updated by the new data in OTA data storage 上海庆科信息技术有限公司
分享到:
收藏