Giter Site home page Giter Site logo

picw's People

Contributors

jamesp6000 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

picw's Issues

Error at make

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

Does not work

@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!

Unable to compile (Rpi3+ Raspbian)

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

transmission doesn't work

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

Wrong frequency

Hi!
I think i've found a bug...
If i specify -f 702300 it transmit on 7.023Mhz ...is it right or wrong?

Cannot compile...any help (dependencies installed!!!)

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

Compile errors on Raspbian buster (armhf) image from 2020-05-27

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

Error: peri_base_virt mmap error!

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

Why not a full-blown CW TRX?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.