Skip to main content

Release announcement v1.3.0

ยท 6 min read
Emanuel Allely

Template management and Gate major update

Hello everybody, we are thrilled to share this new release note with you: Luos v1.3.0 is out

Like every young technology growing fast, Luos is going through an intense period of development. This means new critical features and many fixes at the same time, both into frequent releases. Fully dedicated to easing your life as an embedded developer, an electronic engineer, or a product manager, our R&D team is growing and working hard with passion for delivering a powerful technology to you.

As an open-source solution, Luos aims to be wildly distributed and used by as many embedded developers as possible. Thanks to Luos, you can easily design, test and deploy embedded applications on multi-MCUs devices. Spread the word!

What's new in this version?

This is the sixth release of Luos. We described below the various features and fixes that it provides.

๐Ÿ†• Feature: Manage pipe type and command

The gate in a Luos environment is something tremendously important and used to check or control a Luos network, and (teaser...) it will be even more important for the next revision! ๐Ÿ˜‰

Basically, its task is to share the entire machine capabilities to the outer world by translating Luos things into a standard format easy to use with standard software languages such as Python, JS, Ruby, C++, etc.

On the previous version of the gate example, you needed to modify the code to adapt it to your project's specificities, and it was an arduous task. Then we decided to make it simple and portable for you.

We split it into 2 parts, the main Gate App and a Driver:

  • Now the gate is an App. Meaning it doesn't have any code related to hardware. It's a basic ANSI C that you can compile directly for any MCU or CPU without any additional configuration! This way, you can easily add it to your setup.

We also added a build option allowing you to select the output format managed by the gate or create your own easily. For now, we have 2 Json options, the one we use on the previous version (cJSON), and a new one (TinyJSON) that doesn't make any dynamic allocation.

The Pipe is the driver part: This Driver allows sending or receiving data from the outer world and converting those data to the Luos side. A Pipe can be USB, serial, Wifi, Bluetooth, an SD card, or anything allowing to send and receive information to/from another machine.

This new type of driver can be used for different purposes, and the gate App needs it to exchange information and share its output format.

As a gate user, you will only have to adapt this Pipe driver to your needs. The gate will deal with it.

More details about this can be found in the Gate section of our documentation.

๐Ÿ†• Feature: Add access management to container

Sometimes the same container type can be used for input or output purposes. For example, a STATE_TYPE container (which is a basic True/False state) can be used for a button (read-only) or a relay (write-only). This is no big deal regarding the capability of your code because you deal with the messages as you want and make it work as you want, but other containers don't know if it's read-only or write-only.

This new access management feature allows you to declare the readability of your container for the other containers in your device. By default, a container is on a READ_WRITE_ACCESS, and you can choose to make it READ_ONLY_ACCESS, WRITE_ONLY_ACCESS, or even NO_ACCESS.

More details about this can be found in our documentation.

๐Ÿ†• Feature: Template Creation for State, Voltage, Motor, Servo

To make the embedded development easier, we have to make everything work the same way.

For example, there are many different motor technologies and control, but all motors have the same purpose: making something move. And because all of them have the same purpose, we also should have the same profile or API for all of them!

That's why we created the Templates.

Profiles are advanced APIs dedicated to common Drivers such as motors, and we call template the container hosting a profile.

Templates are containers that will manage for you the profile (API) of your driver.

By developing this kind of container, you don't need to take care of message management anymore. You only need to deal with simple variables adapted to your container's needs!

And of course, you can create your own profiles, compose a new one with the already existing ones and share it with your team or the community.

More details in our documentation.

๐Ÿ†• Feature: Add some research API in the routing table

When it comes to developing the behavior of your machine, you will have to access some drivers.

With Luos, all the resources of your system are resumed into a routing_table structure. This structure allows you to find the resources you need to make your application work. We are constantly updating and optimizing the functions allowing you to easily find the resources you need.

In this revision 1.3.0 of Luos, we added index research, giving you the most optimized way of getting resource information.

More details about this are on the routing_table section of our documentation.

๐Ÿ†• Feature: Localhost verbose management

Every board on your Luos network can deal with multiple containers, and sometimes those containers have to exchange information.

To save some data bandwidth on your network and RAM on your MCU, we added a new feature allowing you to deal with localhost messaging. Localhost messages are not shared into your network and stay in the MCU.

This is a huge deal to improve your Luos system performances, and you should take care to put your applications close to the drivers they are using!

If you need to get all the data into the network, for example for debugging purposes, you can use the VERBOSE_LOCALHOST build flag that disables this feature!

More details about this subject in the messages handling section of our documentation.

๐Ÿ› ๏ธ Fix: Streaming better management for DMA transmission

Luos can now deal with streaming channels.

To make it, Luos manages a ring buffer for you that you can use to store samples, for example. In this Luos 1.3.0 revision, we updated the API allowing you to deal with DMA. This way, Luos interacts directly with your hardware, saving you a lot of execution time dealing with those data.

More details about this can be found in our documentation.

๐Ÿ› ๏ธ Fix: Streaming sends data more than 128 bytes.

On the previous revision of Luos, we discovered that Streaming couldn't deal with more than 128-byte messages.

We fixed it, allowing you to deal with massive streaming data.

๐Ÿ› ๏ธ Fix: Routing table exclusion optimization

On the previous revision of Luos, we discovered that excluded containers were not removed from the routing_table.

We fixed it, allowing you to avoid multiple access to a dead container.

๐Ÿ› ๏ธ Fix: Memory data overlap

On some specific conditions (simultaneous RX and TX with more already received bytes from RX than the size of the TX), we discovered that some data copy into Luos was corrupted.

This copying issue resulted in some incorrect 0 values reception.

We had to add some padding on RAM to avoid this problem, but in this specific case, Luos will use a little more RAM.

๐Ÿ› ๏ธ Fix: RX task protection when TX task created

On some particular conditions (when a header reception ended during a transmission setup), we spotted some corrupted tasks.

We added some check steps at the begging and the end of the TX allocation to make it work for any case.

๐Ÿ› ๏ธ Fix: Transmission retry optimization

Sometimes when a container retried too many times reaching a container, it leads to container exclusion and removal of the TX message. But when this situation happened on some specific conditions, the next TX messages for other containers were also removed.

We fixed it and made sure to always be able to transmit anything to anyone.

Other Luos' releases

Click here

to see all Luos' releases.

TL;DR

You will find below the original changelog.

Luos 1.3.0:

๐Ÿ†• Feature: Manage pipe type and command
๐Ÿ†• Feature: Add access management to container
๐Ÿ†• Feature: Template Creation for State, Voltage, Motor, Servo
๐Ÿ†• Feature: Add some research API in the routing table
๐Ÿ†• Feature: Localhost verbose management

๐Ÿ› ๏ธ Fix: Streaming better management for DMA transmission
๐Ÿ› ๏ธ Fix: Streaming send data more than 128 byte
๐Ÿ› ๏ธ Fix: Routing table exclusion optimization
๐Ÿ› ๏ธ Fix: Memory data overlap
๐Ÿ› ๏ธ Fix: RX task protection when TX task created
๐Ÿ› ๏ธ Fix: Transmission retry optimization

Dependencies:

  • LuosHAL version >= 0.3.0
  • Pyluos version >= 1.5.0

Package:

  • Luos library
  • Luos library for Arduino environment with example
  • Luos gate library for Arduino environnement

๐ŸŽ‰ Try it, it's #opensource: Luos_engine release v1.3.0.

Get Started with Luos