DR-U-USB/DR-E-USB RLMXX0CLASS  GT20171121-1
Functions
"RLMXXX Parameter"

Class members used to GET/SET usual used parameter. More...

Functions

quint8 RLMXXXCRC::GetPower (quint8 &Power)
 Function determinate the current power level of the amplifier. More...
 
quint8 RLMXXXCRC::SetPower (const quint8 Power)
 Function set the power level of the amplifier. More...
 
quint8 RLMXXXCRC::GetFrequency (quint8 &FreMode, quint8 &FreBase, QByteArray &BaseFre, quint8 &ChannNum, quint8 &ChannSpc, quint8 &FreHop)
 Function determinate the current frequency setting of the module. More...
 
quint8 RLMXXXCRC::SetFrequency (const quint8 FreMode, const quint8 FreBase, const QByteArray &BaseFre, const quint8 ChannNum, const quint8 ChannSpc, const quint8 FreHop)
 Function set frequency parameter of the module. More...
 
quint8 RLMXXXCRC::GetCommand (quint8 &Cmd)
 Function determinate the current command processed from the module. More...
 
quint8 RLMXXXCRC::GetStatus (quint8 &Status)
 Function determinate current work status of module. More...
 

Detailed Description

Class members used to GET/SET usual used parameter.

This functions used to determinate: Operation status of the module, Frequency, PA power level, command in process and to manipulate: Frequency and PA power.

Function Documentation

◆ GetCommand()

quint8 RLMXXXCRC::GetCommand ( quint8 &  Cmd)

Function determinate the current command processed from the module.

Its called by application to check program status.

Parameters
[out]CmdCommand identifier returned from the module.
Returns
1 on success, 0 if failed

◆ GetFrequency()

quint8 RLMXXXCRC::GetFrequency ( quint8 &  FreMode,
quint8 &  FreBase,
QByteArray &  BaseFre,
quint8 &  ChannNum,
quint8 &  ChannSpc,
quint8 &  FreHop 
)

Function determinate the current frequency setting of the module.

Its called by application and returns:

Frequency Mode ( 1 byte )
0: Simple mode – register effective: R_FREBASE, R_BF_H, R_BF_L, R_BF_D, R_CN
1: Advanced mode – register effective: R_FREBASE, R_BF_H, R_BF_L, R_BF_D, R_CN, R_SPC, R_FREHOP

Frequency Base ( 1 byte ) 0: 50kHz 1: 125kHz

Base Frequency ( 2 byte ) 860-960

Channel Number ( 1 byte ) 1-255

Channel Space ( 1 byte ) 1-255

Frequency hopping ( 1 byte )
0: random frequency hopping.
1: ascending order of frequency hopping.
2: descending order of frequency hopping.
Other: random frequency hopping.

Parameters
[out]FreMode[0-1]
[out]FreBase[0-1]
[out]BaseFre860~960
[out]ChannNum[1-255]
[out]ChannSpc[1-255]
[out]FreHop[0-2]
Returns
1 on success, 0 if failed

◆ GetPower()

quint8 RLMXXXCRC::GetPower ( quint8 &  Power)

Function determinate the current power level of the amplifier.

Its called by application.

Parameters
[out]Powercurrent amplifier power setting.
Returns
1 on success, 0 if failed

◆ GetStatus()

quint8 RLMXXXCRC::GetStatus ( quint8 &  Status)

Function determinate current work status of module.

Its called by application to check status of a circular command e.g. Inventory.

Parameters
[out]StatusCommand byte returned from the module within the response.
Returns
1 on success, 0 if failed

◆ SetFrequency()

quint8 RLMXXXCRC::SetFrequency ( const quint8  FreMode,
const quint8  FreBase,
const QByteArray &  BaseFre,
const quint8  ChannNum,
const quint8  ChannSpc,
const quint8  FreHop 
)

Function set frequency parameter of the module.

Its called by application.

FreMode ( 1 byte )\n
  • 0: China Standard (920-925MHz)
  • 1: China Standard (840-845MHz)
  • 2: ETSI Standard
  • 3: fixed-frequency mode (915MHz)
  • 4: User-defined
  • Other: Standard (920-925MHz)

FreBase ( 1 byte )

  • 0: 50kHz
  • 1: 125kHz

BaseFre ( 2 byte ) :

  • Bit15 reserved
  • Bit14-Bit5 Frequency[Mhz]
  • Bit4-Bit0 KhzFreBaseFactor

ChannNum ( 1 byte )

  • 1-254

ChannSpc ( 1 byte )

  • 1-254

Frequency hopping ( 1 byte )

  • 0: random frequency hopping
  • 1: ascending order of frequency hopping
  • 2: descending order of frequency hopping Other: random frequency hopping.

Calculate the Base Frequency:
BaseFre = (((Frequency[Mhz] << 5) | KhzFreBaseFactor ) & 0x7fff)
BaseFre = (( 922 << 5 ) | 5 ) & 0x7fff)
FreBase = 1 -> 125Khz
BF = 922Mhz + 5(KhzFreBaseFactor) x 125Khz(FreBase) = 922.625Mhz
ChannelSeparation = ( ChanSpc * FreBase ) - FreBase with ChanSpc = 2, FreBase = 1 -> 125khz ChannelSeparation = (2 * 125Khz) - 125kHz = 125Khz

Parameters
[in]FreMode[0-4]
[in]FreBase[0-1]
[in]BaseFre840~960 encnoded
[in]ChannNum[1-254]
[in]ChannSpc[1-254]
[in]FreHop[0-2]
Returns
1 on success, 0 if failed

Implementation example

◆ SetPower()

quint8 RLMXXXCRC::SetPower ( const quint8  Power)

Function set the power level of the amplifier.

Its called by application to adjust the RFID read/write range.

Parameters
[in]PowerAmplifier power level [10-30]
Returns
1 on success, 0 if failed