"İsmail Can Erişkin" | 19 Dec 15:19 2014
Picon

example-broadcast.c

Hello,
How can I reach le->etx_accumulator when a packet received in
example-broadcast.c broadcast_recv
Thanks in advance...

--

-- 
İsmail Can Erişkin
MS in electronics engineering
LMF-421 Işık University
Tel: 0216 528 7019

------------------------------------------------------------------------------
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=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Contiki-developers mailing list
Contiki-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/contiki-developers
Raghavendra Dandin | 19 Dec 06:35 2014
Picon

uip commands

Hello, I am trying to use the commands related to uip, like uip_connect(), uip_newdata(), But i am unable to establish any connection. here is my code. #include <stdio.h> #include "uip.h" #define UIP_ACTIVE_OPEN 1 PROCESS(uiptest1, "uip test 1"); AUTOSTART_PROCESSES(&uiptest1); PROCESS_THREAD(uiptest1, ev, data) { static uip_ipaddr_t ipaddr; PROCESS_BEGIN(); uip_listen(UIP_HTONS(1234)); uip_ipaddr(&ipaddr, 0,0,0,0); uip_connect(&ipaddr, UIP_HTONS(1234)); if (uip_connected()) { printf("A new connection was established\n"); } PROCESS_END(); } I am simulating in cooja, and the ip adress for the nodes there were 0,0,0,0 so i added the same in the code. What i am missing here? can i initialize an ip address to a node? if yes, how? In this code i am trying to establish a connection between 2 nodes and then print an acknowledgment for successful connection. Regards.
------------------------------------------------------------------------------
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=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
Raghavendra | 19 Dec 06:08 2014
Picon

uip_connect command.

Hello,
I am trying to use the commands related to uip, like uip_connect(), 
uip_newdata(), But i am unable to establish any connection. here is my 
code.

#include <stdio.h>
#include "uip.h"
#define UIP_ACTIVE_OPEN 1

PROCESS(uiptest1, "uip test 1");

AUTOSTART_PROCESSES(&uiptest1);

PROCESS_THREAD(uiptest1, ev, data)
{
	static uip_ipaddr_t ipaddr;
	PROCESS_BEGIN();

	uip_listen(UIP_HTONS(1234));

	uip_ipaddr(&ipaddr, 0,0,0,0);
	uip_connect(&ipaddr, UIP_HTONS(1234));

	if (uip_connected())
		{
		printf("A new connection was established\n");
		}

	
	PROCESS_END();
}

I am simulating in cooja, and the ip adress for the nodes there were 
0,0,0,0 so i added the same in the code.
What i am missing here?
can i initialize an ip address to a node? if yes, how?
In this code i am trying to establish a connection between 2 nodes and 
then print an acknowledgment for successful connection.

Regards.

------------------------------------------------------------------------------
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=164703151&iu=/4140/ostg.clktrk
Ranganath Gunawardane | 19 Dec 05:47 2014

How to get the IPv6 address of border-router?

Hi all,

I have started developing a border-router for a 6LoWPAN with Contriki based 
on the border-router example. My border router is connexted to a Linux box 
using the SLIP and I have a tun interface created by the tunslip6 program.

I want my Linux side application to talk to the border-router using UDP. For that, 
I want to know the IPv6 address of border-router. One way would be for the 
border-router to send the IPv6 address through tunslip. Is there any other elegant 
method of doing that?

Thanks for any pointers.
------------------------------------------------------------------------------
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=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
Billy Kozak | 18 Dec 19:32 2014

Phase Optimization on CC2538

Hello,

I am interested in enabling phase optimization for the CC2538dk platform but I have found that network communications become very unreliable upon enabling phase optimization.

I have noticed a comment in the source code which mentions that phase optimization does not work for all timer settings. Does anyone know of any way to configure the CC2538dk platform so that phase optimization works as expected?

Has anyone had any luck with phase optimization on CC2538?

Thanks!

--
Billy Kozak EIT.
Firmware Engineer
Scanimetrics Inc.
1938 94th Street
Edmonton, Alberta
Canada T6N 1J3
______________________
This email message, including any attachments, is for the intended recipient(s) only and may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you have received this message in error, or are obviously not one of the intended recipients, please immediately notify the sender by reply email and delete this email message, including any attachments.  Thank you.
------------------------------------------------------------------------------
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=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
Muhammed Rafi | 17 Dec 10:37 2014
Picon

Channel scanning in contiki

Hi all,

Anybody body please guide me to implement  Channel scanning in contiki.

Thanks & Regards
Rafi

"Disclaimer: This message is being sent from Kalki Communication Technologies
Pvt Ltd (KALKITECH). and may contain information which is confidential or 

privileged. If you are not the intended recipient, please advise the sender
immediately by reply e-mail and delete this message and any attachments 

without retaining a copy. Any unauthorized use of the content of this message
can expose the responsible party to civil and/or criminal penalties, 

and may constitute a more serious offense. Further the company does not accept
liability for any errors, omissions, viruses or computer problems 

experienced as a result of this transmission. If you have received this
message in error, notice is hereby given that no representation, contract or 

other binding obligation shall be created by this e-mail." 

------------------------------------------------------------------------------
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=164703151&iu=/4140/ostg.clktrk
Getamesay Negash | 17 Dec 09:36 2014
Picon

