PPK2 via python in Linux of Chromebook

Hi!
I want to run the PPK2 via the python API from a virtual env in the linux container of a Chromebook. Is this possible?

When I plug in the kit and select "connect to linux" i can list it in lsusb. However, if I try list_devices() from the API i get nothing, just []. I tried creating a udev rule that sets access to the PPK2, but I can't see anything happening in udevadm monitor when i plug in the device, something with the Chromebook environment? I did install nrf connect desktop for linux, and the PPK app(?). From the gui software i can select the device, but i cant fully connect to it. It gets stuck at opening device with S/N ...

Any ideas? Thoughts?

(venv-compact) aquaroburproductiontest1@penguin:~/compact-rig/python-hw-test$ python3
Python 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> PPK2_API.list_devices()
KeyboardInterrupt
>>> import ppk2_api
>>> from ppk2_api.ppk2_api import PPK2_API
>>> PPK2_API.list_devices()
[]
>>>
[2]+  Stopped                 python3
(venv-compact) aquaroburproductiontest1@penguin:~/compact-rig/python-hw-test$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 1915:c00a Nordic Semiconductor ASA PPK2
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
(venv-compact) aquaroburproductiontest1@penguin:~/compact-rig/python-hw-test$ cat /etc/udev/rules.d/98-nrf-ppk2.rules
SUBSYSTEM=="usb", ATTRS{idVendor}=="1915", ATTRS{idProduct}=="c00a", MODE="0666"

Parents Reply Children
Related