-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hackrf segmentation fault #1281
Comments
and after cmake -DCMAKE_BUILD_TYPE=Debug .. [INFO] Opening HackRF One #0 223c69dc299f894f...
|
I guess this is a problem with the |
Compiled 0.7.2 and then again rtl_433 and the result: Registered 119 out of 147 device decoding protocols |
forgot.. |
Mounting a 820T.... Found Rafael Micro R820T tuner time : 2020-01-30 12:30:56 |
Thnx in advance @zuckschwerdt ! |
/Users/loewal/Downloads/rtl_433/src/devices/auriol_afw2a1.c:69:9: runtime error: index -1 out of bounds for type 'bitarray_t' (aka 'bitrow_t [25]') Index check is missing. A bug in the code. Should be fixed. |
Oh, good find. The Auriol AFW2A1 is new and there is a missing check… yeah ^^^that. |
Hi @zuckschwerdt , Christian
|
Do I perhaps need https://github.com/pothosware/SoapyHackRF? |
I wonder if my Hackrf-firmware (Furrtek-Havoc) could be the source of the problem..... |
I would guess you already have the SoapyHackRF module.
But the error isn't in HackRF, it's
on https://github.com/merbanan/rtl_433/blob/master/src/sdr.c#L691 |
This is the output after compiling: Opening HackRF One #0 223c69dc299f894f... ==24897==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7fff66b27c92 bp 0x7ffee3541040 sp 0x7ffee3541040 T0) ==24897==Register values: And now for something completely strange (for me): Soapy SDR -- the SDR abstraction library###################################################### Lib Version: v0.7.2-unknown
Version 0.8.0 AND 0.7.2.....what went wrong? |
I uninstalled the port-install version 0.7.2 Soapy SDR -- the SDR abstraction library###################################################### Lib Version: v0.8.0-unknown
|
Is this a problem? [ 14%] Building C object src/CMakeFiles/rtl_433.dir/sdr.c.o |
Yes yes yes!!!! After recomplilation: ~/Downloads/rtl_433-master/build/ rtl_433 -d driver=hackrf -g "LNA=40,AMP=14,VGA=30" -M newmodel and waiting!! |
Thank you @zuckschwerdt !! |
Perhaps too early: ~/Downloads/rtl_433-master/build/ soapysdrutil --probe="hackrf" Soapy SDR -- the SDR abstraction library###################################################### Probe device hackrf Soapy SDR -- the SDR abstraction library###################################################### Probe device hackrf Soapy SDR -- the SDR abstraction library###################################################### Lib Version: v0.8.0-unknown
~/Downloads/rtl_433-master/build/ hackrf_info Not busy at all. Message appears even after reset of Hackrf |
Another test: Soapy SDR -- the SDR abstraction library###################################################### Found device 0 Why is probing going wrong? |
And even stranger????? ~/ soapysdrutil --probe="rtlsdr" Soapy SDR -- the SDR abstraction library###################################################### Probe device rtlsdr -- Device identificationdriver=HackRF -- Peripheral summaryChannels: 1 Rx, 1 Tx -- RX Channel 0Full-duplex: NO -- TX Channel 0Full-duplex: NO |
I hope you will read next confusing lines....crosslinked rtlsdr and hackrf?? ~/ brew uninstall soapyhackrf Soapy SDR -- the SDR abstraction library###################################################### No devices found! hackrf Soapy SDR -- the SDR abstraction library###################################################### No devices found! rtlsdr ==> Installing soapyhackrf from pothosware/pothos Soapy SDR -- the SDR abstraction library###################################################### Found device 0 █▓▒░loewal@iMac-van-Loe-746█▓▒░ do jan 30 06:28:43P Soapy SDR -- the SDR abstraction library###################################################### [ERROR] SoapySDR::Device::enumerate(hackrf) stoi: no conversion Soapy SDR -- the SDR abstraction library###################################################### No devices found! rtlsdr |
and the last try: ~/ brew install soapyhackrf Soapy SDR -- the SDR abstraction library###################################################### [ERROR] SoapySDR::Device::enumerate(hackrf) stoi: no conversion Soapy SDR -- the SDR abstraction library###################################################### Found device 0 |
Yes, it is a known problem, you can't have 0.7 and 0.8 installed at the same time. Headers and libs probably got mixed up, thus the crash. The RTL-SDR isn't found because you don't have the module around. You need SoapyRTLSDR. |
Should I uninstall everything related under port and brew? |
Yes, just using Brew or MacPorts is easier on Mac. E.g. with MacPorts get:
Just make sure to uninstall everything from /usr/local first. |
Hi there,
Having next problem running RTL_433 with a Hackrf (with Furrtek Havoc firmware):
[INFO] Opening HackRF One #0 223c69dc299f894f...
Using device HackRF One: clock source=external part id=a000cb3c0065434d serial=0000000000000000223c69dc299f894f version=local-79baef77
Found 1 antenna(s): TX/RX
Found 3 gain(s): LNA 0 - 116 (step 0) AMP 0 - 116 (step 0) VGA 0 - 116 (step 0)
Found 1 frequencies: RF
Found 1 frequency range(s): 0 - 7250000000 (step 0)
Found 20 sample rate range(s): 1000000 2000000 3000000 4000000 5000000 6000000 7000000 8000000 9000000 10000000 11000000 12000000 13000000 14000000 15000000 16000000 17000000 18000000 19000000 20000000
Found 16 bandwidth range(s): 1750000 - 1750000 (step 0) 2500000 - 2500000 (step 0) 3500000 - 3500000 (step 0) 5000000 - 5000000 (step 0) 5500000 - 5500000 (step 0) 6000000 - 6000000 (step 0) 7000000 - 7000000 (step 0) 8000000 - 8000000 (step 0) 9000000 - 9000000 (step 0) 10000000 - 10000000 (step 0) 12000000 - 12000000 (step 0) 14000000 - 14000000 (step 0) 15000000 - 15000000 (step 0) 20000000 - 20000000 (step 0) 24000000 - 24000000 (step 0) 28000000 - 28000000 (step 0)
Found current bandwidth 0
Found 4 stream format(s): CS8 CS16 CF32 CF64
Found native stream format: CS8 (full scale: 128.0)
zsh: segmentation fault rtl_433 -d driver="hackrf" -g "LNA=40,AMP=14,VGA=30" -M newmodel -vvv
What could be the problem.
My Hackrf is found, but the command
~/ soapysdrutil --probe="hackrf"
######################################################
Soapy SDR -- the SDR abstraction library
######################################################
Probe device hackrf
[INFO] Make connection: ''
Error probing device: Failed to make connection with ''
Gives no Hackrf....
Anyone??
forgot this:
~/ hackrf_info
hackrf_info version: unknown
libhackrf version: unknown (0.5)
Found HackRF
Index: 0
Serial number: 0000000000000000223c69dc299f894f
Board ID Number: 2 (HackRF One)
Firmware Version: local-79baef77 (API:1.03)
Part ID Number: 0xa000cb3c 0x0065434d
The text was updated successfully, but these errors were encountered: