[Tinyos-help] how to let a mote predict how much battery power left?

2006-01-18 Thread Bright Xu

By using TinyOS component VoltageM.nc, A mote can read value of battery 
voltage. But how to gain value of current? how to let a mote predict how much battery 
power left? Thanks.
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] cutdown power consumption

2006-01-18 Thread fiasco
Hi all, 

I am developing a small application. The mote does not take any action until it recevies a command message.
Thus the mote radio should be in a Listening state.

To cutdown the power consumption, I have

- called HPLPowerManagementM.Enable();
- turned all Leds off, or used NoLeds component 
- disable JTAG and INCHIPDEBUG
- called CC1000RadioM.SetListeningMode(6), the lowest power duty cycle and bandwidth

Now, I can get almost 2.6mA current. 

I want to know, is it possible to get lower power in my case, in which the mote should listen to the wireless channel to wait a command message ?

Any suggestions are appreciated.

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


Re: [Tinyos-help] Error loading data to telosb mote

2006-01-18 Thread Pere Salvatella (P-teljpa) EXP JUL 05
That problem with mass erase command it's not important for me, cause I will 
update all that information on each mote install. My problem consists in that 
I'm not able to program that part, and as far as I now it's possible to do it 
with normal telosb install.

when I do 
$make telosb install bsl, COM5 
it should program this area, am I wrong? because if then I test that infomem 
area with the command 
$msp430-bsl --telosb --password=main.exe --upload=4096 --size=256 -c COM5
all I get is 
1000 ff ff ff ff ff ff ...
which makes me think that I couldn't store the infomem data.

If anyone has an idea of where could be the problem. I tried to donwload from 
tinyos the msp430 but I couldn't manage to solve that.

Pere

 The thing to remember about using the infomem area on the MSP430 is that
 the
 msp430-bsl only has the mass erase command.  The msp430-bsl WILL erase the
 entire flash including the main program memory and the info memory.  You
 can
 use a JTAG adapter as an alternative since the msp430-jtag inplements the
 --mainerase option to only erase the main flash memory.  By looking at the
 python script used for msp430-bsl the hooks are in place for the other
 erase
 options but they have not been implemented yet.
 
 Chris
 
 On 1/17/06, Pere Salvatella [EMAIL PROTECTED] wrote:
 
  Hi,
 
  Right now I'm trying to use the .infomem section memory pointer in order
  to
  store some configuration parameters. For it I wanted to use the same
  configuration as its provided on some contrib modules (e.g. handhelds
  contrib)
 
  But allways, when I try to load the program on the mote, the
 functionality
  of
  the mote is correct, but the data stored on the infomem section is
 cleared
  to
  0xff.
 
  Any idea on what I am doing wrong?
 
  I'm using a new installation of TinyOS, using the TinyOS-1.1.11-3is.exe,
  and
  upgrading it to TinyOS-1.1.15 with the provided rpm.
 
  Many thanks
 
  Pere
 
  -
  This mail sent through IMP: http://horde.org/imp/
 
  ___
  Tinyos-help mailing list
  Tinyos-help@Millennium.Berkeley.EDU
  https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
 
 




-
This mail sent through IMP: http://horde.org/imp/

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


Re: [Tinyos-help] Receiving messages during execution on Tmote Sky

2006-01-18 Thread Michael Schippling

you didn't put the for loop in an atomic{} block did you?
That would shut off interrupts...
MS


Andrea Pacini wrote:
I am using Tmote Sky motes and I noticed that , when a node is doing 
something (e.g. when it is doing a for cycle) it can't receive message, 
that is Receive.receive() event is not triggered.
Instead , if the node is doing nothing , the receive event is fired and 
all woks.
Note that the sender sends only one message . How is possible ? Doesn't 
exist a queue of WAITING EVENTS ?


Thanks
Andrea

___
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


Re: [Tinyos-help] Help on running TINYVIZ

2006-01-18 Thread Ixent Galpin

Are you running the latest CVS snapshot?

I am running the latest CVS snapshot, and am get exactly the same error 
as you.  It was ok before I upgraded from the stable version.


Preethi Naveen wrote:

hi,
i have tried to run tinyviz as given in chapter 5 of tutorial. I am 
getting the following errors


Exception in thread main java.lang.NullPointerException
at net.tinyos.sim.PluginManager.register(PluginManager.java:77)
at net.tinyos.sim.SimDriver.init(SimDriver.java:258)
at net.tinyos.sim.SimDriver.main(SimDriver.java:539)

any idea how to resolve them.
thanks
regards
 





___
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


Re: [Tinyos-help] Problem with Implementing GUI for Listen Programme

2006-01-18 Thread Michael Schippling

alright then. Your CLASSPATH does contain both . and tools/java
so that should be ok. I think you are having package naming problems,
but I don't get how Circle (wrong name:  net/tinyos/oscope/Circle)
comes up with oscope...

Coulda fooled me that you can embed the applet tag in the .java...
Like I said I think I used appletviewer once.

The code you sent says package net.tinyos.tools;, and the file,
Circle.java is in the net/tinyos/tools directory? Then you probably
have to run it using:
appletviewer net/tinyos/tools/Circle.java
or perhaps the net.tinyos version. I have no idea how the viewer
deals with the finding the source file of interest.

The other approach would be to move Circle.java to tools/java and
remove the package line.

If I have energy and time later today I'll might actually try it.
MS


nandy jones wrote:


 
Hi,
 
Thanks a lot ,
I haven't used export CLASSPATH=.;$CLASSPATH statement for setting the 
path Even I was wondering how to add current directory in the class path.
 
I m trying to give u answers
 
(1) This code that you sent is in a file named net/tinyos/tools/Listen.java

in the tools/java directory? Or what?
Ans : No The code I have sent u is Circle.java But In the same folder 
Tools.
 I have just copy pasted simple applet  imported the packages 
those are imported in Listen.java files. Not even a single line has been 
changed for my applet proramme  ofcourse it doesnt use any of the 
classes existing in package of Tinyos.
 
(2) What is the exact error from the javac compile and the appletviewer run?
 
Ans : From cygwin I m locating the java directory.  giving following 
command.
 
  *make all
Result : it will compile all the files successfully including 
Circle.java
 
   locate to tools directory : 
   
   appletviewer Circle.java
 
Note : I m using Circle.java because I m having applet tag in 
comment Even I have cross checked this thing with some of the ebooks. so 
I think that part is not wrong.
 
 
 The Error I m getting is shown Below :
 
[EMAIL PROTECTED] /opt/tinyos-1.x/tools/java/net/tinyos/tools*

*$ appletviewer Circle.java*
*java.lang.NoClassDefFoundError: Circle (wrong name: 
net/tinyos/oscope/Circle)*

*at java.lang.ClassLoader.defineClass0(Native Method)*
*at java.lang.ClassLoader.defineClass(ClassLoader.java:502)*
*at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12*

*3)*
*at 
sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:148)*

*at java.lang.ClassLoader.loadClass(ClassLoader.java:299)*
*at 
sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:114)*

*at java.lang.ClassLoader.loadClass(ClassLoader.java:255)*
*at 
sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:501)*

*at sun.applet.AppletPanel.createApplet(AppletPanel.java:567)*
*at sun.applet.AppletPanel.runLoader(AppletPanel.java:496)*
*at sun.applet.AppletPanel.run(AppletPanel.java:293)*
*at java.lang.Thread.run(Thread.java:536)*
 
 
 
 
(3) What is the enviromental variables set to ?
 
Ans :
 
 I have checked the all the variables like this those are shown below:
 
I think in the following output CLASSPATH is set properly.
 
 
[EMAIL PROTECTED] /opt/tinyos-1.x/tools/java/net/tinyos/tools*

*$ set*
*!::='::\'*
*!C:='C:\tinyos\cygwin\bin'*
*ALLUSERSPROFILE='C:\Documents and Settings\All Users'*
*APPDATA='C:\Documents and Settings\Administrator\Application Data'*
*BASH=/usr/bin/bash*
*BASH_VERSINFO=([0]=2 [1]=05b [2]=0 [3]=9 [4]=release 
[5]=i686-pc-cygw*

*in)*
*BASH_VERSION='2.05b.0(9)-release'*
*CLASSPATH='.;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java;C:\tinyos\cygwin\opt\tin*
*yos-1.x\tools\java\jars\cup.jar;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\*
*Jama-1.0.1.jar;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\javax.servlet.jar*
*;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\jazz.jar;C:\tinyos\cygwin\opt\t*
*inyos-1.x\tools\java\jars\jdom.jar;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\ja*
*rs\JLex.jar;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\junit.jar;C:\tinyos\*
*cygwin\opt\tinyos-1.x\tools\java\jars\oalnf.jar;C:\tinyos\cygwin\opt\tinyos-1.x\*
*tools\java\jars\org.mortbay.jetty.jar;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java*
*\jars\pgjdbc2.jar;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java\jars\plot.jar;C:\ti*
*nyos\cygwin\opt\tinyos-1.x\tools\java\jars\pxgraphapplet.jar;C:\tinyos\cygwin\op*
*t\tinyos-1.x\tools\java\jars\xercesImpl.jar;C:\tinyos\cygwin\opt\tinyos-1.x\tool*
*s\java\jars\xmlParserAPIs.jar;.;C:\tinyos\cygwin\opt\tinyos-1.x\tools\java;C:\ti*
*nyos\cygwin\opt\tin;..;.;'*
*CLIENTNAME=Console*
*COLUMNS=80*
*COMMONPROGRAMFILES='C:\Program Files\Common Files'*
*COMPUTERNAME=TEXTILELAB*
*COMSPEC='C:\WINDOWS\system32\cmd.exe'*
*CVS_RSH=/bin/ssh*
*DIRSTACK=()*
*EUID=500*
*FP_NO_HOST_CHECK=NO*
*GROUPS=()*
*HISTFILE=/home/Administrator/.bash_history*
*HISTFILESIZE=500*

[Tinyos-help] Yet Another Signal Strength Question [over micaz]

2006-01-18 Thread Sam Pierson
Hi everyone,

I dug through the mailing list archives looking for some info on
the received signal strength of incoming packets.  I have one
mote that transmits messages of type IntMsg over the radio.
The other mote has TOSBase installed on it and is on the programming
board, which is then connected to the serial port.  When I
use the java tool ListenRaw, I get things like the following:

7E 42 FF FF 04 7D 5D 04 22 00 01 00 EA 1E
7E 42 FF FF 04 7D 5D 04 23 00 01 00 5E 68
7E 42 FF FF 04 7D 5D 04 24 00 01 00 73 39

So from what I've gathered from micaz/AM.h:

uint8_t length =-|
uint8_t fcfhi =|  Not sure about these top four.
uint8_t fcflo = 7E   |
uint8_t dsn = 24   _|
uint16_t destpan = FF FF
uint16_t addr = 04 7D
uint8_t type = 5D
uint8_t group = 04
int8_t data = 22
uint8_t strength = 00-- ??

I know the 22, 23, 24 is the data portion, so ListenRaw or
the serial port must be cutting something off from the beginning.
It appears as though the strength is registered as 0 though.
Does anyone know of a better approach?
--
Sam Pierson

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


Re: [Tinyos-help] Yet Another Signal Strength Question [over micaz]

2006-01-18 Thread Philip Levis
On Wed, 2006-01-18 at 15:39 -0600, Sam Pierson wrote:
 Hi everyone,
 
 I dug through the mailing list archives looking for some info on
 the received signal strength of incoming packets.  I have one
 mote that transmits messages of type IntMsg over the radio.
 The other mote has TOSBase installed on it and is on the programming
 board, which is then connected to the serial port.  When I
 use the java tool ListenRaw, I get things like the following:
 
 7E 42 FF FF 04 7D 5D 04 22 00 01 00 EA 1E
 7E 42 FF FF 04 7D 5D 04 23 00 01 00 5E 68
 7E 42 FF FF 04 7D 5D 04 24 00 01 00 73 39
 
 So from what I've gathered from micaz/AM.h:
 
 uint8_t length =-|
 uint8_t fcfhi =|  Not sure about these top four.
 uint8_t fcflo = 7E   |
 uint8_t dsn = 24   _|
 uint16_t destpan = FF FF
 uint16_t addr = 04 7D
 uint8_t type = 5D
 uint8_t group = 04
 int8_t data = 22
 uint8_t strength = 00-- ??
 

