How to know about a device is connected to a machine is wireless or wired devices.. in a Linux machine...? is there have any unique features available in device profile for identify it..
Thank you for your valuable information.... I recently working on the intelligence in machines... i acquire alot of information from the USB device profile for finding the device is wireless or not.... There is one attribute showing the device is wireless that its class (e0) . If any USB device's class is e0 .. then its wconn device means its a wireless device . This works on most of the USB devices But some device especially from the vendor specific devices is not showing any class . it is always showing that the Class (ff) means its vendor specific. Is there have any other attribute is there for finding a USB device is Wireless or not.....?
The "Interface Descriptor" is what you need to look at, but there may be multiple interface descriptors for a single device, some of which may be vendor-specific, and you may need to iterate through all of them to find the wireless interface. For example, on my laptop, the Bluetooth interface shows
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 224 Wireless
bInterfaceSubClass 1 Radio Frequency
bInterfaceProtocol 1 Bluetooth
iInterface 0
There are quite a few "vendor specific" interface descriptors as well, but if it is reporting to the operating system that it is a wireless device, at least one descriptor should be showing up as wireless (I believe!).
If the interface is reporting to the operating system that it is a wireless device(wifi, wlan, bluetooth, uwb, ultrawideband, wimax, wwan, gps, fm, nfc...), you can list it with: rfkill list
If it is something more cryptic, you can get its id with: lsusb and with dmesg | grep ID you can see how linux is handling it.
Sorry to say this... Its not working always... Because it can only detect the Bluetooth device... The vendor specific device like ZigBee XBee dongle is not detected by this methods... I checked many ways ... Finally i got realize that the vendor specific device cannot detect by using this method......