Visualizing of 3D modes in BeSpoon location client tool
Introduction
BeSpoon location client (BspLocClient) is conceived as a server frontend for BeSpoon real‑time location system (RTLS), for
example, to visualize the position of a device on a 2D map in real‑time and to record positions. Basic features such as tracking
visualization, record, replay, are available on Windows® and Ubuntu®, with or without a server. Advanced features such as
Viewer 1D, Calibration 2D, Debug 2D, UWB Stats, Server Stats, and LOS indicator are available on Ubuntu® only and require a
server.
If you already use BeSpoon RTLS, BspLocClient is installed on the server PC. If you use B-UWB-MEK1 hardware only,
installation files are included in the SDK, in tools > exe for Windows®, and tools > deb for Ubuntu®. In the application
note, BspLocClient is used without any server connection, in two device-centric tracking modes: 3D Single Self-Positioning or
3D GPS‑like positioning, as illustrated in Figure 1.
This application note complements the information available in the SDK. It is intended for advanced users already familiar with
3D-single self-positioning mode in the quick start guide and 3D GPS‑like positioning mode in the 3D GPSBeSpoon RTLS application note. The procedures are done with Terminal, BspLocClient, BeSpoon MOD1/MEK1 programming
tool, and BeSpoon location server WebUI applications.
The documentation is based on system version 3.x.
‑
like positioning within
Figure 1. Visualization of 3D modes in BspLocClient
AN5623 - Rev 1 - April 2021
For further information contact your local STMicroelectronics sales office.
www.st.com
1General information
B-UWB-MEK1 embeds the B-UWB-MOD1, which features the STM32L476JE 32-bit microcontroller based on the
Arm® 32-bit Cortex®‑M4 processor.
Note:Arm is a registered trademark of Arm Limited (or its subsidiaries) in the US and/or elsewhere.
Definitions
Table 1 presents the definition of acronyms that are relevant for a better understanding of this document.
Table 1. List of acronyms
TermDefinition
3D_SELF3D single self-positioning
BLRBeacon-listening rate
HFHyperframe
PHSProtocol hyperframe size
PSNProtocol slot number
PSSProtocol slot size
RTLSReal‑time locating system
RVRendez-vous (slot and zone)
SFSuperframe
SFISuperframe information
TDMATime-division multiple access
UWBUltra-wideband
AN5623
General information
References
Refer to the following documents for an introduction to the B-UWB-MEK1 and B-UWB-MOD1 products in indoor
location systems:
•Ultra-wideband module for high-precision indoor location (DB4404)
•Evaluation kit for the B-UWB-MOD1 ultra-wideband module (DB4392)
•B-UWB-MEK1 quick start guide (UM2798)
•SDK advanced documentation
Demonstration software
Contact the local STMicroelectronics sales office or distributor (refer to www.st.com) for the latest software and
associated documentation.
AN5623 - Rev 1
page 2/20
2Install BspLocClient
On Windows®, the application can be started directly from the .exe file. In the SDK package, just open tools >
exe and click on bsplocclient_basic_X. XX.X_amd64.exe to start BspLocClient.
On Ubuntu® (not needed if BeSpoon RTLS server is installed on the PC, as the client application is part of the
server package):
Step 1.Search [Terminal] by typing "Terminal" in the Ubuntu® search tool.
The application icons can be dragged and dropped to the left menu bar for quick access.
Figure 2. Dragged and dropped application icons to the left menu bar for quick access
AN5623
Install BspLocClient
AN5623 - Rev 1
Step 2.Open [Terminal].
Step 3.Ensure the computer is connected to the Internet, to ensure the automatic download of the execution
applications Qt packages from the Linux® software repository.
Step 4.Enter the following command (installing Qtx.x.x packages):
◦[Devices info > Anchors] displays the ID of the fixed devices (MEK1 boards or anchors).
◦The [Viewer 2D] tab displays purple anchor icons with the ID of the fixed devices on the
floor plan.
page 8/20
6Start tracking
Step 1.Connect the mobile board to the computer.
Step 2.Open BspLocClient.
Step 3.As described in Section 5 , select [Local File] at the start and confirm that the application is used
without server connection as shown in Figure 7.
AN5623
Start tracking
Figure 8. Request to continue without server connection
AN5623 - Rev 1
page 9/20
AN5623
Start tracking
Step 4.In the [MEK Positioning] tab, select the USB port if several ones are available and click on [Start
MEK positioning].
Figure 9. USB port selection and MEK positioning start
The ID of the mobile device appears in [Devices info > Tags].
Figure 10. Devices info display
AN5623 - Rev 1
page 10/20
Step 5.Switch to [Viewer 2D] for visualization.
Figure 11. Viewer 2D vizualization
AN5623
Start tracking
AN5623 - Rev 1
page 11/20
AN5623
Start tracking
Step 6.Customize the information on the map using [View] in the main menu. The 3D-single self-positioning
mode and the 3D GPS‑like positioning mode are compatible with the options listed below.
–[View Anchors] (Keyboard shortcut: a): Anchor icon and ID of the fixed devices. To activate it,
close and re-open the application.
Figure 12. View Anchors
–[View Label] (Keyboard shortcut: l (lowercase L)): Device ID of the mobile device
Figure 13. View Label
–[Trace] (Keyboard shortcut: t): Trace of the mobile device. Adjustments: dots/line displaying, three
pre-set lengths, and customizable width
Figure 14. Trace
–[View elevation] (Keyboard shortcut: e): Real-time position of the mobile device on the z‑axis
Figure 15. View elevation
–[View coordinates] (Keyboard shortcut: k): Real-time x, y, and z coordinates of the mobile device
AN5623 - Rev 1
[Show grid] Scalable grid
–
Figure 16. View coordinates
page 12/20
Figure 17. Show grid
AN5623
Start tracking
AN5623 - Rev 1
page 13/20
7Record a tracking trace
BspLocClient provides the possibility to record the tracking data transmitted from the mobile device to the
computer via the USB connection (UART link) in a .csv file.
Step 1.Check tracking is running as described in Section 6 .
AN5623
Record a tracking trace
Figure 18. Tracking ready to be recorded
Step 2.In the [MEK Positioning] tab, click on [Browse] to select where the .csv file may be saved.
Step 3.Click on [Start Record].
Step 4.Click on [Stop Record] at the end of the sequence.
A .csv file is created in the directory specified at step 2. It contains timestamps in nanoseconds and x,
y, and z coordinates in meters. An example is given in Figure 19.
Figure 19. Tracking trace in tabular format
AN5623 - Rev 1
page 14/20
8Ask for support
Additional information is available from the documents listed in References. All documents may be updated
without notice to individual users beforehand.
For up-to-date support or information about standardized as well as customized solutions, refer to the UWB and
product pages on www.st.com, or to the nearest STMicroelectronics office.
AN5623
Ask for support
AN5623 - Rev 1
page 15/20
Revision history
AN5623
Table 2. Document revision history
DateRevisionChanges
20-Apr-20211Initial release.
AN5623 - Rev 1
page 16/20
AN5623
Contents
Contents
1General information ...............................................................2
Figure 17. Show grid ......................................................................13
Figure 18. Tracking ready to be recorded ........................................................ 14
Figure 19. Tracking trace in tabular format........................................................ 14
AN5623 - Rev 1
page 19/20
AN5623
IMPORTANT NOTICE – PLEASE READ CAREFULLY
STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, enhancements, modifications, and improvements to ST
products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on ST products before placing orders. ST
products are sold pursuant to ST’s terms and conditions of sale in place at the time of order acknowledgement.
Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or the design of
Purchasers’ products.
No license, express or implied, to any intellectual property right is granted by ST herein.
Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product.
ST and the ST logo are trademarks of ST. For additional information about ST trademarks, please refer to www.st.com/trademarks. All other product or service
names are the property of their respective owners.
Information in this document supersedes and replaces information previously supplied in any prior versions of this document.