dmitryelj / RPi-P2000Receiver

P2000 paging autonomous receiver with LCD and browser access
15 stars 7 forks source link

Errors RaspberryPi 4 #16

Closed tomswinkels closed 5 years ago

tomswinkels commented 5 years ago

Hi,

I have install all on my Raspberry Pi 4 but get the next response;

pi@raspberrypi:~ $ python3 /home/pi/RPi-P2000Receiver/p2000.py

P2000 decoder v0.33 by Dmitrii Eliseev

Run:
python3 p2000.py --lcd=true|false [--filter=filter.txt] [--capcodes=capcodes.txt]

Server running: http://192.168.0.48:8000
API (GET): http://192.168.0.48:8000/api/messages
Websocket: ws://192.168.0.48:8001

LCD in use: no
Frequency: 169.65M
rtl_fm: ok
multimon-ng: ok

Loading /home/pi/RPi-P2000Receiver/capcodes.txt
Capcodes: 2 records loaded
Filter: 0 strings loaded

Loading capcodes for classifier /home/pi/RPi-P2000Receiver/cc_police.txt
  4 loaded
Loading capcodes for classifier /home/pi/RPi-P2000Receiver/cc_fire.txt
  10 loaded
Loading capcodes for classifier /home/pi/RPi-P2000Receiver/cc_ambu.txt
  21 loaded
Websocket thread started
Http server started
Data post thread started
Found 1 device(s):
multimon-ng 1.1.7
  (C) 1996/1997 by Tom Sailer HB9JNX/AE4WA
  (C) 2012-2019 by Elias Oenal
Available demodulators: POCSAG512 POCSAG1200 POCSAG2400 FLEX EAS UFSK1200 CLIPFSK FMSFSK AFSK1200 AFSK2400 AFSK2400_2 AFSK2400_3 HAPN4800 FSK9600 DTMF ZVEI1 ZVEI2 ZVEI3 DZVEI PZVEI EEA EIA CCIR MORSE_CW DUMPCSV X10 SCOPE
  0:  Realtek, RTL2838UHIDIR, SN: 00000001

Using device 0: Generic RTL2832U OEM
Detached kernel driver
rtlsdr_read_reg failed with -7
rtlsdr_write_reg failed with -7
rtlsdr_read_reg failed with -7
rtlsdr_write_reg failed with -7
rtlsdr_read_reg failed with -7
rtlsdr_write_reg failed with -7
rtlsdr_read_reg failed with -7
rtlsdr_write_reg failed with -7
No supported tuner found
rtlsdr_demod_write_reg failed with -7
rtlsdr_demod_read_reg failed with -7
rtlsdr_demod_write_reg failed with -7
rtlsdr_demod_read_reg failed with -7
rtlsdr_demod_write_reg failed with -7
rtlsdr_demod_read_reg failed with -7
rtlsdr_demod_write_reg failed with -7
rtlsdr_demod_read_reg failed with -7
Enabled direct sampling mode, input 1
rtlsdr_demod_write_reg failed with -7
rtlsdr_demod_read_reg failed with -7
rtlsdr_demod_write_reg failed with -7
rtlsdr_demod_read_reg failed with -7
rtlsdr_demod_write_reg failed with -7
rtlsdr_demod_read_reg failed with -7
rtlsdr_demod_write_reg failed with -7
rtlsdr_demod_read_reg failed with -7
Tuner gain set to 0.00 dB.
rtlsdr_read_reg failed with -7
rtlsdr_write_reg failed with -7
rtlsdr_read_reg failed with -7
rtlsdr_write_reg failed with -7
rtlsdr_read_reg failed with -7
rtlsdr_write_reg failed with -7
rtlsdr_write_reg failed with -7
rtlsdr_write_reg failed with -7
Allocating 15 zero-copy buffers
rtlsdr_demod_write_reg failed with -7
rtlsdr_demod_read_reg failed with -7
rtlsdr_demod_write_reg failed with -7
rtlsdr_demod_read_reg failed with -7
rtlsdr_demod_write_reg failed with -7
rtlsdr_demod_read_reg failed with -7
WARNING: Failed to set center freq.
Oversampling input by: 46x.
Oversampling output by: 1x.
Buffer size: 8.08ms
Exact sample rate is: 1014300.020041 Hz
rtlsdr_demod_write_reg failed with -7
rtlsdr_demod_read_reg failed with -7
rtlsdr_demod_write_reg failed with -7
rtlsdr_demod_read_reg failed with -7
rtlsdr_demod_write_reg failed with -7
rtlsdr_demod_read_reg failed with -7
rtlsdr_demod_write_reg failed with -7
rtlsdr_demod_read_reg failed with -7
rtlsdr_demod_write_reg failed with -7
rtlsdr_demod_read_reg failed with -7
rtlsdr_demod_write_reg failed with -7
rtlsdr_demod_read_reg failed with -7
WARNING: Failed to set sample rate.
Output at 22050 Hz.

Any idea?

dmitryelj commented 5 years ago

This is an rtlsdr driver issue, can be caused by power or usb or incorrect driver. I don't have Pi4, so have no ideas.

Check this threads: https://www.reddit.com/r/ADSB/comments/c5v7fv/has_anyone_got_an_rtlsdr_working_on_a_pi4_with/ https://www.rtl-sdr.com/forum/viewtopic.php?t=564

tomswinkels commented 5 years ago

Thnx. I have change de RTL-SDR stick to USB 2.0 port and than problem solved!