forked from M-Labs/artiq
1
0
Fork 0

move default TCP ports from 8887... to 3250...

* 8888 is busy: IPython default among others
* 3250 seems less so and is the house number times ten here
This commit is contained in:
Robert Jördens 2015-01-12 12:55:50 -07:00 committed by Sebastien Bourdeauducq
parent 891c0d12f2
commit 0bd54921af
8 changed files with 14 additions and 14 deletions

View File

@ -33,11 +33,11 @@ When writing a new driver, choose a free TCP port and add it to this list.
+--------------------------+--------------+ +--------------------------+--------------+
| Component | Default port | | Component | Default port |
+==========================+==============+ +==========================+==============+
| Master (notifications) | 8887 | | Master (notifications) | 3250 |
+--------------------------+--------------+ +--------------------------+--------------+
| Master (control) | 8888 | | Master (control) | 3251 |
+--------------------------+--------------+ +--------------------------+--------------+
| PDQ2 | 8889 | | PDQ2 | 3252 |
+--------------------------+--------------+ +--------------------------+--------------+
| LDA | 8890 | | LDA | 3253 |
+--------------------------+--------------+ +--------------------------+--------------+

View File

@ -181,7 +181,7 @@ def _show_parameters(parameters):
def _run_subscriber(host, port, subscriber): def _run_subscriber(host, port, subscriber):
if port is None: if port is None:
port = 8887 port = 3250
loop = asyncio.get_event_loop() loop = asyncio.get_event_loop()
try: try:
loop.run_until_complete(subscriber.connect(host, port)) loop.run_until_complete(subscriber.connect(host, port))
@ -232,7 +232,7 @@ def main():
print("Unknown object to show, use -h to list valid names.") print("Unknown object to show, use -h to list valid names.")
sys.exit(1) sys.exit(1)
else: else:
port = 8888 if args.port is None else args.port port = 3251 if args.port is None else args.port
target_name = { target_name = {
"submit": "master_schedule", "submit": "master_schedule",
"cancel": "master_schedule", "cancel": "master_schedule",

View File

@ -18,10 +18,10 @@ def _get_args():
"-s", "--server", default="::1", "-s", "--server", default="::1",
help="hostname or IP of the master to connect to") help="hostname or IP of the master to connect to")
parser.add_argument( parser.add_argument(
"--port-notify", default=8887, type=int, "--port-notify", default=3250, type=int,
help="TCP port to connect to for notifications") help="TCP port to connect to for notifications")
parser.add_argument( parser.add_argument(
"--port-control", default=8888, type=int, "--port-control", default=3251, type=int,
help="TCP port to connect to for control") help="TCP port to connect to for control")
return parser.parse_args() return parser.parse_args()

View File

@ -16,10 +16,10 @@ def _get_args():
"--bind", default="::1", "--bind", default="::1",
help="hostname or IP address to bind to") help="hostname or IP address to bind to")
parser.add_argument( parser.add_argument(
"--port-notify", default=8887, type=int, "--port-notify", default=3250, type=int,
help="TCP port to listen to for notifications") help="TCP port to listen to for notifications")
parser.add_argument( parser.add_argument(
"--port-control", default=8888, type=int, "--port-control", default=3251, type=int,
help="TCP port to listen to for control") help="TCP port to listen to for control")
return parser.parse_args() return parser.parse_args()

View File

@ -9,7 +9,7 @@ def main():
parser = argparse.ArgumentParser() parser = argparse.ArgumentParser()
parser.add_argument('-s', '--server', default="::1", parser.add_argument('-s', '--server', default="::1",
help="hostname or IP of the controller to connect to") help="hostname or IP of the controller to connect to")
parser.add_argument('-p', '--port', default=8890, type=int, parser.add_argument('-p', '--port', default=3253, type=int,
help="TCP port to use to connect to the controller") help="TCP port to use to connect to the controller")
parser.add_argument('-a', '--attenuation', type=float, parser.add_argument('-a', '--attenuation', type=float,
help="attenuation value to set") help="attenuation value to set")

View File

@ -12,7 +12,7 @@ def main():
choices=["LDA-102", "LDA-602", "sim"]) choices=["LDA-102", "LDA-602", "sim"])
parser.add_argument('--bind', default="::1", parser.add_argument('--bind', default="::1",
help="hostname or IP address to bind to") help="hostname or IP address to bind to")
parser.add_argument('-p', '--port', default=8890, type=int, parser.add_argument('-p', '--port', default=3253, type=int,
help="TCP port to listen to") help="TCP port to listen to")
parser.add_argument('-s', '--serial', default=None, parser.add_argument('-s', '--serial', default=None,
help="USB serial number of the device") help="USB serial number of the device")

View File

@ -17,7 +17,7 @@ def _get_args():
them to the controller.""") them to the controller.""")
parser.add_argument("-s", "--server", default="::1", parser.add_argument("-s", "--server", default="::1",
help="hostname or IP of the controller to connect to") help="hostname or IP of the controller to connect to")
parser.add_argument("--port", default=8889, type=int, parser.add_argument("--port", default=3252, type=int,
help="TCP port to use to connect to the controller") help="TCP port to use to connect to the controller")
parser.add_argument("-c", "--channel", default=0, type=int, parser.add_argument("-c", "--channel", default=0, type=int,
help="channel: 3*board_num+dac_num [%(default)s]") help="channel: 3*board_num+dac_num [%(default)s]")

View File

@ -11,7 +11,7 @@ def _get_args():
parser = argparse.ArgumentParser(description="PDQ2 controller") parser = argparse.ArgumentParser(description="PDQ2 controller")
parser.add_argument("--bind", default="::1", parser.add_argument("--bind", default="::1",
help="hostname or IP address to bind to") help="hostname or IP address to bind to")
parser.add_argument("-p", "--port", default=8889, type=int, parser.add_argument("-p", "--port", default=3252, type=int,
help="TCP port to listen to") help="TCP port to listen to")
parser.add_argument( parser.add_argument(
"-s", "--serial", default=None, "-s", "--serial", default=None,