Monday, January 22nd 2018, 11:17am UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

KayKay

Beginner

Date of registration: Jan 28th 2016

Posts: 4

1

Thursday, January 28th 2016, 3:49pm

Locating J-Link emulator serial number in Windows registry

Hi

A question regarding J-Link driver enumeration in Windows machines, when ignoring serial numbers.

We are using J-Link OB adapters (SAM3U2CA, option with CDC uart) in our development boards, and in production testing we have the situation of several of these adapters being connected at the same time.
The automated test utility reads the device IDs and COM ports of each adapter from the windows registry, they enumerate as composite devices (VID_1366&PID_0105) with the S/N respectively and the J-Link driver as (VID_1366&PID_0105&MI_02). The test utility correctly autodetects everything, no problems so far.

Due to external tool constraints, we had to force windows to ignore the hardware serial numbers when enumerating devices (IgnoreHWSerNum flag). As a result, the composite device does not enumerate with its S/N anymore (as expected), but as a usbcgp with a device ID of this type: VID_1366&PID_0105\7&BE65B57&0&3. There is then no way of distinguishing between the adapters (s/N) and their respective COM ports.

The J-Link commander and J-Link configurator are able to detect all serial numbers correctly.

Since we still need to be able to autodetect both COM ports and serial numbers, is there any way to retrieve the serial numbers of the connected emulators from the registry (or some call to the JlinkARM.dll) ?

Thanks

SEGGER - Niklas

Super Moderator

Date of registration: Oct 6th 2014

Posts: 1,691

2

Tuesday, February 2nd 2016, 9:18am

Hi,

sorry for the delay in response.

Quoted

(or some call to the JlinkARM.dll)

Are you referring to the J-Link SDK?
As the API is not available to the public, I cannot go into much detail, but if you search for "SN" in the SDK Manual (UM8002) you will only find one function, located in chapter 4.3 .

I will pass the question to my colleagues in order to answer to question if it is possible via COM port.

Best regards,
Niklas
Would you like to be added to the J-Link software update notification list, so you get informed automatically when a new version becomes available?
Just write me a PM or in case you want to subscribe to it yourself, please use this link: Link
Notification for J-Link, J-Link Debugger, SystemView & J-Scope: Link
Notification for Embedded Studio: Link