Skip to main content

Moving From Development To Production

A Guide For Developers

Whether you’re an enthusiast who has just completed a personal imp-based hardware project and is wondering whether other people might be keen to buy a device like this, or you have successfully developed a prototype with the express intention of bringing it to market, the next step on your Internet of Things journey is to understand how imp-enabled devices are put into production.

Though simple, this procedure isn’t quite the same as working with development hardware. Because imp-based products take advantage of the close integration between device hardware and the Electric Imp impCloud™, there is some new terminology to understand and additional processes to implement. That said, there are many similarities between working with development devices and preparing production devices, so you should have no difficulty making the move.

Most importantly, you will need to enter into a commercial relationship with Electric Imp. This will bring you access to impCentral™’s production tools, which allow you to set up a Connected Factory for your product. Customer status also provides you with the means to develop the mobile app your end-users will use to set up their devices for Internet access.

  • When you’re ready to move from development to production, please contact Electric Imp Sales to discuss the options available to you.

The Electric Imp Connected Factory

A Connected Factory is where imp-enabled connected devices are prepared for sale and end-use. It may be part of an existing assembly line or a facility in its own right. In either case, it must have an Internet connection and a local network compatible with your product.

The Connected Factory Process governs how each newly assembled unit — a Device Under Test (DUT) — is made ready to be operated by an end-user. The outcome of the Connected Factory Process is a blessed device, called a Production Device, ie. one that is ready to be sold to an end-user. Unlike development devices, Production Devices can only run their intended application firmware, and their use is metered for billing by Electric Imp. Metering begins when an end-user Activates their Production Device using BlinkUp.

Inside the Connected Factory, blessing is mediated by factory firmware, software which runs on DUTs on the assembly line and on the imp-based factory equipment used to enroll and configure those DUTs. This equipment is called a BlinkUp fixture and it is used to transmit factory network access credentials to each DUT just as the Electric Imp mobile app is used to send your network details to your development devices. The fixture also sends the DUT a factory enrollment token. The DUT uses this token to identify itself to the impCloud, and this ensures the DUT receives the same factory firmware as the fixture that enrolled it.

Running on the DUT, the factory firmware first performs tests on the hardware and, if those tests pass, blesses the unit. The DUT is assigned to its assigned Production Device Group, receives its application firmware and wipes the stored network credentials and enrollment information. The unit is now no longer a DUT: it is a Production Device and is ready to be sold to an end-user.

To put your own product into production, you will need to develop factory firmware and prepare one or more BlinkUp fixtures which will be installed on your contract manufacturer’s assembly line, or elsewhere if you will be blessing your DUTs separately.

Preparing For Production

As a developer, you know that impCentral is where application software development takes place, in Products’ Development Device Groups. Electric Imp customers also use impCentral to prepare factory firmware, to test it, and then to deploy it to BlinkUp fixtures and DUTs.

Preparing Your Factory Firmware

Gaining access to impCentral’s production facilities first allows you to create Test Factory Device Groups, which are where you not only develop your factory firmware, but also provide a complete factory test environment that mirrors the production process. You test your factory firmware with BlinkUp fixtures, which you can use to bless real DUTs; these Test Production Devices can then be activated with your BlinkUp SDK-based app, just as real Production Devices will be activated by your end-users.

The key point to understand about factory firmware is that the same code runs on both BlinkUp fixtures and DUTs. As such, the code needs to be determine at runtime on what type of device it is running and carry out operations appropriate to that type of device and only that type. This is quite a straightforward process, and Electric Imp provides a library, Factory Tools, which does most of the heavy lifting for you.

Preparing Your Application Firmware

Application firmware within a Development Device Group will need to be made available to the factory test environment through a process called Promotion. This makes a specific instance of your firmware, called a deployment, accessible to the impCentral testing and production tools.

For testing, the promoted application firmware is deployed to a Test Production Device Group, which you create in impCentral’s Test Zone. This Test Production Device Group can then be set as a Test Factory Device Group’s target so that blessed Test Production Devices receive the deployed application firmware after blessing.

Preparing Your BlinkUp Fixture

Electric Imp has a free-to-use open source reference design you can use to create your own BlinkUp fixture. Alternatively, you can purchase a pre-built fixture, the impFactory™.

BlinkUp fixtures are managed as development devices so are added to your account using the Electric Imp app and then assigned to a Test Factory Device Group to help test your factory firmware in the lab, or to a Factory Device Group for use in a Connected Factory. Fixtures used for testing can be re-assigned to Factory Device Groups, and vice versa.

Moving Into Production

When you are satisfied with your factory tests, you can move into production. You will create at least one Production Device Group and deploy promoted application firmware to it. It is to this group that Production Devices will be added automatically once they have been blessed.

In addition, you will create at least one Factory Device Group to which you will deploy promoted factory firmware from your Test Factory Device Group. You will also assign BlinkUp fixture(s) to this group — they will then be ready to begin configuring DUTs in the Connected Factory.

Create A Mobile App For Your End-users

As a developer, you use the Electric Imp app to add development devices to your account. These devices can then be assigned to any Development Device Group. However, your end-user will not able to use the Electric Imp app to activate the Production Devices that they have purchased from you. The Electric Imp app can’t be used for this purpose; it only works with development hardware. Instead, you must develop or commission an app based on Electric Imp’s BlinkUp SDK, which is made available to you when you become an Electric Imp customer.

Creating an activation app for your end-users is the last key task in putting an imp-enabled product onto the market, and either you or the contractor(s) you use to create your app will have to understand how to integrate the BlinkUp SDK into your app.

Currently, the SDK is made available in native Android and iOS versions, to support the vast majority of mobile devices in use today. Calls to the SDK are authorized by the use of a BlinkUp API Key which will be made available to you when you become a customer. Your key is bound to your account and is unique.

Testing Your BlinkUp App

You use impCentral’s factory test environment to test your BlinkUp SDK-based app. Test Production Devices are functionally equivalent to Production Devices, so they can be activated with your app in exactly the same way that Production Devices will be. Test Production Devices log to impCentral, so you can track the progress of your tests.

Development-to-production Checklist

The following is a checklist of the steps you need to take to move your project from development to volume production.

  1. Contact to discuss becoming an Electric Imp customer and to purchase an impFactory appliance for factory BlinkUp.
  2. Create a Product in impCentral, or use an existing one.
  3. Ready your Product’s application firmware in a Development Device Group:
    • Test your code on Development Devices assigned to the Development Device Group.
    • Use the code editor to promote the approved deployment.
  4. Ready your Product’s factory firmware in a Test Factory Device Group:
    • Develop device-side code to control the impFactory, and to test and bless DUTs.
    • Develop agent-side code to transfer information from DUTs to the Internet and/or to the impFactory, as required.
    • Assign your impFactory to this group and use it to enroll DUTs.
    • View the resulting Test Production Devices via the Test Production Device Group.
    • Promote the approved factory firmware deployment.
  5. Use the BlinkUp SDK to develop your end-users’ activations app:
    • Test your app on Test Production Devices in the Test Production Device Group.
    • Submit your app to the app stores.
  6. Create a Production Device Group:
    • Deploy the promoted application firmware to this group.
  7. Create a Factory Device Group:
    • Set the Production Device Group as the Factory Device Group’s target.
    • Deploy the promoted factory firmware to this group.
    • Re-assign your impFactory to this group.
  8. Assemble your product in a Connected Factory:
    • Enroll and configure each DUT using the impFactory.
    • The factory firmware tests and blesses each DUT.
    • Use factory firmware agents to drive the addition of unit identification stamps or stickers.
  9. Ship your product!

Learn More