Blinkstick Square Rev3 serial number not OK on Linux


#1

Hi,
I’m using Rust and the example code is working on Mac and giving a valid serial number and turn on the LED, but when connected to Linux the get_serials() or the open_first() fails and when executing HidApi example, I see the SN is “None”.

uname -a
Linux debian 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux

I also installed:
sudo apt-get install libusb-1.0
sudo apt-get install libhidapi-hidraw0

And in Rust I’m using:
blinkstick = "0.1.2"
hidapi = “0.5.0”

Any clue?

10x,

Israel Shianert


#2

Can you post the output of lsusb with BlinkStick plugged in?


#3

Hi Arvydas,

Thank you for your prompt reply.

$ lsusb
Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 007: ID 20a0:41e5 Clay Logic
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

BR,

Israel


#4

Seems that BlinkStick is detected by OS. Which Rust implementation are you using?


#5

Hi,
Edition 2018
10x,
Israel


#6

Oh, I was asking for BlinkStick implementation for Rust :slight_smile:


#7

blinkstick = “0.1.2”


#8

Can you please send the link where you found the source code?


#9

https://docs.rs/crate/blinkstick/0.1.2/source/examples/test.rs


#10

Hi Arvydas,

Any idea?

Israel