background image

SensorRF

GEVK

www.onsemi.com

2

SensorRF

GEVK Demo Software Architecture

The SensorRF

GEVK Demo application uses the

Model-View-Controller (MVC) design pattern. There are
two views, the Graphical User Interface (GUI) view and the
Remote User Interface (RUI) view. These two views
translate user requests for setting the AMS Radon Reader
settings and controlling its operations. In response to screen
selections or commands received through one of the remote
interfaces (i.e. UART, TCP, CAN, I

2

C, or SPI), the

Controller carries out those requests by utilizing the
operations available from the Model. The Model in turn
maintains the state of the Reader which is its settings and
results of reads and controls the Reader. The Model makes

use of the Reader API, which makes available a set of
commands to set the Reader’s settings and read tags among
other operations. The Model signals the GUI when the
settings of the Reader have been changed or when there are
results of reads available. The GUI subsequently requests
that data from the Model to display it to the user. The RUI
signals the GUI when it wants to display the commands it has
received through one of the remote interfaces and the
responses it has sent back. The RUI gets commands to search
for tags, measure tags, send back Reader settings, and set
Reader settings. Please see Figure 2 for a depiction of the
modules.

Figure 2. Demo Application Software Architecture

Signal

User Settings/Control

Requests

Controller

Model

AMS Radon

Reader API

RUI

GUI

User Settings/Control

Requests

Operation Requests

Operation Requests

Data Requests

Data Requests

Signals

When the user requests to start the Temperature or

Moisture demonstrations available on the application,
which use the Reader to perform continuous reads and is an
intensive operation, the application spawns a Chart thread to
offload that operation from the GUI thread. This allows the
GUI thread to be available to handle user selections on the
screen so that the screen does not become unresponsive.
When one of the remote interfaces is started on the

application, the interface selected is continuously monitored
for commands and once a command is received, that
command is processed and a response generated and sent
back. This is an intensive operation as well. Therefore, the
application spawns a RUI thread to offload this operation
from the GUI thread to again prevent the screen from
becoming unresponsive. Please see Figure 3 for a depiction
of these threads.

Figure 3. Demo Application Worker Threads

Controller

Model

AMS Radon

Reader API

RUI

GUI

RUI Thread

Chart Thread

Summary of Contents for SensorRF-GEVK

Page 1: ...either a UART TCP CAN I2C or SPI interface Figure 1 Photo of Development Platform The Developer s Tool Everything you need to develop a custom application for SensorRF GEVK is included in the software...

Page 2: ...it has sent back The RUI gets commands to search for tags measure tags send back Reader settings and set Reader settings Please see Figure 2 for a depiction of the modules Figure 2 Demo Application So...

Page 3: ...ing its modules in more detail We will focus on the most important operations performed by those modules Graphical User Interface GUI The GUI module is depicted in the figure below The module is defin...

Page 4: ...Sensor On Chip RSSI and Temp code reads Returns 0 always int setTempAutoPower bool setting Sets Temp Auto Power on or off Returns 0 always int setMoistAutoPower bool setting Sets Moisture Auto Power...

Page 5: ...Module RUI rui_view h cpp rui_thread h cpp interfaces h cpp can h cpp tcp_server h cpp i2c h cpp spi h cpp uart h cpp Model The Model module is depicted in Figure 8 The module is defined in the kit_mo...

Page 6: ...ataHexString Writes data to the bankCode 0 Reserved 1 EPC 2 TID 3 User at the address in Hex the dataHexString for the tag with epc Returns 0 if successful int readTags int numInventories QString meas...

Page 7: ...ned by the Reader firmware It also returns the inventory type that generated the data the inventory results whether the data is valid or not and the number of tags found The return value of the functi...

Page 8: ...ems or any FDA Class 3 medical devices or medical devices with a similar or equivalent classification in a foreign jurisdiction or any devices intended for implantation in the human body Should you pu...

Reviews: