knurling-rs / knurling-session-20q4

Building your own embedded CO2 measuring device. With Rust!
https://session20q4.ferrous-systems.com/
24 stars 9 forks source link

Differet product id in the udev rule #31

Open rihardsk opened 1 year ago

rihardsk commented 1 year ago

Installation instructions say to add an udev rule with a ATTRS{idProduct}=="1015" https://github.com/knurling-rs/knurling-session-20q4/blob/e36b9d91327101d6f9db2d82cc3b400684b60f3e/src/sessions/installation.md?plain=1#L63

However, this doesn't work for my nRF52840 Development because its product id is 1051

❯ lsusb | grep SEGGER
Bus 002 Device 004: ID 1366:1051 SEGGER J-Link

So either there are development kits out there with different product ids, or 1015 is a typo. But seeing how consistent its use is throughout the book (and here https://github.com/knurling-rs/probe-run/issues/220), it seems to me that there indeed must be devkits out there with different product ids?

In either case, imo, this should be reflected in the book (also in the other places that mention that id). I spent way too much time trying to figure out what's wrong, not seeing that the 1015 and 1051 values don't match.

Urhengulas commented 1 year ago

Hi @rihardsk,

Surprisingly this is not a mistake on our side but it actually seems that there are different ids. I observe the following:

$ lsusb | rg SEGGER
Bus 001 Device 008: ID 1366:1015 SEGGER J-Link

Out of curiosity, when did you buy your board? Could this maybe be an error on seggers side?

Anyways, you are right, this should be reflected in the material. Do you want to go forward and add it?

👋🏾