This directory contains the Router SDK tools and sample applications. Below is a desciption of each. The Router Applications Development Guide is the best document to read first.
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. Please see document SDK_version_1.0_app_refactor.html in this directory for details.
- README.html
- This README file.
- Router_Application_Development_Guide.html
- The main document that describes application development.
- Router_APIs_for_Applications.html
- The router config store API in the router.
- GNU_Make_README.html
- The Linux GNU make instructions for the SDK.
- app_template
- A skeleton template for the creation of a new application.
- Boot1
- On bootup, this application will select test the connection of each sim in a dual sim modem and enable the best.
- email
- Sends an email.
- ftp_client
- Creates a file and uploads it to an FTP server.
- ftp_server
- Creates an FTP server in the router. A USB memory device is used as the FTP directory.
- gps_localhost
- Assuming the Cradlepoint router is configured to forward NMEA sentences to a localhost port, open the port as a server and receive the streaming GSP data.
- 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.
- list_serial_ports
- Lists out the serial ports in the logs.
- loglevel
- Changes the router log level.
- modbus_poll
- Poll a single range of Modbus registers from an attached serial Modbus/RTU PLC or slave device.
- modbus_simple_bridge
- A basic Modbus/TCP to RTU bridge.
- ping
- Ping an address and log the results.
- power_gpio
- Query the 2x2 power connector GPIO.
- send_alert
- Sends an alert to the ECM when the application is started and stopped.
- send_to_server
- Gets the '/status' from the reouter config store and send it to a test server.
- serial_echo
- Waits for data to enter the serial port, then echo back out.
- 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.
- common
- Contains the cs.py file which should be copied into an application folder. It is a wrapper for the TCP interface to the router config store.
- config
- Contains the settings.mk file for Linux users that want to use GNU make for application development instead of python make.py.
- tools
- Contains support files for the SDK. There is also a simple python syslog server that can be used during application development.
- make.py
- The main python tool used to build application packages and install, uninstall, start, stop, or purge from a locally connected router that is in DEV mode.
- Makefile
- The Makefile for Linux users that want to use GNU make for application development instead of python make.py.
- sdk_settings.ini
- This is the ini file that contains the settings used by python make.py.