[Tinyos-help] Multiple sends in TinyOS2.x through serial port with different kind of messages

2011-01-03 Thread Sergio Valcarcel
Happy New Year Please, regarding the discussion in: http://www.mail-archive.com/tinyos-help@millennium.berkeley.edu/msg10654.html I do not see how to use the queue when using different kind of messages. In this case I think that different instances of AMSend suits better. Should I have to us

Re: [Tinyos-help] Multiple sends in TinyOS2.x through serial port with different kind of messages

2011-01-03 Thread Sergio Valcarcel
them. What do you think? Thanks! Sergio On Mon, Jan 3, 2011 at 7:34 PM, Eric Decker wrote: > > > On Mon, Jan 3, 2011 at 7:49 AM, Sergio Valcarcel > wrote: >> >> Happy New Year >> >> Please, regarding the discussion in: >> >> http://www.mail-arc

Re: [Tinyos-help] How to transmit data

2011-01-04 Thread Sergio Valcarcel
Hi Sivasankar, this is easy ;-) There are a bunch of very good tutorials covering all the basic topics. This one is about radio transmission: http://docs.tinyos.net/index.php/Mote-mote_radio_communication Cheers, Sergio On Tue, Jan 4, 2011 at 8:15 AM, SHIVASANKAR GANESAN wrote: > Hi > > I n

Re: [Tinyos-help] Multiple sends in TinyOS2.x through serial port with different kind of messages

2011-01-04 Thread Sergio Valcarcel
ueResult.dequeue(); busySerialTx = FALSE; post serialSend (); } Thanks!!! Sergio On Mon, Jan 3, 2011 at 9:07 PM, Eric Decker wrote: > > > On Mon, Jan 3, 2011 at 11:45 AM, Sergio Valcarcel > wrote: >> >> Dear Eric, >> >

Re: [Tinyos-help] Reg:RSSI_VAL register

2011-01-10 Thread Sergio Valcarcel
Hi, not really, you just need to event message_t * BeaconReceive.receive(message_t *msg, void *payload, uint8_t len){ uint16_t beaconId; if ( len == sizeBeacon ) { atomic { beaconId = pointerBeacon->beaconId; pointerBeacon = (BeaconMsg*) payload; beaconInfo.beaconId = pointerBeacon->beaconId; be

Re: [Tinyos-help] Reg:RSSI_VAL register

2011-01-10 Thread Sergio Valcarcel
Hi, not really, you just need to use the interface CC2420Packet, that is provided by component CC2420PacketC. uses { interface Receive as BeaconReceive; interface CC2420Packet as RadioPacket; } Then, when you receive the message (in my example is a struct of type BeaconMsg) event messag

Re: [Tinyos-help] Reg:RSSI_VAL register

2011-01-10 Thread Sergio Valcarcel
Hi, not really, you just need to use the interface CC2420Packet, that is provided by component CC2420PacketC. uses { interface Receive as BeaconReceive; interface CC2420Packet as RadioPacket; } Then, when you receive the message (in my example is a struct of type BeaconMsg) event messag

Re: [Tinyos-help] Reg:RSSI_VAL register

2011-01-11 Thread Sergio Valcarcel
; > > * > While compiling this file, I am getting error > > *"RadioPacket.getRssi not connected"* > * > * > Why it is not connected?.How to solve this error. > >** > *With regards* > *Sivasankar* > > > --- On *Mon, 10/1/11, Sergio Valcarc

[Tinyos-help] Problem flashing imote2

2011-01-11 Thread Sergio Valcarcel
Hi, when flashing one of our imote2, it does not go beyond "erasing flash". However, when connecting through openocd the hardware is properly recognized (see below). Any idea what could I try? openocd -f interface/olimex-arm-usb-tiny-h.cfg -f board/crossbow_tech_imote2.cfg Open On-Chip Debugger 0

[Tinyos-help] How to software RESET imote2?

2011-01-11 Thread Sergio Valcarcel
Hi, I would like to reset imote2 by software. Do you have any idea how to do that? Is there any way to set up a watchdog? Thanks so much!! Sergio ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bi

Re: [Tinyos-help] Include C file in nesC code

2011-01-12 Thread Sergio Valcarcel
Hi Pedro, in another mail-thread there are explained two ways of calling C functions from a nesC application. Check this: http://www.mail-archive.com/tinyos-help@millennium.berkeley.edu/msg35149.html The quick & dirty way is embedding the C function into the nesC file. I did it and works properly

Re: [Tinyos-help] Include C file in nesC code

2011-01-12 Thread Sergio Valcarcel
I forgot to mention that you should #include "source.h" in your "source.c" as it is obvious ;-) On Wed, Jan 12, 2011 at 11:30 AM, Sergio Valcarcel wrote: > Hi Pedro, > > in another mail-thread there are explained two ways of calling C > functions from a nesC

Re: [Tinyos-help] Include C file in nesC code

2011-01-13 Thread Sergio Valcarcel
. > First of all, thank you for your help. However, I did also checked that > thread and tried it. It didn't work. > I think I'll just port my C functions to a nesC component. > Thank you anyway. > Regards, > Pedro Nunes > > On Wed, Jan 12, 2011 at 10:30 AM, Sergi

Re: [Tinyos-help] Include C file in nesC code

2011-01-13 Thread Sergio Valcarcel
ust the way you said and my error message remains: > "gcc: cannot specify -o with -c or -S with multiple files > make: *** [sim-exe] Error 1" > Thank you once again for your help! :) > Best regards, > Pedro Nunes > On Thu, Jan 13, 2011 at 5:14 PM, Sergio Valcarcel > wr

Re: [Tinyos-help] Include C file in nesC code

2011-01-13 Thread Sergio Valcarcel
ergio. >> > I hadn't done that yet. >> > But I tried now just the way you said and my error message remains: >> > "gcc: cannot specify -o with -c or -S with multiple files >> > make: *** [sim-exe] Error 1" >> > Thank you once again for your

Re: [Tinyos-help] Assistance in the Timer

2011-01-16 Thread Sergio Valcarcel
Hi Yasserz, You may have a look at the wonderful tutorials available in http://docs.tinyos.net/index.php/TinyOS_Tutorials Further this, you can find all the interfaces and how to use them in the folder interfaces inside the tinyos tree. It is even more accesible if you use the Yeti2 plugin for Ecl

Re: [Tinyos-help] How to send a message bigger than 2kb

2011-01-18 Thread Sergio Valcarcel
Hi Ranal, I am not an expert, but some colleagues from me made many experiments and I remember they told me that the problem is also in the SPI buffer which is 128bytes maximum. So if you remove 14 bytes needed for the header, you can only use 114bytes. Cheers! Sergop On Tue, Jan 18, 2011 at 4:1

[Tinyos-help] Consensus and gossip algorithms

2011-01-20 Thread Sergio Valcarcel
Hi, Do you know any one with an open TinyOS implementation of consensus and gossip services for distributed computing? Thanks! Sergio ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/l

Re: [Tinyos-help] Reg:Read RSSI

2011-01-27 Thread Sergio Valcarcel
I'd guess the problem may be in your code rather in the CC2420PacketP module. Perhaps you could try to compile a minimal program and if you still have the same problem, then attach the code. Furthermore, are you using the newest TinyOS version? Cheers! Sergio On Thu, Jan 27, 2011 at 11:51 AM, S

Re: [Tinyos-help] 32kHZ Timer on Intelmote2

2011-02-03 Thread Sergio Valcarcel
d1Toggle(); >> call Leds.led2Toggle(); >> } >> >> Leds should be "on" almost immediately after start of the mote ( to be >> exact after 1/32768 [s] + small delay for reaction). It is not the case, >> they are turning on after [!] ~10 second, as if

Re: [Tinyos-help] Help needed Mote to Pc Communication

2011-02-10 Thread Sergio Valcarcel
Hi Lulu, I assume you are familiar with MIG. If it is not the case you should have a look at: http://www.tinyos.net/tinyos-1.x/doc/nesc/mig.html http://docs.tinyos.net/index.php/Mote-PC_serial_communication_and_SerialForwarder http://www.tinyos.net/tinyos-1.x/doc/tutorial/lesson6.html I usually

Re: [Tinyos-help] Imote2 ARM-USB-OCD

2011-02-22 Thread Sergio Valcarcel
Hi Minh, First of all, what version of openocd are you using? You can figure it out just by launching the command "openocd" with no arguments. I would strongly recommend to use the last version 4.0, which can be downloaded from http://openocd.berlios.de/web/ Secondly, you may be using the H versi

Re: [Tinyos-help] Re : Imote2 ARM-USB-OCD

2011-02-23 Thread Sergio Valcarcel
ha wrote: > I use the last version of openocd. The problem is that i use ARM-USB-OCD > not ARM-USB-TINY. The .cfg file is different. I tried to modified the .cfg > file but it does not work. > > -- > *De :* Sergio Valcarcel > *À :* minh ha

Re: [Tinyos-help] sending a string from tinyos

2011-02-23 Thread Sergio Valcarcel
Yep, you just have to include the array inside the type of message struct. Also, you can assign structs with = even when their type include an array (but sometimes it is a bit tricky so use memcpy if you feel more confortable). On Wed, Feb 23, 2011 at 8:49 AM, 崔晓宗 wrote: > you can send the string

Re: [Tinyos-help] sending a string from tinyos

2011-02-23 Thread Sergio Valcarcel
Yep, I would say this is the right way fo doing it. In the case you get a string with "Hello123", obviously you will get the decimal values of the chars and those of the char numbers so you always can convert to ASCII. Furthermore, you can tune your automatically generated JAVA classes very easil

Re: [Tinyos-help] How to regulate the transmit power of a Sentilla JCreate Perk mote.

2011-03-16 Thread Sergio Valcarcel
Hi, I have no idea on Sentilla platform. Does it run TinyOS? In the case yes, you only have to use the CC2420Packet interface, inside module CC2420PacketP.nc, in /opt/tinyos-2.1.1/tos/chips/cc2420/packet. And call the commands CC2420Packet.setPower. Otherwise, I have no idea :-( Cheers! Sergio

Re: [Tinyos-help] IRIS | RSSI to Distance

2011-04-06 Thread Sergio Valcarcel
Regarding the propagation model, it depends on the kind of environment (e.g. indoor or outdoor, static or mobility, etc.). Each model has always some free parameters that can be estimated theoretically or using real data. So once you have chosen a specific model for a specific environment, you wil

Re: [Tinyos-help] SVM on nesc

2011-04-08 Thread Sergio Valcarcel
Hi, Interesting links... For such a kind of signal processing (involving optimization and so on). I would embed many C functions instead of coding everything in nesC. In my case I feel more comfortable. What is your opinion, would you rather code everything in tasks and modules? Cheers! Sergio

Re: [Tinyos-help] why use “atomic” keyword in /apps/BaseStation/BaseStationP.nc

2011-04-14 Thread Sergio Valcarcel
and) is sync and it could only be preempted by an async > function (for example: an interrupt handler). But, obviously, uartIn and > uartQueue is private and can't be accessed in any async function. So, I > think it's useless to put atomic here. > > Best Regards, > Ru

Re: [Tinyos-help] Exchanging floating point variables between telosb motes using nx_float

2011-04-17 Thread Sergio Valcarcel
I use float too because saves me time in coding, but I consider that for final application convert to integer before transmission would be more efficient in terms of bandwidth. Of course it depends on the number of motes that are transmitting at the same time. I did not find any nx_float in the t

Re: [Tinyos-help] Injecting packets for tiny OS 2

2011-05-09 Thread Sergio Valcarcel
eady made the some of the tutorials, like BlinkToRadio, BaseStation, > and RssiDemo, but I wasn't acquainted with the command send power. If it is > possible can you send me a link with a proper tutorial or turorials. I will > be very grateful. > > Thanks in advance. > > /L

Re: [Tinyos-help] Boadcasting packets once at a time!!

2011-05-09 Thread Sergio Valcarcel
Regarding the noise floor, you can directly look at the "receiver sensitivity" on the radio specifications. That is the minimum level that you will be able to get. I think that is all, unless you mean about interferences... But anyway, I would say that you can not measure interference from other se

[Tinyos-help] LocalIeeeEui64C not found when using ActiveMessage

2011-05-10 Thread Sergio Valcarcel
Hi, I have installed a new toolchain for imote2 in a 64bit machine. After setting up all the environment I am able to make the Blink application and it works fine. However, when I try to make any application involving ActiveMessage then it gives this weird message: In file included from /opt/tiny

Re: [Tinyos-help] LocalIeeeEui64C not found when using ActiveMessage

2011-05-10 Thread Sergio Valcarcel
Hi, It seems that the Dummy Extended Address, named LocalIeeeEui64C, has been included for micaz, but not for intelmote2. So as the /opt/tinyos-2.x/tos/chips/cc2420/control/CC2420ControlC.nc file wires it, and the //uses interface LocalIeeeEui64; On Tue, May 10, 2011 at 2:03 PM, Sergio

Re: [Tinyos-help] LocalIeeeEui64C not found when using ActiveMessage

2011-05-10 Thread Sergio Valcarcel
explanation of LocalIeeeEui64C functionality and how it can be ported to intelmote2 would still be very appreciated :-) Thanks! Sergio On Tue, May 10, 2011 at 4:56 PM, Sergio Valcarcel wrote: > Hi, > > It seems that the Dummy Extended Address, named LocalIeeeEui64C, has > been

Re: [Tinyos-help] LocalIeeeEui64C not found when using ActiveMessage

2011-05-10 Thread Sergio Valcarcel
On Tue, May 10, 2011 at 5:01 PM, Sergio Valcarcel wrote: > Oops, I sent without finishing... > > It seems that the Dummy Extended Address, named LocalIeeeEui64C, has > been included for micaz, but not for intelmote2. > So as the /opt/tinyos-2.x/tos/chips/cc2420/control/CC2420ControlC.

Re: [Tinyos-help] Fwd: [Tinyos-devel] imote2 being used?

2011-05-12 Thread Sergio Valcarcel
Hi, We are using actively the imote2 for distributed signal processing under TinyOS. I know that some other Spanish groups are using it as well. The problem of going to Linux is that we would missed the possibility of playing with an even-oriented OS, which most likely is gonna be the standard ap

Re: [Tinyos-help] Urgent Help Require: Surge_Reliable Application

2011-05-13 Thread Sergio Valcarcel
Hi Nazmul, I have no used serial connections for a while but I would say that COM4 sounds like Windows, while it seems you are programming in a Linux shell using the /dev/ttyS3. So I would recommend you to check the tutorials to see whether you are setting the serial forwarder properly. The resyn

Re: [Tinyos-help] Relationship between noise floor and channel quality

2011-05-31 Thread Sergio Valcarcel
Hi Peng, For a given bandwidth, the capacity of a channel is function of the signal to noise ratio. Neither the noise, nor the signal alone, but what matters is how larger is the signal with respect to the noise. In fact, you should treat as noise any other channel disturbance, like interference.

[Tinyos-help] How to set TinyOS-2.1.1 and imote2 toolchain in Ubuntu 10.10 with an Intel 64 bits machine

2011-06-01 Thread Sergio Valcarcel
Hi, I wrote a short guide with the steps that I followed to set TinyOS-2.1.1, and to build an updated imote2 toolchain, in Ubuntu 10.10, for an Intel 64 bits machine. The compiler is gcc­4.3.5, with newlib­1.19.0 and binutils­2.20.90. I use also nesc-1.3.2. Indeed it is just an extension of the

Re: [Tinyos-help] Blink problem using Tinyos-2.x in intelmote2

2011-06-13 Thread Sergio Valcarcel
Dear Junaid, When you say USB bootloeader, do you mean that you are using OpenOCD with the corresponding Olimex board for programming the imote2? In such a case, what is the output of "openocd ­f /usr/local/share/openocd/scripts/interface/olimex­arm­usb­ tiny­h.cfg ­f /usr/local/share/openocd/scri

Re: [Tinyos-help] Distance Calculations with RSSI

2011-06-15 Thread Sergio Valcarcel
Hi Mathew, As you pointed RSSI is not a very accurate estimator of distance, mainly in indoor, however, it still can be useful if you use a powerful inference algorithm. Time Delay of Arrival could be a much more accurate variable, but then you need specific radios, I think the CC2420 does not al

Re: [Tinyos-help] interference and RSSI

2011-06-15 Thread Sergio Valcarcel
Hello Peng, it is quite simple. RSSI is measuring power, it does not matter quite much whether it comes from noise, interference or useful signal. That is the reason because there is another quality indicator which measures signal to noise ratio. Cheers! Sergio On Wed, Jun 15, 2011 at 4:14 PM,

Re: [Tinyos-help] interference and RSSI

2011-06-15 Thread Sergio Valcarcel
aused by nearby communications? > > And what is the other indicator in CC2420? Is it LQI? Or it has to be > manually calculated? > > Cheers, > > Peng > > On 15 June 2011 16:00, Sergio Valcarcel wrote: > > Hello Peng, > > it is quite simple. RSSI is measuring power, it

