Coder Social home page Coder Social logo

Comments (5)

denis99999 avatar denis99999 commented on August 17, 2024

@csdaa , please provide the STF configuration (command line, docker-compose file, etc.) on each computer, how devices are connected to the computer ?

from stf.

csdaa avatar csdaa commented on August 17, 2024

Hello Mr. @denis99999
Can I ask you a few questions:
How many devices can stf control at the same time?
Which deployment method can maximize its performance?

from stf.

csdaa avatar csdaa commented on August 17, 2024

Hello Mr. @denis99999
We only have one server, so I can only give you a piece of STF configuration information.
We use the connection mode of mobile phone to hub and hub to computer host.
for example:
We use 7 mobile phones to connect to the first hub, and then the first hub is connected to the first host. The host is connected to the server through the switch.

The server and the node are connected through the adb exposed port. The node exposes the port through the command: "adb nodaemon server -a -P 5037", and the server executes "stf provider --name TestNode --min-port..."

docker-compose:
`version: "3"

services:
rethinkdb:
container_name: rethinkdb
image: rethinkdb:2.3
restart: unless-stopped
volumes:
- "rethinkdb-data:/data"
command: "rethinkdb --bind all --cache-size 2048"

adb:
container_name: adb
image: devicefarmer/adb:latest
restart: unless-stopped
volumes:
- "/dev/bus/usb:/dev/bus/usb"
privileged: true

stf:
container_name: stf
image: devicefarmer/stf
ports:
- "7100:7100"
- "7110:7110"
- "7400-7500:7400-7500"
environment:
- TZ='America/Los_Angeles'
- RETHINKDB_PORT_28015_TCP=tcp://rethinkdb:28015
- STF_ADMIN_EMAIL=[email protected]
- STF_ADMIN_NAME=[email protected]
restart: unless-stopped
command: stf local --adb-host adb --public-ip 192.168.8.132 --provider-min-port 7400 --provider-max-port 7500

volumes:
rethinkdb-data: {}
`
Connection script for node 1:
stf provider --name 48.127 --min-port 7400 --max-port 7700 --connect-sub tcp://127.0.0.1:7114 --connect-push tcp://127.0.0.1:7116 --group-timeout 900 --public-ip 192.168.63.121 --storage-url http://localhost:7100/ --adb-host 192.168.48.127 --adb-port 5037 --vnc-initial-size 600*800 --mute-master never --allow-remote

Connection script for node 2:
stf provider --name 48.81 --min-port 7400 --max-port 7700 --connect-sub tcp://127.0.0.1:7114 --connect-push tcp://127.0.0.1:7116 --group-timeout 900 --public-ip 192.168.63.121 --storage-url http://localhost:7100/ --adb-host 192.168.48.81 --adb-port 5037 --vnc-initial-size 600*800 --mute-master never --allow-remote

from stf.

denis99999 avatar denis99999 commented on August 17, 2024

@csdaa , you have to review your configuration entirely following full deployment example in DEPLOYMENT.md documentation, in particular you can't use the stf local mode in such distributed architecture, ADB and provider units have to run on the same host where the devices are connected to, provider unit have to point to the triproxy-dev unit (not to loopback address), etc.

How many devices can stf control at the same time?

No know limits, it depends of your STF configurations and your material capacities

Which deployment method can maximize its performance?

cf. DEPLOYMENT.md documentation

from stf.

csdaa avatar csdaa commented on August 17, 2024

@csdaa , you have to review your configuration entirely following full deployment example in DEPLOYMENT.md documentation, in particular you can't use the stf local mode in such distributed architecture, ADB and provider units have to run on the same host where the devices are connected to, provider unit have to point to the triproxy-dev unit (not to loopback address), etc.

How many devices can stf control at the same time?

No know limits, it depends of your STF configurations and your material capacities

Which deployment method can maximize its performance?

cf. DEPLOYMENT.md documentation

Thank you for your help

from stf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.