SimInnovations / libknobster

Library used to connect to a Knobster
3 stars 2 forks source link

Identify multiple knobsters #2

Open c0nnex opened 7 months ago

c0nnex commented 7 months ago

i'm using libknobester to support Knobster devices in SPAD.neXt. If someone has more than one Knobster connected, those are changing the order in libknobster_scan sometimes , e.g. if windows reordered the usb ports or the usb port was changed. Can you please disclose the struct returned by libknobster_scan so i can check if it contains any information (like e.g. the devicepath or serial) to uniquely identify the knobster device?

gitgwa commented 6 months ago

Email response on Feb 28 from Siminnovations; does not address the issue of getting the DeviceID from libknobster_scan. This repos doesn't have the source for the libknobster.dll.

=================== Right now there's no option to set the channel, this can only be done with Air Manager (also without a license).

You can read the channel with the API.

Kind regards, Ralph

SimInnovations commented 1 month ago

Hi,

Just pushed a new version with a 'libknobster_set_channel' function.

Hope this helps. Let me know if you can get it working,

Corjan

c0nnex commented 1 month ago

Hi,

Just pushed a new version with a 'libknobster_set_channel' function.

Hope this helps. Let me know if you can get it working,

Corjan

Thanks, works as expected and solves the problem.

However I noticed some issue with "reopening" devices.

If I loop through all knobsters to get their channels and close them again (open->wait for channel->close) in the startup, any following call to libknobster_connect on that knobster will result in an unhandled exception within the libknobster.dll shall i open a new issue for that?