[Tinyos-help] Why plus 0x7f when read rssi in CC2420ControlP.nc?

2009-04-01 Thread SANG Junjun
In module CC2420ControlP, I found this:
395   event void RssiResource.granted() {
396 uint16_t data;
397 call CSN.clr();
398 call RSSI.read(data);
399 call CSN.set();
400
401 call RssiResource.release();
*402 data += 0x7f;*
403 data = 0x00ff;
404 signal ReadRssi.readDone(SUCCESS, data);
405   }

And I want to know why plus 0x7f.
Thank you very much.


-- 
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] How to get SNR use telosb?

2009-03-25 Thread SANG Junjun
Hi,
I'd like to get SNR value use telosb mote.
But I only know how to get rssi value.
Can you tell me how to get SNR value ?
Thanks.


-- 
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Fwd: How to know if a simulation is finished in TOSSIM?

2008-08-16 Thread SANG Junjun
Thanks

-- Forwarded message --
From: SANG Junjun [EMAIL PROTECTED]
Date: Sun, Aug 17, 2008 at 9:45 AM
Subject: How to know if a simulation is finished in TOSSIM?
To: Philip Levis [EMAIL PROTECTED]






-- 
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Can't use Python SDK in windows

2008-07-08 Thread SANG Junjun
Because Watcher.py calls os.fork which is not supported in windows.


Traceback (most recent call last):
  File E:\cygwin\opt\tinyos-2.x\apps\DataCollection\Python\example.py,
line 26, in module
m = CNetwork()
  File E:\cygwin\opt\tinyos-2.x\apps\DataCollection\Python\example.py,
line 12, in __init__
self.mif = MoteIF.MoteIF()
  File /opt/tinyos-2.x/support/sdk/python/tinyos/message/MoteIF.py, line
58, in __init__
  File /opt/tinyos-2.x/support/sdk/python/tinyos/utils/Singleton.py, line
106, in getInstance
  File /opt/tinyos-2.x/support/sdk/python/tinyos/utils/Watcher.py, line
53, in __init__
AttributeError: 'module' object has no attribute 'fork'

-- 
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] How to make two nodes always connected in TOSSIM?

2008-04-23 Thread SANG Junjun
How can I make two node always connected in TOSSIM?


-- 
Best Regards,
SANG JUNJUN
http://www.tinysys.cn/
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Is transmitted packet size fixed or variable?

2008-03-31 Thread SANG Junjun
I think it depends on the radio.
Because some radio can only send/recv a fixed size of packet, for example
nRF905.


On Mon, Mar 31, 2008 at 3:06 PM, Kevin Klues [EMAIL PROTECTED] wrote:

 If you call send() with a length of 2 bytes, only two bytes will be
 transmitted over the air.  The TOSH_DATA_LENGTH paramter basically
 determines the maximum size of the payload you could ever send and
 receive.  Essentially, it is used to define the size of the data
 portion of the message_t struct used to hold messages on your mote.
 The length passed to send() is stored in the header portion of
 message_t, and when the message is being spooled out over the radio,
 theis length field is read to determin how many of the bytes stored in
 the data portion of the message should actually be sent.

 Kevin

 On Sun, Mar 30, 2008 at 11:37 PM, David [EMAIL PROTECTED] wrote:
  Hi list.
 
   I've taken a look at tep111 and tep126, but there's something which
   isn't clear to me from the teps.
 
   Are the packets transmitted over radio a fixed length or variable
   (based on requested payload length)?
 
   eg, if you leave TOSH_DATA_LENGTH at 28, but send a payload of 2
   bytes, will the other 26 bytes worth of payload still be sent over
   radio?
 
   I'm asking because one of my apps needs to send as small as possible
   packets (reduce battery usage, and to hog the radio freqeuncy for as
   short as possible). However, I would like the app to still be able to
   receive larger packets. Otherwise all the apps in the mote network
   need to have the smaller TOSH_DATA_LENGTH, which is bothersome.
 
   Any insights on this subject?
 
   David.
   ___
   Tinyos-help mailing list
   Tinyos-help@millennium.berkeley.edu
 
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
 



 --
 ~Kevin
  ___
 Tinyos-help mailing list
 Tinyos-help@millennium.berkeley.edu
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




-- 
Best Regards,
SANG JUNJUN
http://www.tinysys.cn/
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] external Crystal Oscilloscope (MSP430)

2008-03-24 Thread SANG Junjun
Should we rewrite the timer system for msp430 in T2 if use an external
crystal oscilloscope ?

On Fri, Mar 21, 2008 at 6:02 PM, Kaan Tuna [EMAIL PROTECTED] wrote:

 Hi all,

 We started to use an external crystal oscilloscope (XT2 - 8 MHz). However,
 we have a problem with Collection protocol now (it just doesn't work).
 Somehow we need to adjust timers, I guess. We appreciate any ideas on what
 should change (and how).

 P.S. Sensing at the root node at certain periods and sending through UART
 works just fine with the new external crystal.

 Thanks.

 ___
 Tinyos-help mailing list
 Tinyos-help@millennium.berkeley.edu
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




-- 
Best Regards,
SANG JUNJUN
http://www.tinysys.cn/
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Where can I set an external crystal oscillator for msp430?

2008-03-06 Thread SANG Junjun
Hi, everyone

In our hardware, there is an external crystal oscillator. I want to know how
to tell msp430 to use it in T2?
Thanks.

-- 
Best Regards,
SANG JUNJUN
http://www.tinysys.cn/
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] using math.h in tinyos 2 for telosb or micaz

2007-12-11 Thread SANG Junjun
It seems that there is no sqrt support for msp430.

On Dec 11, 2007 2:47 PM, prashan wanigasekara [EMAIL PROTECTED] wrote:
 Hi everyone,

 This is my first post to the forum. I am programming in tinyos-2.x. and
 using micaz, telosb motes. My problem is

 1. How to use math.h in tinyos-2.x?  I cannot find a suitable header file
 anywhere. Could you recommend a place to download it ?
 2. I want to use sqrt (square root) function. Is there way to use this
 without using math.h?
 3. Is math.h even implemented in tinyos-2.x for micaz?
 4. Is the math.h (tinyos-2.x) for micaz different from telosb? (Platform
 dependant?)


 I would greatly appreciate your help.

 prashan
 ___
 Tinyos-help mailing list
 Tinyos-help@Millennium.Berkeley.EDU
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




-- 
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] using math.h in tinyos 2 for telosb or micaz

2007-12-11 Thread SANG Junjun
Yes. sqrtf is available.
Thanks.

On Dec 12, 2007 3:26 AM, Michael Schippling [EMAIL PROTECTED] wrote:
 For the MSP there is:
 opt/msp430/msp430/include/math.h
 which contains:
 extern float sqrtf _PARAMS((float));
 (note the 'f' for float rather than double)... however it is in a
 #ifndef _REENT_ONLY block which may or may not be def'ed...

 And for the AVR:
 usr/avr/include/math.h
 has:
 extern double sqrt(double __x) __ATTR_CONST__;
 although I thought the ATMEGA only supported floats as well...

 MS


 SANG Junjun wrote:
  It seems that there is no sqrt support for msp430.
 
  On Dec 11, 2007 2:47 PM, prashan wanigasekara [EMAIL PROTECTED] wrote:
  Hi everyone,
 
  This is my first post to the forum. I am programming in tinyos-2.x. and
  using micaz, telosb motes. My problem is
 
  1. How to use math.h in tinyos-2.x?  I cannot find a suitable header file
  anywhere. Could you recommend a place to download it ?
  2. I want to use sqrt (square root) function. Is there way to use this
  without using math.h?
  3. Is math.h even implemented in tinyos-2.x for micaz?
  4. Is the math.h (tinyos-2.x) for micaz different from telosb? (Platform
  dependant?)
 
 
  I would greatly appreciate your help.
 
  prashan
  ___
  Tinyos-help mailing list
  Tinyos-help@Millennium.Berkeley.EDU
  https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
 
 
 
 

 --
 Platform: WinXP/Cygwin
 TinyOS version: 1.x, Boomerang
 Programmer: MIB510
 Device(s): Mica2, MicaZ, Tmote
 Sensor board: homebrew





-- 
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] How to use real sensor data in simulation?

2007-12-05 Thread SANG Junjun
How can I use some real sensor data (e.g intel lab data) while I'm
simulating a data aggregation application?

-- 
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] how to print simulation time

2007-12-05 Thread SANG Junjun
How can I print a simulation time before every dbg message using tossim?

-- 
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Re: Packet loss problem

2007-11-27 Thread SANG Junjun
I want to know how long should we set the random timer ?

On Nov 28, 2007 5:38 AM, Vijayant Bhatnagar [EMAIL PROTECTED]
wrote:

 Hi Tao,
 The problem was because of the collision of the packets. The problem has
 been solved by using random timer as suggested by Philipp.

 Thanks,
 Vijayant

 On Nov 27, 2007 11:24 AM, Tao Wu  [EMAIL PROTECTED] wrote:

  Personally, I think you need to know what caused the packet loss
  first. it is that due to collision or MAC design?
 
 
  On Nov 26, 2007 6:57 PM, Vijayant Bhatnagar [EMAIL PROTECTED]
  wrote:
   Hello,
   Can anyone help us out please ? My intuition says that we need to
  implement
   ARQ kind of implementation in order to broadcast packets reliably.
  
   Any comments ?
  
   Thanks,
   Vijayant
  
On Nov 26, 2007 12:31 PM, Vijayant Bhatnagar 
  [EMAIL PROTECTED]
   wrote:
Hi,
We are trying to simulate broadcast environment. Initially we have
  set
up 6 motes trying to send packet to Master Node. We have observed
that not all 6 motes are able to send the packet. Is it because of
backoff problem or some kind of fault with our implementation ?
  After
going through the tutorials, I could realize that there is
  exponential
backoff built in cc2420. In that case, do we need to implement ARQ
kind of situation to recover from packet loss.
   
Please help.
   
Thanks,
Vijayant
Rutgers.
   
  
  
   ___
   Tinyos-help mailing list
   Tinyos-help@Millennium.Berkeley.EDU
   https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
 
  
 


 ___
 Tinyos-help mailing list
 Tinyos-help@Millennium.Berkeley.EDU
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




-- 
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] how to set value at install time

2007-10-25 Thread SANG Junjun
Is it possible to set some value at the install time? just like TOS_NODE_ID

for example, when we install a program, we type make platform install,1
...
then  TOS_NODE_ID is set 1.

-- 
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] how to set value at install time

2007-10-25 Thread SANG Junjun
This is a good suggestion.
Thanks.

On 10/25/07, Jeongyeup Paek [EMAIL PROTECTED] wrote:


 you can do something like this.

 1) in your mote code, do
 
 #ifdef MY_AT_COMPILE
#define  MY_VAL  MY_AT_COMPILE
 #else
#define  MY_VAL  0  // some default value
 #endif
 


 2) in your mote app Makefile, do
 
 ifdef MY_COMPILE_ARG
CFLAGS += -DMY_AT_COMPILE=$(MY_COMPILE_ARG)
 endif
 


 3) When you compile, do
 ---
 make telosb MY_COMPILE_ARG=5
 ---

 This will work.
 Does anyone know shorter way?

 Thanks

 - jpaek


 SANG Junjun wrote:
  Is it possible to set some value at the install time? just like
 TOS_NODE_ID
 
  for example, when we install a program, we type make platform install,1
  ...
  then  TOS_NODE_ID is set 1.
 
  --
  Best Regards,
  SANG JUNJUN
 
 
  
 
  ___
  Tinyos-help mailing list
  Tinyos-help@Millennium.Berkeley.EDU
  https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

 --

 Jeongyeup Paek
 Ph.D. student
 Embedded Networks Laboratory
 Department of Computer Science
 University of Southern California
 http://enl.usc.edu/~jpaek




-- 
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] how to set value at install time

2007-10-25 Thread SANG Junjun
But what I want is not at compile time, but at install time.
So I can reinstall my program in another node without compile again.


On 10/25/07, SANG Junjun [EMAIL PROTECTED] wrote:

 This is a good suggestion.
 Thanks.

 On 10/25/07, Jeongyeup Paek [EMAIL PROTECTED] wrote:
 
 
  you can do something like this.
 
  1) in your mote code, do
  
  #ifdef MY_AT_COMPILE
 #define  MY_VAL  MY_AT_COMPILE
  #else
 #define  MY_VAL  0  // some default value
  #endif
  
 
 
  2) in your mote app Makefile, do
  
  ifdef MY_COMPILE_ARG
 CFLAGS += -DMY_AT_COMPILE=$(MY_COMPILE_ARG)
  endif
  
 
 
  3) When you compile, do
  ---
  make telosb MY_COMPILE_ARG=5
  ---
 
  This will work.
  Does anyone know shorter way?
 
  Thanks
 
  - jpaek
 
 
  SANG Junjun wrote:
   Is it possible to set some value at the install time? just like
  TOS_NODE_ID
  
   for example, when we install a program, we type make platform
  install,1
   ...
   then  TOS_NODE_ID is set 1.
  
   --
   Best Regards,
   SANG JUNJUN
  
  
  
  
  
   ___
   Tinyos-help mailing list
   Tinyos-help@Millennium.Berkeley.EDU
  
  https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
 
  --
 
  Jeongyeup Paek
  Ph.D. student
  Embedded Networks Laboratory
  Department of Computer Science
  University of Southern California
  http://enl.usc.edu/~jpaek
 
 


 --
 Best Regards,
 SANG JUNJUN




-- 
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] how to set value at install time

2007-10-25 Thread SANG Junjun
Yes, I found the script tos-set-symbols.
Thank you very much.


On 10/25/07, Kevin Klues [EMAIL PROTECTED] wrote:

 Then you will have to do something similar to what I suggested.
 tos-set-symbols will change the values in the binary ihex file.

 Kevin

 On 10/25/07, SANG Junjun [EMAIL PROTECTED] wrote:
  But what I want is not at compile time, but at install time.
  So I can reinstall my program in another node without compile again.
 
 
 
  On 10/25/07, SANG Junjun [EMAIL PROTECTED] wrote:
  
   This is a good suggestion.
   Thanks.
  
  
   On 10/25/07, Jeongyeup Paek [EMAIL PROTECTED] wrote:
   
you can do something like this.
   
1) in your mote code, do

#ifdef MY_AT_COMPILE
   #define  MY_VAL  MY_AT_COMPILE
#else
   #define  MY_VAL  0  // some default value
#endif

   
   
2) in your mote app Makefile, do

ifdef MY_COMPILE_ARG
   CFLAGS += -DMY_AT_COMPILE=$(MY_COMPILE_ARG)
endif

   
   
3) When you compile, do
---
make telosb MY_COMPILE_ARG=5
---
   
This will work.
Does anyone know shorter way?
   
Thanks
   
