Git Product home page Git Product logo

Comments (5)

tapparelj avatar tapparelj commented on August 10, 2024

Hello @Johnn13,
Given that the frame passes the CRC check, it seems that you only send 6 bytes. As the radiohead library adds 4 bytes of addressing and flag in the start of a frame, are ou sending only two bytes? If yes, are those bytes supposed to be printable ASCII characters or have any value?
In this view, the received bytes are printed as ASCII characters and some are not printable (i.e. 0x00 to 0x1F and 0x7F).
If you want to recover the bytes values themselves, you have to use one of the output of the CRC verif block.

from gr-lora_sdr.

Johnn13 avatar Johnn13 commented on August 10, 2024

hello, @tapparelj,thank you for your reply.
In my comercial lora node,the contents of the packet I sent are:node1: IOT 20230302 hello word.But it only outputs the first two bytes: no
In fact, I suspect that there is a problem with the calculation of the length of the Payload in the CRC block.However, I didn't find the payload length calculated in which section during the whole project when I used the explicit header module.
at the end,Could you please be specific about the meaning of your last sentence?If you want to recover the bytes values themselves, you have to use one of the output of the CRC verif block.
Looking forward to your reply~~~

from gr-lora_sdr.

tapparelj avatar tapparelj commented on August 10, 2024

Hello,
The payload length is directly read from the explicit header which, in your case, only mention 6 bytes of payload. Since both the header checksum and the CRC are valid, I would check two things:

  • Are the message received in their entirety suing another commercial node as receiver?
  • Can you double check that in the transmitter code, that the buffer containing the bytes to transmit is sufficiently large to contain your entire message, before passing it to the function starting the transmission?

Regarding my comment on the utilization of the outputs:

  • If instead of transmitting a payload containing printable chars ,as you do know given the payload content, you wanted to send a payload containing as an example the bytes 0x01,0x02,0x02,0x01,.. nothing would get printed in the terminal. However, they would still get output through the output message port or output stream where you can use them however you need.

from gr-lora_sdr.

Johnn13 avatar Johnn13 commented on August 10, 2024

hihi~ @tapparelj ,thank you for your patience.
Based on your advises, we found that there might be a problem with our lora node‘s registers that prevented the full packet from being sent.As expected, this issue was solved when we used the new lora node.
By the way, under the implicit header module, can the gr-lora-sdr calculated the payload length? if the answer is yes,in which section during the process?

from gr-lora_sdr.

tapparelj avatar tapparelj commented on August 10, 2024

Hello,
I'm glad to hear you could fix it!
In implicit header mode you have to specify the payload length on the receiver side, similarly to commercial LoRa devices.

from gr-lora_sdr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.