Comments (8)
Hello,
It could happen that the PUSH_ACK is getting lost if the latency between the forwarder and the server is too big.
Could you try to enable the following logs in the packet forwarder to see if the ACKs are received but ignored?
in thread_up():
...
MSG("WARNING: [up] ignored invalid non-ACL packet\n");
...
MSG("WARNING: [up] ignored out-of sync ACK packet\n");
Regards
from packet_forwarder.
Hello,
I have enabled the Message logs, but none of them appear. I also tried it with the beacon utility and the same issue is there as well. In the same time i enabled the util_sync and I see that the forwarder receives the 4 bytes i send to it. Its just it does nothing with them.
from packet_forwarder.
Could you describe more precisely your test setup?
I guess you have a server running on the gateway, and the packet forwarder server address is set as 'localhost'?
Have you properly set the up/down ports in the JSON conf file, in line with what your server expect?
I don't understand your remark about util_sink.
Could you try, on your gateway to run both the packet forwarder and the util_ack.
Configure the packet forwarder server to localhost and up/down port to 1680.
Launch the packet forwarder, then run ./util_ack 1680
Do you see PUSH_ACK, PULL_ACK messages on the packet forwarder?
Here is what I see on my side:
--> packet forwarder logs:
JSON up: {"rxpk":[{"tmst":140991580,"chan":6,"rfch":0,"freq":867.700000,"stat":1,"modu":"LORA","datr":"SF12BW125","codr":"4/5","lsnr":10.2,"rssi":-31,"size":29,"data":"gK8BzAAAbwACSkFo27Ww3LgC1N+T5fbmCAV40/o="}]}
INFO: [up] PUSH_ACK received in 30 ms
INFO: [down] PULL_ACK received in 30 ms
--> util_ack logs:
-> pkt in , host 127.0.0.1 (port 44547), 214 bytes, PUSH_DATA from gateway 0xB827EBFFFEA047D0
<- pkt out, PUSH_ACK for host 127.0.0.1 (port 44547), 4 bytes sent
-> pkt in , host 127.0.0.1 (port 44547), 215 bytes, PUSH_DATA from gateway 0xB827EBFFFEA047D0
<- pkt out, PUSH_ACK for host 127.0.0.1 (port 44547), 4 bytes sent
-> pkt in , host 127.0.0.1 (port 40511), 12 bytes, PULL_DATA from gateway 0xB827EBFFFEA047D0
<- pkt out, PULL_ACK for host 127.0.0.1 (port 40511), 4 bytes sent
Is the same working for you?
from packet_forwarder.
Hello,
My test setup is as follows. I have the gateway on the one side and separately I have the server on a remote computer. I am communicating through UDP between them. I get the following log from the beacon packet forwarder:
//### [UPSTREAM] ###
//# RF packets received by concentrator: 0
//# CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
//# RF packets forwarded: 0 (0 bytes)
//# PUSH_DATA datagrams sent: 1 (111 bytes)
//# PUSH_DATA acknowledged: 0.00%
//### [DOWNSTREAM] ###
//# PULL_DATA sent: 0 (0.00% acknowledged)
//# PULL_RESP(onse) datagrams received: 0 (0 bytes)
//# RF packets sent to concentrator: 0 (0 bytes)
//# TX errors: 0
//### [GPS] ###
//# GPS sync is disabled
//##### END #####
As you can see the acknowledge is at 0% even though i am continuously sending the ack packets. And the getaway receives them, but apparently doe not recognizes them as such. And the biggest problem of mine is that the pull data is not recognized as well, which means i cannot send a message to an end device.
from packet_forwarder.
Hello,
Could you reproduce the test I described above, which consists in running both the packet forwarder and the util_ack on the gateway itself?
from packet_forwarder.
Hello @MKillev ,
Did you find the issue?
from packet_forwarder.
Hello,
Yes I did. I was sending the messages from the server to the gateway trough the wrong port. As soon as I figured that and sent it trough the port that the gateway was sending, everything started working!
Thank you for the support!
from packet_forwarder.
ok, glad to read that it works now! :)
from packet_forwarder.
Related Issues (20)
- Don't send gateway status data HOT 2
- Building with exported HAL library HOT 2
- Class A downlinks not being transmitted HOT 1
- Configure Packet Forwarder for LG01-N for Azure IoT Hub HOT 2
- Build Error on Alpine linux: undefined reference to `qsort_r' HOT 2
- GPS read() returned value 0 HOT 2
- For 865MHz, what changes are required in global_conf.json HOT 2
- Whitelist from gateway to repeater HOT 2
- time field empty when no GPS present HOT 2
- does class c supports otaaa HOT 1
- Downlink Packets rejected from gateway due to (jit error=5) HOT 2
- SF falls back to SF12 HOT 2
- Error message !? HOT 2
- Timestamp accuracy HOT 1
- DevAddr for experiments HOT 1
- JIT error = 5, How to resolve it? HOT 4
- Building issue jit_sort_queue HOT 2
- error: too few arguments to function ‘lgw_start’ HOT 1
- LoRaWAN gateway receives data from another gateway HOT 2
- time/tmms discrepancy in rxpk
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packet_forwarder.