Files
openpilot-evo/panda/examples/get_panda_password.py
T
Vehicle Researcher 9032365ea1 Merge commit '3966ad4c4d9052a39cef759cea211d614613f285' as 'panda'
old-commit-hash: 983120bfed09ad9331fa96be3143a604c9a1a179
2019-06-28 21:09:12 +00:00

20 lines
414 B
Python

#!/usr/bin/env python
from panda import Panda
def get_panda_password():
try:
print("Trying to connect to Panda over USB...")
p = Panda()
except AssertionError:
print("USB connection failed")
sys.exit(0)
wifi = p.get_serial()
#print('[%s]' % ', '.join(map(str, wifi)))
print("SSID: " + wifi[0])
print("Password: " + wifi[1])
if __name__ == "__main__":
get_panda_password()