F5OEO / rpitx

RF transmitter for Raspberry Pi
GNU General Public License v3.0
3.93k stars 515 forks source link

SendIQ or RTL-SDR command not working properly #293

Open Mifaxav opened 1 year ago

Mifaxav commented 1 year ago

recorded iq file using rtl sdr in 2 different frequencies. Sending it using sendiq makes me get the same output of a 0.3 second bump in the radio spectrum and gone. One of the frequencies had a car key fob recorded with the other being megahertz away. I have a Raspberry pi 3B+ and i truly dont know whats going on

darksidelemm commented 1 year ago

Interestingly I get similar results with sendiq and the transponder code. Platform is a RPI 3B+ Short carrier transmission, then nothing.

I've tried quite a few variations, all with pretty similar results. I get transmission of a carrier for a while then nothing, or sometimes I just get nothing at all.

I've also tried with a few other variations, to try and get somewhat more narrowband output. For info, the -M raw option causes rtl_fm to output signed-16 IQ data at the requested sample rate. I use this a lot in the auto_rx project to get narrowband IQ streams. I tried:

This makes me think the issue is something to do with stdin input into sendiq, but there's not really anything obvious in the output that explains if this is the case or not.

As a test I also tried:

rtl_fm -M raw -f 146500000 -s 96000 -F9 - > test.bin

(and waited a while, resulting in a ~16Mb file)

... then

cat test.bin | sudo ./sendiq -s 96000 -f 444000000 -t i16 -i /dev/stdin

... this resulting in a very short 'blip' at 444 MHz, then nothing.

Running:

sudo ./sendiq -s 96000 -f 444000000 -t i16 -i test.bin

Results in the same effect, so maybe this rules out stdin issues, and instead there is just some issue with librpitx and/or sendiq on the platform I'm running?

As extra info:

darksidelemm commented 1 year ago

Similar behaviour on Raspbian Buster: Linux rpitx 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l GNU/Linux

Mifaxav commented 1 year ago

i got the issue fixed by giving a higher samplerate. Try 960000 (not really a pro at this stuff lol)

darksidelemm commented 1 year ago

A higher samplerate doesnt really solve the issue for me! Also, given the example transponder code isn't working, that's probably something that should be looked into..

Mifaxav commented 1 year ago

then i have no idea what to do :(

Good luck anyway...

maybe try looking at how other people have done it and like get a better idea?