Nguyen Tuan Linh | 7 May 05:30 2009
Picon

Re: liteos-developers Digest, Vol 10, Issue 2

Thank you very much!
I recognized that i confused c:/LiteOS/... with /c/LiteOS/... in two different cases.
It's ok now.
But I have other trouble with sensorial application. The first time when I install LiteOS onto iris mote, it's ok with sensorial application( ./light 50 600, and it return 50 values with 600ms cycle). But now, I can't receive any other results more than "Get reading of 0".
There is an attached picture which I captured.

Thanks!

On Thu, May 7, 2009 at 12:00 AM, <liteos-developers-request-Tmj1lob9twqVc3sceRu5cw@public.gmane.org> wrote:
Send liteos-developers mailing list submissions to
       liteos-developers-Tmj1lob9twqVc3sceRu5cw@public.gmane.org

To subscribe or unsubscribe via the World Wide Web, visit
       http://lists.cs.uiuc.edu/mailman/listinfo/liteos-developers
or, via email, send a message with subject or body 'help' to
       liteos-developers-request-Tmj1lob9twqVc3sceRu5cw@public.gmane.org

You can reach the person managing the list at
       liteos-developers-owner-Tmj1lob9twqVc3sceRu5cw@public.gmane.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of liteos-developers digest..."


Today's Topics:

  1. Re: Cannot copy file from local to remote (IRIS   + LiteOS)
     (Qing Cao)


----------------------------------------------------------------------

Message: 1
Date: Tue, 5 May 2009 22:26:08 -0500
From: Qing Cao <qcao2-Tmj1lob9twqVc3sceRu5cw@public.gmane.org>
Subject: Re: [liteos-developers] Cannot copy file from local to remote
       (IRIS   + LiteOS)
To: liteos-developers-Tmj1lob9twqVc3sceRu5cw@public.gmane.org
Message-ID:
       <bae22510905052026m45769148he182a648dd7de4f5-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Content-Type: text/plain; charset=UTF-8

Could you please offer more details? Like, what is the error messages
you got or how is the node responding? Please note that you should
write the local directory as /c/LiteOS/... . Also, do you see the cp
command progress?

Qing

On Mon, May 4, 2009 at 11:48 PM, Nguyen Tuan Linh
<nguyentuanlinh.atvn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> I could not copy Blink.lhex file from cygwin driver C:/LiteOS/.../Blink to
> root directory of one mote. I followed the usermanual but it wasn't better.
> How will I find the solution?
> Thanks!
> --------------------------
> Nguy?n Tu?n Linh
>
> _______________________________________________
> liteos-developers mailing list
> liteos-developers-Tmj1lob9twqVc3sceRu5cw@public.gmane.org
> http://lists.cs.uiuc.edu/mailman/listinfo/liteos-developers
>
>



--
Qing Cao, Ph.D.
Postdoctoral Research Associate
Department of Computer Science
University of Illinois at Urbana-Champaign
http://www.cs.uiuc.edu/homes/qcao2



------------------------------

_______________________________________________
liteos-developers mailing list
liteos-developers-Tmj1lob9twqVc3sceRu5cw@public.gmane.org
http://lists.cs.uiuc.edu/mailman/listinfo/liteos-developers


End of liteos-developers Digest, Vol 10, Issue 2
************************************************



--
--------------------------
Nguyễn Tuấn Linh
<div>
<p>Thank you very much!<br>I recognized that i confused <span>c:/LiteOS/...</span> with<span> /c/LiteOS/...</span> in two different cases.<br>
It's ok now. <br>But I have other trouble with sensorial application. The first time when I install LiteOS onto iris mote, it's ok with sensorial application( ./light 50 600, and it return 50 values with 600ms cycle). But now, I can't receive any other results more than "Get reading of 0". <br>
There is an attached picture which I captured.<br><br>Thanks!<br><br></p>
<div class="gmail_quote">On Thu, May 7, 2009 at 12:00 AM,  <span dir="ltr">&lt;<a href="mailto:liteos-developers-request@..." target="_blank">liteos-developers-request@...</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">Send liteos-developers mailing list submissions to<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:liteos-developers@..." target="_blank">liteos-developers@...</a><br><br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://lists.cs.uiuc.edu/mailman/listinfo/liteos-developers" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/liteos-developers</a><br>
or, via email, send a message with subject or body 'help' to<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:liteos-developers-request <at> cs.uiuc.edu" target="_blank">liteos-developers-request@...</a><br><br>
You can reach the person managing the list at<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:liteos-developers-owner@...uc.edu" target="_blank">liteos-developers-owner@...</a><br><br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of liteos-developers digest..."<br><br><br>
Today's Topics:<br><br>
 &nbsp; 1. Re: Cannot copy file from local to remote (IRIS &nbsp; + LiteOS)<br>
 &nbsp; &nbsp; &nbsp;(Qing Cao)<br><br><br>
----------------------------------------------------------------------<br><br>
Message: 1<br>
Date: Tue, 5 May 2009 22:26:08 -0500<br>
From: Qing Cao &lt;<a href="mailto:qcao2@..." target="_blank">qcao2@...</a>&gt;<br>
Subject: Re: [liteos-developers] Cannot copy file from local to remote<br>
 &nbsp; &nbsp; &nbsp; &nbsp;(IRIS &nbsp; + LiteOS)<br>
To: <a href="mailto:liteos-developers@..." target="_blank">liteos-developers@...</a><br>
Message-ID:<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;<a href="mailto:bae22510905052026m45769148he182a648dd7de4f5@..." target="_blank">bae22510905052026m45769148he182a648dd7de4f5@...</a>&gt;<br>
Content-Type: text/plain; charset=UTF-8<br><br>
Could you please offer more details? Like, what is the error messages<br>
you got or how is the node responding? Please note that you should<br>
write the local directory as /c/LiteOS/... . Also, do you see the cp<br>
command progress?<br><br>
Qing<br><br>
On Mon, May 4, 2009 at 11:48 PM, Nguyen Tuan Linh<br>
&lt;<a href="mailto:nguyentuanlinh.atvn@..." target="_blank">nguyentuanlinh.atvn@...</a>&gt; wrote:<br>
&gt; I could not copy Blink.lhex file from cygwin driver C:/LiteOS/.../Blink to<br>
&gt; root directory of one mote. I followed the usermanual but it wasn't better.<br>
&gt; How will I find the solution?<br>
&gt; Thanks!<br>
&gt; --------------------------<br>
&gt; Nguy?n Tu?n Linh<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; liteos-developers mailing list<br>
&gt; <a href="mailto:liteos-developers@..." target="_blank">liteos-developers@...</a><br>
&gt; <a href="http://lists.cs.uiuc.edu/mailman/listinfo/liteos-developers" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/liteos-developers</a><br>
&gt;<br>
&gt;<br><br><br><br>
--<br>
Qing Cao, Ph.D.<br>
Postdoctoral Research Associate<br>
Department of Computer Science<br>
University of Illinois at Urbana-Champaign<br><a href="http://www.cs.uiuc.edu/homes/qcao2" target="_blank">http://www.cs.uiuc.edu/homes/qcao2</a><br><br><br><br>
------------------------------<br><br>
_______________________________________________<br>
liteos-developers mailing list<br><a href="mailto:liteos-developers@..." target="_blank">liteos-developers@...</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/liteos-developers" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/liteos-developers</a><br><br><br>
End of liteos-developers Digest, Vol 10, Issue 2<br>
************************************************<br>
</blockquote>
</div>
<br><br clear="all"><br>-- <br>--------------------------<br>Nguy&#7877;n Tu&#7845;n Linh<br>
</div>
Nguyen Tuan Linh | 5 May 06:48 2009
Picon

Cannot copy file from local to remote (IRIS + LiteOS)

I could not copy Blink.lhex file from cygwin driver C:/LiteOS/.../Blink to
root directory of one mote. I followed the usermanual but it wasn't better.
How will I find the solution?
Thanks!
--------------------------
Nguyễn Tuấn Linh

<div><p>I could not copy Blink.lhex file from cygwin driver C:/LiteOS/.../Blink to <br clear="all">root directory of one mote. I followed the usermanual but it wasn't better.<br>How will I find the solution?<br>Thanks!<br>--------------------------<br>
Nguy&#7877;n Tu&#7845;n Linh<br></p></div>
debojit dhar | 21 Apr 17:55 2009
Picon

How to take printf's from the kernel?

Hi,

I would like to get the output from a few printf statements in the LiteOS kernel. Is there an easy way for doing that?
Another question that I had is what happens when the priority of a task is very high? If an application spawns 3 threads with priorities 1,2 and 100 does it mean that the 3rd thread will get more CPU time compared to the other threads? According to the function thread_get_next in threads.c, the thread with the highest remainingcredits should get the cpu time and its remainingcredits is decreased by 1 until it reaches 0 and then replenished with its priority value. But, I tried to test this with an application that spawns 3 threads each responsible for toggling a different led and assigned priorities 1,2 and 100 to them but they seem to be toggling at the same intervals. Even when I increase the priority of the 3rd thread to 2000, it remains the same. Could someone explain this phenomenon.

Kind regards,
 Debojit

<div><p>Hi,<br><br>I would like to get the output from a few printf statements in the LiteOS kernel. Is there an easy way for doing that?<br>Another question that I had is what happens when the priority of a task is very high? If an application spawns 3 threads with priorities 1,2 and 100 does it mean that the 3rd thread will get more CPU time compared to the other threads? According to the function thread_get_next in threads.c, the thread with the highest remainingcredits should get the cpu time and its remainingcredits is decreased by 1 until it reaches 0 and then replenished with its priority value. But, I tried to test this with an application that spawns 3 threads each responsible for toggling a different led and assigned priorities 1,2 and 100 to them but they seem to be toggling at the same intervals. Even when I increase the priority of the 3rd thread to 2000, it remains the same. Could someone explain this phenomenon.<br><br>Kind regards,<br>&nbsp;Debojit<br></p></div>
Nguyen Tuan Linh | 13 Apr 06:49 2009
Picon

LiteOS 's port

Hi all!
I have a mote  uses atmega128 and xbee module.
It is possible to port LiteOS to this mote. Is LiteOS made for Micaz and IRIS only?

Thanks!
---------
 Linh

<div><p>Hi all!<br>I have a mote&nbsp; uses atmega128 and xbee module. <br>It is possible to port LiteOS to this mote. Is LiteOS made for Micaz and IRIS only? <br clear="all"><br>Thanks!<br>---------<br>&nbsp;Linh<br></p></div>
debojit dhar | 1 Apr 22:20 2009
Picon

A quick verification on system calls

Hi


We are trying to add a new system call to the LiteOS kernel. The system call definition is in liteos/Sourcecode/LiteOS_Kernel/platform/micaz/leds.c
We added a function pointer in the lteoscommons.h file and added a library function in the /liteos/Apps/library/leds.c file that calls the function pointed to by the function pointer. The question is how do we link the function pointer to the actual definition of the function? I mean, the function pointer is just a 4 byte address; how is it mapped to the system call that it points to?

Thanks in advance,
Debojit

<div>
<p>Hi</p>
<div><br></div>
<div>We are trying to add a new system call to the LiteOS kernel. The system call definition is in liteos/Sourcecode/LiteOS_Kernel/platform/micaz/leds.c</div>
<div>We added a function pointer in the lteoscommons.h file and added a
library function in the /liteos/Apps/library/leds.c file that calls the
function pointed to by the function pointer. The question is how do we
link the function pointer to the actual definition of the function? I
mean, the function pointer is just a 4 byte address; how is it mapped
to the system call that it points to?</div>
<div><br></div>
<div>Thanks in advance,</div>
<div>Debojit</div>
<div><br></div>
</div>
debojit dhar | 19 Mar 23:00 2009
Picon

A quick verification on system calls.

Hi,

I am a student at the university of British Columbia. While browsing through the liteOS code, I came across the file liteoscommon.h in the directory /LiteOs/Apps/Libraries/. Now there are several function calls in this file represented as  shown:

#define POST_TASK_SYSCALL                                             0xEA58

If someone could clarify me on this. How is the call actually being made to the functions and what does the address ' 0xEA58 ' signify?

Thanks,
Debojit

<div><p>Hi,<br><br>I am a student at the university of British Columbia. While browsing through the liteOS code, I came across the file liteoscommon.h in the directory /LiteOs/Apps/Libraries/. Now there are several function calls in this file represented as&nbsp; shown:<br><br>#define POST_TASK_SYSCALL &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 0xEA58<br><br>If someone could clarify me on this. How is the call actually being made to the functions and what does the address ' 0xEA58 ' signify?<br><br>Thanks,<br>Debojit<br><br></p></div>
Qing Cao | 15 Oct 22:00 2008
Picon

LiteOS 1.0 release

Hi, LiteOS has been updated to 1.0, and this version is now available at the download page on the website. In this version, we have developed several new features, along with documentation updates. The major features in version 1.0 are listed as follows:

 IRIS motes support
 Use of standard installer on Windows XP and Windows Vista
 Plugin-model in software distribution
 Multiple plugins added
 Improved kernel robustness
 Accurate timing API in the kernel

For problems and bugs in this version, please post them to this mailing list. Thank you.

The LiteOS development team
http://www.liteos.net/info/people.html

<div><div dir="ltr">Hi, LiteOS has been updated to 1.0, and this version is now available at the download page on the website. In this version, we have developed several new features, along with documentation updates. The major features in version 1.0 are listed as follows:<br><br>&nbsp;IRIS motes support<br>&nbsp;Use of standard installer on Windows XP and Windows Vista<br>&nbsp;Plugin-model in software distribution<br>&nbsp;Multiple plugins added<br>&nbsp;Improved kernel robustness<br>&nbsp;Accurate timing API in the kernel<br><br>For problems and bugs in this version, please post them to this mailing list. Thank you.<br><br>The LiteOS development team<br><a href="http://www.liteos.net/info/people.html">http://www.liteos.net/info/people.html</a><br><br>
</div></div>
Qing Cao | 1 Jun 06:17 2008
Picon

The survey results summary on the LiteOS labs

Hi, as I mentioned in this week's telecon, here is a summary the survey results on using LiteOS in class labs, received by Professor Tian He from his class students a while back. The attached document contains the summary. Meanwhile, we also received several project reports from Professor Stankovic's class and Professor Tian He's class, and the integration of these projects into the next version of LiteOS are currently under progress.

Thanks.
Qing

<div><p>Hi, as I mentioned in this week's telecon, here is a summary the survey results on using LiteOS in class labs, received by Professor Tian He from his class students a while back. The attached document contains the summary. Meanwhile, we also received several project reports from Professor Stankovic's class and Professor Tian He's class, and the integration of these projects into the next version of LiteOS are currently under progress.<br><br>Thanks.<br>Qing<br><br></p></div>
rawat004 | 3 May 12:39 2008
Picon

Help needed

Hi All,
       This is Abhishek here from UMN CSCI-8211 course, using LiteOS for a 
project. I have few questions about the available support in LiteOS:

i) Can we inter-process communication in the application we build over 
LiteOS i.e. if we can have shared memory etc. ii) Is it possible to create 
and post another task from a user level task? There are examples of 
sys_call_pstTask which posts the task itself from which it is called. But 
can we post other functions as tasks?

Thanks,
Abhishek

Mark McGinley | 29 Apr 18:04 2008

reading a clock in LiteOS

Hello all,

I don't see a way to read a system clock in C:\LiteOS\Apps\Libraries 
files or the LiteOS programming guide, is there such functionality in 
LiteOS? 

I'm not concerned about it being "real" time or synchronized, I'd just 
like to read a clock once, then way some period of time, read it again, 
and find the elapsed time.  The elapsed time depends on outside events, 
so setting a timer with a specific time is not my goal.

Thanks for any feedback!
Qing Cao | 29 Feb 00:55 2008
Picon

LiteOS 0.31 available

Hi, LiteOS has been updated to 0.31, with the following changes:

Software changes:

  New features:
        Added support on Linux Operating System (tested on Fedora 7)
        Added the "memory" command in the shell to display flash
memory and RAM allocation information
        Development versions of LiteOS now fully hosted on Sourceforge.

  Improvements:
        Improved response time of command cp
        Improved robustness of the shell by adding command semantics
and vaildness check
        Improved kernel robustness by checking binary validness: if a
binary application tries to allocate
        memory that has conflict with the other threads, it will not be loaded.
        Improved uisp installation procedure. Now more compatible with
different environments and fewer possible conflicts.

  Major bug fixes:
        Fixed the bug on "cd .." at root directory
        Fixed the bug of creating new directories in the node level
        Fixed the bug that sometimes executation of a binary will make
the node no longer responding

Documentation changes:

        Added installation guide on Linux in the manual.
        Added links on the website to the courses that are currently
using LiteOS for projects
        Added links on the website the LiteOS publications

Thank you.

The LiteOS development team
http://www.liteos.net/info/people.html

Gmane