[Tinyos-help] installation procedure

2011-09-30 Thread Rakshitha GB
Hi Sir/Mam,

i want the procedure to install tinyos in ubuntu.
kindly help me..

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

Re: [Tinyos-help] installation procedure

2011-09-30 Thread Eric Decker
start with the tutorials.

While not super organized there is enough information to get you started.

docs.tinyos.net

On Thu, Sep 29, 2011 at 11:09 PM, Rakshitha GB rakshitha...@gmail.comwrote:

 Hi Sir/Mam,

 i want the procedure to install tinyos in ubuntu.
 kindly help me..

 regards
 Rakshitha


 ___
 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] Problem with MSP430 ADC readings

2011-09-30 Thread Jan Hauer
Hi Juan,

take a look at tos/chips/msp430/sensors/Msp430InternalVoltage* which
measures supply voltage and compare it with our configuration.

Jan

On Thu, Sep 29, 2011 at 7:51 PM, Juan Verdu juan.ve...@gmail.com wrote:
 Hello everyone,

 I am working with the MSP430F2617 microcontroller and CC2420 radio. I'm
 using Zolertia driver.

 I have written an application that sends temperature readings every 2
 seconds microcontroller to a base station (BaseStation Application). The
 readings are consistent and depending if you use the power of two batteries
 or USB power values are different but them are apparently valid.

 The configuration selected in the case of temperature is:

  msp430adc12_channel_config_t adcconfig = {
 inch: TEMPERATURE_DIODE_CHANNEL,
 SREF: REFERENCE_AVcc_AVss,
 ref2_5v: REFVOLT_LEVEL_1_5,
 adc12ssel: SHT_SOURCE_ACLK,
 adc12div: SHT_CLOCK_DIV_1,
 sht: SAMPLE_HOLD_4_CYCLES,
 sampcon_ssel: SAMPCON_SOURCE_SMCLK,
 sampcon_id: SAMPCON_CLOCK_DIV_1
   };

 Now, I want to read the internal voltage of the microcontroller, but always
 gives OFFF reading if I use both batteries (2.6 V) or with USB power (3.3V)
 and I do not know the error Could someone help me?

 The code used in the case of voltage is:


 TestAdcC.nc

 #include Timer.h
 #include TestAdc.h

 module TestAdcC
 {
   uses interface Boot;
   uses interface Leds;

   uses interface TimerTMilli as Timer0;

   uses interface Msp430Adc12Overflow as overflow;
   uses interface Msp430Adc12SingleChannel as adc;
   uses interface Resource;

   uses interface SplitControl as Control;
   uses interface Packet;
   uses interface AMSend;
 }

 implementation
 {
 #define BUF_SIZE 100
 uint16_t buf[BUF_SIZE];
 message_t packet;
 uint16_t counter = 0;
 uint16_t Data;

 void configureSingle();

 msp430adc12_channel_config_t adcconfig = {
     inch: SUPPLY_VOLTAGE_HALF_CHANNEL,
     sref: REFERENCE_VREFplus_AVss,
     ref2_5v: REFVOLT_LEVEL_1_5,
     adc12ssel: SHT_SOURCE_ACLK,
     adc12div: SHT_CLOCK_DIV_1,
     sht: SAMPLE_HOLD_4_CYCLES,
     sampcon_ssel: SAMPCON_SOURCE_SMCLK,
     sampcon_id: SAMPCON_CLOCK_DIV_1
   };

 event void Boot.booted()
   {
 call Leds.led0Off();
 call Leds.led1Off();
 call Leds.led2Off();
 call Control.start();
 call Resource.request();
  }

 async event void overflow.conversionTimeOverflow(){
 }

 async event void overflow.memOverflow(){
 }

 async event uint16_t *adc.multipleDataReady(uint16_t *buffer, uint16_t
 numSamples){
             return buffer;
 }

 task void send(){
     test_serial_msg_t* rcm = (test_serial_msg_t*)call
 Packet.getPayload(packet, sizeof(test_serial_msg_t));
     call Leds.led0Toggle();
     rcm-counter = Data;
     if(  call AMSend.send(AM_BROADCAST_ADDR, packet,
 sizeof(test_serial_msg_t)) == SUCCESS){
         call Leds.led1Toggle();
  }
 }

 async event error_t adc.singleDataReady(uint16_t data){
     Data = data;
     post send();
     return SUCCESS;
   }

 event void Resource.granted(){
     configureSingle();
     call Timer0.startPeriodic(2048);
   }

 void configureSingle(){
     error_t e;
     e = call adc.configureSingle(adcconfig);
  }

 event void Timer0.fired()
   {
     call adc.getData();
   }

 event void AMSend.sendDone(message_t* bufPtr, error_t error) {
     call Leds.led2Toggle();
 }

 event void Control.startDone(error_t err) {
   if (err == SUCCESS){
     } else {
     call Control.start();
       }
 }

 event void Control.stopDone(error_t err) {
     }

 }


 TestAdcAppC.nc

 #include TestAdc.h
 configuration TestAdcAppC {
 }
 implementation
 {
   components MainC,
  TestAdcC,
  LedsC;
  components ActiveMessageC as AM;
  components new TimerMilliC() as Timer0;
  components new Msp430Adc12ClientAutoDMAC() as Lectura;

  TestAdcC.overflow - Lectura;
   TestAdcC.adc - Lectura;
   TestAdcC.Resource - Lectura;

   TestAdcC - MainC.Boot;
   TestAdcC.Leds - LedsC;
   TestAdcC.Timer0 - Timer0;
   TestAdcC.Control - AM;
   TestAdcC.AMSend - AM.AMSend[AM_TEST_SERIAL_MSG];
   TestAdcC.Packet - AM;

 }


 TestAdc.h

 #ifndef TEST_SERIAL_H
 #define TEST_SERIAL_H

 typedef nx_struct test_serial_msg {
   nx_uint16_t counter;
 } test_serial_msg_t;

 enum {
   AM_TEST_SERIAL_MSG = 0x89,
 };

 #endif


 Makefile

 #ifndef TEST_SERIAL_H
 #define TEST_SERIAL_H

 typedef nx_struct test_serial_msg {
   nx_uint16_t counter;
 } test_serial_msg_t;

 enum {
   AM_TEST_SERIAL_MSG = 0x89,
 };

 #endif

 A greeting and thank you very much!.

 ___
 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] env setting for the tinyos

2011-09-30 Thread Indtiny s
Hi,
I have done the following environment setup on ubuntu ,
but still i'm not able to do the $make mica2 sim   // i'm trying in the led
blink demo

I get the error is

***No rules to make the target mica2 . stop .
export TOSROOT=$TOSROOT:/opt/tinyos-2.x
export TOSDIR=$TOSDIR:$TOSROOT/tos
export CLASSPATH=$CLASSPATH
C:\tinyos\cygwin\opt\tinyos-2.x\support\sdk\java\tinyos.jar;.
$TOSROOT/support/sdk/java/tinyos.jar:.
export MAKERULES=$MAKERULES $TOSROOT/support/make/Makerules;.
export PATH=$PATH: /opt/msp430/bin

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

[Tinyos-help] cameraMultiHop -- no pkts received

2011-09-30 Thread Alex Chih Hu
Is there anyone resolve the problem below?

I am trying to run the cameraMultiHop application, I have intelmote2, I run
the serial forwarder by using the following command

$TOSROOT/support/sdk/c/sf/sf 9002 /dev/ttyUSB1 115200

and in c directory, when i execute make command following output is
displayed,

make: Nothing to be done for `all'.

and I run the get_jpg by using the following command

./get_jpg 9002 1 2  (here 1 is node id of camera node which i give during
programming the camera node by using make intelmote2 install openocd,1)

which gives me following output
connecting to serialforwarder: localhost:9002
sending img request to node 1: 0
img: 0%
no pkts received!

y it is not receiving any packets, whats wrong with this?


and on the screen of serial forwarder the following output is displayed.

clients 1, read 0, wrote 0
Note: sync
clients 0, read 0, wrote 1

If anyone knows about it plz reply asap.

I'll be very thankful to u for this act of kindness.

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

[Tinyos-help] how i can use matlab in tinyos 2.x

2011-09-30 Thread Amin Amin
Hi all,

Can anyone help me how i can use matlab in tinyo 2.x for draw
automatically the graphs during the simulation.

Please help me, i waiting for the answer.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] env setting for the tinyos

2011-09-30 Thread Michael Schippling
TOSROOT and TOSDIR are especially not right.
They shouldn't be defined as lists in terms of themselves.
All non-PATH variables should not have the second copy of their
name or any dangling ;. stuff:
export MAKERULES=$MAKERULES $TOSROOT/support/make/Makerules;.
should be
export MAKERULES=$TOSROOT/support/make/Makerules

And I'm not sure that having spaces in PATH and CLASSPATH
will work right either. The separators should all be ';' on
ubuntu I think. Of course cygWidows uses a mix, ':' for PATH
and ';' CLASSPATH...

I have multiple installed versions through which I switch
so my setup is a bit more complicated, but here goes. What
you really want is the last two lines with $TV set to your
version directory name:

---
### appropriate version/directory name and define
### MAKERULES and TOSMAKE_PATH as needed below
TV=tinyos-1.1.7   ### various back-revs, use 1.1.7 for RoboCar
#TV=tinyos-1.1.10 
#TV=tinyos-1.x### for MOTEIV/tmote
#TV=MoteWorks ### for MOTEWORKS

### set this for MOTEIV and back-revs
export MAKERULES=/opt/$TV/tools/make/Makerules

### set these only for MOTEIV (!not back-revs!)
#export TOSMAKE_PATH=/opt/moteiv/tools/make
#export MOTEIV_DIR=/opt/moteiv

### set this only for MOTEWORKS -- xbow put their Makerules
### file in a slightly different place
### and doesn't use TOSMAKE_PATH
#export MAKERULES=/opt/MoteWorks/make/Makerules

# Set main pointers used by TOS build system to find files
#  TOSROOT is for external programs, TOSDIR for makefiles
export TOSROOT=C:/cygwin/opt/$TV
export TOSDIR=/opt/$TV/tos
---

I may be overly superstitions, but on Windows I believe that TOSROOT
needs to use the _real_ windows path -- and be used for CLASSPATH
and any other external tool settings -- and the TOSDIR needs to use
the cygwin relative path. This shouldn't matter on a real OpSys.

MS




if you are on Windows TOS should be defined using the cygwin
Indtiny s wrote:
 Hi,
 I have done the following environment setup on ubuntu ,
 but still i'm not able to do the $make mica2 sim   // i'm trying in the 
 led blink demo
  
 I get the error is
 
 ***No rules to make the target mica2 . stop .
 
 export TOSROOT=$TOSROOT:/opt/tinyos-2.x
 export TOSDIR=$TOSDIR:$TOSROOT/tos 
 export CLASSPATH=$CLASSPATH 
 C:\tinyos\cygwin\opt\tinyos-2.x\support\sdk\java\tinyos.jar;. 
 $TOSROOT/support/sdk/java/tinyos.jar:. 
 export MAKERULES=$MAKERULES $TOSROOT/support/make/Makerules;.
 export PATH=$PATH: /opt/msp430/bin
  
 pls help to fix the bug
 
 
 
 
 ___
 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] BLIP network without ip-driver

2011-09-30 Thread Harsha Chenji
Hello all,


Is it possible to deploy a set of blip nodes and expect them to do
multi hop routing among themselves, without a mote run by ip-driver
among them? As in, can I deploy blip nodes as standalones with multi
hop routing?


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