Read radio state, Write radio state – Linx Technologies HUM-xxx-DT User Manual

Page 21

Advertising
background image

– –

– –

36

37

Read Radio State - Command Code = 2D
This command reads the current radio state.

The response returns the Radio State Code for the radio’s current working
state. The module can be in one of the five states shown in Figure 36.

The Unknown state indicates an error has happened.

The Sleep state is a low-power state where the radio is powered off, but
some microcontroller blocks are running.

The Idle state is a state where the RX section of the radio is turned off.
However, the module can still switch to the TX On state when it has
something to send. The microcontroller is running.

The RX On mode is where the radio is in receive mode and the
microcontroller is running.

The TX On state is where the radio is in transmit mode and the
microcontroller is running.

Read Radio State Command and Response

Command

Start

Command

End

3C

2D

3E

Response

Start

Response

Param 1

End

3C

2D

RState

3E

Radio State Codes

RState Code

Radio State

Description

0x00

Unknown

An error has happened

0x01

Sleep

The radio is in sleep mode (turned off).

0x02

Idle

The radio is turned on in an idle mode (neither TX nor RX)

0x03

RX On

The radio is in RX mode.

0x04

TX On

TX state is automatically entered when data is input to

the module.

Figure 35: Read Radio State Command and Response

Figure 36: Radio State Codes

Write Radio State - Command Code = 2E
This command sets the current Radio State.

This command places the module into one of the RState codes shown in
Figure 38.

The module automatically enters the TX state when there is data to be
transmitted by the radio. It cannot be manually controlled by issuing a serial
command.

Only EDs can go into Sleep, power down and Idle. APs and REs must stay
awake.

The response parameter indicates if the command was successful (00) or if
there was an error (01).

Write Radio State Command and Response

Command

Start

Command

Param 1

End

3C

2E

RState

3E

Response

Start

Response

Param 1

End

3C

2E

Status

3E

Figure 37: Write Radio State Command and Response

Radio State Codes

RState Code

Radio State

Description

0x00

Awake

Wakes up the module from Sleep or Power Down and

brings it to RX On

0x01

Sleep

Puts the radio into sleep state (turned off)

0x02

Idle

Sets the radio to idle state (neither TX nor RX)

0x03

RX On

Turns on the receiver, also wakes from Sleep

0x04

PDN

Puts the module into Power Down state

Figure 38: Radio State Codes

Advertising