The scanning device will return a PPDeviceModel object, obtain the device classification through the getDevicePeripheralType () method, and distinguish your own device according to the PeripheralType . The device classification and corresponding examples are as follows: