ftctechnh / ftc_app

FTC Android Studio project to create FTC Robot Controller app.
761 stars 3.17k forks source link

Continuous blinking light during scan #503

Open emitt411 opened 6 years ago

emitt411 commented 6 years ago

My team recently got a REV Expansion Hub. When we plug it in and scan for the portal, it does not appear. What also happens is that the light on the hub will turn green, the continue to blink blue without stopping. Everything is plugged in correctly based on the expansion hub guide. Please help as soon as possible.

9p4 commented 6 years ago
  1. When you plug it in without the battery attached, does it [The REV hub] turn on? If not, check your USB cable. It's probably a problem with that.
  2. Read the REV Hub Documentation
    • The LED blink codes are on page 17.
  3. Have you reinstalled the Driver station app? The robot controller app?

BotsBurgh

emitt411 commented 6 years ago

While plugged in to the phones or a computer, it receives power. The when we scan, the light turns green then blinks blue, but doesn't stop blinking. Next time I get the chance, I will reinstall the apps. If there is anything else you would like to know, just ask.

gearsincorg commented 6 years ago

The LED is meant to do a LONG green flash,and then blink the Module address with blue blinks.

If it never stops blinking, perhaps the address has been set very high.

Phil Malone GEARS Inc.

phil.malone@mr-phil.com Office: 301.387.2331 Mobile: 301.501.7424

On Thu, Jan 11, 2018 at 8:51 PM, emitt411 notifications@github.com wrote:

While plugged in to the phones or a computer, it receives power. The when we scan, the light turns green then blinks blue, but doesn't stop blinking. Next time I get the chance, I will reinstall the apps. If there is anything else you would like to know, just ask.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ftctechnh/ftc_app/issues/503#issuecomment-357119820, or mute the thread https://github.com/notifications/unsubscribe-auth/AOOAFcgKfhYmiKMRacS-kcLJg3YHMWwcks5tJrqngaJpZM4Rbng9 .

emitt411 commented 6 years ago

I've set the address to 2 yet it blinks constantly without the long green after it. It doesn't show the portal at all, and when I scan again, the green light comes back on, but then continues to blink blue with no sign of stopping.

cmacfarl commented 6 years ago

Are you using Android Studio? If so is instant run on? On Jan 11, 2018 9:25 PM, "Phil Malone" notifications@github.com wrote:

The LED is meant to do a LONG green flash,and then blink the Module address with blue blinks.

If it never stops blinking, perhaps the address has been set very high.

Phil Malone GEARS Inc.

phil.malone@mr-phil.com Office: 301.387.2331 <(301)%20387-2331> Mobile: 301.501.7424 <(301)%20501-7424>

On Thu, Jan 11, 2018 at 8:51 PM, emitt411 notifications@github.com wrote:

While plugged in to the phones or a computer, it receives power. The when we scan, the light turns green then blinks blue, but doesn't stop blinking. Next time I get the chance, I will reinstall the apps. If there is anything else you would like to know, just ask.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <https://github.com/ftctechnh/ftc_app/issues/503#issuecomment-357119820 , or mute the thread https://github.com/notifications/unsubscribe-auth/AOOAFcgKfhYmiKMRacS- kcLJg3YHMWwcks5tJrqngaJpZM4Rbng9 .

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ftctechnh/ftc_app/issues/503#issuecomment-357124912, or mute the thread https://github.com/notifications/unsubscribe-auth/ABXn9xqh2SB2Ya1jEeYW6tPK-s12NlgSks5tJsK0gaJpZM4Rbng9 .

jdkunzeman commented 6 years ago

According the Rev Expansion Hub documentation, the blinking blue light means "Keep alive has timed out. Fault will clear when communication resumes."

NoahAndrews commented 6 years ago

Can you provide the Robot Controller log file?

emitt411 commented 6 years ago

I will get log file tomorrow when I can.

aedancullen commented 6 years ago

Is the hub connected to 12V power? If not, try it with the 12V battery connected. Possibly, increased load on the phone CPU is causing the 5V rail on the USB OTG bus to droop for some reason and the microcontroller in the REV is resetting (restarting its firmware) during the scan. (So the green would be when it actually has connected, and then when you run the scan it is trying to connect again, and somewhere during that time the microcontroller in the REV gets reset due to an unstable supply and can't properly be seen on the USB bus... ) Of course I could be completely wrong, though. If you already are testing with the 12V battery connected, them I'm wrong. And, what phone are you using?

Even though that "5V drooping" thing might seem a bit absurd, we've sometimes seen weird things (on ZTE Speed phones) where when the phone CPU load is high (booting Android, for example), and the REV is powered only by USB, the LED on the REV flickers as if powered by an unstable supply (which would be the OTG 5V supply). So this could be a similar thing.

emitt411 commented 6 years ago

We always connect it to a 12V battery before turning it on. We are currently using Moto G's for it, but haven't tried or ZTE phones yet. The phones are fully charged before use as well. I will get a picture of the log file later on.

NoahAndrews commented 6 years ago

Make sure you provide the full (very long) log, not just a screenshot. The view logs option doesn't display the full thing.

cmacfarl commented 6 years ago

If your phone is connected to the wider internet, then if you bring up the View Logs activity and long click on the logs screen, the standard android sharing feature will appear and you can email the logs to yourself and then post them someplace public.

NoahAndrews commented 6 years ago

@cmacfarl does that send the entire log, not just the portion displayed?

cmacfarl commented 6 years ago

It sends the entire log.

emitt411 commented 6 years ago

I can't seem to copy the log. It says it's an empty file after I long press and try to send it to my email.

cmacfarl commented 6 years ago

The log is sent as an attachment. I just verified on my phone that this works. Can you please provide some screenshots and perhaps the steps that you took to reproduce this? Here's a screen capture of gmail showing receipt of the log I just sent...

image

rsshilli commented 4 years ago

We had this problem. The problem is that you started your expansion hub, left it on for a long time, and then plugged in your phone. The REV Expansion Hub has given up looking for the phone. To fix it:

TADA! It works now. You should see a series of blinking blue lights (I get 2) and then a solid green light for a few seconds, then blinking blue again, solid green, etc.