Sorry that I come back to this question so late. After a few trials, I still have the following concerns:
- I am using SAM R21 board for the border_router examples, and I can shell into the RIOT from both USB debug port and UART port (PIN: PA04 and PA05). When I connect two cable at the same time, and use tunslip tool to setup a IPV6 slip interface over UART port, the shell (USB debug port )dose not reply to any command, such as ps and ifconfig, if I unplug the UART port, the shell works fine. Is this the multiplexing concerns that you mentioned? If yes, how can I add a second USB-to-UART adapter since there is only one interface on board( PA04 and PA05)?
- If I only use one port (either USB or UART) for slip, from Linux side, I got no ping6 reponse from the address of the RIOT node. I followed the steps in gnrc_border_router example to configure the RIOT node, and made sure the state maintained.
- Is there a way I can send packet from Ubuntu to RIOT via USB port? Any related library and example will be appreciated.
In general, yes, you can use SLIP . In order to do so, please take a look at the border router example . In particular, you need to copy the slip_params.h file into your application folder and add something like this to your Makefile:
set default (first available UART)
SLIP_UART=“UART_DEV(0)” endif ifeq (,$(SLIP_BAUDRATE))
GNRC_NETIF_NUMOF := 2 INCLUDES += -I$(CURDIR) CFLAGS += -DSLIP_UART=$(SLIP_UART) CFLAGS += -DSLIP_BAUDRATE=$(SLIP_BAUDRATE)
USEMODULE += gnrc_slip
This will add a SLIP interface that uses the primary UART as a serial port.
However, you might run into problems since this UART is also used for the shell and I don’t know how well multiplexing works on both ends. A common solution that is, for example, used for our the before mentioned border router is to add a second USB-to-UART by using an external adapter that can be found for a low price on ebay .
- For receiving a packet at Ubuntu, currently I understand I can write a script to extract the information in the debug message. Is there a more standard way to do that?
Not that I’m aware of.
Also I have some issue with pyterm the node. After successfully “make flash”
I can not access the node via pyterm: sudo pyterm -p “/dev/ttyACM0” Any idea? The debug light flash as the same frequency as the warning information.
That seems strange to me. Is there anything else that tries to access the ACM device? Maybe some Ubuntu magic? Maybe some of the other Ubuntu (derivate) users here can help (Hauke, Martine…)?
 https://tools.ietf.org/html/rfc1055  https://github.com/RIOT-OS/RIOT/tree/master/examples/gnrc_border_router  http://www.ebay.com/itm/6Pin-USB-2-0-to-TTL-UART-Module-Serial-Converter-CP2102-STC-Replace-Ft232-Module-