Re: [Tinyos-help] MOTECOM=serial@/dev/ttyUSB0:tmote java net.tinyos.tools.Listen not working
On 8/25/06, Cormac Duffy <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] jni]$ MOTECOM=serial@/dev/ttyUSB0:tmote java net.tinyos.tools.Listen Error on serial@/dev/ttyUSB0:57600: java.io.IOException: Invalid port. Known serial ports: - COM1 - COM2 - COM3 - COM4 anyone know why? Just for reference: with tinyos 1.x, you have to use the COMn names, even on Linux (see Cormac's followup). With tinyos 2.x, you should use the device name (e.g., /dev/ttyUSB2). David Gay ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] MOTECOM=serial@/dev/ttyUSB0:tmote java net.tinyos.tools.Listen not working
I follow the steps, but there is also have problems.When I use "serial@/dev/ttyUSB0:telosb", follow error is appeared.serial@/dev/ttyUSB0:57600 died - restarting (java.io.IOException : Couldn't configure /dev/ttyUSB0)When I use "[EMAIL PROTECTED]:telosb", follow error is appeared.Listening to [EMAIL PROTECTED]:telosbPlatform telosListening for client connections on port 9001 [EMAIL PROTECTED]:57600 died - restarting (java.io.IOException: Invalid port. Known serial ports:- /dev/ttyUSB0- /dev/ttyS6)What is going wrong? Anyone know about that? Thank you.CM On 8/25/06, David Gay <[EMAIL PROTECTED]> wrote: On 8/25/06, Cormac Duffy <[EMAIL PROTECTED]> wrote:> [EMAIL PROTECTED] jni]$ MOTECOM=serial@/dev/ttyUSB0:tmote java> net.tinyos.tools.Listen> Error on serial@/dev/ttyUSB0:57600: java.io.IOException: Invalid port.> Known serial ports:> - COM1> - COM2> - COM3> - COM4> > anyone know why?Just for reference: with tinyos 1.x, you have to use the COMn names, even on Linux (see Cormac's followup). With tinyos 2.x, you should usethe device name (e.g., /dev/ttyUSB2).David Gay___Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDUhttps://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] MOTECOM=serial@/dev/ttyUSB0:tmote java net.tinyos.tools.Listen not working
On 8/25/06, Ming <[EMAIL PROTECTED]> wrote: I follow the steps, but there is also have problems. When I use "serial@/dev/ttyUSB0:telosb", follow error is appeared. serial@/dev/ttyUSB0:57600 died - restarting (java.io.IOException : Couldn't configure /dev/ttyUSB0) Do you have write access to /dev/ttyUSB0? (the easiest way to ensure this is typically to add yourself to the uucp group) David Gay ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] MOTECOM=serial@/dev/ttyUSB0:tmote java net.tinyos.tools.Listen not working
How can I add myself to the uucp group? I have run this command "chmod 777 /dev/ttyUSB0". Is it correct? On 8/26/06, David Gay <[EMAIL PROTECTED]> wrote: On 8/25/06, Ming <[EMAIL PROTECTED]> wrote:> I follow the steps, but there is also have problems. >> When I use "serial@/dev/ttyUSB0:telosb", follow error is appeared.>> serial@/dev/ttyUSB0:57600 died - restarting (java.io.IOException : Couldn't> configure /dev/ttyUSB0) Do you have write access to /dev/ttyUSB0? (the easiest way to ensurethis is typically to add yourself to the uucp group)David Gay ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] MOTECOM=serial@/dev/ttyUSB0:tmote java net.tinyos.tools.Listen not working
one way is the shell command 'usermod', but most linux distros provide a GUI for user mgmt. by running chmod 777 you made the device file r/w/x accessible by everybody (including yourself) rather than adding yourself to the group that had/s permission to access the file (which is what usermod can do with the -G option). i suppose that if after chmod you still had problems, then the problem is not strictly a permission problem. -shane On Sat, 26 Aug 2006, Ming wrote: How can I add myself to the uucp group? I have run this command "chmod 777 /dev/ttyUSB0". Is it correct? On 8/26/06, David Gay <[EMAIL PROTECTED]> wrote: On 8/25/06, Ming <[EMAIL PROTECTED]> wrote: > I follow the steps, but there is also have problems. > > When I use "serial@/dev/ttyUSB0:telosb", follow error is appeared. > > serial@/dev/ttyUSB0:57600 died - restarting (java.io.IOException : Couldn't > configure /dev/ttyUSB0) Do you have write access to /dev/ttyUSB0? (the easiest way to ensure this is typically to add yourself to the uucp group) David Gay http://www.comet.columbia.edu/~shane ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] MOTECOM=serial@/dev/ttyUSB0:tmote java net.tinyos.tools.Listen not working
If you are using fedora, Changing permissions with the following (as root) will only remain accessable to other users as long as usb device is connected. If usb device is removed or pc reboots, all permissions are reset to root. chmod a=+xrw /dev/ttySO (if using serial) chmod a=+xrw /dev/ttyUSB0 (if using USB) www.jpilot.org/pipermail/jpilot/2005-July/005210.html explains how to edit udev rules such that permission can be set for all users. vi /etc/udev/rules.d/50-udev.rules change KERNEL=="ttyS*",GROUP="uucp", MODE="0666" to KERNEL=="ttyS*",GROUP="uucp", MODE="0660" and the same for KERNEL=="ttyUSB*", GROUP="uucp", MODE="0666" NOTE: I dont know what security risks there are using these permissions. hope this helps, Cormac On Sat, 2006-08-26 at 12:49 +0800, Lau Ming Leong wrote: > How can I add myself to the uucp group? I have run this command "chmod > 777 /dev/ttyUSB0". Is it correct? > > On 8/26/06, David Gay <[EMAIL PROTECTED]> wrote: > On 8/25/06, Ming <[EMAIL PROTECTED]> wrote: > > I follow the steps, but there is also have problems. > > > > When I use "serial@/dev/ttyUSB0:telosb", follow error is > appeared. > > > > serial@/dev/ttyUSB0:57600 died - restarting > ( java.io.IOException : Couldn't > > configure /dev/ttyUSB0) > > Do you have write access to /dev/ttyUSB0? (the easiest way to > ensure > this is typically to add yourself to the uucp group) > > David Gay > ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help