beautypg.com

Write digital output value, Read channel number, Read tx power level – Linx Technologies HUM-xxx-DT User Manual

Page 20: Write tx power level

background image

– –

– –

34

35

Write Digital Output Value - Command Code = 28
This command sets the digital output value on a specific GPIO line.

Parameter 1 is set to 0x00 and Parameter 2 is the GPIO number that is
being written. Parameter 3 sets the output state (High = 01; Low = 00). The
configuration made in volatile memory overwrites the configuration read
from the non-volatile memory until a power reset.

The GPIO to be written must be configured as a digital output before the
value can be written.

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

Read Channel Number - Command Code = 29
This command reads the module’s current channel number.

The channel number in the response ranges from 00 to 03. This value is
stored in non-volatile memory.

Write Digital Outputs Command and Response

Command

Start

Command

Param 1

Param 2

Param 3

End

3C

28

00

GPIO

DOVal

3E

Response

Start

Response

Param 1

End

3C

28

Status

3E

Figure 31: Write Digital Outputs Value Command and Response

Read TX Power Level - Command Code = 2B
This command reads the current TX output power level from RAM.

The TX output power levels are shown in Figure 26. This command reads
the TX output power level setting stored in volatile memory, which may be
different from that stored in non-volatile memory.

Write TX Power Level - Command Code = 2C
This command sets the TX output power level in volatile memory.

The TX output power levels are shown in Figure 26. This command writes
the TX output power level stored in volatile memory, which may be different
from what is in non-volatile memory. This change is lost on a power cycle.

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

Figure 32: Read Channel Number Command and Response

Read Channel Number Command and Response

Command

Start

Command

End

3C

29

3E

Response

Start

Response

Param 1

End

3C

29

Chan

3E

Read TX Power Level Command and Response

Command

Start

Command

End

3C

2B

3E

Response

Start

Response

Param 1

End

3C

2B

TXPower

3E

Figure 33: Read TX Power Level Command and Response

Write TX Power Level Command and Response

Command

Start

Command

Param 1

End

3C

2C

TXPower

3E

Response

Start

Response

Param 1

End

3C

2C

Status

3E

Figure 34: Write TX Power Level Command and Response