- jpaek
   
   
SANG Junjun wrote:
 Is it possible to set some value at the install time? just like
  TOS_NODE_ID

 for example, when we install a program, we type make platform
  install,1
 ...
 then  TOS_NODE_ID is set 1.

 --
 Best Regards,
 SANG JUNJUN



  

 ___
 Tinyos-help mailing list
 Tinyos-help@Millennium.Berkeley.EDU

  https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
   
--
   
Jeongyeup Paek
Ph.D. student
Embedded Networks Laboratory
Department of Computer Science
University of Southern California
http://enl.usc.edu/~jpaek
   
   
  
  
  
   --
   Best Regards,
   SANG JUNJUN
 
 
 
  --
  Best Regards,
  SANG JUNJUN
  ___
  Tinyos-help mailing list
  Tinyos-help@Millennium.Berkeley.EDU
  https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
 


 --
 ~Kevin




-- 
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Fwd: Porting Tinyos To A New Hardware Platform

2007-10-18 Thread SANG Junjun
-- Forwarded message --
From: mejda chouaieb [EMAIL PROTECTED]
Date: Oct 19, 2007 1:07 AM
Subject: Porting Tinyos To A New Hardware Platform
To: SANG Junjun [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]

 Hello Mr SANG Junjun ,
First of all, thank you for help.
I have an other question: do you know witch Makefiles are hardware dependent
?
I programmed Makefiles under C:\jennic\cygwin\opt\tinyos-
2.x\support\make\JN513X for my new platform, and I want to know if there are
other makefiles that are hardware dependent ?

Thanks,
Mejda CHOUAIEB

- Message d'origine 
De : SANG Junjun [EMAIL PROTECTED]
À : mejda chouaieb [EMAIL PROTECTED]
Cc : tinyos-help@millennium.berkeley.edu
Envoyé le : Samedi, 13 Octobre 2007, 12h33mn 23s
Objet : Re: Re : Re : Re : Re : [Tinyos-help] Porting Tinyos To A New
Hardware Platform

Yes, these files are drivers.
The problem is how to use them in TinyOS.


On 10/13/07, mejda chouaieb [EMAIL PROTECTED] wrote:

  Hello,
 I have C:\jennic\cygwin\jennic\SDK\Chip\JN513xR
 and the folder JN513xR contains 4 folders : Build, Include, Library and
 Source.
 for example the folder Build contains 3 files : ChipConfig.mk,
 Rom_Functions.ld and AppBuild_JN5139R.ld
 for example AppBuild_JN5139R.ld contains :
 _

 INCLUDE Rom_Functions.ld

 MEMORY

 {

 flashh : ORIGIN = 0x04000fdc, LENGTH = 0x0024

 mac : ORIGIN = 0x04001000, LENGTH = 0x0020

 ram : ORIGIN = 0x04001020, LENGTH = 0x000167e0

 sector3 : ORIGIN = 0x04018fdc, LENGTH = 0x8000

 }

 SECTIONS

 {

 .flashheader :

 {

 LONG(0xe0e0e0e0)

 LONG(ABSOLUTE(_data_beg))

 LONG(_data_len)

 LONG(0x00040030)

 LONG(0)

 LONG(ABSOLUTE(_bss_beg))

 LONG(_bss_len)

 LONG(ABSOLUTE(_AppWarmStart))

 LONG(ABSOLUTE(_AppColdStart))

 }  flashh

 .mac :

 {

 _data_beg = ABSOLUTE(.);

 LONG(0x)

 LONG(0x)

 LONG(0x)

 LONG(0x)

 LONG(0x)

 LONG(0x)

 LONG(0x)

 LONG(0x)

 }  mac

 .rodata :

 {

 *(.rodata*)

 }  ram

 .data :

 {

 *(.data*)

 }  ram

 .text :

 {

 *(.text*)

 _data_end = ABSOLUTE(.);

 }  ram

 .bss :

 {

 _bss_beg = ABSOLUTE(.);

 *(.bss*)

 }  ram

 _bss_end = ABSOLUTE(.);

 _data_len = _data_end - _data_beg;

 _bss_len = (_bss_end - _bss_beg + 3)  0xfffc;

 .sector3 :

 {

 *(.sector3*)

 }  sector3

 }

 _apvReg = 0x1000;

 _apvSysReg = 0x1000;

 _apvAesReg = 0x1c00;

 _apvAnaReg = 0x1f00;

 _apvGpioReg = 0x2000;

 _apvUart0Reg = 0x3000;

 _apvUart1Reg = 0x4000;

 _apvTimer0Reg = 0x5000;

 _apvTimer1Reg = 0x6000;

 _apvSiReg = 0x7000;

 _apvSpiReg = 0x8000;

 _apvSpiIpReg = 0x9000;

 _apvSpiIpMem = 0x9800;
 _
 and ChipConfig.mk contains :
 
 CFLAGS += -DCHIP_RELEASE_5131

 

 so I think these files are the drivers, is it right ?
 - Message d'origine 
 De : SANG Junjun  [EMAIL PROTECTED]
 À : mejda chouaieb [EMAIL PROTECTED]
 Cc : tinyos-help@millennium.berkeley.edu
 Envoyé le : Vendredi, 12 Octobre 2007, 4h49mn 41s
 Objet : Re: Re : Re : Re : [Tinyos-help] Porting Tinyos To A New Hardware
 Platform

 I mean the drivers for chip under TinyOS, for example the drivers under
 the folder tos/chips.
 If drivers for MCU is prepareed, you can try to make your platform
 defination(see lesson 10 in tutorials**)
 And then try to make TinyOS recongnize your platform(just like yamp in
 lesson) for your start.

 On 10/11/07, mejda chouaieb  [EMAIL PROTECTED] wrote:
 
   Hello,
  I think that drivers exist for JN5139 because I installed  JN-SW-4027
  SDK with CLIhttp://www.jennic.com/support/view_file.php?fileID=000115
  software from jennic website
  http://www.jennic.com/support/view_section.php?sectionID=10 and
  I have :
  C:\jennic\drivers\FTDI_drivers\WinXP
  If you have any direction as to what a good starting point would be, I
  would greatly appreciate it.
  Thanks,
  Mejda CHOUAIEB
 
  - Message d'origine 
  De : SANG Junjun  [EMAIL PROTECTED]
  À : mejda chouaieb [EMAIL PROTECTED]
  Cc : tinyos-help@millennium.berkeley.edu
  Envoyé le : Mercredi, 10 Octobre 2007, 15h55mn 16s
  Objet : Re: Re : Re : [Tinyos-help] Porting Tinyos To A New Hardware
  Platform
 
  I think you should develop drivers for JN5139 first.
 
  On 10/10/07, mejda chouaieb  [EMAIL PROTECTED] wrote:
  
JN5139 Wireless Microcontroller (IEEE802.15.4 and ZigBee)
  
   - Message d'origine 
   De : SANG Junjun  [EMAIL PROTECTED]
   À : mejda chouaieb [EMAIL PROTECTED]
   Cc : tinyos-help@millennium.berkeley.edu
   Envoyé le : Mercredi, 10 Octobre 2007, 15h40mn 12s
   Objet : Re: Re : [Tinyos-help] Porting Tinyos To A New Hardware
   Platform
  
   what's the type of jennic's MCU?
  
  
   On 10/10/07, mejda chouaieb  [EMAIL PROTECTED] wrote:
   
 Hello All,
for more precision :
I will port Tinyos2.x from telos hardware platform to jennic

Re: Re : Re : Re : Re : [Tinyos-help] Porting Tinyos To A New Hardware Platform

2007-10-13 Thread SANG Junjun
Yes, these files are drivers.
The problem is how to use them in TinyOS.


On 10/13/07, mejda chouaieb [EMAIL PROTECTED] wrote:

  Hello,
 I have C:\jennic\cygwin\jennic\SDK\Chip\JN513xR
 and the folder JN513xR contains 4 folders : Build, Include, Library and
 Source.
 for example the folder Build contains 3 files : ChipConfig.mk,
 Rom_Functions.ld and AppBuild_JN5139R.ld
 for example AppBuild_JN5139R.ld contains :
 _

 INCLUDE Rom_Functions.ld

 MEMORY

 {

 flashh : ORIGIN = 0x04000fdc, LENGTH = 0x0024

 mac : ORIGIN = 0x04001000, LENGTH = 0x0020

 ram : ORIGIN = 0x04001020, LENGTH = 0x000167e0

 sector3 : ORIGIN = 0x04018fdc, LENGTH = 0x8000

 }

 SECTIONS

 {

 .flashheader :

 {

 LONG(0xe0e0e0e0)

 LONG(ABSOLUTE(_data_beg))

 LONG(_data_len)

 LONG(0x00040030)

 LONG(0)

 LONG(ABSOLUTE(_bss_beg))

 LONG(_bss_len)

 LONG(ABSOLUTE(_AppWarmStart))

 LONG(ABSOLUTE(_AppColdStart))

 }  flashh

 .mac :

 {

 _data_beg = ABSOLUTE(.);

 LONG(0x)

 LONG(0x)

 LONG(0x)

 LONG(0x)

 LONG(0x)

 LONG(0x)

 LONG(0x)

 LONG(0x)

 }  mac

 .rodata :

 {

 *(.rodata*)

 }  ram

 .data :

 {

 *(.data*)

 }  ram

 .text :

 {

 *(.text*)

 _data_end = ABSOLUTE(.);

 }  ram

 .bss :

 {

 _bss_beg = ABSOLUTE(.);

 *(.bss*)

 }  ram

 _bss_end = ABSOLUTE(.);

 _data_len = _data_end - _data_beg;

 _bss_len = (_bss_end - _bss_beg + 3)  0xfffc;

 .sector3 :

 {

 *(.sector3*)

 }  sector3

 }

 _apvReg = 0x1000;

 _apvSysReg = 0x1000;

 _apvAesReg = 0x1c00;

 _apvAnaReg = 0x1f00;

 _apvGpioReg = 0x2000;

 _apvUart0Reg = 0x3000;

 _apvUart1Reg = 0x4000;

 _apvTimer0Reg = 0x5000;

 _apvTimer1Reg = 0x6000;

 _apvSiReg = 0x7000;

 _apvSpiReg = 0x8000;

 _apvSpiIpReg = 0x9000;

 _apvSpiIpMem = 0x9800;
 _
 and ChipConfig.mk contains :
 
 CFLAGS += -DCHIP_RELEASE_5131

 

 so I think these files are the drivers, is it right ?
 - Message d'origine 
 De : SANG Junjun [EMAIL PROTECTED]
 À : mejda chouaieb [EMAIL PROTECTED]
 Cc : tinyos-help@millennium.berkeley.edu
 Envoyé le : Vendredi, 12 Octobre 2007, 4h49mn 41s
 Objet : Re: Re : Re : Re : [Tinyos-help] Porting Tinyos To A New Hardware
 Platform

 I mean the drivers for chip under TinyOS, for example the drivers under
 the folder tos/chips.
 If drivers for MCU is prepareed, you can try to make your platform
 defination(see lesson 10 in tutorials**)
 And then try to make TinyOS recongnize your platform(just like yamp in
 lesson) for your start.

 On 10/11/07, mejda chouaieb [EMAIL PROTECTED] wrote:
 
   Hello,
  I think that drivers exist for JN5139 because I installed  JN-SW-4027
  SDK with CLIhttp://www.jennic.com/support/view_file.php?fileID=000115
  software from jennic website
  http://www.jennic.com/support/view_section.php?sectionID=10 and
  I have :
  C:\jennic\drivers\FTDI_drivers\WinXP
  If you have any direction as to what a good starting point would be, I
  would greatly appreciate it.
  Thanks,
  Mejda CHOUAIEB
 
  - Message d'origine 
  De : SANG Junjun  [EMAIL PROTECTED]
  À : mejda chouaieb [EMAIL PROTECTED]
  Cc : tinyos-help@millennium.berkeley.edu
  Envoyé le : Mercredi, 10 Octobre 2007, 15h55mn 16s
  Objet : Re: Re : Re : [Tinyos-help] Porting Tinyos To A New Hardware
  Platform
 
  I think you should develop drivers for JN5139 first.
 
  On 10/10/07, mejda chouaieb  [EMAIL PROTECTED] wrote:
  
JN5139 Wireless Microcontroller (IEEE802.15.4 and ZigBee)
  
   - Message d'origine 
   De : SANG Junjun  [EMAIL PROTECTED]
   À : mejda chouaieb [EMAIL PROTECTED]
   Cc : tinyos-help@millennium.berkeley.edu
   Envoyé le : Mercredi, 10 Octobre 2007, 15h40mn 12s
   Objet : Re: Re : [Tinyos-help] Porting Tinyos To A New Hardware
   Platform
  
   what's the type of jennic's MCU?
  
  
   On 10/10/07, mejda chouaieb  [EMAIL PROTECTED] wrote:
   
 Hello All,
for more precision :
I will port Tinyos2.x from telos hardware platform to jennic
hardware platform
both has the same radio CC2024 but a diffrent microcontroller.
   
Thanks,
Mejda CHOUAIEB
   
   
- Message d'origine 
De : SANG Junjun  [EMAIL PROTECTED]
À : mejda chouaieb [EMAIL PROTECTED]
Cc : tinyos-help@millennium.berkeley.edu
Envoyé le : Mercredi, 10 Octobre 2007, 15h19mn 13s
Objet : Re: [Tinyos-help] Porting Tinyos To A New Hardware Platform
   
We have ported T2 to Hawk platform with MSP430 and nrf905
successfully.
I think the most difficult part of our work is the chip
driver(driver for nrf905).
   
I think focus on your MCU for first step is a good idea.
   
By the way, Hawk platform is designed by Data Engineering Research
Center http://db.hit.edu.cn/ of Harbin Institute of 
Technologyhttp://en.hit.edu.cn

Re: Re : Re : Re : [Tinyos-help] Porting Tinyos To A New Hardware Platform

2007-10-12 Thread SANG Junjun
I mean the drivers for chip under TinyOS, for example the drivers under the
folder tos/chips.
If drivers for MCU is prepareed, you can try to make your platform
defination(see lesson 10 in tutorials**)
And then try to make TinyOS recongnize your platform(just like yamp in
lesson) for your start.

On 10/11/07, mejda chouaieb [EMAIL PROTECTED] wrote:

  Hello,
 I think that drivers exist for JN5139 because I installed JN-SW-4027 SDK
 with CLI http://www.jennic.com/support/view_file.php?fileID=000115
 software from jennic website
 http://www.jennic.com/support/view_section.php?sectionID=10 and I
 have :
 C:\jennic\drivers\FTDI_drivers\WinXP
 If you have any direction as to what a good starting point would be, I
 would greatly appreciate it.
 Thanks,
 Mejda CHOUAIEB

 - Message d'origine 
 De : SANG Junjun [EMAIL PROTECTED]
 À : mejda chouaieb [EMAIL PROTECTED]
 Cc : tinyos-help@millennium.berkeley.edu
 Envoyé le : Mercredi, 10 Octobre 2007, 15h55mn 16s
 Objet : Re: Re : Re : [Tinyos-help] Porting Tinyos To A New Hardware
 Platform

 I think you should develop drivers for JN5139 first.

 On 10/10/07, mejda chouaieb [EMAIL PROTECTED] wrote:
 
   JN5139 Wireless Microcontroller (IEEE802.15.4 and ZigBee)
 
  - Message d'origine 
  De : SANG Junjun  [EMAIL PROTECTED]
  À : mejda chouaieb [EMAIL PROTECTED]
  Cc : tinyos-help@millennium.berkeley.edu
  Envoyé le : Mercredi, 10 Octobre 2007, 15h40mn 12s
  Objet : Re: Re : [Tinyos-help] Porting Tinyos To A New Hardware Platform
 
 
  what's the type of jennic's MCU?
 
 
  On 10/10/07, mejda chouaieb  [EMAIL PROTECTED] wrote:
  
Hello All,
   for more precision :
   I will port Tinyos2.x from telos hardware platform to jennic hardware
   platform
   both has the same radio CC2024 but a diffrent microcontroller.
  
   Thanks,
   Mejda CHOUAIEB
  
  
   - Message d'origine 
   De : SANG Junjun  [EMAIL PROTECTED]
   À : mejda chouaieb [EMAIL PROTECTED]
   Cc : tinyos-help@millennium.berkeley.edu
   Envoyé le : Mercredi, 10 Octobre 2007, 15h19mn 13s
   Objet : Re: [Tinyos-help] Porting Tinyos To A New Hardware Platform
  
   We have ported T2 to Hawk platform with MSP430 and nrf905
   successfully.
   I think the most difficult part of our work is the chip driver(driver
   for nrf905).
  
   I think focus on your MCU for first step is a good idea.
  
   By the way, Hawk platform is designed by Data Engineering Research
   Center http://db.hit.edu.cn/ of Harbin Institute of 
   Technologyhttp://en.hit.edu.cn/
   .
  
   On 10/10/07, mejda chouaieb  [EMAIL PROTECTED] wrote:
   
Hello All,
I want to port Tinyos to an other platform with the same radio 2024
but with a diffrent microcontroller,
Now, I want to port some basic components of TinyOS to Jennic. Right
now, I just want to get the URAT working.
I was wondering if anyone else has attempted to port Tiny OS to
other platforms.  If you have any
direction as to what a good starting point would be, I would greatly
appreciate it.
Thanks,
Mejda CHOUAIEB
   
   
   

Découvrez le blog Yahoo! Mail : dernières nouveautés, astuces,
conseils.. et vos réactions !
http://blog.mail.yahoo.fr
   
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
   
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
   
  
  
  
   --
   Best Regards,
   SANG JUNJUN
  
  
  
   --
   Stockage illimité de vos mails avec Yahoo! Mail. Changez aujourd'hui
   de mail !
   http://fr.promotions.yahoo.com/mail/nouveau_yahoomail2.html
  
 
 
 
  --
  Best Regards,
  SANG JUNJUN
 
 
 
  --
  Stockage illimité de vos mails avec Yahoo! Mail. Changez aujourd'hui de
  mail ! http://fr.promotions.yahoo.com/mail/nouveau_yahoomail2.html
 



 --
 Best Regards,
 SANG JUNJUN



 --
 Stockage illimité de vos mails avec Yahoo! Mail. Changez aujourd'hui de
 mail ! http://fr.promotions.yahoo.com/mail/nouveau_yahoomail2.html




-- 
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: Re : [Tinyos-help] Porting Tinyos To A New Hardware Platform

2007-10-10 Thread SANG Junjun
what's the type of jennic's MCU?


On 10/10/07, mejda chouaieb [EMAIL PROTECTED] wrote:

  Hello All,
 for more precision :
 I will port Tinyos2.x from telos hardware platform to jennic hardware
 platform
 both has the same radio CC2024 but a diffrent microcontroller.

 Thanks,
 Mejda CHOUAIEB


 - Message d'origine 
 De : SANG Junjun [EMAIL PROTECTED]
 À : mejda chouaieb [EMAIL PROTECTED]
 Cc : tinyos-help@millennium.berkeley.edu
 Envoyé le : Mercredi, 10 Octobre 2007, 15h19mn 13s
 Objet : Re: [Tinyos-help] Porting Tinyos To A New Hardware Platform

 We have ported T2 to Hawk platform with MSP430 and nrf905 successfully.
 I think the most difficult part of our work is the chip driver(driver for
 nrf905).

 I think focus on your MCU for first step is a good idea.

 By the way, Hawk platform is designed by Data Engineering Research 
 Centerhttp://db.hit.edu.cn/of Harbin
 Institute of Technology http://en.hit.edu.cn/.

 On 10/10/07, mejda chouaieb [EMAIL PROTECTED] wrote:
 
  Hello All,
  I want to port Tinyos to an other platform with the same radio 2024 but
  with a diffrent microcontroller,
  Now, I want to port some basic components of TinyOS to Jennic. Right
  now, I just want to get the URAT working.
  I was wondering if anyone else has attempted to port Tiny OS to other
  platforms.  If you have any
  direction as to what a good starting point would be, I would greatly
  appreciate it.
  Thanks,
  Mejda CHOUAIEB
 
 
 
  
  Découvrez le blog Yahoo! Mail : dernières nouveautés, astuces,
  conseils.. et vos réactions !
  http://blog.mail.yahoo.fr
 
  ___
  Tinyos-help mailing list
  Tinyos-help@Millennium.Berkeley.EDU
  https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
 



 --
 Best Regards,
 SANG JUNJUN



 --
 Stockage illimité de vos mails avec Yahoo! Mail. Changez aujourd'hui de
 mail ! http://fr.promotions.yahoo.com/mail/nouveau_yahoomail2.html




-- 
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Porting Tinyos To A New Hardware Platform

2007-10-10 Thread SANG Junjun
We have ported T2 to Hawk platform with MSP430 and nrf905 successfully.
I think the most difficult part of our work is the chip driver(driver for
nrf905).

I think focus on your MCU for first step is a good idea.

By the way, Hawk platform is designed by Data Engineering Research
Centerhttp://db.hit.edu.cn/of Harbin
Institute of Technology http://en.hit.edu.cn/.

On 10/10/07, mejda chouaieb [EMAIL PROTECTED] wrote:

 Hello All,
 I want to port Tinyos to an other platform with the same radio 2024 but
 with a diffrent microcontroller,
 Now, I want to port some basic components of TinyOS to Jennic. Right now,
 I just want to get the URAT working.
 I was wondering if anyone else has attempted to port Tiny OS to other
 platforms.  If you have any
 direction as to what a good starting point would be, I would greatly
 appreciate it.
 Thanks,
 Mejda CHOUAIEB



 
 Découvrez le blog Yahoo! Mail : dernières nouveautés, astuces, conseils..
 et vos réactions !
 http://blog.mail.yahoo.fr

 ___
 Tinyos-help mailing list
 Tinyos-help@Millennium.Berkeley.EDU
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




-- 
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: Re : Re : [Tinyos-help] Porting Tinyos To A New Hardware Platform

2007-10-10 Thread SANG Junjun
I think you should develop drivers for JN5139 first.

On 10/10/07, mejda chouaieb [EMAIL PROTECTED] wrote:

  JN5139 Wireless Microcontroller (IEEE802.15.4 and ZigBee)

 - Message d'origine 
 De : SANG Junjun [EMAIL PROTECTED]
 À : mejda chouaieb [EMAIL PROTECTED]
 Cc : tinyos-help@millennium.berkeley.edu
 Envoyé le : Mercredi, 10 Octobre 2007, 15h40mn 12s
 Objet : Re: Re : [Tinyos-help] Porting Tinyos To A New Hardware Platform

 what's the type of jennic's MCU?


 On 10/10/07, mejda chouaieb [EMAIL PROTECTED] wrote:
 
   Hello All,
  for more precision :
  I will port Tinyos2.x from telos hardware platform to jennic hardware
  platform
  both has the same radio CC2024 but a diffrent microcontroller.
 
  Thanks,
  Mejda CHOUAIEB
 
 
  - Message d'origine 
  De : SANG Junjun  [EMAIL PROTECTED]
  À : mejda chouaieb [EMAIL PROTECTED]
  Cc : tinyos-help@millennium.berkeley.edu
  Envoyé le : Mercredi, 10 Octobre 2007, 15h19mn 13s
  Objet : Re: [Tinyos-help] Porting Tinyos To A New Hardware Platform
 
  We have ported T2 to Hawk platform with MSP430 and nrf905 successfully.
  I think the most difficult part of our work is the chip driver(driver
  for nrf905).
 
  I think focus on your MCU for first step is a good idea.
 
  By the way, Hawk platform is designed by Data Engineering Research
  Center http://db.hit.edu.cn/ of Harbin Institute of 
  Technologyhttp://en.hit.edu.cn/
  .
 
  On 10/10/07, mejda chouaieb  [EMAIL PROTECTED] wrote:
  
   Hello All,
   I want to port Tinyos to an other platform with the same radio 2024
   but with a diffrent microcontroller,
   Now, I want to port some basic components of TinyOS to Jennic. Right
   now, I just want to get the URAT working.
   I was wondering if anyone else has attempted to port Tiny OS to other
   platforms.  If you have any
   direction as to what a good starting point would be, I would greatly
   appreciate it.
   Thanks,
   Mejda CHOUAIEB
  
  
  
   
   Découvrez le blog Yahoo! Mail : dernières nouveautés, astuces,
   conseils.. et vos réactions !
   http://blog.mail.yahoo.fr
  
   ___
   Tinyos-help mailing list
   Tinyos-help@Millennium.Berkeley.EDU
  
   https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
  
 
 
 
  --
  Best Regards,
  SANG JUNJUN
 
 
 
  --
  Stockage illimité de vos mails avec Yahoo! Mail. Changez aujourd'hui de
  mail ! http://fr.promotions.yahoo.com/mail/nouveau_yahoomail2.html
 



 --
 Best Regards,
 SANG JUNJUN



 --
 Stockage illimité de vos mails avec Yahoo! Mail. Changez aujourd'hui de
 mail ! http://fr.promotions.yahoo.com/mail/nouveau_yahoomail2.html




-- 
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Problem running Tutorial 11 Tinyos 2

2007-10-03 Thread SANG Junjun
I have met the same problem.


On 9/12/07, Bhairav Desai [EMAIL PROTECTED] wrote:

 Hi all,
 I am trying to run tutorial 11 with tossim in tinyos 2.
 I am using the files test.py, topo.txt and meyer-heavy.txt as mentioned in
 the tutorial.

 But whenever I try to run the simulation it runs as follows

 $ python test.py
   1   2   -44.0
   2   1   -45.0
   1   3   -50.0
   3   1   -50.0
   2   3   -54.0
   3   2   -54.0
 Creating noise model for  1
 Creating noise model for  2
 Creating noise model for  3
 DEBUG (1): RadioCountToLedsC: timer fired, counter is 1.
 DEBUG (1): RadioCountToLedsC: packet sent.
 DEBUG (2): RadioCountToLedsC: timer fired, counter is 1.
 DEBUG (2): RadioCountToLedsC: packet sent.
 DEBUG (3): RadioCountToLedsC: timer fired, counter is 1.
 DEBUG (3): RadioCountToLedsC: packet sent.

 Why there is no receive of data.
 Please help me out.

 ___
 Tinyos-help mailing list
 Tinyos-help@Millennium.Berkeley.EDU
 https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




-- 
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] packet size of CC2420

2007-08-19 Thread SANG Junjun
what is the max packet size CC2420 can send/receive at one time?

-- 
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] The power consumed

2007-08-15 Thread SANG Junjun
how to measure the power on a running node?

On 8/16/07, Jacob Sorber [EMAIL PROTECTED] wrote:

 You might also want to look at PowerTOSSIM.  I don't really know how well
 it works, since I usually just measure the power on a running node (more
 accurate and fewer assumptions).  Still, if you must simulate, that might
 help.

 Jacob Sorber

 On 8/15/07, Graham Healy [EMAIL PROTECTED] wrote:
 
  What architecture would you like to know the power consumption for?
 
  Also, If it's AVR I have used this with success in the past 
  http://compilers.cs.ucla.edu/avrora/
 
  Only problem is that the power consumption is based off an average for
  the particular mode the Atmel128L is in.
 
 
  Yours,
  Graham Healy
 
  On 8/12/07, SANG Junjun [EMAIL PROTECTED] wrote:
  
   I also want to know how to measure the power of a real node
   Thanks.
  
  
On 8/11/07, bou ahm  [EMAIL PROTECTED] wrote:
  
 HELLO,
I am new to tinyos ,I work on the version Tinyos1.1.0 with the use
of  TOSSIM simulator and the nesc language ,
how to know the quantity of power consumed by the node sensor or the
sensor networks.
THANK YOU
   
--
Ne gardez plus qu'une seule adresse mail ! Copiez vos 
mailshttp://www.trueswitch.com/yahoo-fr/vers Yahoo! Mail
   
   
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
   
   
  
  
  
   --
   Best Regards,
   SANG JUNJUN
   ___
   Tinyos-help mailing list
   Tinyos-help@Millennium.Berkeley.EDU
   https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
  
  
 
 
  ___
  Tinyos-help mailing list
  Tinyos-help@Millennium.Berkeley.EDU
  https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
 
 




-- 
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] serial Communication problem

2007-08-13 Thread SANG Junjun
There are 3 motes: A, B, C with node id 0, 1, 2
node A is basestation, node B, C are using BlinkToRadio

In the first, we use the Listen tool to get the packet sent by node B, we
got:
00 00 01 22 06 04 00 06 00 01 00 01
00 00 01 22 06 04 00 06 00 01 00 02
00 00 01 22 06 04 00 06 00 01 00 03
00 00 01 22 06 04 00 06 00 01 00 04
00 00 01 22 06 04 00 06 00 01 00 05
we turn off node B, and turn on node C, we got
00 00 01 22 06 04 00 06 00 01 00 06
00 00 01 22 06 04 00 06 00 02 00 01
00 00 01 22 06 04 00 06 00 02 00 02
00 00 01 22 06 04 00 06 00 02 00 03
00 00 01 22 06 04 00 06 00 02 00 04
00 00 01 22 06 04 00 06 00 02 00 05

It looks like there is a packet cached by the serial program.
Our node is a msp430-based platform.
In mica2, this problem doesn't happen.

-- 
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] can't open TEP 127: Packet Link Layer

2007-08-10 Thread SANG Junjun
I can't open this link to TEP 127:
http://www.tinyos.net/tinyos-2.x/doc/html/tep127.html
Does this page exist?

-- 
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Can not open TinyOS Publications page

2007-06-29 Thread SANG Junjun

http://webs.cs.berkeley.edu/users/nestfr/nestfr_paper_display.php


--
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Re: TelosB temperature sensor

2007-05-24 Thread SANG Junjun

