sharmini | 31 Oct 10:45 2014
Picon

changing the metric in mrhof

hi guys

mrhof default metric is ETX and it also have support for energy metric
but i want to use PRR as an metric value
im confused with this change of objective function
how should i lead this further
------------------------------------------------------------------------------
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
Ulf Knoblich | 30 Oct 15:26 2014
Picon

How to monitor link quality Leaf-Node <-> Border router

Hi together,

 

during real-life installation of a 6LoWPAN-System, i would like to be able to present some kind of „link-quality“ to the user installing the router / leaf node.

I know that this kind of information could be derived from RPLs link metric (ETX), but I would prefer to use a more “descriptive” way (like the bar graphs used on your mobile phone…). Therefore I would:

 

1.       Like to now the number of hops used to reach the border router

2.       Send some kind of “alive”-message to the border router in order to be able to detect a broken link

 

Now come my questions:

 

1.       How can I determine the number of hops used to reach the boarder router? If I am right, this information isn’t available as long as I use ETX as a link metric

2.       What do you recommend in order to test the radio link towards the router? Just send a PING?

 

I am aware of the fact that I could just implement some kind of UDP servers on the application layer, but I wonder if there are already some mechanisms available for this purpose.

 

Regards

 

Ulf

------------------------------------------------------------------------------
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
sharmini | 30 Oct 11:50 2014
Picon

using mrhof as objective function

hi guys..
to implement mrhof as objective function i changed below lines in rpl_conf.h


#ifdef RPL_CONF_OF
#define RPL_OF rpl_mrhof//i changed this
//#define RPL_OF RPL_CONF_OF---previous declaration
#else
/* ETX is the default objective function. */
#define RPL_OF RPL_CONF_OF//i changed this
//#define RPL_OF rpl_mrhof---previous declaration
#endif /* RPL_CONF_OF */



when i compiled this i got the following error, i could not figure this out


contiki-z1.a(rpl-dag.o): In function `rpl_set_root':
rpl-dag.c:(.text+0x786): undefined reference to `RPL_CONF_OF'
contiki-z1.a(rpl-dag.o): In function `rpl_find_of':
rpl-dag.c:(.text+0x856): undefined reference to `RPL_CONF_OF'
rpl-dag.c:(.text+0x85c): undefined reference to `RPL_CONF_OF'
contiki-z1.a(rpl-icmp6.o): In function `uip_rpl_input':
rpl-icmp6.c:(.text+0x4ee): undefined reference to `RPL_CONF_OF'
collect2: error: ld returned 1 exit status
make: *** [unicast-receiver1.z1] Error 1
rm unicast-receiver1.co obj_z1/contiki-z1-main.o

------------------------------------------------------------------------------
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers

Fw: Re: cc2530 border router reboot periodically

 
I remember someone told me that one of the important reason is CC2530 is out of Stack! NOT the heap.
Try to move local variable to Global variable.But I can't finish the whole work.
 
dear_1.student-k+cT0dCbe1g@public.gmane.org
 
Date: 2014-10-30 16:56
To: apifan
Subject: Re: Re: [Contiki-developers] cc2530 border router reboot periodically
BLOCKQUOTE { MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em } OL { MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px } UL { MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px } DIV.FoxDiv20141030164706822514 { COLOR: #000000 } P { MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px }
 
Yeah,I also got the same issue.Does offical Contiki support CC2530,or not? I even try sync contiki-sensinode source code to Contiki 2.6,but I was failed.
The problem seems located in sicslowpan.c
static uint8_t output(uip_lladdr_t *localdest),but I 'm not sure.
Any body else got the same issue?
 
dear_1.student-k+cT0dCbe1g@public.gmane.org
 
From: jun fang
Date: 2014-10-30 16:30
Subject: Re: [Contiki-developers] cc2530 border router reboot periodically
Hi,

I found out that official contiki always has this issue,
but contiki-sensinode branch works fine.

https://github.com/g-oikonomou/contiki-sensinode

Thanks,

BR,
Jun


On Tue, Oct 28, 2014 at 3:00 PM, jun fang <apifan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Hi experts,

I am trying border router example of cc2530dk in contiki 2.7.
But program keep rebooting periodically.
TI SmartRF05 EB
cc2530-F256, 08KB SRAM
Contiki 2.7           ��?P��?P��?P��?P��?P��?P��?P��?P��?P��?P��?P��?P��?P��?P��
TI SmartRF05 EB
cc2530-F256, 08KB SRAM
Contiki 2.7           ��?P��?P��?P��?P��?P��?P��
TI SmartRF05 EB
cc2530-F256, 08KB SRAM

I google it, someone also meet this issue, but didn't find answer.

SDCC : mcs51 3.3.1 #8804 (Aug  6 2013) (Linux)


Thanks!

BR,
Jun


------------------------------------------------------------------------------
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
sharmini | 30 Oct 04:57 2014
Picon

z1 is not recognized by collect view in cooja

hi guys......Why collect-view doesn't recognize the z1 motes? Does collect view work for Z1 nodes?rpl-collect/udp-sender and udp-sink works for sky mote but does not show any reaction to z1
------------------------------------------------------------------------------
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
Wang, Xin | 30 Oct 04:32 2014
Picon

CSL (Coordinated Sampled Listening) availabe in the Contiki?

Hi,

>From the Thingsquare product brief, I see the CSL is supported. But it looks the CSL is not available in
current Contiki source yet? If it is the case, do we have any plan to support it?

Can anyone give a short introduction about the differences between the ContikiMAC and CSL?  I would
appreciate that.

Thanks,
Xin

------------------------------------------------------------------------------
sensys | 30 Oct 01:03 2014

ACM SenSys 2016 Call for Hosting Intents

Apologies if you receive multiple copies of this email.

============================================
C A L L  F O R  H O S T I N G  I N T E N T S 

**** ACM SenSys 2014 ****
Memphis, TN, USA
November 3-6, 2014
http://sensys.acm.org/2014/

============================================

The Steering Committee of ACM Conference on Embedded Networked Sensor Systems (SenSys),
http://sensys.acm.org/, would like to collect non-binding intents on hosting the 2016 edition of the
conference. SenSys is a highly selective, single-track forum for the presentation of research results
on sensing systems, broadly defined. In addition to the core technical program, the conference also
features poster and demo sessions, workshops, and a PhD forum. It typically draws 200~300 attendees from
universities, industrial, and government organizations around the world.

The proposers will have up to five minutes at SenSys’14 business meeting (5-6PM, 11/4/2014, at
SenSys’14 http://sensys.acm.org/2014/) to present the general information about the city,
normal weather and travel conditions in early November, and cultural attractions of the hosting site, as
well as local research communities that are of interests to the SenSys community. The presentation will
give a chance for us to poll interests from the conference attendees.

The SenSys steering committee will have a separate call for proposals later to solicit detailed
proposals.  

Please contact Jie Liu (jie.liu@...) if you have interests in presenting.

------------------------------------------------------------------------------
Graeme Bragg | 29 Oct 15:38 2014
Picon

Re: CC2530 How to enter in PM2 mode


You can reduce the memory and flash usage of Contiki by following the guide at https://github.com/contiki-os/contiki/wiki/Reducing-Contiki-OS-firmware-size and that may get you enough for ContikiMac.

i used the configuration that come with contiki, and i change only the RDC driver, i don't know how to configure the rest, although i tried to change other settings

To work out what settings you need to change you can look at the platform.conf for a platform that does use ContikiMac (such as the Z1) and you can look at ContikiMac.c and ContikiMac.h in the core/net/mac folder.  The settings are #define'd with a prefix of "CONTIKIMAC_CONF_".  Phase optimisation may not work without some poking so I would suggest leaving it off for now.  

As for what to set them to, you should have a read of the ContikiMac paper and look at the ContikiMac sources. You may need to do some measurements and calculations of timings, etc on your radio but this is fairly simple with an oscilloscope or logic analyser and the data sheet for the radio. The paper can be found at: http://dunkels.com/adam/dunkels11contikimac.pdf


i use NETSTACK_RADIO.off() to power off the radio, when i use it the consumption goes from ~30mA to 5mA.

Ok, have you checked to see what mode NETSTACK_RADIO.off() puts the radio in? The ones that I have checked put the radio in an IDLE state, which can use a few mA. 

Also, I would recommend using an off command from a higher level of the netstack, especially if you are using  some sort of RDC, as higher layers can still turn the radio on and off if you leave them active.


The platform i use hasn't got any sensor or periferial, it only has a SoC with radio and micro together. I looked at its datasheet and i has 4 power modes:

Electronics 101: Datasheets do NOT generally represent reality and may have been massaged to show the lowest energy consumption possible.

You really need to measure your actual platform as the energy values in the Datasheet for your MCU won't cover how it interacts with other parts of your circuit.  I would also recommend measuring over more than one node as differences in manufacturing can result in different readings and an accidental short during manufacture could give a higher reading than expected

You say you have no peripherals or sensors - what about power supplies and other passive components? A non-isolateable potential divider (say for doing a batvolts measurement) is a constant current draw that the Datasheet doesn't cover. 


I'm newbie with Contiki and i don't know how to do that, if you can explain me it i'll apreciate it. I tried to use the PM modes of the SoC using the register, i want to do it after lanching the processes but i don't know how to.

I am also relatively new to Contiki - I just read the documentation and look at the code.  

Putting the SoC into a low power mode in your process probably won't help as the core wakes up from a timer, or other interrupt, to deal with events and set any processes going that need to.  This all happens from within a loop in main(), which is in a file in your platform directory, where process_run() is called repeatedly until there are no processes waiting and then puts the core into a low power mode - this is all detailed in the documentation at http://contiki.sourceforge.net/docs/2.6/a01671.html#ga4968157ca91c28e26075ab78a1a4fb56.  So your process putting the core to sleep will either break things for the rest of the OS or, ultimately, have no effect.

What you seem to be missing is that Contiki should already be putting your MCU into a low-power mode when it can.  I have had a look at the contiki-main.c file for the CC2530DK platform (you really should have looked at this already - we are not here to spoon feed you) and there is compile-time option for specifying the low power mode.  The option is LPM_CONF_MODE and contiki-main.c seems to be able to handle setting this to  LPM_MODE_PM2.  The contiki-conf.h file for the CC2530DK does not have either of these settings but it does have LPM_CONF_MODE setting and by default sets it to 0 and suggests that only 0 and 1 are supported.  You will need to look through the rest of the files for your platform to figure out how to set the LPM mode, I would suggest starting with lpm.h.


My idea is use the register for mantain the micro on PM2 and wake up it every X seconds (with PM2 i can wake up it form the sleep timer interrupt, with PM3 only from external interrupts), then launch a contiki process that sets the radio and uses the contiki functionality with IPV6 to send and receive messages during a sort time, once the process is over, it has to go back to low power mode. I don't know if it's possible.

I hope you now realise that this is a very bad idea and defeats the purpose of actually having Contiki and that you seem to be trying to do achieve something (keeping the core in a low-power state for as long as possible) that Contiki already does/can do.  You really do need to read the relevant parts of the documentation, read the wiki and look at the code - that is all I have done to write this reply.

Additionally, if you are using RPL or some other dynamic routing, or a multi-hop setup, having the radio off for several seconds will, as I have said before, cause issues and will likely result in more network traffic that will increase your energy usage.  Anything wanting to talk to the node will also have to be aware of when the radio will be on and wait till then to try and talk to it - not the easiest thing to synchronise with a small communications window.

Thanks,
Graeme

Sent from my iPad
------------------------------------------------------------------------------
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
Graeme Bragg | 29 Oct 15:08 2014
Picon

Re: How to implement RDC on cc2530/31

Have you checked what caused the reboot? E.g was it a watchdog-induced reboot or something else?

Thanks,
Graeme

Sent from my iPhone

On 28 Oct 2014, at 19:09, juan jesus pinuaga <pinuct-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

Hello.

I already have it, and it donsen't work :(, it reboots every time i try to send a message using IPV6.

Thanks,
Pinuct

2014-10-28 14:38 GMT+01:00 F Gong <fengyuan.gong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
Try HAVE_BANKING = 1 in the Makefile.  This should trigger sdcc to enable the HUGE mode for compiling. After setting with that, I can have LPP running.

Thanks,
Fengyuan

------------------------------------------------------------------------------

_______________________________________________
Contiki-developers mailing list
Contiki-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/contiki-developers


------------------------------------------------------------------------------
------------------------------------------------------------------------------
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers
Graeme Bragg | 29 Oct 14:34 2014
Picon

Re: msp430f2618 flashing problem

Hi Hari,

That is a linux error message telling you that you do not have permission to do what you are trying to do.  More
details would have been helpful such as the rest of the error message/more of the build output, whether you
are doing this on Instant Contiki or not, the version of Contiki you are trying to do this with and what
actual command you used to get this error.

Have you tried googling the error?

Thanks,
Graeme

Sent from my iPad

> On 29 Oct 2014, at 08:51, hari krishna Valluru
<vhkrishna9@...> wrote:
> 
> Hi i am trying to flash contiki onto msp430f2618, while uploading it is giving this error:
> 
> /bin/echo: 1: /bin/echo: /bin: Permission denied
> 
> can any one show me a solution for this?
> ------------------------------------------------------------------------------
> _______________________________________________
> Contiki-developers mailing list
> Contiki-developers@...
> https://lists.sourceforge.net/lists/listinfo/contiki-developers

------------------------------------------------------------------------------
hari krishna Valluru | 29 Oct 09:51 2014
Picon

msp430f2618 flashing problem

Hi i am trying to flash contiki onto msp430f2618, while uploading it is giving this error:

/bin/echo: 1: /bin/echo: /bin: Permission denied

can any one show me a solution for this?
------------------------------------------------------------------------------
_______________________________________________
Contiki-developers mailing list
Contiki-developers@...
https://lists.sourceforge.net/lists/listinfo/contiki-developers

Gmane