| ... | @@ -96,6 +96,117 @@ sending default TDACs |
... | @@ -96,6 +96,117 @@ sending default TDACs |
|
|
#
|
|
#
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
|
To execute these commands automatically at pearycli startup, you can create a text file, for example `config.cfg`, containing the following lines :
|
|
|
|
|
|
|
|
```
|
|
|
|
add_device ATLASPix
|
|
|
|
SetMatrix M1 0
|
|
|
|
powerOn 0
|
|
|
|
configure 0
|
|
|
|
powerStatusLog 0
|
|
|
|
```
|
|
|
|
|
|
|
|
Then, start the pearycli, specifying the path of this file in the arguments :
|
|
|
|
```
|
|
|
|
pearycli -r config.cfg
|
|
|
|
```
|
|
|
|
The result :
|
|
|
|
```
|
|
|
|
|16:45:19.400| (WARNING) No configuration file provided, all devices will use defaults!
|
|
|
|
|16:45:19.401| (INFO) Welcome to pearyCLI.
|
|
|
|
|16:45:19.401| (INFO) Currently 0 devices configured.
|
|
|
|
|16:45:19.401| (INFO) To add new devices use the "add_device" command.
|
|
|
|
# exit
|
|
|
|
|16:45:21.131| (INFO) Done. And thanks for all the fish.
|
|
|
|
root@caribou:~# pearycli -r PEARYDATA/scripts/ap1b02w10s30.cfg
|
|
|
|
|16:45:23.264| (WARNING) No configuration file provided, all devices will use defaults!
|
|
|
|
[0] add_device ATLASPix
|
|
|
|
|16:45:23.271| (INFO) Creating new instance of device "ATLASPix".
|
|
|
|
|16:45:23.271| (STATUS) New Caribou device instance, version peary v0.9+596~g062fe2c
|
|
|
|
|16:45:23.271| (STATUS) This device is managed through the device manager.
|
|
|
|
|16:45:23.272| (STATUS) Firmware version: 0x64a530a7 (12/9/2018 19:2:39)
|
|
|
|
|16:45:23.276| (INFO) Setting clock circuit on CaR board ATLASPixDevice
|
|
|
|
|16:45:24.406| (INFO) Appending instance to device list, device ID 0
|
|
|
|
|16:45:24.407| (INFO) Manager returned device ID 0.
|
|
|
|
|
|
|
|
[1]
|
|
|
|
|
|
|
|
[2] SetMatrix M1 0
|
|
|
|
|
|
|
|
[3]
|
|
|
|
|
|
|
|
[5]
|
|
|
|
|
|
|
|
[6] powerOn 0
|
|
|
|
|16:45:24.435| (INFO) ATLASPixDevice: Powering up ATLASPix
|
|
|
|
|
|
|
|
|
|
|
|
[7]
|
|
|
|
|
|
|
|
[8] configure 0
|
|
|
|
|16:45:25.455| (INFO) Configuring ATLASPixDevice with default configuration
|
|
|
|
sending default TDACs
|
|
|
|
|16:45:25.754| (INFO) Setting registers from configuration:
|
|
|
|
|
|
|
|
[9]
|
|
|
|
|
|
|
|
[10]
|
|
|
|
|
|
|
|
[11]
|
|
|
|
|
|
|
|
[12] powerStatusLog 0
|
|
|
|
|16:45:25.758| (INFO) ATLASPixDevice power status:
|
|
|
|
|16:45:25.758| (INFO) VDDD:
|
|
|
|
|16:45:25.758| (INFO) Bus voltage: 1.855V
|
|
|
|
|16:45:25.759| (INFO) Bus current: 0.029238A
|
|
|
|
|16:45:25.761| (INFO) VDDA:
|
|
|
|
|16:45:25.761| (INFO) Bus voltage: 1.8225V
|
|
|
|
|16:45:25.762| (INFO) Bus current: 0.0805112A
|
|
|
|
|16:45:25.763| (INFO) VSSA:
|
|
|
|
|16:45:25.763| (INFO) Bus voltage: 1.17375V
|
|
|
|
|16:45:25.764| (INFO) Bus current: 0.0294821A
|
|
|
|
|16:45:25.765| (INFO) VDDRam:
|
|
|
|
|16:45:25.765| (INFO) Bus voltage: 1.88375V
|
|
|
|
|16:45:25.766| (INFO) Bus current: 0A
|
|
|
|
|16:45:25.767| (INFO) VCC25:
|
|
|
|
|16:45:25.768| (INFO) Bus voltage: 2.5075V
|
|
|
|
|16:45:25.768| (INFO) Bus current: 0.0299704A
|
|
|
|
|16:45:25.769| (INFO) VDDHigh:
|
|
|
|
|16:45:25.770| (INFO) Bus voltage: 1.86V
|
|
|
|
|16:45:25.771| (INFO) Bus current: 0.0194716A
|
|
|
|
```
|
|
|
|
|
|
|
|
Any commands usable interactively can be added to this file to define the initial sequence of commands at startup.
|
|
|
|
|
|
|
|
The commands available in the pearycli are divided in two categories:
|
|
|
|
* Peary commands : commands to be implemented by each devices, not specific to the ASIC under study
|
|
|
|
* ATLASPix commands : commands specific to the ATLASPix, defined in the [ATLASPix code](https://gitlab.cern.ch/ATLASPix/peary/tree/master/devices/ATLASPix)
|
|
|
|
|
|
|
|
The next sections will detail each of these commands and their purposes
|
|
|
|
# Peary commands
|
|
|
|
* `add_device <device type>`
|
|
|
|
* `configure <ID>`
|
|
|
|
* `daqStart <ID>`
|
|
|
|
* `daqStop <ID>`
|
|
|
|
* exit
|
|
|
|
* help
|
|
|
|
* list_commands
|
|
|
|
* list_devices
|
|
|
|
* powerOff
|
|
|
|
* powerOn
|
|
|
|
* quit
|
|
|
|
* reset
|
|
|
|
* setBias
|
|
|
|
* setRegister
|
|
|
|
* verbosity
|
|
|
|
* version
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ... | |
... | |
| ... | | ... | |