jamesp6000 / picw Goto Github PK
View Code? Open in Web Editor NEWRaspberry Pi CW Transmitter
License: GNU General Public License v2.0
Raspberry Pi CW Transmitter
License: GNU General Public License v2.0
@JamesP6000 Is there a reason, why the --test-tone feature does not work with the current code base?
pi@raspberrypi:~/PiCW $ make
cc -Wall -c mailbox.c
g++ -D_GLIBCXX_DEBUG -std=c++11 -Wall -Werror -fmax-errors=5 -Wno-psabi -latomic -lm -DRPI1 mailbox.o PiCW.cpp -pthread -oPiCW
/usr/bin/ld: /tmp/ccdL6y88.o: in function allocMemPool(unsigned int)': PiCW.cpp:(.text+0x138): undefined reference to
mem_alloc(int, unsigned int, unsigned int, unsigned int)'
/usr/bin/ld: PiCW.cpp:(.text+0x160): undefined reference to mem_lock(int, unsigned int)' /usr/bin/ld: PiCW.cpp:(.text+0x18c): undefined reference to
mapmem(unsigned int, unsigned int)'
/usr/bin/ld: /tmp/ccdL6y88.o: in function deallocMemPool()': PiCW.cpp:(.text+0x2c4): undefined reference to
unmapmem(void*, unsigned int)'
/usr/bin/ld: PiCW.cpp:(.text+0x2f0): undefined reference to mem_unlock(int, unsigned int)' /usr/bin/ld: PiCW.cpp:(.text+0x30c): undefined reference to
mem_free(int, unsigned int)'
/usr/bin/ld: /tmp/ccdL6y88.o: in function open_mbox()': PiCW.cpp:(.text+0x3c78): undefined reference to
mbox_open()'
collect2: error: ld returned 1 exit status
make: *** [makefile:23: PiCW] Error 1
Hello, how to add txt file source or input from other program to PiCW?
Best Regard Kriss
@JamesP6000 Does not work
Please tell me what to do?
pi@raspberrypi:~/PiCW $ sudo ./PiCW --freq 10.140e6 --test-tone
Detected Raspberry Pi version 1
PiCW parsed command line options:
TX frequency: 10.140000 MHz
NTP will be used to periodically calibrate the transmission frequency
Will transmit continuous tone on requested frequency. CTRL-C to exit.
Unable to open / create kernel mbox device file, abort!
pi@raspberrypi:~/PiCW $ make
g++ -c -Wall -lm mailbox.c
mailbox.c: In function ‘int mbox_open()’:
mailbox.c:256:52: error: ‘makedev’ was not declared in this scope
if(mknod(LOCAL_DEVICE_FILE_NAME, S_IFCHR|0600, makedev(MAJOR_NUM_A, 0)) >= 0 &&
^~~~~~~
mailbox.c:263:52: error: ‘makedev’ was not declared in this scope
if(mknod(LOCAL_DEVICE_FILE_NAME, S_IFCHR|0600, makedev(MAJOR_NUM_B, 0)) >= 0 &&
^~~~~~~
make: *** [makefile:9: mailbox.o] Error 1
hi! i've compiling with 4.9.
the program works.
It writes "TRASMITTING E E E E" (for example) but on oscilloscope i don't see nothing.
i try also with cw receiver and it's the same.
have u got some idea?
Raspberry PI 3
73's IU5FRT
Hi!
I think i've found a bug...
If i specify -f 702300 it transmit on 7.023Mhz ...is it right or wrong?
g++-4.7 -D_GLIBCXX_DEBUG -std=c++11 -Wall -Werror -fmax-errors=5 -lm PiCW.cpp -pthread -oPiCW
PiCW.cpp: In function 'void send_dit_dah(std::atomic&, const char&, const double&, std::mt19937&)':
PiCW.cpp:887:3: error: 'sleep_until' is not a member of 'std::this_thread'
PiCW.cpp:893:5: error: 'sleep_until' is not a member of 'std::this_thread'
PiCW.cpp:901:3: error: 'sleep_until' is not a member of 'std::this_thread'
PiCW.cpp:907:5: error: 'sleep_until' is not a member of 'std::this_thread'
PiCW.cpp: In function 'void am_main(std::atomic&, std::__debug::deque&, std::mutex&, std::condition_variable&, std::__debug::map<char, std::basic_string >&, std::atomic&, std::atomic&, const bool&, const bool&)':
PiCW.cpp:933:7: error: 'sleep_for' is not a member of 'std::this_thread'
compilation terminated due to -fmax-errors=5.
makefile:6: set di istruzioni per l'obiettivo "PiCW" non riuscito
make: *** [PiCW] Errore 1
Attempting to build under Raspbian buster (armhf) image from 2020-05-27 results in these errors:
pi@raspberrypi:~/hamradio/PiCW $ make
g++ -c -Wall -lm mailbox.c
mailbox.c: In function ‘int mbox_open()’:
mailbox.c:256:52: error: ‘makedev’ was not declared in this scope
if(mknod(LOCAL_DEVICE_FILE_NAME, S_IFCHR|0600, makedev(MAJOR_NUM_A, 0)) >= 0 &&
^~~~~~~
mailbox.c:263:52: error: ‘makedev’ was not declared in this scope
if(mknod(LOCAL_DEVICE_FILE_NAME, S_IFCHR|0600, makedev(MAJOR_NUM_B, 0)) >= 0 &&
^~~~~~~
make: *** [makefile:9: mailbox.o] Error 1
Hello, just installed on Raspberry Pi 3 Model B Plus Rev 1.3, with os:
Linux raspberrypi 5.15.76-v8+ #1597 SMP PREEMPT Fri Nov 4 12:16:41 GMT 2022 aarch64 GNU/Linux
(lite version, no GUI).
I had some errors during compilation:
error: ‘makedev’ was not declared in this scope
cast to pointer from integer of different size
cast from ‘unsigned char*’ to ‘unsigned int’ loses precision
so I had to change in mailbox.c and PiCW.cpp as follows:
#include <sys/sysmacros.h>
#include
(unsigned) -> (intptr_t) in various places.
Now, after compiling, giving
sudo PiCW --freq 10.140e6 TEST DE N9NNN
issues:
Detected Raspberry Pi version 1
PiCW parsed command line options:
TX frequency: 10.140000 MHz
WPM: 20
NTP will be used to periodically calibrate the transmission frequency
Message to be sent:
"TEST DE N9NNN"
Error: peri_base_virt mmap error!
Exiting with error; caught signal: 11
Segmentation fault
Any idea?
Thanks
Giorgio IU7RAW
Now that this code is done, why not extend it to be a full-blown CW TRX? I can imagine something like:
Connect a straight key to GPIO X.
If GPIO X
send tone
end if
Or even:
Connect iambic keyer to GPIO X and Y.
Case GPIO
X
send dit
sleep
Y
send dah
sleep
X+Y
send dit
sleep
send dah
sleep
End case
SDR can be used to listen for response.
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.