getDongleInfo
First introduced in version: 3.00.6.5
Syntax
getDongleInfo()
Details
Queries the hardware serial numbers, HIDs, and current node usage status of all hardware dongles, ROCKEY-ARM, recognized on the current machine.
This function can be called only by administrators on Linux. It can be executed under any authorization method.
Note: This function lists only the currently inserted physical dongles. Dongles that have been removed no longer appear in the query result.
Parameters
None
Returns
Returns a table. Each row corresponds to one hardware dongle recognized by the current machine. If no dongle is recognized or the current user has no access permission, an empty table is returned.
-
hid: A STRING vector. The hardware serial numbers, HIDs, fixed at the factory for the dongles, each a 16-digit hexadecimal string.
-
inUse: A BOOL vector indicating whether the dongle is the device currently being used by the calling node.
-
true indicates that the calling node is currently using the dongle.
-
false indicates that the calling node is not occupying the dongle, which does not mean that other nodes on the machine are not occupying it. If the current node uses a local license file or centralized authorization through License Server, it does not directly use a local dongle, so this column always returns false.
-
Examples
getDongleInfo()
| hid | inUse |
|---|---|
| 1B5F342BDA053709 | true |
| 1BDF3C2BDE054009 | false |
Related function: setDongleHID
