Click here to Skip to main content
15,896,481 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I cant send at commands to the modem that connected to my android phone. How to do it?
I can find my usb modem with this code

What I have tried:

C#
int pr_ID, vn_ID;
                pr_ID = vn_ID = 0;
                if (manager.DeviceList.Count != 0)
                {
                    foreach (UsbDevice device1 in manager.DeviceList.Values)
                    {
                        view.Text = "Manufaturer Name= " + device1.ManufacturerName + '\n';
                        view.Text += "Device ID = " + device1.DeviceId.ToString() + '\n';
                        view.Text += "DeviceName= " + device1.DeviceName + '\n';
                        view.Text += "ProductID= " + device1.ProductId.ToString() + '\n';
                        view.Text += "ProductName= " + device1.ProductName + '\n';
                        view.Text += "VendorID " + device1.VendorId.ToString() + '\n';
                        pr_ID = device1.ProductId;
                        vn_ID = device1.VendorId;
                    }
                }
Posted
Updated 11-Nov-16 21:29pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900