The GainSpan Smartplug Application Development Kit (ADK) is a complete reference design that demonstrates a Smartplug application based on the GS1011M
Wi-Fi modules and the associated embedded and mobile software suite. The Smartplug ADK allows users to add Wi-Fi connectivity to a regular plug and control electrical load using a web browser on a PC or a smartphone. It provides a complete suite of embedded and mobile reference applications greatly ease, and shorten, development time.
The Smartplug application consists of two functions:
- Load Control to allow control of the load state (on/off)
- Power Measurement which provides measurement of the following parameters: voltage, current, frequency, instantaneous power, accumulated power consumption and power factor.
The GainSpan Smartplug ADK includes the smartplug hardware, a complete hardware design package, embedded software running on the GainSpan Wi-Fi module, web application and mobile reference applications for iOS and Android based smartphones. An evaluation version of the ADK, the Smartplug Application Evaluation Kit (AEK) is also available that will include the smartplug hardware and binary-only software.
The smartplug embedded software includes the smartplug application source code and Wi-Fi and networking stack binaries including mDNS/DNS-SD based discovery methods to discover devices and services available on the wireless network. The Smartplug mobile applications provide the graphical interface for controlling the electrical load and viewing electrical quantities in time series graphs on iOS or Android based smartphones. The smartplug mobile reference applications provide customers a foundation to rapidly build custom features suited to their end application.
- Smartplug Embedded Firmware Application
- Smartplug Mobile Application for iOS/Android Smartphones
- GainSpan Smartplug
- USB Cable
The GainSpan Smartplug may perform as a limited access point (Limited AP mode) or as a client within an existing network infrastructure (Client/Station mode).
In Limited AP mode, the smartplug can connect with multiple smartphones (or PCs) as client/stations. When the smartplug is powered up in Limited AP mode, the clients can scan for all available wireless networks and select and connect to the smartplug Limited AP. Once the smartphone or PC has established connection with the GainSpan Smartplug, the mobile application discovers and selects a Smartplug service profile being advertised by the embedded application, and selects it to enable load control and display of electrical parameters. The mobile app also includes the charting function that displays these parameters in time series graphs.
In Client/Station mode, the GainSpan module and the smartphone connect to an AP as clients. The smartphone now discovers the smartplug embedded application profile, and upon selection, displays the electrical parameters and allows load control. The Client/Station mode supports the IEEE PS-Polling mode (consumption of 110uA in Sleep Mode on GS1011M) and is suitable for low-power applications.