Whitepaper
The Advantages of Pre-programmed Bluetooth & Wi-Fi® Modules for IoT Developers
By Parker Dorris, Senior Product Manager, Silicon Labs.
The most successful IoT products make Bluetooth and Wi-Fi connectivity easy for end customers to setup and use. Delivering that ease-of-use presents significant design challenges for developers of smart home appliances, sensors, electric vehicles, and other connected products.
The lack of time and resources in companies with limited in-house wireless design expertise can lead to slipped delivery schedules and multiple product re-designs. The four typical stages of the wireless development process are: software/firmware development (including embedded coding and debugging), hardware design and certification, mobile app development, and cloud connectivity. The development process can take up to a year to complete, and each stage has its own hurdles to overcome. This whitepaper discusses the unique challenges presented in each development stage and highlights how leveraging pre-programmed, pre-certified wireless modules drastically streamlines the product development cycle for IoT developers
Whitepaper
The Advantages of Pre-programmed Bluetooth & Wi-Fi® Modules for IoT Developers
By Parker Dorris, Senior Product Manager, Silicon Labs.
The most successful IoT products make Bluetooth and Wi-Fi connectivity easy for end customers to setup and use. Delivering that ease-of-use presents significant design challenges for developers of smart home appliances, sensors, electric vehicles, and other connected products.
The lack of time and resources in companies with limited in-house wireless design expertise can lead to slipped delivery schedules and multiple product re-designs. The four typical stages of the wireless development process are: software/firmware development (including embedded coding and debugging), hardware design and certification, mobile app development, and cloud connectivity. The development process can take up to a year to complete, and each stage has its own hurdles to overcome. This whitepaper discusses the unique challenges presented in each development stage and highlights how leveraging pre-programmed, pre-certified wireless modules drastically streamlines the product development cycle for IoT developers
Developers today want to add rich Wi-Fi and Bluetooth connectivity to their products to enhance their applications and end-customer experience, but they face many challenges that can slow down the process and delay time to market. Gaining expertise in wireless connectivity requires careful study of specifications, trial-and-error prototype builds, and team coordination; the time in research and development cycles could otherwise be spent making a product truly differentiated in its market. For instance, Bluetooth design requires expertise in several areas of development including hardware, firmware, mobile, and cloud. With the increase in data-security issues today, there are more rigorous testing and certification requirements to ensure safe and secure connections (authentication, encryption, pairing, etc.). Form factor issues, such as antenna placement, are also critical for connectivity development because developers have limited space as devices get smaller and smaller.
Once a hardware design has taken shape, the required certification process can be time consuming and expensive and not even an available option in some countries. In addition, the lack of technical support during the development process often adds stress, vendor costs, and delays if developers need to contact various vendors within the Bluetooth stack. Overcoming these and other challenges results in a typical development cycle that can take 12 months or more. Many companies can’t staff all the related, but distinct, areas of expertise that go into achieving reliable, robust, and certified connectivity inhouse and need to outsource these efforts which adds contractor coordination and costs to the already growing list of development challenges to manage.
Wireless development stages and common challenges
Wireless development has many inherent challenges and each stage has its own obstacles. Use-case specific issues, evolving standards, and ‘future proofing’ concerns mean that developers must design proactively to ensure their connected products will function properly. A typical development timeframe for adding wireless connectivity can be approximately three to six months for each of the four typical stages of the process:
Firmware development
In the firmware development stage, developers using unprogrammed modules must become experts in Bluetooth communication or Wi-Fi protocols and vendor-specific software stacks. In traditional Bluetooth and Wi-Fi design,developers must create an embedded host + network co-processor design with a communication link that operates at a low level controlling the network co-processor. Half of the development work includes writing firmware code and the other half is spent on testing. Testing itself has its own challenges as developers need to try to predict use cases that would affect functionality, test many scenarios to see if the application functions properly, and then troubleshoot and fix bugs which can take up valuable time and resources.
Hardware design
Desinging wireless-enabled hardware presents numerous, potentially costly development challenges, including antenna design issues and RF certification hurdles. FCC certification alone can cost thousands of dollars and take months of testing and validation. Table 1 shows a multitude of hardware components/factors that can impact RF performance.
RF Performance Factor | Technology |
Antenna type, supplier, and placement | Antenna placement, type, material composition, manufacturer, and cost can change signal gain to the matching network resulting in mismatch and poor performance. |
Antenna trace shape and length | Minor variations in shape and length can change the expected signal energy and therefore the recommended matching network |
Board manufacturer | Differing distances or insulation material between layers, PCB via materials, trace widths, screw holes, etc. can have effects. |
Component suppliers | Different suppliers’ components can behave differently and result in different performance. This can result when designers use the ones they have ‘on the shelf’ versus the recommended supplier or try to save a few pennies with a cheaper alternative. |
Component types | Different component technologies can affect received power and voltage (e.g., wire-wound resistor vs. thin-film). |
Plastics and screw location | Screw placement can have coupling effects for both radiated and received energy. |
Battery location | Battery location and technology can affect signal power. A charging battery can also be an un- known player. |
Display location | Like batteries, displays can create interference on the antenna. |
Antenna integration and optimization to minimize interference and coupling are two of the most formidable challenges to delivering a successful design, especially for companies without in-house RF expertise. Selecting the best antenna for the application/device can be complicated, and configuration and layout can add time delays due to trial and error cycles before developers optimize the antenna functionality. A PCB will need many tweaks and help from a PCB manufacturer to optimize antenna performance. For SoC design, antenna-optimization work requires specialized RF engineer experts with an RF certification, special lab equipment, and an RF-isolated testing environment. Even RF engineers can spend weeks optimizing antennas for Rx/Tx performance and low BOM costs due to keep out zones, component selection, placement, etc. Reducing unpredictable RF performance and reducing the development time frame are key considerations from a hardware perspective. Selecting a wireless module with an integrated antenna that is already certified solves most of these hardware development challenges and saves developers many months of prototyping work.
Mobile applications
The mobile app development stage is often the most challenging for companies since many don’t have developers in house with mobile application experience. Developers who know how to properly code and interface with low level Bluetooth and Wi-Fi APIs in both iOS and Android platforms are rare, and mobile development can become costly. Companies might also need to outsource to separate vendors who are experts in each platform, which adds more up-front costs. There are always additional that result from the extra time it takes to contact vendors and conduct the bidding process/RFPs, etc. It can take several months, at least, for developers to perfect the mobile application experience.
Cloud connectivity
This stage of product development presents another set of distinct challenges requiring domain expertise. Reliable cloud connectivity directly impacts the success of cloud-connected IoT applications. For example, if developers want to pull health metrics from personal health devices in the field (e.g., heart monitors, CPAP machines, connected inhalers), communication failure at any point between senosr, controller, module, phone or cloud results in a poor user experience over-the-air.
Benefits of pre-programmed wireless modules
IoT developers today want robust functionality in the smallest footprint possible and solutions that support easy Wi-Fi and Bluetooth connectivity without the long learning curve. Leveraging integrated modules that already include pre-programmed firmware, pre-certified RF and hardware, easy mobile app framework, and cloud connectivity, streamlines the entire development process and takes the guesswork out of successful connectivity.
A product that utilizes a certified RF module, as opposed to a discrete circuit design, can leverage the certification of the off-the-shelf module and avoid the Intentional Radiation (IR) testing portion of the FCC certification process. Faster time to market, risk mitigation, and lower Non-Recurring Engineering (NRE) costs of product development makes leveraging a pre-certified RF module the optimal strategy for many companies and developers.
Selecting a product with functional and tested system firmware that is pre-programmed at manufacturing provides:
- A low-level wireless stack abstracted by the pre-programmed module’s interface, lowering the barrier to entry for developers
- Fully functional embedded application firmware, circumventing the need to develop in-house
- Testing infrastructure built and deployed to test the firmware by the module vendor, limiting the scope of any infrastructure that needs to be built by the developer
- Built-in support for firmware updates and bootloading, thus future-proofing for security updates, bug fixes, and robustness improvements
Using a module instead of designing with an SoC provides:
- Integrated antenna options to minimize form factor and limit the need for in-house RF expertise
- Pre-certified RF to avoid lengthy and costly RF certification efforts
- Acceptable RF transmission out-of-box
Starting mobile app development with a wireless interfacing library that has been optimized for ease of use and thoroughly tested provides:
- An abstracted interface to core Bluetooth APIs across multiple mobile operating systems
- Specialized APIs designed for optimal control of the interfacing embedded module
- A cloud-to-module route for firmware updates
Connecting to cloud infrastructure already in place as part of an integrated product provides:
- Elimination of setup time and costs required to build cloud infrastructure from scratch
- A tested and operational firmware update deployment solution
- Minimized risk of many of the security-related mistakes made by those new to cloud-connectivity design
Silicon Labs Wireless Xpress products, combine these product development optimizations to provide streamlined embedded-to-phone and embedded-to-cloud connectivity.
Value of Gecko OS
Gecko OS is a highly-optimized IoT operating system designed specifically to power hardware platforms with secure Wi-Fi networking capability and is the best choice for resource-constrained devices. Hardware running Gecko OS provides products with a powerful and secure wireless connection to a mobile device or the cloud. Developers can build external microcontroller (MCU) applications that communicate with Gecko OS using the Xpress Command API via serial interface, HTTP REST, or a remote terminal. The Gecko OS API is a huge benefit to IoT developers because it creates a common software foundation across multiple product lines and includes the firmware, boot- loader, command APIs, and wireless stacks. The API enables direct access to peripherals connected to Gecko OS hardware via GPIO.
In these types of Network Co-Processor (NCP) topologies, the external MCU must manage the wireless stack with low-level maintenance APIs, store large buffers of data in RAM, and devote CPU resources to interface monitoring. These performance constraints force developers to choose the host MCU that best suits the NCP, not the best MCU for the application.
Gecko OS products relieve developers of this burden by maintaining much of the wireless interface without external MCU intervention, only exposing critical variables and commands for external MCU control. Gecko OS products such as Wireless Xpress allows customers to choose from the full spectrum of MCUs on the market, from functionally dense ARM-core processors to cost-effective 8-bit MCUs.
Silicon Labs Bluetooth Xpress Pre-Programmed Modules
Bluetooth Xpress products combine firmware, hardware and mobile development optimizations to deliver Bluetooth Low Energy 5 modules that can speed an application from concept to prototype in a day. The Bluetooth Xpress products include the Xpress framework for mobile application development, which greatly reduces the development time required to add Bluetooth connectivity to mobile apps.
The key features of Silicon Labs Bluetooth Xpress modules (BGX13P and BGX13S) include:
- An out-of-box, pre-programmed, pre-certified Bluetooth solution supporting Bluetooth 5 features including 2M and long-range PHY
- An-board wireless stacks controlled through a high-level Gecko OS Xpress Command API for setup and control
- Requires only modest resources from a host processor, enabling developers to add wireless connectivity to any microcontroller (MCU)
- Baud rate, flow control, GPIO, and Bluetooth performance parameters are all configurable for application-specific requirements
- I2C master interface enables Bluetooth Low Energy wireless-to-I2C communication
- Input pin monitoring for automated digital logiac transition response
- Requires only modest resources from a host processor, enabling developers to add wireless connectivity to any MCU
- One point of contact for design support
Bluetooth Xpress Use Cases
Bluetooth Xpress modules function in two use cases:
- BGX13 to smart phone – In this use case, the BGX acts as a peripheral, which is discoverable and connectable by a smart phone acting as the central.
- BGX13 to BGX13 – In this use case, one BGX acts as a discoverable, connectable peripheral, and a second BGX acts as the central, which scans and connects. When connected, a BGX13 can function in either a streaming mode, where data bytes are transmitted between the two points in a no-overhead data stream, or in command mode, where Gecko OS commands can be executed remotely.
In both defined use cases, flow control signals from the BGX indicate buffer status and can be used to indicate whether the embedded host can transmit data.
Silicon Labs Wi-Fi Xpress Pre-Programmed Modules
Similar to Bluetooth Xpress, Wi-Fi Xpress uses the Gecko OS interface to provide streamlined control, pre-certified modules, integrated Wi-Fi stacks, and built-in mobile and cloud connectivity advantages. Developers can get reliable W-Fi-connectivity quickly for their applications/devices and access to design tools, demos, and support documentation such as application notes and examples.
Other key features of Silicon Labs Wi-Fi Xpress modules:
- TCP and UDP client and server functionality
- 802.11b/g/n, 2.4GHz bands
- +20 dBm output power
- File system for logging and host/module OTA
- Web server functionality
Wi-Fi Xpress Use Cases
Wi-Fi Xpress modules function in a wide variety of smart home, commercial, and retail use cases. Wi-Fi Xpress provides a low-development cost path from silicon to cloud with applications from enabled home-security systems and asset-tracking systems, to cloud- connected point of sale (POS) systems.
Wireless Xpress Wi-Fi Starter Kit
The Wireless Xpress Wi-Fi starter kit (AMW007-E04) is the easiest way to start evaluation and development in any new Wi-Fi-enabled device. The base starter kit operates standalone and can be used with a simple terminal emulator via the USB port. Developers can also supplement their Wireless Xpress expansion board with an MCU development kit such as the EFM8UB1 or EFM8UB2.
The base starter kit includes:
- Wireless Xpress AMW007-E04 expansion board
- AMW007 Wi-Fi module
- CP2102N USB to UART bridge
- 3 x mechanical pushbuttons (2 user definable & 1 reset)
- LEDs (2 user definable, 2 Tx/Rx Data, power)
- Expansion header
- USB micro cable
Summary
This paper discussed the four stages of IoT wireless development, the benefits of pre-programmed wireless modules, and how Silicon Labs pre-programmed Bluetooth Xpress and Wi-Fi Xpress modules help designers reduce complexity and streamline the development process dramatically. Several application use cases were also provided. There are many key benefits that developers gain when using pre-programmed modules that overcome development challenges – configurable/customizable, instant prototype, flexible to use with any MCU, and if the module vendor also makes the SoC, there is deep support for all module components. With Silicon Labs modules, developers get robust, in-house development support because Silicon Labs owns all the components including the silicon/wireless stack with no outsourcing needed. Developers can get started quickly by leveraging the Bluetooth Xpress and Wi-Fi Xpress starter kits as they include the wireless module plus additional components that make the set-up and wireless connection process simple and fast.
Silicon Labs modules provide developers a drop-in connectivity prototype that gives them a head start in their application launch, which in turn means more revenue. In addition, developers can save countless months of development work and get products to market faster by leveraging Silicon Lab’s pre-programmed, pre-certified wireless modules-no programming necessary and no risk of failing FCC certifications. Learn more about Silicon Labs Wireless Xpress solutions.
References
Six Hidden Costs in a 99 Cent SoC Whitepaper