background image

SensorRF

GEVK

www.onsemi.com

5

Remote User Interface (RUI)

The RUI module is depicted in Figure 7. The module is

defined in the 

rui_view

 files and it utilizes the 

rui_thread

 and

interfaces

 files to carry out its operations. The 

interfaces

files in turn utilize the 

can

i2c

spi

tcp_server

, and 

uart

 files.

The most important operations contained in these files are as
follows:

rui_view:

 Defines the resources needed for the RUI,

most importantly the interfaces object.

rui_thread:

 Defines the RUI thread that is spawned to

offload the intense process of listening for commands,
processing them, and sending back responses from the
GUI thread.

interfaces:

 Defines the generic interface that is used to

connect SensorRF

GEVK to an external device either

through the UART, TCP, CAN, SPI or I

2

C interfaces.

can:

 Defines the CAN Linux socket.

i2c:

 Defines the I

2

C Linux socket.

spi:

 Defines the SPI Linux socket.

tcp_server:

 Defines the TCP Server Linux socket.

uart:

 Defines the UART Linux socket.

Figure 7. Demo Application RUI 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_model

 files and it utilizes the 

sensorTag

,

GPIO

util

, and 

utility 

files to carry out its operations. Some

of the most important system operations are contained in
these files and are as follows:

kit_model:

 Defines the resources needed for the

Model, most importantly the reader object, the
sensorTag lists, and the functions available to set the
Reader settings and perform reads. The most important
operations

 

available in the Model will be described

below.

sensorTag:

 Defines the data structures used to store

sensor reads, sensor measurements, and sensor data.

GPIO:

 Defines the object through which the

BeagleBone’s GPIOs can be accessed, which is used to
turn the Reader on/off and to connect the UART, I

2

C or

SPI ports on the board to the BeagleBone when one of
those interfaces is selected.

util:

 Defines helper functions for GPIO.

utility:

 Defines helper functions for performing data

conversions.

Figure 8. Demo Application Model Module

Model

kit_model .h/.cpp

utility .h/.cpp

sensorTag .h/.cpp

util .h/.cpp

GPIO .h/.cpp

Содержание SensorRF-GEVK

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Отзывы: