Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to filter USB-Serial Devices using vender-id and product-id #39

Open
miumiu316 opened this issue Oct 8, 2021 · 0 comments
Open

Comments

@miumiu316
Copy link

miumiu316 commented Oct 8, 2021

How to filter the connected USB Serial chip such as CP2102 with vender-id=4292 and product-id=60000 in the react-native-serialport's own manifest file(node_modules\react-native-serialport\android\src\main\AndroidManifest.xml) similar as scheme used in the Android APP Manifest file(android\app\src\main\AndroidManifest.xml) like below:

https://stackoverflow.com/questions/19965209/use-the-device-filter-xml-resource-file-to-filter-usb-enumeration-results

The target is let the APP only respoonses to CP2102 Chip when USB devices are connected, eg. if a U-Disk is connected, there should be no responses to the U-Disk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant