Delta DFCM-NNN40
Delta DFCM-NNN40 can also serve as a component; a self-contained WiFi network card that interface with any mbed platform (act as the host) through SPI.
Hello World
Import programNNN40_WiFi
First commit
Library
Import libraryWIFI_API_32kRAM
For DFCM-NNN40-DT1R,32K RAM,
Notes
The WiFi SDK is designed to adapt all mbed platforms. The published library is configured to support all ST NUCLEO platforms by default. The connection between ST NUCLEO and Delta DFCM-NNN40 contains 3 GPIOs and 4-wire SPI, the wiring is depicted below
Once connected, perform following two steps;
1) download NNN40 component.hex to Delta DFCM-NNN40 module;
2) the ST NUCLEO can import the same WiFi sample code of NNN40 platform from https://developer.mbed.org/teams/Delta/code/ then compile with your selected platform and run straightforward
For the platform other than ST NUCLEO, the porting is relatively simple. In spi_master.h, line 53 to 60
include the mbed library with this snippet
53 #define WIFI_SLEEP PC_0 //Configure host GPIO to connect to NNN40 module pin 24, set to NC if module power can be on/off by host 54 55 #define WIFI_BOOT PC_1 //Configure host GPIO to connect to NNN40 module pin 30 56 #define WIFI_SPI_IRQN PB_0 //Configure host GPIO to connect to NNN40 module pin 14 57 #define WIFI_SPI_MOSI SPI_MOSI//Configure host GPIO to connect to NNN40 module pin 15 58 #define WIFI_SPI_MISO SPI_MISO//Configure host GPIO to connect to NNN40 module pin 31 59 #define WIFI_SPI_SCK SPI_SCK //Configure host GPIO to connect to NNN40 module pin 32 60 #define WIFI_SPI_SSN PB_6 //Configure host GPIO to connect to NNN40 module pin 33
Just need to configure the 3 GPIOs and 4-wire SPI pin define according to your chosen platform. After that same with ST NUCLEO, performance aforementioned two steps and let your mbed platform become WiFi enabled
See also
Delta DFCM-NNN40 is a WiFi/BLE combo module. The embedded Cortex-M0 can be utilized for the sensor node applications that communicate through WiFi and/or BLE while minimized the power consumption. Refer to platform page for detail https://developer.mbed.org/platforms/Delta-DFCM-NNN40/