[Tinyos-help] Is there a type of sensor for measureing electricity usage

2007-10-25 Thread weiping SONG

Hi all,

Is there a type of sensor for measureing electricity usage? For example, 
if we were to use it to monitor teh amount of electricity used by a 
large device like an air conditioner  ete.


Regards,

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


[Tinyos-help] problem of using Deluge T2

2007-11-19 Thread weiping SONG

Hi all,

I am using Deluge T2 on Tinyos 2.0.2. Everything seems okay except the 
last step when I use command: tos-deluge /dev/ttyUSB0 telosb -r 0 to 
reprogam in the network and I am sure the last command: tos-deluge 
/dev/ttyUSB0 telosb -d 0 ran well since other nodes have received the 
new image from basestation. the other nodes only  flashed  the red and 
blue LEDs  and  do nothing , but flashed all LEDs.


Could some one help? Thanks in advance

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


Re: [Tinyos-help] PATH Setting

2007-11-19 Thread weiping SONG

Hi,

Could you use command in cygwin of export  or tos-check-env to check 
your PATH setting?


Weiping

Ittipong Khemapech wrote:

Dear all,

This may be a stupid question to most of you. I have some problems 
with the PATH setting.


Now my PATH is set to '/opt/msp430/bin:$PATH' in order to enable the 
msp430 related commands.


However, I can't compile the TestSerial application (javac not found). 
I have found from the archives that I should set PATH to 'C:\Program 
Files\Java\jre1.6.0_03\bin\' where the java.exe is located.


So, how can I set PATH to enable both msp430 and java?

I am using TinyOS 2.0.2, cygwin and Tmote Sky.

Thank you in advance for your help.

Best wishes,
Ittipong


___
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


Re: [Tinyos-help] PATH Setting

2007-11-19 Thread weiping SONG

I think you could set it in windows, such as
Right-click my computer  to find  Properities, then  click environment 
Variables in Advanced, then change your Path here.



Ittipong Khemapech wrote:

Hi,

I tried and got:

export PATH=$PATH:/cygdirve/c/Program Files/java/jre1.6.0_03/bin:

bash: export: 'Files/java/jre1.6.0_03/bin:': not a valid identifier

Thanks,
Ittipong

On 19/11/2007, *Jeonghoon Kang* <[EMAIL PROTECTED] 
> wrote:


: )
Try this.
export PATH=$PATH:/cygdirve/c/Program Files/java/jre1.6.0_03/bin:
or use with ' ' or " "
and check with

printenv PATH

Good Luck !

2007/11/19, Ittipong Khemapech < [EMAIL PROTECTED]
>:
> Dear all,
>
> This may be a stupid question to most of you. I have some
problems with the
> PATH setting.
>
> Now my PATH is set to '/opt/msp430/bin:$PATH' in order to enable
the msp430
> related commands.
>
> However, I can't compile the TestSerial application (javac not
found). I
> have found from the archives that I should set PATH to 'C:\Program
> Files\Java\jre1.6.0_03\bin\' where the java.exe is located.
>
> So, how can I set PATH to enable both msp430 and java?
>
> I am using TinyOS 2.0.2, cygwin and Tmote Sky.
>
> Thank you in advance for your help.
>
> Best wishes,
> Ittipong
>
> ___
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU

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


--
Jeonghoon Kang
Senior Researcher
at Korea Electronics Technology Institute(www.keti.re.kr
)
TinyOS Korea Forum Administrator
www.tinyos.or.kr 
work = [EMAIL PROTECTED] 
private = [EMAIL PROTECTED] 
www.pinkfloyd.re.kr/rnd/ 
FYI, Kmote Connector (
http://www.tinyos.re.kr/bbs/upload/kmote_connector.pdf)




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


[Tinyos-help] Deluge T2

2007-11-19 Thread weiping SONG

Hi all,

There seems be a bug when I reboot BaseStation with: tos-deluge 
/deb/ttyUSB0 telosb -b 1


Then I can not ping BasseStation with errors:

pinging node ...
ERROR: Unable to retrieve image information over serial.

Thanks

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


Re: [Tinyos-help] problem of using Deluge T2

2007-11-20 Thread weiping SONG

Hi Make,

I used three tmote sky nodes and ttyUSB0 is the basestation. This time I 
want to upload SerialBlank in image 1. I did it by following steps:


1. turn to /apps/tests/deluge/SerialBlink directionary.
2. make telosb
3. tos-deluge /dev/ttyUSB0 telosb -i 1 build/telosb/tos_image.xml
4.tos-deluge /dev/ttyUSB0 telosb -p 1 and found Version 2 of BlinkAppC 
in Image 1(before I uploaded Blink to it)
5.tos-deluge /dev/ttyUSB0 telosb -d 1: found USB transmit LED and 
receive LED of ttyUSB0 flashed and found found Version 2 of BlinkAppC in 
Image 1 of ttyUSB1 and ttyUSB2. That means this command is okay, other 
nodes received new version of Blink(SerialBlink).
6.tos-deluge /dev/ttyUSB0 telosb -r 1: found USB transmit LED and 
receive LED of ttyUSB0 flashed;   LEDS flashed only flashed once  in 
ttyUSB1 and ttyUSB2, then nothing changed
7.tos-deluge /dev/ttyUSB0 telosb -r 0: found USB transmit LED and 
receive LED of ttyUSB0 flashed;   LEDS flashed only flashed once  in 
ttyUSB1, but LEDS flashed many times in  ttyUSB2 and it looks work well 
(image 0 is from apps/tests/deluge/Blink )


I do not understand why, Could you help me?

Thanks

Weiping

Chieh-Jan (Mike) Liang wrote:

Hi Weiping,

Just want to clarify what you said. So, when you do "tos-deluge 
/dev/ttyUSB0 telosb -r 0", non-basestation nodes just flash red and 
blue once?


Also, which program are you trying right now? For example, is it the 
Blink under apps/tests/deluge, or something else?


Thank you

Mike

weiping SONG wrote:

Hi all,

I am using Deluge T2 on Tinyos 2.0.2. Everything seems okay except 
the last step when I use command: tos-deluge /dev/ttyUSB0 telosb -r 0 
to reprogam in the network and I am sure the last command: tos-deluge 
/dev/ttyUSB0 telosb -d 0 ran well since other nodes have received the 
new image from basestation. the other nodes only  flashed  the red 
and blue LEDs  and  do nothing , but flashed all LEDs.


Could some one help? Thanks in advance

weiping
___
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


Re: [Tinyos-help] cannot find JNI error

2007-12-13 Thread weiping SONG

Hi Hengly,

I think you might add:
 export tinyoslibdir=/usr/lib/tinyos

regards,
Weiping

Pieter De Mil wrote:

Hi hengly, all,

The script is looking for this file: toscomm-32.dll.
I renamed the /usr/lib/tinyos/toscomm.dll to 
/usr/lib/tinyos/toscomm-32.dll (or you can edit the script, locate it 
with   which tos-install-jni).


Which rpm is responsible for the toscomm.dll file in /usr/lib/tinyos ?

Pieter



hengly wrote:

Dear all,
 
I'm using tinyos 2.0.2 + cygwin in windows xp sp2. I encountered the 
'cannot find JNI error' when follwing Lesson 4.
 
I run the command 'tos-install-jni', the following returned:
 
$ tos-install-jni

[: ==: unknown operand
Installing 32-bit Java JNI code in /cygdrive/c/Program 
Files/Java/jdk1.5.0_14/jre/bin ...
install: cannot stat `/usr/lib/tinyos/*-32.dll': No such file or 
directory

what's wrong?
 
Many thanks in advance.


--
hengly


___
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



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


Re: [Tinyos-help] MicaZ_XubunTOS2.0

2007-12-19 Thread weiping SONG
Hi, Here is some steps to use mib520 in open suse, I hope this will be 
helpful:


  1. have a look at this link:
 http://www.tinyos.net/tinyos-2.x/doc/html/tutorial/programmers.html
  2. using dmesg you should see two ports to be assigned once you plug
 mib520 into you system. To confirm that:
 /dev/ttyUSB0 ... for programming
 /dev/ttyUSB1 ... for getting data from MicaZ (maybe other ports)
  3. install UISP in /usr/local/bin. (two ways)

1) cd .../tinyos-1.x/tools/src/uisp

make
su
make install
exit

2) download UISP for linux from 
http://www.nanork.org/nano-RK/wiki/micaZ-quick-start


mv uisp /usr/local/bin

chmod +x /usr/local/bin/uisp

  4. make micaz install mib510(not mib520!),/dev/ttyUSB0

Weiping

Janos Sallai wrote:


The mib520 will most probably show up as /dev/ttyUSB0 and /dev/ttyUSB1 
(assuming you don’t have any other usb-to-serial interfaces). The 
former one is used to program the mote, the latter one to communicate 
with it. That is,


make micaz install mib510,/dev/ttyUSB0

will program the mote, and

sf –comm serial@/dev/ttyUSB1:micaz

will start up serialforwarder for you.

Janos

-Original Message-
*From:* [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] *On Behalf Of 
*antonio gonga

*Sent:* Tuesday, December 18, 2007 6:51 AM
*To:* TINYOS
*Subject:* [Tinyos-help] MicaZ_XubunTOS2.0

heyl all,
I'm unable to install an application to a MicaZ mote. Whenever I do 
that I get the following error:

"flash error " ... and address error , and so on

Do I have to install the drives for Mib520 on XubuuTOS2.0??


***
Gonga, Antonio Oliveira
e-mail: [EMAIL PROTECTED]
Cell Phone: +46762320854
***




Get the power of Windows + Web with the new Windows Live. Get it now! 




Internal Virus Database is out-of-date.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.17.1 - Release Date: 12/11/2007 
12:00 AM




___
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


Re: [Tinyos-help] Development wanted for Deluge T2

2008-01-18 Thread weiping SONG

Hi David,

I have faced also the similar problem for burn-net so I give it up. I 
think before run


"tos-deluge -dr 1", you might run "tos-deluge -s 1" first.

Regards,

Weiping SONG 


David wrote:

Apologies in advance if I'm doing something dumb again ;-)

It looks like dissemination is broken. When you run tos-deluge -d or
-dr, nothing happens on the non-basestation motes.

I've seen this with my own testing, and also with
apps/tests/deluge/Blink/burn-net.

burn-net works fine up until the final step, where it runs "tos-deluge
-dr 1". There isn't any error message, and a green LED does blink
momentarily on the basestation mote (indicating it got comms over
USB). But the green LED on the 2nd mote doesn't start flickering, and
it never switches over to the 2nd program (blink green LED).

Can somebody confirm this problem?

David.
___
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


[Tinyos-help] Radio channel in Tmote sky

2008-03-06 Thread weiping SONG

Hi all,

Would you like to tell how many channels for  CC2420  to  send/receive 
radio?  which  they are?


Regards,

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


Re: [Tinyos-help] extension pin of tmote sky and external power supply

2008-03-07 Thread weiping SONG

Hi Miriam,

The Supply Voltage for Tmote Sky is between 2.1V to 3.6V. I hope this 
information is helpful to you.


Regards,
Weiping

miriam herraiz wrote:

Hi all,
 
I am working with tmote sky, and my aim is to use an external power 
supply, connect it to the 10-pin expansion of the mote and using 
Trawler, observe the voltage I put in the power supply. I have done 
the code to use the ADC ports and to send the data via radio. The 
problem is when I see the data in the GUI, it is weird! if I put 1 V 
in the power supply I can't see this value in Trawler. I don't know if 
I need to connect something else to the mote. The connection between 
power supply and tmote is using pin 3 (adc0) and pin 9(gnd). Can 
anyone tell me any suggestion
 
thanks,

Miriam


___
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


[Tinyos-help] Current Time

2008-03-07 Thread weiping SONG

Hi all,

In T2, there is an interface called LocalTime. I can draw the current 
time through Localtime, but they are in binary number. But what's I need 
is current time, such as: when it is (hour, minute, scecond)


Is there somone know about it?

Regards,

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


[Tinyos-help] a strange error

2008-03-11 Thread weiping SONG

Hi all,

I faced a strange error  this morning as following:
I could not compile my TestRadioAppC.nc if I put "Counter++;" before 
radio_test_mag_t in TestRadioC.nc...


-
event void TimerRadio.fired() {
 // Counter++;
  if (locked) {
return;
  }
  else {
Counter++;
radio_test_msg_t* rcm = (radio_test_msg_t*)call 
Packet.getPayload(&packet, NULL);
if (call Packet.maxPayloadLength() < sizeof(radio_test_msg_t)) {
  return;
}

rcm->voltage = InVoltage;
rcm->count = Counter;
rcm->temp = 0;
if (call AMSend.send(AM_BROADCAST_ADDR, &packet, 
sizeof(radio_test_msg_t)) == SUCCESS) {
 locked = TRUE;
}
  }
}
--
[EMAIL PROTECTED] TestRadio]$ make telosb
mkdir -p build/telosb
   compiling TestRadioAppC to a telosb binary
ncc -o build/telosb/main.exe -Os -O -mdisable-hwmul -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all 
-target=telosb -fnesc-cfile=build/telosb/app.c -board= -DIDENT_PROGRAM_NAME=\"TestRadioAppC\" 
-DIDENT_USER_ID=\"realtime\" -DIDENT_HOSTNAME=\"m1-02.ucc.ie\" 
-DIDENT_USER_HASH=0x69427c28L -DIDENT_UNIX_TIME=0x47d67976L -DIDENT_UID_HASH=0xc8fd72abL  TestRadioAppC.nc -lm
In file included from TestRadioAppC.nc:13:
In component `TestRadioC':
TestRadioC.nc: In function `TimerRadio.fired':
TestRadioC.nc:47: syntax error before `*'
TestRadioC.nc:52: `rcm' undeclared (first use in this function)
TestRadioC.nc:52: (Each undeclared identifier is reported only once
TestRadioC.nc:52: for each function it appears in.)
make: *** [exe0] Error 1
[EMAIL PROTECTED] TestRadio]$

--

But it worked well if I put "Counter++;" in the first line of the event.

I do not understand why, can some one help me?

Regards,

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


[Tinyos-help] ReaderMsg

2008-03-11 Thread weiping SONG

Hi All,

I faced the problem of using "java net.tinyos.tools.MsgReader" as 
follwoing:


---
[EMAIL PROTECTED] TestRadio]$ java net.tinyos.tools.Listen
00 FF FF 00 17 06 00 06 00 00 00 03 00 00
00 FF FF 00 17 06 00 06 00 00 00 04 00 00
00 FF FF 00 17 06 00 06 00 00 00 05 00 00
00 FF FF 00 17 06 00 06 00 00 00 06 00 00
00 FF FF 00 17 06 00 06 00 00 00 07 00 00
00 FF FF 00 17 06 00 06 00 00 00 08 00 00
00 FF FF 00 17 06 00 06 00 00 00 09 00 00
[EMAIL PROTECTED] TestRadio]$ java net.tinyos.tools.MsgReader TestRadioMsg
java.lang.ClassNotFoundException: TestRadioMsg
--

"java net.tinyos.tools.Listen" looks working fine.
And I try to BlinkToRadio application, the result is same.

My OS is FC4

Could someone help me?

Regards,

Weiping

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


[Tinyos-help] Are there some ways to debug cc2420?

2008-04-17 Thread weiping SONG
Hi All,

I have modified cc2420 but there seems be some bugs,  it seems tossim 

do not support to simulate cc2420. Are other ways to debug cc2420? 

Regards,
 
Weiping Song

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


[Tinyos-help] Printf library

2008-04-22 Thread weiping SONG
Hi,

I have changed somnthinf in cc2420 and want to debug it with printf 
library.  I found nodes could not send and receive messages correctly if 
I used printf sentences in a component within cc2420. But they worked 
fine if I only put printf  sentences  in  application codes.

Could someone help me?

Thanks

Weiping Song
___
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 control the radio power in iris platform?

2008-05-12 Thread weiping SONG
Hi,

I think you might change the power of radio. To tmote sky,  it is 0dBm 
by default ( CC2420_DEF_RPOWER = 31 in CC2420.h). There are 8 power 
levels in CC2420 and the min. is -25dBm. I think it should reduce the 
radio range of each mote. For more details, please reference 
tmote-sky-datasheet.

Regards,

Weiping


Xiaojun Zhu wrote:
> Hi all,
>  I want to make the mote not so powerful so that the message 
> can reach the destination only by multi-hop in a limited area,like in  
> a room. The reason is that I want to study the behavior of MULTI-HOP 
> in my lab. I search this list and find some one posted a question 
> similar to this  without replying. Is that possible? I'm using Iris 
> platform.
>  Please let me know if my expression is not so clearly.
>  
>  
>  
> Thanks,
>  
>Regards,
>Xiaojun
>   
>  
>
> 
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try 
> it now. 
> 
>  
>
> 
>
> ___
> 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


[Tinyos-help] How to know usage of memory and external flash while running application

2008-07-16 Thread weiping SONG
Dear all,

I want to run an application on special nodes to know their usage of 
memory and external flash. I know we can get these from make command, 
but I want to collect by application for realtime.

Could someone help me?

Regards,

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


[Tinyos-help] How can I wire two components with different am Id to ActiveMessageC

2008-07-28 Thread weiping SONG
Hi all,

I want to wire two components to ActiveMessageC. Each has AMSend and 
Receive interface, but their AM id are different. I found that only one 
component received messages.

Could someone help me?

Regards,

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


[Tinyos-help] Is it possible for each node send/receive messages with different AM id?

2008-07-29 Thread weiping SONG
Hi all,

I uploaded an application to nodes, which is to make each node 
send/recieve normal messages with a special AM id, and there is a 
component can send/receive message wtih another Am id for managing nodes.

But I found nodes can  recieve managing messages once in a while and 
they can not receive  messages any more if they send a managing 
messages. I don't know why, could you give some advice?

Regards,

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


Re: [Tinyos-help] Is it possible for each node send/receive messages with different AM id?

2008-07-29 Thread weiping SONG
weiping SONG wrote:
> Hi all,
>
> I uploaded an application to nodes, which is to make each node 
> send/recieve normal messages with a special AM id, and there is a 
> component can send/receive message wtih another Am id for managing nodes.
>
> But I found nodes can  recieve managing messages once in a while and 
> they can not receive  messages any more if they send a managing 
> messages. I don't know why, could you give some advice?
>
> Regards,
>
> Weiping
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>   
I have also found that the rxFrameLength = 0 after I sending the 
managing packets and receiving  next packets, so all packets can not 
send to upper components.


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


[Tinyos-help] strang error

2008-08-18 Thread weiping SONG
Hi all,

I have faced a strang error today. I have uploaded my application in one 
tmote sky. But the BaseStation could not receive messges from tmote sky 
node. I used another node uploading  BaseStation code but compiled with:
 CFLAGS += - DCC2420_NO_ACKNOWLEDGEMENTS
 CFLAGS += - DCC2420_NO_ADDRESS_RECOGNITION

Unfortunatelly, this node could not receive any message yet.  I used 
printf Library to check if the node has sent messages, and I found 
senddone event in CC2420ActiveMessageP.nc has been fired every time node 
sending message. that means the node sending message succesfully.

And the BaseStation could receive message if I upload the tmote sky node 
with another application such as RadioCountToLeds.

So I was puzzled with this, could you give me some advice?

Thank a million

Weiping Song

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


[Tinyos-help] error for sending messages

2008-10-06 Thread weiping SONG
Hi all,

I have faced a strange problem. every node will response to BS request 
in my application. First time after node rebooted is okay. but after 
that, I find last two fields in the response packet is incorrect. I have 
checked last packet's field in CC2420Transmit component, it is as same 
as the application layer. Then, when another node received this packet, 
the last two field values are different.

I have also changed my packet length from 22bytes to 20bytes, the 
problem is still there.

I think this might be caused by  message buffer overwritten  before node 
send message, but I do not know how to fix this problem.

I use am type 255 for sending messages from BS and am type 254 for 
responsing messages to BS.

Did some one face similar problem?

Could you give me some advice?

Regards,

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


[Tinyos-help] cannt find serial_tun.config

2008-10-22 Thread weiping SONG
Hi all,

I am a newer of 6lowpan, I can not find serial_tun.config after typing 
"make" in lib6lowpan.

Could some one give me advice?

Regards,

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


Re: [Tinyos-help] Controlling Tmotes from PC

2008-11-05 Thread weiping SONG
I think you might  read the code of BaseStation, you can do something 
when node receive massage from serial port.

weiping

Eric Keller wrote:
> If I was going to do that, I'd look at the printf library.  Of course, it
> sends data the other way, but it's a good start.
> On the other hand, it makes much more sense to control the motes
> over the radio.
> Eric
>
>
> On Wed, Nov 5, 2008 at 8:36 AM, Dinesh Koya <[EMAIL PROTECTED]> wrote:
>   
>> Hi all
>>
>> I am doing a project in which I have a requirement to control tmotes
>>  (connected to the USB ports of the PC) from the PC like switching
>> ON/OFF their radios, changing the timer's firing periods,etc. I would
>> like to know if there is some sample program in Tinyos to control the
>> sensor nodes from the PC, if not then could someone tell me how to do
>> it. I am using TINYOS 2.0.2
>>
>> Thanks for any help
>>
>> Regards
>> Dinesh
>> 
>> Add more friends to your messenger and enjoy! Invite them now.
>> ___
>> 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
>
>   

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


[Tinyos-help] how could I run Makefile.am

2008-11-05 Thread weiping SONG
Hi all,

In tinyos-2.x/support/sdk/c, there is a Makefile.am, But I do not know 
how could I run it.

Could you give me a help?

Regards,

Weiping

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


Re: [Tinyos-help] an error for tos-deluge

2009-04-03 Thread weiping SONG
Hi Razvan,

Thanks very much.

I solved it by downloading lastest CVS of tinyos.

Regards,

Weiping

Razvan Musaloiu-E. wrote:
> Hi!
>
> On Thu, 2 Apr 2009, w...@cs.ucc.ie wrote:
>
>   
>> Hi All,
>>
>> I faced a strange error while inject application code as following:
>>
>> testbed:/opt/tinyos-2.1.0/apps/tests/deluge/Blink$ tos-deluge 
>> serial@/dev/ttyUSB0:115200 -i 1 build/telosb/tos_image.xml
>> Traceback (most recent call last):
>>  File "/usr/local/bin/tos-deluge", line 401, in 
>>am = tos.AM()
>> TypeError: __init__() takes exactly 2 arguments (1 given)
>>
>> ---
>>
>> I am using ubuntu 8.10, Is there someone faced this same error?
>>
>> 
>
> Can you please make sure you are using the latest CVS of tinyos? The 
> ser...@port:SPEED in tos.py is something that was added after 2.1 was 
> released.
>
> --
> Razvan ME
> ___
> 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


[Tinyos-help] b6lowpan application over deluge

2009-04-03 Thread weiping SONG
Hi All,

I want to design a testbed, which is over deluge for reprogramming. Then 
I hope I could inject an application support 6lawpan.

I removed component NWProgC and added DelugeC from the application. But 
founded that there is an error in CC2420ActiveMessageP.nc since there is 
no member for the field of "type" in cc2420_header_t.

I think the reason is that when I compile my application with "make 
telosb lowpan", it should be compiled with lowpan.extra, which will add 
"PFLAGS+=-DTINYOS_IP". This will cause cc2420.h add field "type" in 
cc2420_header_t. But deluge need this field. So compling failed.

Does any one could help me?

Regards,

Weiping

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