Re: [Tinyos-help] TestSerial compilation problem in Ubuntu 11.10

2012-04-01 Thread Siddharth Dagar
Have you been able to find a solution to your problem?

This issue is resolved if you use
-target=telosb (or any other platform you are using)
instead of -target=null

It seems to be an issue with mig. Changing the target resolves the issue of
parsing TestSerial.h.
But the real problem starts after that. The .java file that mig is
generating is throwing up a lot of errors when the java compiler tries to
compile it.

Some of the errors:
javac -target 1.4 -source 1.4 *.java
TestSerialMsg.java:88: unclosed string literal
s += "  [nx_struct test_serial_msg 2 137
 ^
TestSerialMsg.java:89: illegal start of expression
=0x"+Long.toHexString(get_nx_struct test_serial_msg 2 137
^
TestSerialMsg.java:89: hexadecimal numbers must contain at least one
hexadecimal digit
=0x"+Long.toHexString(get_nx_struct test_serial_msg 2 137
 ^
TestSerialMsg.java:89: unclosed string literal
=0x"+Long.toHexString(get_nx_struct test_serial_msg 2 137

I think it's still a problem with mig. It's not generating the right .java
files.
Does anybody have any idea about this?

On Mon, Mar 12, 2012 at 5:53 PM, Prasanth P  wrote:

> I am trying Tinyos 2.1.0 in Ubuntu 11.10.
> Seems some problem in compiling TestSerial application in
> /apps/test/TestSerial/
>
> This is the error am getting while compiling for Telosb
>
> make telosb
>
> mkdir -p build/telosb
> mig java -target=null -I/opt/tinyos-2.1.0/tos/lib/T2Hack
> -DIDENT_APPNAME=\"TestSerialAppC\" -DIDENT_USERNAME=\"root\"
> -DIDENT_HOSTNAME=\"ubuntu\" -DIDENT_USERHASH=0xa3473ba6L
> -DIDENT_TIMESTAMP=0x4f5de953L -DIDENT_UIDHASH=0x76093f42L
> -java-classname=TestSerialMsg TestSerial.h test_serial_msg -o
> TestSerialMsg.java
> two source files specified (PLATFORM_NULL and
> IDENT_APPNAME="TestSerialAppC")
> failed to parse message file TestSerial.h
> make: *** [TestSerialMsg.java] Error 1
>
> Plz reply if somebody have any idea on this.
>
>
> --
> Regards
> Prasanth.P
>
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Thanks,
Siddharth Dagar
IIT Kharagpur
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Install problem

2012-04-01 Thread Manar Alaskar


I faced the same problem when i was installing tinyos , then i fix it by 
removing the same version that you use it (tinyos-2.1.1) and replace it with 
version 2.1.0by using the repository and commands inside this 
website:http://docs.tinyos.net/tinywiki/index.php?title=Getting_started_using_Ubuntu_9.10_and_TelosB_motes&redirect=no#Oscilloscope_Application:_BaseStation_.26_Sensor_Testing
hope it work fine with you.
From: abelianchamel...@hotmail.com
To: tinyos-help@millennium.berkeley.edu
Date: Sun, 1 Apr 2012 11:52:04 -0400
Subject: [Tinyos-help] Install problem







Hi,

I've been banging my head over this for the past few days, any help would be 
appreciated. My situation:

1. I've installed using deb http://tinyos.stanford.edu/tinyos/dists/ubuntu/ 
lucid main
2. The ``Simple'' tutorial example compiles fine.
3. The ``Blink'' tutorial fails with the following first error:

/opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:227: syntax 
error before `;'

(Same error as reported here: 
https://www.millennium.berkeley.edu/pipermail/tinyos-help/2010-October/048066.html)

Now, I know from reading the previous postings that this is likely a problem 
with msp430 and one post suggests finding msp430-legacy. One post directs me 
to: 

http://tinyos.stanford.edu/tinyos/dists/ubuntu.old/

but, so far as I can tell, says nothing about how to actually fix the problem. 
A follow up post 
(http://old.nabble.com/Getting-MSP430-error-in-tinyos-2.1.1-td32334121.html) 
promises to fix the problem but directs me to an outdated link at 
http://tinyprod.net/debian-dev/ 

I finally ended up at this site:

http://tinyprod.net/razvanm/debian/

But if I run those commands, it erases all of my previous tinyOS installation, 
replaces it with a new one (I think) and then nothing works. I can't even find 
a way to make the Simple tutorial as TinyOS cannot be found. I'm stuck. I know 
at least a few people have encountered this problem - can someone tell me 
step-by-step how it can be fixed?

Thanks in advance,
-Max

  

___
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] Need help with Tinyos-1.x TOSSIM

2012-04-01 Thread Michael Schippling
It looks like you have put something like this in apit.h:

#include "mymote.h"

If that's the case, mymote.h should be found if it is in
the source or include search path. The current directory
(.../apps/testingtinysec) should work.

Another way to try it is to find where apit.h is included
in your application source code and put a mymote.h include
on the line before it. Notice that, for some reason I haven't
fathomed, in NESCC usage out side of the module{} block is:

include mymote

without the "s",".h", and ""'s ...

If that doesn't help we'll need to see your source files
and makefile to try to figure it out.

Also...you don't need to screen grab. You can "redirect" text
output in the bash shell into a file like this:

make pc >& error.txt

MS

shruti wrote:
>  
> 
> Hello all
> 
> Sir I am working on cygwin tinyos and I am nt able to run make pc 
> command properly.
> 
> Can u help me please asap
> 
> I want to know how should I include my “mote.h”header file in nesc code..
> 
> 
> 
> 
> ___
> 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] Install problem

2012-04-01 Thread Morgan Reeves

Hi,

I've been banging my head over this for the past few days, any help would be 
appreciated. My situation:

1. I've installed using deb http://tinyos.stanford.edu/tinyos/dists/ubuntu/ 
lucid main
2. The ``Simple'' tutorial example compiles fine.
3. The ``Blink'' tutorial fails with the following first error:

/opt/tinyos-2.1.1/tos/chips/msp430/pins/HplMsp430GeneralIOC.nc:227: syntax 
error before `;'

(Same error as reported here: 
https://www.millennium.berkeley.edu/pipermail/tinyos-help/2010-October/048066.html)

Now, I know from reading the previous postings that this is likely a problem 
with msp430 and one post suggests finding msp430-legacy. One post directs me 
to: 

http://tinyos.stanford.edu/tinyos/dists/ubuntu.old/

but, so far as I can tell, says nothing about how to actually fix the problem. 
A follow up post 
(http://old.nabble.com/Getting-MSP430-error-in-tinyos-2.1.1-td32334121.html) 
promises to fix the problem but directs me to an outdated link at 
http://tinyprod.net/debian-dev/ 

I finally ended up at this site:

http://tinyprod.net/razvanm/debian/

But if I run those commands, it erases all of my previous tinyOS installation, 
replaces it with a new one (I think) and then nothing works. I can't even find 
a way to make the Simple tutorial as TinyOS cannot be found. I'm stuck. I know 
at least a few people have encountered this problem - can someone tell me 
step-by-step how it can be fixed?

Thanks in advance,
-Max

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

Re: [Tinyos-help] Serial port cannot be opened

2012-04-01 Thread Eric Decker
try looking at the port permissions?

see if the port exists.

start there.

On Fri, Mar 30, 2012 at 1:30 AM, nithya r  wrote:

>  Hello,
>
> I am currently working with  MDA100CB sensor,
> with low power gateway MIB520CB and I'm trying to use MoteView to
> monitor the motes. I didn’t get any sensor data in Moteview.
>
> The Serve Message is:
> XSERVE 2.0.E: $Id: xserve.c,v 1.8.2.3 2007/02/02 17:45:01 rkapur Exp $
> Warning: Converting Windows COM26 device to Cygwin device.
> Using params: [db parsed] [xml parsed] [server port=9001]
> Opening serial device: /dev/ttyS25 @ 57600
> [2012/03/30 13:48:15] xserve: Couldn't open serial port /dev/ttyS25:57600
> wait:No error
> XMonitor:XServ failure
> Evaluating process exit...
> Exit status-Application Level Exit. No restart requested.
> Signal Status-Normal
> Process aborted: xserve2/bin/xserve.exe
> [MV] XServe not running...
>
> Error message :
> [MV : 3/30/2012 1:48:15 PM]
> System.Net.Sockets.SocketException: No connection could be made because
> the target machine actively refused it
> at System.Net.Sockets.SocketConnect[EndPoint remoteEP]
> at XBow.lib.XSocketBase.Open[String host,Int32 port]
>
> Please give some suggestions for the problem
>
> Thank you
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Eric B. Decker
Senior (over 50 :-) Researcher
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] TOSSIM compile error

2012-04-01 Thread Bíró , András
On Fri, Mar 30, 2012 at 8:09 PM, Javier M Mora  wrote:
> On Fri, 30 Mar 2012 14:16:03 -0400
> Newlyn Erratt  wrote:
>
>> I am currently attempting to setup TinyOS on a new machine on OpenSUSE 12.1 
>> and am running into a minor issue.  Compilation works fine for both Micaz 
>> and telosb but when I compile for TOSSIM I get the following error.
>>
>> Two source files specified (PLATFORM_MICAZ and BOARD_MICASB)
>>
>> I have seen a couple of previous emails regarding this but there never 
>> seemed to be a good solution. I am using the rpm installation. Does anyone 
>> have some idea of what may be happening.
>>
>
> The problem is related with gcc 4.6. The interface changed and ncc
> doesn't like at all.
>
> There is a patch for ncc to solve this but easiest solution is
> downgrade gcc to 4.5.

Actually, nesc 1.3.3. has this patch. There's a prebuilt version for
cygwin (http://tinyos.stanford.edu/tinyos/dists/cygwin/) and
debian/ubuntu: (http://tinyos.stanford.edu/tinyos/dists/ubuntu/)

Andris

>
> In debian, my distro, I have installed 4.5 and 4.6 at same time and I changed
> gcc symlink to gcc-4.5.
>
> Now works.
>
> --
> Javier M Mora 
> ___
> 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] Unknown target micaz Known targets for TinyOS directory $(TOSROOT)/tos and the specified include directories are: none. make: *** [sim-exe] Error 2

2012-04-01 Thread Bíró , András
Hi,

TOSROOT should be set before any other variable which uses it.

Andris

On Thu, Mar 29, 2012 at 8:29 AM, 柴晓萌  wrote:
> I'm a Chinese student,and I'm sorry for my English speaking. I'm new in
> TinyOS.I have a problem when I run "make micaz sim", I'm using cygwin under
> Win7.I get the following:
> mkdir -p simbuild/micaz
>   placing object files in simbuild/micaz
>   writing XML schema to app.xml
>   compiling BlinkAppC to object file sim.o
> ncc -c -DUSE_DL_IMPORT -fpic  -o simbuild/micaz/sim.o -g -O0 -tossim
> -fnesc-nido
> -tosnodes=1000 -fnesc-simulate -fnesc-nido-motenumber=sim_node\(\)   -Wall
> -Wsha
> dow -Wnesc-all -target=micaz -fnesc-cfile=simbuild/micaz/app.c -board=micasb
> -DD
> EFINED_TOS_AM_GROUP=0x22 -finline-limit=10 -DIDENT_APPNAME=\"BlinkAppC\"
> -DI
> DENT_USERNAME=\"cxm\" -DIDENT_HOSTNAME=\"cxm-PC\"
> -DIDENT_USERHASH=0x8e709959L -
> DIDENT_TIMESTAMP=0x4f7407dcL -DIDENT_UIDHASH=0x370bd314L -Wno-nesc-data-race
> Bli
> nkAppC.nc   -fnesc-dump=components -fnesc-dump=variables
> -fnesc-dump=constants -
> fnesc-dump=typedefs -fnesc-dump=interfacedefs -fnesc-dump=tags
> -fnesc-dumpfile=a
> pp.xml
> Unknown target micaz
> Known targets for TinyOS directory $(TOSROOT)/tos
> and the specified include directories are:
> none.
> make: *** [sim-exe] Error 2
>
> My variable definitions are:
>
> CLASSPATH=.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;.$TOSROOT/support/sdk/java/tinyos.jar;.
>
> MAKERULES=$(TOSROOT)/support/make/Makerules
>
> PATH=/opt/msp430/bin:/opt/jflashmm:$PATH;C:\PROGRA~1\ATT\Graphviz\bin;C:\PROGRA~1\ATT\Graphviz\bin\tools;%JAVA_HOME%\bin;;%JAVA_HOME%\jre\bin;;C:\PROGRA~1\ATT\Graphviz\bin;C:\PROGRA~1\ATT\Graphviz\bin\tools;C:\PROGRA~1\ATT\Graphviz\bin;C:\PROGRA~1\ATT\Graphviz\bin\tools
>
> TOSDIR=$(TOSROOT)/tos
>
> TOSROOT=/opt/tinyos-2.x
>
> I search the problem on the Internet and find some people having the same
> problem.But there isn't any solution can solve the problem.
>
> I need some 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] Need help with Tinyos-1.x TOSSIM

2012-04-01 Thread shruti


 

Hello all

Sir I am working on cygwin tinyos and I am nt able to run make pc command
properly.

Can u help me please asap

I want to know how should I include my "mote.h"header file in nesc code..

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

[Tinyos-help] Unknown target micaz Known targets for TinyOS directory $(TOSROOT)/tos and the specified include directories are: none. make: *** [sim-exe] Error 2

2012-04-01 Thread 柴晓萌
I'm a Chinese student,and I'm sorry for my English speaking. I'm new in
TinyOS.I have a problem when I run "make micaz sim", I'm using cygwin under
Win7.I get the following:
mkdir -p simbuild/micaz
  placing object files in simbuild/micaz
  writing XML schema to app.xml
  compiling BlinkAppC to object file sim.o
ncc -c -DUSE_DL_IMPORT -fpic  -o simbuild/micaz/sim.o -g -O0 -tossim
-fnesc-nido
-tosnodes=1000 -fnesc-simulate -fnesc-nido-motenumber=sim_node\(\)   -Wall
-Wsha
dow -Wnesc-all -target=micaz -fnesc-cfile=simbuild/micaz/app.c
-board=micasb -DD
EFINED_TOS_AM_GROUP=0x22 -finline-limit=10
-DIDENT_APPNAME=\"BlinkAppC\" -DI
DENT_USERNAME=\"cxm\" -DIDENT_HOSTNAME=\"cxm-PC\"
-DIDENT_USERHASH=0x8e709959L -
DIDENT_TIMESTAMP=0x4f7407dcL -DIDENT_UIDHASH=0x370bd314L
-Wno-nesc-data-race Bli
nkAppC.nc   -fnesc-dump=components -fnesc-dump=variables
-fnesc-dump=constants -
fnesc-dump=typedefs -fnesc-dump=interfacedefs -fnesc-dump=tags
-fnesc-dumpfile=a
pp.xml
Unknown target micaz
Known targets for TinyOS directory $(TOSROOT)/tos
and the specified include directories are:
none.
make: *** [sim-exe] Error 2

My variable definitions are:

CLASSPATH=.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;.$TOSROOT/support/sdk/java/tinyos.jar;.

MAKERULES=$(TOSROOT)/support/make/Makerules

PATH=/opt/msp430/bin:/opt/jflashmm:$PATH;C:\PROGRA~1\ATT\Graphviz\bin;C:\PROGRA~1\ATT\Graphviz\bin\tools;%JAVA_HOME%\bin;;%JAVA_HOME%\jre\bin;;C:\PROGRA~1\ATT\Graphviz\bin;C:\PROGRA~1\ATT\Graphviz\bin\tools;C:\PROGRA~1\ATT\Graphviz\bin;C:\PROGRA~1\ATT\Graphviz\bin\tools

TOSDIR=$(TOSROOT)/tos

TOSROOT=/opt/tinyos-2.x

I search the problem on the Internet and find some people having the same
problem.But there isn't any solution can solve the problem.

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

Re: [Tinyos-help] TOSSIM compile error

2012-04-01 Thread Javier M Mora
On Fri, 30 Mar 2012 14:16:03 -0400
Newlyn Erratt  wrote:

> I am currently attempting to setup TinyOS on a new machine on OpenSUSE 12.1 
> and am running into a minor issue.  Compilation works fine for both Micaz and 
> telosb but when I compile for TOSSIM I get the following error. 
> 
> Two source files specified (PLATFORM_MICAZ and BOARD_MICASB)
> 
> I have seen a couple of previous emails regarding this but there never seemed 
> to be a good solution. I am using the rpm installation. Does anyone have some 
> idea of what may be happening.
> 

The problem is related with gcc 4.6. The interface changed and ncc
doesn't like at all.

There is a patch for ncc to solve this but easiest solution is
downgrade gcc to 4.5.

In debian, my distro, I have installed 4.5 and 4.6 at same time and I changed
gcc symlink to gcc-4.5. 

Now works.

-- 
Javier M Mora 
___
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 module

2012-04-01 Thread Jared Fisher
Thank you very much. It did work. 

I realized that there were some wiring errors, but the main problem could have 
been because I was in the folder
CFLAGS += -I/opt/tinyos-2.1.0/apps/Capstone/Handheld/Controller
and when I switched to 
CFLAGS += -I/opt/tinyos-2.x/Connection
In the make file, it worked.

Much Thanks,
JF


From: Xiaoyang Zhong 
Sent: Friday, March 30, 2012 10:09 AM
To: Jared Fisher 
Subject: Re: [Tinyos-help] Cannot find module

Hi,

Every file is attached in the last email, you can check the makefile there. Do 
you get the same error every time? Have you tried the simplified program I 
described in the last email?

Xiaoyang


On Fri, Mar 30, 2012 at 12:58 AM, Jared Fisher  wrote:

  Hey, Unfortunately this isn’t working. Did you write something extra in the 
makefile?

  JF

  From: Xiaoyang Zhong 
  Sent: Thursday, March 29, 2012 10:07 PM
  To: Jared Fisher 
  Subject: Re: [Tinyos-help] Cannot find module

  Hi, I tested your component in a simple way, and it works.

  Attached is the file that I tested. There are two folders, one is 
"connection", the other is "controller". I just put them in /tinyos-2.x/. 

  Maybe you can try this first. But if this does not work, then I do not know 
why. Good luck!

  Xiaoyang
   

  On Fri, Mar 30, 2012 at 9:06 AM, Jared Fisher  wrote:

No luck. 

In my file. is that the correct way to wire the components as well?

JF

From: Xiaoyang Zhong 
Sent: Thursday, March 29, 2012 8:42 PM
To: Jared Fisher 
Subject: Re: [Tinyos-help] Cannot find module

You may use () to brace TOSROOT. Try

CFLAGS += -I$(TOSROOT)/app/Capstone/Handheld

Xiaoyang

 
On Fri, Mar 30, 2012 at 8:32 AM, Jared Fisher  wrote:

  Hmm, this doesn’t seem to work.

  I added CFLAGS += -I$TOSROOT/app/Capstone/Handheld

  JF

  From: Xiaoyang Zhong 
  Sent: Thursday, March 29, 2012 3:14 PM
  To: Jared Fisher 
  Cc: Tinyos-help 
  Subject: Re: [Tinyos-help] Cannot find module

  Try to add the direcory path of ConnectionC in your Makefile.

  CFLAGS += -I$(TOSDIR)/path

  replace 'path' with the actual path of ConnectionC in tinyos-2.1.1/tos/.

  On Tue, Mar 27, 2012 at 6:20 PM, Jared Fisher  
wrote:

Hello,

I am getting an error saying that it cannot find a file. I am unsure if 
this is the correct way to go also.

What I have so far is a ConnectionC module, Connection interface, a 
ControllerAppC and ControllerC. If you think in object oriented terms, I am 
trying to create a class ConnectionC, which is used in ControllerC.

What I have so far is (I removed a bunch of irrelevant code)

ControllerAppC.nc
---Code---
configuration ControllerAppC {}

implementation
{
components MainC;
components LedsC;
components ControllerC as App;
components ConnectionC as conn;
...

App.Boot -> MainC;
App.Leds -> LedsC;
//Should something be here to wire ConnectionC?
}

ControllerC.nc
---Code---
module ControllerC
{
uses interface Boot;
uses interface Leds;
uses interface Connection as conn;
}
implementation {...}

Connection.nc
---Code---
interface Connection
{
command error_t closeConnection();
command error_t openConnection(uint16_t id);
}

ConnectionC.nc
---Code---
module ConnectionC
{
provides interface Connection;
...
}

implementation
{
command error_t Connection.openConnection(uint16_t id){...}
command error_t Connection.closeConnection(){...}
...
}

I am getting this error when I compile
In component `ControllerAppC.AMSenderC.SenderC.AMQueueEntryP':
/opt/tinyos-2.1.1/tos/system/AMQueueEntryP.nc: In function 
`Send.sendDone':

/opt/tinyos-2.1.1/tos/system/AMQueueEntryP.nc(ControllerAppC.AMSenderC.SenderC.AMQueueEntryP):58:
 AMSend.sendDone not connected
In component `ControllerC':
ControllerC.nc: In function `Receive.receive':
ControllerC.nc:33: conn.openConnection not connected
make: *** [exe0] Error 1

and if I add
App.conn –> ConnectionC; where I put a comment in the AppC file, I get.
In component `ControllerAppC':
ControllerAppC.nc:23: cannot find `ConnectionC'
make: *** [exe0] Error 1

Is there a way to solve this?
Regards,
JF

___
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@millenniu

[Tinyos-help] Serial port cannot be opened

2012-04-01 Thread nithya r
 Hello,

I am currently working with  MDA100CB sensor,
with low power gateway MIB520CB and I'm trying to use MoteView to
monitor the motes. I didn’t get any sensor data in Moteview.

The Serve Message is:
XSERVE 2.0.E: $Id: xserve.c,v 1.8.2.3 2007/02/02 17:45:01 rkapur Exp $
Warning: Converting Windows COM26 device to Cygwin device.
Using params: [db parsed] [xml parsed] [server port=9001]
Opening serial device: /dev/ttyS25 @ 57600
[2012/03/30 13:48:15] xserve: Couldn't open serial port /dev/ttyS25:57600
wait:No error
XMonitor:XServ failure
Evaluating process exit...
Exit status-Application Level Exit. No restart requested.
Signal Status-Normal
Process aborted: xserve2/bin/xserve.exe
[MV] XServe not running...

Error message :
[MV : 3/30/2012 1:48:15 PM]
System.Net.Sockets.SocketException: No connection could be made because the
target machine actively refused it
at System.Net.Sockets.SocketConnect[EndPoint remoteEP]
at XBow.lib.XSocketBase.Open[String host,Int32 port]

Please give some suggestions for the problem

Thank you
___
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 module

2012-04-01 Thread Jared Fisher
Hmm, this doesn’t seem to work.

I added CFLAGS += -I$TOSROOT/app/Capstone/Handheld

JF

From: Xiaoyang Zhong 
Sent: Thursday, March 29, 2012 3:14 PM
To: Jared Fisher 
Cc: Tinyos-help 
Subject: Re: [Tinyos-help] Cannot find module

Try to add the direcory path of ConnectionC in your Makefile.

CFLAGS += -I$(TOSDIR)/path

replace 'path' with the actual path of ConnectionC in tinyos-2.1.1/tos/.

On Tue, Mar 27, 2012 at 6:20 PM, Jared Fisher  wrote:

  Hello,

  I am getting an error saying that it cannot find a file. I am unsure if this 
is the correct way to go also.

  What I have so far is a ConnectionC module, Connection interface, a 
ControllerAppC and ControllerC. If you think in object oriented terms, I am 
trying to create a class ConnectionC, which is used in ControllerC.

  What I have so far is (I removed a bunch of irrelevant code)

  ControllerAppC.nc
  ---Code---
  configuration ControllerAppC {}

  implementation
  {
  components MainC;
  components LedsC;
  components ControllerC as App;
  components ConnectionC as conn;
  ...

  App.Boot -> MainC;
  App.Leds -> LedsC;
  //Should something be here to wire ConnectionC?
  }

  ControllerC.nc
  ---Code---
  module ControllerC
  {
  uses interface Boot;
  uses interface Leds;
  uses interface Connection as conn;
  }
  implementation {...}

  Connection.nc
  ---Code---
  interface Connection
  {
  command error_t closeConnection();
  command error_t openConnection(uint16_t id);
  }

  ConnectionC.nc
  ---Code---
  module ConnectionC
  {
  provides interface Connection;
  ...
  }

  implementation
  {
  command error_t Connection.openConnection(uint16_t id){...}
  command error_t Connection.closeConnection(){...}
  ...
  }

  I am getting this error when I compile
  In component `ControllerAppC.AMSenderC.SenderC.AMQueueEntryP':
  /opt/tinyos-2.1.1/tos/system/AMQueueEntryP.nc: In function `Send.sendDone':
  
/opt/tinyos-2.1.1/tos/system/AMQueueEntryP.nc(ControllerAppC.AMSenderC.SenderC.AMQueueEntryP):58:
 AMSend.sendDone not connected
  In component `ControllerC':
  ControllerC.nc: In function `Receive.receive':
  ControllerC.nc:33: conn.openConnection not connected
  make: *** [exe0] Error 1

  and if I add
  App.conn –> ConnectionC; where I put a comment in the AppC file, I get.
  In component `ControllerAppC':
  ControllerAppC.nc:23: cannot find `ConnectionC'
  make: *** [exe0] Error 1

  Is there a way to solve this?
  Regards,
  JF

  ___
  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] Timestamp problem

2012-04-01 Thread Ali Shareef
Hello Akhila,

Thank you for the response.
Are there any interfaces that can be used in TOSSIM?
I tried to the demo program in /apps/tests/cc2420/TestAcks
and /apps/tests/cc2420/TestPacketLink in Tossim, but
they don't receive messages.

I have been able to send messages, and I can see that it occurs,
but the messages are never received in Tossim.
I don't have many motes to test my stuff on, so Tossim is my only option.

Thanks,
Ali

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