-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uplink channel not found #101
Comments
I have had no luck with OTA either TTN v2 or v3 (AU) or Chirpstack (Home hosted) |
I believe OTAA needs at least two frequencies. ABP should be ok for this single channel gateway. |
I am encountering the exact same problem along with Chirpstack. |
I finally found the solution: The pull request from @tfuk did the trick. https://github.com/things4u/ESP-1ch-Gateway/pull/100/commits |
You are mistaken; there can be no software solution to the actual problem, because the hardware is simply not capable of doing the job of a gateway. LoRaWAN requires that a gateway simultaneously monitor 42 frequency and spreading factor combinations, but this device can only monitor one. When you try to use this, you create a misleading situation where a gateway exists for only one combination, but does not exist for any of the other combinations that a proper LoRaWAN node is not just allowed, but actually required to make use of. This completely screws up the ADR algorithm for settings spreading factor, and the fair channel selection algorithm required not only by the LoRaWAN spec, but actually by law. Worse, when you do this on a public network, your mess things up for other people's nodes, even if you're not noticing the problem on you own nodes that you may have rigged to violate the LoRaWAN spec and radio laws, but only using a single frequency and spreading factor. TTN absolutely prohibits connection of these devices - not because they have software bugs, but because they can never do the job of LoRaWAN gateways. |
@cstratton Please stop copy/pasting that response on every issue. |
@errolt you are demonstrating that you do not understand the technical issue. LoRaWAN uses not only multiple frequencies, but multiple spreading factors on each frequency - eg in the US SF7-10 (4) and in Europe SF7-SF12 (6) What I specifically said was "42 frequency and spreading factor combinations" - eg 4-6 spreading factors on each of 8 frequencies, plus two dedicated channels. Even if you're in a region with only 3 join channels and not 8, you still need to monitor multiple spreading factors on each You'd need something like 12-15 of these boards to properly cover 3 join channels. Accusing TTN of trying to sell hardware is just silly - nobody uses their's, it was just a placeholder. But they are serious about using proper LoRaWAN gateways built around proper multi-channel multi-SF concentrator chips - from any vendor, including DIY. If you're going to use this hack on your own private Chirpstack network, that's partially better, though
|
@cstratton This project can handle ALL the spreading factors, but only on one frequency. ESP-1ch-Gateway/src/configGway.h Line 124 in 3b02352
So, no, you would need 3 boards, not 21-15. Yes, the chip can only decode 1 SF, but the code does tricks to scan all the spreading factors to see if any decode. BTW, I saw the 3 mandatory frequencies in code somewhere, but they match with these, for EU868, and it is the three channels that my node tries to use to join: |
That's simply false. The radio chip itself can only receive one spreading factor at a time - read the data sheet! In contrast, a proper LoRaWAN concentrator chip receives not only 8 frequencies, but at least SF7-SF12 on each frequency. Radios made for end devices (nodes) which this hack software tries to use as a gateway simply can't do that. It's a hardware limitation.
That introduces an overwhelming chance of missing packets - unlike a proper gateway radio, it can only be monitoring one of them at a time. |
I guess I have done more source code reading in the last few days: ESP-1ch-Gateway/src/_stateMachine.ino Line 405 in 3b02352
I have seen a clearer explanation elsewhere: In other words, IN ONE PACKET, it cycles through all the SFs to try and receive the packet. Yes, a proper gateway is better, but this attitude of "No, you need a $100 - $500 gateway to start experimenting with Lora" is going to be the death of the protocol. And locally, only gateways I can find is the Kickstarter TTN gateway($150), which is locked to TTN, and some MOKO gateway($300) with very little info. Everything else, like MicroTek wAP LR8 is out of stock. So, I'm not running a single channel gateway because I LIKE the issues that comes with it, I DON'T HAVE MUCH CHOICE. |
It tries, but that's nowhere near as reliable as the hardware in a proper concentrator chip Seems like your mistake may be in looking at full gateway products, rather than for LoRaWAN concentrator cards you can hang off a pi or more robust embedded system of your choice. Those have typically been fairly available, though yeah, the Helium bros have been snarfing them up at times. If you are going to try this hack for supporting multiple SF's it might be smart to spend a little airtime lengthening the preamble transmitted by the end device. But stepping back, there's a much bigger picture concern. If you're no longer implementing LoRaWAN "by the book" why waste all that airtime on LoRaWAN's global shared network assumptions? It's not just that LoRaWAN assumes any asymetric radio system with a concentrator that can receive on multiple channels and and multiple SF's in a truly parallel manner. LoRaWAN as a protocol is also absurdly heavy with overhead - it's trying to solve a global-scale problem. If you're only doing some little private local experiment why are you wasting such an absurd amount of airtime on unecessary LoRaWAN headers? and pedantic MAC command exchanges There are appropriate ways to use node-type radios for point to point LoRa communication - see the various mesh network schemes, Sidewalk, etc. When you're talking from one node type radio to another, the protocol overhead and mismatched design assumptions of LoRaWAN make a silly choice. LoRa the modulation makes sense for that use case. But LoRaWAN the heavyweight protocol, does not. |
Hi all,
We are trying to use this library for OTAA with TTI (Same settings as TTN) V3 and having trouble understanding why we are getting Uplink channel not found during the join process. We are on the Australian frequencies and using Sub-Band 2 as per the setup in TTI/TTN.
The end nodes work on 8 channel OEM gateways with no issues and no apparent difference other the the frequency being 916799987 instead of 916800000.
This issue appears to be identical to this here:
https://www.thethingsnetwork.org/forum/t/v3-drop-join-request-uplink-channel-not-found/38712/6
Which is also using this library so I'm surprised I don't see this issue raised yet (unless I somehow missed it?).
I have developed the end device so I have complete control and understand the expectations required on the end-node end.
Has anyone experienced this issue before?
Cheers,
Dylan
The text was updated successfully, but these errors were encountered: