catid / loraftp Goto Github PK
View Code? Open in Web Editor NEWFile transfer between two Raspberry Pis using the LoRa Pi HAT from Waveshare
License: BSD 3-Clause "New" or "Revised" License
File transfer between two Raspberry Pis using the LoRa Pi HAT from Waveshare
License: BSD 3-Clause "New" or "Revised" License
Heya.
Tried to compile the excellent project and after a very long pause at the 84% mark I get the following failure. Any suggestions?
loraftp/build $ make -j Scanning dependencies of target wirehair
Scanning dependencies of target zstd
[ 2%] Building CXX object wirehair/CMakeFiles/wirehair.dir/gf256.cpp.o
[ 4%] Building CXX object wirehair/CMakeFiles/wirehair.dir/WirehairTools.cpp.o
[ 6%] Building CXX object wirehair/CMakeFiles/wirehair.dir/wirehair.cpp.o
[ 8%] Building CXX object wirehair/CMakeFiles/wirehair.dir/WirehairCodec.cpp.o
[ 10%] Building C object CMakeFiles/zstd.dir/zstd_lib/common/debug.c.o
[ 13%] Building C object CMakeFiles/zstd.dir/zstd_lib/common/error_private.c.o
[ 15%] Building C object CMakeFiles/zstd.dir/zstd_lib/common/entropy_common.c.o
[ 17%] Building C object CMakeFiles/zstd.dir/zstd_lib/compress/fse_compress.c.o
[ 19%] Building C object CMakeFiles/zstd.dir/zstd_lib/common/xxhash.c.o
[ 21%] Building C object CMakeFiles/zstd.dir/zstd_lib/common/threading.c.o
[ 23%] Building C object CMakeFiles/zstd.dir/zstd_lib/common/fse_decompress.c.o
[ 26%] Building C object CMakeFiles/zstd.dir/zstd_lib/common/zstd_common.c.o
[ 28%] Building C object CMakeFiles/zstd.dir/zstd_lib/common/pool.c.o
[ 30%] Building C object CMakeFiles/zstd.dir/zstd_lib/compress/zstd_compress_literals.c.o
[ 32%] Building C object CMakeFiles/zstd.dir/zstd_lib/compress/hist.c.o
[ 34%] Building C object CMakeFiles/zstd.dir/zstd_lib/compress/huf_compress.c.o
[ 36%] Building C object CMakeFiles/zstd.dir/zstd_lib/compress/zstd_compress_superblock.c.o
[ 39%] Building C object CMakeFiles/zstd.dir/zstd_lib/compress/zstd_compress_sequences.c.o
[ 43%] Building C object CMakeFiles/zstd.dir/zstd_lib/compress/zstd_double_fast.c.o
[ 45%] Building C object CMakeFiles/zstd.dir/zstd_lib/compress/zstd_fast.c.o
[ 45%] Building C object CMakeFiles/zstd.dir/zstd_lib/compress/zstd_compress.c.o[ 47%] Building C object CMakeFiles/zstd.dir/zstd_lib/compress/zstd_ldm.c.o
[ 50%] Building C object CMakeFiles/zstd.dir/zstd_lib/compress/zstd_lazy.c.o
[ 52%] Building C object CMakeFiles/zstd.dir/zstd_lib/dictBuilder/divsufsort.c.o[ 54%] Building C object CMakeFiles/zstd.dir/zstd_lib/compress/zstdmt_compress.c.o
[ 56%] Building C object CMakeFiles/zstd.dir/zstd_lib/compress/zstd_opt.c.o
[ 58%] Building C object CMakeFiles/zstd.dir/zstd_lib/decompress/huf_decompress.c.o
[ 63%] Building C object CMakeFiles/zstd.dir/zstd_lib/decompress/zstd_decompress_block.c.o
[ 65%] Building C object CMakeFiles/zstd.dir/zstd_lib/dictBuilder/fastcover.c.o
[ 67%] Building C object CMakeFiles/zstd.dir/zstd_lib/decompress/zstd_ddict.c.o
[ 60%] Building C object CMakeFiles/zstd.dir/zstd_lib/dictBuilder/cover.c.o
[ 69%] Building C object CMakeFiles/zstd.dir/zstd_lib/decompress/zstd_decompress.c.o
[ 71%] Building C object CMakeFiles/zstd.dir/zstd_lib/dictBuilder/zdict.c.o
/home/pi/LoRaFTP/loraftp/wirehair/WirehairCodec.cpp: In member function ‘void wirehair::Codec::BackSubstituteAboveDiagonal()’: /home/pi/LoRaFTP/loraftp/wirehair/WirehairCodec.cpp:2303:39: warning: passing argument 1 to restrict-qualified parameter aliases with argument 2 [-Wrestrict] gf256_div_mem(src, src, code_value, _block_bytes); ^~~ ~~~ /home/pi/LoRaFTP/loraftp/wirehair/WirehairCodec.cpp:2387:35: warning: passing argument 1 to restrict-qualified parameter aliases with argument 2 [-Wrestrict] gf256_div_mem(src, src, code_value, _block_bytes); ^~~ ~~~ /home/pi/LoRaFTP/loraftp/wirehair/WirehairCodec.cpp:2652:31: warning: passing argument 1 to restrict-qualified parameter aliases with argument 2 [-Wrestrict] gf256_div_mem(src, src, code_value, _block_bytes); ^~~ ~~~ [ 73%] Linking CXX static library libwirehair.a
[ 73%] Built target wirehair
[ 76%] Linking C static library libzstd.a
[ 76%] Built target zstd
Scanning dependencies of target loraftp
[ 82%] Building CXX object CMakeFiles/loraftp.dir/src/linux_serial.cpp.o
[ 82%] Building CXX object CMakeFiles/loraftp.dir/src/loraftp.cpp.o
[ 82%] Building CXX object CMakeFiles/loraftp.dir/src/waveshare.cpp.o
[ 84%] Building CXX object CMakeFiles/loraftp.dir/src/tools.cpp.o
c++: fatal error: Killed signal terminated program cc1plus compilation terminated.
make[2]: *** [CMakeFiles/loraftp.dir/build.make:102: CMakeFiles/loraftp.dir/src/tools.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:161: CMakeFiles/loraftp.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
Hello, I found your project very interesting and I am playing around with LoRA.
So I am trying to follow you README and when trying to execute it I get different output every time. But most of them are related to GPIO or the one shown in the image.
Also, the "AUX" LED is staying ON some of the time. This is weird cz "echo_test" sometimes works, but it doesn't when the light "AUX" is ON.
Do you have any recommendations as to why I am getting those errors?
Thank you in advance
I figured out the echo test problems I was having.
In the example notes at the top of the code it indicates to launch with -1 on the listener and 0 for the sender.
When I did that nothing happened. Reading through the code as the crucial line just before the sending call the following was seen.
if (id >= 2)
So I tried instead of 0 on the sender a value of 2 or higher and funnily enough it started to not only send "pings"
[12:18:48 +08:00] [I] Sent: Ping SendQueueBytes=232��
But on the receiving rpi major activity and packets received.
[12:18:48 +08:00] [I] Got bytes: 148 3 0 0 5 6 7 8 9 10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Heya.
Just trying to compile this cool program for a based armv6l raspberry pi. zero/w
and I've hit a pretty obvious issue.
[ 84%] Building CXX object CMakeFiles/loraftp.dir/src/tools.cpp.o
/home/pi/loraftp/src/tools.cpp: In function 'uint32_t lora::FastCrc32(const void*, int)':
/home/pi/loraftp/src/tools.cpp:176:15: error: '__crc32cd' was not declared in this scope
crc = __crc32cd(crc, ReadU64_LE(data));
^~~~~~~~~
/home/pi/loraftp/src/tools.cpp:182:15: error: '__crc32cw' was not declared in this scope
crc = __crc32cw(crc, ReadU32_LE(data));
^~~~~~~~~
/home/pi/loraftp/src/tools.cpp:187:15: error: '__crc32ch' was not declared in this scope
crc = __crc32ch(crc, ReadU16_LE(data));
^~~~~~~~~
/home/pi/loraftp/src/tools.cpp:192:15: error: '__crc32cb' was not declared in this scope
crc = __crc32cb(crc, *data);
^~~~~~~~~
make[2]: *** [CMakeFiles/loraftp.dir/build.make:102: CMakeFiles/loraftp.dir/src/tools.cpp.o] Error 1
DId some quick looking and the used of the various __crc32xx seems to be for the higher spec's arms according to this especially for some used.
6.5.8 CRC32 Extension
__ARM_FEATURE_CRC32 is defined to 1 if the CRC32 instructions are supported and the intrinsics defined in 9.7 are
available. These instructions include CRC32B, CRC32H etc. This is only available when __ARM_ARCH >= 8.
Any suggestions PLEASE how I might tweak this to compile without error?
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.