Articles Improved user experience through beacon technology by Matthias Eißing

emailx45

Бывалый
Staff member
Moderator
Improved user experience through beacon technology
Matthias Eißing - 08/Jul/2020
[SHOWTOGROUPS=4,20]
Indoor navigation and location with beacons - a technology based on Bluetooth Low Energy.

With the help of GPS and mobile radio, location functions can be carried out outside of buildings. However, a different technology is required to enable location determination within buildings. This is based on Bluetooth Low Energy (BLE). The position of a mobile device is then determined using beacons, which are placed at relevant points in buildings, museums, storage and exhibition halls, etc.

Use cases
More and more companies are recognizing the potential and innovation opportunities of beacon technology. The possible uses are very diverse and often only become apparent at second glance. Some examples:

  • Navigation : Beacons can help you navigate through buildings, for example in museums, train stations, airports, sports stadiums, etc. Beacons are placed at various locations in the building and send signals to mobile devices via Bluetooth. In this way, the position of the mobile devices can be continuously located and forwarded to the indoor navigation system. An app on the smartphone is required to interpret the signals. The number of beacons in the building depends on the area and the desired accuracy.
  • Retail : Beacons enable retailers to get in touch with customers' smartphones. Offers, services and features can be sent directly to the customer's smartphone. By analyzing customer routes, products and offers can be optimally placed and customers in need of advice can be identified. Product information can be displayed in different departments in branches. An example: Other products that are of interest or fit can alternatively be offered to the customer if, for example, he is interested in a certain type of product.
  • Mobile Payment: It is possible to enable users at the point of sale to make cashless payments with very little interaction.
  • Logistics : By placing beacons along the supply and / or logistics chain, beacon technology can be meaningfully combined with other modern approaches such as RFID, Real Time Fleet Management etc. and thus optimize the processes of logistics.
  • Barrier-free: If you can locate the position of customers or visitors, you can help them with targeted voice output and image instructions (for example on a separate monitor) in complex or heavily frequented places.
The technology of the beacons can always be used sensibly if one can offer the user added value, in which the system knows the position in the room and in this way further actions are triggered. In 2013 Apple presented its standard iBeacon and that was a real boom. Google followed suit with Eddystone in 2015. BLE (Bluetooth Low Energy) technology was introduced by Nokia back in 2006 and is characterized by the fact that it uses far less energy than conventional Bluetooth devices. Everyone is talking about beacons these days and its potential has not yet been exhausted.

What are beacons and how do they work?
Beacon (German: signal station, beacon) is a technology based on the Bluetooth Low Energy (BLE) transmission principle. Beacons were originally thought of as a fixed or mobile radio station. Beacons enable energy-saving and automated communication between the transmitter, ie the beacons and the receiver, usually a mobile device such as a tablet or a smartphone. Depending on the position and application, location-specific content is displayed on the mobile device and services are offered. Beacons are available in different sizes, designs and from different manufacturers.

A beacon sends Bluetooth signals at regular intervals. From this perspective, any smartphone, tablet or smart watch - with customized software - can act as a beacon. Hardware designed specifically as beacons, however, is designed for sending BLE signals and cannot act as a receiver. They send a regular data stream, which is used by the receivers to carry out a location determination. The signals are sent in a very short time interval. A beacon builds up a signal region. If a mobile device is in the signal region, it can recognize it and evaluate the BLE signals. The signal generator is identified and the distances between transmitters and receivers in the room are measured. At least three beacons are necessary in order to be able to carry out the measurement exactly in a three-dimensional space. The distances between the units are measured, similar to GPS, according to the lateration principle (Image 1 ).

Image 1: The principle of indoor navigation using beacons.

In contrast to GPS, however, the data transmission is designed for short-range use. The following data is transmitted by a beacon via BLE:

  • Universally Unique Identifier (UUID) : An identifier of the beacon. Each beacon has its own UUID. It is a string of numbers and letters, which is 16 bytes in size. The UUID is used to ensure that unique information can be sent by several components in a distributed system.
  • The major ID : This value has the function of defining the signal region and use cases. The major value is 2 bytes.
  • The minor ID : The minor ID specifies a further sub-area in a major ID.
The so-called TxPower is determined on the receiving device via the software . This is the measured power at a distance of one meter. TxPower and the received signal strength indicator (RSSI ) are used to calculate the approximate distance to a beacon.

The range of the signal of a sending beacon can be configured. A distinction is made between the following categories: Immidiate (less than 50 cm), Near (up to three meters), Far (more than ten meters) and Unknown . Powerful beacons can send signals with a range of up to 450 meters. Obstacles can shorten the range. The strength of the transmission power affects the lifespan of the battery. In typical applications, the energy lasts for an uninterrupted operation lasting several months.

Beacon technology with RAD Studio
In order to implement applications in practice, the use of individual software is usually indicated. With RAD Studio it is very easy to use the BLE technique for use in beacons. By using finished components, the developer does not have to worry about the use of the technology and the protocols. The components are configured in the development environment and are then immediately available in the program code. RAD Studio offers the components for working with beacon technology ( Image 2 ):



Image 2: The components TBeacon and TBeaconDevice encapsulate the entire complexity.

  • TBeacon : This monitors a list of the specified beacon regions and manages the information about the associated events of the beacons, among other things changes in the distance are detected.
  • TBeaconDevice : This means that a BLE device can be used as a regular beacon. You can configure a TBeaconDevice component in an application that runs on a BLE device so that that device sends proximity data. The values for the approximation data can be specified in the following properties UUID , Major , Minor and TxPower .
So to find external beacons, you use the TBeacon component. With the TBeaconDevice component , on the other hand, a smartphone can be turned into an active beacon.


[/SHOWTOGROUPS]
 

emailx45

Бывалый
Staff member
Moderator
[SHOWTOGROUPS=4,20]
Important: These components are expressly suitable for cross-device programming. They are available for Windows 10 and of course also for the mobile systems iOS and Android. An application to use the beacon functionality therefore only has to be created once and can be started on all relevant systems.

The functionality can be demonstrated in just a few steps. Suitable source code examples can be found on GitHub at https://github.com/Embarcadero/RADStudio10.4Demos . To do this, clone the complete repository on your computer and change to the subdirectory: RADStudio10.4Demos / Object Pascal / Multi-Device Samples / Device Sensors and Services / Bluetooth / Beacons / ExtendedBeaconScanner / . Open the project in RAD Studio. Configuration and procedure during programming can be seen here immediately.

The TBeacon component is configured so that it recognizes all types of beacons (iBeacon, AltBeacon and Eddystone) ( Figure 3 ).



Figure 3: Configuration of the TBecon component.

The scanning process is only called using the StartScan procedure. To do this, examine the source code ( Picture 4 ).



Image 4: The search process for beacons is started using StartScan.

If there are active beacons in the vicinity, they will be displayed on the user interface after starting the program ( Figure 5 ).

Image 5: The beacons determined by TBeacon are displayed.


The data can be evaluated accordingly to implement your own requirement (use case).

Further support of technical requirements by RAD Studio
In addition to the components TBeacon and TBeaconDevice, RAD Studio also offers other tools for the implementation of specific requirements based on beacons. In many scenarios, the spatial conditions can be divided into zones (fences). There is also a graphical editor that can be integrated directly into RAD Studio ( Figure 6 ). With this BeaconFence card editor you can create a project in which you can design, load and edit different cards. For each map, the layout of the physical rooms and the arrangement of the following objects can be defined and changed: beacons, zones and paths (for example, the customer routes).

Figure 6: The beacon fence map editor enables the graphic definition of regions.

In this way, actions can be defined which are triggered when a BLE-capable device enters a zone. This graphic procedure makes the implementation of business cases a lot easier.

Summary
The way beacons work is based on BLE technology and offers the possibility of determining the position of customers, users, visitors or moving objects in a room. There are a variety of applications, including from industry and an improved customer approach. Thanks to the powerful components of RAD Studio ( TBeacon , TBeaconDevice ), the technology can be used very easily in your own application. All important systems, i.e. Windows 10, macOS, iOS and Android are supported. The advantage: As a developer, you can immediately concentrate on the implementation of your customers' specific use cases. Advanced and user-friendly tools like the Beacon Fence Map Editor support you.

Links to continue reading and to get started with Beacons and RAD Studio
Components

http://docwiki.embarcadero.com/Libraries/Rio/en/System.Beacon.Components.TBeacon
http://docwiki.embarcadero.com/Libraries/Rio/en/System.Beacon.Components.TBeaconDevice


Examples
https://github.com/Embarcadero/RADStudio10.4Demos
https://github.com/Embarcadero

BeaconFence
http://docwiki.embarcadero.com/IoT/de/BeaconFence http://docwiki.embarcadero.com/IoT/de/BeaconFence card editor



Scientific article

https://link.springer.com/article/10.1007/s11623-014-0329-9
https://link.springer.com/chapter/10.1007/978-3-662-43782-7_33
https: // ieeexplore.ieee.org/abstract/document/7503001
https://www.pdl.cmu.edu/PDL-FTP/associated/CMU-PDL-16-109.pdf
https://www.academia.edu/25939706/ Beacon_for_Proximity_Target_Marketing

Further texts
https://developers.google.com/beacons/
https://www.indoornavigation.de/

Sources of supply for beacons
https://www.beaconshop24.de/?language=de


[/SHOWTOGROUPS]
 
Top