Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple AllPixel devices
#1
Sad 
I have five AllPixel devices connected to a USB hub and I have given each a unique deviceID.

I have one matrix made up of 2 deviceID's, one matrix made up of 1 deviceID and two separate strips with their own deviceID's. All the LED's are WS2811.

Everything works fine when running standalone but when I try to run all the scripts at the same time I get conflict errors such as those below -

Quote:INFO - serial_driver - Using COM Port: /dev/cu.usbmodem93, Device ID: 20, Device Ver: 0
Traceback (most recent call last):
 File "Strip.py", line 44, in <module>
   anim.run()
 File "/Library/Python/2.7/site-packages/bibliopixel/animation.py", line 136, in run
   self._run(amt, fps, sleep, max_steps, untilComplete, max_cycles)
 File "/Library/Python/2.7/site-packages/bibliopixel/animation.py", line 92, in _run
   self._led.update()
 File "/Library/Python/2.7/site-packages/bibliopixel/led.py", line 103, in update
   d._update(self.buffer[pos:d.bufByteCount+pos])
 File "/Library/Python/2.7/site-packages/bibliopixel/drivers/driver_base.py", line 51, in _update
   self.update(data)
 File "/Library/Python/2.7/site-packages/bibliopixel/drivers/serial_driver.py", line 315, in update
   resp = self._com.read(1)
 File "/Library/Python/2.7/site-packages/serial/serialposix.py", line 475, in read
   raise SerialException('device reports readiness to read but returned no data (device disconnected or multiple access on port?)')
serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)

Any ideas ?
#2
Could you give me more details on your setup? What OS are you using (obviously linux, but what specifically)?
Run "pip freeze" and paste the output here so I can see what version of BiblioPixel and pyserial you have.
There used to be a bug where the device ID thing didn't work with multiple scripts but that's been fixed in recent versions.
#3
OS is OS X 10.10.5

Output from pip freeze is -

Quote:You are using pip version 7.1.0, however version 7.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
altgraph==0.10.2
bdist-mpkg==0.5.0
BiblioPixel==1.2.4
BiblioPixelAnimations===0dd5f406a269679f49145343626c8f8ea17288b6
bonjour-py==0.3
macholib==1.5.1
matplotlib==1.3.1
modulegraph==0.10.4
numpy==1.8.0rc1
Pillow==2.9.0
py2app==0.7.3
pyobjc-core==2.5.1
pyobjc-framework-Accounts==2.5.1
pyobjc-framework-AddressBook==2.5.1
pyobjc-framework-AppleScriptKit==2.5.1
pyobjc-framework-AppleScriptObjC==2.5.1
pyobjc-framework-Automator==2.5.1
pyobjc-framework-CFNetwork==2.5.1
pyobjc-framework-Cocoa==2.5.1
pyobjc-framework-Collaboration==2.5.1
pyobjc-framework-CoreData==2.5.1
pyobjc-framework-CoreLocation==2.5.1
pyobjc-framework-CoreText==2.5.1
pyobjc-framework-DictionaryServices==2.5.1
pyobjc-framework-EventKit==2.5.1
pyobjc-framework-ExceptionHandling==2.5.1
pyobjc-framework-FSEvents==2.5.1
pyobjc-framework-InputMethodKit==2.5.1
pyobjc-framework-InstallerPlugins==2.5.1
pyobjc-framework-InstantMessage==2.5.1
pyobjc-framework-LatentSemanticMapping==2.5.1
pyobjc-framework-LaunchServices==2.5.1
pyobjc-framework-Message==2.5.1
pyobjc-framework-OpenDirectory==2.5.1
pyobjc-framework-PreferencePanes==2.5.1
pyobjc-framework-PubSub==2.5.1
pyobjc-framework-QTKit==2.5.1
pyobjc-framework-Quartz==2.5.1
pyobjc-framework-ScreenSaver==2.5.1
pyobjc-framework-ScriptingBridge==2.5.1
pyobjc-framework-SearchKit==2.5.1
pyobjc-framework-ServiceManagement==2.5.1
pyobjc-framework-Social==2.5.1
pyobjc-framework-SyncServices==2.5.1
pyobjc-framework-SystemConfiguration==2.5.1
pyobjc-framework-WebKit==2.5.1
pyOpenSSL==0.13.1
pyparsing==2.0.1
pyserial==2.7
python-dateutil==1.5
pytz==2013.7
scipy==0.13.0b1
six==1.4.1
Twisted==13.2.0
vboxapi==1.0
wheel==0.24.0
xattr==0.6.4
zope.interface==4.1.1

Thanks
#4
Hmmm... so, you've got all the latest and should be good from that standpoint. When does this error occur? Is it when running the very first script, the second, later?
Looking further into the code and your error, I'm seeing that it's happening when trying to update one of the AllPixels... so you're getting past the Device ID lookup stuff.
I assume all of them are on a USB hub?
I've done 8 at a time, so I know it's possible to do 5.
Try these things:

Run all AllPixels except for one. Keep changing which one you leave out. It's possible that it's one of them that's throwing everything off. This could either be a bad AP or a bad USB cable.

Run them on multiple USB ports on your computer. Not all on one hub (if you are). If you are using a laptop, try ports on each side. I've seen some hardware have a problem if everything is running of the same USB bus. Different sides of a computer are usually different buses.


Forum Jump:


Users browsing this thread: 1 Guest(s)