Code Monkey home page Code Monkey logo

Comments (36)

capricornuscipher avatar capricornuscipher commented on August 18, 2024 3

I have Open STF running on Raspbian on a Raspberry Pi 3. Still polishing the install and run process. Looking forward to helping contribute any results from my own farm to STF.

from stf.

denis99999 avatar denis99999 commented on August 18, 2024 2

from stf.

Nefariis avatar Nefariis commented on August 18, 2024 1

--edited--

After 8 hours of reading Im understanding docker and stf a little better ....

I re-flashed my xu4 and started over with docker - I will post something on my own thread when I get absolutely stuck.

Thanks

from stf.

sorccu avatar sorccu commented on August 18, 2024 1

You can take a look at https://github.com/openstf/stf/blob/master/doc/DEPLOYMENT.md for guidance. It's not really meant for beginners but maybe it'll help.

Even though there's only a single docker image, you can launch any of the internal processes with it like the guide explains. It contains (almost) everything STF needs, with the exceptions being adb and rethinkdb.

Among other reasons, the benefit of supporting only a docker-based installation is that we mostly don't have to deal with people asking how to install dependencies, installing them incorrectly, using wrong versions, botching permissions, and we don't have to provide separate instructions for the various Linux distributions out there or deal with their outdated packages.

from stf.

sorccu avatar sorccu commented on August 18, 2024

Running a provider on a Pi (v2) is definitely something we want to support, but as we currently depend on Node.js I assume it would be a bit of a hurdle. I currently don't have a Pi to test with, so there's not much I can say right now. Definitely interested in hearing if you or someone else manages to get it to work.

from stf.

sorccu avatar sorccu commented on August 18, 2024

I ordered a Pi 2, will update the ticket once there's progress. No promises
though.

On Sunday, July 26, 2015, Jelmer Koppelmans [email protected]
wrote:

β€”
Reply to this email directly or view it on GitHub
#30.

from stf.

jelmerkoppelmans avatar jelmerkoppelmans commented on August 18, 2024

Awesome! This might come in handy:

from stf.

sorccu avatar sorccu commented on August 18, 2024

Actually I'm not planning on running RethinkDB on the RPI, it needs more RAM for smooth operation. The rest of STF may run OK, but I'm mostly interested in running the device provider there and nothing else. It would connect to another server running the app itself.

from stf.

arcxyz avatar arcxyz commented on August 18, 2024

I have successfully running on RPi 2 (archlinux) also with RethinkDB. And it works, but only tested with 6 devices.
Note that RethinkDB have an experimental support on ARM platforms and you may need to compile on your own.

Thanks for this great project! πŸ˜‰

from stf.

sorccu avatar sorccu commented on August 18, 2024

That's awesome! I guess you didn't bother with docker and just did the whole installation yourself?

from stf.

arcxyz avatar arcxyz commented on August 18, 2024

Didn't try with docker, but it would be great if it works!

from stf.

jelmerkoppelmans avatar jelmerkoppelmans commented on August 18, 2024

@arcxyz could you give me a short guide on how you set up the install?

from stf.

arcxyz avatar arcxyz commented on August 18, 2024

Taking a clean Archlinux install as a starting point, run these commands (extracted from our Pi history):

# System Upgrade
pacman -Syu
# STF deps:
pacman -S android-tools nodejs npm graphicsmagick zeromq pkg-config 
# RethinkDB build dependencies
pacman -S base-devel # Select ALL
pacman -S libsodium libpgm protobuf protobuf-c libboost boost boost-libs python2 gperftools python2-pip
# Download rethinkDB sources
curl -O http://download.rethinkdb.com/dist/rethinkdb-2.0.4.tgz
tar zxvf rethinkdb-2.0.4.tgz
 # Change default python version 
ln -sf /usr/bin/python2.7 /usr/bin/python
# Configure and build! (it may take hours on Pi)
cd rethinkdb-2.0.4
./configure --with-system-malloc --allow-fetch
make
make install
# finally install stf
npm install -g stf