how to change the mac layer to CSMA

I'm new for contiki, and i don't know how to change the mac layer to CSMA. and change the RDC layer to either xmac or cxmac or contikimac, so please show me how to do that.

Thank you!

Getamesay
------------------------------------------------------------------------------
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=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
Králik Barnabás | 16 Dec 14:54 2014
Picon

Build system problems / Filename clashes?

Hi,

I'm using the git master of Contiki. I have a file called list.c (with a
corresponding header list.h) in my project. The build fails; symbols
exported by contiki's core/sys/list.c are missing. The build system seems to
be unable to distinguish between my list.c and core/sys/list.c. The files
export completely different symbols.

Is this the expected behaviour? Can I somehow declare that _both_ of these
files are to be compiled and linked?

Thanks
BR
Barnabás Králik

------------------------------------------------------------------------------
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=164703151&iu=/4140/ostg.clktrk
jehuti ku | 16 Dec 11:18 2014
Picon

Disable Radio on CC2538 but keep routing table

Hi,
I’m working with two CC2538-based platform on contiki.
• A leaf node (on battery) 
• A router (an HTTP client, power on USB).
They communicate at configurable time. So, I want to disable radio between the communications. Even the 0.8% duty cycle of ContikiMAC is not low-power for the leaf node.

What is the best way for doing this? 
• Using NETSTACK_MAC.off(0) and create a new rtimer for entering in pm2 and schedule the new wake up time.
• Using NETSTACK_MAC.off(0) and the same rtimer there is in contikimac? And change the wake up time. (Because no more than one timer is actually supported in contiki).
• Another idea?

But there is a problem, even when radio is off, RPL discovery is still active, but the leaf node is not able to receive control plane datagrams. So, it will miss DAOs/DIOs messages and the routing will be disrupt. Is there a mean to fix quickly routes (the network will not change) ? Maybe with rpl_repair_root?

Also, If RPL is probing network when radio is off, the leaf node withdraw his neighbors of his routing table. Is there a way of keeping his neighbors during this period? Is it possible to add manually a route on the leaf node to keep the communication with the router? With uip_ds6_route_add? 

Thanks for helping me!
Best Regards,

Jehuti.
------------------------------------------------------------------------------
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=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
surferdude999 | 16 Dec 04:54 2014

Misc Errors in Files

Shopitham Ram: Please see Morty's reply that v2.7 is outdated and probably
should be avoided.  I switched to the main trunk and found better code,
though still some problems.

Anyone interested in collaborating on porting this to Atmel Studio,
specifically with the intent of getting it to work well with the
ATMega256RFR2?  I'm trying to break the code up into useful libraries and
then improving those.  Code improvements could then be submitted back into
the main trunk.

Regards,
Roger

------------------------------------------------------------------------------
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=164703151&iu=/4140/ostg.clktrk

PROCESS_THREAD basic : passing data

Hello,

  This is a basic question regarding the passing of data to a
PROCESS_THREAD.  I am missing somethign and I do not know what as
this seems so simple.  No matter what (and I've tried a few
things) the printing process always prints 0.

  Basically it boils down to this (see full below)

In process test2a:

	  static int counto;
	  counto ++;
		printf("Inside test2a counto: %d\n", counto);
		process_post(&test2b, event_data_ready, &counto);

Then in process test2b:

		PROCESS_WAIT_EVENT_UNTIL(ev == event_data_ready);
		printf("Data from test2a: %d\n", data);

Now matter what, it prints:

 Contiki-2.6-561-g872366b
 TI SmartRF05 EB
 cc2530-F256, 08KB SRAM
 Hello, world #0
 Hello, world #1
 Hello, world #2
 Hello, world #3
 Inside test2a counto: 100
 Data from test2a: 0

As you can see this is a CC2530 (if it matters), using a modified
hello-world example.

I'm anxiously looking for the duh! moment when someone will tell
me the silly thing I'm missing.  

What is wrong with that code so that the data is (seemingly) not
received (at least not printed) by the test2b process ?

Many thanks for any information !

Full code is as follows (both autostart) :

#include "contiki.h"
#include <stdio.h> /* For printf() */

#include "dev/leds.h"

static process_event_t event_data_ready;

PROCESS_THREAD(test2a, ev, data)
{
	static struct etimer timer;
	static int counto;
	
	PROCESS_BEGIN();
	event_data_ready = process_alloc_event();
	etimer_set(&timer, CLOCK_CONF_SECOND * 4);

	counto = 99;

	printf("Inside test2a synch post: %d\n", counto);
	process_post_synch(&test2b, event_data_ready, &counto);
	
	while (1) {
		PROCESS_WAIT_EVENT_UNTIL(ev == PROCESS_EVENT_TIMER);
	  counto ++;
		printf("Inside test2a counto: %d\n", counto);
		process_post(&test2b, event_data_ready, &counto);
		etimer_reset(&timer);
 	}
	
	PROCESS_END();
}

PROCESS_THREAD(test2b, ev, data)
{
	PROCESS_BEGIN();

	while (1) {

		PROCESS_WAIT_EVENT_UNTIL(ev == event_data_ready);
		printf("Data from test2a: %u\n", data);
	}
	PROCESS_END();	
}

------------------------------------------------------------------------------
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=164703151&iu=/4140/ostg.clktrk

Gmane