jekhokie / raspberry-noaa-v2

V2 of the fantastic Raspberry Pi NOAA setup
GNU General Public License v3.0
533 stars 100 forks source link

[Error] Captures don't work #958

Closed nxugget closed 3 months ago

nxugget commented 4 months ago

Hi, Captures don't work or if they work, I only have noise. I checked output.log and I got this :

rm: cannot remove './dataset.json': No such file or directory
rm: cannot remove './product.cbor': No such file or directory
27-04-2024 10:21 /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh INFO : Files recorded
27-04-2024 10:21 /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh INFO : Resampling down audio
/usr/bin/sox WARN wav: Premature EOF on .wav input file
/usr/bin/sox WARN rate: rate clipped 184188 samples; decrease volume?
/usr/bin/sox WARN dither: dither clipped 161166 samples; decrease volume?
27-04-2024 10:21 /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh INFO : Deleting audio files
27-04-2024 10:21 /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh INFO : No images found - not pushing anywhere

> ./support.sh
=============================================
Details about environment
=============================================
Current local date/time: Sat 27 Apr 10:37:55 CEST 2024
Current date/time (ms):  1714207075
Repo git hash:           79bb36a3d5e89e5017cc754b7d16d9f41100ad8e
Raspberry Pi Model:      Raspberry Pi 4 Model B Rev 1.4
Architecture:            Linux noaa 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux
Num CPUs:                4
---------------------------------------------
'at' Scheduled Jobs (Captures):
  * [44 Tue Apr 30 10:28:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh "NOAA 15" NOAA-15-20240430-082855 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714465735 938 44 Southbound W
  * [33 Mon Apr 29 22:53:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh "NOAA 19" NOAA-19-20240429-205310 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714423990 947 59 Northbound W
  * [62 Thu May  2 11:22:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_meteor.sh "METEOR-M2 3" METEOR-M2-3-20240502-092257 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714641777 975 63 Southbound E
  * [60 Thu May  2 23:35:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh "NOAA 18" NOAA-18-20240502-213531 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714685731 969 58 Northbound E
  * [51 Tue Apr 30 15:55:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_meteor.sh "METEOR-M2 4" METEOR-M2-4-20240430-135559 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714485359 968 53 Northbound E
  * [64 Fri May  3 20:33:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh "NOAA 15" NOAA-15-20240503-183323 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714761203 933 72 Northbound E
  * [20 Sun Apr 28 12:57:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh "NOAA 18" NOAA-18-20240428-105727 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714301847 967 69 Southbound E
  * [37 Sun Apr 28 11:15:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_meteor.sh "METEOR-M2 3" METEOR-M2-3-20240428-091519 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714295719 932 55 Southbound E
  * [45 Tue Apr 30 20:10:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh "NOAA 15" NOAA-15-20240430-181055 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714500655 939 46 Northbound E
  * [67 Fri May  3 12:16:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh "NOAA 19" NOAA-19-20240503-101637 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714731397 958 49 Southbound W
  * [65 Fri May  3 13:35:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh "NOAA 18" NOAA-18-20240503-113546 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714736146 973 57 Southbound W
  * [9  Sun Apr 28 21:02:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh "NOAA 15" NOAA-15-20240428-190202 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714330922 910 64 Northbound W
  * [66 Fri May  3 23:23:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh "NOAA 18" NOAA-18-20240503-212313 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714771393 929 46 Northbound E
  * [59 Thu May  2 13:48:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh "NOAA 18" NOAA-18-20240502-114818 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714650498 932 45 Southbound W
  * [49 Tue Apr 30 22:40:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh "NOAA 19" NOAA-19-20240430-204049 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714509649 987 74 Northbound W
  * [41 Sat Apr 27 17:00:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_meteor.sh "METEOR-M2 4" METEOR-M2-4-20240427-150017 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714230017 918 45 Northbound W
  * [57 Thu May  2 20:59:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh "NOAA 15" NOAA-15-20240502-185903 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714676343 911 67 Northbound W
  * [54 Wed May  1 22:28:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh "NOAA 19" NOAA-19-20240501-202831 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714595311 969 86 Northbound E
  * [36 Sat Apr 27 11:38:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_meteor.sh "METEOR-M2 3" METEOR-M2-3-20240427-093821 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714210701 942 86 Southbound E
  * [43 Mon Apr 29 16:17:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_meteor.sh "METEOR-M2 4" METEOR-M2-4-20240429-141713 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714400233 937 79 Northbound E
  * [30 Sun Apr 28 11:37:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh "NOAA 19" NOAA-19-20240428-093718 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714297038 960 82 Southbound E
  * [56 Thu May  2 09:37:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh "NOAA 15" NOAA-15-20240502-073726 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714635446 933 67 Southbound E
  * [68 Fri May  3 22:04:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh "NOAA 19" NOAA-19-20240503-200408 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714766648 930 54 Northbound E
  * [61 Thu May  2 22:16:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh "NOAA 19" NOAA-19-20240502-201618 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714680978 950 68 Northbound E
  * [52 Wed May  1 10:03:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh "NOAA 15" NOAA-15-20240501-080308 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714550588 908 73 Southbound W
  * [31 Sun Apr 28 23:05:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh "NOAA 19" NOAA-19-20240428-210535 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714338335 957 46 Northbound W
  * [42 Sun Apr 28 16:38:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_meteor.sh "METEOR-M2 4" METEOR-M2-4-20240428-143839 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714315119 963 68 Northbound W
  * [46 Tue Apr 30 00:12:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh "NOAA 18" NOAA-18-20240429-221249 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714428769 999 70 Northbound W
  * [53 Wed May  1 00:00:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh "NOAA 18" NOAA-18-20240430-220020 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714514420 970 89 Northbound W
  * [11 Mon Apr 29 20:36:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh "NOAA 15" NOAA-15-20240429-183620 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714415780 928 76 Northbound E
  * [21 Mon Apr 29 00:25:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh "NOAA 18" NOAA-18-20240428-222523 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714343123 967 56 Northbound W
  * [50 Tue Apr 30 12:09:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_meteor.sh "METEOR-M2 3" METEOR-M2-3-20240430-100910 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714471750 914 53 Southbound W
  * [58 Wed May  1 23:47:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh "NOAA 18" NOAA-18-20240501-214754 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714600074 1000 71 Northbound E
  * [69 Fri May  3 16:31:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_meteor.sh "METEOR-M2 4" METEOR-M2-4-20240503-143133 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714746693 960 78 Northbound W
  * [55 Wed May  1 11:46:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_meteor.sh "METEOR-M2 3" METEOR-M2-3-20240501-094602 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714556762 922 82 Southbound W
  * [63 Thu May  2 16:53:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_meteor.sh "METEOR-M2 4" METEOR-M2-4-20240502-145307 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714661587 923 51 Northbound W
  * [47 Tue Apr 30 12:32:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh "NOAA 18" NOAA-18-20240430-103234 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714473154 952 43 Southbound E
  * [32 Mon Apr 29 11:25:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh "NOAA 19" NOAA-19-20240429-092501 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714382701 940 64 Southbound E
  * [18 Sat Apr 27 13:09:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh "NOAA 18" NOAA-18-20240427-110955 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714216195 1000 89 Southbound E
  * [48 Tue Apr 30 11:12:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh "NOAA 19" NOAA-19-20240430-091246 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714468366 977 51 Southbound E
  * [8  Sun Apr 28 09:40:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh "NOAA 15" NOAA-15-20240428-074024 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714290024 931 70 Southbound E
  * [22 Mon Apr 29 12:44:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh "NOAA 18" NOAA-18-20240429-104459 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714387499 993 56 Southbound E
  * [19 Sun Apr 28 00:38:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh "NOAA 18" NOAA-18-20240427-223801 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714257481 924 44 Northbound W
  * [10 Mon Apr 29 09:14:00 2024 a nugget] -> /home/nugget/raspberry-noaa-v2/scripts/receive_noaa.sh "NOAA 15" NOAA-15-20240429-071448 /home/nugget/raspberry-noaa-v2/tmp/orbit.tle                                                               1714374888 935 42 Southbound E
---------------------------------------------
Satellite SDR Settings:
  meteor_m2_memory_threshold: 10
  noaa_15_schedule: true
  noaa_15_sdr_device_id: 0
  noaa_15_freq_offset: 0
  noaa_15_enable_bias_tee: false
  noaa_15_gain: 40.2
  noaa_15_sun_min_elevation: 6
  noaa_15_sat_min_elevation: 40
  noaa_18_schedule: true
  noaa_18_sdr_device_id: 0
  noaa_18_freq_offset: 0
  noaa_18_enable_bias_tee: false
  noaa_18_gain: 40.2
  noaa_18_sun_min_elevation: 6
  noaa_18_sat_min_elevation: 40
  noaa_19_schedule: true
  noaa_19_sdr_device_id: 0
  noaa_19_freq_offset: 0
  noaa_19_enable_bias_tee: false
  noaa_19_gain: 40.2
  noaa_19_sun_min_elevation: 6
  noaa_19_sat_min_elevation: 40
  meteor_m2_3_schedule: true
  meteor_m2_3_sdr_device_id: 0
  meteor_m2_3_freq_offset: 0
  meteor_m2_3_enable_bias_tee: false
  meteor_m2_3_gain: 40.2
  meteor_m2_3_schedule_sun_min_elevation: -6
  meteor_m2_3_sun_min_elevation: 6
  meteor_m2_3_sat_min_elevation: 40
  meteor_m2_3_80k_interleaving: false
  meteor_m2_4_schedule: true
  meteor_m2_4_sdr_device_id: 0
  meteor_m2_4_freq_offset: 0
  meteor_m2_4_enable_bias_tee: false
  meteor_m2_4_gain: 40.2
  meteor_m2_4_schedule_sun_min_elevation: -6
  meteor_m2_4_sun_min_elevation: 6
  meteor_m2_4_sat_min_elevation: 40
  meteor_m2_4_80k_interleaving: false
---------------------------------------------
USB Device Map:
  Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
  Bus 001 Device 003: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T
  Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
---------------------------------------------
Disk Info:
  NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
  mmcblk0     179:0    0 119.1G  0 disk
  ├─mmcblk0p1 179:1    0   256M  0 part /boot
  └─mmcblk0p2 179:2    0 118.8G  0 part /
---------------------------------------------
Disk Usage Info:
  Filesystem     1K-blocks    Used Available Use% Mounted on
  /dev/root      122657616 6105920 111536552   6% /
  devtmpfs         3735680       0   3735680   0% /dev
  tmpfs            3999904       0   3999904   0% /dev/shm
  tmpfs            1599964    1136   1598828   1% /run
  tmpfs               5120       4      5116   1% /run/lock
  tmpfs            1024000       0   1024000   0% /var/ramfs
  /dev/mmcblk0p1    261108   52542    208566  21% /boot
  tmpfs             799980       4    799976   1% /run/user/1000
---------------------------------------------
Memory Info:
  MemTotal:        7999812 kB
  MemFree:         6906680 kB
  MemAvailable:    7679440 kB
---------------------------------------------
Git source files changed:
  config/settings.yml
---------------------------------------------
SDR Information:
Found 1 device(s):
  0:  Generic RTL2832U OEM

Using device 0: Generic RTL2832U OEM
Found Rafael Micro R828D tuner
RTL-SDR Blog V4 Detected

Current configuration:
__________________________________________
Vendor ID:              0x0bda
Product ID:             0x2838
Manufacturer:           RTLSDRBlog
Product:                Blog V4
Serial number:          00000001
Serial number enabled:  yes
IR endpoint enabled:    yes
Remote wakeup enabled:  no
__________________________________________
---------------------------------------------
Database tables:
  predict_passes =>
      CREATE TABLE predict_passes(
    sat_name text not null,
    pass_start timestamp primary key default (strftime('%s', 'now')) not null,
    pass_end timestamp default (strftime('%s', 'now')) not null,
    max_elev int not null,
    is_active boolean, pass_start_azimuth int, direction text, azimuth_at_max int, at_job_id int not null default 0);

  decoded_passes =>
      CREATE TABLE decoded_passes(
    id integer primary key autoincrement,
    pass_start integer,
    file_path text not null,
    daylight_pass boolean, is_noaa boolean, sat_type integer, img_count integer, has_spectrogram boolean default 0, has_pristine boolean default 0, gain real, has_polar_az_el boolean default 0, has_polar_direction boolean default 0, has_histogram boolean default 0,
    foreign key(pass_start) references passes(pass_start));

Server information

I don't understand because it used to be working before... I precise that I use a V-dipole antenna with a SWR of 1.3, and impedance of 43Ω without LNA Thanks in advance for your help :)

PhilRepisky commented 4 months ago

if you run satdump live when the satellite is overhead can you produce a waveform?

note that a V-dipole should be facing the direction of the pass ( |< when sat going -->) and ( >| when sat going <--- )

example of a run from today on my device: /usr/bin/satdump live noaa_apt . --source rtlsdr --samplerate 1.024e6 --frequency 137.6200e6 --satellite_number 15 --source_id 0 --gain 31.0 --start_timestamp 1714223568 --sdrpp_noise_reduction --http_server 0.0.0.0:8081 --timeout 923 >> /var/log/raspberry-noaa-v2/output.log 2>&1

of course this needs to be adjusted to your own test, these are now numbers in the past.

nxugget commented 4 months ago

I don't really know how satdump works. But the issue is not here. Because even with WXtoIMG, I have nothing, only noise. Furthermore, the spectrogram doesn't show anything. I don't know if there is a link but when I use the test_reception.sh, I don't heard anything when I'm connect with ncat. My antenna seems totally correct. I didn't touch it and before it worked. I test it and it has SWR of 1.3, and impedance of 43Ω. I really don't know what I did... :(

nxugget commented 4 months ago

Also, I checked prediction pass on AMSAT and I see the next pass in UTC for my location is at 19:51.

Screenshot 2024-04-30 at 9 41 02 PM

But, on the Raspberry, in UTC+2, I see the pass at 20:10 when it should be 21:51:

Screenshot 2024-04-30 at 9 39 15 PM

Knowing that I have this empty spectrogram, maybe the capture doesn't start at the right time. NOAA-15-20240430-181055-spectrogram

PhilRepisky commented 4 months ago

ya, that would confirm that at a minimum you aren't configured correctly somewhere. possibly raspi-config to check localisation options? I would guess you have a 30 minute offset

note that an additional 10 minute difference can also come up based on the minimum sat angle you're assuming, the higher the cutoff the later in the pass you're scheduled for (vs the AMSAT lookup).

if you've mis-assigned your location, double check your lat / long in the settings.yml then re-run the install_update script.

I wouldn't expect the TLEs to be a problem, but its odd that gpredict would act up. perhaps run that directly in the terminal as well against a NOAA TLE?

(in schedule_captures you can see the CLI usage ` predict_start=$($PREDICT -t $TLE_FILE -p "${OBJ_NAME}" "${next_predict}" | head -1)'.

that aside, if you're having trouble with the timing we can at least confirm your antenna + line-of-sight-to-sky + other implementation details with the prior suggested solution of running satdump directly (or satdump-ui if you have a monitor to click around in)

nxugget commented 4 months ago

Ok, I try with predict :

user@noaa:~ $ predict -t /home/user/.config/satdump/satdump_tles.txt -p "NOAA 19" | head -1
1714589415 Wed 01May24 18:50:15    0  110  231   31  330   3387  78481 * 0.000000

Results correlate with AMSAT :

image

But, on the server with UTC+2 :

image

I checked lat / long on settings.ymland it's good. I'm waiting for the next pass to try with SatDump.