Skip to content
Snippets Groups Projects
Commit 2e9277da authored by Björn Senfftleben's avatar Björn Senfftleben
Browse files

increase link speed

parent 4f5ac17b
No related branches found
No related tags found
No related merge requests found
......@@ -229,6 +229,8 @@ class Tempus(Device):
try:
multi_link = self.enableMultiLink
if not multi_link:
link_speed = 1 # 1 -> 2.56Gbit / 2 -> 1.28 Gbit
await self.send_command("os.system('devmem2 0x80010004 w 0x2')")
await self.send_command("os.system('devmem2 0x80010004 w 0x0')")
await self.send_command("os.system('devmem2 0x80010004 w 0x2')")
......@@ -240,7 +242,7 @@ class Tempus(Device):
link_result = await self.send_command(
f"os.system('{self.APP_DIR}/sc_set_gwt_link_up.py -i 0x0 "
"-l 0x0 -s 0x2')", sleep_time=15) # 0x2 -> 0x1 at the end would double the bandwidth per link to 2.56 Gbit/s instead of 1.28
"-l 0x0 -s 0x{link_speed:.0f}')", sleep_time=15) # 0x2 -> 0x1 at the end would double the bandwidth per link to 2.56 Gbit/s instead of 1.28
if "DOWN" in link_result:
self.LinkStateBottom1 = State.ERROR
elif "READY" in link_result:
......@@ -250,7 +252,7 @@ class Tempus(Device):
link_result = await self.send_command(
f"os.system('{self.APP_DIR}/sc_set_gwt_link_up.py -i 0x1 "
"-l 0x0 -s 0x2')", sleep_time=15) # 0x2 -> 0x1 at the end would double the bandwidth per link to 2.56 Gbit/s instead of 1.28
"-l 0x0 -s 0x{link_speed:.0f}')", sleep_time=15) # 0x2 -> 0x1 at the end would double the bandwidth per link to 2.56 Gbit/s instead of 1.28
if "DOWN" in link_result:
self.LinkStateTop1 = State.ERROR
elif "READY" in link_result:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment