Re: [Tinyos-help] SurgeTelos

2008-07-17 Thread ranal fernando

Dear all,
 
Thank you very much for your help. Now it is working and doing the multihop 
networking.
 
Thanks again
 
 
 
Ranal 

Date: Thu, 17 Jul 2008 14:37:06 +0900From: [EMAIL PROTECTED]: [EMAIL 
PROTECTED]: Re: [Tinyos-help] SurgeTelos

Please use SurgeTelos application for the Sink node instead of TOSBase.
Be sure that * make telosb reinstall.0 *, node id is 0 for Sink.
 
2008/7/17 ranal fernando <[EMAIL PROTECTED]>:


Dear all,
 
I have a problem with SurgeTelos.
I created the TOS image & injected it to several telosb motes having 1, 2, and 
3 as the addresses. I created a TOSBase (with the address 0) & gave the 
following command.
 
Java net.tinyos.tools.Listen 
But it is only getting the data from the mote within its range. It is not 
showing any data from other motes. Apparently multihop function is not working.
 
Can somebody help me in this? I'm really in need of help.
 
 
Thanks in advance.
 
Ranal

Time for vacation? WIN what you need. Enter 
Now!___Tinyos-help mailing [EMAIL 
PROTECTED]://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 Administratorwww.tinyos.or.krwork 
= [EMAIL PROTECTED] private = [EMAIL PROTECTED]/rnd/*Kmote Connector 
http://www.tinyos.re.kr/bbs/upload/kmote_connector.pdf 
_
Use video conversation to talk face-to-face with Windows Live Messenger.
http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_video_072008___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] SurgeTelos

2008-07-16 Thread ranal fernando
Dear all,
 
I have a problem with SurgeTelos.
I created the TOS image & injected it to several telosb motes having 1, 2, and 
3 as the addresses. I created a TOSBase (with the address 0) & gave the 
following command.
 
Java net.tinyos.tools.Listen 
But it is only getting the data from the mote within its range. It is not 
showing any data from other motes. Apparently multihop function is not working.
 
Can somebody help me in this? I’m really in need of help.
 
 
Thanks in advance.
 
Ranal
_
Time for vacation? WIN what you need- enter now!
http://www.gowindowslive.com/summergiveaway/?ocid=tag_jlyhm___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] surgetelos multihop

2008-06-12 Thread vivek kumar
hi

i am trying to do multihop on telos through
surgetelosbut i am not seeing any send message or yield in GUI
both fields are blank..

please help me..is there any alternative to do th project as given in this
link
http://www.eecs.harvard.edu/~mdw/course/cs263/assn1/index.html

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

[Tinyos-help] SurgeTelos problem - combine function

2007-07-07 Thread

Hi
I was trying to use SurgeTelos in tmote platform. My objective was to
call timer.start() if a packet has been received with
type=SURGE_TYPE_ROOTBEACON. But i am facing the following warning:

nesc1: warning: calls to ReceiveMsg.receive in SPM fan out, but there
is no combine function specified for the return type

My added part in SurgeTelos:-
event TOS_MsgPtr Bcast.receive(TOS_MsgPtr pMsg, void* payload,
uint16_t payloadLen) {
   SurgeCmdMsg *pCmdMsg = (SurgeCmdMsg *)payload;

   dbg(DBG_USR2, "SurgeM: Bcast  type 0x%02x\n", pCmdMsg->type);

   if (pCmdMsg->type == SURGE_TYPE_ROOTBEACON) {   // RootBeacon!!
  call Timer.start(TIMER_REPEAT, 3);
  call CC2420Control.SetRFPower(RESOURCE_NONE,1);
  call Leds.greenToggle();
   }
 return pMsg;
 }
Any help will be highly appreciated.

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


[Tinyos-help] SurgeTelos not working properly....

2007-04-11 Thread Nikhil
Hi All,
I am trying to run SurgeTelos on TelosB motes Using Tinyos 1.1.15.
I have installed SurgeTelos on mote 0,1,2,3 and have mote 0 attached to USB
port as a basestation.
 
When I run java net.tinyos.surge.MainClass 125 after invoking serial
Forwarder I get a sensor network topology screen with Mote 0 showing. But It
Displays no data. 
Although serial forwarder shows increment in Written data packets.
Also when I press start root beacon it does not detect other motes in the
network and just packet written count in SF keeps on incrementing.
 
Also MultiHop does not occur. Motes other than base station don't seem to
transmit data at all.
Motes other than base station have Red and yellow LED blinking in 1-2
seconds.
When I enable debug option for java code I get see following messages:
 
SENDING BEACON: Message 
  [sourceaddr=0x7e]
  [originaddr=0x7e]
  [seqno=0x24b]
  [originseqno=0x0]
  [hopcount=0x1]
  [data=0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
0x0 0x0 ]
 
SENDING BEACON: Message 
  [sourceaddr=0x7e]
  [originaddr=0x7e]
  [seqno=0x24c]
  [originseqno=0x0]
  [hopcount=0x1]
  [data=0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
0x0 0x0 ]
 
SENDING BEACON: Message 
  [sourceaddr=0x7e]
  [originaddr=0x7e]
  [seqno=0x24d]
  [originseqno=0x0]
  [hopcount=0x1]
  [data=0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
0x0 0x0 ]
 
 
Any suggestions would greatly be appreciated

Thanks in advance.

 

Regards,

Nikhil

 

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

[Tinyos-help] SurgeTelos Help Needed ..Urgent

2007-04-09 Thread nikhil
Hi All,
I am trying to run SurgeTelos on TelosB motes Using Tinyos 1.1.15 and I am
stuck at crucial phase in my project.
I have installed SurgeTelos on mote 0,1,2,3 and have mote 0 attached to USB
port as a basestation.
 
When I run java net.tinyos.surge.MainClass 125 after invoking serial
according to REAME file of this application.
Forwarder I get a sensor network topology screen with Mote 0 showing. But it
displays no data although serial forwarder shows increment in written data
packets.
Also when I press start root beacon it does not detect other motes in the
network and just packet written count in SF keeps on incrementing.
 
Also MultiHop does not occur. Motes other than base station don't seem to
transmit data at all.
Motes other than base station have Red and yellow LED blinking in 1-2
seconds.
When I enable debug option for java code I get see following messages:
 
SENDING BEACON: Message 
  [sourceaddr=0x7e]
  [originaddr=0x7e]
  [seqno=0x24b]
  [originseqno=0x0]
  [hopcount=0x1]
  [data=0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
0x0 0x0 ]
 
SENDING BEACON: Message 
  [sourceaddr=0x7e]
  [originaddr=0x7e]
  [seqno=0x24c]
  [originseqno=0x0]
  [hopcount=0x1]
  [data=0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
0x0 0x0 ]
 
SENDING BEACON: Message 
  [sourceaddr=0x7e]
  [originaddr=0x7e]
  [seqno=0x24d]
  [originseqno=0x0]
  [hopcount=0x1]
  [data=0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
0x0 0x0 ]
 
 
Any suggestions would greatly be appreciated

 

Regards,

Nikhil

 

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

[Tinyos-help] SurgeTelos Not Working Properly.....

2007-04-07 Thread nikhil
Hi All,
I am trying to run SurgeTelos on TelosB motes Using Tinyos 1.1.15.
I have installed SurgeTelos on mote 0,1,2,3 and have mote 0 attached to USB
port as a basestation.
 
When I run java net.tinyos.surge.MainClass 125 after invoking serial
Forwarder I get a sensor network topology screen with Mote 0 showing. But It
Displays no data. 
Although serial forwarder shows increment in Written data packets.
Also when I press start root beacon it does not detect other motes in the
network and just packet written count in SF keeps on incrementing.
 
Also MultiHop does not occur. Motes other than base station don't seem to
transmit data at all.
Motes other than base station have Red and yellow LED blinking in 1-2
seconds.
When I enable debug option for java code I get see following messages:
 
SENDING BEACON: Message 
  [sourceaddr=0x7e]
  [originaddr=0x7e]
  [seqno=0x24b]
  [originseqno=0x0]
  [hopcount=0x1]
  [data=0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
0x0 0x0 ]
 
SENDING BEACON: Message 
  [sourceaddr=0x7e]
  [originaddr=0x7e]
  [seqno=0x24c]
  [originseqno=0x0]
  [hopcount=0x1]
  [data=0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
0x0 0x0 ]
 
SENDING BEACON: Message 
  [sourceaddr=0x7e]
  [originaddr=0x7e]
  [seqno=0x24d]
  [originseqno=0x0]
  [hopcount=0x1]
  [data=0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
0x0 0x0 ]
 
 
Any suggestions would greatly be appreciated

Thanks in advance.

 

 

 

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

[Tinyos-help] SurgeTelos - Distinguish the type of packages

2007-03-27 Thread Elena Lamaza

Hello,

I am working with the SurgeTelos application and the code of MultihopLQI. It 
would need to be able to distinguish the type of packages that are sent at 
every moment (data or beacon) from the Send.send method of the CC2420RadioM.


Somebody could help me?

Thanks, Elena.

_
Un amor, una aventura, compañía para un viaje. Regístrate gratis en MSN Amor 
& Amistad. http://match.msn.es/match/mt.cfm?pg=channel&tcid=162349


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


[Tinyos-help] SurgeTelos doesn't receive messages

2006-11-26 Thread f f

Hi,
I try to install apps/SurgeTelos on my mote.
Before install,I change "DemoSensorC as Sensor" in Surge.nc into "VoltageC
as Sensor" to read its voltage data.
and run "make telosb install,0 bs1,5", "make telosb install,1 bs1,6",connect
node 0 to my USB port.
SerialForwarder seems run fine, It "PacketRead" counter is increasing.
and surge java application has two green nodes (0 and 1) with a green line
connecting them, but it doesn't receive any messages, the msg counter always
shows 0.
When I enable debug, console shows something like:

MESSAGE RECEIVED: Message 
 [sourceaddr=0x0]
 [originaddr=0x1]
 [seqno=0x21d]
 [hopcount=0x1d]
 [data=0x2 0x1 0x0 0x0 0x0 0x22 0xa 0x0 0x0 0xfd 0x1 0x0 0x0
MESSAGE RECEIVED: Message 
 [sourceaddr=0x0]
 [originaddr=0x0]
 [seqno=0x0]
 [hopcount=0x20]
 [data=0x0 0x0 0x0 0x0 0x0 0xa8 0xb 0x7e 0x0 0xfc 0x1 0x0 0x0
MESSAGE RECEIVED: Message 
 [sourceaddr=0x0]
 [originaddr=0x1]
 [seqno=0x21e]
 [hopcount=0x1e]
 [data=0x2 0x1 0x0 0x0 0x0 0x22 0xa 0x0 0x0 0xfe 0x1 0x0 0x0

Is there smething wrong that I can't make surge application work?
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] SurgeTelos and Bcast

2006-10-31 Thread Meiying Su
 
 
Dear all:
 I have some problems about ucb/SurgeTelos app (combined with the surge program in java) [Environment] Moteiv telosb (upgraded) 

 tinyos 1.152 motes with SurgeTelos program (node id = 1 and 2)
1mote with TOSBase (node id = 0) [Programs] tinyos1.x/contrib/ucb/apps/SurgeTelos
 tinyos1.x/tools/java/net/tinyos/surge (compiled with SURGE_PLATFORM=telosb) [Run]
 java net.tinyos.sf.SerialForwarder -comm serial at COM6
 :tmote java net.tinyos.surge.MainClass 0x7d [Problem] While I am trying to broadcast packets from PC to motes, the gateway mote
 (node id=0) does receive the message. However, it does not forward the message to the next hop. that is  the mote 1 and 2 cannot receive the message from pc,so i cannot change the Timer's frequnecy.

  [code] 

 void changeSampleRateButton_actionPerformed(java.awt.event.ActionEvent event) {
   /* MDW Disabling for now */ try {  // Send change sample rate command  sampleRate = tentativeSampleRate;BcastMsg bcm = new BcastMsg();  SurgeCmdMsg scm = new SurgeCmdMsg(bcm,
bcm.offset_data(0));   scm.set_type((short)2);  scm.set_args_newrate(sampleRate);  //mhm.set_parentaddr(0);  //mhm.set_originaddr(0);  //sm.set_hopcount((short)0);  bcast_seqno = (bcast_seqno + 1) % 256;
  bcm.set_seqno((short)bcast_seqno);    MainClass.getMoteIF().send(net.tinyos.message.MoteIF.TOS_BCAST_ADDR,scm);   if (DEBUG_MODE) System.err.println("SENDING: "+scm); } catch (java.lang.Exception
 e) { }  }
ps. i have add these  lines  to the  makefile
PFLAGS= -I%T/../contrib/ucb/tos/lib/MultiHopLQI -DSEND_QUEUE_SIZE=8 -DMHOP_LEDSPFLAGS += -I%T/../tos/lib/BroadcastPFLAGS += -I%T/../tos/lib/Queuecan you give me some comment?
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] SurgeTelos to M Tegtmeyer Sean

2006-10-12 Thread sousou sousou
M Sean   I am facing the same problem that you have mentionned in the message "SurgeTelos" in 18 october 2005  in using many Telos motes to perform a sensor Network. I'd like to know if you have found a solution for this problem     I would be grateful if you help me in this issue.   Thanks in advance for your response     
		
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Demandez à ceux qui savent sur Yahoo! Questions/Réponses.___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] SurgeTelos Message format

2006-10-09 Thread bhushan bhatt
Hi everyone,   I am using SurgeTelos with 2 motes one connected to computer via USB acting as base station ( Id 0) and another mote having mote id 1. I got the following message displayed on my computer screen.Received message:14 00 00 00 00 00 7E 00 11 7D 00 00 00 00 00 00 21 00 00 00 00 00 87 0B 7E 00 0A 02 00 00 Can anyone help me break this message up into the fields like Node address,Sequence no.etc.etc.    Any help is appreciated. Thanks,Bhushan 
		Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] SurgeTelos Doubts

2006-09-12 Thread Sumit Gupta
Hi,



I want to understand the Application SurgeTelos. I have some doubts if anyone can help me in clearing them:



1. In Surge.nc and SurgeM.nc (files of SurgeTelos NOT Surge), they have commented out the code related to 
interface Bcast. Can anyone tell me what is the significance of this interface and what would happen if I uncomment it?

2. What would happen if I uncomment the component QueuedSend (in Surge.nc)?


3. I am testing this application for routing purposes on tmotes without
sensors. What would happen if I plugin the motes (without sensors) in
network? I am not worrying about the sensors' data but just want to
make sure that mote keep sending some sort of data (even zero or null
values) to TOSBase as I just want to test how routing takes place. Will
it work that way?

4. I am bit confused about component DelugeC. What is it purpose in application? Is it taking any part in routing?

Any information is appreciated. I tried looking for things but got
little confused. I need to know mainly about Bcast interface. 
Please Reply.

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

[Tinyos-help] SurgeTelos Problem

2006-07-20 Thread sazure
Hi,all:
I have a problem of SurgeTelos program. Currently I got some tmote 
sky. I try to rewrite the sensor drivers by modifying the SurgeTelos program. 
But when I use Tosbase to listen the raw data. At very first, every is fine. 
But after maybe 6 packets, I got the 5 duplicated packets(the packets) at one 
time. Can anyone help me out? Thanks

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


Re: [Tinyos-help] SurgeTelos for TMote Sky Sensors

2006-05-26 Thread Joe Polastre

You need to increase the size of the data payload by setting TOSH_DATA_LENGTH.

-Joe

On 5/26/06, Luis Enrique Palafox Maestre <[EMAIL PROTECTED]> wrote:

Hi,

I've been modifying SurgeTelos to work with TMote Sky and its sensor suite.
What I've been trying to do is to include the readings of all sensors in a
single message, but in doing so, an error in the communication occurs (The red
led stays lit). However, if I remove one of the fields in my modified SurgeMsg
everything works fine.

Here's the whole SurgeMsg (doesn't work):

typedef struct SurgeMsg {
  uint16_t type;

  uint16_t humidity;
  uint16_t temperature;
  uint16_t tsr;
  uint16_t par;
  uint16_t itemp;
  uint16_t ivolt;
  uint16_t parentaddr;
  uint32_t seq_no;
} SurgeMsg;

and this works fine:

typedef struct SurgeMsg {
  uint16_t type;
  uint16_t humidity;
  uint16_t temperature;
  uint16_t tsr;
  uint16_t par;
  //uint16_t itemp;
  uint16_t ivolt;
  uint16_t parentaddr;
  uint32_t seq_no;
} SurgeMsg;

