> In my application i need two apps to communicate with serail port : one for listening and one for sending message.
The TestSerial do something similar. The packets are being send and received by only one application. Hence are using "single entry point" by two applications on the PC. I think if two applications are trying to acquire a same port then it might not work. Just like you cannot use two Java applications running simultaneously and writing in a same file. It is because each application might locks the file to access it. The better solution is that two application use a common access/entry point for the different application. I might be wrong but that is my take on it. Faisal chikh omar wrote: > following lesson 4: Mote-pc serial comm > When I try to run : > $ java net.tinyos.tools.Listen > on a cygwin window > and > $java TestSerial > on another cygwin window I got the following error: > ser...@com10:115200 <mailto:ser...@com10:115200> died - exiting > (java.io.IOException: Could not open COM10: TOSComm JNI library > runtime erro > r: Error 5. > Accés refusé. > in NativeSerialPort.CreateFile) > > I understand that it is an refused acces problem. But in my > application i need two apps to communicate with serail port : one for > listening and one for sending message. > > Any help please. > > *********************************************** > Omar Cheikhrouhou > **Engineer & Researcher @SENS Lab (Software Engineering and Network > Security) > Higher Institute of Technological Studies - Address : Mahdia's road Km > 2.5 Sfax. BP 88 A - 3099 El Bustan Sfax Telephone : (+216)74 237425 > Poste : 437** **Fax: : (+216)74 431 386* > > *Ph.D @ CES Lab (Computer and Embedded System)-University of Sfax, > National School of Engineers BP W, Sfax, 3038, Tunisia , > Fax:(+216)74665369 ** * > > *Coordinator C2i @ ISET Sfax (Certified C2i since 2008)* > > > ------------------------------------------------------------------------ > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
