Install the discovery tool avahi directly on the router. With the help of the LXC Container function, the avahi tool can be used on the router to display the FMS data with itxpt.
Activate the LXC container on the router
In the second step the image of the LXC container in this case Debian.
The easiest way to do this is to install the whole thing over the Internet. However, the router requires a mobile connection to the Internet.
From a Jenkins server you get the current image for the container
* Jenkins Server Page / Link
The “armhf
” tab is important here
Here you can get a Debina image for buster, bullseye or bookworm
.
If you click on the circle with the green rakes, you will be taken to the software. What else is important is that the circle and rakes must be green.
The image is the “rootfs.tar.xz
” which is required. With a right click you can copy the link.
It would be structured like this:
When the “Apply” button is pressed, Debian will be installed.
Under the console you can first check whether the installation has been carried out.
This file must be available under this directory structur
The LXC container is set up and already started.
Set up the LXC container further. A network interface is enabled here.
The container has now also been assigned an IP address.
Always assign a fixed IP address for the LXC container via the DHCP server.
Log in to the LXC container and test whether it can access the Internet.
The container is installed and set up. Now you can set up further tools on the container.
If you have logged in to the LXC container with the command.
$ lxc-attach guest0 root@LXCNAME:~#
You can install the avahi-utils via the packe manager apt-get.
root@LXCNAME:~# apt-get install avahi-utils
You can use the avahi tool completely under the console.
The avahi-browse program will display the multicast DNS addresses on the router.
The -r option resolves the name _itxpt_multicast._udp to an IP.
A service program mreceive is also required for receiving multicast traffic.
Additional programs are required for the installation of the mreceive utility program.
Once you have completed this preparation, you can execute the mreceive utility program with the “make” command.
CC msend.o LINK msend CC mreceive.o LINK mreceive
root@LXCNAME:~/mtools#
Now you only have to change the file on the right and you can use the utility program.
root@LXCNAME:~/mtools# chmod 775 mreceive
To test the mreceive utility program, I have the GNSS multicast traffic output as an XML frame.
root@LXCNAME:~/mtools# ./mreceive -g 239.255.42.21 -p 14005 Now receiving from multicast group: 239.255.42.21 Receive msg 1 from 192.168.1.1:60913: <?xml version="1.0"?><GNSSLocationDelivery version="1.1a"><GNSSLocation><Data>$GNGNS,,,,,,NN,,,,,,*53$GPVTG,,T,,M,,N,,K,N*2C$GP GSA,A,1,,,,,,,,,,,,,,,*1E$GNGSA,A,1,,,,,,,,,,,,,,,*00$GPGGA,,,,,,0,,,,,,,,*66$GPRMC,,V,,,,,,,,,,N*53</ Data><Latitude><Degree>0</Degree><Direction>N</Direction></ Latitude><Longitude><Degree>0</Degree><Direction>E</Direction></ Longitude><Altitude>0</Altitude><Time>15:18:45</Time><Date>2024-06-10</ Date><SpeedOverGround>0</SpeedOverGround><SignalQuality>NotValid</ SignalQuality><NumberOfSatellites>1</ NumberOfSatellites><HorizontalDilutionOfPrecision>0</ HorizontalDilutionOfPrecision><VerticalDilutionOfPrecision>0</ VerticalDilutionOfPrecision><TrackDegreeTrue>0</ TrackDegreeTrue><GNSSType>MixedGNSSTypes</ GNSSType><GNSSCoordinateSystem>WGS84</GNSSCoordinateSystem></GNSSLocation></ GNSSLocationDelivery>