So my questions to any of you is: is there a way that I can include every sensor
 reading of the TMote Sky in a single message without modifying any of the
remaining fields (i.e. making the seq_no a 16 bit field)???

Regards,


Luis Palafox


___
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


[Tinyos-help] SurgeTelos for TMote Sky Sensors

2006-05-26 Thread Luis Enrique Palafox Maestre
Hi,

I've been modifying SurgeTelos to work with TMote Sky and its sensor suite.
What I've been trying to do is to include the readings of all sensors in a
single message, but in doing so, an error in the communication occurs (The red
led stays lit). However, if I remove one of the fields in my modified SurgeMsg
everything works fine.

Here's the whole SurgeMsg (doesn't work):

typedef struct SurgeMsg {
  uint16_t type;
  
  uint16_t humidity;
  uint16_t temperature;
  uint16_t tsr;
  uint16_t par;
  uint16_t itemp;
  uint16_t ivolt;
  uint16_t parentaddr;
  uint32_t seq_no;
} SurgeMsg;

and this works fine:

typedef struct SurgeMsg {
  uint16_t type;
  uint16_t humidity;
  uint16_t temperature;
  uint16_t tsr;
  uint16_t par;
  //uint16_t itemp;
  uint16_t ivolt;
  uint16_t parentaddr;
  uint32_t seq_no;
} SurgeMsg;

So my questions to any of you is: is there a way that I can include every sensor
 reading of the TMote Sky in a single message without modifying any of the
remaining fields (i.e. making the seq_no a 16 bit field)???

Regards,


Luis Palafox


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


[Tinyos-help] SurgeTelos

2006-04-27 Thread Fatima Zohra
Hi All,
Has anyone sucessfully run SurgeTelos on TelosB motes Using Tinyos 1.1.11.
 
When I run java net.tinyos.surge.MainClass 125 after invoking serial forwarder I get a sensor network topology screen with Mote 0 showing. But It displays no data. Although serial forwarder shows increment in data packets. Also MultiHop does not occur. Motes other than base station don't seem to transmit data at all. The Tx, Rx LEDS dont glow at all.

 
Please Help! I really need to complete my project. Any suggestions would greatly be appreciated
 
Thanks in Advance,
Fatima 
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] SurgeTelos apps and surge/JAVA program

2005-12-26 Thread 姜瑞豪 Steve Chiang



I had traced the surge program for 
many times.
The root beacon has been implemented as the 
following.
But while I press the button and trigger it to send 
packet.
The serialforward(the java program) just 
stop to receive any message from those sensors. (I can still send other 
SurgeCmdMsg or MultihopMsg at this moment)
On the other hand, since I can send message instead 
of using the Thread.  I doubt it is the problem of thread 
implementation.
Have anyone encountered this problem??  Please 
give some comments.
 
 
*** Code in Surge***
    class rootBeaconer implements 
