Closed UzairJawaid closed 2 years ago
I'm able to use the library with a CH340 with the following entry in the device_filter.xml
. Add this to your file and try again. maybe it'll resolve your problem.
<usb-device vendor-id="6790" product-id="29987" /> <!-- 0x7523: CH340 -->
I am having the same problem with a K3 Pro Body Thermometer that uses the CH340. This chip has a Vendor Id: 1A86 and Product ID:7523 The app I am developing can connect to other devices (ej. a device with the FTDI chip) but not with this one. I also downloaded the Serial USB Terminal app for testing and that app can connect with the thermometer with no problem, but not with my app that uses the usb_serial plugging. Please Help.
@asada03 if the Terminal app can connect to your thermometer, the code for a simpler version of that app exists, which I believe uses the same device_filter.xml. I think you can find the link to its repo in the About section of the Terminal app.
From that repo, check which one of the filters in the XML file match with your specific device.
Hope this helps.
Thank you @MiladEsp. I will try that!
I am trying to communicate with arduino, i have chinese version. but this code is not supporting that. though code works perfectly ok with esp32.