Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 652374

Summary: net-wireless/rtl-ais A simple AIS tuner and generic dual-frequency FM demodulator (sci-geosciences/opencpn data source)
Product: Gentoo Linux Reporter: Philippe Trottier <tchiwam>
Component: New packagesAssignee: Marc Schiffbauer <mschiff>
Status: CONFIRMED ---    
Severity: normal CC: jstein, sci-geosciences
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 663676    
Attachments: ebuild for -9999 and tested with -0.2
Fixed ebuild
New ebuild 0.3 and 9999

Description Philippe Trottier 2018-04-03 22:20:55 UTC
Created attachment 526496 [details]
ebuild for -9999 and tested with -0.2

Useful data source for OpenCPN, decodes ship information, a little bit like dump1090.

Tested on amd64, arm and arm64.

v0.2 is also working and merge-able.

$ rtl_air -n
Edge tuning disabled.
DC filter enabled.
RTL AGC disabled.
Internal AIS decoder enabled.
Buffer size: 163.84 mS
Downsample factor: 64
Low pass: 25000 Hz
Output: 48000 Hz
Found 1 device(s):
  0:  Realtek, RTL2838UHIDIR, SN: 00000001

Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Log NMEA sentences to console ON
AIS data will be sent to 127.0.0.1 port 10110
Tuner gain set to automatic.
Tuned to 162000000 Hz.
Sampling at 1600000 S/s.
Comment 1 Jonas Stein gentoo-dev 2018-04-04 00:23:22 UTC
Thank you for your contribution. I had a short look on the ebuild. 
Here a few ideas:

• Please test the ebuild with repoman full -x https://wiki.gentoo.org/wiki/Repoman
• you can use SRC_URI="mirror://github/... 
• which GPL?
• please fix the header. (see /usr/portage/skel.ebuild and https://devmanual.gentoo.org/ebuild-writing/eapi/)
Comment 2 Jonas Stein gentoo-dev 2018-04-04 00:24:16 UTC
...and eutils is not required anymore in EAPI=6 for your needs
Comment 3 Philippe Trottier 2018-04-04 00:43:26 UTC
Created attachment 526504 [details]
Fixed ebuild

A better ebuild for -9999 and -0.2
Comment 4 Philippe Trottier 2018-04-04 00:44:33 UTC
The GPL is GPL-2 or above as stated in the header of his rtl_ais.c file.
Comment 5 Marc Schiffbauer gentoo-dev 2018-05-03 07:55:28 UTC
Thanks Philippe for your contribution. Are you willing to proxy maintain this package? I personally am not very interested in it, but I'd add it if you would take of it in the future.
Comment 6 Philippe Trottier 2018-05-03 11:56:27 UTC
Hello Marc, I would be happy to take care of this package. 

I plan on using it a lot with my sail boat. I am guessing the opencpn crowd might be interested in it too and more willing to keep it in sync. 

I guess I'll have to create a Gentoo Opencpn wiki somewhere. If I wasn't unsure about the next few months and access to IT ressources while sailing in Greenland, I'd even ask to get back in the dev gang. But for now, I may have to be a vagabond for a while.
Comment 7 Philippe Trottier 2018-08-15 14:56:01 UTC
Created attachment 543508 [details]
New ebuild 0.3 and 9999

Small update for rtl-ais to make it work properly with opencpn-plugin-rtlsdr
Comment 8 Marc Schiffbauer gentoo-dev 2023-12-03 23:29:41 UTC
Hi Philippe, sorry, this bug got totally out of my mind. Are you still around and still would update/maintain it?