Re: [riot-devel] Energy Consumption on samr21_xpro

2015-10-27 Thread Ilias Seitanidis
Thank you all for your replies!!! :)
@Hauke Is there a way to measure at least MCU+radio with software without
using any external tool?
Thank you in advance!

2015-10-26 16:15 GMT+01:00 Baptiste Clenet :

> @Hauke, we add some results around 1,62mA some months ago [0]
>
> Cheers,
>
> Baptiste
>
> [0] https://github.com/RIOT-OS/RIOT/pull/2309
>
>
> 2015-10-26 11:24 GMT+01:00 Hauke Petersen :
> > Hi,
> >
> > if you decide to measure the energy consumption through those external
> pins,
> > keep in mind, that you are measuring the consumption of the complete
> board -
> > not only the MCU+radio. Last time I tried, I always got something around
> > 100mA. This is fairly high for this kind of board (the STM32F4discovery
> was
> > around ~15mA for the full board). Not sure where this high consumption
> comes
> > from - but maybe you can measure your board and share your results with
> us?
> >
> > Cheers,
> > Hauke
> >
> >
> >
> > On 26.10.2015 10:59, Baptiste Clenet wrote:
> >>
> >> @Illias, the current monitor header pins are the only way I know to
> >> measure the current consumption. If you see a better way to do that,
> >> It would be great to try it, let us know.
> >>
> >> Baptiste
> >>
> >> 2015-10-23 11:37 GMT+02:00 Peter Kietzmann
> >> :
> >>>
> >>> Hi Ilias,
> >>>
> >>> I'd love to have such possibility, but from my knowledge there is no
> >>> coulomb
> >>> counter (or similar) on that board or on any common hardware. If you
> find
> >>> a
> >>> way, please let me know :-) !
> >>>
> >>> Cheers,
> >>> Peter
> >>>
> >>> Am 23.10.2015 um 11:31 schrieb Ilias Seitanidis:
> >>>
> >>> Hi Peter,
> >>> First of all I want to thank you for your fast reply.I want to measure
> >>> the
> >>> energy consumption from the board using software without external tools
> >>> as
> >>> an ammeter.
> >>> Thank you.
> >>> Best ,
> >>> Ilias
> >>>
> >>> 2015-10-23 11:22 GMT+02:00 Peter Kietzmann
> >>> :
> 
>  Hi Ilias,
> 
>  and welcome to RIOT! This board has a jumper on it's current monitor
>  header pins (next to the user programmable button). You can replace
> the
>  jumper by an ammeter and measure the current. Compare the boards user
>  guide
> 
> 
> http://www.atmel.com/Images/Atmel-42243-SAMR21-Xplained-Pro_User-Guide.pdf
> 
>  Best,
>  Peter
> 
> 
> 
> 
>  Am 23.10.2015 um 11:07 schrieb Ilias Seitanidis:
> 
>  Hi , I am new to wsn and I am wondering if there is a way to measure
> the
>  energy consumption of the atmel samr21_xpro .Thank you in advance!
> 
> 
>  ___
>  devel mailing list
>  devel@riot-os.org
>  https://lists.riot-os.org/mailman/listinfo/devel
> 
> 
>  --
>  Peter Kietzmann
> 
>  Hamburg University of Applied Sciences
>  Dept. Informatik, Internet Technologies Group
>  Berliner Tor 7, 20099 Hamburg, Germany
>  Fon: +49-40-42875-8426
>  Web: http://www.haw-hamburg.de/inet
> 
> 
>  ___
>  devel mailing list
>  devel@riot-os.org
>  https://lists.riot-os.org/mailman/listinfo/devel
> 
> >>>
> >>>
> >>> ___
> >>> devel mailing list
> >>> devel@riot-os.org
> >>> https://lists.riot-os.org/mailman/listinfo/devel
> >>>
> >>>
> >>> --
> >>> Peter Kietzmann
> >>>
> >>> Hamburg University of Applied Sciences
> >>> Dept. Informatik, Internet Technologies Group
> >>> Berliner Tor 7, 20099 Hamburg, Germany
> >>> Fon: +49-40-42875-8426
> >>> Web: http://www.haw-hamburg.de/inet
> >>>
> >>>
> >>> ___
> >>> devel mailing list
> >>> devel@riot-os.org
> >>> https://lists.riot-os.org/mailman/listinfo/devel
> >>>
> >>
> >>
> >
> > ___
> > devel mailing list
> > devel@riot-os.org
> > https://lists.riot-os.org/mailman/listinfo/devel
>
>
>
> --
> Baptiste
> ___
> devel mailing list
> devel@riot-os.org
> https://lists.riot-os.org/mailman/listinfo/devel
>
___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel


[riot-devel] Hack'n'ACK October '15

2015-10-27 Thread Martine Lenders
Hello fellow RIOTers,

Cenk and I are holding the castle for tonight's Hack'n'ACK at FU Berlin.
You can join via your favorite PlaceCam link:
http://placecam.de/call.php?c=lmakKMrDG8a35aIBNqLBvOnApExkKFntj9xXawGNgTc-

If you never used PlaceCam before, please refer to [1]

Lots of fun and merges tonight,
Martine

[1]
https://github.com/RIOT-OS/RIOT/wiki/Instructions-for-remote-participation
___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel


Re: [riot-devel] Network Stack Question

2015-10-27 Thread Haoyang Yu
Hi Martine,

Thank you so much for your patient answer!

I changed hundreds of codes in NETWORK stack for the example of default, which 
implemented txtsnd and echo a ACK back to the source. However, there is still 
some puzzles hang over my head:

#ifdef MODULE_GNRC_NETIF vs #ifdef MODULE_NETIF: Are they the same definition 
of MODULE_GNRC_NETIF and MODULE_NETIF?
I understand one packet is formed by many snipts which use linked list. 
gnrc_pktbuf_add() is used to form a packet. I add the hardware address on 
linked layer using gnrc_pkbuf_add with the data payload. For layer 3, layer4, 
is it okay still use gnrc_pktbuf_add() to link the layer 3, layer 4 header?
I am not fully understand the type of GNRC_NETTYPE_UNDEF, is it just the data 
payload? And also for the GNRC_NETTYPE_NETIF, is it the layer 2 snipt type?

Because my main focus will be grab the layer 2 packet and the implement a new 
protocol I defined on for layer 3, layer 4 in ICN. Thank you for your help!

my changes: https://github.com/haoyangyu/RIOT/commits?author=haoyangyu

Best,
Haoyang
> On Oct 25, 2015, at 11:57, Martine Lenders  wrote:
> 
> Hi Haoyang,
> 
> 2015-10-24 21:17 GMT+02:00 Haoyang Yu  >:
> where can I find the txtsnd source codes?
> `txtsnd` is a default shell command for the `gnrc_netif` module pulled in by 
> the `shell_commands` module. As such you can find it in 
> `sys/shell/commands/sc_netif.c`.
> (When I'm not sure were something is located in RIOT, I use `git grep` ;-)) 
> Does packet txtsnd sent is through RF based on GNRC protocol, not the serial 
> right? 
> Depends, normally (for physical boards) it sends over RF. On native there is 
> no RF, so we use TAP [1] [2] to virtualize an Ethernet connection. Since 
> native doesn't have a serial line either (since it is just a process in the 
> host OS, utilizing normal stdin/stdout) we decided to "misuse" the PORT 
> environment variable for native to point to the TAP instead to the serial 
> device (so that might be where your confusion stems from). For physical 
> boards you can however also send packets via serial line, if you wish to (for 
> a border router e.g.), using SLIP [3]. See my last mail for how to activate 
> that in RIOT.
> 
> [1] https://www.kernel.org/doc/Documentation/networking/tuntap.txt 
> 
> [2] https://en.wikipedia.org/wiki/TUN/TAP 
> 
> [3] https://tools.ietf.org/html/rfc1055 
> ___
> devel mailing list
> devel@riot-os.org
> https://lists.riot-os.org/mailman/listinfo/devel

___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel


Re: [riot-devel] Hack'n'ACK October '15

2015-10-27 Thread Haoyang Yu
Hi Martine,

What is the actual time for the Hack’n’ACK meeting, I want to join to discuss 
with RIOTers.

Thanks,
Haoyang

> On Oct 27, 2015, at 12:02, Martine Lenders  wrote:
> 
> Hello fellow RIOTers,
> 
> Cenk and I are holding the castle for tonight's Hack'n'ACK at FU Berlin. You 
> can join via your favorite PlaceCam link: 
> http://placecam.de/call.php?c=lmakKMrDG8a35aIBNqLBvOnApExkKFntj9xXawGNgTc- 
> 
> 
> If you never used PlaceCam before, please refer to [1]
> 
> Lots of fun and merges tonight,
> Martine
> 
> [1] 
> https://github.com/RIOT-OS/RIOT/wiki/Instructions-for-remote-participation 
> ___
> devel mailing list
> devel@riot-os.org
> https://lists.riot-os.org/mailman/listinfo/devel

___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel