-
Notifications
You must be signed in to change notification settings - Fork 56
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
Support SX1302/SX1303 Concentrators #23
Comments
I have made some progress and basicstation seems to be to the way to go but I'm really struggling with patching qsort
I have the following patch which will fix it, but I'm going around circles on how to implement it.
Any help would be greatly appreciated. |
Hello Chris, I will check this problem in these days. |
Hello Chris, After a quick check, I found that now it is not necessary to update sx1302 to the latest version because the basicstation did not update jet. It still use the v1.0.5 and the patch https://github.com/xueliu/basicstation/blob/feature/add-cmake/deps/lgw1302/V1.0.5-corecell.patch can not apply to the latest sx1302 repo. I would like to know which hardware platform do you use and how to get a chep sx1302/sx1303 concentrator. Regards, Xue Liu |
Hi Xue, Thanks for looking into it, all help is appreciated! I'm trying to get it working with an Onion Omega 2+ dev board, I'm not aware of a cheap source of them yet though, I had to buy the card from Digikey, I think a Picocell might be sensible money though. I also tried cross compiling basicstation directly from Semtech, which compiles but after 1 line of console output it crashes, without a kernel panic or anything and needs a physical reset, the serial console goes dead. If you can figure out how to get it to build I will gladly test it. I'm new to building OpenWrt and struggling with the build tools a bit, especially with how the repos seem to checkout repos and then switch to branches. |
Hello Chris, I think the latest commit can solve the problem. Please let know if it is working. I have reproduced the same problem with the platform setting corecell. The reason is that the 'qsort_r' is not support in the musl library. It is already fixed in the program packet_forwarder https://github.com/xueliu/lora-feed/blob/master/lora-packet-forwarder/patches/002-using_qsort.patch. I fix the same problem for basicstation by adding a new branch 'openwrt' in my sx1302-hal fork xueliu/sx1302_hal@1717322 The "repos checkout repos" has nothing to do with OpenWRT. The CMake did it actually. |
I have been able to build and tried to test it, but it's not that simple it seems :-( The version of libloragw that basicstation supports is too old for the USB version. I will need to try and build this again it seems. What's the best way to add this to the OpenWrt build system? This is how I am building it at the moment.
|
Hi, It is out of the scope of feed-lora. If you really want to build basicstaiton out of the OpenWRT tree with the original makefile. I can share my experience two years ago, which may not apply 2.0.5. https://clockworkbird9.wordpress.com/2019/03/12/a-simple-test-of-the-brand-new-lora-packet-forwarder-basicstation-in-openwrt/ |
A bit of an update, cross compiling with my above commands does work, and results in a working gateway. I meant how to add sx1302_hal to lora-feed rather than compile basicstation out of tree. |
I will add it later. |
This PR add support for Wifx L1 hardware ## basic station Add configurations files for L1. Separate the configuration files according to the hardware used Add patch to use specific driver for new chip sx1302 used by L1 (for the reason, see xueliu/lora-feed#23) ## luci app basic station Separate files according to the hardware used ## sx1302_hal library to build a gateway based on a Semtech LoRa SX1302 concentrator chip. This library include packet_forwarder but the version is a bit different from the one for lorixOne to be compatible with sx1302 and to support new parameter in configuration file like pwr_idx (mandatory to use L1 configuration files) Init scripts are based on the packet forwarder used for lorixOne Patches 000, 001 and 002 comes from https://github.com/Lora-net/sx1302_hal/pulls. Others patches are manually done to be compatible with our environment. The patches from wifx have not been reported because they only concern the tests Wifx no longer uses packet-forwarder. The configuration files have been adapted from those of basic station. ## luci app pkg forwarder Separate files according to the hardware used
Is it possible to support the newer concentrator cards?
Semtech seem to have a different repo for everything.
https://github.com/Lora-net/sx1302_hal
The text was updated successfully, but these errors were encountered: