Sometimes, the pi can get into a bad state.
Calling python yroko2_board.py
gives
dict_items([(0, 'GPIO6'), (1, 'GPIO5')])
Could not open gpio pins, resetting (automatic cleanup of pins)
Server address: ('', 8888)
Socket hostname: pi
Traceback (most recent call last):
File "/home/hatlab/yroko2_board.py", line 329, in <module>
sock.bind(server_address)
OSError: [Errno 98] Address already in use
In general, this shows up if for whatever reason there's another copy of the yroko2_board.py process running.
Calling sudo killall python cleans up these processes.
Apparently, just rebooting starts the wrong code, which does not actually change current, but does connect to instrument server. So to operate yroko presently, you have to call killall, then yroko2_board.py.
Sometimes, the pi can get into a bad state.
Calling
python yroko2_board.pygives
In general, this shows up if for whatever reason there's another copy of the yroko2_board.py process running.
Calling
sudo killall pythoncleans up these processes.Apparently, just rebooting starts the wrong code, which does not actually change current, but does connect to instrument server. So to operate yroko presently, you have to call killall, then yroko2_board.py.