Runnable {    private boolean stopped = 
false;    private long delay_ms = 
DEFAULT_BEACON_RATE;    private MultihopMsg 
beacon;    private short cur_seqno = 0;
 
    rootBeaconer() 
{    beacon = new MultihopMsg(); 
//SurgeMsg();    
beacon.set_originaddr(BEACON_BASE_ADDRESS);    
beacon.set_sourceaddr(BEACON_BASE_ADDRESS);    
beacon.set_hopcount((short)1);    }
 
    public void run() 
{    stopped = 
false;    while (!stopped) 
{    try 
{    
beacon.set_seqno(cur_seqno++);    
MainClass.getMoteIF().send(net.tinyos.message.MoteIF.TOS_BCAST_ADDR, beacon);    
if (DEBUG_MODE) System.err.println("SENDING BEACON: 
"+beacon);    
//bcast_seqno = (bcast_seqno + 1) % 
256;    
//beacon.set_seqno((short)bcast_seqno);    
Thread.currentThread().sleep(delay_ms);    
} catch (Exception e) 
{    // 
Ignore    
}    
}    return;    
}
 
    void setDelay(long delay) 
{    delay_ms = 
delay;    }
*** end of code ***

  - Original Message - 
  From: 
  Chalermphol Thammapalerd 
  To: 姜瑞豪 Steve 
  Chiang Cc: tinyos-help 
  Sent: Friday, December 23, 2005 12:35 
  PM
  Subject: Re: [Tinyos-help] SurgeTelos apps 
  and surge/JAVA program
  
  Hi Chiang,
  Maybe there's no implementation for the beacon method in java 
  application,
  Take a look at the code.
   
  Good Luck,
  Chalermphol 
  On 12/22/05, 姜瑞豪 Steve 
  Chiang <[EMAIL PROTECTED]> 
  wrote: 
  
Dear all:
I have some problems about ucb/SurgeTelos app (combined 
with the surge program in java)
[Environment]
Moteiv tmote sky Tools CD v1.11 (upgraded)
2 tmote with SurgeTelos program (node id = 0 and 
3)
[Programs]
tinyos1.x/contrib/ucb/apps/SurgeTelos
tinyos1.x/tools/java/net/tinyos/surge (compiled with 
SURGE_PLATFORM=telos)
[Run]
java net.tinyos.sf.SerialForwarder -comm 
[EMAIL PROTECTED] :tmotejava net.tinyos.surge.MainClass 0x6e
 [Problem1] ***

While I start the application, I could see 2 node linked 
together and they sent Multihop message via serial port to PC.
But when I tried to "Start root beacon" in the java (surge) 
program).
The serial forwarder just "write messages" (no "read" messages is 
coming from those motes. Also, the tx Leds of the gateway mote is not 
shinning.)
It is strange that those motes are still sending multihop 
messages. But the serial forward just stop forwarding them to PC.
What happened to the "root beacon"?? in surge
 
MESSAGE RECEIVED: Message   
[sourceaddr=0x0]  [originaddr=0x0]  [seqno=0x0]  
[originseqno=0x0]  [hopcount=0x0]  [data="" 0x0 0x0 0x0 
0x7e 0x0 0x3 0x0 0x0 0x0SENDING BEACON: Message  
  [sourceaddr=0x7e]  [originaddr=0x7e]  
[seqno=0x0]  [originseqno=0x0]  [hopcount=0x1]  
[data="" 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 
0x00x0 ]*  serial forward no longer received 
messages from motes.. 
 
Please help
 
 
 
 ___Tinyos-help 
mailing listTinyos-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


Re: [Tinyos-help] SurgeTelos apps and surge/JAVA program

2005-12-22 Thread Chalermphol Thammapalerd
Hi Chiang,
Maybe there's no implementation for the beacon method in java application,
Take a look at the code.
 
Good Luck,
Chalermphol 
On 12/22/05, 姜瑞豪 Steve Chiang <[EMAIL PROTECTED]> wrote:

Dear all:
I have some problems about ucb/SurgeTelos app (combined with the surge program in java)
[Environment]
Moteiv tmote sky Tools CD v1.11 (upgraded)
2 tmote with SurgeTelos program (node id = 0 and 3)
[Programs]
tinyos1.x/contrib/ucb/apps/SurgeTelos
tinyos1.x/tools/java/net/tinyos/surge (compiled with SURGE_PLATFORM=telos)
[Run]
java net.tinyos.sf.SerialForwarder -comm [EMAIL PROTECTED] :tmotejava net.tinyos.surge.MainClass 0x6e
 [Problem1] ***

While I start the application, I could see 2 node linked together and they sent Multihop message via serial port to PC.
But when I tried to "Start root beacon" in the java (surge) program).
The serial forwarder just "write messages" (no "read" messages is coming from those motes. Also, the tx Leds of the gateway mote is not shinning.)
It is strange that those motes are still sending multihop messages. But the serial forward just stop forwarding them to PC.
What happened to the "root beacon"?? in surge
 
MESSAGE RECEIVED: Message   [sourceaddr=0x0]  [originaddr=0x0]  [seqno=0x0]  [originseqno=0x0]  [hopcount=0x0]  [data="" 0x0 0x0 0x0 0x7e 0x0 0x3 0x0 0x0 0x0SENDING BEACON: Message 
  [sourceaddr=0x7e]  [originaddr=0x7e]  [seqno=0x0]  [originseqno=0x0]  [hopcount=0x1]  [data="" 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x00x0 ]*  serial forward no longer received messages from motes.. 

 
Please help
 
 
 
 ___Tinyos-help mailing listTinyos-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


[Tinyos-help] SurgeTelos apps and surge/JAVA program

2005-12-21 Thread 姜瑞豪 Steve Chiang



Dear all:
I have some problems about ucb/SurgeTelos app (combined with 
the surge program in java)
[Environment]
Moteiv tmote sky Tools CD v1.11 (upgraded)
2 tmote with SurgeTelos program (node id = 0 and 
3)
[Programs]
tinyos1.x/contrib/ucb/apps/SurgeTelos
tinyos1.x/tools/java/net/tinyos/surge (compiled with 
SURGE_PLATFORM=telos)
[Run]
java net.tinyos.sf.SerialForwarder -comm 
[EMAIL PROTECTED] :tmotejava net.tinyos.surge.MainClass 0x6e
 [Problem1] ***

While I start the application, I could see 2 node linked 
together and they sent Multihop message via serial port to PC.
But when I tried to "Start root beacon" in the java (surge) program).
The serial forwarder just "write messages" (no "read" messages is coming 
from those motes. Also, the tx Leds of the gateway mote is not shinning.)
It is strange that those motes are still sending multihop messages. 
But the serial forward just stop forwarding them to PC.
What happened to the "root beacon"?? in surge
 
MESSAGE RECEIVED: Message   
[sourceaddr=0x0]  [originaddr=0x0]  [seqno=0x0]  
[originseqno=0x0]  [hopcount=0x0]  [data="" 0x0 0x0 0x0 0x7e 
0x0 0x3 0x0 0x0 0x0SENDING BEACON: Message   
[sourceaddr=0x7e]  [originaddr=0x7e]  [seqno=0x0]  
[originseqno=0x0]  [hopcount=0x1]  [data="" 0x0 0x0 0x0 0x0 
0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x00x0 
]*  serial forward no longer received messages from 
motes.. 
 
Please help
 
 
 
 
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] SurgeTelos on tmote

2005-11-03 Thread Tegtmeyer, Sean
Hi,
I'm having trouble with trying to run SurgeTelos on tmote.  I program
SurgeTelos onto a tmote with "make tmote install, 0", then i run serial
forwarder and the Listen application to see if any bytes come in.  But
nothing comes in.  Then i run the java Surge application, and i have to hit
the "Start Root Beacon" button in order to get bytes to start coming in.
Then i hit the debug checkbox and find a byte stream as follows:

MESSAGE RECEIVED: Message (MultihopMsg)
  [sourceaddr=0x1]
  [originaddr=0x1]
  [seqno=0x286]
  [hopcount=0xb0]
  [data=0x3 0x1 0x0 0x0 0x0 0xbf 0xa 0x7e 0x0 0x71 0x15 0x0 0x0
SENDING BEACON: Message (MultihopMsg)
  [sourceaddr=0x7e]
  [originaddr=0x7e]
  [seqno=0x250c]
  [hopcount=0x1]
  [data=0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
0x0 0x0 0x0 0x0 0x0 ]

I don't understand why the Message Received source addr is 0x1 and not 0x0,
because the mote attached to the PC has addr 0.  Also, I don't see messages
from other tmotes (with different addresses) when they are added to the
network.  So can someone explain these byte streams or explain how i can get
the SurgeTelos app to work correctly on tmote?  Any help is appreciated.
Thanks.

Sean





Sean Tegtmeyer
Software Engineer
[EMAIL PROTECTED]

(559) 292- x 266



The information in this email and subsequent attachments may contain
confidential information that is intended solely for the attention and use
of the named addressee(s).  This message or any part thereof must not be
disclosed, copied, distributed or retained by any person without
authorization from the addressee.


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


[Tinyos-help] SurgeTelos and TOSSIM

2005-11-01 Thread Jeff Thorn
I cannot seem to get /beta/TOSSIM-CC2420 to work properly with SurgeTelos.
If I run:

make pc sim,telos

I get TONS of errors. Below is a small example of the build errors I get. Is
there something else I need to do? Does anyone know how to get SurgeTelos to
work with TOSSIM?

Thanks, 
Jeff

Sample build errors:

$ cd apps/SurgeTelos
$ make pc sim,telos
mkdir -p build/pc
compiling Surge to a pc binary
ncc -o build/pc/main.exe -g -O0 -I%T/../contrib/ucb/tos/lib/MultiHopLQI
-DSEND_QUEUE_SIZE=8 -DMHOP_LEDS -pthread -fnesc-nido-tosnodes=1000 -
fnesc-simulate -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=pc
-fnesc-cfile=build/pc/app.c -board=micasb -I%T/lib/Deluge -I%T/l
ib/Flash -I%T/lib/Flash/STM25P -DDEFAULT_EEPROM_SIZE=0x10
-DIDENT_PROGRAM_NAME=\"Surge\" -DIDENT_USER_ID=\"jthorn\"
-DIDENT_HOSTNAME=\"L
ATITUDE-D800\" -DIDENT_USER_HASH=0xdb10e625L -DIDENT_UNIX_TIME=0x4367d3ddL
-DIDENT_UID_HASH=0xbf170c33L -I/opt/tinyos-1.x/tos/../beta/TOSSIM
-CC2420 -I/opt/tinyos-1.x/tos/lib/CC2420Radio
-I/opt/tinyos-1.x/tos/../beta/TOSSIM-CC2420/telosa Surge.nc -lm
C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420RadioM.nc: In
function `flushRXFIFO':
C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420RadioM.nc:120:
`CC2420_RXFIFO' undeclared (first use in this function)
C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420RadioM.nc:120:
(Each undeclared identifier is reported only once
C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420RadioM.nc:120: for
each function it appears in.)
C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420RadioM.nc:121:
`CC2420_SFLUSHRX' undeclared (first use in this function)
C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420RadioM.nc: In
function `sendPacket':
C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420RadioM.nc:291:
`CC2420_STXONCCA' undeclared (first use in this function)
C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420RadioM.nc:292:
`CC2420_SNOP' undeclared (first use in this function)
C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420RadioM.nc:293:
`CC2420_TX_ACTIVE' undeclared (first use in this function)
C:/tinyos/cygwin/opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420RadioM.nc:300:
`CC2420_SYMBOL_UNIT' undeclared (first use in this function)
etc.
etc.

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


[Tinyos-help] SurgeTelos

2005-10-25 Thread Tim Porter



I currently have Surge Telos running on my telosb 
motes.  Has anyone modified SurgeTelos so that it displays one (or more) of 
the open 12-bit A-D inputs?
 
Timothy L. PorterProfessorDept. of Physics 
and AstronomyNorthern Arizona UniversityFlagstaff, AZ 86011(928) 
523-2540[EMAIL PROTECTED]
___
Tinyos-help mailing list
[EMAIL PROTECTED]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help