1537 Commits

Author SHA1 Message Date
Peter
d41704a48e Update hackrf_transfer.c 2016-01-13 22:24:18 +08:00
Peter
fed60c571c Update hackrf_transfer.c
Intro:
Some of the Hackrf board use a bad performance crystal, it will cause some program can't work---such as GNSS(GPS) simulation.  Most GPS receiver can capture the satellite
when the doppler within 10KHz, but 10ppm bias of the crystal will cause  15Khz doppler.  And my hackrf board uses a 16ppm crystal :(  normal
Of course, I can replace the crystal or use a external clock. But for most people, add a ppm correct function to hackrf_transfer is useful.
How to use:
1, measure your crystal's error
You can use a precision  counter to measure it.
Connect the hackrf's "clock out" to the counter, get the frequency Fh, then ,
ppm = (Fh - 10000000)/10 
 
You can use a standard clock source such as OCXO, TCXO, or Atom Clock, and a counter
to measure the crystal error too.

2, add an argument "-C ppm " when you use hackrf_transfer.

Eg. , your  crystal error is -8ppm ( In other words , your clock is slower than the standard clock), then you should add "-C -8" follow the hackrf_transfer command.

Hope you can understand my poor English:)

--------------------------
Thanks to Michael Ossmann;
Thanks to Jared Boone ;
Thanks to Benjamin Vernoux ;
Thanks to GPL.
2016-01-13 22:12:42 +08:00
Dominic Spill
fa6f29d742 Merge pull request #222 from skoslowski/c90_warning
Comment style fixup to prevent warning in c90 complier mode
2015-12-07 15:11:10 +07:00
Dominic Spill
c28ec603d1 Merge pull request #212 from pcfe/rad1o-USB-idProduct
rad1o USB idProduct cleanups
2015-12-07 14:42:37 +07:00
Sebastian Koslowski
e480a28c0a Comment style fixup to prevent warning in c90 complier mode 2015-10-27 20:16:43 +01:00
Dominic Spill
f83fc14951 Merge pull request #215 from jboone/spiflash_read_fix
hackrf_spiflash read fix
2015-09-09 11:38:55 +01:00
Jared Boone
2022cc6351 Only perform W25Q80BV setup once, at startup.
hackrf_usb firmware does not run from SPI flash once the ROM bootloader is done. Simplify assumptions by initializing SPI flash once, early. Do not initialize it every 256 bytes that are read from or written to the device.
2015-08-28 13:03:40 -07:00
Jared Boone
a4e447cb9e Use W25Q80BV read function to retrieve SPI flash contents. 2015-08-28 12:50:07 -07:00
Jared Boone
7c98d3e14b Add W25Q80BV function to fast-read from device. 2015-08-28 12:48:05 -07:00
Patrick C. F. Ernzer
f5a3692a66 rad1o USB idProduct cleanups
- udev rule should be lowercase (https://github.com/rad1o/f1rmware/pull/29)
- add entries for rad1o storage from https://github.com/rad1o/f1rmware/blob/master/smartflash/90-rad1o-flash.rules
- Rad1o -> rad1o
- hackrf.h was NOT adjusted to lowercase cc15
2015-08-25 12:13:47 +02:00
Dominic Spill
90e1653613 Update build instructions to include pkg-config 2015-07-25 09:45:50 +01:00
Dominic Spill
499c8bc09e Update build instructions to include pkg-config 2015-07-25 09:42:47 +01:00
Michael Ossmann
dd6c8ae045 Merge pull request #202 from dominicgs/cmake-fix
Move udev rule to libhackrf/
2015-07-24 09:54:23 -06:00
Dominic Spill
059c1cc2a7 Move udev rule to libhackrf/ 2015-07-24 16:50:43 +01:00
Michael Ossmann
4da9400c5b cmake bug fix from roox 2015-07-24 09:16:15 -06:00
Michael Ossmann
c4450ad73f bumped .so and .pc version numbers to 0.4 2015-07-23 22:08:51 -06:00
Dominic Spill
bee85a6126 Merge pull request #201 from dominicgs/rad1o-support
Sort readme install instructions
2015-07-23 19:14:52 +01:00
Dominic Spill
512156de43 Sort readme install instructions 2015-07-23 19:12:40 +01:00
Michael Ossmann
8ddbfd92b5 Merge pull request #200 from dominicgs/rad1o-support
Support rad1o's PID
2015-07-21 16:40:58 -06:00
Dominic Spill
8cd0cf1b0e Use rad1o's PID 2015-07-21 17:01:07 +01:00
Michael Ossmann
a1cbec96c6 credit for lines of code belongs in commit log 2015-07-16 08:35:38 -06:00
Michael Ossmann
0b7f04c527 Merge pull request #198 from miek/master
Fix KiCad files being detected as Eagle files
2015-07-11 09:01:18 -06:00
Mike Walters
d4767589c3 Fix KiCad files being detected as Eagle files 2015-07-11 11:51:56 +01:00
Michael Ossmann
25dd75081c Merge pull request #197 from mossmann/spiflash_no_verbose_2
Add hackrf_spiflash verbose option, make default not-verbose.
2015-07-10 14:39:26 -06:00
Jared Boone
8cfa81f40c Add hackrf_spiflash verbose option, make default not-verbose. 2015-07-10 10:32:55 -07:00
Michael Ossmann
af13e756d9 turn off RF amplifier at end of transmission, fixes bug #178 2015-07-08 16:37:49 -06:00
Michael Ossmann
078bd869eb Merge pull request #188 from scateu/master
Add file repeat TX mode [-R].
2015-07-08 16:12:24 -06:00
Michael Ossmann
7d7992d5d6 Merge pull request #177 from ckuethe/master
Explain which gain setting was unacceptable
2015-07-08 16:11:51 -06:00
Michael Ossmann
1f04cfd8e5 Merge pull request #173 from dominicgs/cmake_libusb
Fix discovery of libusb 1.0 for FreeBSD
2015-07-08 16:00:03 -06:00
Michael Ossmann
f54069ae82 Merge pull request #167 from cederom/master
Added FreeBSD support for HOST part.
2015-07-08 15:59:56 -06:00
Michael Ossmann
c6ca16c7a6 Merge pull request #161 from mrbubble62/patch-1
Update README.md with Visual Studio information
2015-07-08 15:45:00 -06:00
Peter Shipley
05416031c2 ChunkSize should be size entire file in bytes minus 8 bytes
Ref : https://ccrma.stanford.edu/courses/422/projects/WaveFormat/
2015-07-08 15:36:41 -06:00
Chris Kuethe
c0c8d619ab Merge branch 'master' of https://github.com/mossmann/hackrf 2015-07-08 11:44:33 -07:00
scateu
2ca87b942a Add file repeat TX mode [-R]. 2015-07-08 18:44:22 +08:00
Dominic Spill
bfc004b95e Merge pull request #187 from dominicgs/remove-kernel-driver
Fix inconsistent indentation
2015-07-07 07:25:35 +01:00
Dominic Spill
d3ce4779e9 Fix inconsistent indentation 2015-07-07 07:23:48 +01:00
Michael Ossmann
8fd9791a32 Merge pull request #186 from dominicgs/remove-kernel-driver
Fix issue #113 - CPLD update fails on Windows
2015-07-07 00:22:57 -06:00
Dominic Spill
ce9ad343e0 Fix issue #113 - CPLD update fails on Windows
Using the patch from @supersat
2015-07-06 21:25:01 +01:00
Michael Ossmann
1fb0c15c01 Merge pull request #185 from dominicgs/remove-kernel-driver
Fix GitHub issue #163 - Detach the kernel driver automatically
2015-06-29 12:00:58 -06:00
Dominic Spill
9cfa4048e9 Free config descriptor once we have the number of interfaces 2015-06-29 13:41:45 +01:00
Dominic Spill
f3a9e66924 Remove duplicate call to set configuration
+ tidy calls to libusb_close()
2015-06-29 13:08:41 +01:00
Dominic Spill
1acd6a6ad6 Fix GitHub issue #163 - Detach the kernel driver automatically 2015-06-26 17:50:27 +01:00
Chris Kuethe
edf8c23cfd Derp. That's what I get for hacking after bedtime... 2015-05-29 09:25:24 -07:00
Dominic Spill
a1b8535ac0 Merge pull request #158 from hessu/feature/multidev
Multiple device support - fixes issue #87
2015-05-29 17:13:03 +01:00
Chris Kuethe
94b37453b7 these don't need to be errors any more 2015-05-29 00:32:20 -07:00
Chris Kuethe
faddb1b320 squish invalid gain values to acceptable levels 2015-05-29 00:26:14 -07:00
Dominic Spill
8c8ce4d511 Merge pull request #176 from dominicgs/cmake_udev_group
Attempt to detect correct group for udev rule
2015-05-27 20:22:44 +01:00
Chris Kuethe
2570f35260 vga gain must be a multiple of 2, not 8
allow both args to be checked before bailing out
2015-05-25 17:38:24 -07:00
Chris Kuethe
ea46e4435b explain which gain setting was wrong
because sometimes you don't see your typos at 3am.
2015-05-25 17:31:53 -07:00
Heikki Hannikainen
3f523326fd Fix compiling on GCC 4.9 ('for' loop initial declarations not allowed with -std=gnu90) 2015-05-25 09:58:40 +03:00