Git Product home page Git Product logo

Comments (3)

mcoracin avatar mcoracin commented on September 26, 2024

Hello,

I'm not sure I fully get your question.

The message format sent by the gateway are formatted as described in the PROTOCOL.txt file you can found in the lora-net/packet_forwarder root directory.

Typically there are few octets (4 to 12) describing the protocol version, the message type etc...
Then, after those few octets, you have the JSON string which contains the actual packet data.

SO the server has to parse the few bytes as a binary header, and then any JSON parser car handle the JSON string.

Regards

from packet_forwarder.

MKollev avatar MKollev commented on September 26, 2024

Hello,
Thank you for the quick response. This answers my question.

from packet_forwarder.

MKollev avatar MKollev commented on September 26, 2024

Hello,
One more thing. I receive the uplink messages, but it seems I do NOT
receive the PULL DOWN ack message on the server side. When I uncomment the
the line in the source of the beacon "//MSG("WARNING: [down] recv returned
%s\n", strerror(errno)); /* too verbose */" it is
shown continuously although I am sending messages down the UDP to the
Gateway on a 5 sec basis.

When I start the util_sync I see that the packets are received but still
the beacon program is not aware of them.

Any suggestions?

Regards.

On Mon, Apr 25, 2016 at 2:21 PM, Michael Coracin [email protected]
wrote:

Hello,

I'm not sure I fully get your question.

The message format sent by the gateway are formatted as described in the
PROTOCOL.txt file you can found in the lora-net/packet_forwarder root
directory.

Typically there are few octets (4 to 12) describing the protocol version,
the message type etc...
Then, after those few octets, you have the JSON string which contains the
actual packet data.

SO the server has to parse the few bytes as a binary header, and then any
JSON parser car handle the JSON string.

Regards

โ€”
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#7 (comment)

from packet_forwarder.

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.