9 years, 9 months ago.

viewing messages

I am just getting started learning the SX1276. I have two sets of identical boards, each a frdm-kl25z with a sx1276mb1las shield attached. I have successfully compiled the SX1276pingpong program and have installed the binary on each board. The ping pong program works correctly, which I'm hoping means my hardware if functional. I am now trying to work with the chat_sx127x program. I have compiled the chat code and have installed the same binary on both of my boards. I have started a console on each board. On each console, I enter the command "L" to put the boards in LoRa mode. On one console I enter the command "rx" and on the other console I enter "tx hello". On the rx console, I can see that the HeaderCount and PacketCount have incremented by one. Here is the debug data for the rx console:

SX1276 DIO5:ModeReady DIO4:CadDetected DIO3:CadDone DIO2:FhssChangeChannel DIO1:RxTimeout DIO0:RxDone LoRa CodingRate:4/5 explicit Bw:125KHz sf:7 RxPayloadCrcOn:1 = no Tx CRC ModemStat:0x24 fifoptr=0x00 txbase=0x80 rxbase=0x00 payloadLength=0x01 maxlen=0xff IrqFlags:ValidHeader RxDone SymbTimeout:0x064 PreambleLength:8 rssi:-79dBm TxContinuousMode:0 AgcAutoOn:1 HeaderCount:1 PacketCount:1, Lora detection threshold:0a detect_trig_same_peaks_nb:3 LowDataRateOptimize:0 version:0x12 434.000MHz rx RFO pmax=13.2dBm OutputPower=13.2dBm OcpOn 100mA

My question is, why don't I see the message on the rx console? Other than the commands "L", "rx" and "tx hello", I have not changed any parameters. Is there some parameter I need to change in order for the messages to be output to the rx console?

frank agius

Question relating to:

UART console application for testing SX1272/SX1276

1 Answer

9 years, 9 months ago.

The tx command only takes an optional number argument for packet length. tx sends a test packet with payload of byte value which increments every time this command is used.

If that is received properly on the other side, then you could enter text chat mode using the chat command. When in that mode, all text entered is sent as packet, and any packet received is printed out. Use ctrl-C to exit chat.

If R16 is installed on sx1276mb1las, then you must control IO2 pin by provided an rf_switch callback function to drive that pin.