Using IPbus: Difference between revisions

From pCT
No edit summary
No edit summary
Line 26: Line 26:
To be able to read values from registers, a custom DummyHardwareUdp.exe can be built from this repository:
To be able to read values from registers, a custom DummyHardwareUdp.exe can be built from this repository:
[https://github.com/norscope/ipbus-software/tree/smartdummy IPbus Custom Repo]
[https://github.com/norscope/ipbus-software/tree/smartdummy IPbus Custom Repo]
This adds a file reader in the DummyHardware.cpp that reads a file in the directory of the executable, the file is called register-values.txt, an example file can be found here: [[:Media:register-values.txt | Example file]]





Revision as of 08:15, 8 September 2020

Main Page -> Control & Readout Software Documentation and Howto's -> Using IPbus

Use case

IPbus is a control protocol that uses UDP/IP to send values into the registers on the readout unit (RU). The software on the host computer uses the Hardware Access Library (uHAL) to send the commands to the RU. Ipbus-conect6.png


Configuration files

There is a main connection file (pRU-connections.xml), this file contains the address and port of the RU, for information on the content of the connection file please see the pRU Ethernet Configurations document.

Following there is a Module registers file (module-address.xml), this file contains a table with all the registers present in the RU.

Finally, there are files for each register

  • global_regs.xml
  • trigger_manager.xml
  • offload.xml
  • alpide_control.xml
  • alpide_data.xml

As of the writing of this page, these files can be found on the production_test repository in the ipbus branch under the BSP folder.

WARNING: To prevent undefined behavior the register files MUST match the firmware version!


Smart Dummy Hardware

To be able to read values from registers, a custom DummyHardwareUdp.exe can be built from this repository: IPbus Custom Repo

This adds a file reader in the DummyHardware.cpp that reads a file in the directory of the executable, the file is called register-values.txt, an example file can be found here: Example file



Additonal information

For more information, please consult the IPbus wiki at: IPbus wiki