def startPlacServer(self, mode):
        if mode  == ROUTER_MODE_DISABLED:
            return
        self.interpreter = plac.Interpreter(self.shell)
        if mode == ROUTER_MODE_TELNET:
            self.interpreter.start_server() # Loop
        elif mode == ROUTER_MODE_DBUS:
            from util import dbus_ctrl
            dbus_ctrl.startDbusProcess(self) # Loop
        elif mode == ROUTER_MODE_INTERACTIVE:
            path = self.simCtrl.getCurrentFile().path
            self.interpreter.interact(prompt="\n%s>"%path)
        else:
            raise Exception("Unexpected mode")