Skip to content

Releases: cradlepoint/sdk-samples

Built Apps

17 Oct 18:35
929f94a
Compare
Choose a tag to compare

These files are sample SDK Applications that are ready to use for testing and do not require modification or "building" of the app from source files.

How to use these files:

Download the .tar.gz file, then upload to your NetCloud Manager account and assign to groups.

Additional documentation:
https://customer.cradlepoint.com/s/article/NetCloud-Manager-Tools-Tab#sdk_apps


Sample Application Descriptions

  • 5GSpeed
    • Run Ookla speedtests via NCM API. Results are put in asset_id field (configurable in SDK Data). Clearing the results starts a new test. This can be done easily via NCM API v2 /routers/ endpoint.
  • app_template
    • A template for the creation of a new application utilizing the csclient library.
  • app_holder
    • Just a holder for dynamic_app. See dynamic_app.
  • appdata_sample
    • Store and retrieve settings in SDK Appdata in configuration.
  • Autoinstall
    • Automatically choose fastest SIM on install. On bootup, AutoInstall detects SIMs, and ensures (clones) they have unique WAN profiles for prioritization. Then the app collects diagnostics and runs Ookla speedtests on each SIM. Then the app prioritizes the SIMs WAN Profiles by TCP download speed. Results are written to the log, set as the description field, and sent as a custom alert. The app can be manually triggered again by clearing out the description field in NCM.
  • Installer_UI
    • Provide a web interface for installers to configure WiFi and run speedtests.
  • Mobile_Site_Survey
    • Robust Site Survey app with cloud aggregating and reporting via 5g-ready.io
  • app_template_csclient
    • A template for the creation of a new application utilizing the csclient library.
  • cli_sample
    • Includes csterm module that enables access to local CLI to send commands and return output.
  • cp_shell
    • Web interface for running linux shell commands.
  • cpu_usage
    • Gets cpu and memory usage information from the router every 30 seconds and writes a csv file to a usb stick formatted in fat32.
  • dynamic_app
    • Downloads apps from a self hosted url and install into app_holder app. Overcome limitates with dev_mode and app size limits.
  • daily_speedtest
    • Runs an ookla speedtest daily at configured hours and put results to user defined field (asset_id).
  • ftp_client
    • Creates a file and uploads it to an FTP server.
  • ftp_server
    • Creates an FTP server in the device. A USB memory device is used as the FTP directory.
  • geofences
    • Send alert when entering or exiting geofences. Configure geofences in SDK app data after loading app.
  • gpio_any_wan_connected
    • Set GPIO out high when any wan (not just modems) is connected.
  • gps_probe
    • Probe the GPS hardware and log the results.
  • hello_world
    • Outputs a 'Hello World!' log every 10 seconds.
  • hspt
    • Sets up a custom Hot Spot landing page.
  • ibr1700_gnss
    • Demonstrates how to access the gyroscope and accelerometer data on the IBR1700
  • ibr1700_obdII
    • Demonstrates how to access OBD-II PIDs on the IBR1700
  • ipverify_custom_action
    • Create a custom action in a function to be called when an IPverify test status changes.
  • logfile
    • Writes router logs to flash available for download via HTTP/LAN Manager.
  • mosquitto
    • Demonstrates launching embedded mosquitto server
  • mqtt_app
    • Demonstrated MQTT using the paho library
  • mqtt_azure_client
    • Sample Application which uses SDK to send sensor data to Microsoft Azure IoT Central.
  • mqtt_azure_tls
    • Sample Application which uses SDK to send sensor data to Microsoft Azure IoT Central over TLS connection.
  • OBDII_monitor
    • Monitor OBD-II values, put latest values in asset_id, and alert on conditions defined in SDK AppData.
  • ping_sample
    • Contains ping function and example usage.
  • ports_status
    • Sets the device description to visually show the LAN/WAN/WWAN/Modem/IP Verify status.
  • power_alert
    • Sends alerts when external power is lost and restored.
  • python_module_list
    • This app will log the python version and modules in the device. It is intended to help with app development to show the python environment within the device.
  • rate_limit
    • Enable QoS rule 1 until datacap alert is met then toggle to rule 2.
  • rproxy
    • A reverse proxy similar to port forwarding, except traffic forwarded to a
      udp/tcp target will be sourced from the router's IP. This reverse proxy can
      be dynamically added to clients as they connect.
  • shell_sample
    • Provides example how to execute commands at OS shell: "ls - al".
  • send_to_server
    • Gets the '/status' from the device config store and send it to a test server.
  • serial_temp
    • This is a test application to serial data from the data logger connected.
  • serial_vibration_test
    • This is a test developed for the Cradlepoint Serial Device (CSD) to be used during vibration testing of the CSD. The application is a simple serial echo server that opens a port on the router. Data is sent to the application and is echoed back to the client over the serial port. A LAN device is connected and communicates with the router via port 5556. When the vibration test is running, the LAN client will be notified if the serial cable is disconnected or connected.
  • simple_custom_dashboard
    • Creates a simple dashboard using HTML and JS. Note that any 'server function' requires the router firewall to be correctly changed to allow client access to the router.
  • simple_web_server
    • A simple web server to receive messages. Note that any 'server function' requires the router firewall to be correctly changed to allow client access to the router.
  • system_monitor
    • Get various system diagnostics, alert on thresholds, and put current status in asset_id field.
  • tailscale
    • A 3rd party mesh VPN called Tailscale that makes it easy to connect your devices, wherever they are. This application provides a way to proxy traffic from the LAN to the Tailscale network. See the README.md for more information.
  • tornado_sample
    • A webserver using Tornado with NCM-themed example to set WiFi SSIDs.
  • throttle_cellular_datacap
    • Upon any Modem interface reaching 100% of the monthly data capacity limit, manual QoS will be enabled globally and bandwidth throttling will be enforced on ALL Modem profiles to the configured limit (minbwup and minbwdown variables).
  • throttle_cellular_datacap_rate_tiered
    • Upon any Modem interface reaching 70, 80, 90 or 100% of the monthly data capacity limit, manual QoS will be enabled globally and bandwidth throttling will be enforced on ALL Modem profiles to the configured limit as set by the rate tier (minbwup and minbwdown variables).

This software, including any sample applications, and associated documentation (the "Software"), are subject to the Cradlepoint Terms of Service and License Agreement available at https://cradlepoint.com/terms-of-service (“TSLA”).

NOTWITHSTANDING ANY PROVISION CONTAINED IN THE TSLA, CRADLEPOINT DOES NOT WARRANT THAT THE SOFTWARE OR ANY FUNCTION CONTAINED THEREIN WILL MEET CUSTOMER’S REQUIREMENTS, BE UNINTERRUPTED OR ERROR-FREE, THAT DEFECTS WILL BE CORRECTED, OR THAT THE SOFTWARE IS FREE OF VIRUSES OR OTHER HARMFUL COMPONENTS. THE SOFTWARE IS PROVIDED “AS-IS,” WITHOUT ANY WARRANTIES OF ANY KIND. ANY USE OF THE SOFTWARE IS DONE AT CUSTOMER’S SOLE RISK AND CUSTOMER WILL BE SOLELY RESPONSIBLE FOR ANY DAMAGE, LOSS OR EXPENSE INCURRED AS A RESULT OF OR ARISING OUT OF CUSTOMER’S USE OF THE SOFTWARE. CRADLEPOINT MAKES NO OTHER WARRANTY, EITHER EXPRESSED OR IMPLIED, WITH RESPECT TO THE SOFTWARE. CRADLEPOINT SPECIFICALLY DISCLAIMS THE IMPLIED WARRANTIES OR CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE OR NON-INFRINGEMENT.

Copyright © 2018 Cradlepoint, Inc. All rights reserved.

NCOS SDK Version 3.0

23 May 15:49
0059c7b
Compare
Choose a tag to compare

This software, including any sample applications, and associated documentation (the "Software"), are subject to the Cradlepoint Terms of Service and License Agreement available at https://cradlepoint.com/terms-of-service (“TSLA”).

NOTWITHSTANDING ANY PROVISION CONTAINED IN THE TSLA, CRADLEPOINT DOES NOT WARRANT THAT THE SOFTWARE OR ANY FUNCTION CONTAINED THEREIN WILL MEET CUSTOMER’S REQUIREMENTS, BE UNINTERRUPTED OR ERROR-FREE, THAT DEFECTS WILL BE CORRECTED, OR THAT THE SOFTWARE IS FREE OF VIRUSES OR OTHER HARMFUL COMPONENTS. THE SOFTWARE IS PROVIDED “AS-IS,” WITHOUT ANY WARRANTIES OF ANY KIND. ANY USE OF THE SOFTWARE IS DONE AT CUSTOMER’S SOLE RISK AND CUSTOMER WILL BE SOLELY RESPONSIBLE FOR ANY DAMAGE, LOSS OR EXPENSE INCURRED AS A RESULT OF OR ARISING OUT OF CUSTOMER’S USE OF THE SOFTWARE. CRADLEPOINT MAKES NO OTHER WARRANTY, EITHER EXPRESSED OR IMPLIED, WITH RESPECT TO THE SOFTWARE. CRADLEPOINT SPECIFICALLY DISCLAIMS THE IMPLIED WARRANTIES OR CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE OR NON-INFRINGEMENT.

Copyright © 2020 Cradlepoint, Inc. All rights reserved.

NetCloud SDK 3.0 Changes

  • New Python module
    • csclient.py – Python module containing EventingCSClient() class to replace previous cs.py and CSClient().
  • New Sample Applications
    • app_template_csclient - Application template utilizing new csclient module.
    • Boot2 – Application to run speedtest on all SIMs and prioritize by tcp down, send report with LTE Metrics and speedtest results. Additional options.
    • cli_sample – Function to SSH localhost and issue CLI commands and return output. Includes cppxssh.py and dependencies.
    • ipverify_custom_action – Application to register a function for event callback – example of ipverify custom actions
    • mosquitto – App to start NCOS-native mosquitto MQTT broker using included config file (no python)
    • ping_sample – Function to send pings and return results
    • shell_sample – Function to issue command at OS shell and return output
  • Updated Existing Sample Applications
    • Updated all existing sample applications to use new csclient.py module

NCOS SDK Version 2.3

15 Feb 23:18
82d855d
Compare
Choose a tag to compare

This software, including any sample applications, and associated documentation (the "Software"), are subject to the Cradlepoint Terms of Service and License Agreement available at https://cradlepoint.com/terms-of-service (“TSLA”).

NOTWITHSTANDING ANY PROVISION CONTAINED IN THE TSLA, CRADLEPOINT DOES NOT WARRANT THAT THE SOFTWARE OR ANY FUNCTION CONTAINED THEREIN WILL MEET CUSTOMER’S REQUIREMENTS, BE UNINTERRUPTED OR ERROR-FREE, THAT DEFECTS WILL BE CORRECTED, OR THAT THE SOFTWARE IS FREE OF VIRUSES OR OTHER HARMFUL COMPONENTS. THE SOFTWARE IS PROVIDED “AS-IS,” WITHOUT ANY WARRANTIES OF ANY KIND. ANY USE OF THE SOFTWARE IS DONE AT CUSTOMER’S SOLE RISK AND CUSTOMER WILL BE SOLELY RESPONSIBLE FOR ANY DAMAGE, LOSS OR EXPENSE INCURRED AS A RESULT OF OR ARISING OUT OF CUSTOMER’S USE OF THE SOFTWARE. CRADLEPOINT MAKES NO OTHER WARRANTY, EITHER EXPRESSED OR IMPLIED, WITH RESPECT TO THE SOFTWARE. CRADLEPOINT SPECIFICALLY DISCLAIMS THE IMPLIED WARRANTIES OR CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE OR NON-INFRINGEMENT.

Copyright © 2018-2019 Cradlepoint, Inc. All rights reserved.

NCOS SDK 2.3 Changes

  • New Sample Applications
    • mqtt_azure_tls - Application used for communicating with Microsoft Azure IoT hub using MQTT directly.
    • ibr1700_gnss - Application that accesses gyroscope and accelerometer on IBR1700 devices.
    • serial_vibration_test - Application that verifies a persistent serial connection exists.
  • Updated Existing Sample Applications
    • Update Boot1 to v2.6 – Added a retry if the 1st try returns 0/0 for both SIMs. Made the application more robust to handle NCOS 7.0 and greater versions.
  • Added logic to raise an exception if SDK mode is not known.
  • Added error handling for carriage returns during make.py builds.
  • Update Cradlepoint FIPS handling.
  • Resolved an issue with application logging on OS X.

NCOS SDK version 2.2

31 May 15:35
b3b7995
Compare
Choose a tag to compare

This software, including any sample applications, and associated documentation (the "Software"), are subject to the Cradlepoint Terms of Service and License Agreement available at https://cradlepoint.com/terms-of-service (“TSLA”).

NOTWITHSTANDING ANY PROVISION CONTAINED IN THE TSLA, CRADLEPOINT DOES NOT WARRANT THAT THE SOFTWARE OR ANY FUNCTION CONTAINED THEREIN WILL MEET CUSTOMER’S REQUIREMENTS, BE UNINTERRUPTED OR ERROR-FREE, THAT DEFECTS WILL BE CORRECTED, OR THAT THE SOFTWARE IS FREE OF VIRUSES OR OTHER HARMFUL COMPONENTS. THE SOFTWARE IS PROVIDED “AS-IS,” WITHOUT ANY WARRANTIES OF ANY KIND. ANY USE OF THE SOFTWARE IS DONE AT CUSTOMER’S SOLE RISK AND CUSTOMER WILL BE SOLELY RESPONSIBLE FOR ANY DAMAGE, LOSS OR EXPENSE INCURRED AS A RESULT OF OR ARISING OUT OF CUSTOMER’S USE OF THE SOFTWARE. CRADLEPOINT MAKES NO OTHER WARRANTY, EITHER EXPRESSED OR IMPLIED, WITH RESPECT TO THE SOFTWARE. CRADLEPOINT SPECIFICALLY DISCLAIMS THE IMPLIED WARRANTIES OR CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE OR NON-INFRINGEMENT.

Copyright © 2018 Cradlepoint, Inc. All rights reserved.

NCOS SDK 2.2 Changes

  • Updated Documentation and corrected errors and broken links
  • Fixed make.py and cs.py to use appropriate authentication,
    basic or digest, depending on the NCOS release.
  • Added sshpass for Linux or OS X so that device password does not have
    to be manually entered.
  • Use scp in make.py to install the app for Linux.
  • Added 'ALL' option for build and clean make.py commands.
  • Add readme.txt for all applications that describe the contents.
  • Deleted sample application that were very simple or no longer supported.
    (email, gps_localhost, list_serial_ports, log_level, modbus_poll,
    modbus_simple_bridge, power_gpio, send_alert, and serial_echo)
  • Add ibr1700_obdII sample application
  • Removed redundant information added to logs by app_logging.py.
  • Simplified several apps to make them more concise.
  • Added unit and system level test to appropriate application.
  • Added unit and system commands to make.py to run the test for
    a given application.
  • Added Software License information for the SDK.
  • Removed GNU Make support. Only python make.py is supported.

NCOS SDK version 2.1

29 Dec 16:21
Compare
Choose a tag to compare

This software, including any sample applications, and associated documentation (the "Software"), are subject to the Cradlepoint Terms of Service and License Agreement available at https://cradlepoint.com/terms-of-service (“TSLA”).

NOTWITHSTANDING ANY PROVISION CONTAINED IN THE TSLA, CRADLEPOINT DOES NOT WARRANT THAT THE SOFTWARE OR ANY FUNCTION CONTAINED THEREIN WILL MEET CUSTOMER’S REQUIREMENTS, BE UNINTERRUPTED OR ERROR-FREE, THAT DEFECTS WILL BE CORRECTED, OR THAT THE SOFTWARE IS FREE OF VIRUSES OR OTHER HARMFUL COMPONENTS. THE SOFTWARE IS PROVIDED “AS-IS,” WITHOUT ANY WARRANTIES OF ANY KIND. ANY USE OF THE SOFTWARE IS DONE AT CUSTOMER’S SOLE RISK AND CUSTOMER WILL BE SOLELY RESPONSIBLE FOR ANY DAMAGE, LOSS OR EXPENSE INCURRED AS A RESULT OF OR ARISING OUT OF CUSTOMER’S USE OF THE SOFTWARE. CRADLEPOINT MAKES NO OTHER WARRANTY, EITHER EXPRESSED OR IMPLIED, WITH RESPECT TO THE SOFTWARE. CRADLEPOINT SPECIFICALLY DISCLAIMS THE IMPLIED WARRANTIES OR CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE OR NON-INFRINGEMENT.

Copyright © 2018 Cradlepoint, Inc. All rights reserved.

NCOS SDK 2.1 Changes

  • Added app_logging.py to the common directory which provides a class for all NCOS syslog level log generation (i.e. info, debug, error, etc.).
  • Updated app_template to use the most current cs.py and utilize app_logging.py.
  • make.py changes
    • Added uuid option which creates and writes a UUID to the package.ini file.
    • Modified the build option to not include any hidden files or directories.
  • Updated documentation
  • Refactored Boot1 app and made it work in NCOS 6.4.
  • Update cs.py to not throw an exception for NCM alert generation when running the app on a computer.
  • Cleaned up apps and added some new ones
    • mqtt_app
      • Demonstrates using paho-mqtt client.
    • python_module_list
      • Output list of NCOS python modules in the logs.
    • simple_custom_dashboard
      • Creates a simple dashboard using HTML and JS.

SDK version 2.0.

11 Jul 14:52
Compare
Choose a tag to compare

This software, including any sample applications, and associated documentation (the "Software"), are subject to the Cradlepoint Terms of Service and License Agreement available at https://cradlepoint.com/terms-of-service (“TSLA”).

NOTWITHSTANDING ANY PROVISION CONTAINED IN THE TSLA, CRADLEPOINT DOES NOT WARRANT THAT THE SOFTWARE OR ANY FUNCTION CONTAINED THEREIN WILL MEET CUSTOMER’S REQUIREMENTS, BE UNINTERRUPTED OR ERROR-FREE, THAT DEFECTS WILL BE CORRECTED, OR THAT THE SOFTWARE IS FREE OF VIRUSES OR OTHER HARMFUL COMPONENTS. THE SOFTWARE IS PROVIDED “AS-IS,” WITHOUT ANY WARRANTIES OF ANY KIND. ANY USE OF THE SOFTWARE IS DONE AT CUSTOMER’S SOLE RISK AND CUSTOMER WILL BE SOLELY RESPONSIBLE FOR ANY DAMAGE, LOSS OR EXPENSE INCURRED AS A RESULT OF OR ARISING OUT OF CUSTOMER’S USE OF THE SOFTWARE. CRADLEPOINT MAKES NO OTHER WARRANTY, EITHER EXPRESSED OR IMPLIED, WITH RESPECT TO THE SOFTWARE. CRADLEPOINT SPECIFICALLY DISCLAIMS THE IMPLIED WARRANTIES OR CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE OR NON-INFRINGEMENT.

Copyright © 2018 Cradlepoint, Inc. All rights reserved.

This is version 2.0 of the Router SDK and applications. The SDK has been simplified from the previous SDK to decrease the learning curve to allow more focus on application development. The router application infrastructure and packaging is unchanged. That is, an 'tar.gz' application package built with the previous SDK can still be installed into the router using SDK version 2.0. However, the coding of an application version 1.0 may need to be re-factored in order for continued development with SDK version 2.0.