todbot / blink1

Official software for blink(1) USB RGB LED by ThingM
https://blink1.thingm.com/
Other
958 stars 236 forks source link

blink1-tool on Mac OS 10.10 randomly not able to open blink #175

Closed thedotedge closed 9 years ago

thedotedge commented 10 years ago

After upgrading to Yosemite, blink(1) mk2 seems to sporadically fail to respond to commands (sequence below has been run without touching blink):

~ ❯❯❯ blink1-tool --rgb=0xff,0,00 --blink 3                                                                                                               
blink 3 times rgb:ff,0,0:

~ ❯❯❯ blink1-tool --rgb=0xff,0,00 --blink 3
blink 3 times rgb:ff,0,0:

~ ❯❯❯ blink1-tool --rgb=0xff,0,00 --blink 3
cannot open blink(1), bad id or serial number

~ ❯❯❯ blink1-tool --rgb=0xff,0,00 --blink 3
cannot open blink(1), bad id or serial number

~ ❯❯❯ blink1-tool --rgb=0xff,0,00 --blink 3
cannot open blink(1), bad id or serial number
~ ❯❯❯ brew info blink1                                                                                                                                   
blink1: stable 1.93, HEAD
http://thingm.com/products/blink-1.html
/usr/local/Cellar/blink1/1.93 (6 files, 116K) *
  Built from source
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/blink1.rb
alanevans commented 10 years ago

Same issue here on but on OS X 10.9.5. I run a blink1-tool command 50 times repeatedly with no other changes, it will succeed a handful of times out of 50 attempts. (something like 10% success rate). I don't touch the hardware between issuing commands. Literally running repeatedly and they randomly succeed/fail.

Using the latest release from github by the way.

todbot commented 10 years ago

I'm looking into this now. Not sure what 10.10 changed wrt USB to make this flaky.

alanevans commented 10 years ago

Thanks, Tod. Just to mention - I'm seeing this issue on 10.9.5 also.

todbot commented 10 years ago

I've been doing some tests on 10.10 both with a fresh recompile of blink1-tool and v1.93. I can't recreate the problem.

How is your blink(1) device plugged into your system? Directly? Via a USB hub?

Also, are you running Blink1Control at the same time? If so, you should not, as they will contend for resources. Instead try "blink1control-tool" for cases where you want to run a commandline program to control blink(1) but have Blink1Control running.

alanevans commented 10 years ago

Mine is plugged in directly (I'm on 10.9.5) and as you mention, I'm also running Blink1Control. I'll try your suggestion, thanks.

alanevans commented 10 years ago

Shutting down Blink1Control definitely seems to let blink1-tool work for me. I'm assuming this has solved it. Many thanks!

Javaears commented 7 years ago

@todbot when I wake up Mac from sleep mode , I also hit this issue "cannot open blink(1), bad id or serial number" . And my OS version is 10.11.6 .