SX1302 Using Semtech packet forwarder can not register the gateway

Is it possible to solve this problem simply by changing the variable type of variable temperature in lora_pkt_fwd.

1 Like

@haowong. Changing the SX1302 UDP Packet Forwarder to send an integer rather than a float does solve the problem.

I have just tested and it works on the Meshed server.

You can use your normal global_config.json file with this version of the packet forwarder.

1 Like

I believe that’s the answer to the question. Why are the designers of TTN so careless? If they have read the source code of the package forwarder, they should not have made such a mistake.

Please, please if you are going to create a github repo of a variation of the Semtech packet forwarder, retain Semtech’s commit history (either fork it on github, or pull from Semtech’s repo and push to yours) and then make your change in a commit. This is presumably a change to a single sprintf() line - a proper commit would represent it as such.

That way it remains compatible with any other changes or evolutions that may be needed.

Also posting a binary does little good - presumably it’s for a raspberry pi, but?

To be clear, the format is specified in sx1302_hal/packet_forwarder/PROTOCOL.md at master · Lora-net/sx1302_hal · GitHub which although distributed with the code is really documentation not source code.

The important point being that you’re not supposed to have to read the code of another component in order to correctly interface with it, but only the documentation. And the documentation does say “float”.

1 Like