Commit 69a1e713 authored by Brian Zenowich's avatar Brian Zenowich
Browse files

Mainboard asks for 6060 3 times from each puck, not just twice

parent 388d2108
Pipeline #16169 passed with stage
in 31 seconds
......@@ -296,7 +296,7 @@ class BurtUtil:
Performs the CoAP get request and returns the raw result
"""
protocol = yield from aiocoap.Context.create_client_context()
#print('coap://{0}:{1}/{2}'.format(host, port, path.strip("/")))
request = aiocoap.Message(
uri='coap://{0}:{1}/{2}'.format(host, port, path.strip("/")),
code=aiocoap.PUT, payload=msgpack.packb(payload))
......
......@@ -52,33 +52,43 @@ def run_startup_simulator(ctx, utils):
utils.wait_for_can_msg(0x603, [0x40, 0x84, 0x23, 0x18, 0x00, 0x00])
utils.send_raw_can_msg(0x583, [0x42, 0x84, 0x23, 0x18, 0x05, 0x02])
wait_and_respond_to_sync(utils)
utils.wait_for_can_msg(0x601, [0x22, 0x60, 0x60, 0x00, 0x00])
utils.send_raw_can_msg(0x581, [0x60, 0x60, 0x60, 0x00, 0x00])
utils.wait_for_can_msg(0x602, [0x22, 0x60, 0x60, 0x00, 0x00])
utils.send_raw_can_msg(0x582, [0x60, 0x60, 0x60, 0x00, 0x00])
utils.wait_for_can_msg(0x603, [0x22, 0x60, 0x60, 0x00, 0x00])
utils.send_raw_can_msg(0x583, [0x60, 0x60, 0x60, 0x00, 0x00])
wait_and_respond_to_sync(utils)
utils.wait_for_can_msg(0x601, [0x22, 0x60, 0x60, 0x00, 0x00])
utils.send_raw_can_msg(0x581, [0x60, 0x60, 0x60, 0x00, 0x00])
utils.wait_for_can_msg(0x602, [0x22, 0x60, 0x60, 0x00, 0x00])
utils.send_raw_can_msg(0x582, [0x60, 0x60, 0x60, 0x00, 0x00])
utils.wait_for_can_msg(0x603, [0x22, 0x60, 0x60, 0x00, 0x00])
utils.send_raw_can_msg(0x583, [0x60, 0x60, 0x60, 0x00, 0x00])
wait_and_respond_to_sync(utils)
utils.wait_for_can_msg(0x601, [0x22, 0x60, 0x60, 0x00, 0x00])
utils.send_raw_can_msg(0x581, [0x60, 0x60, 0x60, 0x00, 0x00])
utils.wait_for_can_msg(0x602, [0x22, 0x60, 0x60, 0x00, 0x00])
utils.send_raw_can_msg(0x582, [0x60, 0x60, 0x60, 0x00, 0x00])
utils.wait_for_can_msg(0x603, [0x22, 0x60, 0x60, 0x00, 0x00])
utils.send_raw_can_msg(0x583, [0x60, 0x60, 0x60, 0x00, 0x00])
wait_and_respond_to_sync(utils)
wait_and_respond_to_sync(utils)
utils.wait_for_can_msg(0x602, [0x40, 0x03, 0x20, 0x01, 0x00, 0x00])
utils.send_raw_can_msg(0x582, [0x42, 0x03, 0x20, 0x01, 0x5D, 0x0F])
utils.wait_for_can_msg(0x603, [0x40, 0x03, 0x20, 0x01, 0x00, 0x00])
utils.send_raw_can_msg(0x583, [0x42, 0x03, 0x20, 0x01, 0xB8, 0x0B])
utils.wait_for_can_msg(0x604, [0x40, 0x03, 0x20, 0x01, 0x00, 0x00])
utils.send_raw_can_msg(0x584, [0x42, 0x03, 0x20, 0x01, 0xF2, 0x09])
utils.wait_for_can_msg(0x601, [0x22, 0x40, 0x22, 0x00, 0x0F, 0x0F, 0x00, 0x00])
utils.send_raw_can_msg(0x581, [0x60, 0x40, 0x22, 0x00, 0x00, 0x00, 0x00, 0x00])
utils.wait_for_can_msg(0x602, [0x22, 0x40, 0x22, 0x00, 0xDF, 0x3A, 0x00, 0x00])
utils.send_raw_can_msg(0x582, [0x60, 0x40, 0x22, 0x00, 0x00, 0x00, 0x00, 0x00])
utils.wait_for_can_msg(0x603, [0x22, 0x40, 0x22, 0x00, 0xD8, 0xBA, 0xFF, 0xFF])
utils.send_raw_can_msg(0x583, [0x60, 0x40, 0x22, 0x00, 0x00, 0x00, 0x00, 0x00])
#utils.wait_for_can_msg(0x602, [0x40, 0x03, 0x20, 0x01, 0x00, 0x00])
#utils.send_raw_can_msg(0x582, [0x42, 0x03, 0x20, 0x01, 0x5D, 0x0F])
#utils.wait_for_can_msg(0x603, [0x40, 0x03, 0x20, 0x01, 0x00, 0x00])
#utils.send_raw_can_msg(0x583, [0x42, 0x03, 0x20, 0x01, 0xB8, 0x0B])
#utils.wait_for_can_msg(0x604, [0x40, 0x03, 0x20, 0x01, 0x00, 0x00])
#utils.send_raw_can_msg(0x584, [0x42, 0x03, 0x20, 0x01, 0xF2, 0x09])
#utils.wait_for_can_msg(0x601, [0x22, 0x40, 0x22, 0x00, 0x0F, 0x0F, 0x00, 0x00])
#utils.send_raw_can_msg(0x581, [0x60, 0x40, 0x22, 0x00, 0x00, 0x00, 0x00, 0x00])
#utils.wait_for_can_msg(0x602, [0x22, 0x40, 0x22, 0x00, 0xDF, 0x3A, 0x00, 0x00])
#utils.send_raw_can_msg(0x582, [0x60, 0x40, 0x22, 0x00, 0x00, 0x00, 0x00, 0x00])
#utils.wait_for_can_msg(0x603, [0x22, 0x40, 0x22, 0x00, 0xD8, 0xBA, 0xFF, 0xFF])
#utils.send_raw_can_msg(0x583, [0x60, 0x40, 0x22, 0x00, 0x00, 0x00, 0x00, 0x00])
click.secho("Done", fg="green")
......
#!/usr/bin/env python3
__version__ = "3.1.2"
__version__ = "3.1.3"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment