Re: [Tinyos-help] programmer is not responding problem

2014-08-04 Thread Alex

You can try this command:
uisp -dprog=mib510 -dserial=/dev/ttyS6 -dpart=ATmega128 --wr_fuse_h=0x08
replace the red letter with you seiral comm port.


Best regards.
Alex.



在 2014-07-31 09:40:48,deepak khatri deepakkhatr...@gmail.com 写道:

Hello everyone,


I am new to TinyOS. I am using micaz ( MPR2400) hardware board with programmer 
MIB520. When running simple blink application using command make micaz install 
mib520,/dev/ttyUSB0, i got an error:

mkdir -p build/micaz
compiling BlinkAppC to a micaz binary
ncc -o build/micaz/main.exe  -Os -fnesc-separator=__ -Wall -Wshadow -Wnesc-all 
-target=micaz -fnesc-cfile=build/micaz/app.c -board=micasb 
-DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=10 
-DIDENT_APPNAME=\BlinkAppC\ -DIDENT_USERNAME=\iist\ 
-DIDENT_HOSTNAME=\iist\ -DIDENT_USERHASH=0x6803a78cL 
-DIDENT_TIMESTAMP=0x53db968fL -DIDENT_UIDHASH=0x38879a0eL -fnesc-dump=wiring 
-fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs, 
components)' -fnesc-dumpfile=build/micaz/wiring-check.xml BlinkAppC.nc -lm
compiled BlinkAppC to build/micaz/main.exe
2044 bytes in ROM
  51 bytes in RAM
avr-objcopy --output-target=srec build/micaz/main.exe build/micaz/main.srec
avr-objcopy --output-target=ihex build/micaz/main.exe build/micaz/main.ihex
writing TOS image
cp build/micaz/main.srec build/micaz/main.srec.out
installing micaz binary using mib510
uisp -dprog=mib510 -dserial=/dev/ttyUSB0 --wr_fuse_h=0xd9 -dpart=ATmega128  
--wr_fuse_e=ff   --erase --upload if=build/micaz/main.srec.out --verify
Firmware Version: 1.8
Atmel AVR similar to the ATmega103 is found.
Uploading: flash
Verifying: flash
Cannot write high fuse bits on this device.

Fuse High Byte set to 0xd9
Cannot read extended fuse bits on this device.

Fuse Extended Byte set to 0xff
rm -f build/micaz/main.exe.out build/micaz/main.srec.out


The above says it is detecting atmel 128 in the board but i think there is some 
fuse problems. Please help!





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

Re: [Tinyos-help] Problems getting true Values from ADC (telosb)

2014-08-04 Thread KMote
I have solved the problem. For anyone that has a familiar problem like i did.
the configuration for the adc war wrong. i had accidently set a false
Reference voltage. With the following configuration and interpretation the
code works. i am reading equivalent values from my voltage divider on my
CuteCom terminal under ubuntu.

/*  ADC CONFIGURATION */ 
const msp430adc12_channel_config_t config =
{
inch: INPUT_CHANNEL_A0, //Chanel 0 for 
input
sref: REFERENCE_AVcc_AVss,  //Reference voltage is 
set to AVCC
- 2.32V
ref2_5v: REFVOLT_LEVEL_NONE,//Internal 
reference voltage ist
set to 0, use external
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 AdcChanelRead.readDone( error_t result, uint16_t val )
{
   if (result == SUCCESS)
   {
call Leds.led1Toggle();
   }
   value=(uint16_t)val;
   value=2.38 * (value/4096.0)*1000.0;
}

regards,
Kmote



--
View this message in context: 
http://tinyos-help.10906.n7.nabble.com/Problems-getting-true-Values-from-ADC-telosb-tp24512p24519.html
Sent from the TinyOS - Help mailing list archive at Nabble.com.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Introducing mobillity in the tinyos/tossim

2014-08-04 Thread Ramana Reddy
Hi all,

I would like to implement the mobility of nodes in the tinyos and in the
tossim.
What are the changes are needed  in the tinyos or in the python script.

Help in this regards is highly appreciated.


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

[Tinyos-help] LowPowerSensingApp

2014-08-04 Thread Soheil Akhavan Masouleh
I am trying to run LowPowerSensingApp on 2 telosb
I got an output

0: 7E 43 0F 70 - A9 7E 7E 43
8: 10 AE 4A 7E - 7E 43 11 8F

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

Re: [Tinyos-help] LowPowerSensingApp

2014-08-04 Thread sy.kalhor
This is a really basic question!!!


This is the message you get. you need to learn and possibly develop a software 
to parse these messages into strings or whatever they are supposed to show 
(numbers, signs, etc…).


Get started by reading the TEP11 
http://www.tinyos.net/tinyos-2.x/doc/html/tep111.html and other TEP's regarding 
the message.


A quick notice, 7E might mean the beginning of the message, 7E 43 may mean the 
CRC check…you need to figure out these stuff.


Regards,

Saeid Yazdani.


Embedded System Engineer

University Twente.

http://eetutorials.com





From: Soheil Akhavan Masouleh
Sent: ‎Tuesday‎, ‎August‎ ‎5‎, ‎2014 ‎12‎:‎34‎ ‎AM
To: tinyos-help@millennium.berkeley.edu





I am trying to run LowPowerSensingApp on 2 telosb 
I got an output




0: 7E 43 0F 70 - A9 7E 7E 43

8: 10 AE 4A 7E - 7E 43 11 8F




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

Re: [Tinyos-help] PppRouter (msp430-ld: region text is full) in Telosb

2014-08-04 Thread Philip Levis
Alex,

It is not a nesC version problem. The issue is that the PppRouter code is too 
big to fit on the micro controller. 

Phil

On Jul 9, 2014, at 9:18 AM, Alex CP cpa9...@gmail.com wrote:

 Dear Thomas.
 
 Thanks for you answer.
 
 I've commented these lines but  error persists:
 
 msp430-ld: region text is full (build/telosb/main.exe section .text)
 msp430-ld: section .vectors [ffe0 - ] overlaps section .text 
 [4000 - 0001148f]
 msp430-ld: build/telosb/main.exe: section .vectors lma 0xffe0 overlaps 
 previous sections
 make: *** [exe0] Error 1
 
 
 Probably is a problem of the nescc version?
 
 root@a:/opt/tinyos-2.x.acp/apps/PppRouter# nescc --version
 nescc: 1.3.5
 gcc: gcc (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3
 
 Thanks in advance for any help.
 
 Yours faithfully,
 
 Alex. 
 
 
 
 
 
 
 On Tue, Jul 8, 2014 at 4:52 AM, Thomas Pötsch t...@comnets.uni-bremen.de 
 wrote:
 Hi Alex,
 
 which checkout are you using?
 If I remember correctly, then you have to comment the following lines in
 PppRouterC.nc to get it working on TelosB:
 
   // UDP shell on port 2000
   //  components UDPShellC;
 
   // prints the routing table
   // components RouteCmdC;
 
 Viele Grüße,
 Thomas
 
  Hi all.
 
  I'm trying to compile it:
 
  root@a:/opt/tinyos-2.x/apps/PppRouter# make telosb blip
 
 
  
  ..
  .
  msp430-ld: region text is full (build/telosb/main.exe section .text)
  msp430-ld: section .vectors [ffe0 - ] overlaps section .text
  [4000 - 000119e9]
  msp430-ld: build/telosb/main.exe: section .vectors lma 0xffe0 overlaps
  previous sections
  make: *** [exe0] Error 1
 
 
  But appears errors of space in memory. I can't find the way improve this
  problem.
 
 
 
  Please someone know how fix it problem?
 
  Thanks in advance.
 
  Alex
 
 
 
  On Sat, Jul 5, 2014 at 2:00 PM, tinyos-help-requ...@millennium.berkeley.edu
   wrote:
  
   Send Tinyos-help mailing list submissions to
  
   tinyos-help@millennium.berkeley.edu
  
   To subscribe or unsubscribe via the World Wide Web, visit
  
   https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
  
   or, via email, send a message with subject or body 'help' to
  
   tinyos-help-requ...@millennium.berkeley.edu
  
   You can reach the person managing the list at
  
   tinyos-help-ow...@millennium.berkeley.edu
  
   When replying, please edit your Subject line so it is more specific
   than Re: Contents of Tinyos-help digest...
  
   Today's Topics:
  1. TinyDDS middleware make micaz error (anas alroubaiy)
  2. SHA1 error in tinyecc (Jisha Mary Jose)
  
   --
  
   Message: 1
   Date: Sat, 5 Jul 2014 00:06:46 +0300
   From: anas alroubaiy saba717...@hotmail.com
   Subject: [Tinyos-help] TinyDDS middleware make micaz error
   To: tinyos-help@millennium.berkeley.edu
  
   tinyos-help@millennium.berkeley.edu
  
   Message-ID: dub110-w1373e241c1d622bac37e1d2df...@phx.gbl
   Content-Type: text/plain; charset=windows-1256
  
   Hello all,
  
   I am trying to do make micaz for TinyDDS middleware application. it works
   fine
   with make micaz sim, but when i try to do make micaz in tinyos 2.1.2,
   ubuntu 12.04
  
   this error has occurred:
 from DDS.nc:49:
   In component `DymoServiceC':
   /home/ps3-279/tinyos-main/tos/lib/net/tymo/dymo/DymoServiceC.nc: At top
   level:
   /home/ps3-279/tinyos-main/tos/lib/net/tymo/dymo/DymoServiceC.nc:35:
   `VOLUME_DYMODATA' undeclared here (not in a function)
   /home/ps3-279/tinyos-main/tos/chips/at45db/At45dbStorageManagerC.nc:25:28:
  
   error: StorageVolumes.h: No such file or directory
   make: *** [exe0] Error 1
  
  
   Should i searched for the StorageVolumes.h and add it manually?
  
   Thanks in Advance
  
   -- next part --
   An HTML attachment was scrubbed...
   URL:
   https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/2014
   0705/84cdc6f4/attachment.html
  
   --
  
   Message: 2
   Date: Sat, 5 Jul 2014 14:23:32 +0530
   From: Jisha Mary Jose jishamary1...@gmail.com
   Subject: [Tinyos-help] SHA1 error in tinyecc
   To: tinyos-help@millennium.berkeley.edu,
  
   tinyos-help-requ...@millennium.berkeley.edu
  
   Message-ID:
   CADNVx9oa494qb4He33no15JPBXwC9_QVcccLNkm3pCVoCVx=
  
   7...@mail.gmail.com
   Content-Type: text/plain; charset=utf-8
  
   Hi,
  
   When I try to use the SHA1 function in tinyecc-2.0 IN TINYOS-2.1.2, i get
   the following error:
  
   IN the configuration file I give,
  
   implementation {
  
 components DisseminationC as App;
  
 App.SHA1 - SHA1M;
  
   }
  
   Here SHA1.nc is the interface file and SHA1M.nc is the module file.
  
   i get an error:
  
   In component `DisseminationAppC':
   DisseminationAppC.nc:19: expected component `SHA1', but got a component
   DisseminationAppC.nc:31: cannot find `SHA1M'
  
   HOW 

Re: [Tinyos-help] TinyDB : where can I find it?

2014-08-04 Thread Philip Levis

On Jul 17, 2014, at 9:33 AM, Cyril C ulrichcan...@yahoo.fr wrote:

 Thanks for your answer.
 So if TinyDB belongs to TinyOS 1, can I decently supposed that is it not 
 longer supported ? 
 

Correct. Hasn't been supported for almost a decade now.

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