Re: [Tinyos-help] PROBLEM WITH COMPILER

2014-12-27 Thread Antonio Linan
Did you "source environment.sh" ? --Antonio On Sat, Dec 27, 2014 at 7:40 AM, Eric Decker wrote: > > that's not a compiler problem. you haven't installed correctly. > > looks like you chmod'd the environment.sh shell script but never executed > it. > > > > what instructions did you follow for i

Re: [Tinyos-help] Gateway with Linux Vogage

2014-12-09 Thread Antonio Linan
You have to enable the environment variables first, just type: source /opt/environment.sh Then check for the connected mote: motelist If this yields no result, ensure the Z1 is properly connected, you can disconnect/connect again and type: dmesg | tail --Antonio On Tue, Dec 9, 2014 at 10:42

Re: [Tinyos-help] Z1 crystal oscillator

2014-09-30 Thread Antonio Linan
Hello Wasif, There are 2 crystalls, here are the part numbers: Abracon ABS07-32.768KHZ-7-T (32KHz) NDK NX3225SA-16.00MHZ-B3

Re: [Tinyos-help] msp430-gcc 4.6.3 increases image size

2014-07-24 Thread Antonio Linan
Try using msp430-gcc 4.7.2, the code produced is smaller. --Antonio On Thu, Jul 24, 2014 at 5:02 PM, Thomas Pötsch wrote: > Hi all, > > after upgrading from msp430-gcc 4.5.3 to 4.6.3 I noticed that the image > size > of PppRouter has increased by 1300 byte!! The same holds for other apps as >

Re: [Tinyos-help] Im unable to install msp430-46 compiler

2014-04-14 Thread Antonio Linan
To my knowledge the repository is broken, if you need only the compiler toolchain I can provide a link: http://sourceforge.net/projects/zolertia/files/Toolchain/ Cheers, --Antonio On Tue, Apr 15, 2014 at 4:04 AM, "Erdélyi Ádám [Edöm]" wrote: > Hola Jorge, > > this is an English speaking mailin

Re: [Tinyos-help] TYMO on TinyOS

2014-04-09 Thread Antonio Linan
> > add "sizeof(mhpacket_header_t)" and you are using "invalid pointer". >> > >> > I dropped to use TIMO after few weeks of endless JTAG debugging :-( >> > I wrote own implementation of MultiHop and Babel routing (not DYMO AODV >> > rou

Re: [Tinyos-help] TYMO on TinyOS

2014-04-04 Thread Antonio Linan
using "invalid pointer". > > I dropped to use TIMO after few weeks of endless JTAG debugging :-( > I wrote own implementation of MultiHop and Babel routing (not DYMO AODV > routing). > https://github.com/mcerveny/tinyos-main/tree/multi-hop-forwarding-with-babel-routing/tos/li

Re: [Tinyos-help] TYMO on TinyOS

2014-04-04 Thread Antonio Linan
step > or you have any document can help me !! > > SO thanks you > !! > > Trung > > > 2014-04-04 19:56 GMT+07:00 Antonio Linan : > >> What's wrong with the test application? >> >> https://github.com/tinyos/tinyos-main/tree/master/apps/tests/TestTymo

Re: [Tinyos-help] TYMO on TinyOS

2014-04-04 Thread Antonio Linan
What's wrong with the test application? https://github.com/tinyos/tinyos-main/tree/master/apps/tests/TestTymo --Antonio On Fri, Apr 4, 2014 at 2:52 PM, trung phạm wrote: > Please help me !! > my Project about TYMO > and I want to compile TYMO in TinyOS > So please guide me compile it... > thank

Re: [Tinyos-help] msp430-46 unable to install

2014-02-25 Thread Antonio Linan
See: http://tinyprod.net/debian-dev/README-46.html --Antonio On Tue, Feb 25, 2014 at 11:54 AM, Vandana Bhasin wrote: > Hello, > > I am unable to install the msp430-gdb-46 package. A similar error message > pops up for other msp packages > > apt-get install msp430-gdb-46 > Reading package lists.

Re: [Tinyos-help] Transformation of RssiNoiseSampling to RssiPacketSampling code

2014-02-25 Thread Antonio Linan
You must read the RSSI on received packets, you should be using instead: event message_t* Receive.receive(message_t* bufPtr, void* payload, uint8_t len) { printfUART("RSSI [%d] LQI [%d]\n", (call CC2420Packet.getRssi(bufPtr)-45), call CC2420Packet.getLqi(bufPtr)); You can wire CC2420Packet

Re: [Tinyos-help] msp430-4.6.3

2014-02-24 Thread Antonio Linan
You can also download a pre-compiled tarball at: http://sourceforge.net/projects/zolertia/files/Toolchain/ --Antonio On Tue, Feb 25, 2014 at 8:19 AM, Shobana K wrote: > try using the procedure from > > http://energy.eecs.umich.edu/wiki/doku.php?id=ref:tinyos:install:start > > wget > http://so

Re: [Tinyos-help] FCC rules question about motes

2013-12-12 Thread Antonio Linan
Telosb/Sky motes do not operate on sub-1GHz but on 2.4Ghz. The CC1120, Spirit1, etc, for example can operate on 433MHz, 863-868/902-928MHz band, but it does not have the FCC/CEPT label but TI provides information about how it is certifiable on specific regulation by demonstrating test results in c

Re: [Tinyos-help] CC2420 Security bug

2013-12-10 Thread Antonio Linan
And encryption worked again? --Antonio On Tue, Dec 10, 2013 at 2:32 PM, Łukasz Szubart <184...@student.pwr.wroc.pl>wrote: > I'm writing my engineering thesis about cc2420 AES encryption. I found > that there is a problem in tos 2.1.2. Neither CC2420SecurityTest nor > tutorial program fromhttp:/

Re: [Tinyos-help] Interoperability in ZigBee

2013-12-04 Thread Antonio Linan
See: http://web.univ-pau.fr/~cpham/WSN/iMote-XBee.html This mostly resumes it. Cheers, --Antonio On Wed, Dec 4, 2013 at 4:55 AM, Eric Decker wrote: > > > > On Tue, Dec 3, 2013 at 12:02 AM, Antonio Linan wrote: > >> Your lack of google-fu is dissapointing

Re: [Tinyos-help] Interoperability in ZigBee

2013-12-03 Thread Antonio Linan
Your lack of google-fu is dissapointing :) https://sites.google.com/site/compsciencemech/projects/tinyos-xbee-compliant-radio-stack http://www.youtube.com/watch?v=dOfrPTZdosQ I've made a Z1 talk to a XBee a long time ago for a mindless experiment, you need to adapt the AM message format to get ra

Re: [Tinyos-help] CC430

2013-11-19 Thread Antonio Linan
On Wed, Nov 20, 2013 at 1:15 AM, Eric Decker wrote: > > > > On Tue, Nov 19, 2013 at 1:49 PM, Antonio Linan wrote: > >> I have been using the msp430 x5xxx implementation from tp-master and had >> no problem, the I2C/SPI works great but I have not looked the ADC >>

Re: [Tinyos-help] CC430

2013-11-19 Thread Antonio Linan
I have been using the msp430 x5xxx implementation from tp-master and had no problem, the I2C/SPI works great but I have not looked the ADC implementation. I've ported the CC1120 from the Gnode's CC1101 driver (thanks Michiel bttw!) with CC1190 support for operation in compliance with FCC/CEPT/ARIB

Re: [Tinyos-help] Humidity sensor

2013-10-25 Thread Antonio Linan
t; to do things? > > Regards > A > > > > > On Friday, October 25, 2013 11:51 AM, Antonio Linan > wrote: > You should start by understanding where "stuff" is located, for example > a sensor: > > - tos/chips (generic implementation mostly targe

Re: [Tinyos-help] Humidity sensor

2013-10-25 Thread Antonio Linan
You should start by understanding where "stuff" is located, for example a sensor: - tos/chips (generic implementation mostly targeted for most platforms, check also tos/platforms for platform-specific wirings) - tos/platforms (implemented specifically for a given sensor). Subsequently there are t

Re: [Tinyos-help] RAM usage reduction

2013-10-21 Thread Antonio Linan
A couple of basic pointers: - Try using the msp430-gcc 4.7.x compiler, optimizes a tad better. - Disable printf's, and reduce the length of the printf's messages. - Use enum, define constants using the const keyword - Check for unused/over-dimensioned buffers. - Check your buffers and variable typ

Re: [Tinyos-help] Error: external interfaces cannot be connected with `<-' or `->'

2013-09-24 Thread Antonio Linan
Hard to say without looking more of the code, but normally: configuration fooC { provides { interface foome; } } implementation { components fooP; foome = fooP; As you are providing an interface, you have to indicate in which module it is actually implemented (the tasty meat). Ho

[Tinyos-help] Code coverage tool for TinyOS

2013-09-18 Thread Antonio Linan
Hello, Does anyone has worked with msp430-gcov tool before? or anything similar? I'm trying to check the code coverage of some tests, but so far I have not been successful. I'm able to generate the app.gcno map but unable to generate the .gcda data files, I'm unsure even if I got the first right.

Re: [Tinyos-help] msp430-gcc 4.7.0 overflows rom instead of using far rom

2013-08-08 Thread Antonio Linan
I have to update it, I will try to do this soon, I'm using: -mmemory-model=medium -ffunction-sections -fdata-sections -mcode-region=far -gc-sections Hope this helps, --Antonio On Thursday, August 8, 2013, Flemming Nyboe wrote: > Solved. > I had not defined a memory model. > Adding -mmemory-m

Re: [Tinyos-help] Back tracking the wiring of Components

2013-07-30 Thread Antonio Linan
Hello, Have you checked the generated app.c inside the build/ directory? this may give you a pointer. BR, --Antonio On Tue, Jul 30, 2013 at 11:45 AM, wasif masood wrote: > > Hi All, > > Is there any way to see the intermediate generated C file from my nesc > code, to confirm how actually the

Re: [Tinyos-help] XM1000 and I2C

2013-06-18 Thread Antonio Linan
I can only recommend to read the source code and see how the calls to the I2C drivers are made, that should give you a pointer on how to implement, basically you want to look at the interfaces I2CPacket and Resource, locate them in the SimpleTMP102P and start digging. --Antonio On Tue, Jun 18, 2

Re: [Tinyos-help] XM1000 and I2C

2013-06-18 Thread Antonio Linan
The XM1000 is basically a Z1 mote (both MCU are quite similar, I'm not being mean), you can see how the tmp102/sht2x sensors are implemented. The Z1 mote already has a built-in ADXL345 accelerometer, so reviewing the driver might save you some porting pain :) Cheers, --Antonio On Tue, Jun 18,

Re: [Tinyos-help] tos-bsl: command not found

2013-04-24 Thread Antonio Linan
Here's an example of the tinyos.sh script: ---! #! /usr/bin/env bash echo "Setting up for TinyOS 2.x" export TOSROOT= export TOSDIR= export MAKERULES= TOSROOT=/opt/tinyos-2.1.2 TOSDIR="$TOSROOT/tos" CLASSPATH=$CLASSPATH:$TOSROOT/support/sdk/java/tinyos.jar PYTHONPATH=.:$TOSROOT/support/sdk/pyth

Re: [Tinyos-help] Appending current time of day to wireless packets

2013-04-23 Thread Antonio Linan
A couple of options: 1) You could update the mote with a valid timestamp every now and then, from a BS mote connected to a PC host, with a script running on the PC updating the timestamp value through the serial port. 2) Add a RTC to your mote (I use a RTC with a I2C interface and an external bat

Re: [Tinyos-help] Z1 High speed i2c accelerometer sampling

2013-04-17 Thread Antonio Linan
readDone() event). Changing the ubr to 80 you can get a 87.912Khz clock (measured), with a reading time of 0.711ms. Hope this helps. Regards, --Antonio On Tue, Apr 16, 2013 at 10:29 PM, Antonio Linan wrote: > Hola! > > Yes, there might be room for improvement, if you look at the co

Re: [Tinyos-help] Msp430-47

2013-04-16 Thread Antonio Linan
Yup, Eric is right you should move to newer tinyos release and toolchain. But if you have to keep your old version for some reason (if you are working with older Blip version for example) you can take a look at /tos/platforms/z1/.platform file (point in ".platform" is intentional, if using Ubuntu

Re: [Tinyos-help] Z1 High speed i2c accelerometer sampling

2013-04-16 Thread Antonio Linan
Hola! Yes, there might be room for improvement, if you look at the code it has an active waits (around line 787) that slow the readings but were necessary at the time, also one could try and configure the I2C module with different settings (UBR for example) to see if more speed is allowed. I hav

Re: [Tinyos-help] Texas Instruments 900MHz Mote

2013-04-09 Thread Antonio Linan
You should take a look at the fine work Eric has done: https://github.com/tp-freeforall/prod /tos/platform/mm5s/ Regards, --Antonio On Tue, Apr 9, 2013 at 9:09 AM, Tim Godfrey wrote: > Hello, > > My question is, is the processor MSP430F5438A supported by tinyos? How > does one take compile

Re: [Tinyos-help] Help Regarding the Border Router On Z1 motes

2013-03-21 Thread Antonio Linan
elping out I will try and will get back to you if it works >> well. Thanks once again >> >> >> On Wed, Mar 20, 2013 at 2:10 PM, Antonio Linan wrote: >> >>> BTW, I'm using msp430-47, code size is a little smaller than msp430-46 >>> but neve

Re: [Tinyos-help] Help Regarding the Border Router On Z1 motes

2013-03-20 Thread Antonio Linan
BTW, I'm using msp430-47, code size is a little smaller than msp430-46 but nevertheless it compiles for both. --Antonio On Wed, Mar 20, 2013 at 3:08 PM, Antonio Linan wrote: > Makefile: > COMPONENT=PppRouterC > # PFLAGS += -DENABLE_SPI0_DMA > # PFLAGS += -DCC2420_DEF_CHAN

Re: [Tinyos-help] Help Regarding the Border Router On Z1 motes

2013-03-20 Thread Antonio Linan
gion `ram' > overflowed by 1218 bytes > > collect2: ld returned 1 exit status > make: *** [exe0] Error 1 > > Regard's > > > On Wed, Mar 20, 2013 at 1:29 PM, Antonio Linan wrote: > >> Add those defines to the Makefile, if you want to know where are defined >>

Re: [Tinyos-help] Help Regarding the Border Router On Z1 motes

2013-03-20 Thread Antonio Linan
e. That is why I asked > > whether that implementation is included in the latest release or not. > > I will change the code and will get back to you if I will need any > > further help. > > > > Thanks once again. > > > > Regard's > > > > On Wed

Re: [Tinyos-help] Help Regarding the Border Router On Z1 motes

2013-03-20 Thread Antonio Linan
Examples are self explanatory: make z1 blip install,2 bsl,/dev/ttyUSB1 Replace ttyUSB1 for whatever port the mote is assigned. --Antonio On Wed, Mar 20, 2013 at 11:58 AM, Antonio Linan wrote: > Read the wiki, again but carefully, it shows the files you need to change > for the applic

Re: [Tinyos-help] Help Regarding the Border Router On Z1 motes

2013-03-20 Thread Antonio Linan
Read the wiki, again but carefully, it shows the files you need to change for the applications to compile, and the code examples already points out how to set the node id on compilation (install,X where X is the desired ID). --Antonio On Wed, Mar 20, 2013 at 11:54 AM, Jhon James wrote: > Hello

Re: [Tinyos-help] Help Regarding TinyOS Setup

2013-03-19 Thread Antonio Linan
You downloaded: git clone -v git://github.com/tinyos/tinyos-release > >> this created a directory called tinyos-release in your current working >> directory.Which is what? >> > > I downloaded using above command which created a directory named > tinyos-2.x. The directory is placed in /ho

Re: [Tinyos-help] Send data from PC(Matlab) to serial

2013-03-18 Thread Antonio Linan
I believe you have to calculate the CRC and include it in your packet, also I would recommend to sniff the serial communication with a logic analyser. I have a very simple snippet of an earlier test code while building a library years ago, perhaps this can help (see below) Regards, --Antonio op

Re: [Tinyos-help] Help Regarding TinyOS Setup

2013-03-17 Thread Antonio Linan
Mmm instructions need to be updated to reflect the new repo at github... I'd install the toolchain following the instructions given in here: http://tinyprod.net/debian-dev/ Then get a fresh working copy from: git clone git://github.com/tinyos/tinyos-main.git And modify the tinyos.sh file from

Re: [Tinyos-help] Clock skew detected, your build may be incomeplete

2013-03-13 Thread Antonio Linan
Mmmm I haven't encountered this error while compiling, but from what I understand it could be due to timestamp mismatch between the source file and the targets. Good luck! --Antonio On Wed, Mar 13, 2013 at 5:22 PM, wasif masood wrote: > > Hi all, > > While compiling on Z1, I am getting this war

Re: [Tinyos-help] RAM usage of Blip 2

2013-02-13 Thread Antonio Linan
You could also change the following to: #define MAX_PARENT 1 #define ROUTE_TABLE_SZ 3 This gives ~8170 bytes in RAM, using msp430-47 toolchain. Regards, --Antonio On Wed, Feb 13, 2013 at 1:39 PM, Anton Hergenröder wrote: > Even doing so, i get following: > > compiled PppRouterC to bu

Re: [Tinyos-help] Epic Cape (802.15.4 wireless) for BeagleBone embedded Linux board

2013-01-10 Thread Antonio Linan
On Thu, Jan 10, 2013 at 10:53 PM, Christopher Wilson < cwil...@flyingcampdesign.com> wrote: > (apologies if this isn't the correct list to post about new hardware) > > Around new years I had day or two of free time and decided to create an > 802.15.4 cape for the BeagleBone Cape Contest > (http://

Re: [Tinyos-help] HW/SW Description of mote with TinyOS

2012-11-30 Thread Antonio Linan
I use something similar as I include default serial/RF commands in projects for debugging/maintenance, but feeding this info it is rather manual in command line/.h file, for an upcoming project I will try to fill the holes by taking the information from compilation time, when I have something I'll

Re: [Tinyos-help] How to program all the motes same time.

2012-11-16 Thread Antonio Linan
You have to be more specific about the type of mote you are using and don't expect any off-the-shell answer... For Z1 motes I create an udev rule naming each with its serial number, having /dev/Mote1, /dev/Mote2 instead of /dev/ttyUSB0... this avoids having to care about which ttyUSBx specific por

Re: [Tinyos-help] Z1 or TelosB maximum distances of its transceivers

2012-10-21 Thread Antonio Linan
On Sun, Oct 21, 2012 at 1:02 AM, wrote: > Dear all. > > According data sheet, Z1 or TelosB employs CC2420 (2.4 GHz). > > In most part of articles explains that this transceiver could reach a > distance of 230 m. > > After modeling an hypothetic case in the software called Radio Mobile > using a

Re: [Tinyos-help] Advice on Epic and TelosB

2012-09-10 Thread Antonio Linan
On Sun, Sep 9, 2012 at 11:22 PM, Eric Decker wrote: > > > On Sun, Sep 9, 2012 at 1:40 PM, Antonio Linan wrote: > >> The bigger telosb motes from advanticsys are actually a slightly >> different Z1 mote with a similar MCU and one additional sensor, so I can >> give

Re: [Tinyos-help] Advice on Epic and TelosB

2012-09-09 Thread Antonio Linan
The bigger telosb motes from advanticsys are actually a slightly different Z1 mote with a similar MCU and one additional sensor, so I can give you some advise (advertisement free). You shouldn't have problems working with BLIP other than it was deprecated in newer 2.1.2 release, so you will have t

Re: [Tinyos-help] Zolertia Z1 GPIO pull-up

2012-08-14 Thread Antonio Linan
I'm not sure, those are weak resistors, I normally avoid using the internal ones and use regular 10K for most sensors. Regards, --Antonio On Tue, Aug 14, 2012 at 10:26 PM, Gašper Černevšek wrote: > Well I checked out trunk again and tried test. It worked this time, then I > realized it was my m

Re: [Tinyos-help] Building your own Motes

2012-07-25 Thread Antonio Linan
If you need advice on how to start designing and creating a mote, maybe you better stick with commercial solutions. Sorry for being a party crasher :( --Antonio On Wed, Jul 25, 2012 at 7:13 PM, Siddharth Dagar wrote: > > Hello all > This is not directly related to TinyOS but I think this is pro

Re: [Tinyos-help] Signal processing

2012-06-15 Thread Antonio Linan
My two cents: http://zolertia.sourceforge.net/wiki/index.php/Advanced_Code_Examples_with_Z1#Include_C_functions_in_nesC_code Regards, --Antonio On Fri, Jun 15, 2012 at 9:18 PM, Sergio Valcarcel wrote: > Hi, > > Assuming you have followed all the tutorials, I understand your question > is how t

Re: [Tinyos-help] tinyos refuses to compile

2012-06-04 Thread Antonio Linan
Maybe you forgot installing nesc support? sudo *apt*-*get install nesc Regards, --Antonio * On Mon, Jun 4, 2012 at 2:43 PM, Yanbo SHOU wrote: > > Hi, > > I've tinyos-2.x installed on my PC (I downloaded it from google code > site), I worked perfectly. But after a system update (Ubuntu 12.04 x6

Re: [Tinyos-help] TinyOS applications to download

2012-05-30 Thread Antonio Linan
Some basic: http://zolertia.sourceforge.net/wiki/index.php/Mainpage:TOS_basic Some more elaborated: http://zolertia.sourceforge.net/wiki/index.php/Mainpage:TOS_advanced And others: http://zolertia.sourceforge.net/wiki/index.php/Mainpage:TOS_apps Keep in mind some will only work with 2.1.1 releas

Re: [Tinyos-help] CoAP on Zolertia Z1

2012-02-14 Thread Antonio Linan
On Tue, Feb 14, 2012 at 7:07 PM, Steven Dorigotti wrote: > Symptoms: > - CoAP transmissions fail (echo -e -n \\x02 | ./coap-client -m put > coap://[fec0::3]:61616/l -T 3a -t binary -f -) > - ping6 fec0::1 is ok, fec0::3 is not > Mote 3 should respond to the ping6 requests to begin with... does th

Re: [Tinyos-help] Attaching external LED to MicaZ mote

2012-02-06 Thread Antonio Linan
See how the leds are implemented in the tos/platform/mica/micaz (micaz uses many resources of mica, see .platform file to see what pulls in). PlatformLedsC is the file you should begin looking. It should be pretty straightforward, just try it first. --Antonio. On Mon, Feb 6, 2012 at 8:39 PM, S

Re: [Tinyos-help] Problem ADC with MSP430 in tinyos 2.1

2011-09-27 Thread Antonio Linan
Jan is right, no calls to Control.start() are made, also you should do something like: event void Control.startDone(error_t err) { if (error == SUCCESS){ // continue } else { call Control.start(); } To ensure is running, you can also consider to use leds to ease the debugging process.

Re: [Tinyos-help] Weird temperature measurements on telosb

2011-07-24 Thread Antonio Linan
Also, make sure the battery level is between the recommended values of operation of your temp sensor, below. Just to be sure. Antonio, On Sun, Jul 24, 2011 at 6:11 PM, José A. Tarifa wrote: > Hi! > > These results are the output of the Analog to Digital Converter (ADC12). You > have to make sur

Re: [Tinyos-help] How to define dbg(X, fmt, args ...) since the printfUART.h not available to IRIS platform

2011-06-08 Thread Antonio Linan
If you're using printfUART with telosb/Z1 motes, be sure to double check this: Add to your Makefile: CFLAGS += -DPRINTFUART_ENABLED Include the library: #include "PrintfUART.h" Initialize the component (preferable at boot.booted) printfUART_init(); Test it: printfUART("Hello\n"); If you want t

Re: [Tinyos-help] On JTAG adapter for Telos

2011-05-17 Thread Antonio Linan
If you need a JTAG connector: http://shop.zolertia.com/accessories/20-jtag-header-kit.html And also something like the Texas Instruments USB FET programmer. Antonio. On Tue, May 17, 2011 at 11:22 PM, Jun wrote: > Hi All, > > I need to use JTAG to debug TOS on telosb mote. It seems that I'll >

Re: [Tinyos-help] Fwd: [tinyos-help] Get the level energy in Wireless Sensor Network

2011-05-12 Thread Antonio Linan
Energy levels of a sensor or a mote? If you mean the sensor, oddly, for example the Sht1X has a register which can be read to know when VCC is below the recommended level. If you mean reading the mote's energy.. reading the battery level periodically? using the ADC ports? It would help a LOT if y

Re: [Tinyos-help] TinyOS related questions

2011-05-12 Thread Antonio Linan
On Thu, May 12, 2011 at 7:49 PM, wrote: > Hi, > I have some TinyOS related questions! > > Whats the difference between: > a.) signal event(...); > b.) atomic signal event(...); This means the code section within the atomic curly braces (or the line in this case) will execute without preemption.