LJMUAstroecology / flirpy

Python library to interact with FLIR camera cores
Other
184 stars 54 forks source link

device ID assignment for 6 Lepton 3.5 cameras #88

Open llarrieu opened 10 months ago

llarrieu commented 10 months ago

We're trying to use 6 Lepton 3.5 cameras connected to a Raspberry Pi using flirpy; we're using device IDs to capture images from the different cameras, but the IDs get reassigned every time the RPi power cycles. Also, we found that only even(0,2,4,6,8) device IDs work and haven't been able to connect a 6th because flirpy seemingly cannot find the 6th device when it's plugged in. We've tried even and odd numbers up to 10 to call the cameras but to no avail. Is there a way to make the device IDs not change, and get it to recognize a 6th lepton?

jveitchmichaelis commented 10 months ago

On Windows there are some tricks you can do to identify individual devices - you can enumerate them and see if you can identify a unique ID or something like that. For the Boson you can query the serial number via... serial :)

You can't really rely on the system device IDs unfortunately. If you talk to the individual camera module via SPI/I2C you should be able to read serial numbers, but that doesn't help much with the PT boards.

I would also try a desktop with at least 6 ports, because on the Pi you probably have some odd combination of ports + hubs that might be causing trouble (also are you providing enough power? Pis sometimes have trouble with peripherals using non-powered hubs)