Hi,
I would like to add some new information to my post, it seems the error:
- AttributeError: 'NoneType' object has no attribute 'data'
is generated by Python engine. I am not that skilled in Python yet, but
after doing some search, I found out that the problem should be mainly
because getIdent() function in tos-deluge is not returning a valid value
and it should be None which is not accepted by Python,
I also tried to install the Blink in apps/tests/deluge/Blink by:
$ ./burn mib520,com3 serial@com4:57600 iris
it perfectly works as intended but when I try to ping the node:
$ tos-deluge serial@com4:57600 -p 0
Flushing the serial port..
Checking if node is a Deluge T2 base station ...
Pinging node ...
--------------------------------------------------
Currently Executing:
Prog Name: BlinkAppC
UID: 0xA8160D04
Compiled On: Thu May 24 12:16:54 2012
Node ID: 1
Traceback (most recent call last):
File "/usr/local/bin/tos-deluge", line 437, in <module>
ping(imgNum)
File "/usr/local/bin/tos-deluge", line 353, in ping
i = getIdent(imgNum)
File "/usr/local/bin/tos-deluge", line 276, in getIdent
r = read(imgNum, DELUGE_IDENT_OFFSET, DELUGE_IDENT_SIZE)
File "/usr/local/bin/tos-deluge", line 180, in read
reply = SerialReplyPacket(packet.data)
AttributeError: 'NoneType' object has no attribute 'data'
I appreciate your help beforehand,
Regards,
Hamid Rafiei Karkvandi
On Thu, May 24, 2012 at 11:06 AM, Hamid Rafiei Karkvandi <
[email protected]> wrote:
> Hello Everyone,
>
> I have got a problem with Deluge protocol. After a tough day I
> successfully installed and configured Deluge using these scripts:
> ./Bootstrap
> ./configure
>
> and then make; make install for tools/tinyos/misc as the Tutorial
> suggested and everything successfully installed,
>
> I am working on IRIS platform. I installed the Basestation program on IRIS
> using "make iris install,0 mib520,com3", successfully installed.
> but when I try to inject an image on this mote I get the following lines
> and errors:
>
> $ tos-deluge serial@com4:57600 -i 1
> $TOSROOT/apps/Blink/build/iris/tos_image.xm
> l
> Flushing the serial port..
> Checking if node is a Deluge T2 base station ...
> Pinging node ...
> Traceback (most recent call last):
> File "/usr/local/bin/tos-deluge", line 441, in <module>
> inject(imgNum, sys.argv[4])
> File "/usr/local/bin/tos-deluge", line 316, in inject
> i = getIdent(imgNum)
> File "/usr/local/bin/tos-deluge", line 276, in getIdent
> r = read(imgNum, DELUGE_IDENT_OFFSET, DELUGE_IDENT_SIZE)
> File "/usr/local/bin/tos-deluge", line 180, in read
> reply = SerialReplyPacket(packet.data)
> AttributeError: 'NoneType' object has no attribute 'data'
>
> I cannot trace what the problem is, I have seen couple of other posts
> similar to mine but no satisfactory solution was found. I have updated my
> tinyOS to R5949 at the time.
> I appreciate if anyone can guide me through this,
>
>
>
>
>
>
>
> Regards,
>
>
> Hamid Rafiei Karkvandi
>
>
>
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help