[Tinyos-help] Compiling external C code into tinyos application

2011-10-20 Thread Anna Förster
Hello all, I know that this question has been asked several times, but unfortunately all of the proposed solutions do not work for me. I also tried to use some examples from the tinyos apps/ folder, but that failed too. So, here is the standard question: I want to have an external C function,

Re: [Tinyos-help] Compiling external C code into tinyos application

2011-10-20 Thread Markus Becker
Hello Anna, we have been giving the C file in the PFLAGS of the Makefile: PFLAGS+=hello.c Without any previous compilation by $(CC). Possibly the include should be specified as well: PFLAGS+=-I. Sometimes it's also necessary to add: __attribute__ @spontaneous() @C() Hope this helps, Markus

Re: [Tinyos-help] Related to WSN

2011-10-20 Thread Rizwan Mumtaz
Hello jyoti, I guess for k map clustering the first centroids you choose is most of the time random though you can make good intuitive selection that would reduce the number of later iterations. And then after getting the first set of cluster (by assigning each node to the centroid it is close

Re: [Tinyos-help] Disabling CSMA in RF230 (IRIS)

2011-10-20 Thread Janos Sallai
Achintha, Modify tos/chips/rf230/RF230RadioP.nc such that RF230DriverConfig.requiresRssiCca() and requiresSoftwareCCA() always return FALSE. This will prevent the radio driver from carrying out CCA before sending the packet. That is, the packet will be transmitted even if the channel is busy. Jan

Re: [Tinyos-help] Disabling CSMA in RF230 (IRIS)

2011-10-20 Thread Miklos Maroti
Hi Achintha, Janos is only partially right. You can disable the software CCA check (which is doing an RSSI check), but the hardware can still prevent you to send a message. If it RF230 is in the process of receiving a packet then you cannot disturb it with a transmit, it will continue receiving th

Re: [Tinyos-help] [TinyOS-Help] size of code in ram or flash?

2011-10-20 Thread Michael Schippling
A message at the end of compilation should tell you how many bytes of RAM and ROM are used by the program. RAM is the declared variables and (I think) a fixed size stack. ROM is the program code and constant "variables". It is stored in the flash memory when downloading. Note that initialized varia

[Tinyos-help] [Errno 84] Invalid or incomplete multibyte or wide character

2011-10-20 Thread Stefano Moret
Hi, I'm working on MAC OS X 10.6.8 with Ubuntu 10.10 running on VMWare virtual machine, from where I use TinyOS to program Crossbow TelosB motes. Until two days ago I could smoothly compile and install programs on the motes, even if just on one of my two USB ports. Starting from yesterday, I can

Re: [Tinyos-help] Disabling CSMA in RF230 (IRIS)

2011-10-20 Thread Achintha Maddumabandara
Thank you Janos and Miklos. I'm thinking of doing this as well "Modify RF230RadioC and remove from the layers the CollisionAvoidance layer completely. Just remove the components and correct the wirings. Also remove the LowPowerListening, TrafficMonitor, SoftwareAck and CarrierSense layers. This w

Re: [Tinyos-help] Disabling CSMA in RF230 (IRIS)

2011-10-20 Thread Miklos Maroti
Hi Achintha, That willl remove any random backoff that is supposed to help to avoid collisions. That will help you, as it will (mostly) do the transmit when you have called the send command. Mostly means: no other long running tasks are present. Best, Miklos On Thu, Oct 20, 2011 at 9:25 PM, Achi

Re: [Tinyos-help] [TinyOS-Help] size of code in ram or flash?

2011-10-20 Thread Jino Sebastian
Hi, Use command msp430-size to see the different segments of executable example msp430-size a.out textdata bss dec hex filename 5666 4112867981a8e a.out Br, Jino On 10/20/11, João Gonçalves wrote: > Hello, can someone clarify me if the msp430 compiler (m