// Set the NT module to receive mode
printf(“ %c%c%c%c ”, 0x02, 0x12, 0x00, 0xFF);
// Flush the NT ACK response by waiting for the terminating character
while (getc() != 0xFF);
// Get RSSI for each channel & assign the receiver to the quietest frequency
for (i=0; i<3; i++)
{
// Set the NT module to the next channel in sequence
printf(“ %c%c%c%c ”, 0x02, 0x10, channel[i], 0xFF);
// Flush the NT ACK response by waiting for the terminating character
while (getc() != 0xFF);
// Read RSSI from the NT module
printf(“ %c%c%c%c ”, 0x01, 0x1F, 0x00, 0xFF);
// Get the RSSI value from the NT
nt_rply[0] = getc();
nt_rply[1] = getc();
rssi_val = getc();
nt_rply[3] = getc();
}
// Use the channel with the lowest RSSI value for receive mode
if (rssi_val < prev_rssi)
{
// Assign the quieter channel frequency
rx_ch = channel[i];
// Update the previous RSSI value
prev_rssi = rssi_val;
}
// Set the NT module to the selected channel frequency
printf(“ %c%c%c%c ”, 0x02, 0x10, rx_ch, 0xFF);
// Flush the NT ACK response by waiting for the terminating character
while (getc() != 0xFF);
}
/******************************************************************************/
//******************************************************************************
/*
--------------------------------------------------------------------------------
Overview: This function allows over-the-air (OTA) application data from pin
DATA_IN to be transmitted at each of three channel frequencies.
The receiver will be listening on one of these three channels.
The idea is to send the same message on each frequency so the
receiver has the opportunity to listen on the quietest channel.
The order for serial communication is as follows:
1. Set the NT to software control for channel and RX/TX select.
2. Set the NT to transmit mode.
3. Set the NT to the 1st channel frequency
4. Send the OTA data packet into DATA_IN pin of the NT module.
5. Set the NT to the 2nd channel frequency
6. Send the OTA data packet into DATA_IN pin of the NT module.
7. Set the NT to the 3rd channel frequency
8. Send the OTA data packet into DATA_IN pin of the NT module.
NOTE:
Input:
none
Output: none
--------------------------------------------------------------------------------
*/
//******************************************************************************
– 9 –
NT Series Command Data Interface
Reference Guide RG-00101
相关PDF资料
TRX08GVP2540 TXRX OPT SCFF 8.5GB/S 850NM
TS-320240BRNO TCH PANEL 140X104 RESISTIVE MONO
TS-TFT3.5Z TOUCH PANEL 140X1.4.0 TFT
TS3-75B3 SENSOR THERMAL MOXIE NTC 75C
TSL26711FN IC PROXIMITY DETECTOR 6-DFN
TSOP57238TT1 IC IR RCVR MODULE 38KHZ
TSOP6238TT IR RECEIVER 38KHZ 40M TSOP6238
TSTFT3.5I# TOUCH PANEL 140X1.4.0 TFT
相关代理商/技术参数
TRM-900-TT 制造商:Linx Technologies Inc 功能描述:M2M ACCESSORY
TRM-900-TT-250 制造商:Linx Technologies Inc 功能描述:M2M ACCESSORY
TRM-915-DP1203 功能描述:射频模块 915 MHz Wireless Module DP1203 RoHS:否 制造商:Linx Technologies 产品:Transceiver Modules 频带:902 MHz to 928 MHz 输出功率:- 15.5 dBm to + 12.5 dBm 接口类型:UART 工作电源电压:- 0.3 VDC to + 5.5 VDC 传输供电电流:38.1 mA 接收供电电流:22.7 mA 天线连接器类型:U.FL 最大工作温度:+ 85 C 尺寸:1.15 mm x 0.63 mm x 0.131 mm
TRM-915-DP1205 功能描述:射频模块 915 MHz Wireless Module DP1205 RoHS:否 制造商:Linx Technologies 产品:Transceiver Modules 频带:902 MHz to 928 MHz 输出功率:- 15.5 dBm to + 12.5 dBm 接口类型:UART 工作电源电压:- 0.3 VDC to + 5.5 VDC 传输供电电流:38.1 mA 接收供电电流:22.7 mA 天线连接器类型:U.FL 最大工作温度:+ 85 C 尺寸:1.15 mm x 0.63 mm x 0.131 mm
TRM-915-DTS 功能描述:射频模块 915 MHz Wireless Module DTS North Am RoHS:否 制造商:Linx Technologies 产品:Transceiver Modules 频带:902 MHz to 928 MHz 输出功率:- 15.5 dBm to + 12.5 dBm 接口类型:UART 工作电源电压:- 0.3 VDC to + 5.5 VDC 传输供电电流:38.1 mA 接收供电电流:22.7 mA 天线连接器类型:U.FL 最大工作温度:+ 85 C 尺寸:1.15 mm x 0.63 mm x 0.131 mm
TRM-915-DTS-BRZ 功能描述:射频模块 Module DTS Brazil RoHS:否 制造商:Linx Technologies 产品:Transceiver Modules 频带:902 MHz to 928 MHz 输出功率:- 15.5 dBm to + 12.5 dBm 接口类型:UART 工作电源电压:- 0.3 VDC to + 5.5 VDC 传输供电电流:38.1 mA 接收供电电流:22.7 mA 天线连接器类型:U.FL 最大工作温度:+ 85 C 尺寸:1.15 mm x 0.63 mm x 0.131 mm
TRM-915-DTS-FCC 功能描述:射频模块 915 MHz Wireless Mod DTS FCC ST conn RoHS:否 制造商:Linx Technologies 产品:Transceiver Modules 频带:902 MHz to 928 MHz 输出功率:- 15.5 dBm to + 12.5 dBm 接口类型:UART 工作电源电压:- 0.3 VDC to + 5.5 VDC 传输供电电流:38.1 mA 接收供电电流:22.7 mA 天线连接器类型:U.FL 最大工作温度:+ 85 C 尺寸:1.15 mm x 0.63 mm x 0.131 mm
TRM-915-DTS-FCC-RA 功能描述:射频模块 915 MHz Wireless Mod DTS FCC RA conn RoHS:否 制造商:Linx Technologies 产品:Transceiver Modules 频带:902 MHz to 928 MHz 输出功率:- 15.5 dBm to + 12.5 dBm 接口类型:UART 工作电源电压:- 0.3 VDC to + 5.5 VDC 传输供电电流:38.1 mA 接收供电电流:22.7 mA 天线连接器类型:U.FL 最大工作温度:+ 85 C 尺寸:1.15 mm x 0.63 mm x 0.131 mm