mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-19 11:52:12 +08:00
Squashed 'panda/' changes from 5570dac..b058c14
b058c14 add build step for legacy board to CI 866dd85 Fix README (#133) c2a0853 Hyundai safety: 593 also needs ot be modified 594863c Hyundai: added initial safety files which just fwd bus 0 to 2 and viceversa, except for lkas msgs 905a935 fixed pedal and legacy board builds: no float support 0a480ec moved interpolate function to safety header d7bd473 Merge pull request #131 from appleguru/master c0b1ef2 Example to get wifi password from panda over USB using python library 01c0383 Merge pull request #128 from appleguru/gmlan_gpio f9a46e3 Match safety order from master aafbe05 GMLAN GPIO Rebase 37df290 rename to gmlan_alt git-subtree-dir: panda git-subtree-split: b058c145709a93d56fbe764701962e7d97344ecf
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#!/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()
|
||||
Reference in New Issue
Block a user