Hi Haoyang,

2015-10-24 21:17 GMT+02:00 Haoyang Yu <haoyang...@rutgers.edu>:

>
>    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
`sys/shell/commands/sc_netif.c`.
(When I'm not sure were something is located in RIOT, I use `git grep` ;-))

>
>    1. 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

Reply via email to