I think it should be new SensirionSht11C()

This is the interface for Temperature and Humidity sensor implementation of
TelosB:

generic configuration SensirionSht11C() {
 provides interface Readuint16_t as Temperature;
 provides interface DeviceMetadata as TemperatureMetadata;
 provides interface Readuint16_t as Humidity;
 provides interface DeviceMetadata as HumidityMetadata;
}
implementation {
 components new SensirionSht11ReaderP();

 Temperature = SensirionSht11ReaderP.Temperature;
 TemperatureMetadata = SensirionSht11ReaderP.TemperatureMetadata;
 Humidity = SensirionSht11ReaderP.Humidity;
 HumidityMetadata = SensirionSht11ReaderP.HumidityMetadata;

 components HalSensirionSht11C;

 enum { TEMP_KEY = unique(Sht11.Resource) };
 enum { HUM_KEY = unique(Sht11.Resource) };

 SensirionSht11ReaderP.TempResource - HalSensirionSht11C.Resource[
TEMP_KEY ];
 SensirionSht11ReaderP.Sht11Temp - HalSensirionSht11C.SensirionSht11[
TEMP_KEY ];
 SensirionSht11ReaderP.HumResource - HalSensirionSht11C.Resource[ HUM_KEY
];
 SensirionSht11ReaderP.Sht11Hum - HalSensirionSht11C.SensirionSht11[
HUM_KEY ];
}
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] how can i get a duty cycle from a pin

2007-05-22 Thread SANG Junjun

hi, everyone
I am now using ADXL202 to measure the acceleration. The output of ADXL202 is
encoded in duty cycle. And the output is connected to a pin of msp430 MCU.
How can i get this duty cycle ?

--
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] What's wrong with my BlockWrite code?

2007-05-10 Thread SANG Junjun

This is a simplest test. But It seems that only the erase operation works in
mica2.
I don't know why.

RandRWAppC.nc:
#include StorageVolumes.h

configuration RandRWAppC { }
implementation {
 components RandRWC, new BlockStorageC(VOLUME_BLOCKTEST),
   MainC, LedsC, PlatformC, RandomC;

 MainC.Boot - RandRWC;

 RandRWC.BlockWrite - BlockStorageC.BlockWrite;
 RandRWC.Leds - LedsC;
 RandRWC.Random - RandomC.Random;
}

RandRWC.nc:
module RandRWC {
 uses {
   interface Boot;
   interface Leds;
   interface BlockWrite;
   interface Random;
 }
}
implementation {

 uint8_t data[8] = {1, 2, 3, 4, 5, 6, 7, 8};

 event void Boot.booted() {
   call BlockWrite.erase();
   call BlockWrite.write(0, data, 8);
   call BlockWrite.sync();
 }

event void BlockWrite.eraseDone(error_t result) {
  if(result == SUCCESS)
   call Leds.led0On();
 }

 event void BlockWrite.writeDone(storage_addr_t x, void* buf, storage_len_t
y, error_t result) {
  if(result == SUCCESS){
   call Leds.led0Off();
   call Leds.led1On();
  }
 }

 event void BlockWrite.syncDone(error_t result) {
  if(result == SUCCESS)
   call Leds.led1Off();
   call Leds.led2On();
 }
}
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Fwd: Question about HplAt45dbByte.waitIdle() and command bool HplAt45dbByte.getCompareStatus()

2007-04-26 Thread SANG Junjun

-- Forwarded message --
From: SANG Junjun [EMAIL PROTECTED]
Date: Apr 22, 2007 4:15 PM
Subject: Question about HplAt45dbByte.waitIdle() and command bool
HplAt45dbByte.getCompareStatus()
To: David Gay [EMAIL PROTECTED]

Hi, David
In file: tinyos-2.x/tos/platforms/mica2/chips/at45db/HplAt45dbIOP.nc

In command void HplAt45dbByte.waitIdle() , why In.get() can get the status
of the flash chip?

 command void HplAt45dbByte.waitIdle() {
   // Setup interrupt on rising edge of flash in
   atomic
 {
call InInterrupt.clear();
call InInterrupt.enable();
call Clk.clr();
// We need to wait at least 2 cycles here (because of the signal
// acquisition delay). It's also good to wait a few microseconds
// to get the fast (FAIL) exit from wait (reads are twice as fast
// with a 2us delay...)
call BusyWait.wait(2);

if (call In.get())
  signal InInterrupt.fired(); // already high
 }
 }

and in command bool HplAt45dbByte.getCompareStatus()  why In.get() can
indicate the status?

 command bool HplAt45dbByte.getCompareStatus() {
   call Clk.set();
   call Clk.clr();
   // Wait for compare value to propagate
   asm volatile(nop);
   asm volatile(nop);
   return !call In.get();
 }

Thank you very much!


--
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] what is platform.h for?

2007-04-25 Thread SANG Junjun

I have just updated my T2 to 2.0-1.
And I found platform.h under every platform's folder。
What is this file for?
--
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Question about at45db

2007-04-17 Thread SANG Junjun

In file /tinyos-2.x/tos/platforms/mica2/chips/at45db/HplAt45dbIOC.nc
why use Int2?
  HplAt45dbIOP.InInterrupt - HplAtm128InterruptC.Int2;


--
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] What's this sentence for in HplAt45dbIOC.nc

2007-04-12 Thread SANG Junjun

There is a sentence in the file
tos/platforms/mica2/chips/at45db/HplAt45dbIOC.nc, line39
 HplAt45dbIOP.InInterrupt - HplAtm128InterruptC.Int2;
What does this mean? Can we use Int3 or Int4?

--
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
[EMAIL PROTECTED]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Is there any mac protocol in tinyos2.x?

2007-04-04 Thread SANG Junjun

Is there any mac protocol in tinyos2.x?

--
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] What's the meaning of MSP430mspgcc in jtag.py?

2007-04-01 Thread SANG Junjun

problem is:
msp430-jtag  -Iepr build/yamp/main.ihex.out
Traceback (most recent call last):
 File /opt/msp430/bin/msp430-jtag, line 16, in ?
   from msp430 import memory, jtag
 File /usr/lib/python2.4/site-packages/msp430/jtag.py, line 58, in ?
   MSP430mspgcc = ctypes.cdll.MSP430mspgcc
 File /usr/lib/python2.4/site-packages/ctypes/__init__.py, line 390, in
__getattr__
   dll = self._dlltype(name)
 File /usr/lib/python2.4/site-packages/ctypes/__init__.py, line 315, in
__init__
   self._handle = _dlopen(self._name, mode)
OSError: MSP430mspgcc: cannot open shared object file: No such file or
directory

and I found this in jtag.py:
MSP430mspgcc = ctypes.cdll.MSP430mspgcc

Does this MSP430mspgcc mean '/opt/msp430/lib/libMSP430mspgcc.*' or something
else?


--
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Anyone using tinyos2.0 under Ubuntu Edgy?

2007-04-01 Thread SANG Junjun

I met a jtag problem.
And I want help.

msp430-jtag  -Iepr build/yamp/main.ihex.out
Traceback (most recent call last):
 File /opt/msp430/bin/msp430-jtag, line 16, in ?
   from msp430 import memory, jtag
 File /usr/lib/python2.4/site-packages/msp430/jtag.py, line 58, in ?
   MSP430mspgcc = ctypes.cdll.MSP430mspgcc
 File /usr/lib/python2.4/site-packages/ctypes/__init__.py, line 390, in
__getattr__
   dll = self._dlltype(name)
 File /usr/lib/python2.4/site-packages/ctypes/__init__.py, line 315, in
