PreviousNext
Read
Help > Peripherals > OS > Read

Returns some useful system information about the device.

 

Request

 

NADR

PNUM

PCMD

HWPID

NADR

0x02

0x00

?

 

Response

 

NADR

PNUM

PCMD

HWPID

ErrN

DpaValue

0 … 3

4

5

6 … 7

NADR

0x02

0x80

?

0

?

MID

OsVersion

TrType

OsBuild

 

8

9

10

11

12 … 27

28 … (40…51)

Rssi

SupplyVoltage

Flags

SlotLimits

IBK

PerEnum

 

MID,
OsVersion,
TrType,
OsBuild                          See
moduleInfo at IQRF OS Reference Guide.

Rssi                               See lastRSSI at IQRF OS Reference Guide. In the case of the [C] device, the value is 0 until some RF packet is received.

SupplyVoltage                See getSupplyVoltage at IQRF OS Reference Guide.

Flags                              bit.0 is 1 if there is an insufficient OsVersion for the used DPA version.

                                      bit.1 is 0 if the SPI interface is supported (*); 1 if the UART interface is supported (*). This bit is valid only if bit.4 is 0.

                                      bit.2 is 1 if Custom DPA Handler was detected.

                                      bit.3 is 1 if Custom DPA Handler is not detected but enabled at TR Configuration. See details of the handling of this erroneous state.

                                      bit.4 is 1 if no interface is supported (*).

                                      bit.5 is 1 if IQRF OS is changed from the originally manufactured version.

                                      bit.6 is 1 if the FRC Aggregation feature is enabled by the TR manufacturer.

                                      bit.7 is reserved.

SlotLimits                       Lower nibble stores the shortest timeslot length in 10 ms units, upper nibble stores the longest timeslot respectively. The stored length value is lowered by 3. So a value 0x31 specifies the shortest timeslot of 40 ms and the longest of 60 ms. The value is undefined in the case of unbonded [N].

IBK                                 Individual Bonding Key.

PerEnum                        See the response of Peripheral enumeration.

 

(*) “Supported” means the interface is supported by the uploaded DPA plug-in.