Device Modes

Now that we've gone over connecting your device, we're going to review the different modes for your Electron. We suggest that you work through this section, putting your device in the different listed modes to familiarize yourself with them.

Standard Modes

These modes are the typical behaviors you will see from your Electron on a regular basis. They are the light patterns of a healthy Electron.

Here's the typical pattern of an Electron after power up.

Connected

When it is breathing cyan, your Electron is happily connected to the Internet. When it is in this mode, you can call functions and flash code.

OTA Firmware Update

If your Electron is blinking magenta (red and blue at the same time), it is currently loading an app or updating its firmware. This state is triggered by a firmware update or by flashing code from the Web IDE or Desktop IDE. You might see this mode when you connect your Electron to the cloud for the first time.

Note that, if you enter this mode by holding MODE on boot, blinking magenta indicates that letting go of the MODE button will enter safe mode to connect to the cloud and not run application firmware.

Looking For Internet

If your Electron is blinking green, it is trying to connect to the internet.

If you are stuck in blinking green, there are additional instructions in the Status LED Reference.

Listening Mode

If your Electron enters listening mode, it may be caused by a loose SIM. There are additional instructions in the Status LED Reference.

To put your Electron in Listening Mode, hold the MODE button for three seconds, until the RGB LED begins blinking blue.

Safe Mode

Safe mode, breathing magenta (red and blue at the same time), connects the Electron to the cloud, but does not run any application firmware. This mode is one of the most useful for development or for troubleshooting. If something goes wrong with the app you loaded onto your device, you can set your device to Safe Mode. This runs the Device OS but doesn't execute any application code, which can be useful if the application code contains bugs that stop the device from connecting to the cloud.

The Electron indicates that it is in Safe Mode with the LED breathing magenta.

To put your device in Safe Mode:

  1. Hold down BOTH buttons
  2. Release only the RESET button, while holding down the MODE button.
  3. Wait for the LED to start blinking magenta
  4. Release the MODE button

Before entering safe mode, the Electron will proceed through the normal steps of connecting to the cloud; blinking green, blinking cyan, and fast blinking cyan. If you're unable to connect to the cloud, you won't be able to enter safe mode.

The device will itself automatically enter safe mode if there is no application code flashed to the device or when the application is not valid.

DFU Mode (Device Firmware Upgrade)

If you wish to program your Electron with a custom firmware via USB, you'll need to use this mode. This mode triggers the on-board bootloader that accepts firmware binary files via dfu-util (Note: Some users reported issues with dfu-util on a USB3.0 ports on Windows. Use a USB2.0 port if the USB3.0 port doesn't work.)

Installation tutorial can be found here.

And a usage guide here.

To enter DFU Mode:

  1. Hold down BOTH buttons
  2. Release only the RESET button, while holding down the MODE button.
  3. Wait for the LED to start flashing yellow (it will flash magenta first)
  4. Release the MODE button

The Electron now is in the DFU mode.

Other modes

There are many other modes described in the Status LED Reference.