[riot-devel] Network Stack Question

2015-11-10 Thread Haoyang Yu
Hi, I am a student in Rutgers, and I am trying to implement a new CCN lite protocol on RIOT, and facing one difficulty about how to get the packet from Link layer(Layer 2)? Do you guys can give me some hints? Thank you very much! Best, Haoyang ___

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:

Re: [riot-devel] Network Stack Question

2015-10-25 Thread Martine Lenders
Hi Haoyang, 2015-10-24 21:17 GMT+02:00 Haoyang Yu : > >1. 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

Re: [riot-devel] Network Stack Question

2015-10-24 Thread Haoyang Yu
Thanks for your answer! I think I can send data between with each other, but I am puzzled by the realization, where can I find the txtsnd source codes? Does packet txtsnd sent is through RF based on GNRC protocol, not the serial right? Thanks, Haoyang > On Oct 23, 2015, at 15:34, Martine

Re: [riot-devel] Network Stack Question

2015-10-23 Thread Oliver Hahm
Hi Haoyang, welcome to RIOT! > I forward this mail to my colleague Oleg, who is actually doing the same > thing - so I guess he is probably the best one to help you! Since you already found the mailing list, I took the liberty of replying here instead. Yes, I'm working indeed on CCN for RIOT.

Re: [riot-devel] Network Stack Question

2015-10-23 Thread Haoyang Yu
Hi Oleg, I understand and tried what you said. The problem I faced for a long time is that txtsnd: I cannot set the interface, if I use tap0, which will echo: error: invalid interface given. I found the tutorial that said using addr, but I do not have the addr command when I use the R21

Re: [riot-devel] Network Stack Question

2015-10-23 Thread Oliver Hahm
Hi Haoyang! > The problem I face now is that I want to use the embedded default network > stack to make two Atmel R21board to send packet with each other through RF, > before I implemented the a new protocol on Network stack. Do you have any > experience about that? I did not find many resources

Re: [riot-devel] Network Stack Question

2015-10-23 Thread Haoyang Yu
Hi Oliver, Thanks for your quick response! These resources will be very useful for me, I will ask more question here. The problem I face now is that I want to use the embedded default network stack to make two Atmel R21board to send packet with each other through RF, before I implemented the

Re: [riot-devel] Network Stack Question

2015-10-23 Thread Martine Lenders
Hi Haoyang, 2015-10-23 20:08 GMT+02:00 Haoyang Yu : > >- txtsnd: I cannot set the interface, if I use tap0, which will echo: >error: invalid interface given. > > You need to use the interface on the node, not the TAP. The TAP is the endpoint on the host system