raksha r | 22 Nov 17:19 2014
Picon

negative numbers

hi...
   i have a situation in which ill get negative numbers for calculation.i can use float in c for this but in contiki how can i print a negative value.which datatype is the best
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
olfa gaddour | 22 Nov 12:04 2014
Picon

read data from USB port

I am searching form a C program that connects to the USB port of sky/telosb device, reads data  through the USB port and displays it. 

Can you help me in this issue?

Thanks in advance,


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
raksha r | 22 Nov 05:31 2014
Picon

changing data rate

hi
    i want to send 1 packet/second and 0.5 packets/second.In both these cases i want to analyze my program.Is this indicate the timers we use or else some other options are available in cooja.
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
vaibhav kulkarni | 22 Nov 01:29 2014
Picon

Using Powertracker for measuring energy for modulated and unmodulated carrier generation

Hi All, 

I am trying to compute the energy consumed in transmitting a modulated and unmodulated carrier with  CC2420 radio using Powertracker, But it shows all 0 values for the radio. Can anyone tell me the reason for this, or ways in which I can measure the power consumption for above ?

Thanks
- Vaibhav
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
Shane Rempala | 21 Nov 20:12 2014
Picon

Websocket SRAM overflow

Hi there, 

I have successfully implemented the Mist Websocket and can send information to a Node JS Websocket that graphs temperature data on a webpage. 

Currently I am using a CC2538 and it draws 4mA in PM0/1 mode. However I would like to use PM2 mode, which results in a complier 'SRAM' overflowed by 368 bytes. I understand that this is because the CC2538 only has 16K (retentive SRAM), while the rest of the SRAM is volatile. 

I have tried reducing my code just to the Websocket libraries only, and have the same problem (SRAM overflowed by 368 bytes) 

Has anyone been able to get around this problem. Is there a way of shifting variables away from SRAM? I am using GCC. 

Due to SRAM constraints, am I forced to used COAP?

 
 

Thanks

Shane
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
vaibhav kulkarni | 21 Nov 14:54 2014
Picon

Turn OFF CCA on CC2420 radio

Hello All, 

I am trying to find how to switch off the CCA from the MAC layer on CC2420 radio. Any anyone point me to the instruction or file which does it ? I want to send a continuous burst of packets without checking if the channel is busy or Idle. Please let me know. 

Thanks :)

- Vaibhav

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
Muhammet KAYA | 21 Nov 14:34 2014
Picon

g-oikonomou's sensniff

Hi everyone,

In my previous post, I had asked about timings using contikimac.
I've seen a little "error" in sensniff, that I'm currently using for sniffing.

def __generate_frame_hdr(self):
        sec = int(self.__t)
        usec = (self.__t - sec) * 100000
        return struct.pack(PCAP_FRAME_HDR_FMT,
                           sec, usec, self.len, self.len)

the line with "usec = (self.__t - sec) * 100 000" should be "usec = (self.__t - sec) * 1 000 000".
With the initial code, a CCR of 8, the duration of packets transmission was 12ms, when it should have been 120ms.

Best Regards,
Muhammet K.
plateforme SACCO - ESISAR

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
Thomas Schmidleithner | 21 Nov 09:25 2014
Picon

Erbium Blockwise Transfer with large payload

Hi,

 

I am trying to send a request with a large payload to a CoAP server within the er-rest-example. Since the payload will not fit into a single message, according to the CoAP specification it is necessary to use blockwise-transfer (block1) but I couldn’t find any examples in the Contiki example directory or on the web (or any related documentation at all) how to encode a client request for blockwise transfer.

Hence, I tried to properly use the Contiki API and wrote following code (within the er-rest-example for trial):

 

// IP of the CoAP server

#define GATEWAY_ADDR(ipaddr)  uip_ip6addr(ipaddr, 0xaaaa, 0, 0, 0, 0, 0, 0, 0x1)

 

// endpoints

char* iot_url[2] = {"/endpoint1", "/soap"};

 

static coap_packet_t iotrequest1[1];

static coap_packet_t iotrequest2[1];

 

// payload I am trying to send

// split into two requests (soap message)

const char iot_payload1[] = "<env:Envelope xmlns:env=\"http://schemas.xmlsoap.org/soap/envelop";

const char iot_payload2[] = "e/\"><env:Body>123456789012345678901234</env:Body></env:Envelope>";

 

coap_init_message(iotrequest1, COAP_TYPE_CON, COAP_PUT, 0 );

coap_set_header_uri_path(iotrequest1, iot_url[1]);

coap_set_header_block1(iotrequest1, 0, 1, 64); // static for trial

coap_set_payload(iotrequest1, (uint8_t *)iot_payload1, sizeof(iot_ payload1)-1);

// send first request

COAP_BLOCKING_REQUEST(&gateway_ipaddr, REMOTE_PORT, iotrequest1, client_chunk_handler);

 

coap_init_message(iotrequest2, COAP_TYPE_CON, COAP_PUT, 0 );

coap_set_header_uri_path(iotrequest2, iot_url[1]);

coap_set_header_block1(iotrequest2, 1, 0, 64); // static for trial

coap_set_payload(iotrequest2, (uint8_t *)iot_payload2, sizeof(iot_payload2)-1);

// send second request

COAP_BLOCKING_REQUEST(&gateway_ipaddr, REMOTE_PORT, iotrequest2, client_chunk_handler);

 

 

The CoAP server receives the first request (iot_payload1) as expected and also acts depending on the blockwise transfer options (more attribute is set to 1, …). However, the CoAP server receives the second request (iot_payload2) with the correct blockwise transfer options (more attribute is set to 0, …) but it seems like the encoding of the payload is corrupted because there are only a few ASCII characters (and not the message from iot_payload2 as expected).

I have also sniffed the CoAP traffic with Wireshark to check if it’s an issue on the  (CoAP) server-side implementation but the corrupted encoding messages were also sniffed by Wireshark.

 

Does anyone have an idea what I did wrong?

 

Thanks in advance,

Tom

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
surferdude999 | 21 Nov 02:05 2014

Anyone building with Atmel Studio 6?

Hi,
Can you elaborate on how you set up Atmel Studio 6 to do this? (Or point
me to a resource?)  I tried importing what I thought were appropriate
source files into a project, but there are too many errors to try to fix
them all, especially since I'm no brainiac with Make files (or with Atmel
Studio for that matter).
I'm trying to build for an ATMega256RFR2, which requires the latest
version of Studio 6 to use the new compiler that supports the chip.  I
realize that some files will need to be updated for this chip.  I already
found many files which modify the code depending upon the AVR chip and the
RFR2 is not included in any of these.
Thanks,
RogerS

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
surferdude999 | 21 Nov 01:59 2014

Contiki documentation

Hi,

Is there a pre-made copy of the Doxygen output for v2.7?  Not sure if I'm
understanding the previous answer correctly.  It seems to say that
everyone should generate their own copy using Doxygen.  There's a link for
the 2.6 documentation out on the website ... why not 2.7?  It doesn't seem
efficient for everyone to figure out how to run Doxygen to generate a new
copy of something that's static.

Thanks,
Roger S

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
Ulf Knoblich | 20 Nov 12:03 2014
Picon

UDP server on the border router - how to select the interface to listen to?

Hi all,

 

how can i realize a UDP server on the border router listening on the local (wireless) interface? By default, the server will listen on the wired (SLIP) interface. How can I select / enable the local interface?

 

Regards

 

Ulf

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers

Gmane