422 Commits

Author SHA1 Message Date
Andrea Bondavalli
5b5029ed2a Merge branch 'codec_am824' 2020-04-24 04:08:55 -07:00
Andrea Bondavalli
4f84e91a6b
Update README.md 2020-04-24 10:22:10 +02:00
Andrea Bondavalli
29dcfba0bd Merge branch 'master' into codec_am824 2020-04-23 22:44:33 +02:00
Andrea Bondavalli
fdccd4f577 Removed unused functions from utils 2020-04-23 22:42:30 +02:00
Andrea Bondavalli
b35b36c91e Merge branch 'master' into codec_am824 2020-04-23 12:11:26 -07:00
Andrea Bondavalli
0dbfe78a10 - Added support for mDNS/RTSP sources advertisement compatible with Ravenna standard.
- mDNS advertisement for all local Sources is implemented by mdns_server.[cpp,hpp] and based on Linux Avahi.
  - RTSP server implementation supports DESCRIBE method to return SDP of local Sources and supports persistent connection but doesn't provide service updates via UPDATE method.
- Modified RTSP client to browse for _ravenna_session subtype of _rtsp._tcp services only.
- Modified SAP and mDNS discovery to avoid returning local Sources advertised by the daemon.
- Added "rtsp_port" and "node_id" config parameters.
  - rtsp_port is a read/write parameter that contains the port of the RTSP server.
  - node_id is a read only parameter that contains the unique daemon identifier used in mDNS and SAP sources announcements.
- Modified session manager to check that every Source and Sink created by the user has a unique name.
- Modified WebUI to visualize node_id and to visualize and edit rtsp_port parameters in Config tab.
- Extended regression test to verify proper behaviour of mDNS/RTSP sources advertisement and discovery.
- Modified REST API to browse remote sources to allow browsing of SAP, mDNS and all sources via HTTP GET /api/browse/sources/[all|mdns|sap].
- Amended daemon documentation.
2020-04-23 11:45:58 -07:00
Andrea Bondavalli
5e6c47b7f2 Merge branch '8_channels_demo' of https://github.com/bondagit/aes67-linux-daemon 2020-04-10 13:14:41 -07:00
Andrea Bondavalli
1d2ea0875c Added support for AM824 codec for testing
- added patch to ravenna-alsa-lkm module to support AM824 codec and associated conversion functions
- added support for AM824 codec to daemon and in WebUI
- modifed demo to test 8 channels of AM824 with 6 samples per packet @ 48Khz (125us x packet)
2020-04-10 13:04:44 -07:00
Andrea Bondavalli
e9dd44fdb4 Minor changes 2020-04-10 13:01:36 -07:00
Andrea Bondavalli
28579de590 Set of enhancements to the WebUI Browser tab:
- added display of domain parameter for the remote sources discovered via mDNS
- the list of remote sources is ordered by name
2020-04-08 11:25:16 -07:00
Andrea Bondavalli
9898c9fac0 Set of enhancements and fixes to the daemon browser:
- browser stores the RTSP sources discovered via mDNS by name and domain
- domain field added to JSON Remote Source params
- removed trailing CR/LF to the end of SAP source name
2020-04-08 11:24:10 -07:00
Andrea Bondavalli
8c1f304065
Update README.md 2020-04-04 11:41:16 +02:00
Andrea Bondavalli
0f8b9e714e Revised Avahi client integration in mDNS client:
- aligned state handling with avahi-browse tool: browser is started in client callback
- browsing is limited to IPv4 services discovered on the specific daemon network interface only
Additional minor changes.
2020-04-03 09:55:01 -07:00
Andrea Bondavalli
449db1c73c Added to the WebUI the possibility to configure mDNS enabled option 2020-04-02 20:00:16 +02:00
Andrea Bondavalli
4e02f74500 Merge branch 'master' of https://github.com/andreabondavalli74/aes67-linux-daemon 2020-04-02 19:50:53 +02:00
Andrea Bondavalli
85c36c3fd6 fix: mdns_enabled parameter encoded as JSON boolean instead of JSON string 2020-04-02 19:50:35 +02:00
Andrea Bondavalli
077158713f
Update README.md 2020-04-01 19:04:05 +02:00
Andrea Bondavalli
e37c615cd8 Merge branch 'master' of https://github.com/andreabondavalli74/aes67-linux-daemon 2020-04-01 17:41:12 +02:00
Andrea Bondavalli
92768454f4 Increased HTTP client read timeout in session manager and in regression tests.
This fixes regression tests execution on slow hosts.
2020-04-01 17:39:48 +02:00
Andrea Bondavalli
92d43383c2 Merge branch 'master' into 8_channels_demo 2020-03-31 19:42:11 +02:00
Andrea Bondavalli
9aaea28fa7 Merge branch 'master' into 8_channels_demo 2020-03-31 19:41:37 +02:00
Andrea Bondavalli
bae57687fd
Update README.md 2020-03-31 19:35:34 +02:00
Andrea Bondavalli
7299b0f5be Addded short introduction 2020-03-31 18:47:58 +02:00
Andrea Bondavalli
22cdd55085 Addded short introduction 2020-03-31 18:46:20 +02:00
Andrea Bondavalli
0fccbf57d6 Changed demo configuration to loopback test with 8 channels 2020-03-30 19:17:30 +02:00
Andrea Bondavalli
b14e0d56d7 Merge branch 'master' of https://github.com/andreabondavalli74/aes67-linux-daemon 2020-03-30 19:01:43 +02:00
Andrea Bondavalli
71c0cc7656 Changes to WebUI:
- added support to the WebUI for 6 samples (125ms @ 48Khz) per packet in Source configuration
- enhanced remote source SDP listing in Sink configuration to display remote SDP source, address and name
2020-03-30 19:00:00 +02:00
Andrea Bondavalli
499bad529d Disable mDNS discovery during the demo. 2020-03-30 18:59:24 +02:00
Andrea Bondavalli
bf8a4c56da Fixed handling of IGMP join and leave for the multicast RTP sessions.
The IGMP handling was broken in case the RTP multicast address of a stream was updated.
2020-03-30 18:58:07 +02:00
Andrea Bondavalli
3947b77d7c Fixed error check of rtp_mcast_base and sap_mcast_addr parameters.
The problem was preventing the possibility to change the values from the defaults of these two parameters.
2020-03-30 18:55:10 +02:00
Andrea Bondavalli
0e757d475d
Update README.md 2020-03-29 20:07:35 +02:00
Andrea Bondavalli
24fa02e850
Update README.md 2020-03-29 20:05:17 +02:00
Andrea Bondavalli
3c295a3c96 Merge branch 'master' of https://github.com/andreabondavalli74/aes67-linux-daemon 2020-03-29 19:44:10 +02:00
Andrea Bondavalli
5deb6c1927 Added to the daemon the support for Multicast DNS (using Linux Avahi) to allow discovery of remote audio sources and of RTSP for SDP transfer.
Added to the WebUI the possibility to directly select a remote source SDP file for a Sink.

New files:
daemon/mdns_client.hpp,cpp -> mDNS client implementation using Avahi client library
daemon/rtsp_client.hpp,cpp -> RTSP client implementation used to transfer SDP file
daemon/utils.cpp -> used for common utility functions
.clang-format -> added clang-format configuration file

Modified files:
daemon/CMakeList.txt -> added support for Avahi and option WITH_AVAHI=[yes/no] to compile the daemon with or without Avahi mDNS support
daemon/config.hpp,cpp -> added configuration option mdns_enabled to enable or disable mDNS discovery at runtime
daemon/json.cpp -> extended JSON config with mdns_enabled option
daemon/browser.hpp,cpp -> added support for mDNS client to the browser
daemon/session_manager.cpp -> added support for RTSP protocol to Source URL field and fixed issue with SDP file parsing
webui/RemoteSources.js -> added visualization of mDNS remote sources
webui/SinkEdit.js -> added the possibility to directly select a remote source SDP file for a Sink
webui/SourceInfo.js -> added visualization of protocol source (SAP, mDNS or local) for a source
ubuntu-packages.sh -> added libavahi-client-dev to the list of required packages
build.sh -> added WITH_AVAHI=yes option when invoking CMake
README.md -> added notes about mDNS support via Avahi
daemon/README.md -> added notes about mDNS support via Avahi, support for RTSP protocol in source and new mdns_enabled config param

Additional minor changes to remaining files.
2020-03-29 19:41:56 +02:00
Andrea Bondavalli
6fca37812a
Update README.md 2020-03-25 20:21:36 +01:00
Andrea Bondavalli
596500b130 Minor changes 2020-03-20 22:58:21 +01:00
Andrea Bondavalli
dff3ab3cba Multiple fixes:
- fixed destination MAC address set when adding a source and a sink according to IANA specs
- fixed retrieval of network interface MAC address
- added <list> inclusion to header files using std::list
- fixed regression test suite
- additional minor changes
2020-03-20 18:58:08 +01:00
Andrea Bondavalli
a70505989f Minor changes 2020-03-06 23:11:54 +01:00
Andrea Bondavalli
27bee43c20 Fixes to documentation 2020-03-06 11:16:39 -08:00
Andrea Bondavalli
d99bf3ed4a Added SAP browser functionalities to the daemon and the WebUI
- added "sap_mcast_addr" parameter to daemon conguration and WebUI to configure the SAP multicast address used for sending and receiving source announcements
- added REST API to retrieve the remote sources collected by the daemon (GET /api/browse/sources)
- added Browser tab to the WebUI to visualize info on the available remote sources
- added Info function to sources listed in the Sources tab to visualize the associated SDP file
- extended daemon regression tests to test the SAP Browser
2020-03-06 10:58:07 -08:00
Andrea Bondavalli
f57046a478 fix: use steady_clock instead of high_resolution_clock to avoid being affected by date/time changes 2020-03-02 19:06:21 +01:00
Andrea Bondavalli
c62ccdb808 Added fix to ALSA RAVENNA/AES67 module to solve compilation error "undefined named operand ‘new’" using kernel headers 5.4.19-rt11.
Since this fix seems to work on all the kernels I tested so fax (> 4.14.x) I add it to the generic fixes patch file (ravenna-alsa-lkm-fixes.patch).
2020-02-29 10:41:31 +01:00
Andrea Bondavalli
9166c22828
Update README.md 2020-02-26 21:09:34 +01:00
Andrea Bondavalli
4a5f2f8dc0
Fix to the max_sample_per_packet parameter description 2020-02-13 19:18:23 +01:00
Andrea Bondavalli
e1ce27a029 Fixed execution of regression tests on very slow hosts: wait up to 10secs for the daemon to show up at startup.
Consider disabling valgrind in such cases (_MEMORY_CHECK_ define).
2020-02-12 22:05:27 +01:00
Andrea Bondavalli
2636995720
Update README.md 2020-02-12 20:33:56 +01:00
Andrea Bondavalli
b3c856e67e Added documentation for get PTP Status REST API 2020-02-12 19:47:19 +01:00
Andrea Bondavalli
d9e167c5ab
Update README.md 2020-02-11 08:10:52 +01:00
Andrea Bondavalli
4c8b225c44 Set of fixes impacting playout delay, max SAP message size and minor enhancements to WebUI. 2020-02-10 21:32:02 +01:00
Andrea Bondavalli
8fbfbf9869 WebUI PTP component split into PTPConfig and PTPStatus components 2020-02-08 01:19:51 -08:00