[riot-users] Ping from tap interface of one RIOT instance to another dont work.

Cenk G√ľndogan cenk.guendogan at fu-berlin.de
Tue Jan 5 17:46:50 CET 2016


Hello Rikhu,

Sorry for the late response.
I just tried to flash the default example (master) on an arduino mega 
2560 board
and it works without any errors. Does your problem still persist?
Admittedly, I have not much knowledge in this area. Maybe Hauke or 
someone else
can give more hints regarding this problem?

Best,
Cenk

On 29.12.2015 15:33, Rikhu Prasad wrote:
> *Hi Cenk,*
> *
> *
> *I am trying to use the example provided for Arduino Mega 2560, and I 
> believe it should work for this board too. But I receive the below 
> error. *
> */
> /*
> *When I reset the board before uploading, I get timeout errors (listed 
> below). The same issue happens with the default example provided in 
> RIOT. When I upload the Receive and/or Transmit lights on the Arduino 
> blink. *
> *
> *
> *To test if Arduino is working : I tested with Blink sketch using 
> Arduino IDE and it works fine. I even tried without the IDE using 
> Arduino-Makefile (https://github.com/sudar/Arduino-Makefile) to 
> reassure myself and it works. The problem happens with using RIOT. *
> *
> *
> */Without RESET:/*
> /avrdude -p m2560 -c stk500v2 -P /dev/ttyACM0 -b 115200 -F -U 
> flash:w:bin/arduino-mega2560/default.hex/
> /
> /
> /avrdude: AVR device initialized and ready to accept instructions/
> /
> /
> /Reading | ################################################## | 100% 
> 0.01s/
> /
> /
> /avrdude: Device signature = 0x1e9801/
> /avrdude: NOTE: "flash" memory has been specified, an erase cycle will 
> be performed/
> /         To disable this feature, specify the -D option./
> /avrdude: erasing chip/
> /avrdude: stk500v2_command(): command failed/
> /
> /
> /avrdude done.  Thank you./
> /
> /
> /make: *** [flash] Error 255/
>
>
> /*After Reset:*/
> /"make" -C /home/rikhu/Desktop/RIOT/sys/xtimer/
> /   text  data bss   dec   hexfilename/
> /  48670  
> 5326 11189 65185fea1/home/rikhu/Desktop/RIOT-Tutorial/application/bin/arduino-mega2560/ieee_wf-iot_2015.elf/
> /avrdude -p m2560 -c stk500v2 -P /dev/ttyACM0 -b 115200 -F -U 
> flash:w:bin/arduino-mega2560/ieee_wf-iot_2015.hex/
> /avrdude: stk500v2_ReceiveMessage(): timeout/
> /avrdude: stk500v2_ReceiveMessage(): timeout/
> /avrdude: stk500v2_ReceiveMessage(): timeout/
> /avrdude: stk500v2_ReceiveMessage(): timeout/
> /avrdude: stk500v2_ReceiveMessage(): timeout/
> /avrdude: stk500v2_ReceiveMessage(): timeout/
> /avrdude: stk500v2_getsync(): timeout communicating with programmer/
> /
> /
> /avrdude: stk500v2_ReceiveMessage(): timeout/
> /avrdude: stk500v2_ReceiveMessage(): timeout/
> /avrdude: stk500v2_ReceiveMessage(): timeout/
> /avrdude: stk500v2_ReceiveMessage(): timeout/
> /avrdude: stk500v2_ReceiveMessage(): timeout/
> /avrdude: stk500v2_ReceiveMessage(): timeout/
> /avrdude: stk500v2_ReceiveMessage(): timeout/
>
>
>
>
> Thanks,
> Rikhu
>
> On Tue, Dec 22, 2015 at 9:45 PM, Cenk G√ľndogan 
> <cenk.guendogan at fu-berlin.de <mailto:cenk.guendogan at fu-berlin.de>> wrote:
>
>     Hello Rikhu,
>
>     Can you try creating the tap interfaces with the tapsetup script
>     located in RIOT/dist/tools/tapsetup/tapsetup ?
>
>     This tapsetup script will create an interface (br0) that serves as
>     a bridge
>     between tap0 and tap1 (and other taps created by the tapsetup script).
>
>     Thank you for pointing out this issue, I will address this in the
>     tutorial.
>
>     Best,
>     Cenk
>
>
>     On 22.12.2015 21:39, Rikhu Prasad wrote:
>>     Hi,
>>
>>     I followed the following tutorial to get used to developing
>>     application in RIOT.
>>
>>     https://github.com/cgundogan/RIOT-Tutorial/
>>
>>     As per the below, I have configured one instance of RIOT to tap0
>>     and another instance to tap1. and try to ping between 2 instances
>>     and this does not work. Am I missing something? Please advice.
>>
>>     1. Running RIOT on Native -> 8th point..
>>
>>     _*RIOT  (Instance 1):*_
>>     _
>>     _
>>     ifconfig
>>     Iface  4   HWaddr: 22:a4:56:14:8a:61
>>                MTU:1280  HL:64
>>                Source address length: 6
>>                Link type: wired
>>                inet6 addr: ff02::1/128  scope: local [multicast]
>>                inet6 addr: fe80::20a4:56ff:fe14:8a61/64  scope: local
>>                inet6 addr: ff02::1:ff14:8a61/128  scope: local
>>     [multicast]
>>                inet6 addr: ff02::2/128  scope: local [multicast]
>>
>>     *RIOT (Instance 2) : *
>>     *
>>     *
>>     ifconfig
>>     Iface  4   HWaddr: ca:ec:7d:fd:db:d0
>>                MTU:1280  HL:64
>>                Source address length: 6
>>                Link type: wired
>>                inet6 addr: ff02::1/128  scope: local [multicast]
>>                inet6 addr: fe80::c8ec:7dff:fefd:dbd0/64  scope: local
>>                inet6 addr: ff02::1:fffd:dbd0/128  scope: local
>>     [multicast]
>>                inet6 addr: ff02::2/128  scope: local [multicast]
>>
>>     *_I try to ping RIOT1 from RIOT2 : _*
>>     *_
>>     _*
>>     ping6 fe80::20a4:56ff:fe14:8a61
>>     ping timeout
>>     ping timeout
>>     ping timeout
>>     --- fe80::20a4:56ff:fe14:8a61 ping statistics ---
>>     3 packets transmitted, 0 received, 100% packet loss
>>
>>     I try to ping RIOT instance 1 from instance 2 and dont work. I
>>     tried various other means like mentioning tap interface in ping
>>     command, still, don't work.
>>
>>
>>
>>     -Rik
>>
>>
>>     _______________________________________________
>>     users mailing list
>>     users at riot-os.org <mailto:users at riot-os.org>
>>     https://lists.riot-os.org/mailman/listinfo/users
>
>
>     _______________________________________________
>     users mailing list
>     users at riot-os.org <mailto:users at riot-os.org>
>     https://lists.riot-os.org/mailman/listinfo/users
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/users/attachments/20160105/0d990dd9/attachment.html>


More information about the users mailing list