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

GetPorts api is not able to display COM port in Ubuntu. #47

Open
mahendratallam opened this issue Oct 14, 2016 · 0 comments
Open

GetPorts api is not able to display COM port in Ubuntu. #47

mahendratallam opened this issue Oct 14, 2016 · 0 comments

Comments

@mahendratallam
Copy link

Hi,

I have Downloaded the jUART and built according to mentioned steps in readme.md. It generates npjUART.so. Copied this generated .so file to /usr/lib/.mozilla/plugins directory.

I am trying to know com ports present in the ubuntu machine by calling the getports api.

I could able to see COM port ttyUSB0 in the /dev/ directory. However no devices are displayed when i run the html file. Here is the code I am trying.


function ListPorts() {
if ( ser ) ser.close();
console.time("plugin.serial");
ser = plugin().Serial;// Get a Serial object
if ( ser ) { console.log("Got serial object successfully..."); }
else { alert("ERROR: Could not get serial object!"); return; }
console.timeEnd("plugin.serial");
console.time("getports");
ports = ser.getports();
console.timeEnd("getports");
console.log( "Available ports: " + ports);
}


Could you please tell if i am missing anything.

Thanks
Mahendra.

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

No branches or pull requests

2 participants