-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Raspberry Pi support #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
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. |
I ordered a Pi 2, will update the ticket once there's progress. No promises On Sunday, July 26, 2015, Jelmer Koppelmans [email protected]
|
Awesome! This might come in handy: |
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. |
I have successfully running on RPi 2 (archlinux) also with RethinkDB. And it works, but only tested with 6 devices. Thanks for this great project! 😉 |
That's awesome! I guess you didn't bother with docker and just did the whole installation yourself? |
Didn't try with docker, but it would be great if it works! |
@arcxyz could you give me a short guide on how you set up the install? |
Taking a clean Archlinux install as a starting point, run these commands (extracted from our Pi history):
Let me know if you get errors compiling rethinkDB |
Progress so far with my RPi2 running Arch Linux & Docker:
|
Figured out the cause, will wait till balena-io-library/resin-rpi-raspbian#3 gets fixed. |
I added a temporary workaround, the STF image is now available as openstf/arm7hf-stf. Still need to create an image for ADB. |
Anyone managed to get openstf working on raspbian? |
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. |
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. |
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. |
Hi sorccu, |
@sorccu |
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. |
@sorccu |
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" |
@sorccu |
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. |
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. |
That's weird. My XU4 is very stable, although I only have one Nexus 9 On Wed, Dec 30, 2015 at 12:49 PM, Tierney0115 [email protected]
|
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. |
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. |
Hi Will (capricornuscipher), |
@capricornuscipher hiho :) Any progress? |
@sorccu adb for arm can be download from here https://github.com/NetEaseGame/AutomatorX/releases/tag/1.0.12 |
@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 @pwicherski<https://github.com/pwicherski>, thank you very much for your answer, since my original request I also progress a lot in this domain and I see we are working exactly on the same issues. From my side I develop a CLI to control in an automatic way devices either in WIFI or usb.
@denis99999<https://github.com/denis99999> @pwicherski<https://github.com/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.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#30 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AVtkCh9_-FMhIrs3s2t7dHYp4I5ZOp3jks5rXPNkgaJpZM4FfynM>.
…_________________________________________________________________________________________________________________________
Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.
This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.
|
--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 |
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. |
Anyone here considered building something on https://github.com/home-assistant/hassos ? |
Hi capricornuscipher. Can you share the guide for installation STF on RP3 |
Would that be possible? Currently running raspbian, but I get hit with a lot of installation and configuration.
Do you have any guides or tips?
The text was updated successfully, but these errors were encountered: