Hi @martijn-hemeryck, those are great news! I'm glad we were able to put it together, together:) I'm looking forward for your results.
My job at UniPi is to make our amazing products easier to use than ever.
I don't have any USB sound card here at the moment, but I googled "headless pulseaudio" and so far this tutorial looks OK:
The only change I did is in the first command, to which I added --no-install-recommends and it omitted the GUI stuff:
sudo apt-get install libasound2 libasound2-plugins alsa-utils alsa-oss --no-install-recommends
Again, changing kernel in embedded devices is the latest thing you should do. And I am sorry for the misinformation about the stock kernel vs. kernel provided in axon-kernel package, you are correct.
@martijn-hemeryck Each channel has to have its own power supply because otherwise you would connect all the buses together.
We don't have any trusted DALI PSUs, but Meanwell is my personal brand of choice. The only thng you need to select is the wattage and that can be deduced from the devices which you intend to connect to the bus. Some devices are powered only through the bus (switches,..), some devices have their own power supply connections (typically the more power hungry - lights and so on)
Edit: The DALI PSU is a special power supply, which powers the transcivers in the DALI devices connected to the bus and the maximum current for the bus is 250mA. The reason, why we didn't integrate the PSU into the Axon S605 is the size and the convenience of having the external power supply. The power supply should be in the middle of the bus and when the PSU dies, it is easier to replace it instead of replacing the whole PLC.
Hi @martijn-hemeryck, just a quick question - do you have the DALI power supply connected to the bus? The topology of the DALI has to be like this:
@ntd Downgrading of the kernel could work, but it is never the correct solution, since you will not receive updates.
The alsa-base image is not the correct one: https://packages.debian.org/search?suite=all&searchon=names&keywords=alsa-base
The preffered sound system in Debian is PulseAudio, so try following this information: https://wiki.debian.org/PulseAudio
the kernel for Axons is a stock kernel provided by Debian. Can you check how your USB audio card is detected? Unplug it (if already plugged in) and then plug it again and run these commands (the
lsusb will need
# dmesg # lsusb
The problem probably lies in missing audio subsystem, which we ofcourse omitted. You can try following any Debian tutorial for installing ALSA or PulseAudio.
Is this answer sufficient for you?
the ModbusTCP server is still actively developed and it is our most supported API. On Neuron and Axon, make sure you have the most up-to-date version of unipi-modbus-tools package, which you can find in our official repository: https://kb.unipi.technology/en:sw:04-unipi-firmware#apt_repository
Then you can access the ModbusTCP server on 127.0.0.1:502. The documentation of Modbus Registers Map for each device is here: https://kb.unipi.technology/files:products:00-start
If you need very fast access to the IOs (except 1-Wire), I would suggest you to take a look at the SysFS approach. You can find documentation of the endpoints here: https://git.unipi.technology/UniPi/unipi-kernel/blob/master/docs/sysfs-platform-unipi.txt
Let me know, what you have picked.
then I suggest you to take a look at PyModbus, especially the client example: https://pymodbus.readthedocs.io/en/latest/readme.html#example-code
On the side of the Mervis, you need to create Modbus Server, see: https://kb.unipi.technology/en:sw:01-mervis:setting-modbus-server-hidden
In the Mervis Modbus Server, you will define registers and coils pointing to some Mervis variables. In the Python script, you will write value to these registers/coils.