__init__
   self._handle = _dlopen(self._name, mode)
OSError: MSP430mspgcc: cannot open shared object file: No such file or
directory


--
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Re: problem about jtag

2007-03-30 Thread SANG Junjun

I copy the files under /opt/msp430/lib/python2.3/site-packages to
/usr/lib/python2.4//site-packages

now errors like this come out:

msp430-objcopy --output-target=ihex build/hawk/main.exe build/hawk/main.ihex
   writing TOS image
cp build/hawk/main.ihex build/hawk/main.ihex.out
   installing hawk binary using the parallel port jtag adapter
msp430-jtag  -Iepr build/hawk/main.ihex.out
Traceback (most recent call last):
 File /opt/msp430/bin/msp430-jtag, line 16, in ?
   from msp430 import memory, jtag
 File /usr/lib/python2.4/site-packages/msp430/jtag.py, line 58, in ?
   MSP430mspgcc = ctypes.cdll.MSP430mspgcc
 File /usr/lib/python2.4/site-packages/ctypes/__init__.py, line 390, in
__getattr__
   dll = self._dlltype(name)
 File /usr/lib/python2.4/site-packages/ctypes/__init__.py, line 315, in
__init__
   self._handle = _dlopen(self._name, mode)
OSError: MSP430mspgcc: cannot open shared object file: No such file or
directory


On 3/30/07, SANG Junjun [EMAIL PROTECTED] wrote:


hi,everyone

When I try to install TinyOS2.0 using jtag, there is some error like this:

msp430-objcopy --output-target=ihex build/hawk/main.exe
build/hawk/main.ihex
writing TOS image
cp build/hawk/main.ihex build/hawk/main.ihex.out
installing hawk binary using the parallel port jtag adapter
msp430-jtag  -Iepr build/hawk/main.ihex.out
Traceback (most recent call last):
  File /opt/msp430/bin/msp430-jtag, line 15, in ?
from msp430.util import hexdump, makeihex
ImportError: No module named msp430.util
make: *** [program] Error 1

Can anyone help me?
Thanks a lot.

--
Best Regards,
SANG JUNJUN





--
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] problem about jtag

2007-03-29 Thread SANG Junjun

hi,everyone

When I try to install TinyOS2.0 using jtag, there is some error like this:

msp430-objcopy --output-target=ihex build/hawk/main.exe build/hawk/main.ihex
   writing TOS image
cp build/hawk/main.ihex build/hawk/main.ihex.out
   installing hawk binary using the parallel port jtag adapter
msp430-jtag  -Iepr build/hawk/main.ihex.out
Traceback (most recent call last):
 File /opt/msp430/bin/msp430-jtag, line 15, in ?
   from msp430.util import hexdump, makeihex
ImportError: No module named msp430.util
make: *** [program] Error 1

Can anyone help me?
Thanks a lot.

--
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Can't find neither _parjtag nor ctypes. No JTAG backend available.

2007-01-20 Thread SANG Junjun
and its remaining energy at every moment.
   
Can you please tell me how to do this in TinyOS2.x?
   
thank you so much for your answer.
Paul
   
  ___
  Tinyos-help mailing list
  Tinyos-help@Millennium.Berkeley.EDU
  mailto:Tinyos-help@Millennium.Berkeley.EDU
 

https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
 
 
 ___
 Tinyos-help mailing list
 Tinyos-help@Millennium.Berkeley.EDU

https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

-- next part --
An HTML attachment was scrubbed...
URL:
http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070120/953f0fe0/attachment.html

--

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

End of Tinyos-help Digest, Vol 45, Issue 66
***





--
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] problems using BlinkToRadio on mica2, tinyOS2.0

2007-01-16 Thread SANG Junjun

Hi,

I loaded \opt\tinyos-2.x\apps\tutorials\BlinkToRadio in 2 mica2 motes just
as lesson 3 said. But it doesn't work.

And then I tried to check if the packet was sent and received
successfully. The  sendDone() shows the packet was successfully sent. But It
can't receive any packet.

Does someone use the BlinkToRadio in mica2, tinyOS2.x succesfully? Can you
give me some advice?
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] problems using BlinkToRadio on mica2, tinyOS2.0

2007-01-16 Thread SANG Junjun

Thanks.
But can you tell me where can I find the options for frequencies?
I didn't find it in CC1000Const.h.


On 1/17/07, Philip Levis [EMAIL PROTECTED] wrote:


On Jan 16, 2007, at 3:48 AM, SANG Junjun wrote:

 Hi,

 I loaded \opt\tinyos-2.x\apps\tutorials\BlinkToRadio in 2 mica2
 motes just as lesson 3 said. But it doesn't work.

 And then I tried to check if the packet was sent and received
 successfully. The  sendDone() shows the packet was successfully
 sent. But It can't receive any packet.

 Does someone use the BlinkToRadio in mica2, tinyOS2.x succesfully?
 Can you give me some advice?
 _

There are two frequencies for mica2: 433 and 915MHz. Just as with
TinyOS 1.x, if your software is configured for the wrong one, you
will not receive/send packets. My default, it's configured for 433.
Take a look at CC1000Const.h.

Phil





--
Best Regards,
SANG JUNJUN

--
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] problems using BlinkToRadio on mica2, tinyOS2.0

2007-01-16 Thread SANG Junjun

you mean this?

 CC1K_433_002_MHZ = 0x00,
 CC1K_915_998_MHZ = 0x01,
 CC1K_434_845_MHZ =0x02,
 CC1K_914_077_MHZ =0x03,
 CC1K_315_178_MHZ =0x04,


On 1/17/07, Philip Levis [EMAIL PROTECTED] wrote:


On Jan 16, 2007, at 3:48 AM, SANG Junjun wrote:

 Hi,

 I loaded \opt\tinyos-2.x\apps\tutorials\BlinkToRadio in 2 mica2
 motes just as lesson 3 said. But it doesn't work.

 And then I tried to check if the packet was sent and received
 successfully. The  sendDone() shows the packet was successfully
 sent. But It can't receive any packet.

 Does someone use the BlinkToRadio in mica2, tinyOS2.x succesfully?
 Can you give me some advice?
 _

There are two frequencies for mica2: 433 and 915MHz. Just as with
TinyOS 1.x, if your software is configured for the wrong one, you
will not receive/send packets. My default, it's configured for 433.
Take a look at CC1000Const.h.

Phil





--
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] problems using BlinkToRadio on mica2, tinyOS2.0

2007-01-16 Thread SANG Junjun

Yes
I found it.

#ifndef CC1K_DEF_PRESET
#define CC1K_DEF_PRESET (CC1K_915_998_MHZ)
#endif

and the BlinkToRadio works:)
Thanks a lot


On 1/17/07, Philip Levis [EMAIL PROTECTED] wrote:


On Jan 16, 2007, at 3:48 AM, SANG Junjun wrote:

 Hi,

 I loaded \opt\tinyos-2.x\apps\tutorials\BlinkToRadio in 2 mica2
 motes just as lesson 3 said. But it doesn't work.

 And then I tried to check if the packet was sent and received
 successfully. The  sendDone() shows the packet was successfully
 sent. But It can't receive any packet.

 Does someone use the BlinkToRadio in mica2, tinyOS2.x succesfully?
 Can you give me some advice?
 _

There are two frequencies for mica2: 433 and 915MHz. Just as with
TinyOS 1.x, if your software is configured for the wrong one, you
will not receive/send packets. My default, it's configured for 433.
Take a look at CC1000Const.h.

Phil





--
Best Regards,
SANG JUNJUN
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help