Let me know if you get errors compiling rethinkDB

from stf.

sorccu avatar sorccu commented on August 18, 2024

Progress so far with my RPi2 running Arch Linux & Docker:

  • Built and pushed the base image to Docker Hub
  • Ran into problems with the stf Dockerfile where in ENV /path:$PATH the $PATH gets replaced with an empty string. Not sure why this is happening.

from stf.

sorccu avatar sorccu commented on August 18, 2024

Figured out the cause, will wait till balena-io-library/resin-rpi-raspbian#3 gets fixed.

from stf.

sorccu avatar sorccu commented on August 18, 2024

I added a temporary workaround, the STF image is now available as openstf/arm7hf-stf.

Still need to create an image for ADB.

from stf.

stoefln avatar stoefln commented on August 18, 2024

Anyone managed to get openstf working on raspbian?

from stf.

MichaelDepner avatar MichaelDepner commented on August 18, 2024

I have some websocket connection issues. The video stream for devices is blank gray, but I'm pretty sure it's a problem in my network, still investigating. Apart from that, my pi running raspbian is working. Screenshots, remote control (again, without visible video), uploading apps, everything seems good.

I manually installed raspbian versions of adb and docker, and used the openstf/arm7hf-stf image. Since I am still working on network issues, I haven't stress or stability tested yet.

Important note: The pi is only running the stf-provider service file described in the deployment section, meaning that all the heavy lifting is being done on a beefy server in the cloud. I have no idea if it could handle running everything on its own.

from stf.

Tierney0115 avatar Tierney0115 commented on August 18, 2024

My raspberry Pi 2 lost device and reconnected every 2 or 3 mins. Does anyone use raspberry could last long time? I am wandering if all the Raspberry pi have the same problem. Thanks.

from stf.

sorccu avatar sorccu commented on August 18, 2024

Make sure that your RPi is using a 2A power adapter. I find that providing any less power to the PI makes USB connections highly unstable. Also, power hungry devices tend to not work so well anyway. You could try increasing the USB current.

ODROID-XU4 is more expensive, but a much, much better fit with its Battery Charging 1.2 support, dedicated USB 3.0 bus, 1GB ethernet, eMMC 5.0 boot disk support, and 4A power adapter. The only downside is the somewhat noisy fan but I've replaced mine. All future ARM development will be done on ODROID-XU4.

from stf.

Tierney0115 avatar Tierney0115 commented on August 18, 2024

Hi sorccu,
Thank you for your advice. I am considering using ODROID-XU4 instead of Raspberry Pi.

from stf.

Tierney0115 avatar Tierney0115 commented on August 18, 2024

@sorccu
One more shot question, which USB hub are you using with ODROID-XU4? Is this one Plugable's USB 2.0 7 Port Hub with 60W Power Adapter?
Thanks.

from stf.

sorccu avatar sorccu commented on August 18, 2024

Should be fine, but personally I'm not going to use a hub anymore, which should greatly increase reliability and concurrency. You should be able to buy 10 or more XU4s for the price of our recommended components and hubs. Depending on whether you decide to utilize the USB 2 port as well (I won't), 10 XU4s can support either 20 or 30 devices. An additional benefit is that since there are fewer devices per machine, it becomes much less annoying to update & reboot the machines since you'll only lose 1-2 devices per machine. You could even set up automatic updates and reboots without having to worry too much about anything. Also, since you can give each provider a unique name, it should become way easier to physically find a missing or misbehaving device.

I'm not done with my own setup yet, though.

from stf.

Tierney0115 avatar Tierney0115 commented on August 18, 2024

@sorccu
Thank you for your advice :)

from stf.

kinimatt avatar kinimatt commented on August 18, 2024

Running on Raspberry PI 2 with Raspbian, STF not showing any devices.

I'm running everything on it. Got docker, ADB , rethinkdb all working on host. Tried docker image. Stf loads and can access web page. But when it loads, I see following message while loading

