No sucess on receiving sent data

Tagged: ,

Viewing 5 reply threads
  • Author
    Posts
    • #21935
      1n5aN1aC
      Participant

        Greetings! Your library seems to be amazing, with the exception of I have been unable to receive any data transmitted by one LoRa module with another one. I have tried both transparent mode as well as directed mode with little success.

        My ultimate goal is to send mostly a single struct over and over as telemetry from a high-powered model rocket my friend is working on, so I have put most of my effort into getting the struct example to work, however it just sends without a peep on the receiver.

        I know it is indeed transmitting though, as I have a sensitive speaker that picks up RF noise often, and I can hear the transmissions using that speaker. 🙂

        Here is a screenshot of the 2 modules running, but with no communication: https://i.postimg.cc/xjPQtCgq/log.png

        I took the (send/receive)FixedTransmissionStruct examples, plugged in my ports & manually controlled M0/M1, (as I have no AUX pin) and changed very little else.
        Send code: https://pastebin.com/kvdVAWw2
        Receive code: https://pastebin.com/JDE8yiCT

        Any clue what I might be missing here?

      • #21936
        1n5aN1aC
        Participant

          Hmmm, I seem to have success switching over to using AUX and using this constructor:

          LoRa_E32 e32ttl(9, 10, 8, 12, 11, UART_BPS_RATE_9600); //9=E32TX, 10=T32RX, 8=aux, 12=M0, 11=M1

          Not completely sure why it works this way but not the other way, but it does appear to work, so I’ll see if I can adapt that into my program.

          Thank you very much for this excellent library!

        • #21937
          1n5aN1aC
          Participant

            OK, I think I’ve figured it out. I can’t get it to work at any other UART speed other than 9600.

            It’s weird because I can program in other UART speeds, it does save the setting, and the library then believes it’s working, but the receiving side doesn’t seem to receive the messages….

          • #22015
            Renzo Mischianti
            Keymaster

              Hi 1n5an1ac,
              Sorry, but I don’t know why but your topic was going on spam.
              But I’m happy that you have found the solution.
              Bye Renzo

            • #22062
              1n5aN1aC
              Participant

                Well, even with a fair bit more work, I still can’t get any UART speed other than 9600 to work.

                It’s very weird, because I can successfully set the module to other baud rates, and the library appears to work at other baud rates, just nothing works correctly…..

                Set BAUD rate of the module: (Confirmed via printing applied settings)
                configuration.SPED.uartBaudRate = UART_BPS_57600;

                Declare module using that Baud rate:
                LoRa_E32 e32ttl100(LORARX, LORATX, LORAUX, LORAM0, LORAM1, UART_BPS_RATE_57600);

                I would be interested in using air rates other than the default, so it would be nice if faster UART rates could be possible.
                If anyone has any idea what could be the problem, I’d love to know, but I think 9600 can work for now….

              • #22063
                Renzo Mischianti
                Keymaster

                  Hi 1n5an1ac,
                  as you can see in the table attached extracted from the datasheet, the limitation of the 9600 baud rate is applied only when you are programming the device.
                  The transfer function works correctly.
                  Bye Renzo

              Viewing 5 reply threads
              • You must be logged in to reply to this topic.
              Exit mobile version