Developer | JP Norair |
---|---|
Written in | C |
OS family | Embedded operating system |
Working state | Current |
Source model | Open source |
Initial release | 2011; 13 years ago (2011) |
Latest release | 0.4.0 / November 8, 2012; 12 years ago (2012-11-08) |
Marketing target | Wireless sensor networks |
Available in | English |
Platforms | MSP430, STM32 |
Kernel type | Exokernel |
License | OpenTag License |
Official website | OpenTag wiki |
OpenTag is a DASH7 protocol stack and minimal Real-Time Operating System (RTOS), written in the C programming language. It is designed to run on microcontrollers or radio Systems on a Chip (SoC). OpenTag was engineered to be a very compact software package. However, with proper configuration, it can also run in any POSIX environment. OpenTag can also provide all functionality required for any type of DASH7 Mode 2 device, rather than just the eponymous βtagβ-type endpoint device.
Design philosophy
This section may be too technical for most readers to understand. Please help improve it to make it understandable to non-experts, without removing the technical details. (September 2013) (Learn how and when to remove this message) |
OpenTag implements DASH7 Mode 2, which specifies a monolithic system encompassing OSI layers one through six, part of layer seven, as well as the application layer. OpenTag is designed to be light and compact, as it is targeted to run on resource-constrained micro-controllers. As a monolithic system, it does not implement different layers of the OSI model in a way that will enable them to be deployed on systems that differ from the typical, and nearly universal, MCU+RF transceiver architecture, utilized by WSN and M2M nodes. However, the OpenTag RTOS employs an exokernel architecture (as of version 0.4), so a monolithic kernel is not required. Applications developed for OpenTag may safely reference the library or directly access the hardware, as befits the exokernel design model.
Features
- It has a lightweight pre-emptive multitasking exokernel RTOS.
- Most kernels use fixed priority tasks.
- It contains a complete DASH7 Mode 2 protocol stack, including
- It uses a Wear-leveling, Flash-based lightweight filesystem (Veelite).
- It has an internal C-based API.
- It has an external NDEF-based messaging API for client-server interaction.
Implementation
OpenTag implements a multitasking real-time kernel designed specifically to implement DASH7. User tasks can be managed by the kernel, and they can preempt the kernel, although they must be allocated at compile-time. The scheduling frequency, or kernel resolution, is implementation-dependent, but it must be at least 1024 Hz and it must be an integer multiple of 1024 Hz.
Kernel events use callbacks to invoke custom application code, which are called "applets". Extensive templating is used to provide callback functionality that is efficient for embedded environments. Thus callbacks in OpenTag may be dynamic (assigned during runtime), or they may be static, which requires assignment at compile-time but reduces overhead. As OpenTag implements an exokernel, user tasks may either be managed entirely by the kernel, they may be managed partly by the kernel and partly by external events, or they may be managed entirely by external events. Communication between tasks and the kernel is accomplished through an API of system calls and a message pipe interface.
OpenTag's external API uses a simplified client-server model and NDEF for data wrapping. The NDEF wrapper is particularly used for wireline communication between client and server, where the client is typically a human-interface device and the server is the OpenTag SoC. The internal API is exposed in a 1:1 manner with the external API, permitting the client to act much like an external process of the OpenTag kernel.
Supported devices
At the time of writing, most OpenTag hardware is implemented on the Texas Instruments CC430 or MSP430 devices, which are endorsed for use with OpenTag. Current OpenTag source trees support many other MCUs and RF transceivers, however, such as various types of STM32, CC11xx, and Semtech SX12xx components.
References
- "OpenTag Features Overview". OpenTag Wiki. Indigresso.com. Archived from the original on 6 December 2019. Retrieved 9 July 2012.
- Norair, JP (13 May 2011). "Building DASH7 Apps with OpenTag". Retrieved 9 July 2012.
- "OpenTag API". OpenTag Wiki. Retrieved 9 July 2012.
- "OpenTag Client-Server Architecture". OpenTag Wiki.
- "The all new CC430 combines leading MSP430 MCU and low power RF technology". ti.com. Texas Instruments. Retrieved 9 July 2012.
- "OpenTag Mainline Repository". GitHub. Retrieved 9 July 2012.
Wireless sensor network | |
---|---|
Operating systems | |
Communications protocols | |
Programming languages | |
Hardware | |
Software | |
Applications | |
Routing protocols | |
Conferences, journals |