Skip to content
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

running on raspberry pi #347

Closed
loraraspi91 opened this issue Mar 10, 2020 · 9 comments
Closed

running on raspberry pi #347

loraraspi91 opened this issue Mar 10, 2020 · 9 comments

Comments

@loraraspi91
Copy link

Dear All,

For my personal needs, I port this arduino-Lora library code on raspberry pi, you can find all the code here:

https://github.com/loraraspi91/LoRa4Raspi

I also did the effort to port almost examples to raspberry pi. I kept the same API, so it is very easy to run an actual Arduino-Lora code on raspberry pi.

you are free to merge my port in this library, so this library could also supported by Raspberry pi.

Sorry, if it is not the right place to put this information.

Laurent

@morganrallen
Copy link
Collaborator

Neat! I'll have to dig around and see if I have a LoRa on a module to test this.

@IoTThinks
Copy link
Collaborator

@loraraspi91 Hi, It would be great if you have a basic sample wiring the LoRa sx1278 and a Pi.

Maybe a photo is sufficient.
Thanks for the porting

@loraraspi91
Copy link
Author

loraraspi91 commented Mar 10, 2020 via email

@IoTThinks
Copy link
Collaborator

@loraraspi91 Thanks for the detail.
It is sufficient for me already.

@kizu29038988
Copy link

Thank you so much, could you make an comunication between Pi and Arduino (LORA SX1278, RA02) by TEXT. Thank you.

@loraraspi91
Copy link
Author

loraraspi91 commented Dec 5, 2020 via email

@Mathrim681
Copy link

Mathrim681 commented Nov 7, 2024

If I try to compile the sender example with the comand line

$ g++ -Wall -o LoRaSender LoRaSender.cpp LoRa.cpp Print.cpp WString.cpp itoa.cpp -lwiringPi

I get->
command not found

if I try

g++ -Wall -o LoRaSender LoRaSender.cpp LoRa.cpp Print.cpp WString.cpp itoa.cpp -lwiringPi
I get->
root@Database:/etc/GA_MK23/test/LoRa4Raspi/examples/LoRaSender# g++ -Wall -o LoRaSender LoRaSender.cpp LoRa.cpp Print.cpp WString.cpp itoa.cpp -lwiringPi
cc1plus: fatal error: LoRa.cpp: No such file or directory
compilation terminated.
cc1plus: fatal error: Print.cpp: No such file or directory
compilation terminated.
cc1plus: fatal error: WString.cpp: No such file or directory
compilation terminated.
cc1plus: fatal error: itoa.cpp: No such file or directory
compilation terminated.

if I copy the src files LoRa.cpp Print.cpp WString.cpp itoa.cpp in the folder of the LoRaSender
I get->

root@Database:/etc/GA_MK23/test/LoRa4Raspi/examples/LoRaSender# g++ -Wall -o LoRaSender LoRaSender.cpp LoRa.cpp Print.cpp WString.cpp itoa.cpp -lwiringPi
/tmp/ccX1G32o.s: Assembler messages:
/tmp/ccX1G32o.s:244: Error: unknown or missing system register name at operand 2 -- mrs x0,CPSR' /tmp/ccX1G32o.s:279: Error: unknown mnemonic cpsie' -- cpsie i' /tmp/ccX1G32o.s:312: Error: unknown mnemonic cpsid' -- `cpsid i'
WString.cpp: In member function ‘String& String::operator=(String&&)’:
WString.cpp:175:37: warning: ignoring return value of ‘constexpr typename std::remove_reference<_Tp>::type&& std::move(_Tp&&) [with _Tp = String&; typename remove_reference<_Tp>::type = String]’, declared with attribute ‘nodiscard’ [-Wunused-result]
175 | if (this != &rval) std::move(rval);
| ~~~~~~~~~^~~~~~
In file included from /usr/include/c++/12/bits/exception_ptr.h:43,
from /usr/include/c++/12/exception:168,
from /usr/include/c++/12/ios:39,
from /usr/include/c++/12/ostream:38,
from /usr/include/c++/12/iostream:39,
from /usr/include/WString.h:26,
from WString.cpp:19:
/usr/include/c++/12/bits/move.h:104:5: note: declared here
104 | move(_Tp&& __t) noexcept
| ^~~~
WString.cpp: In member function ‘String& String::operator=(StringSumHelper&&)’:
WString.cpp:181:37: warning: ignoring return value of ‘constexpr typename std::remove_reference<_Tp>::type&& std::move(_Tp&&) [with _Tp = StringSumHelper&; typename remove_reference<_Tp>::type = StringSumHelper]’, declared with attribute ‘nodiscard’ [-Wunused-result]
181 | if (this != &rval) std::move(rval);
| ~~~~~~~~~^~~~~~
/usr/include/c++/12/bits/move.h:104:5: note: declared here
104 | move(_Tp&& __t) noexcept
| ^~~~

@Mathrim681
Copy link

?

@morganrallen
Copy link
Collaborator

This library does not work on Raspberry Pi, or any Linux for that matter. The link provided in the first comment is probably what you want.

Repository owner locked as off-topic and limited conversation to collaborators Nov 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants