STOP: Complete each check mark in order below! Do not connect the module until you reach the appropriate step, or you may damage your Wi-Fi Module.
With the Propeller Activity Board, you can connect the WX Wi-Fi module to the WX Socket. If you have an Activity Board WX, you can also connect an SEL socket to control what kind of data flows through the Wi-Fi and USB ports.
Before connecting the Wi-Fi module to the Propeller Activity Board, let's make sure the Propeller isn't running an application that might interfere with the Wi-Fi module's communication.
/* Hello Message.c Display a hello message in the serial terminal. http://learn.parallax.com/propeller-c-start-simple/simple-hello-message */ #include "simpletools.h" // Include simpletools header int main() // main function { print("Hello!!!"); // Display a message }
The wifi library you'll be working with allows you to use jumper wires to choose which port (USB or Wi-Fi) certain data (program, terminal, Wi-Fi application) pass through.
This setting runs all program, terminal, and Wi-Fi application data through the Wi-Fi module. This setting should not be used until you can see the Wi-Fi module in Simple IDE's COM port dropdown. Make sure to use the wifi_start function call shown here at the beginning of any program you run while the SEL socket is connected to 3.3 V.
wifi_start(31, 30, 115200, WX_ALL_COM);
The 10 k resistor can be tied to GND for programming through USB or 3.3 V for programming through Wi-Fi. Terminal data passes through USB and Wi-Fi application data passes through the Wi-Fi module. An optional pause can be added to give time for loading the program after power-on or reset.
pause(2000); wifi_start(31, 30, 115200, 7);
This setting is for programming through USB and Wi-Fi app data through I/O pins (P9 and P8). SimpleIDE terminal data will go through USB if you use USB_PGM_TERM, or through the Wi-Fi module if you use USB_PGM.
wifi_start(9, 8, 115200, USB_PGM_TERM); --- or --- wifi_start(9, 8, 115200, USB_PGM);
The non-WX version of the Activity Board does not have an SEL socket. The program will have to be loaded through USB, and you can select whether terminal data goes through USB or the Wi-Fi module. Use USB_PGM_TERM to send terminal data through the USB port, or USB_PGM to send terminal data through the Wi-Fi module.
wifi_start(9, 8, 115200, USB_PGM_TERM); --- or --- wifi_start(9, 8, 115200, USB_PGM);
Links
[1] https://learn.parallax.com/sites/default/files/content/propeller-c-tutorials/Wi-Fi/wiring-Wifi-ABWX.png