1. Dependency(1) First, place the dynamic library in the appropriate location.
For Linux, use the .so library and place it in resources/linux-x86-64/
For Windows, use the .dll and place it in resources/

(2) Place the jna-5.6.0.jar package in the lib directory.
2. Dependency Configuration(1) Add the dependency for the jna-5.6.0.jar package in the pom.xml file. <dependency>
<groupId>com.sun</groupId>
<artifactId>jna</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/jna-5.6.0.jar</systemPath>
</dependency>
Note: If this method cannot reference the jar package, you can execute this command.Install the dependencies in your own repository, and then reference them using the following method. <dependency>
<groupId>com.sun</groupId>
<artifactId>jna</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
3. Create a JNA interface (the following code can be directly copied)**4. Call the device search interface **
(1) Asynchronous5. System Version Requirements(1) Windows:
At least Windows XP
(2) Linux:
At least glibc 2.19
At least Ubuntu 14.04.4 x86_64
At least CentOS 7 x86_64