5 Commits

5 changed files with 5056 additions and 10 deletions

View File

@@ -12,3 +12,8 @@ make install
cd /srv/crawler cd /srv/crawler
git pull git pull
``` ```
# Notes
[Uart Stuff](https://www.reddit.com/r/raspberry_pi/comments/833qux/binary_file_tranfer_via_uart/)

5031
crawler_cad/External/Bed_moto.obj vendored Normal file

File diff suppressed because it is too large Load Diff

BIN
crawler_cad/External/bed_Moto.FCStd vendored Normal file

Binary file not shown.

Binary file not shown.

View File

@@ -1,15 +1,25 @@
import time, pyotp from random import randrange
import time, pyotp, datetime
totp = pyotp.TOTP(pyotp.random_base32()) hotp = pyotp.HOTP(pyotp.random_base32())
code = totp.now() success = 0
num_tries = 20
for i in range(0,60): for i in range(0,num_tries):
epoch = int(time.time())
code = hotp.at(epoch)
print('------------------------')
print(f'Made a code {code} at {epoch}, sending a simualted instruction')
if totp.verify(code): waittime = randrange(5)
print(f'{code} verified fine at t+{i}') print(f'Instuction will take {waittime} seconds to receive or be recieved')
time.sleep(waittime)
if hotp.verify(code, epoch):
print(f'code:{code} verified')
success += 1
else: else:
print(f'{code} expired at t+{i}') print(f'code:{code} expired')
break
time.sleep(1) print(f'Succeded {success} out of {num_tries} tries')