path: root/src/osmo_gsm_tester/powersupply_sispm.py
AgeCommit message (Collapse)AuthorFilesLines
2020-04-11Move object classes used by tests into obj/ subdirPau Espin Pedrol1-113/+0
Change-Id: I0b2963cf00acd1f9036dca2e87aa3b87a0f8066d
2020-04-11Create core directory to contain most of code not in object classes used by ↵Pau Espin Pedrol1-2/+2
tests Change-Id: I9aec6c55ccd71894182057d36e0025b69925d314
2018-05-28powersupply_sispm: Add port number to log namePau Espin Pedrol1-0/+1
This way it can easily be spotted which port is being triggered in case someone wants to manually test it. Change-Id: Ibd2c70170d97a786e37b6838b1ed6d4eb637ad8b
2018-04-04Drop event_loop global functions and import MainLoopPau Espin Pedrol1-2/+3
Take the chance to identify and drop modules importing event_loop but not using it. Change-Id: Ifa1940cd00138ebc72fbcfd45a0e28246f7a5ed9
2018-03-15Introduce PowerSupply interface and PowerSupplySispmPau Espin Pedrol1-0/+111
File powersupply.py defines the interface to be used by child classes implementing it. It also provides helpers to allocate a child class based on configuration provided ('type' field). File powersupply_sispm.py is an implementation using pysispm [1], as it's the one used to control the programmable power socket we have right now. This kind of class will be used in later commits by Nanobts class, as we want to poweroff the Nanobts completelly when not in use. Using it requires the following extra dependencies: $ apt-get install python3-usb $ pip3 install pysispm Related: OS#3040 [1] https://github.com/xypron/pysispm Change-Id: I981c260eca1a61657147e6d83b4226618088223c