ernstdevreede / lmic_pi Goto Github PK
View Code? Open in Web Editor NEWRaspberry Pi port LoRaMAC in C / LoRaWAN in C http://www.research.ibm.com/labs/zurich/ics/lrsc/lmic.html
Raspberry Pi port LoRaMAC in C / LoRaWAN in C http://www.research.ibm.com/labs/zurich/ics/lrsc/lmic.html
I`m trying to setup a RaspberryPi Node just to test a gateway setup. But i do not have enough experience to get this project running
I have installed WiringPI
cd /home/beheer/ git clone git://git.drogon.net/wiringPi cd wiringPi ./build
But when i try to setup lmci_pi i get the following output
root@raspberrypi:/home/beheer/lmic_pi-master/lmic# make g++ -c -o radio.o radio.c radio.c:526:19: error: type ‘<lambda>’ with no linkage used to declare function ‘void<lambda>::operator()() const’ with linkage [-fpermissive] radio.c: In lambda function: radio.c:526:21: error: expected ‘{’ before ‘=’ token radio.c: At global scope: radio.c:526:21: warning: lambda expressions only available with -std=c++0x or -std=gnu++0x [enabled by default] radio.c:526:44: error: no match for ‘operator=’ in ‘{(._88)0u} = 192’ radio.c:526:44: note: candidate is: radio.c:526:19: note: <lambda()>&<lambda()>::operator=(const<lambda()>&) radio.c:526:19: note: no known conversion for argument 1 from ‘int’ to ‘const<lambda()>&’ radio.c:527:17: error: type ‘<lambda>’ with no linkage used to declare function ‘void<lambda>::operator()() const’ with linkage [-fpermissive] radio.c: In lambda function: radio.c:527:21: error: expected ‘{’ before ‘=’ token radio.c: At global scope: radio.c:527:21: warning: lambda expressions only available with -std=c++0x or -std=gnu++0x [enabled by default] radio.c:527:23: error: no match for ‘operator=’ in ‘{(._88)1u} = 64’ radio.c:527:23: note: candidate is: radio.c:527:17: note: <lambda()>&<lambda()>::operator=(const<lambda()>&) radio.c:527:17: note: no known conversion for argument 1 from ‘int’ to ‘const<lambda()>&’ radio.c:528:17: error: type ‘<lambda>’ with no linkage used to declare function ‘void<lambda>::operator()() const’ with linkage [-fpermissive] radio.c: In lambda function: radio.c:528:21: error: expected ‘{’ before ‘=’ token radio.c: At global scope: radio.c:528:21: warning: lambda expressions only available with -std=c++0x or -std=gnu++0x [enabled by default] radio.c:528:23: error: no match for ‘operator=’ in ‘{(._88)2u} = 0’ radio.c:528:23: note: candidate is: radio.c:528:17: note: <lambda()>&<lambda()>::operator=(const<lambda()>&) radio.c:528:17: note: no known conversion for argument 1 from ‘int’ to ‘const<lambda()>&’ radio.c:729:9: error: type ‘<lambda>’ with no linkage used to declare function ‘void<lambda>::operator()() const’ with linkage [-fpermissive] radio.c: In lambda function: radio.c:729:12: error: expected ‘{’ before ‘=’ token radio.c: At global scope: radio.c:729:12: warning: lambda expressions only available with -std=c++0x or -std=gnu++0x [enabled by default] radio.c:729:18: error: no match for ‘operator=’ in ‘{(_sf_t)0u} = 0’ radio.c:729:18: note: candidate is: radio.c:729:9: note: <lambda()>&<lambda()>::operator=(const<lambda()>&) radio.c:729:9: note: no known conversion for argument 1 from ‘ostime_t {aka int}’ to ‘const<lambda()>&’ radio.c:730:9: error: type ‘<lambda>’ with no linkage used to declare function ‘void<lambda>::operator()() const’ with linkage [-fpermissive] radio.c: In lambda function: radio.c:730:12: error: expected ‘{’ before ‘=’ token radio.c: At global scope: radio.c:730:12: warning: lambda expressions only available with -std=c++0x or -std=gnu++0x [enabled by default] radio.c:730:18: error: no match for ‘operator=’ in ‘{(_sf_t)1u} = 0’ radio.c:730:18: note: candidate is: radio.c:730:9: note: <lambda()>&<lambda()>::operator=(const<lambda()>&) radio.c:730:9: note: no known conversion for argument 1 from ‘ostime_t {aka int}’ to ‘const<lambda()>&’ radio.c:731:9: error: type ‘<lambda>’ with no linkage used to declare function ‘void<lambda>::operator()() const’ with linkage [-fpermissive] radio.c: In lambda function: radio.c:731:12: error: expected ‘{’ before ‘=’ token radio.c: At global scope: radio.c:731:12: warning: lambda expressions only available with -std=c++0x or -std=gnu++0x [enabled by default] radio.c:731:15: error: no match for ‘operator=’ in ‘{(_sf_t)2u} = 32’ radio.c:731:15: note: candidate is: radio.c:731:9: note: <lambda()>&<lambda()>::operator=(const<lambda()>&) radio.c:731:9: note: no known conversion for argument 1 from ‘ostime_t {aka int}’ to ‘const<lambda()>&’ radio.c:732:9: error: type ‘<lambda>’ with no linkage used to declare function ‘void<lambda>::operator()() const’ with linkage [-fpermissive] radio.c: In lambda function: radio.c:732:12: error: expected ‘{’ before ‘=’ token radio.c: At global scope: radio.c:732:12: warning: lambda expressions only available with -std=c++0x or -std=gnu++0x [enabled by default] radio.c:732:15: error: no match for ‘operator=’ in ‘{(_sf_t)3u} = 65’ radio.c:732:15: note: candidate is: radio.c:732:9: note: <lambda()>&<lambda()>::operator=(const<lambda()>&) radio.c:732:9: note: no known conversion for argument 1 from ‘ostime_t {aka int}’ to ‘const<lambda()>&’ radio.c:733:10: error: type ‘<lambda>’ with no linkage used to declare function ‘void<lambda>::operator()() const’ with linkage [-fpermissive] radio.c: In lambda function: radio.c:733:12: error: expected ‘{’ before ‘=’ token radio.c: At global scope: radio.c:733:12: warning: lambda expressions only available with -std=c++0x or -std=gnu++0x [enabled by default] radio.c:733:15: error: no match for ‘operator=’ in ‘{(_sf_t)4u} = 140’ radio.c:733:15: note: candidate is: radio.c:733:10: note: <lambda()>&<lambda()>::operator=(const<lambda()>&) radio.c:733:10: note: no known conversion for argument 1 from ‘ostime_t {aka int}’ to ‘const<lambda()>&’ radio.c:734:10: error: type ‘<lambda>’ with no linkage used to declare function ‘void<lambda>::operator()() const’ with linkage [-fpermissive] radio.c: In lambda function: radio.c:734:12: error: expected ‘{’ before ‘=’ token radio.c: At global scope: radio.c:734:12: warning: lambda expressions only available with -std=c++0x or -std=gnu++0x [enabled by default] radio.c:734:14: error: no match for ‘operator=’ in ‘{(_sf_t)5u} = 272’ radio.c:734:14: note: candidate is: radio.c:734:10: note: <lambda()>&<lambda()>::operator=(const<lambda()>&) radio.c:734:10: note: no known conversion for argument 1 from ‘ostime_t {aka int}’ to ‘const<lambda()>&’ radio.c:735:10: error: type ‘<lambda>’ with no linkage used to declare function ‘void<lambda>::operator()() const’ with linkage [-fpermissive] radio.c: In lambda function: radio.c:735:12: error: expected ‘{’ before ‘=’ token radio.c: At global scope: radio.c:735:12: warning: lambda expressions only available with -std=c++0x or -std=gnu++0x [enabled by default] radio.c:735:14: error: no match for ‘operator=’ in ‘{(_sf_t)6u} = 623’ radio.c:735:14: note: candidate is: radio.c:735:10: note: <lambda()>&<lambda()>::operator=(const<lambda()>&) radio.c:735:10: note: no known conversion for argument 1 from ‘ostime_t {aka int}’ to ‘const<lambda()>&’ Makefile:7: recipe for target 'radio.o' failed make: *** [radio.o] Error 1 root@raspberrypi:/home/beheer/lmic_pi-master/lmic#
I`m clearly doing something wrong but i cannot figure out what. Could you provide me with a howto ?
hi i use sx1272 in libelium
I saw and plugged in the pin map.
raspberry pi 3 Physical pin 7, 16 == libelium sx1272 pin dio 0, 1
WiringPi 6(Physical pin 22) == nss(sx1272 pin 17)
WiringPi 0(Physical pin 27) == reset(sx1272 pin 5)
WiringPi 12(Physical pin 19) == MOSI(sx1272 pin 11)
WiringPi 13(Physical pin 21) == MISO(sx1272 pin 4)
WiringPi 14(Physical pin 23) == SCK(sx1272 pin 18)
GND == GND
3.3V == +3.3V
However, the message "not sending" is displayed as shown in the figure. What's the problem?
Hey all, I know this is not within the scope or ''support'' for this, but I cannot seem to get this software / library working with the Dragion GPS/Lora HAT for the Raspberry Pi (3). Although there are a variety of tutorials that describe it as working with this software and hardware combination, the issue I run into is that the pin 4 is not found:
Most likely this is due to the newer version of the GPS/Lora board having a different pinout than the previous versions: anyone here that has also run into this issue and knows how to solve it?
hal.c, hal.h and config.h are lacking license headers, and the README.md says nothing about licenses. Which license are those source files under? EPL-1.0?
LMIC is under EPL-1.0 and wiringPi is under LGPL-3.0, so which license is lmic_pi under as a combined work? GPL-3.0+?
Hi,
maybe you had your reasons not to "sleep" in the code or to blocking wait for interrupts on DIO0, DIO1 and DIO2, but the current code puts a very high load on the system, as the main loop runs continously.
Hi, it seems something changed in the WiringPi library that causes the following runtime error:
$ ./thethingsnetwork-send-v1
wiringPiSetup*: You must only call this once per program run. This is a fatal error. Please fix your code.
I fixed it by commenting out
Line 18 in c4a7c20
Additionally, in the example there is another call to wiringPiSetup() which needs to be commented out.
Hi all,
I am using Dragino LG01-P as LoRa Gateway and FiPy as node. On registering the device , I followed the Dragino wiki to properly activate Gateway. But the TTN console doesnot not show it as connected. Can anyway suggest me what I am doing wrong here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.