Testing the communication between 2 RFD900X.
Setup:
This diagram is provide by the RF Design. reference manual: https://bzbuas.com/wp-content/uploads/2020/12/rfd900x-manual.pdf
In order to configure the RFD 900x, 2 Steps are needed.
Step 1: connect the FTDI cable to the RFD 900x from Pin 1- 11 [(odd pins only) & black wire correspond to pin 1] and then connect the pin 4 with pin 6.
A pair of RFD 900x needs to plug into the computer in order to configure. The configuration can be done using RFDesign GUI configuration tool or the mission planner.
The RFD900x status light have different meaning.
Green light:
flashing: finding other radio
solid: connected with another radio
Red Light:
Flashing: sending the data
Solid: In firmware update mode
During data transmission:
Step 1: choose a USART port in STM32 Port. Select the mode to be Asychronous. Please make sure that the Buad rate is the same between two devices.
Step 2: connect the Rx pin on RFD 900 to the TX pin configured for the UART communication, and the Tx pin on RFD 900 to the Rx pin configured for the UART communication on STM32.
Step 3: call the standard library function
HAL_UART_Transmit (UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size, uint32_t Timeout)
HAL_UART_Receive (UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size, uint32_t Timeout)
to send data between RFD 900x.
Hal library reference web: https://www.disca.upv.es/aperles/arm_cortex_m3/llibre/st/STM32F439xx_User_Manual/group__uart__exported__functions__group2.html
Add Comment