Hobbs, do you know if maria will stay in our campsite or how many they
are? I think we still should have some space left.

Thomas

On 2/13/09, Razvan Musaloiu-E. <[email protected]> wrote:
> Hi!
>
> On Fri, 13 Feb 2009, Mehmet Akif Antepli wrote:
>
>> Hello  Razvan,
>>
>> Besides TelosB and MICAz, I have some custom motes called 'Sensenode'.
>> Actually, it is completely the same as TelosB but has an extra sensor
>> board
>> on it. (Sensenode has the same MCU, Flash, Radio... with that of TelosB).
>>
>> When i load a program image which is build for TelosB into Sensenode, it
>> works as well.
>
> Quick question: for Sensenode do you upload the image doing 'make telosb
> install'?
>
>> Now, I want to use Deluge T2 for 'Sensenode' as i can use it for TelosB
>> and
>> MICAz motes.
>>
>> First of all, i tried to load some images into the flash of 'Sensenode'
>> and
>> then reprogram it from  those images. i took the following steps;
>>
>> 1-) Build GoldenImage with the following command;
>>
>>     CFLAGS=-DDELUGE_BASESTATION make telosb
>>
>> and then load the image into 'Sensenode'.
>
> Note: if you run the latest CVS (highly recommended :D) you should use the
> apps/tests/deluge/Basestation.
>
>> 2-) Build /op/tinyos-2.1.0/apps/tests/deluge/Blink with the following
>> command;
>>
>>    make Telosb
>>
>> 3-) Inject Blink application image into the  flash of 'Sensenode' with the
>> following command:
>>
>> /usr/bin/tos-deluge /dev/ttyUSB0 telosb -i 1
>> /opt/tinyos-2.1.0/apps/tests/deluge/Blink/build/telosb/tos_image.xml
>>
>> 4-) Ping  'Sensenode' with the following command:
>>
>>     tos-deluge /dev/ttyUSB0 telosb -p 1
>>
>> and i see that 'Sensenode' is loaded with  GoldenImage and Blink
>> application
>> image is on its flash as the 1st image.
>>
>> 5-) reprogram 'Sensenode' with the following command:
>>
>>     tos-deluge /dev/ttyUSB0 telosb -r 1
>>
>> *Then nothing happens on the 'Sensenode'! *
>> **
>> *Before those steps; in order to make sure that 'Sensenode' could run
>> /opt/tinyos-2.1.0/apps/tests/deluge/Blink application, i loaded it into
>> 'Sensenode' (after building for TelosB) and i saw that the mote blinks!*
>> **
>> *There seems a problem with the flash but i could'nt figure it out.*
>> **
>> *i checked hardware.h files for both platforms ('Sensenode' and TelosB)
>> but
>> everything is the same.*
>> **
>> *i also checked * *the files and folders under
>> /opt/tinyos-2.1.0/tos/lib/net/deluge, i found that 5 or 6 files are
>> dependent on TelosB platform but as far as i saw, those files are related
>> to
>> baud rate and flash specs which is the same for 'Sensenode'.*
>> **
>> *Actually, i want to ask which files should i check for compatible
>> operation
>> of flah on the 'Sensenode' with the one on the TelosB. What could be the
>> difference? Which does Deluge T2 need for TelosB in terms of flash so that
>> i
>> can check for them for 'Sensenode'?*
>> **
>> *Any suggestions?*
>
> I think the problem might be in the tosboot (tos/lib/tosboot). There there
> is some code that is responsible with reading stuff the external flash and
> write it on the internal one. The code responsible with this is in
> tos/lib/tosboot/stm25p for telos. The main component for tosboot is
> TOSBootM.nc. I usually debug it using the leds.
>
> All the best!
> Razvan ME
>
>> On Sat, Feb 7, 2009 at 12:30 AM, Razvan Musaloiu-E.
>> <[email protected]>wrote:
>>
>>> Hi!
>>>
>>> On Fri, 6 Feb 2009, Mehmet Akif Antepli wrote:
>>>
>>> Hi Razvan,
>>>>
>>>> I did all the five steps that i mentioned previously with your comment
>>>> on
>>>> '-'  for the first two steps as follows;
>>>>
>>>> 1-) CFLAGS=-DDELUGE_BASESTATION make micaz install,0 mib520,/dev/ttyUSB0
>>>> 2-) CFLAGS=-DDELUGE_LIGHT_BASESTATION make telosb install
>>>> bsl,/dev/ttyUSB2
>>>>
>>>> Then i *succeeded* to disseminate Blink and now, TelosB blinks :)
>>>> Thus, cross-platform issue is ok for MICAz and TelosB motes!
>>>>
>>>>
>>> Great! :-)
>>>
>>> However, after i run the last command
>>>> "/usr/bin/tos-deluge /dev/ttyUSB1 micaz -dr 1"
>>>>
>>>> it took about *45* *seconds *to reboot TelosB itself. Does it normal?
>>>>
>>>
>>> That sounds about right.
>>>
>>> --
>>> Razvan ME
>>>
>>>
>>> Thanks in advance,
>>>>
>>>> Mehmet Akif Antepli
>>>> Graduate Student
>>>> Dept. of Electrical-Electronics Eng.
>>>> METU
>>>>
>>>>
>>>> On Fri, Feb 6, 2009 at 8:37 PM, Razvan Musaloiu-E. <[email protected]>
>>>> wrote:
>>>>
>>>>> Hi!
>>>>>
>>>>> On Fri, 6 Feb 2009, Mehmet Akif Antepli wrote:
>>>>>
>>>>> Hi Razvan,
>>>>>>
>>>>>> Btw: make sure you don't forget the '-' in
>>>>>> 'CFLAGS=-DDELUGE_BASESTATION' and
>>>>>>> 'CFLAGS+=-DDELUGE_LIGHT_BASESTATION'. I presume it was a typo in your
>>>>>>> original message. :-)
>>>>>>>
>>>>>>
>>>>>> While writing the e-mail, actually I couldn't remember whether i used
>>>>>> '-' or not :-).  But, i did not get any errors, that's for sure!
>>>>>>
>>>>>> Anyhow, i don't remember the '-' thing for now, but this evening i
>>>>>> have  a chance to go to lab and test it.
>>>>>>
>>>>>> Thanks for your reply Razvan,
>>>>>>
>>>>>> By the way, is there a mistake in the tos-deluge python script under
>>>>>> tinyos-2.x/tools/tinyos/misc?
>>>>>>
>>>>>> Actually, I use TinyOS-2.1.0 in XubunTOS-2.1.0 but, I also downloaded
>>>>>> tinyos-2.x form CVS
>>>>>> to use python scripts related to tinyos-2.x/tools (altough they are
>>>>>> installled in Tinyos-2.1.0 under usr/bin). In the Deluge T2 document
>>>>>> (http://docs.tinyos.net/index.php/Deluge_T2) it says that;
>>>>>>
>>>>>> Tools Installation
>>>>>> Deluge T2 requires a few Python scripts that not yet included in the
>>>>>> official tinyos-tools RPM package. On the CVS, the scripts are located
>>>>>> in tinyos-2.x/tools/tinyos/misc. The steps to install them are the
>>>>>> following:
>>>>>>
>>>>>> % cd $TOSROOT/tools
>>>>>> % ./Bootstrap
>>>>>>   ...
>>>>>> % ./configure
>>>>>>   ...
>>>>>> % cd tinyos/misc
>>>>>> % make ; make install
>>>>>>   ...
>>>>>>
>>>>>> For TinyOS-2.1.0, tos-deluge python script is in usr/bin
>>>>>>
>>>>>> After i do those steps above, i have a second tos-deluge python script
>>>>>> but this time under usr/local/bin.Then, i do the 5 steps that i wrote
>>>>>> previously to implement application image dissemination, (but this
>>>>>> time by calling /usr/local/bin/tos-deluge).
>>>>>>
>>>>>
>>>>> If you don't give the '--prefix=...' to the ./configure script then the
>>>>> default install path is /urs/local. The text from the wiki manual says
>>>>> this:
>>>>>       By default, the files will be installed in /usr/local/bin. If
>>>>>       desired, the --prefix parameter from configure can be used to
>>>>>       indicate a different path.
>>>>>
>>>>> However, i got an error related to tos.AM(), about missing parameters
>>>>>> where in the code below (code in the /usr/local/bin/tos-deluge), there
>>>>>> is not any argument for tos.AM();
>>>>>>
>>>>>> 398 # ======== MAIN ======== #
>>>>>> 399 if len(sys.argv) >= 3:
>>>>>> 400
>>>>>> 401     am = tos.AM()
>>>>>>
>>>>>>
>>>>>> what do you think about that? Have you ever been faced with that kind
>>>>>> of an error, or i messed up everything relating to tinyos-tools?
>>>>>>
>>>>>
>>>>> The place of tos.py, the Python library used by the tos-deluge, changed
>>>>> from
>>>>> 2.1 and now is in $TOSDIR/support/sdk/python. In you case the
>>>>> tos-deluge
>>>>> might pick-up by mistake the old one from 2.1
>>>>>
>>>>> --
>>>>> Razvan ME
>>>>>
>>>>> Note that: The first error event that i have been faced with, has
>>>>>> nothing to do with that new error event becasue when i failed in the
>>>>>> former, i tried the latter hoping to run dissemination!
>>>>>>
>>>>>> Thanks in advance,
>>>>>>
>>>>>> Mehmet Akif Antepli
>>>>>> Graduate Student
>>>>>> Dept. of Electrical-Electronics Eng.
>>>>>> METU
>>>>>>
>>>>>>
>>>>>> On Fri, Feb 6, 2009 at 10:57 AM, Razvan Musaloiu-E.
>>>>>> <[email protected]> wrote:
>>>>>>
>>>>>>>
>>>>>>> Hi!
>>>>>>>
>>>>>>> Sorry for delay, I just noticed this thread.
>>>>>>>
>>>>>>> On Fri, 6 Feb 2009, Mehmet Akif Antepli wrote:
>>>>>>>
>>>>>>> Hi Bai,
>>>>>>>>
>>>>>>>> Thanks for your reply.
>>>>>>>>
>>>>>>>> I flaged TelosB with Light_Base_Station since i want to ping TelosB,
>>>>>>>> also. Therefore, i included this "CFLAGS+=DDELUGE_LIGHT_BASESTATION"
>>>>>>>> in the 2nd step.
>>>>>>>>
>>>>>>>
>>>>>>> It's not a mistake to use -DDELUGE_LIGHT_BASESTATION without any
>>>>>>> errors. I
>>>>>>> never test the cross-platform operation of Deluge T2 but I'll do it
>>>>>>> tomorrow.
>>>>>>>
>>>>>>> Btw: make sure you don't forget the '-' in
>>>>>>> 'CFLAGS=-DDELUGE_BASESTATION' and
>>>>>>> 'CFLAGS+=-DDELUGE_LIGHT_BASESTATION'. I presume it was a typo in your
>>>>>>> original message. :-)
>>>>>>>
>>>>>>> --
>>>>>>> Razvan ME
>>>>>>>
>>>>>>> Anyhow, i will do the 2nd step without
>>>>>>>> "CFLAGS+=DDELUGE_LIGHT_BASESTATION" again and see whether it works
>>>>>>>> or
>>>>>>>> not.
>>>>>>>>
>>>>>>>>
>>>>>>>> Mehmet Akif Antepli
>>>>>>>> Graduate Student
>>>>>>>> Dept. of Electrical-Electronics Eng.
>>>>>>>> METU
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Fri, Feb 6, 2009 at 2:15 AM, BAI LI <[email protected]> wrote:
>>>>>>>>
>>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> I think your second step was not correct. You should not flag the
>>>>>>>>> telosb
>>>>>>>>> with base station since your micaz was working as base station now.
>>>>>>>>> you can
>>>>>>>>> normally install Goldimage on telosb with an id.
>>>>>>>>>
>>>>>>>>> Regards,
>>>>>>>>> Bai
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>


-- 
"Don't complain; Just work harder" - Randy Pausch

Thomas Schmid, Ph.D. Candidate
Networked & Embedded Systems Laboratory (NESL)
University of California, Los Angeles (UCLA)
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to