<div class="gmail_quote">On Sun, Aug 5, 2012 at 11:45 AM, Christian Gagneraud <span dir="ltr"><<a href="mailto:chris@techworks.ie" target="_blank">chris@techworks.ie</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi there,<br>
<br>
I saw a message in the July archive (I wasn't subscribed yet at that date) about updating gr-ais with osmosdr support.<br>
I was working on the same thing recently, so i decided to publish my fixes on top of Antoine's one.<br>
The result can be found here:<br>
<a href="https://github.com/chgans/gr-ais" target="_blank">https://github.com/chgans/gr-<u></u>ais</a><br>
<br>
I got it working with both an FCD and an RTL:<br>
ais_rx.py --rate 96e3 --gain 30 --error -17 -d -D fcd=0<br>
ais_rx.py --rate 1024e3 --gain 30 --error -110 -d -D rtl=0<br></blockquote><div><br></div><div>Thanks for doing this. I haven't been looking at gr-ais lately as I've been doing gr-air-modes development in anticipation of our DefCon talk. Now that that's over, I'll have some time to integrate these changes and hopefully modernize a few things in gr-ais which I've been putting off.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Strangely passing freq_err=XX parameter to the source (using -D), doesn't work, the use of --error is thus needed (which will do a set_freq_corr()).<br>
<br>
Antoine, if you want sample file, just let me know.<br>
<br>
Nick, are you willing to integrate these changing back in gr-ais, Apart from the added automatic decimation filter, the changes are not intrusive at all.<br></blockquote><div><br></div><div>Yep, I'll pull it back in. I'm also going to need your help vetting the changes against the FCD, as I don't have one. I do have an RTL dongle I can do some testing with. Have you had much success with AIS on RTL?</div>
<div><br></div><div>--n</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
The default settings for UHD are 256Khz sampling with decimation filter 4, with this change, the decimation is one when using FCD (96KHz fixed frequency) and 16 for RTL when used at 1.024MHz (this was the minimum working frequency for me).<br>

Or maybe would you prefer to allow the user to set it manually, and use this technique as a fall back only.<br>
<br>
Please let me know what you guys think.<br>
<br>
Thx,<br>
Chris<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Christian Gagneraud,<br>
Embedded systems engineer.<br>
Techworks Marine<br>
1 Harbour road<br>
Dun Laoghaire<br>
Co. Dublin<br>
Ireland<br>
Tel: <a href="tel:%2B%20353%20%280%29%201%20236%205990" value="+35312365990" target="_blank">+ 353 (0) 1 236 5990</a><br>
Web: <a href="http://www.techworks.ie/" target="_blank">http://www.techworks.ie/</a><br>
</font></span></blockquote></div><br>