NEQTO Docs
  • Languages iconEnglish
    • 日本語
  • Docs
  • API
  • FAQ

›Software Specifications

Getting Started

  • NEQTO Hello World!
  • Tutorial Step 1. NEQTO Console Setting
  • Tutorial Step 2. Device Settings & Launching Service (NEQTO Bridge)
  • Tutorial Step 2. Device Settings & Launching Service (STM32 Discovery)
  • Tutorial Step 2. Device Settings & Launching Service (SPRESENSE)
  • Tutorial Step 3. Application development using scripts

NEQTO

  • NEQTO Account Registration
  • Sub-accounts
  • API Usage
  • NEQTO Engine Firmware List
  • Support Guidelines
  • For safe and secure use of the NEQTO products
  • Vulnerability Disclosure Policy

NEQTO Console

  • Introduction
  • Fundamentals
  • Administrative Actions
  • Device Management
  • Linux-based Device Management
  • Batch Registration
  • Scripts
  • Actions and Contacts
  • View Data from the Console
  • NEQTO Apps

    • About NEQTO Apps
    • NEQTO Infinitypool
    • NEQTO Insights
    • NEQTO Custodia
    • NEQTO Flow
  • Machine Driver
  • Recommended Browsers
  • Billing Information

SPRESENSE

    Hardware Specifications

    • 01. About Spresense

    Software Specifications

    • 01. Operational Flow
    • 02. Initial Installation
    • 03. Spresense Wi-Fi Initial Setup
    • 04. Spresense LTE-M Initial Setup
    • 05. Debug Log Acquisition
    • 06. System LED Indications
    • 07. Event Messages
    • 08. Updating Firmware

    neqto.js

    • 01. About neqto.js
    • 02. Log
    • 03. Timers
    • 04. HTTP
    • 05. HTTPS
    • 06. MQTT
    • 07. Secure
    • 08. Storage
    • 09. Sleep
    • 10. RTC
    • 11. GPIO
    • 12. UART
    • 13. SPI
    • 14. I2C
    • 15. ADC
    • 16. GNSS
    • 17. Camera
    • 18. Utils
    • 19. nqSpresense
    • 20. nqService
    • 21. nqMqtt
    • 22. nqFOTA
    • 23. nqWiFi
    • 24. nqLte

STM32 Discovery

    Hardware Specifications

    • 01. About STM32 Discovery Kit (B-L4S5I-IOT01A)

    Software Specifications

    • 01. Operational Flow
    • 02. Initial Installation
    • 03. STM32 Discovery Wi-Fi Initial Setup
    • 04. Debug Log Acquisition
    • 05. System LED Indications
    • 06. Event Messages
    • 07. Updating Firmware

    neqto.js

    • 01. About neqto.js
    • 02. Log
    • 03. Timers
    • 04. HTTP
    • 05. HTTPS
    • 06. MQTT
    • 07. Secure
    • 08. Storage
    • 09. Sleep
    • 10. RTC
    • 11. UserSW
    • 12. GPIO
    • 13. UART
    • 14. SPI
    • 15. I2C
    • 16. ADC
    • 18. Utils
    • 19. nqDiscovery
    • 20. nqService
    • 21. nqMqtt
    • 22. nqFOTA
    • 23. nqWiFi

NEQTO Bridge

    Hardware Specifications

    • 01. NEQTO Bridge Module
    • 02. NEQTO Bridge Wi-Fi Module
    • 03. NEQTO Bridge LTE-1 Module
    • 04. NEQTO Bridge LTE-M/NB Module
    • 05. NEQTO Bridge IO Board
    • 06. NEQTO Bridge Digital IO Board
    • 07. NEQTO Bridge Connector Board

    Software Specifications

    • 01. Operational Flow
    • 02. NEQTO Bridge Wi-Fi Module Initial Setup
    • 03. NEQTO Bridge LTE Module Initial Setup
    • 04. Debug Log Acquisition
    • 05. System LED Indications
    • 06. Event Messages
    • 07. Updating Firmware

    neqto.js

    • 01. About neqto.js
    • 02. Log
    • 03. Timers
    • 04. HTTP
    • 05. HTTPS
    • 06. MQTT
    • 07. Secure
    • 08. Storage
    • 09. Sleep
    • 10. RTC
    • 11. UserSW
    • 12. GPIO
    • 13. UART
    • 14. SPI
    • 15. I2C
    • 16. ADC
    • 17. BLE
    • 18. Utils
    • 19. nqBridge
    • 20. nqService
    • 21. nqMqtt
    • 22. nqFOTA
    • 23. nqWiFi
    • 24. nqLte
    • 25. nqLAN
    • 26. nqEx

Linux-based device

    Software Specifications

    • 01. System Requirements
    • 02. Installation
    • 03. Software Configurations
    • 04. Operational Flow
    • 05. Debug Log Acquisition
    • 06. Event Messages
    • 07. Updating Software

    neqto.js

    • 01. About neqto.js
    • 02. Log
    • 03. Timers
    • 04. HTTP
    • 05. HTTPS
    • 06. MQTT
    • 07. Secure
    • 08. Storage
    • 09. RTC
    • 10. UNIXSocket
    • 11. FileSystem
    • 12. SubProcess
    • 13. SubTask
    • 14. Queue
    • 15. Utils
    • 16. nqLinux
    • 17. nqService
    • 18. nqMqtt
    • 19. nqFOTA
    • 20. nqLAN

neqto.js Libraries

  • About neqto.js Libraries
  • UART

    • GM65 Barcode Reader
    • SRF Ultrasonic Range Finder - Serial Mode

    I2C

    • HTS221 v2 Temperature and Humidity Sensor
    • LIS2DW12 v2 Accelerometer
    • SRF Ultrasonic Range Finder - I2C Mode
    • [Archive] HTS221 Temperature and Humidity Sensor
    • [Archive] LIS2DW12 Accelerometer

    Utils

    • RTC Alarm Synchronized Scheduler

    Integration

    • AWS S3 v2
    • AWS IoT Core v2
    • Azure IoT v2
    • [Archive] GCP IoT Core
    • [Archive] AWS S3
    • [Archive] AWS IoT Core

neqto.js Snippets

  • About neqto.js Snippets
  • DataDog
  • Dropbox
  • Google Sheets
  • InfluxDB
  • Oracle Cloud Object Storage
  • Salesforce
  • Splunk
  • Niagara
  • [Archive] SAP Cloud Platform Internet of Things

Release Notes

  • NEQTO Console Updates
  • NEQTO Firmware (Bridge Wi-Fi/LTE Module) Releases
  • NEQTO Firmware (STM32 Discovery Wi-Fi) Releases
  • NEQTO Firmware (Spresense Wi-Fi/LTE-M) Releases
  • NEQTO Engine for Linux Releases
  • neqto.js Libraries Releases

04. Operational Flow

This article provides an overview of the operation flow of the NEQTO Engine.

*The bold frame in the figure indicates the starting point of the operation mode description.


The NEQTO Engine has the following major modes.

  • Script Execution Mode
    In this mode, the operation script is executed in the basic operation of the NEQTO Engine.

  • Safe Mode
    In this mode, if an exception such as a throw or a syntax error occurs while executing the script, wait for the script to be modified.

  • Firmware Update Mode
    This mode updates the NEQTO Engine software.
    It also updates the firmware of the user device with the NEQTO Machine Driver.

The operation flow of each mode is described below.



Script Execution Mode

Normal Booting Operation

Script execution mode is the basic operation of the NEQTO Engine.
The NEQTO Engine will initialize after booting.
After initialization, connect to the network.
After connecting to the network, access NEQTO Console and authenticate.
When the authentication is completed, download and execute the script.



Booting Operation when unable to connect to a Network

If the NEQTO Engine cannot connect to the network when the NEQTO Engine starts, retry the network connection.
In this state, the operation script will not be executed.



Booting Operation when not registered to a Node

If the NEQTO Engine is started without registering to a node on NEQTO Console, authentication will fail.
In this state, the operation script will not be executed.



Script Reload Operation

"Script Reload" is the operation to terminate the script once and download and execute the updated script.

Basically, when all the main routines have completed and all resources waiting for callbacks such as timers and nqMQTT objects have been released, the script reload will be performed.

On the other hand, there are two ways to perform a script reload without waiting for resources to be released.

  1. Use trigger command (push notification) from NEQTO Console

    Perform "Reload Script" using the trigger command from NEQTO Console.
    When the NEQTO Engine receives the "Reload Script" instruction from NEQTO Console, it forcibly terminates the script and downloads and executes the updated script.
    It can be used to update the script or to intentionally restart the script remotely.

  2. Use a throw statement that contains a specific hashtag

    By executing the throw statement below, you can start reloading spontaneously from within the script.
    It can be used to check if the script is updated regularly or to intentionally restart the script.

    throw '#nqEXIT';
    throw new Error('#nqEXIT');
     



Booting Operation when Express mode is enabled

In normal booting operation, network connection, certification, and script downloading are required until the scripts are launched. The Express mode is a feature that bypasses these prerequisites and allows scripts to be launched.

After the NEQTO Engine is booted, it will first attempt to connect to the network, but it is expected that it may take some time for the network to connect due to factors such as the wireless environment. However, there are times when scripts need to run as quickly as possible, and Express mode can be utilized for this purpose.

When Express mode is enabled, network connection wait timeout processing is enabled.
If the network is connected before the timeout, the normal booting operation continues: certification, script download, and script launch.
If a timeout occurs, certification, script download is bypassed and the previously downloaded script stored in the NEQTO Engine is launched. Even after the network connection wait timeout, the network connection process continues, and functions that require communication functions can be used from the time the network connection is established.

Express mode configuration

Express mode is enabled/disabled from the NEQTO Console. Refer to here.

Network connection wait timeout value

The timeout value can be changed using the .setExpressConf() method. The default value is 15 seconds. If 0 is specified, in effect, there is no waiting for a network connection, and the previously downloaded script can be launched immediately.



Safe Mode

Safe Mode Operation

If an exception such as a throw or a syntax error occurs while executing the script, wait for the script to be modified. This state is called safe mode.
Check and correct the script, and perform "Reload Script" using the trigger command from NEQTO Console.
When the NEQTO Engine receives the "Reload Script" instruction from NEQTO Console, it will download and execute the updated script.
In addition, the NEQTO Engine automatically checks if the script has been updated during safe mode. The check interval increases in the order of 1 minute, 2 minutes, 4 minutes, 8 minutes, 16 minutes, and 30 minutes. And finally it will be every 30 minutes.

If you want to avoid unexpected system halts due to safe mode, it is possible to inhibit safe mode using the nqService.inhibitSafeMode() method. (Version 00.02.00+)



Firmware Update Mode

User device firmware update operation using Machine Driver

When the NEQTO Engine receives the Machine Driver update instruction from NEQTO Console, it downloads and executes the Machine Driver script.
The Machine Driver script downloads the firmware image file and updates the user device firmware.
When the Machine Driver script processing is completed, the operation script execution returns.



NEQTO Engine software update operation

When the NEQTO Engine receives the firmware update instruction from NEQTO Console, it downloads and updates its own software.
When the software update is complete, the NEQTO Engine will automatically reboot and return to normal operation.
If the software has already been updated, the update process will be skipped.

Caution: Please do not turn off the power to the Linux device while updating the software.



About system time synchronization

The NEQTO Engine gets the time information from NEQTO Console and corrects the system time.
The timing of time synchronization is as follows.

Automatic system time synchronization is only performed when the automatic time correction setting is enabled.
This is disabled by default in NEQTO Engine for Linux.

CategoryPhaseTime update timing
AutoWhen NEQTO Console authentication is doneWhen the authentication sequence is executed, such as at NEQTO Engine startup
AutoDuring operation script executionRegularly once a day
ManualWhen the time correction method of the nqService object is executedAny timing



Updated: 2025-01-23
← 03. Software Configurations05. Debug Log Acquisition →
  • Script Execution Mode
    • Normal Booting Operation
    • Booting Operation when unable to connect to a Network
    • Booting Operation when not registered to a Node
    • Script Reload Operation
    • Booting Operation when Express mode is enabled
  • Safe Mode
    • Safe Mode Operation
  • Firmware Update Mode
    • User device firmware update operation using Machine Driver
    • NEQTO Engine software update operation
  • About system time synchronization
AboutNewsProductsFAQPrivacy PolicyVulnerability Disclosure Policy
NEQTO Console
IntroductionFundamentalsAdministrative ActionsDevice Management NEQTO Apps
NEQTO Bridge
NEQTO Bridge ModuleNEQTO Bridge Wi-Fi ModuleNEQTO Bridge LTE-1 ModuleError Logging Event Messages
API Documentation
API UsageGlobal APIRegional APIAPI Terms of Service
Jigsaw, Inc.
© 2025 JIG-SAW INC.