19-Apr-2019, 02:50 PM
(18-Apr-2019, 11:18 AM)agent_kith Wrote: Something like this.
For controller:
Code:# Controller
[code]auto eth0
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.1Code:auto eth1
iface eth1 inet static
address 192.168.2.1
netmask 255.255.255.252
And on your renderer:
Code:
#Renderer
auto eth0
iface eth0 inet static
address 192.168.2.2
netmask 255.255.255.252
gateway 192.168.2.1
Note:
- the use of the 255.255.255.252 subnet mask. This gives you only 2 hosts on this subnet, which is OK because that's really what you want to do anyway.
- Don't think the renderer can access the Internet in this setup. Will need to add IP forwarding/routing to the usbnet kernel to enable this (let me know if you want this)
- You can only "talk" to the renderer from controller. If you need to access from everywhere else, you'll need a new kernel, and add a static route on the router to let itself know it needs to route traffic to 192.168.2.0/255.255.255.252 (or 192.168.2.1//30) via 192.168.1.10
Again many thanks, that works. Fantastic!!
I also did the cyclic with bot ports working and music playing with resampling to 192 and I get pretty similar to before. will have a listen now and see if it was worth all the effort (mostly yours)
# /dev/cpu_dma_latency set to 0us
T: 0 ( 2024) P:80 I:10000 C: 10000 Min: 1645 Act: 4641 Avg: 4803 Max: 41759
T: 1 ( 2025) P:80 I:10500 C: 9526 Min: 1773 Act: 4295 Avg: 4780 Max: 28456
cyclictest is displaying Min, Act, Avg and Max times in terms of nanoseconds (ns) and NOT the default of microseconds (μs). To get the original μs benchmark please divide the numbers above by 1000 (1 μs = 1000 ns).