Exemplo n.º 1
0
    def hardwareSelect(cls):
        cls.r1 = ffdb.ThreadDevBoard()
        cls.r2 = ffdb.ThreadDevBoard()
        cls.fed1 = ffdb.ThreadDevBoard()
        cls.sed2 = ffdb.ThreadDevBoard()

        cls.all_nodes = [cls.r1, cls.r2, cls.fed1, cls.sed2]
    def hardwareSelect(cls):
        cls.r1 = ffdb.ThreadDevBoard()
        cls.r2 = ffdb.ThreadDevBoard()
        cls.sc1 = ffdb.ThreadDevBoard()
        cls.sc2 = ffdb.ThreadDevBoard()

        cls.all_nodes = [cls.r1, cls.r2, cls.sc1, cls.sc2]
Exemplo n.º 3
0
    def hardwareSelect(cls):
        cls.router = ffdb.ThreadDevBoard()
        cls.joiner_list = []

        while True:
            try:
                device = ffdb.ThreadDevBoard()
            except Exception:
                break
            else:
                cls.joiner_list.append(device)
        print cls.joiner_list
Exemplo n.º 4
0
    def hardwareSelect(cls):
        cls.routers = []
        for num in range(NUM_ROUTERS):
            cls.routers.append(ffdb.ThreadDevBoard())

        cls.children = []
        for num in range(NUM_CHILDREN):
            cls.children.append(ffdb.ThreadDevBoard())

        # end-device per router used for quick promotion to router role
        cls.ed = [0]
        for num in range(1, NUM_ROUTERS):
            cls.ed.append(ffdb.ThreadDevBoard())
    def hardwareSelect(cls):
        cls.router = ffdb.ThreadDevBoard()

        cls.sleepy_children = []
        cls.rx_on_children = []

        for num in range(NUM_SLEEP_CHILDREN):
            cls.sleepy_children.append(ffdb.ThreadDevBoard())

        for num in range(NUM_RX_ON_CHILDREN):
            cls.rx_on_children.append(ffdb.ThreadDevBoard())

        cls.all_children = cls.sleepy_children + cls.rx_on_children
Exemplo n.º 6
0
    def hardwareSelect(cls):
        cls.device_list = []

        # Get all connected devices
        while True:
            try:
                device = ffdb.ThreadDevBoard()
            except Exception:
                break
            else:
                cls.device_list.append(device)
        print cls.device_list
Exemplo n.º 7
0
    def hardwareSelect(cls):
        cls.parent = ffdb.ThreadDevBoard()
        cls.child1 = ffdb.ThreadDevBoard()
        cls.child2 = ffdb.ThreadDevBoard()

        cls.children = [cls.child1, cls.child2]
Exemplo n.º 8
0
 def hardwareSelect(cls):
     cls.r1 = ffdb.ThreadDevBoard()
     cls.r2 = ffdb.ThreadDevBoard()
     cls.r3 = ffdb.ThreadDevBoard()
     cls.r4 = ffdb.ThreadDevBoard()
     cls.c1 = ffdb.ThreadDevBoard()
Exemplo n.º 9
0
 def hardwareSelect(cls):
     cls.router = ffdb.ThreadDevBoard()
     cls.sed = ffdb.ThreadDevBoard()
 def hardwareSelect(cls):
     cls.parent1 = ffdb.ThreadDevBoard()
     cls.parent2 = ffdb.ThreadDevBoard()
     cls.child1 = ffdb.ThreadDevBoard()