Hi! On Mon, Nov 23, 2015 at 11:25:19PM -0500, Sugang Li wrote: > 1. 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 [1]. In order to do so, please take a look at the border router example [2]. In particular, you need to copy the slip_params.h file into your application folder and add something like this to your Makefile: ifeq (,$(SLIP_UART)) # set default (first available UART) SLIP_UART="UART_DEV(0)" endif ifeq (,$(SLIP_BAUDRATE)) # set default SLIP_BAUDRATE=115200 endif 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 [3]. > 2. 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" <snip> > 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...)? Cheers, Oleg [1] https://tools.ietf.org/html/rfc1055 [2] https://github.com/RIOT-OS/RIOT/tree/master/examples/gnrc_border_router [3] http://www.ebay.com/itm/6Pin-USB-2-0-to-TTL-UART-Module-Serial-Converter-CP2102-STC-Replace-Ft232-Module- -- panic("smp_callin() AAAAaaaaahhhh....\n"); linux-2.6.6/arch/parisc/kernel/smp.c
signature.asc
Description: PGP signature
_______________________________________________ devel mailing list devel@riot-os.org https://lists.riot-os.org/mailman/listinfo/devel