summaryrefslogtreecommitdiffstats
path: root/src/osmo_gsm_tester/powersupply_sispm.py
AgeCommit message (Collapse)AuthorFilesLines
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