bistromath / gr-ais Goto Github PK
View Code? Open in Web Editor NEWAutomatic Information System decoder for shipborne position reporting for the Gnuradio project
Automatic Information System decoder for shipborne position reporting for the Gnuradio project
Seems Gnu Radio likes changing things frequently :-(
CMake Error at CMakeLists.txt:114 (find_package):
Could not find a configuration file for package "Gnuradio" that is
compatible with requested version "3.7.6".
The following configuration files were considered but not accepted:
/usr/lib/arm-linux-gnueabihf/cmake/gnuradio/GnuradioConfig.cmake, version: 3.7.2.1
Woops, things we backwards
I am trying to build this against GNU Radio 3.7 and cmake is failing to find both GRUEL and GNURADIO_CORE:
-- Could NOT find GRUEL (missing: GRUEL_LIBRARIES GRUEL_INCLUDE_DIRS)
-- Could NOT find GNURADIO_CORE (missing: GNURADIO_CORE_LIBRARIES GNURADIO_CORE_INCLUDE_DIRS)
CMake Error at CMakeLists.txt:90 (message):
Gruel required to compile gr_ais
It looks like these were removed/consolidated into gnuradio-runtime in 3.7: http://gnuradio.org/redmine/projects/gnuradio/wiki/Move_3-6_to_3-7
Am I missing something/off base here? Is there any plan/work to update gr-ais to 3.7, or am I better of going back to 3.6. I am building this on Debian wheezy running on a RaspberryPi if that makes a difference..
Thanks for your time and any information you can provide.
-Jesse
I'm getting huge numbers of false detections with obviously erroneous decoding. Does AIS not transmit a CRC with every sentence, like e.g. ADS-B? If so, it would probably be good to implement this in the decoder and give the option of throwing away corrupt data.
I tried to install with GR3.8 and it doesn't work. I see you mention this here - but as I see no changes in master or a suitably named branch, I assume this hasn't happened yet?
Thanks,
Matt
My GNU Radio Companion complains that this module is missing when opening ais.grc. Cannot find it anywhere among the sources.
Alderaan:~/Development/Radio/gnuradio/gr-ais/build make
[ 4%] Linking CXX shared library libgnuradio-ais.dylib
Undefined symbols for architecture x86_64:
"_volk_32fc_magnitude_squared_32f", referenced from:
gr::ais::corr_est_cc_impl::work(int, std::__1::vector<void const*, std::__1::allocator<void const*> >&, std::__1::vector<void*, std::__1::allocator<void*> >&) in corr_est_cc_impl.cc.o
"_volk_free", referenced from:
gr::ais::corr_est_cc_impl::~corr_est_cc_impl() in corr_est_cc_impl.cc.o
"_volk_get_alignment", referenced from:
gr::ais::corr_est_cc_impl::corr_est_cc_impl(std::__1::vectorstd::__1::complex<float, std::__1::allocatorstd::__1::complex > const&, float, unsigned int, float) in corr_est_cc_impl.cc.o
gr::ais::corr_est_cc_impl::corr_est_cc_impl(std::__1::vectorstd::__1::complex<float, std::__1::allocatorstd::__1::complex > const&, float, unsigned int, float) in corr_est_cc_impl.cc.o
"_volk_malloc", referenced from:
gr::ais::corr_est_cc_impl::corr_est_cc_impl(std::__1::vectorstd::__1::complex<float, std::__1::allocatorstd::__1::complex > const&, float, unsigned int, float) in corr_est_cc_impl.cc.o
gr::ais::corr_est_cc_impl::corr_est_cc_impl(std::__1::vectorstd::__1::complex<float, std::__1::allocatorstd::__1::complex > const&, float, unsigned int, float) in corr_est_cc_impl.cc.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libgnuradio-ais.dylib] Error 1
make[1]: *** [lib/CMakeFiles/gnuradio-ais.dir/all] Error 2
make: *** [all] Error 2
Hi, please update the README to reflect the following change:
"Rename ais_decode.py to ais_rx.py and do a little demodulator tweaking."
Thanks
Hi,
I would like to implement an AIS receiver using my USRP B210 with your software platform. However, when I clone gr-ais, make a build directory, and build gr-ais, there are missing blocks in GnuRadio-Companion. Can you please provide install instructions as well as procedure to run? I am running with Gnuradio 3.7.7.1.
Thanks,
Kyle
In the ais_swig.i file, the line 8 contains a reference to a document that no longer exist.
Remove this line to correct it (with the comment coming with it): %include "ais_swig_doc.i"
So I was able to get the ais_rx python script to run successfully but I don't know how to determine whether or not it received the data. I noticed that in the old GRC file, that a message debug block was used to redirect message output. Is there a location on the file system where the output is generated?
The name of the Python module is simply "ais"; this conflicts with libais, which can parse AIS messages using a Python wrapper.
I'd like to use both gr-ais and libais using GR3.8 and Python 3.8+, as they are complimentary, but am running into issues trying to import them both.
I'm currently reading up on the correct way to import Python modules by path and reading up on/trying to use the importlib API, but if someone has already solved this issue I'm all ears. I also wanted to bring it up in case refactoring this module to use a less generic name could make sense.
Hello. When compiling, an error saying that python “cannot import name ‘ais’ from ‘gnuradio’” appears. We believe that the python path is set correctly, and that gnuradio does not have the AIS module. The python path is set in “/usr/local/lib/python3/dist-packages”.
Is there anything else that needs to be configured?
Hello,
I am trying to compile the latest git revision but I get the following error:
/gr-ais/lib/pdu_to_nmea_impl.cc:119:46: error: ‘snprintf’ was not declared in this scope
snprintf(wat, 3, "%02X", checksum); //NMEA 0183 checksum
I don't think that is related at all to my config. (I am using latest Gnu Radio 3.7 from git) Let me know what information could be useful to sort out this.
I tried to compile with the options: mkdir build, cd build, cmake .., make
Thank you,
Luis
Hello, I have seen previous issues in which a future version of this repository for GNU Radio 3.9 was mentioned. Is this a reality already? I've seen the "grc" branch mentions that either GNU Radio 3.8 or GNU Radio 3.9 should work, but I didn't have any luck with GNU Radio 3.9 and I was wondering if it was me or the repo is not updated to that version yet.
After installation running ais_rx fails:
> ais_rx.py
Traceback (most recent call last):
File "/usr/local/bin/ais_rx.py", line 13, in
from gr_ais.ais_demod import *
File "/usr/local/lib/python2.6/dist-packages/gr_ais/ais_demod.py", line 15, in
from gnuradio import ais
ImportError: cannot import name ais
There is one suspicious directory after installing:
/usr/local/$(GR_INCLUDE_DIR)/gr_ais/swig
But even changing
DESTINATION $(GR_INCLUDE_DIR)/gr_ais/swig
to
DESTINATION ${GR_INCLUDE_DIR}/gr_ais/swig
in swig/CMakeLists.txt and rebuilding does not fix the first error.
Hi, I'm trying to build this module like other OOT modules using:
mkdir build
cd build
cmake ..
make
sudo make install
sudo ldconfig
However, during the third step (cmake ..) I am receiving the following fatal error:
Generating doxygen xml for ais_swig_doc docs
warning: Tag SYMBOL_CACHE_SIZE' at line 289 of file
/usr/gr-ais/build/swig/ais_swig_doc_swig_docs/Doxyfile' has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag SHOW_DIRECTORIES' at line 477 of file
/usr/gr-ais/build/swig/ais_swig_doc_swig_docs/Doxyfile' has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag HTML_ALIGN_MEMBERS' at line 803 of file
/usr/gr-ais/build/swig/ais_swig_doc_swig_docs/Doxyfile' has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag USE_INLINE_TREES' at line 956 of file
/usr/gr-ais/build/swig/ais_swig_doc_swig_docs/Doxyfile' has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag XML_SCHEMA' at line 1149 of file
/usr/gr-ais/build/swig/ais_swig_doc_swig_docs/Doxyfile' has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: Tag XML_DTD' at line 1155 of file
/usr/gr-ais/build/swig/ais_swig_doc_swig_docs/Doxyfile' has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
warning: doxygen no longer ships with the FreeSans font.
You may want to clear or change DOT_FONTNAME.
Otherwise you run the risk that the wrong font is being used for dot generated graphs.
[ 52%] Generating python docstrings for ais_swig_doc
Traceback (most recent call last):
File "/usr/gr-ais/docs/doxygen/swig_doc.py", line 33, in
from doxyxml import DoxyIndex, DoxyClass, DoxyFriend, DoxyFunction, DoxyFile, base
File "/usr/gr-ais/docs/doxygen/doxyxml/init.py", line 67, in
from doxyindex import DoxyIndex, DoxyFunction, DoxyParam, DoxyClass, DoxyFile, DoxyNamespace, DoxyGroup, DoxyFriend, DoxyOther
ModuleNotFoundError: No module named 'doxyindex'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/gr-ais/docs/doxygen/swig_doc.py", line 35, in
from gnuradio.doxyxml import DoxyIndex, DoxyClass, DoxyFriend, DoxyFunction, DoxyFile, base
ModuleNotFoundError: No module named 'gnuradio'
swig/CMakeFiles/ais_swig_swig_doc.dir/build.make:60: recipe for target 'swig/ais_swig_doc.i' failed
make[2]: *** [swig/ais_swig_doc.i] Error 1
CMakeFiles/Makefile2:196: recipe for target 'swig/CMakeFiles/ais_swig_swig_doc.dir/all' failed
make[1]: *** [swig/CMakeFiles/ais_swig_swig_doc.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
I'd appreciate any help, thanks.
When I run this:
$ ais_rx -dosmocom -g35 -r250e3 > ais_pipe
I get this:
Traceback (most recent call last):
File "/usr/local/bin/ais_rx", line 7, in <module>
import ais
File "/usr/local/lib/python2.7/dist-packages/ais/__init__.py", line 45, in <module>
from ais_swig import *
ImportError: No module named ais_swig
I didn't find any swig libraries in /usr/local/lib. If it'll make a difference, I'm using the commit 1813242
so that it'll work with gnuradio 3.7.5.
ais.grc doesn't seem to be updated to gnuradio 3.8
Hi, I am not able to compile, getting the following error:
`vnc@Plotter:~/gr-ais/build$ cmake ../
-- Build type not specified: defaulting to release.
CMake Warning at /usr/share/cmake-3.7/Modules/FindBoost.cmake:761 (message):
Imported targets not available for Boost version
Call Stack (most recent call first):
/usr/share/cmake-3.7/Modules/FindBoost.cmake:865 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake-3.7/Modules/FindBoost.cmake:1470 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:60 (find_package)
CMake Warning at /usr/share/cmake-3.7/Modules/FindBoost.cmake:761 (message):
Imported targets not available for Boost version
Call Stack (most recent call first):
/usr/share/cmake-3.7/Modules/FindBoost.cmake:865 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake-3.7/Modules/FindBoost.cmake:1470 (_Boost_MISSING_DEPENDENCIES)
CMakeLists.txt:60 (find_package)
-- Could NOT find Boost
CMake Error at CMakeLists.txt:63 (message):
Boost required to compile ais
What am I doing wrong?`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.