INF/provider 36 [] Sending output to "tcp://127.0.0.1:7116"
INF/provider 36 [
] Receiving input from "tcp://127.0.0.1:7114"
Unhandled rejection Error: spawn adb ENOENT
at exports._errnoException (util.js:746:11)
at Process.ChildProcess._handle.onexit (child_process.js:1053:32)
at child_process.js:1144:20
at process._tickCallback (node.js:355:11)
INF/storage:temp 56 [*] Listening on port 7102

from stf.

Tierney0115 avatar Tierney0115 commented on August 18, 2024

@sorccu
I am using the Odroid XU4 for about a week. The stability of USB port is still not very good. It often reconnect about 5 to 6 hour with 3 devices connecting. Have you tested ODroid already? Could you give me some advice about enhance the stability. Thanks.

from stf.

sorccu avatar sorccu commented on August 18, 2024

Could you try this to see if it helps at all? Apparently there were some problems with their manufacturing process that left the USB 3 ports a bit dirty on some boards. Try cleaning them and report back.

from stf.

Tierney0115 avatar Tierney0115 commented on August 18, 2024

Thank you for your help. I have tried this method but not work for my ODroid. I have many Odroid all have the same problem. Finally we choose USB HUB 2.0 to enhance the stability.

from stf.

sorccu avatar sorccu commented on August 18, 2024

That's weird. My XU4 is very stable, although I only have one Nexus 9
connected to one of the USB 3 ports. In the past 10 days the device worker
has only died once, however it seems to have been due to Android stopping
the STFService rather than the USB connection actually dying.

On Wed, Dec 30, 2015 at 12:49 PM, Tierney0115 [email protected]
wrote:

Thank you for your help. I have tried this method but not work for my
ODroid. I have many Odroid all have the same problem. Finally we choose USB
HUB 2.0 to enhance the stability.

β€”
Reply to this email directly or view it on GitHub
#30 (comment).

from stf.

sorccu avatar sorccu commented on August 18, 2024

We now have an automated nightly build for armv7l available at https://hub.docker.com/r/openstf/stf-armv7l, and as a bonus it's a lot smaller than before.

The one thing that's missing is a good, up to date adb container for arm. It isn't easy to compile adb separately, unfortunately.

from stf.

denis99999 avatar denis99999 commented on August 18, 2024

Hi Will (capricornuscipher),
May you publish your installation procedure of STF on Raspbian/PI3 ?
Thanks.

from stf.

pwicherski avatar pwicherski commented on August 18, 2024

@capricornuscipher hiho :) Any progress?

from stf.

codeskyblue avatar codeskyblue commented on August 18, 2024

@sorccu adb for arm can be download from here https://github.com/NetEaseGame/AutomatorX/releases/tag/1.0.12

from stf.

capricornuscipher avatar capricornuscipher commented on August 18, 2024

@denis99999 @pwicherski I am working on some guides and will start publishing soon. I have it working on my RPi3. I've ran it both over Ethernet and WiFi. For now I'm have the RethinkDB for it running on it. I'm also currently attempting to create a WiFi hotspot from the Raspberry Pi for the smartphones. I'm also using python to control the phones over the IP address adb, but for now it's manually set up. I'm considering adding a python API to openSTF. Any suggestions are welcome.

from stf.

guandalf avatar guandalf commented on August 18, 2024

Anyone here considered building something on https://github.com/home-assistant/hassos ?

from stf.

maksimkravchenk avatar maksimkravchenk commented on August 18, 2024

@denis99999 @pwicherski I am working on some guides and will start publishing soon. I have it working on my RPi3. I've ran it both over Ethernet and WiFi. For now I'm have the RethinkDB for it running on it. I'm also currently attempting to create a WiFi hotspot from the Raspberry Pi for the smartphones. I'm also using python to control the phones over the IP address adb, but for now it's manually set up. I'm considering adding a python API to openSTF. Any suggestions are welcome.

Hi capricornuscipher. Can you share the guide for installation STF on RP3

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.