I have plugged the USB Dongle in one port of my PC, which is running on the Ubuntu Machine, Now i need to find which port the USB Dongle is connected to. In windows normally it is detecting in COM4, now i need to find what is the PORT i need to use for Ubuntu OS. can anyone please help.
All i need is, to connect through USB dongle from the java program. I'm using RXTXComm.jar.
Code i'm using to connect:
portId = CommPortIdentifier.getPortIdentifier("/dev/ttyUSB0");
Always i'm getting
NoSuchPort Exception only.
I have tried using , ttyUSB0/ttyUSB1/ttyUSB2
like that. but no use. can anyone please help me how can i find the port id in ubuntu machine.