background image

SensorRF

GEVK

www.onsemi.com

3

SensorRF

GEVK Application Programming Interface

The SensorRF

GEVK Demo application was developed

in C++/C and utilizes the Qt Toolkit along with the QWT
graphical library for the Temperature and Moisture
demonstrations. The application makes use of the Linux
Socket interface to communicate with the Reader and to
communicate with external devices through one of the
remote interfaces available. We have developed our own

API for the AMS Radon Reader, which makes available a set
of commands to perform the operations that demonstrate the
capabilities of battery-free sensors from ON Semiconductor
and more. The API makes use of the commands made
available by the AMS Radon Reader firmware, which we
also modified for the API. Please see Figure 4 below for
a depiction of the APIs available with the SensorRF

GEVK

platform.

Figure 4. SensorRF

GEVK Platform APIs

C++/C

AMS Radon

Reader API

Linux

®

 Socket

Interface

Qt Toolkit

QWT Lib

The Modules of the Demo Application

Now that we have described the Software Architecture of

the Demo application and the APIs it uses, we can move to
describing 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 defined in the 

gui_view

 files and it utilizes the

hermes

chart

chart_thread

 and 

configdialog

 files to carry

out its operations. The 

configdialog

 files in turn utilize the

pages

 files to carry out its operations. The most important

operations these files contain are as follows:

gui_view:

 Defines the resources needed for the GUI,

most importantly the hermes wizard.

hermes:

 Defines the Main, Temperature, and Moisture

windows (or pages) of the GUI, which includes all the
controls and indicators for each window.

chart:

 Defines both the Temperature and the Moisture

charts.

chart_thread:

 Defines the Chart thread that is spawned

to offload the intense process of collecting temperature
and sensor codes for the Temperature and Moisture
charts from the GUI thread.

configdialog:

 Defines the Details, Settings, Calibration

and Help dialogs found in the Temperature and
Moisture Demo windows.

pages:

 Defines the pages of the dialogs mentioned

above, which includes all the controls and indicators for
each dialog.

Figure 5. Demo Application GUI Module

GUI

gui_view .h/.cpp

hermes .h/.cpp

configdialog .h/.cpp

chart .h/.cpp

pages

chart_thread .h/.cpp

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: