Establish Serial Connection

简体中文

The LoRa Node can print debugging information through USB-CDC (USB-Virtual Serial Poart) or UART, but the USB to UART chip is not integrated on the board. If the debugging information is to be output through the UART, an external USB to UART module is required.

Use UART

  • Open the example of we provided.
  • Right-click the project to open Properties.

../../_images/0714.png

  • Add USE_DEBUGGER in macro definitions, compile and download program.

../../_images/0423.png

  • Connect the board and USB-UART module correctly.

Tip

The LoRa Node and USB-UART module are connect as below (if the LoRa Node is powered via USB or battery, the UART module's 3.3 / 5V pin do not need connect, just need TXD, RXD, GND).

../../_images/0146.png

Tip

When using UART, the TX and RX pins used in the program should be corresponding to the TX and RX pins on the board. In the routine we provide, we use TX-PA9 and RX-PA10. Therefore, TX of UART module should be connected to RX(PA10) of board, RX of UART module should be connected to TX(PA9) of board.

../../_images/0615.png

  • Open serial port.

../../_images/0234.png

 

Use virtual serial port

  • Open the example of we provided.
  • Right-click the project to open Properties.

../../_images/0714.png

  • Add USB_VCP and USE_DEBUGGER in macro definitions, compile and download program.

../../_images/0519.png

  • Connect LoRa Node to computer via a Micro USB cable and open serial port.

../../_images/0329.png