Re: [Tinyos-help] BaseStation Mote Changing Serial Port.

2011-06-16 Thread Sergio Valcarcel
Hi, just mention that sometimes happen that one removes the USB while the serial port is still opened, and then the driver locks it and creates a new one- Cheers! Sergio On Thu, Jun 16, 2011 at 2:55 PM, colum walsh wrote: > Hi Romain, > > the port changes while SerialForwarder is running. It t

Re: [Tinyos-help] radio model CC2420

2011-06-19 Thread Sergio Valcarcel
Hi Hugo, there is no gain in a radio chip, that concept is more related to the antenna and it is usually a fix parameter based on the radiation pattern. However, you can set the transmitting RSSI (power) using the CC2420Packet interface. Have a look into the tos chips cc2420 interfaces and you wi

Re: [Tinyos-help] Unknown error

2011-06-19 Thread Sergio Valcarcel
Just a hint that may (or may not) help... Are you using a 64bit or 32 bit system? Are both versions of the toolchain available in the repository? Cheers! Sergio On Sun, Jun 19, 2011 at 4:03 PM, Martin Zoller wrote: > ** > Hi Adel, > What exactly are you compiling, i.e. where are you doing "make

Re: [Tinyos-help] Unknown error

2011-06-19 Thread Sergio Valcarcel
eive that both versions are available in the repository. > > Best regards, > Adel. > > On Sun, Jun 19, 2011 at 10:07 AM, Sergio Valcarcel > wrote: > >> Just a hint that may (or may not) help... >> Are you using a 64bit or 32 bit system? >> Are both versions of th

Re: [Tinyos-help] Re cieve event not working properly

2011-06-20 Thread Sergio Valcarcel
Hi, just fast guessing... I have not understood, are you sure that the other mote is transmitting every time, or just once? You could set a led in the transmitter to check it. Cheers! Sergio On Mon, Jun 20, 2011 at 8:54 PM, mjac...@hofstra.edu < mjac...@pride.hofstra.edu> wrote: > > Hello, > >

Re: [Tinyos-help] Question about Receive interface

2011-06-25 Thread Sergio Valcarcel
Hi, The receive even is not a command, but an asynchronous event that is signaled every time the radio chip gets a message of the predefined type (defined as an AM channel number in the configuration). You may really want to read the Tutorial Mote-2-Mote radio communication. It will help you a lo

Re: [Tinyos-help] RSSI technique

2011-06-30 Thread Sergio Valcarcel
Hi Vinodh, You may want to read the more-to-mote radio communication tutorial. Then, you can set and read the rssi using the CC2420Packet interface. That's all! I have no sample code right here but it is quite straightforward. Cheers! Sergio On Thu, Jun 30, 2011 at 10:16 PM, vinod kumar wrote:

Re: [Tinyos-help] display the value of temperature

2011-07-03 Thread Sergio Valcarcel
Yes, it is really simple. Use mig to generate the Java class associated with the message you send from the mote to the PC. Then register the listener for that AM channel. Finally, every time your listener receives a message use the automatically generated methods (with mig) for extracting values.

Re: [Tinyos-help] C Program on Ubuntu to MicaZ communication

2011-07-12 Thread Sergio Valcarcel
Hi, The idea is there: 1. Implement a program that is able to send and receive data through serial port. You may search for terms like: program serial port linux programming.Try this program communicating 2 PCs. 2. You can send a command just moving the data, but you may have to re

Re: [Tinyos-help] C Program on Ubuntu to MicaZ communication

2011-07-12 Thread Sergio Valcarcel
wrote: > Hey!! > > I got a code working, i can read data coming in from the motes over USB. > When i send the data, my mote is unable to handle it. I'm now stuck here, > on the mote end. Can you help?? > > Always Yours > Tejovanth > Tj n Spook > > >

Re: [Tinyos-help] Printing floats???

2011-07-28 Thread Sergio Valcarcel
Hi, In the case you want to use MIG and a struct message you still can use floats, but then you can't use an nx_ network type but a regular one. However, I guess you mean using the printf library, but I have no much experience with it. Cheers! Sergio On Thu, Jul 28, 2011 at 11:50 PM, Harsha Ch

Re: [Tinyos-help] Least Mean Square

2011-08-06 Thread Sergio Valcarcel
Hi Nahr, My suggestion is to program the mathematical parts in C and the communication parts in nesC. Good luck! Sergio On Sat, Aug 6, 2011 at 1:03 AM, Nahr Elk wrote: > Hello, > > I would like please to implement the least mean square algorithm on sensors > using nc language. > Is this feasib

Re: [Tinyos-help] Least Mean Square

2011-08-06 Thread Sergio Valcarcel
application, isn't it? > > Ok, I will try this. > > Thank you. > > Best regards, > Nahr Elk > > > 2011/8/6 Sergio Valcarcel > >> Hi Nahr, >> >> My suggestion is to program the mathematical parts in C and the >> communication parts in n

Re: [Tinyos-help] Porting c code with nc one

2011-09-10 Thread Sergio Valcarcel
and multiple languages. >> Noting that I am now testing my code with Tossim. >> >> Best regards, >> Maissa Ben Jamaa >> >> >> 2011/9/8 Sergio Valcarcel >> >>> Dear Maissa, >>> >>> Please, check this thread: >>> &

Re: [Tinyos-help] AMSenderC question

2011-09-17 Thread Sergio Valcarcel
Hi Jude, That's a basic question on the use of the communication capabilities of TinyOS and, in my opinion, one of its strengths. You can start following this tutorial: http://docs.tinyos.net/tinywiki/index.php/Mote-mote_radio_communication And you may be interested to have this reference: http://

Re: [Tinyos-help] help: regarding the project

2011-11-06 Thread Sergio Valcarcel
Hi Shailendra, I recommend you to follow the tutorials: http://docs.tinyos.net/tinywiki/index.php/TinyOS_Tutorials There are some ad-hoc protocols for multi-hoping. You can read about that in those tutorials and references therein. There is also BLIP, an implementation of IPv6, so you can researc

Re: [Tinyos-help] Problem Sending data to the serial port

2012-01-16 Thread Sergio Valcarcel
Hi, I may not quite understand, but there should be quite transparent. The address should not make any difference when sending to the serial port. I assume that you have created the corresponding components SerialActiveMessageC and components new SerialAMSenderC(AM_TEST_SERIAL_MSG) don't you? How

Re: [Tinyos-help] Graphical interface showing communicating motes

2012-01-27 Thread Sergio Valcarcel
Hi, You are able to show something like leds switching right? The next step in your demo might be to make a GUI in Java with some buttons like switch on/off the 3 leds on the other mote; another example may be text box in which the user can write a number (0-7) and click a button to send it to th

Re: [Tinyos-help] localisation of wireless sensor network using RSSI

2012-02-02 Thread Sergio Valcarcel
Hi Obinna, I do not quite understand your question. On one hand, IEEE 802.15.4 is a Medium Access Control protocol, i.e. it is in charge of sharing the air (more specifically the RF spectrum) to enable many users communicate in the same channel at almost the same time. On the other hand, localiz

Re: [Tinyos-help] tiny os project

2012-02-03 Thread Sergio Valcarcel
Hi, You may start reviewing the tutorials to understand how to make a state machine in the motes, using timers, communications and so on. Cheers! Sergio On Wed, Feb 1, 2012 at 12:11 AM, Ali Daylamani wrote: > dear friends** > can any body help me to write this application? > I have to

Re: [Tinyos-help] An event receive is executed repeatedly

2012-02-03 Thread Sergio Valcarcel
Hi, I do not know the encryption-functionality, but regarding the serial communication, have you tried to check what the Java program is transmitting? Try to connect it to serial terminal in another computer. Also, you may try to implement a minimal serial-to-serial communication program so every

Re: [Tinyos-help] tiny os project

2012-02-04 Thread Sergio Valcarcel
. Good luck! Cheers!!! Sergio On Fri, Feb 3, 2012 at 8:18 PM, Ali Daylamani wrote: > I have started reading the tutorials,and I know some basical things,but I > have no idea about how can I write this program. > I have to simulate 50 nodes whith tossim.. can u help me? > >

Re: [Tinyos-help] localisation of wireless sensor network using RSSI

2012-02-05 Thread Sergio Valcarcel
s like (1) how can a > make an ordinary node(telosb mote) to become a beacon node without using > GPS (2) How can i measure the RSSI when two motes are communicating. > > your timely answers will be welcomed > > many thanks > Obinna > > --- On *Thu, 2/2/12, Sergio Valc

Re: [Tinyos-help] wireless spectrum analyzer

2012-02-08 Thread Sergio Valcarcel
Hi, Everything depends on how much you want to spend. Think that a spectrum analyzer (SA) does not analyze protocols, but rather it will help you to check the RF front end. If you go to the IEEE 802.15.4 standard you will find a special chapter in which all the RF parameters are defined (for the

Re: [Tinyos-help] Simulation GUI

2012-02-10 Thread Sergio Valcarcel
Hi, I have recently moved to Contiki OS. It comes with a wonderful simulator named Cooja. Cheers! Sergio On Thu, Feb 9, 2012 at 6:56 PM, Varun Agrawal wrote: > Does anyone know of any GUI based simulation tool for TinyOS 2.1? Like > TinyViz but for 2.x. I need to visualize the nodes but withou

Re: [Tinyos-help] Reading from UARTstream

2012-02-12 Thread Sergio Valcarcel
Hi, I have not used Tiny OS for many months now, but I do not quite remember to use the command directly. I think that when using that class you are launching a thread for listening. But you also need another class to set what you want to do with the incoming packets. But I insist that I am not q

Re: [Tinyos-help] Reading from UARTstream

2012-02-12 Thread Sergio Valcarcel
drás Bíró > Hi, > > On Sun, Feb 12, 2012 at 12:17 PM, Sergio Valcarcel > wrote: > > Hi, > > > > I have not used Tiny OS for many months now, but I do not quite remember > to > > use the command directly. > > I think that when using that class you are lau

Re: [Tinyos-help] Reading from UARTstream

2012-02-12 Thread Sergio Valcarcel
(e.g. green if success, red if not) and check whether the SerialForwarder is coherent with the leds. Good luck! Sergio 2012/2/12 Sergio Valcarcel > Hi, > > About the original problem: Listen waits for very specific message >> format (framed, escaped, checksumed, and it has a head

Re: [Tinyos-help] Need for help

2012-02-13 Thread Sergio Valcarcel
Hi, no idea at all. Probably you are interested in developing using the programming model of Tiny OS. On one hand that would be great in order to have available more signal processing components (like audio compression). But on the other hand I found that it takes quite a lot of time at the begin

Re: [Tinyos-help] Need for help

2012-02-13 Thread Sergio Valcarcel
if you tell > about such techniques to compress data locally in a sensor node before > transmission. Have you heard about Intel IIP for that ?! > > ------ > *From:* Sergio Valcarcel > *To:* Mashal al-shboul > *Cc:* "tinyos-help@mi

Re: [Tinyos-help] send, senddone and receive

2012-02-15 Thread Sergio Valcarcel
Hi, No idea. It should not be like that. Have you tried with only one node or many? If there are many perhaps you are getting a message from another one. Otherwise there may be something wrong in your code... Cheers! Sergio On Wed, Feb 15, 2012 at 4:33 PM, Omar Cheikhrouhou (yahoo) < enis01a...

Re: [Tinyos-help] Problem reading a mote over the serial port in Matlab

2012-02-15 Thread Sergio Valcarcel
No much idea about the printf and how to read the std output from Matlab... But I encourage the mote2pc tutorial, MIG is great and you will find it very easy to use. And I am sure that getting values from the serial port with Matlab is not difficult, indeed you can convert the MIG-generated Java cl

Re: [Tinyos-help] Output power at each power level from 0 to 31 for CC2420

2012-02-21 Thread Sergio Valcarcel
Hi, this is what I measured one and a half year ago using an iMote2 and a spectrum analyzer, I actually demodulated the signal so you can be sure that the values are quite accurate. However the weird thing is that the mote did not rise to 0dBm, but only to -4dBm. Sorry, I did not remember whether

Re: [Tinyos-help] Output power at each power level from 0 to 31 for CC2420

2012-02-21 Thread Sergio Valcarcel
ttenuator over the antenna or measuring the power some > distance away? I'm not familiar with spectrum analyzer, so I'm just giving > some naive guess here. > > > On Tue, Feb 21, 2012 at 7:52 AM, Sergio Valcarcel wrote: > >> Hi, >> >> this is what I mea

Re: [Tinyos-help] Output power at each power level from 0 to 31 for CC2420

2012-02-21 Thread Sergio Valcarcel
s too > large for my purpose. > > Or has anyone got a measurement conforming to the datasheet? > > On Tue, Feb 21, 2012 at 12:20 PM, Sergio Valcarcel > wrote: > >> Hi >> >> We sold a sma connector to the iMote2 board which was connected directly >>

Re: [Tinyos-help] Finite field library

2012-02-22 Thread Sergio Valcarcel
Hi, no idea, but every time that I see this kind of questions I always tell that it is possible to use std C functions in nesC. Look for it in the maillist archives (though sometimes it is a bit tricky to share the variables between nesC module and C functions). I hope this helps! Sergio On Tu

Re: [Tinyos-help] Select the channel in nesc

2012-02-24 Thread Sergio Valcarcel
Hi, I did it a long time ago for the CC2420. It is easy but I do not remember how to exactly. I suggest you to enter into the platform, chipset or cpu directory and look for your particular radio chipset header. You will find the right module and method there. Cheers! Sergio On Fri, Feb 24, 201

Re: [Tinyos-help] Need advices and suggestions for hardware selection!

2012-03-06 Thread Sergio Valcarcel
Hello, The question is not trivial. First of all you need to have your specifications clear. The most critical are usually RAM size, processing power, consumption, price, portability to your preferred operating system and good development tools (reliable toolchain and debugging). Cheers! Sergio

Re: [Tinyos-help] about increasing the CPU frequency of iMote2

2012-04-10 Thread Sergio Valcarcel
Hi Mash'al In order to make intelmote2 (imote2) work at 106 MHz 1) remove -DPXA27X_13M flag from "/opt/tinyos-2.1.1/support/make/intelmote2.target" #CFLAGS += -DPXA27X_13M -T$(TOSDIR)/platforms/intelmote2/tos.x CFLAGS += -T$(TOSDIR)/platforms/intelmote2/tos.x 2) Then, add this tag in each applic

Re: [Tinyos-help] How to send data from a java code via SerialForwarder to a mote(Basestation)

2012-05-06 Thread Sergio Valcarcel
I have not used it for almost one year, but the serial communication is quite straightforward. 1) You make and compile a Java program able to communicate through serial port. Optionally you could use the classes generated by MIG 2) Launch SerialForwarder java net.tinyos.sf.SerialForwarder -comm s

Re: [Tinyos-help] (no subject)

2012-05-07 Thread Sergio Valcarcel
Hi, First, of course, you need to understand how to localize with RSSi using, for instance, trilateration. Are you familiar with that? If yes, my advice would be to do most of the tutorials and then customize them to localization. For instance, Then you may write a set of simple examples followin

Re: [Tinyos-help] How to send data from a java code via SerialForwarder to a mote(Basestation)

2012-05-07 Thread Sergio Valcarcel
test[4]=0x00; > test[5]=0x0B; > test[6]=0x00; > test[7]=0x00; > > Socket client=new Socket("localhost",902); > DataOutputStream DOS= new DataOutputStream(client.getOutputStream()); > > DOS.write(test, 0, test.length); > DOS.flush(); >

Re: [Tinyos-help] Signal processing

2012-06-15 Thread Sergio Valcarcel
Hi, Assuming you have followed all the tutorials, I understand your question is how to implement a wavelet transform that can process some data out of the regular modules, available in TinyOS, right? Then you have two options: 1) implement your own module in nesC 2) use regular C functions (or ev

Re: [Tinyos-help] Signal processing

2012-06-16 Thread Sergio Valcarcel
> 4-8Kb at most, and no math support beyond an integer multiply -- > but sometimes it's a whopping 16 bit MUL. > > If you can send your raw data to a "real" computer you will > probably have better results. > > MS > > Sergio Valcarcel wrote: > >>

Re: [Tinyos-help] Simulators

2012-07-19 Thread Sergio Valcarcel
You may have a look at Cooja, but I think you will have to write your own plugin to pass the sound signal to the simulated motes. Best, Sergio On Thu, Jul 19, 2012 at 8:57 PM, ahmed desoky wrote: > is there a simulator for wireless sensor networks with microphones?in > other words can we use t

[Tinyos-help] Entra nella mia rete su LinkedIn

2013-05-28 Thread Sergio Valcarcel Macua
LinkedIn Sergio Valcarcel Macua ha chiesto di aggiungerti ai suoi collegamenti su LinkedIn: -- Vorrei aggiungerti alla mia rete professionale su LinkedIn. Accetta l'invito di Sergio Valcarcel Macua http://www.linkedin.