IntMsg.h:

typedef struct IntMsg {
  uint16_t val;
  uint16_t src;
} IntMsg;

In the first packet (little endian):
  22 00 is the data value (34).
  01 00 is the source (node 1)
  EA 1E is the signal strength (7914)

Phil

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


Re: [Tinyos-help] Yet Another Signal Strength Question [over micaz]

2006-01-18 Thread Philip Levis
On Wed, 2006-01-18 at 15:39 -0600, Sam Pierson wrote:
 Hi everyone,
 
 I dug through the mailing list archives looking for some info on
 the received signal strength of incoming packets.  I have one
 mote that transmits messages of type IntMsg over the radio.
 The other mote has TOSBase installed on it and is on the programming
 board, which is then connected to the serial port.  When I
 use the java tool ListenRaw, I get things like the following:
 
 7E 42 FF FF 04 7D 5D 04 22 00 01 00 EA 1E
 7E 42 FF FF 04 7D 5D 04 23 00 01 00 5E 68
 7E 42 FF FF 04 7D 5D 04 24 00 01 00 73 39
 
 So from what I've gathered from micaz/AM.h:
 
 uint8_t length =-|
 uint8_t fcfhi =|  Not sure about these top four.
 uint8_t fcflo = 7E   |
 uint8_t dsn = 24   _|
 uint16_t destpan = FF FF
 uint16_t addr = 04 7D
 uint8_t type = 5D
 uint8_t group = 04
 int8_t data = 22
 uint8_t strength = 00-- ??
 

IntMsg.h:

typedef struct IntMsg {
  uint16_t val;
  uint16_t src;
} IntMsg;

In the first packet (little endian):
  22 00 is the data value (34).
  01 00 is the source (node 1)
  EA 1E is the signal strength (7914)

Phil

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


[Tinyos-help] about Surge_Reliable in XBow apps to be run on TinyOS v1.1.15

2006-01-18 Thread Ivan Wing Mau Cheung
Hi,

I have been trying out Surge_Reliable in XBow apps (http://www.xbow.com/Support/Support_pdf_files/Crossbow.tgz) in TinyOS v1.1.7. It compiles and works fine. However, when i upgraded TinyOS to 
v1.1.15, i found that the codes of Surge_Reliable would send the same identical packets many times to the node ID 0 which is observed in xListener application. I suspect there is something changed in modules like QueuedSend, GenericCommPromiscuous, Bcast or EWMAMultiHopRouter that causes this problem. But I found nothing mentioned in 
http://www.tinyos.net/tinyos-1.x/doc/changes-minor-releases.html#1.1.11. Does anybody face this problem before?

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


Re: [Tinyos-help] Receiving messages during execution on Tmote Sky

2006-01-18 Thread Cory Sharp
Tasks execute first-come first-serve, and each task executes to
completion before the next task can begin.  Execute to completion
means that your task routine must return / exit.  Long running and
non-terminating tasks block all other tasks from executing.

Receive.receive is signaled from within task context -- which you can
note from the absence of an async keyword for that event.  That means
that a task is posted within the radio stack that eventually signals
receive.

If you have a long running task in your application, it is blocking
the receive task from executing.

Hope that helps,
Cory Sharp [EMAIL PROTECTED]

On 1/18/06, Andrea Pacini [EMAIL PROTECTED] wrote:
 I am using Tmote Sky motes and I noticed that , when a node is doing
 something (e.g. when it is doing a for cycle) it can't receive message,
 that is Receive.receive() event is not triggered.
 Instead , if the node is doing nothing , the receive event is fired and
 all woks.
 Note that the sender sends only one message . How is possible ? Doesn't
 exist a queue of WAITING EVENTS ?

 Thanks
 Andrea

 ___
 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


Re: [Tinyos-help] Yet Another Signal Strength Question [over micaz]

2006-01-18 Thread Philip Levis
On Wed, 2006-01-18 at 15:39 -0600, Sam Pierson wrote:
 Hi everyone,
 
 I dug through the mailing list archives looking for some info on
 the received signal strength of incoming packets.  I have one
 mote that transmits messages of type IntMsg over the radio.
 The other mote has TOSBase installed on it and is on the programming
 board, which is then connected to the serial port.  When I
 use the java tool ListenRaw, I get things like the following:
 
 7E 42 FF FF 04 7D 5D 04 22 00 01 00 EA 1E
 7E 42 FF FF 04 7D 5D 04 23 00 01 00 5E 68
 7E 42 FF FF 04 7D 5D 04 24 00 01 00 73 39
 
 So from what I've gathered from micaz/AM.h:
 
 uint8_t length =-|
 uint8_t fcfhi =|  Not sure about these top four.
 uint8_t fcflo = 7E   |
 uint8_t dsn = 24   _|
 uint16_t destpan = FF FF
 uint16_t addr = 04 7D
 uint8_t type = 5D
 uint8_t group = 04
 int8_t data = 22
 uint8_t strength = 00-- ??
 

IntMsg.h:

typedef struct IntMsg {
  uint16_t val;
  uint16_t src;
} IntMsg;

In the first packet (little endian):
  22 00 is the data value (34).
  01 00 is the source (node 1)
  EA 1E is the signal strength (7914)

Phil

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


Re: [Tinyos-help] Micaz UART message length problem

2006-01-18 Thread Sam Pierson
Out of curiousity, this is related to a problem I had today...
are these rewritten packets changed as far as received
signal strength goes?  As I said in a previous email, the
micaz AM.h file declares TOS_Msg-strength as uint8_t
and regular AM.h is uint16_t.  Now my micaz messages
being forwarded over the serial port are almost certainly
in mica2 format, I'm not sure what to trust as far as strength
goes.

 Date: Wed, 11 Jan 2006 01:37:39 -0800
 From: Jeongyeup Paek [EMAIL PROTECTED]
 Subject: Re: [Tinyos-help] Micaz UART message length problem
 To: Michael Schippling [EMAIL PROTECTED]
 Cc: TINYOS HELP tinyos-help@millennium.berkeley.edu
 Message-ID: [EMAIL PROTECTED]
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed


 David's suggestions (or more like solutions) should work.
 This has been an issue since the first release of MicaZ,
 and identical issue is appied to telos-series also.


 Here is a note that I had a year ago:


 ==

   TOS_Msg Packet format in CC2420 (MicaZ and TelosB)
 

 A. currently there are two TOSMessage formats/structures:
  -MICA2 family (Mica, Mica2, Mica2dot), (tos/type/AM.h)
  -CC2420 family (MicaZ / Telos), (tos/platform/micaz/AM.h,
 tos/platform/msp430/AM.h)

 B. Legacy/MICA2 Users  This is what we are doing!
  -Use host side tools (SerialForwarder, Surge gui etc) specifying MICA2
  mode (eg. SerialForwarder [EMAIL PROTECTED]:mica2 )

  -make micaz using maintree tos/platform/micaz.

  In this configuration
  All UART traffic to/from host is in MICA2 family TOSMsg format. Host
  applications process messages using MICA2 format. The platform/micaz
  FramerM.nc adapts UART traffic between the message types .

  Host application works directly across all platforms (mixed MICA2,
 MICAZ)

 C. TELOS/MICAZ Only Users
  -Must rebuild host side tools and use java tools specifying micaz
 mode

  -make micaz using maintree tos/platform/micaz AFTER removing the local
  FramerM.nc module. The tos/system FramerM.nc module handles
 MICAZ TOSMsg
  structure UART traffic.

  In this configuration
  All UART traffic to/from host is in MICAZ family TOSMsg format. Host
  applications process messages using MICAZ/telos format.

  Host application works in single platform (MICAz) network.

  * There are two 'FramerM' files in the tinyos tree.
   1. tinyos-1.x/tos/system/FramerM.nc
  o This is the 'normal' file
   2. tinyos-1.x/tos/platform/micaz/FramerM.nc
  o This file changes the Micaz/telos TOS_Msg header to
 Mica2 header ONLY WHEN sending over the UART.
  * If you want to use the latter to work, copy the latter to
 tinyos-1.x/tos/lib/CC2420/
  * If you want to go back to the native formats, the just remove the
 file (which will use the former)

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


[Tinyos-help] how to slove the aggregation part ?

2006-01-18 Thread Xing Jin
Hi ,  I am a beginner in this field. When I complied my code, it says that TestTempM.nc:82: warning: passing argument 1 of `Send.send' makes pointer from integer without a castTestTempM.nc:82: too many arguments to function `Send.send'TestTempM.nc: In function `ReceiveMsg.receive':TestTempM.nc:148: warning: passing argument 1 of `Send.send' makes pointer frominteger without a castTestTempM.nc:148: too many arguments to function `Send.send'But I do not know whichcausedthis. Does anyone have the same experience ? I will appreciate it very much if someone helps me.  Thanks.___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] how to slove the aggregation part ?

2006-01-18 Thread Michael Schippling

Probably you need to (re)view some C programming fundamentals,
the makes pointer from integer thing sounds like you are
trying to pass a value where an address is required. If that
doesn't make any sense, then you DO need to read a C book.
Try the old famous Kernigan and Ritchie...

Otherwise, without seeing the code, it's not easy to correct it.
MS


Xing Jin wrote:

Hi ,
 I am a beginner in this field. When I complied my code, it says that
 
TestTempM.nc:82: warning: passing argument 1 of `Send.send' makes 
pointer from i

nteger without a cast
TestTempM.nc:82: too many arguments to function `Send.send'
TestTempM.nc: In function `ReceiveMsg.receive':
TestTempM.nc:148: warning: passing argument 1 of `Send.send' makes 
pointer from

integer without a cast
TestTempM.nc:148: too many arguments to function `Send.send'
 
But I do not know which caused this. Does anyone have the same 
experience ? I will appreciate it very much if someone helps me.

Thanks.




___
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] Re: Tinyos-help Digest, Vol 33, Issue 40

2006-01-18 Thread lakshmi nair
hello everybody !!   I wanted to know how to use two UARTs simultaneously. I'm currently working in a project ' DATA TRANSMISSION  RECEPTION VIA GPRS IN TINYOS ENVIRONMENT ' . Platform used is MSP430F1611. One UART is to be used for thereception of GPS packets . The other one should be used for sending initialization commands( GSM, GPRS) the responses should be available in that UART itself . I've already implemented the reception of GPS packets inthrough one UART which was UART0 .For that i used the usual method of '...HPLUART.get(data)'.but now i want to use the other one alsofor the initialization process . I tried using a second '...HPLUART.get(data)'. But it is showing error. Also tried using IFG flag register , which too didn't help !
 ! 
   If anybody have any idea of how to use the second UART also simultaneously , please help as soon as possible   Send instant messages to your online friends http://in.messenger.yahoo.com ___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] CC2420 RAM on telosb

2006-01-18 Thread Matt Thompson
Hi,

I am working on CC2420 encryption on a tmote sky, and I am having issues
writing to the chipcon RAM.

To test the RAM, I have added wrappers in the CC2420Control interface
that call HPLChipconRAM.write/read.  I have included CC2420RadioC in an
application, and wired an interface called RadioControl to
CC2420RadioC.CC2420Control.

I have a repeat timer that calls RadioControl.writeRAM to fill 16 bytes
of the RAM with a variable that is incremented by one.

After writing to the RAM, RadioControl.readRAM is called, the result is
put into a TOS_Msg, and sent via radio to a TOSBase using GenericComm.

The first write to RAM does not appear to work at all, from a cold
start, random bytes are returned, from a warm start, the previous RAM
values remain (expected).

The second write to RAM usually takes effect (all bytes 0x01), however
further iterations do not always work.  It randomly returns the previous
buffer, and sometimes will return with 8 bytes of one number, and 8 of
another.

It almost seems that the CSN signal is being raised, causing the SPI tx
to finish prematurely, however it appears BusArbitration should
eliminate that.

Any ideas??

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