Hi!

On Tue, 18 Mar 2008, [EMAIL PROTECTED] wrote:

Hi Mike,
I did what you suggested to me and my USB ports have been resetted. However in these days I have fixed the problem of opening the serial ports modifying the burn file. I saw that for the command: CFLAGS=-DDELUGE_BASESTATION make ${PLATFORM} install bsl,${PORT} the value of ${PORT} had to be the number 26, while for the other command: ${TOS_DELUGE} ${PORT} ${PLATFORM} -i 0 build/${PLATFORM}/tos_image.xml I needed to insert /dev/tty$26. In this way I could open the serial port and proceed with the uploading of the image.

This problem stems from the fact that tos-deluge is using the system-wide pyserial while tos-bsl is using his own copy.

Doing this I could upload the image and check that the tos-deluge instruction works in my machine. The problem now is that, for some strange reason, the same tos-deluge command doesn't work for the reboot.
I wrote this script and I obtanied the sequent errors:

$ tos-deluge /dev/ttyS7 telosb -b
Traceback (most recent call last):
 File "/usr/local/bin/tos-deluge", line 423, in <module>
   if boot():
 File "/usr/local/bin/tos-deluge", line 337, in boot
   return handleResponse(success, "ERROR: Unable to boot the mote")
 File "/usr/local/bin/tos-deluge", line 132, in handleResponse
   packet = s.sniff_am()
 File "/usr/local/bin/tinyos.py", line 184, in sniff_am
   p = self.sniff(skip_queue)
 File "/usr/local/bin/tinyos.py", line 141, in sniff
   d = self._get_byte()
 File "/usr/local/bin/tinyos.py", line 99, in _get_byte
   r = struct.unpack("B", self._s.read())[0]
 File "/usr/lib/python2.5/site-packages/serial/serialposix.py", line 275, in re
ad
   ready,_,_ = select.select([self.fd],[],[], self._timeout)

Do you or someone else knows how to fix this problem?

Which version of Deluge T2 are you using? The CVS HEAD or the one from the git repository [1]?

[1] http://hinrg.cs.jhu.edu/git/?p=deluge/tinyos-2.x.git

--
Razvan ME

________________________________

Da: Chieh-Jan (Mike) Liang [mailto:[EMAIL PROTECTED]
Inviato: ven 14/03/2008 19.07
A: [EMAIL PROTECTED]
Cc: weiping SONG; [email protected]
Oggetto: Re: R: [Tinyos-help] Deluge T2: Unable to initialize serial port


Hi Alessio,

In general, I have bad experience with opening serial ports that have high
numbers under Cygwin. Try something for me. Download FTClean.zip from FTDI
website, and this is going to reset the virtual COM numbering. Now, if you
plug your mote in, it should be COM3 which should work fine.

Mike

On Fri, 14 Mar 2008, [EMAIL PROTECTED] wrote:

Hi Weiping,
I installed the last version of Deluge T2 and I followed your suggestions but 
nothing different is happened. I tryed injetting different values, but the 
result is the same.
Maybe i am putting the wrong reference to the serial port..But doing motelist I 
obtain:
Reference: M4AN6DFK
CommPort: COM27
Description: USB Device
What do you think about that?
Thanks,
Alessio

________________________________

Da: weiping SONG [mailto:[EMAIL PROTECTED]
Inviato: ven 14/03/2008 14.46
A: [EMAIL PROTECTED]
Oggetto: Re: [Tinyos-help] Deluge T2: Unable to initialize serial port



[EMAIL PROTECTED] wrote:
Hi Razvan,
I am trying to install Deluge T2 (Blink application) on a windows
based machine and I am having some problems. The mote that I am using
is connected to COM27 port and when I type ./burn COM27 telosb it
doesn't work because of it is impossible to open that port. So I tryed
to type ./burn 26 telosb and in this case something different
happened. The used port could be opened and the first part of the
application was compiled. When the burn application try to upload the
image executing ${TOS_DELUGE} ${PORT} ${PLATFORM} -i 0
build/${PLATFORM}/tos_image.xml, a new error appear.
ERROR: Unable to initialize serial port connection to 26.
The same error is printed also when the application try to reboot the
base station doing ${TOS_DELUGE} ${PORT} ${PLATFORM} -b 0 .
Could you suggest me something?
Thanks in advance,
regards,
Alessio Barbirato.
------------------------------------------------------------------------

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Hi Alessio,

Which version of Deluge T2 are you using?  You might get the lastest
version of Deluge T2 from this git repository:
   http://hinrg.cs.jhu.edu/git/deluge/tinyos-2.x.git
   http://hinrg.cs.jhu.edu/git/?p=deluge/tinyos-2.x.git (gitweb)

And you could not inject an image to slot 0, so try to inject 1,2 or 3
(... -i 1...)

I hope this information will to helpful to you.

Weiping Song






_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to