Wykres commitów

196 Commity (master)

Autor SHA1 Wiadomość Data
F5OEO 3b3a45b2d7 Add PCM Sync 2018-03-06 16:18:16 +00:00
F5OEO a2dc4f509c DMA working 2018-03-06 12:08:00 +00:00
F5OEO d0d2fd9aff Dma issue 2018-03-05 16:41:19 +00:00
F5OEO 11af187182 Working on dmabuffer 2018-03-05 14:00:30 +00:00
F5OEO c6b3905fd3 Extended to cross frequency with exact Div int 2018-03-01 16:50:11 +00:00
F5OEO abdadd634e First implementation of new PLL method 2018-03-01 12:54:32 +00:00
F5OEO 4951e011a9 Big beat on 89Mhz FM 2018-02-27 22:05:44 +00:00
F5OEO 243158ecec Frequency ramp is working with DMA 2018-02-27 17:09:38 +00:00
F5OEO 0841c37522 Fix DMA memory bug 2018-02-27 16:36:04 +00:00
F5OEO 61afc7962e First test of fm dma - Not tested 2018-02-27 12:17:02 +00:00
F5OEO 5c2deb23e1 Dma features 2018-02-27 10:59:36 +00:00
F5OEO 7fef1e0c8d add pcm 2018-02-27 10:13:10 +00:00
F5OEO 28651d5e3a Add pwm 2018-02-27 09:31:46 +00:00
F5OEO 39dfd17585 Working carrier 2018-02-26 16:21:25 +00:00
F5OEO b977a07a34 First steps for gpio and dma 2018-02-26 13:45:28 +00:00
F5OEO 494621e6b2 Changes for rtlomni 2018-02-26 09:04:48 +00:00
F5OEO 513da11267 Reading from pipe could read less than request 2018-01-31 14:52:56 +00:00
F5OEO d1e37d0c3c Fix IQFloat frequency 2018-01-22 15:03:24 +00:00
F5OEO e90b235ec7 Adjustement in timing - Omnipod baudrate 2017-11-05 21:25:15 +00:00
Brandon Skari 53f573b4fd Improve some documentation, bump version # 2017-06-16 14:44:11 -06:00
Brandon Skari cc0d5e2baf Fix reading wav samples
Wave samples are stored as a 16 bit little endian signed integer, and
then converted to floats by dividing by 32768. I was reading in numbers
as unsigned.
2017-06-15 01:29:48 -06:00
Brandon Skari b7826adc22 Skip to data section regardless of file format
PCM WAV files should have the "data" header in a specific place, but
whatever format avconv spits out has it further on. Just read until we
hit that.
2017-05-26 21:31:15 -06:00
F5OEO 1f7357e6dd Fixed if WaitNano is very short 2017-05-19 09:37:25 +00:00
Brandon Skari 5dac2164cb Log debug output from avconv; catch exceptions and properly join avconv thread 2017-05-18 00:02:21 +00:00
Brandon Skari da2b5b04b3 Simplify error reporting; work around some confusing problems with avconv 2017-05-17 23:57:13 +00:00
Brandon Skari ce21edcfe3 Fix data fill loops 2017-05-17 23:54:00 +00:00
F5OEO 8d9bc02136 Clean code : remove ole FrequencyAmplitude function 2017-05-17 14:24:52 +00:00
F5OEO 34344e7b66 Set a /2 step delay in timing calculation 2017-05-17 14:12:48 +00:00
F5OEO 6e598dd32c Shorter calibration 2017-05-17 08:39:35 +00:00
Brandon Skari bcc68e6973 Try to open /dev/mem before calling rpitx
mailbox.c tries to open /dev/mem and calls exit if it doesn't have
permission, which will forcefully exit the Python runtime. Try to open
it and throwing an exception if it fails before umping into C to give
users a chance to recover.

Also, because avconv is writing to a pipe, having the read end of the
pipe unexpectedly close breaks the terminal. I kept having to run
`reset` to get it back.
2017-05-15 15:35:51 -06:00
Brandon Skari b85ece8df6 Remove dependency on libsndfile
Wav files include the length of the data in the file header. libsndfile
expects this length to be there and be sane. Unfortunately, when piping
data from avconv, this length is dummied out because the full length is
not known yet, so libsndfile can't be used to process a pipe data
stream. This removes the libsndfile dependency and replaces the used
functions with hand written ones.
2017-05-15 15:11:09 -06:00
F5OEO d1c4aae346 Add auto calibration - Fixe a timing in sstv 2017-05-15 16:08:47 +00:00
F5OEO f9022c0ed8 Add calibration tab for pizero,pi2,pi3 2017-05-15 10:26:20 +00:00
F5OEO 0ddd7c521c Fine tuning timing 2017-05-12 13:41:41 +00:00
F5OEO 7376e2f66f Rewrite FrequencyAmplitude - Sample Timing BIG fixed 2017-05-11 14:47:12 +00:00
Brandon Skari 8f25432e4f Start processing data from pipe
ffmpeg is being weird. Wave files start with a header consisting of the
text "RIFF", followed by 4 bytes for the length of the data chunk. But
because we're streaming to a pipe, that value isn't known yet, so it
just fills in 0xFFFFFFFF. libsndfile apparently doesn't like this and
quits with the message "Error in WAV file. No 'data' chunk marker." I
think I might need to drop libsndfile and manually process the data.
2017-05-10 17:47:28 -06:00
F5OEO aae9fbc7e7 Set PLL to 1.1GHz to avoid spurious on 144MHZ due to Mash 2017-05-09 13:07:16 +00:00
F5OEO 3aa2badc3d Add unwrap in IQ->frequency : remove unwanted frequency >samplerate/2 2017-05-09 09:56:36 +00:00
F5OEO 6ec9f5a623 Trial pull on clk pin : no change 2017-05-05 12:09:40 +00:00
Brandon Skari 6dfb5ba5b0 Ignore stdout from subprocess; add debug logging 2017-05-04 13:52:03 -06:00
Brandon Skari 87cac9d4f6 Extract and convert audio using ffmpeg or avconv 2017-05-04 12:11:56 -06:00
F5OEO 6a73eda84f Mash and harmonic 2017-05-04 15:34:06 +00:00
F5OEO 069faf32dd New experimental calculation of amplitude 2017-05-04 10:30:37 +00:00
F5OEO e0a7e71109 Issue #59 fixed : wrong harmonic calculation 2017-05-03 13:00:47 +00:00
F5OEO 264dd932c9 Add test and Makefile for opera 2017-05-03 09:26:57 +00:00
F5OEO d1144e3e07 Fixe ppm to get in account 2017-05-02 13:08:59 +00:00
F5OEO f5b62cc405 Use atan2 for precision and PWMF random fixed 2017-04-29 09:54:21 +00:00
Brandon Skari 5d31e1ea07 Fix Python 3 2017-04-28 16:49:44 -06:00
Brandon Skari 2c0bf1b33a Fix Python interface 2017-04-28 15:03:25 -06:00
F5OEO aa67743458 Shuffle to remove spurious and begining of calibration 2017-04-26 17:06:53 +00:00
F5OEO 25e5869d2e Clear code, work on DMA timing and calibration 2016-09-02 09:59:25 +00:00
F5OEO bbdcba4f1d DMA PWMF (2nd DMA) not used anymore and could block on terminate 2016-08-30 08:51:15 +00:00
F5OEO 177e7ef74a DMA 5 instead of 14 2016-08-27 15:00:52 +00:00
F5OEO feb6f4cf3e utils.h no longer required with rasperbbery-pi-revision 2016-08-27 13:30:45 +00:00
F5OEO 10bef28674 Change to DMA 14 2016-08-27 13:29:30 +00:00
F5OEO b8945be2a5 Use PLLD instead of PLLC : need to install dt-blob.bin to set PLLD frequency@1GHZ 2016-08-27 13:27:04 +00:00
F5OEO 1a7733bbe7 rpitx use raspebrry-pi-revision 2016-08-27 13:26:08 +00:00
F5OEO 6bdcc3d8d7 Licence for raspberry-pi-revision 2016-08-27 13:24:55 +00:00
F5OEO fc521dfb28 Use https://github.com/AndrewFromMelbourne/raspberry_pi_revision 2016-08-27 13:22:50 +00:00
F5OEO fac6e08fd5 Add Device tree to set PLL_D 2016-08-27 13:20:52 +00:00
jnk 0le 64f3664d88 fixed spacing 2016-07-11 23:22:01 +02:00
Brandon Skari 80948442f1 Python 3 support 2016-02-28 16:14:24 -07:00
Brandon Skari fadb0acbc4 Ignore certain signals 2016-02-28 16:14:24 -07:00
Brandon Skari 58b5585dc2 Don't write to a temporary file to find version 2016-02-28 16:14:24 -07:00
Brandon Skari 64ca1afd85 Fix parsing memory addresses 2016-02-28 16:14:24 -07:00
Brandon Skari 8092e79732 Test fix please ignore 2016-02-28 16:14:24 -07:00
Brandon Skari 68c57f06c6 Only close file descriptor if it's open 2016-02-28 16:14:24 -07:00
Brandon Skari 16b844f636 Return NULL on error to throw an exception 2016-02-28 16:14:24 -07:00
Brandon Skari 001770505c Use long for address base 2016-02-28 16:14:24 -07:00
Brandon Skari 3912027f52 Hide Python imports from ipython 2016-02-28 16:14:24 -07:00
Brandon Skari 96ecd96724 Fix detection of EOF 2016-02-28 16:14:24 -07:00
Brandon Skari 53e63a3536 Add rpitx top level module 2016-02-28 16:14:24 -07:00
Brandon Skari 1a0ee1921f Throw exceptions on errors 2016-02-28 16:14:24 -07:00
Brandon Skari 19a1aa2578 Add support for broadcasting other sound files 2016-02-28 16:14:24 -07:00
Brandon Skari 4634b2ffd2 Get broadcasting of already formatted files working 2016-02-28 16:14:24 -07:00
Brandon Skari 1aef5f7c5d Move header skipping to reset 2016-02-28 16:14:23 -07:00
Brandon Skari 96db9cb3dc Add callback for processing FM files 2016-02-28 16:14:23 -07:00
Brandon Skari 2df0f54626 Fix reading from buffer and from stdin 2016-02-28 16:14:23 -07:00
Brandon Skari bc6b95bfa0 Python interface is compiling 2016-02-28 16:14:23 -07:00
Brandon Skari a1b9330c41 Factor out argument processing
Separate the argument processing so that main only processes the args
and calls another function. This way, the Python extension can call the
other function.
2016-02-28 16:14:23 -07:00
F5OEO 4df399114a Merge branch 'master' of github.com:F5OEO/rpitx 2016-01-14 14:48:58 +00:00
F5OEO 61a8bef08c Nothing 2016-01-14 14:45:02 +00:00
F5OEO f34233268f Add GPCLK output ( -c 1 ) 2016-01-14 14:17:03 +00:00
Brandon Skari 1af9650ca9 Don't ignore results marked as warn_unused_result 2016-01-03 16:07:01 -07:00
Brandon Skari 8337c7f5e4 Fix open mode warnings
Calls to open should have one of O_RDONLY, O_WRONLY, or O_RDWR as part
of the flag for the second argument. Calls to open with O_CREAT should
specify the file mode as the third argument.
2016-01-03 15:52:00 -07:00
Brandon Skari 004572c5a8 Delete and ignore generated files 2016-01-03 15:49:01 -07:00
F5OEO 1dd236753c Mailbox kernel compatible 2015-12-18 08:43:06 +00:00
F5OEO d20e9d6676 First blind implementation of DCF77 2015-12-15 17:04:29 +00:00
F5OEO 0ae30f8352 Major update : New DMA method 2015-12-14 12:28:04 +00:00
ha7ilm 182f8e593b If no parameters are given, print usage instead of segmentation fault. 2015-11-08 13:15:50 +00:00
ha7ilm 38ae5944f8 Added support for stdin input for RFA, RF modes. 2015-11-01 21:35:47 +00:00
ha7ilm aa5d104626 Add STDIN_FILENO for file handle when -I- 2015-10-31 18:15:15 +01:00
ha7ilm da303d15bb Now "make" only builds those targets that have a source file that has changed. 2015-10-31 15:58:35 +00:00
ha7ilm fb2a962e76 Add "make install" 2015-10-31 15:48:39 +00:00
F5OEO 09cc878c6c Fix:Crash on Jessie, change DMA to channel 8 2015-10-22 11:40:47 +00:00
F5OEO ee3838a570 Initial commit 2015-10-21 16:08:45 +00:00