[Tinyos-help] Problems with ATM128-CC2420 chip communication in MICAz mote.

2012-01-23 Thread Xiaoyang Zhong
le, when I call command "send" of interface AMSend, I want to know what happens in the hardware, like the signals in pins of ATM128 chip. Is there any way to figure this out? Thanks a lot! Xiaoyang Zhong ___ Tinyos-help mail

[Tinyos-help] Problems with ATM128-CC2420 chip communication in MICAz mote.

2012-01-23 Thread Xiaoyang Zhong
le, when I call command "send" of interface AMSend, I want to know what happens in the hardware, like the signals in pins of ATM128 chip. Is there any way to figure this out? Thanks a lot! Xiaoyang Zhong ___ Tinyos-help mail

Re: [Tinyos-help] Problems with ATM128-CC2420 chip communication in MICAz mote.

2012-01-24 Thread Xiaoyang Zhong
n, Jan 23, 2012 at 7:50 PM, Xiaoyang Zhong wrote: > >> Hi, >> >> Currently I am trying to figure out the hardware communication procedure >> during a transmission task in MICAz mote, mainly about how tinyos transfers >> the data in ATM128 memory to CC2420's ram. N

[Tinyos-help] [tinyos-help] CC2420 retransmission

2012-03-01 Thread Xiaoyang Zhong
Hi All, Recently I have went through the nesC code of CC2420 driver of TinyOS. Here is a problem, what is the default value of "maxRetries" in CC2420? I read TEP 126 (CC2420 Radio Stack) and the source code and know PacketLinkC is responsible for retransmission. But I don't know where this "maxR

[Tinyos-help] [tinyos-help] Deluge T2 Reprogramming Fail

2012-03-26 Thread Xiaoyang Zhong
Hi everyone, Currently I am studying how to use Deluge T2, with this tutorial: http://docs.tinyos.net/tinywiki/index.php/Deluge_T2 . I use telosb mtoes and everything goes well until the I reach the reprogramming step. I have modified the apps/Blink program as the tutorial indicates, and successfu

Re: [Tinyos-help] Cannot find module

2012-03-29 Thread Xiaoyang Zhong
Try to add the direcory path of ConnectionC in your Makefile. CFLAGS += -I$(TOSDIR)/path replace 'path' with the actual path of ConnectionC in tinyos-2.1.1/tos/. On Tue, Mar 27, 2012 at 6:20 PM, Jared Fisher wrote: > Hello, > > I am getting an error saying that it cannot find a file. I am un

Re: [Tinyos-help] (no subject)

2012-03-29 Thread Xiaoyang Zhong
Hi, You can use interface Random to generate a 16-bit or 32-bit random value. It's very easy to use. On Thu, Mar 29, 2012 at 6:26 AM, rakshita guddi wrote: > hai, > > Am trying to modify RadioSenseToLeds, such that the payload has data from > 3 different sensors attached to it. The program work

Re: [Tinyos-help] [tinyos-help] Deluge T2 Reprogramming Fail

2012-03-29 Thread Xiaoyang Zhong
r new image of Blink, let's say version2, to the mote, the mote did not response. Even if I add "DDELUGE_BASESTATION" or "DDELUGE_LIGHT_BASESTATION" into Makefile. Can someone help me with this? Thanks very much! Xiaoyang On Mon, Mar 26, 2012 at 11:06 PM, Xiaoya

Re: [Tinyos-help] [tinyos-help] Deluge T2 Reprogramming Fail

2012-03-30 Thread Xiaoyang Zhong
tion/deluge.pdf The document also talks about the ERROR: Unable to erase the flash volume error: 1 data: [] Attempt the workaround for AT45DB... ERROR: Unable to erase the flash volume error: 1 data: [] problem. On Fri, Mar 30, 2012 at 3:27 AM, Xiaoyang Zhong wrote:

Re: [Tinyos-help] problem to receive multiple message in AMReceiver

2012-09-06 Thread Xiaoyang Zhong
In your Tossiom code. %%% for i in range(0, 3): t.getNode(i).addNoiseTraceReading(val) for i in range(0, 3): print "Creating noise model for ",i; t.getNode(i).createNoiseModel() for i in range(0, noOfnode): ... %% the range of i should be (1, 4),

[Tinyos-help] Why Node fails?

2013-10-28 Thread Xiaoyang Zhong
Hi all, Our group is writing an application for outdoor testbed using Ctp and Deluge. We are using micaz and iris motes. Before deployment, we want to do as much test as possible to make sure the application is working fine so that least maintenance is needed when deployed. It is working well most

Re: [Tinyos-help] Why Node fails?

2013-10-29 Thread Xiaoyang Zhong
doing. > > sorry. I've been doing this kind of work (embedded) for 20+ years and > unless the node is architected to assist in debugging these kinds of > problems it is very very difficult to figure out what is going on when the > node goes catatonic. > > > > On Mon, Oct

Re: [Tinyos-help] Why Node fails?

2013-10-29 Thread Xiaoyang Zhong
to it. We will update our findings to the mailing list. On Tue, Oct 29, 2013 at 5:18 PM, Eric Decker wrote: > > > > On Tue, Oct 29, 2013 at 1:48 PM, Xiaoyang Zhong wrote: > >> Hi Eric, >> >> Thank you very much for your reply. >> >> We have thought

Re: [Tinyos-help] CTP combined with Security

2014-03-08 Thread Xiaoyang Zhong
Hi Yang, What is the content in line 319? Can you provide more details about the code where the error occurs? For my experience, this should be very simple syntax error, as the error message indicates. You can try either include "message.h" in your code, or declare all the local variables at the

[Tinyos-help] How does nesC compiler generate the "uidhash"?

2014-04-26 Thread Xiaoyang Zhong
Hi all, I am currently studying Deluge, and found that Deluge uses "uidhash" to distinguish the different versions of applications. I want to know are there any chances that the "uidhash" of different applications might be the same. The "uidhash" is a hash value generated by the compiler during t

Re: [Tinyos-help] make Radio of MicaZ ON and OFF by considering the Battery Voltage level

2014-12-17 Thread Xiaoyang Zhong
Use component "VoltageC". It is a universal component to read voltage levels for most of the platforms. You can find the MicaZ implementation in: *TOSROOT/tos/platforms/mica/VoltageC*. You will have to convert the raw readings to the actual voltage (in mV) using this formula: actual_val =

[Tinyos-help] How to use MPS-2 water potential sensor

2015-02-11 Thread Xiaoyang Zhong
ues (<-2000 kPa) are very different from what we get from the MPS-1 sensor (-150 ~ 0 kPa). Does anyone has anything experience on the MPS-2 sensor? We really need some help. Thank you very much. Best, Xiaoyang Zhong ___ Tinyos-help mailin

Re: [Tinyos-help] How can I compile the tinyos source code from .nc to .c?

2015-07-05 Thread Xiaoyang Zhong
build/[platform_type]/app.c On Sun, Jul 5, 2015 at 10:08 PM, Yan Song wrote: > Hello everyone: > > I know that when an app is running, it will first be compiled into > .c from .nc ,by using ncc. Now I need to use the tinyos source code in C, > how can I get the source code in C ? > > Best

Re: [Tinyos-help] How can I get the tinyos source code in .c?

2015-07-27 Thread Xiaoyang Zhong
There is no direct way to compile a single .nc file to .c file. However, you can work this around by looking at the "app.c" file in "build/". Note that app.c is the complete mote application in .c format. That means, if in any part of your .nc code the IPDispatchP.nc is included, it will be compil

Re: [Tinyos-help] Problem with serial communication on RFA1

2015-11-04 Thread Xiaoyang Zhong
Maybe you should increase the Printf buffer size. On Wed, Nov 4, 2015 at 8:23 AM, Vamsi Krishna wrote: > Hi, > > I was working on Atmega128RFA1. > > Tried running printf app in /opt/tinyos-2.1.2/apps/tutorial/Printf. > > It is not working properly. Strings getting truncated at the end. > > > Cou

[Tinyos-help] How to simulate LPL in TOSSIM

2017-10-04 Thread Xiaoyang Zhong
Dear all, As far as I know that low power listening is not officially supported in TOSSIM. However, I have read several recent papers that simulation in TOSSIM with low power listening, such as [1]. Does anyone mind to share your approach of doing this? Thank you very much for your time! [1] Tel

Re: [Tinyos-help] How to simulate LPL in TOSSIM

2017-10-05 Thread Xiaoyang Zhong
Thanks for your suggestion Matthew. With Avrora or Cooja I encounter problems about emulating large size networks (e.g., more than 100 nodes). It was too slow and took too much memory. On Thu, Oct 5, 2017 at 4:43 AM, Matthew Bradbury wrote: > On 04/10/2017 20:47, Xiaoyang Zhong wrote: >

Re: [Tinyos-help] How to simulate LPL in TOSSIM

2017-10-05 Thread Xiaoyang Zhong
testbed. I recommend flocklab or fit iotlab. > > Matthew > > From: Xiaoyang Zhong > Sent: Thursday, 5 October, 17:01 > Subject: Re: How to simulate LPL in TOSSIM > To: Matthew Bradbury > Cc: Tinyos-help > > > Thanks for your suggestion Matthew. > > With Avrora o

Re: [Tinyos-help] Help in handling UartStream.Receive timeout

2018-01-01 Thread Xiaoyang Zhong
The idea is to use "*async event void UartStream.receivedByte(uint8_t data)*" to process the stream *"byte-by-byte"*, instead of calling the "*UartSream.receive(buf, len)"* function. The later would return only when exactly "len" bytes are received, and it would hold the resource. Processing the u