Smart Devices App

Smart Devices App

Libelium is an software tool developed by Libelium that allows users install new firmware versions and program the configuration of the new Libelium devices in a few clicks. At the moment it is only available for Smart Parking and MySignals products, but the list will be incremented shortly.

How to install the Smart Devices App

First of all and before installing anything, users have to take into account the platform where the application is going to be installed. To install the , it is compulsory to have installed the JRE 1.8 or JDK 1.8. If it is not installed in the computer, you can download it from the website below and follow the steps described:

Once installed JDK or JRE, users can download the application in the link below, selecting the appropriate Operating System and architecture:

Then customers only have to extract the content of the SmartDeviceApp zip file downloaded in a place with the right permissions, and finally execute the file called "SmartDeviceApp" that will initialize the application. Please, note that the extension of this file will depend on the operating system the user is using at the moment (.sh for Linux and OSX, and .bat for Windows).

This application new uses a new programmer under the hood called STM32CubeProgrammer, so it is a good practice to before using the :

Windows

It is important to install STM32CubeProgrammer as the software contains the drivers needed to set the USB ports in DFU mode, if you want to know more about how to install this software and know about how to set the USB in DFU mode, please see the official guide from STM32CubeProgrammer:

Make sure that your USB can switch to DFU mode, you can check it with the STM32CubeProgrammer.

MacOS

It is not necessary to install additional software, but you can install STM32CubeProgrammer:

GNU/Linux

It is necessary to change permissions to USB ports. If you have problems with your USB device on your GNU/Linux (or the does not recognize the SmartParking v2 device) you can compile the stlink driver discover:

git clone https://github.com/texane/stlink.git stlink
cd stlink
make
# install binaries:
sudo cp build/Release/st* /usr/local/bin/
# install udev rules
sudo cp etc/udev/rules.d/49-stlinkv* /etc/udev/rules.d/
# and restart udev
sudo udevadm control --reload

If you have problems with stlink driver installation please refer this site: https://github.com/texane/stlink

Review the UDEV rules and they should be as follows:

nano /etc/udev/rules.d/49-stlinkv2.rules
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3748", \
    MODE:="0666", \
    SYMLINK+="stlinkv2_%n"

Add your user to dialout:

sudo addgroup <username> dialout 

Then you will be able to use the USB ports on Linux systems. It is also recommended to install STM32CubeProgrammer for the current OS the user is running:

How to execute the Smart Devices App

Windows

Go to the folder and click on the file SmartDevicesApp.bat.

MacOSX

Open a new terminal window and navigate to the folder containing the application, then type:

sudo ./SmartDevicesApp.sh

Open a new terminal window and navigate to the folder containing the application, then type:

sudo ./SmartDevicesApp.sh

Upgrading the Smart Devices App

Occasionally, some improvements and new services will be released; if this is the case, the will show a notification encouraging the user to go to the "Installation" section and download the new version.

It is mandatory to have an active internet connection in order to use the application.

To upgrade the Smart Devices App, you must follow the installation steps. This will overwrite the files from previous versions. As a first step, we recommend to backup the following files:

  • cfg/config.ini: This file stores the configuration parameters. To restore those settings, every single parameter value (username, password, etc) should be copied into the new version of the "config.ini" file. The file should not be overwritten, new parameters must be added and merging files is mandatory.

  • temp: This folder contains the firmware files previously used. To restore these files, copy the content of the saved "temp" directory into the new version "temp" directory.

Last updated