Skip to content
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

Reading IQ WAV files generated by kiwirecorder.py #89

Open
jburnett007 opened this issue Oct 8, 2021 · 3 comments
Open

Reading IQ WAV files generated by kiwirecorder.py #89

jburnett007 opened this issue Oct 8, 2021 · 3 comments

Comments

@jburnett007
Copy link

I am trying to working thru the paragraph below on my Ubuntu 20.04 using Octave:
Working with the recorded .wav files
There is an octave extension for reading such WAV files, see read_kiwi_wav.cc where the details of the non-standard WAV chunk can be found; it needs to be compiled in this way mkoctfile read_kiwi_wav.cc.
For using read_kiwi_wav an octave function proc_kiwi_iq_wav.m is provided; type help proc_kiwi_iq_wav in octave for documentation.

I have recording a wav file using kiwirecorder.py, m is set to iq and using --kiwi-wav
I have installed Octave. In Octave I generated a read_kiwi_iq_wav.oct file.
I now get the following error:

proc_kwi_iq_wav.m 20211008T150350Z_702000_jnb_iq.wav
parse error:

syntax error

proc_kwi_iq_wav.m 20211008T150350Z_702000_jnb_iq.wav
^
Seems it does not like the file name that kiwirecorder.py generated.

Can you please give me some guidance
Thanks
ZS2B

@hcab14
Copy link

hcab14 commented Oct 8, 2021

you should use:

[x,xx,fs,last_gpsfix]=proc_kiwi_iq_wav('20211008T150350Z_702000_jnb_iq.wav', 255);
z=cat(1,x.z);
t=cat(1,x.gpssec)+1e-9*cat(1,x.gpsnsec);
q=cat(1,x.gpslast);

where z are the IQ samples, t are timestamps for each sample and q give you an idea how recent the timestamps are.

@hcab14
Copy link

hcab14 commented Oct 8, 2021

I'd also advise to read the introductory chapters of the octave manual.

@jburnett007
Copy link
Author

Thank you for your guidance. I have been doing more reading as you suggested of the Octave Documentation.
I think I am making progress in trying to run 'proc_kiwi_iqwav.m' in GNU Octave, version 5.2.0
This is what I am getting now:

[x, xx, fs, last_gpsfix]=proc_kiwi_iq_wav('20211008T150424Z_702000_jnb_iq.wav', 255)
error: 'fn' undefined near line 24 column 34
error: called from
proc_kiwi_iq_wav at line 24 column 15

Line 24 looks like it is trying to run kiwi_iq_wav
Is there now something not right with read_kiwi_iq_wav.oct ?
In the command window of Octave I ran:
mkoctfile read_kiwi_iq_wav.cc
And it did produce the 'read_kiwi_iq_wav.oct' file.
I shall continue reading and to do more examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants