Skip to content

Laird BL654 smartBASIC applications

License

Notifications You must be signed in to change notification settings

cami/BL654-Applications

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BL654 smartBASIC-Applications

A repository for smartBASIC applications that run on the Laird BL654 (Released under the ISC License).

BL654 Overview

Laird’s BL654 contains the latest generation silicon with Bluetooth Low Energy v5 capabilities and groundbreaking ultra-low power performance. Building on the expertise of the BL600 and BL652 Series, the BL654’s class-leading Nordic nRF52840 silicon, optimized low power schemes and smartBASIC programming language provide a secure, stable, hostless Bluetooth environment. The BL654 introduces Bluetooth v5, bringing long range connectivity, industrial security and feature expansion to Laird’s proven Bluetooth Low Energy modules. Let Laird’s innovative BL654 series and decades of expertise in Bluetooth module design speed your product to market.

UwTerminalX

UwTerminalX is a cross-platform utility for communicating and downloading applications onto the BL654. The latest releases are available at https://github.com/LairdCP/UwTerminalX/releases

BL654 Documentation

Documentation for the BL654 can be found on the Laird BL654 website including a quick start guide for using the AT interface application

Older firmwares

The files in this repository are designed for use with the latest BL654 firmware, which at the time of writing is 29.2.2.0. For applications targeting older firmware, please check the Releases tab

Best Practices for Writing smartBASIC Applications

  1. Always check the resultcode returned from an API function. Non-zero result codes usually indicate that the operation has not been successful.
  2. smartBASIC is event driven; ensure that the application is written in an event-driven manner. Starting with a state-machine or a flowchart is highly recommended.
  3. Minimize the use of WAITEVENTs; ideally, WAITEVENT should be used only once at the end of the program to ensure the app is simple and robust.
  4. Minimize radio usage when possible to save power.
  5. Use comments wherever possible to ensure that the application can be read and understood.
  6. Only hard-code when necessary. When hard-coding, use #defines to give meaning to the constants used.
  7. Follow the smartBASIC app template found here.

Notes

Please note that for simplicity reasons, some sample apps have been written without important features such as error handling or result code checking. However, when writing your applications, please ensure that result codes returned from the API functions are always checked to ensure that your applications are robust and bug-free.

About

Laird BL654 smartBASIC applications

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Batchfile 100.0%