Skip to content
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

HelloIOIOService stops after 2/3 hours #132

Open
nivthetool opened this issue Apr 27, 2017 · 1 comment
Open

HelloIOIOService stops after 2/3 hours #132

nivthetool opened this issue Apr 27, 2017 · 1 comment

Comments

@nivthetool
Copy link

Hi Gurus,

i need a service that blinks a led (pin1) every 100 msec must run 24/7.
using HelloIOIOService everything works perfect for 2~3 hours, than led stops
please any help i have been struggling over a week with this.
i have tried
different phones
different boards
run both apk debug and release-signed
all act the same.

my androids are not rooted.

i have bought 2 boards from sparkfun

Hardware version: SPRK0020
Bootloader version: IOIO0400
Application version: IOIO0506

i have connected a led to pin 1
have connect my Android 4.4.2

running HelloIOIOService

protected void setup() throws ConnectionLostException, InterruptedException {
ntt_led_on=false;
ntt_led = ioio_.openDigitalOutput(NTT_LED_PIN, false);
}
public void loop() throws ConnectionLostException, InterruptedException {
ntt_led_on = !ntt_led_on;
ntt_led.write(ntt_led_on);
Thread.sleep(100);
}

TIA

@brtietz
Copy link

brtietz commented May 21, 2018

If you're still struggling with this issue, two questions for you:

What version(s) of Android have you tested on?

Is there an activity associated with the HelloIOIOService? If so, is it in the foreground the entire time?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants