MAPS interface: Difference between revisions

From Anemos wiki
(Adding Software trigger mode)
(→‎Control modes: shortening Control modes, after migrating majority of description to other page.)
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
The Anemos MAPS position sesnsor device is equipped with multiple controll modes and output interfaces.
The [[Anemos MAPS]] position sensor device is equipped with multiple control modes and output interfaces.


=== Interfaces ===
=== Interfaces ===
There are multiple interfaces. Some for convenience functionality and some for production usage.
There are multiple interfaces, some for convenience functionality and some for production usage.
 
Currently all the interfaces include connecting to the device over LAN using one of two standard ways.
 
==== Reaching the device over ethernet connection ====
Each MAPS device is supplied with an ethernet connector. If you connect your device to your local subnet, it will attempt to obtain an IPv4 address as a DHCP client. After a successfull connection and setup you can reach the device using it's ip address via it's [[MAPS interface#Graphical interface|MAPS interface:Graphical Interface|Graphical Interface]] or [[MAPS interface#Websocket interface|Websocket interface]]. Please consult your local system administrator for obtaining the IP address of the device.
 
==== Reaching the device over Wi-Fi ====
MAPS divices - on request of customer - can be accessed via Wi-Fi. In this case, the device works as a wireless access point, that you can connect to using your computer or mobile device. After connection the device has a fixed IPv4 address that you can use for connection. For details on authentication and the IP address of the device consult the product information material supplied with your device.
 
As open Wireless connections are not desirable in some environments, the one can request a device without Wi-Fi access.


==== Graphical interface ====
==== Graphical interface ====
All the MAPS devices are equipped by a web-based interface. The interface can be reached by typing the ip address of the device into a browser, and opening the controll webpage. Depending on custommer requests and the version of the MAPS device, the dive might require login information that is supplied with the device.
All the MAPS devices are equipped by a web-based interface. The interface can be reached by typing the ip address of the device into a browser, and opening the control webpage. Depending on customer requests and the version of the MAPS device, the dive might require login information that is supplied with the device.


The main purpose of the web-based interface is setting up the device and tracking it's status.
The main purpose of the web-based interface is setting up the device and tracking it's status.


On activation, the interface shows multiple informations about the sensor including:
On activation, the interface shows information about the sensor including:


* Position output,
* Position output,
* A surface for browsing previous ouptut logs of the device,
* A surface for browsing previous output logs of the device,
* Configuration parameters of the device,
* Configuration parameters of the device,
* Tools for fine-tuning the mechanical setup of the device,
* Tools for fine-tuning the mechanical setup of the device,
Line 18: Line 28:


In a typical use case, the graphical interface is used in short periods of time, setting up, and checking the device.
In a typical use case, the graphical interface is used in short periods of time, setting up, and checking the device.
A detailed description of the [[MAPS web interface|Graphical Web-interface]] can be found in [[MAPS web interface|this dedicated document]].


==== Websocket interface ====
==== Websocket interface ====
For long term usage and integration with the system of the customer, one can use the network interface.
For long term usage and integration with the system of the customer, one can use the network interface.


The network interface is using the websocket protocoll for communication. Depending on the control mode, each device opens listens websocket connection open on one or more ports set in the settings of the file.
The network interface is using the websocket protocol for communication. Depending on the control mode, each device opens listens websocket connection open on one or more ports set in the settings of the file.


=== Control modes ===
=== Control modes ===
The MAPS device is eqquipped with multiple controll application and sensor controll modes. Controll modes effect the way the device communicates with connected infrastructer and the way the sensor is triggered.
Depending on the use-case the MAPS devices can operate in various different modes. Among others, the device can be set up the following modes:
 
A brief summary of currently awailable controll modes is available below. For further details of the controll modes, please refer to the product manual supplied with the product.
 
The details of the controll mode is set by the internal configuration fin the device, that is supplied by Anemos.
 
Custom controll modes can be implemented on custommer request for additional fees. Our support and sales temas can help with the details.
 
==== Connection modes ====
The conection modes determine the communication with the device while it is active and running. The device has two basic communication modes: standalone, and websocket. Note, that the web-based graphival interface is still active in both modes enabling the user to monitor the device.
 
===== Standalone mode =====
In standalone mode the device is starting to gather data on stratup, and continues producing position data until power off. In this controll mode the output of the device is an internal or external storage (e.g.: usb drive), that can store data for later use.
 
Standalone mode is suitable for off site, offline dta gathering, where the data is produced without management, and evaluated later.
 
Note, that this controll mode can only be used with a limited types of sensor controlls as some of the sensorm modes require active management of the device.
 
===== Websocket mode =====
In websocket mode, the device opens one or more [[wikipedia:WebSocket|websocket]] ports that enables connections from the natwork. The websocket communication then can be used for two purposes. Sending controll commands to the device, and receiving position data from the device.
 
The standard format of communication is sending and receiving string embeding Json messages. This way, the communication is structured, and versatile.
 
==== Sensor trigger modes ====
Sensor trigger modes determine how producing a position data is triggered in the device.
 
When triggered, the device has to perform two taks before it can produce output.
 
# Capture phase: The position determination is based on processing the image of a camera sensor looking at a grid pattern .Therefore, the device first has to capture an image frame.
# Data processing phase: After the image is captured, the device processes the dta using our Paternted algorithms to produce the projection data.
The capturing phase usually takes between 33 miliseconds and 10 seconds to complete, based on the device settings. Higher accuracy usually needs a longer capture phase (for details on accuracy and performance see [[MAPS performance]]). After capture, the frames arrive into a buffer where they are stored until they are processed.
 
Data processing takes place in our MAPS compute device, and takes between 0.1 to 1 second to compute. The speed of porcessing strongrly relies on the captured data, therefore there is again a tradeoff between speed and accuracy (for more details see, again, [[MAPS performance]]).
 
Based on the definition above, the sensor trigger modes are as follows.
 
===== Freerun mode =====
In "freerun mode" the capture phase of the device is in a infinate loop endlessly producing new data filling the buffers. Furthermore, the data processing phase is also in a loop processing a frame and taking the next one whenever it's ready. The data processing is always using the latest complete frame in the captures output queue, therefore the latency is always less then the time of capturing one frame. In this mode, the overall famerate of tr system is equals to the slower one of the capture and data processing phases. As usually the data proseccing phase has a lower rate than the capturing therefore, the finall frameta is usually corresponds to the time of processing one frame, but timing consideratins can be included by configuring the device.
 
In this mode accurate timing of ftames is not possible, as we do not have controll over the device during run-time.
 
Freerun is the only mode of the MAPS sensor in Standalone mode, since this mode does not need any outside controll.


===== Software trigger mode =====
* Standalone mode, where it is gathering position information without external intervention. In this case collected data can be gathered later.
Software trigger mode corresponds to the mode of the device, when triggering a measurement is done on the websocket connection. In ths mode, the frame capture is initiated by a controll command on the open connection. The controll command is a JSON string of the form:<syntaxhighlight lang="javascript">
* Network stream mode, where the device is continuously streaming position data to over a network connection.
{command: "trigger"}
* Software trigger mode, when the user can connect to the device over the network and it encodes a position data on request.
</syntaxhighlight>The result is usually a set of position data also in JSON format like:<syntaxhighlight lang="javascript">
* Hardware trigger mode, when triggering can be done by sending a hardware signal that can by used for synchronizing the device to an external source with a sub-millisecond accuracy.
{
    pre: "trigger",
    msg: "ack",
    type: "data",
    data: "[00001234], 0.01880000721, 0.064851435995, 0.002141690211, -0.000887731, 0.000075537, -0.000707648, 0, 0, 0, 0, 0, Output Good"
    time: "2022-11-25 16:30:14.056392"
}
</syntaxhighlight>Where:


* pre: is the command the respond corresponds to
For a detailed description on [[MAPS control modes|Control modes]] please refer to the [[MAPS control modes|related document]].
* msg: is an overall message informing about the result (can be general information or error message)
* type: is the type of the payload
* data: is the "payload", i.e., position data.
* time: is the typmestamp the message was generated to the microsecond.

Latest revision as of 13:08, 6 December 2023

The Anemos MAPS position sensor device is equipped with multiple control modes and output interfaces.

Interfaces

There are multiple interfaces, some for convenience functionality and some for production usage.

Currently all the interfaces include connecting to the device over LAN using one of two standard ways.

Reaching the device over ethernet connection

Each MAPS device is supplied with an ethernet connector. If you connect your device to your local subnet, it will attempt to obtain an IPv4 address as a DHCP client. After a successfull connection and setup you can reach the device using it's ip address via it's MAPS interface:Graphical Interface|Graphical Interface or Websocket interface. Please consult your local system administrator for obtaining the IP address of the device.

Reaching the device over Wi-Fi

MAPS divices - on request of customer - can be accessed via Wi-Fi. In this case, the device works as a wireless access point, that you can connect to using your computer or mobile device. After connection the device has a fixed IPv4 address that you can use for connection. For details on authentication and the IP address of the device consult the product information material supplied with your device.

As open Wireless connections are not desirable in some environments, the one can request a device without Wi-Fi access.

Graphical interface

All the MAPS devices are equipped by a web-based interface. The interface can be reached by typing the ip address of the device into a browser, and opening the control webpage. Depending on customer requests and the version of the MAPS device, the dive might require login information that is supplied with the device.

The main purpose of the web-based interface is setting up the device and tracking it's status.

On activation, the interface shows information about the sensor including:

  • Position output,
  • A surface for browsing previous output logs of the device,
  • Configuration parameters of the device,
  • Tools for fine-tuning the mechanical setup of the device,
  • Debug information.

In a typical use case, the graphical interface is used in short periods of time, setting up, and checking the device.

A detailed description of the Graphical Web-interface can be found in this dedicated document.

Websocket interface

For long term usage and integration with the system of the customer, one can use the network interface.

The network interface is using the websocket protocol for communication. Depending on the control mode, each device opens listens websocket connection open on one or more ports set in the settings of the file.

Control modes

Depending on the use-case the MAPS devices can operate in various different modes. Among others, the device can be set up the following modes:

  • Standalone mode, where it is gathering position information without external intervention. In this case collected data can be gathered later.
  • Network stream mode, where the device is continuously streaming position data to over a network connection.
  • Software trigger mode, when the user can connect to the device over the network and it encodes a position data on request.
  • Hardware trigger mode, when triggering can be done by sending a hardware signal that can by used for synchronizing the device to an external source with a sub-millisecond accuracy.

For a detailed description on Control modes please refer to the related document.