Skip to content

USB2000 and some Flame S error at initialization due to fpga firmware version register check #226

Open
@dbhatman

Description

@dbhatman

spectrometer and system information

  • model: USB2000
  • operating system: Ubuntu 18
  • python version: 3.11
  • python-seabreeze version: 'current master'
  • installed-via: conda

current problem

Using a very old version of pyseabreeze I had successfully used USB2000 spectrometers, but now I am hitting an AssertionError in fpga.py when using spectrometers.Spectrometer.from_first_available().

The error reported is AssertionError: ['0x0', '0x46', '0x30'] being hit here

Maybe the USB2000 also does not adhere to the expected protocol as was noted here for the FlameS but in its own atypical way: https://github.com/ap--/python-seabreeze/issues/97#issuecomment-674567912

A USB2000+ (note I am using a non-plus but could not find a datasheet for it) datasheet seems to suggest the same "Return format" as the assertion expects (starting with the register's address) but instead we are getting 0! Datasheet I could find https://ph208.edu.physics.uoc.gr/pdfs/OEM-Data-Sheet-USB2000-.pdf

steps to reproduce

USB2000 plugged in and then

spectrometers.Spectrometer.from_first_available()

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions