10. Appendix B - Extending the Smart Radio Functionality

10. Appendix B - Extending the Smart Radio Functionality

Appendix B – Extending the Smart Radio Functionality

Doodle Labs can supply an Image Builder Software Development Kit (SDK) for interested customers. The SDK allows customers to build custom packages and package them into a custom firmware image. It is also possible to make cosmetic changes to the OS to re-brand the radio. Our Image Builder SDK is available on request. Please contact sales@doodlelabs.com  for more information.

Blinking LED

A simple LED blinking script is available in the Smart Radio which will cause one of the GPIOs to toggle ON/OFF. This script only applies to -J and -L hardware. Wearable models (-K) have a built-in LED blinking function which works separately. By default, LED blinking is disabled, but it can be enabled by running

root@smartradio:~# uci set led_blink.general.enable=’1’
root@smartradio:~# uci commit led_blink
root@smartradio:~# /etc/init.d/startup_blink restart

For -L models, only GPIO0 blinking can be enabled. On -J models, you can see a full list of configuration parameters by running

root@smartradio:~# uci show led_blink
led_blink.general=led_blink
led_blink.general.inactive_thres='1000'
led_blink.general.blink_rate='0.3'
led_blink.general.gpio_selected='2'
led_blink.general.enable='0'

The blink_rate is measured in seconds, and the inactive_threshold is the time since hearing from another station, after which the LED will start to blink.