LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Bluez and javax.comm ---> NoSuchPortException (https://www.linuxquestions.org/questions/programming-9/bluez-and-javax-comm-nosuchportexception-197121/)

philipina 06-24-2004 06:48 AM

Bluez and javax.comm ---> NoSuchPortException
 
Hi,

I have correctly installed Bluez driver under linux with a serial port emulation "/dev/rfcomm1".
I can open this port with minicom but if I try to use it with the java API java javax.comm I receive the error message "NoSuchPortException".

I don't know if this error comes from a wrong installation of javax.comm or a problem between the API and bluez driver.

Thanks in advance for your help.

Alain.

philipina 06-24-2004 09:16 AM

Hi,

I finally solved my problem by myself. Maybe javax.comm absolutely needs a ttySx string. I have made a symbolic link between ttyS9 and rfcomm1 "ln -s rfcomm1 ttyS9" and if I use ttyS9 as com port parameter it works fine.

Alain.


All times are GMT -5. The time now is 04:11 PM.