Dear Chris,
many thanks for all your info and suggestions. For the moment I want to test netjack2, I will definitively try the zita bridge asap.

Regarding your questions, I have never truncated the commands outputs.


Firstly, the -Cno -Pyes commands remove the warning "Default input and output devices are not the same !!", while having only -P does not.
I have specified the parameters for coreaudio. I did various trials, I report the outputs below.


TRIAL 1 ----------------------------------------------------
On the master (Mac computer)

sh-3.2# jackd -P 70 -p96 -t 2000 -dcoreaudio  -s -r48000 -p128 -n2 -Cno -Pyes
jackdmp 1.9.11
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2016 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK server starting in realtime mode with priority 70
self-connect-mode is "Don't restrict self connect requests"
Separated input = 'Built-in Microphone'
Separated output = 'Built-in Output'
Clock drift compensation was asked but is not needed (devices use the same clock domain)
Ignore incorrect channel mapping value = 2
Input channel = 0 ==> JACK input port = 0
Input channel = 1 ==> JACK input port = 1
JACK output port = 0 ==> output channel = 0
JACK output port = 1 ==> output channel = 1
DeviceNotificationCallback kAudioDeviceProcessorOverload
CoreAudio driver is running...
Starting Jack NetManager
Listening on '225.3.19.154:19000'
Takes physical 2 audio output(s) for slave
Takes physical 0 MIDI input(s) for slave
Takes physical 0 MIDI output(s) for slave
Sending parameters to ...
Floating point exception: 8



On the slave (the linux odroid board):


> jackd -R -d net
jackdmp 1.9.11
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2015 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
no message buffer overruns
no message buffer overruns
no message buffer overruns
JACK server starting in realtime mode with priority 10
self-connect-mode is "Don't restrict self connect requests"
NetDriver started in async mode without Master's transport sync.
Waiting for a master...
Initializing connection with ucas-MacBook-Pro-9.local...
Maximum number of input ports is reached for application ref = 0
driver: cannot register port for system:midi_playback_769
Can't allocate ports.
Initing net driver fails...









TRIAL 2 ----------------------------------------------------

On the master (Mac computer)


sh-3.2# jackd -P 70 -p96 -t 2000 -dcoreaudio  -s -r48000 -p128 -n2 -Cno -Pyes
jackdmp 1.9.11
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2016 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK server starting in realtime mode with priority 70
self-connect-mode is "Don't restrict self connect requests"
Separated input = 'Built-in Microphone'
Separated output = 'Built-in Output'
Clock drift compensation was asked but is not needed (devices use the same clock domain)
Ignore incorrect channel mapping value = 2
Input channel = 0 ==> JACK input port = 0
Input channel = 1 ==> JACK input port = 1
JACK output port = 0 ==> output channel = 0
JACK output port = 1 ==> output channel = 1
DeviceNotificationCallback kAudioDeviceProcessorOverload
CoreAudio driver is running...
Starting Jack NetManager
Listening on '225.3.19.154:19000'
Sending parameters to ...
Can't set net buffer sizes : Invalid argument
SetParams error...
Can't init new NetMaster...
Waiting for a slave...


On the slave (the linux odroid board):


> jackd -R -d net -a 225.3.19.154 -p 19000 -C 0 -P 2 -i 0 -o 0
jackdmp 1.9.11
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2015 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
no message buffer overruns
no message buffer overruns
no message buffer overruns
JACK server starting in realtime mode with priority 10
self-connect-mode is "Don't restrict self connect requests"
NetDriver started in async mode without Master's transport sync.
Waiting for a master...
Initializing connection with ucas-MacBook-Pro-9.local...
Maximum number of input ports is reached for application ref = 0
driver: cannot register port for system:midi_playback_767
Can't allocate ports.
Initing net driver fails...





TRIAL 3----------------------------------------------------

On the master (Mac computer)

jack_load netmanager -i "-h" gives:

Internal client parameters:
-a, --multicast-ip Multicast address (default: 225.3.19.154)
-p, --udp-net-port UDP port (default: 19000)
-c, --auto-connect Auto connect netmaster to system ports (default: false)
-s, --auto-save Save/restore netmaster connection state when restarted (default: false)


Therefore I typed: jack_load netmanager -i "-c true"
netmanager is running.
client name = netmanager

The result does not change....


sh-3.2# jackd -P 70 -p96 -t 2000 -dcoreaudio  -s -r48000 -p128 -n2 -Cno -Pyes
jackdmp 1.9.11
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2016 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK server starting in realtime mode with priority 70
self-connect-mode is "Don't restrict self connect requests"
Separated input = 'Built-in Microphone'
Separated output = 'Built-in Output'
Clock drift compensation was asked but is not needed (devices use the same clock domain)
Ignore incorrect channel mapping value = 2
Input channel = 0 ==> JACK input port = 0
Input channel = 1 ==> JACK input port = 1
JACK output port = 0 ==> output channel = 0
JACK output port = 1 ==> output channel = 1
CoreAudio driver is running...
Starting Jack NetManager
Listening on '225.3.19.154:19000'
Sending parameters to ...
Can't set net buffer sizes : Invalid argument
SetParams error...
Can't init new NetMaster...
Waiting for a slave...






On the slave (the linux odroid board):


> jackd -R -d net -a 225.3.19.154 -p 19000 -C 0 -P 2 -i 0 -o 0
jackdmp 1.9.11
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2015 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
no message buffer overruns
no message buffer overruns
no message buffer overruns
JACK server starting in realtime mode with priority 10
self-connect-mode is "Don't restrict self connect requests"
NetDriver started in async mode without Master's transport sync.
Waiting for a master...
Initializing connection with ucas-MacBook-Pro-9.local...
Maximum number of input ports is reached for application ref = 0
driver: cannot register port for system:midi_playback_767
Can't allocate ports.
Initing net driver fails...




TRIAL 4 ----------------------------------------------------


I used a different buffer size 1024 and with or without specifying the maximum number of port of jackd

jackd -P 70  -t 2000 -dcoreaudio  -s -r48000 -p1024 -n2 -Cno -Pyes

jackd -P 70  -p96  -t 2000 -dcoreaudio  -s -r48000 -p1024 -n2 -Cno -Pyes


The result are the same of before.,...





TRIAL 5 ----------------------------------------------------

Notably if I just us:  jackd -R -d net  or  jackd -R -d net -a 225.3.19.154 -p 19000 or 

the crashing error "Floating point exception: 8" arises, while it does not specifying jackd -R -d net -a 225.3.19.154 -p 19000 -C 0 -P 2  (see TRIAL 6) :





On the master (Mac computer)

sh-3.2# jackd -P 70 -p96 -t 2000 -dcoreaudio  -s -r48000 -p128 -n2 -Cno -Pyes
jackdmp 1.9.11
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2016 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK server starting in realtime mode with priority 70
self-connect-mode is "Don't restrict self connect requests"
Separated input = 'Built-in Microphone'
Separated output = 'Built-in Output'
Clock drift compensation was asked but is not needed (devices use the same clock domain)
Ignore incorrect channel mapping value = 2
Input channel = 0 ==> JACK input port = 0
Input channel = 1 ==> JACK input port = 1
JACK output port = 0 ==> output channel = 0
JACK output port = 1 ==> output channel = 1
DeviceNotificationCallback kAudioDeviceProcessorOverload
CoreAudio driver is running...
Starting Jack NetManager
Listening on '225.3.19.154:19000'
Takes physical 2 audio output(s) for slave
Takes physical 0 MIDI input(s) for slave
Takes physical 0 MIDI output(s) for slave
Sending parameters to ...
Floating point exception: 8



On the slave (the linux odroid board):


> jackd -R -d net
jackdmp 1.9.11
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2015 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
no message buffer overruns
no message buffer overruns
no message buffer overruns
JACK server starting in realtime mode with priority 10
self-connect-mode is "Don't restrict self connect requests"
NetDriver started in async mode without Master's transport sync.
Waiting for a master...
Initializing connection with ucas-MacBook-Pro-9.local...
Maximum number of input ports is reached for application ref = 0
driver: cannot register port for system:midi_playback_769
Can't allocate ports.
Initing net driver fails...















TRIAL 6 ----------------------------------------------------



On the master (Mac computer)

sh-3.2# jackd -P 70 -p96 -t 2000 -dcoreaudio  -s -r48000 -p128 -n2 -Cno -Pyes
jackdmp 1.9.11
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2016 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK server starting in realtime mode with priority 70
self-connect-mode is "Don't restrict self connect requests"
Separated input = 'Built-in Microphone'
Separated output = 'Built-in Output'
Clock drift compensation was asked but is not needed (devices use the same clock domain)
Ignore incorrect channel mapping value = 2
Input channel = 0 ==> JACK input port = 0
Input channel = 1 ==> JACK input port = 1
JACK output port = 0 ==> output channel = 0
JACK output port = 1 ==> output channel = 1
CoreAudio driver is running...
Starting Jack NetManager
Listening on '225.3.19.154:19000'
Takes physical 0 MIDI output(s) for slave
Sending parameters to ...
Can't set net buffer sizes : Invalid argument
SetParams error...
Can't init new NetMaster...
Waiting for a slave...




On the slave (the linux odroid board):


> jackd -R -d net -a 225.3.19.154 -p 19000 -C 0 -P 2
jackdmp 1.9.11
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2015 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
no message buffer overruns
no message buffer overruns
no message buffer overruns
JACK server starting in realtime mode with priority 10
self-connect-mode is "Don't restrict self connect requests"
NetDriver started in async mode without Master's transport sync.
Waiting for a master...
Initializing connection with ucas-MacBook-Pro-9.local...
Maximum number of input ports is reached for application ref = 0
driver: cannot register port for system:midi_playback_767
Can't allocate ports.
Initing net driver fails...









Still the problems persists. I can't proceed... Any further suggestion to make work the two jackified units?



Cheers



On Mon, May 1, 2017 at 6:00 PM, Chris Caudle <chris@chriscaudle.org> wrote:
I had some firewall configuration problems preventing successful multicast
packet exchange between my test machines, but I got that sorted out by
temporarily just disabling the firewall on one machine.

This is the output I see from each machine.

On machine with USB interface attached (jackd master):

]$ /usr/bin/jackd -P70 -t2000 -dalsa -dhw:Lambda -r48000 -p1024 -n3 -Xseq
-zt -I376 -O376
jackdmp 1.9.10
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2014 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
no message buffer overruns
no message buffer overruns
no message buffer overruns
JACK server starting in realtime mode with priority 70
self-connect-mode is "Don't restrict self connect requests"
audio_reservation_init
Acquire audio card Audio0
creating alsa driver ...
hw:Lambda|hw:Lambda|1024|3|48000|0|0|nomon|swmeter|-|32bit
configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 3 periods
ALSA: final selected sample format for capture: 24bit little-endian
ALSA: use 3 periods for capture
ALSA: final selected sample format for playback: 24bit little-endian
ALSA: use 3 periods for playback
Using port names patch v0.1 (07.04.2010)
Trying to load portnames from /home/chris/.config/jack/cards/Lexicon
Lambda.ss.ports.in
Trying to load portnames from /home/chris/.config/jack/cards/Lexicon
Lambda.ports.in
Trying to load portnames from /etc/jack/cards/Lexicon Lambda.ss.ports.in
Trying to load portnames from /etc/jack/cards/Lexicon Lambda.ports.in
Trying to load portnames from /home/chris/.config/jack/cards/Lexicon
Lambda.ss.ports.out
Trying to load portnames from /home/chris/.config/jack/cards/Lexicon
Lambda.ports.out
Trying to load portnames from /etc/jack/cards/Lexicon Lambda.ss.ports.out
Trying to load portnames from /etc/jack/cards/Lexicon Lambda.ports.out
port created: Midi-Through:midi/playback_1
port created: Midi-Through:midi/capture_1
port created: Lexicon-Lambda:midi/playback_1
port created: Lexicon-Lambda:midi/capture_1

--------------------
in separate console loaded netmanager at this point.
output from netmanager load:
$ jack_load netmanager
netmanager is running.
client name = netmanager
--------------------

Starting Jack NetManager
Listening on '225.3.19.154:19000'

---------------------
slave machine jackd started at this point
This is still output from master side, just making a timing notation
---------------------

Takes physical 2 audio input(s) for slave
Takes physical 2 audio output(s) for slave
Takes physical 2 MIDI input(s) for slave
Takes physical 2 MIDI output(s) for slave
Sending parameters to oldchubb...
New NetMaster started
**************** Network parameters ****************
Name : oldchubb
Protocol revision : 8
MTU : 1500
Master name : chubb.cc-net
Slave name : oldchubb
ID : 1
Transport Sync : no
Send channels (audio - midi) : 2 - 2
Return channels (audio - midi) : 2 - 2
Sample rate : 48000 frames per second
Period size : 1024 frames per period
Network latency : 5 cycles
SampleEncoder : Float
Slave mode : async
****************************************************
Waiting for a slave...
Synching with latency = 0
Synching with latency = 1
Synching with latency = 2
Synching with latency = 3
Synching with latency = 4


Output from slave side:

$ /usr/bin/jackd -dnet
jackdmp 1.9.10
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2014 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
no message buffer overruns
no message buffer overruns
no message buffer overruns
JACK server starting in realtime mode with priority 20
self-connect-mode is "Don't restrict self connect requests"
NetDriver started in async mode without Master's transport sync.
Waiting for a master...
Initializing connection with chubb.cc-net...
**************** Network parameters ****************
Name : oldchubb
Protocol revision : 8
MTU : 1500
Master name : chubb.cc-net
Slave name : oldchubb
ID : 1
Transport Sync : no
Send channels (audio - midi) : 2 - 2
Return channels (audio - midi) : 2 - 2
Sample rate : 48000 frames per second
Period size : 1024 frames per period
Network latency : 5 cycles
SampleEncoder : Float
Slave mode : async
****************************************************


So it seems that contrary to the documentation netjack2 will create MIDI
channels by default, and at least on my system (where the interface does
support duplex mode) I can start netjack with no arguments and the default
behavior will successfully create a connection.

So I think at this point my guess is that the last output shown by the
original poster indicates some kind of mismatch between the jack ALSA
parameters and the allowed netjack parameters:
>> Can't set net buffer sizes : Invalid argument
>> SetParams error...
>> Can't init new NetMaster...

I thought maybe the buffer size was too large, but the original post was
using -p128 -n2, and at least on my machine I use -p1024 -n3 and that did
not have a problem.

But again, the last message from the original post did not show the
"configuring for..." output line from jackd, so either the jackd output
was truncated in the posting, removing information necessary to help
debug, or the ALSA backend did not actually start correctly.

--
Chris


_______________________________________________
Jack-Devel mailing list
Jack-Devel@lists.jackaudio.org
http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org