|
From: faisal <xf...@gm...> - 2010-11-02 18:36:24
|
Hi I have managed to make pinging work in Instant Contiki. In normal ubuntu its still not working, I think i might be either the environment settings or msp packages. thanks Faisal On 1 November 2010 15:15, Ricardo Custodio <rj...@st...> wrote: > Hi, > > Regarding to ping6 replies, please follow this steps : > > - Open file /contiki2.x/core/net/uip-icmp6.c > - Search for "*void* *uip_icmp6_echo_request_input*(*void*)" > - Add "tcpip_ipv6_output();" at the end of this function. > > > (cold be interesting to you take a look at /contiki2.x/core/net/uip6.c and > search for "ICMP6_ECHO_REQUEST") > > This worked for me, if not, please undo that changes. > As I found, contiki was creating an ICMP ECHO REPLY packet, but not sent it > back. > Please correct-me if I'am wrong. > > Regards, > Ricardo > > > On 29 October 2010 20:48, faisal <xf...@gm...> wrote: > >> Hi >> I hope this is the right forum for some help on uIP6/6lowpan. >> I am running Contiki 2.4 on Ubuntu 10.04 and two telosb(one with sensors) >> modules. I am working on a project where I have to setup a full 6lowpan >> network with temperature sensor data send over 6lowpan and then Ipv6 to a >> remote host. Current I have installed udp-server on one TelosB(TPR2420) and >> bridge on another Telosb(TPR 2400) connected to the laptop. But I cant get >> any replies if I ping6 to udp-server mote. >> Details are following >> UDPIPv6 server TPR2420 >> >> asus@asus:/opt/contiki-2.x/examples/udp-ipv6$ sudo make TARGET=sky >> >> asus@asus:/opt/contiki-2.x/examples/udp-ipv6$ sudo make TARGET=sky >> udp-server.upload >> >> >> >> Ipv6 addr for UDP mote >> >> asus@asus:/opt/contiki-2.x/examples/udp-ipv6$ sudo make TARGET=sky login >> >> RESET>> >> >> Rime started with address 0.18.116.0.17.123.133.29 >> >> MAC 00:12:74:00:11:7b:85:1d Contiki 2.4 started. Node id is not set. >> >> CSMA ContikiMAC, channel check rate 8 Hz, radio channel 26 >> >> Tentative link-local IPv6 address fe80:0000:0000:0000:0212:7400:117b:851d >> >> Starting 'UDP server process' >> >> UDP server started >> >> Server IPv6 addresses: aaaa::212:7400:117b:851d >> >> fe80::212:7400:117b:851d >> >> Bridge MAC address TPR2400MAC 00:12:74:00:11:7b:a3:19 >> >> Bridge mote software >> >> asus@asus:/opt/contiki-2.x/tools/sky/uip6-bridge$ sudo make TARGET=sky >> uip6-bridge-tap.upload >> Setup Bridge >> >> sudo apt-get install radvd >> >> /etc/sysctl.conf >> >> net.ipv6.conf.all.forwarding=1 >> >> >> Window 1 >> >> asus@asus:/opt/contiki-2.x/tools/sky/uip6-bridge$ make connect >> >> sudo ../../tapslip6 -t tap0 -s /dev/ttyUSB0 127.0.0.1 255.0.0.0 >> >> slip started on ``/dev/ttyUSB0'' >> >> opened device ``/dev/tap0'' >> >> opening: tap0ifconfig tap0 inet `hostname` up >> >> route add -net 127.0.0.0 netmask 255.0.0.0 dev tap0 >> >> ifconfig tap0 >> >> tap0 Link encap:Ethernet HWaddr c6:ca:86:9c:0b:db >> >> inet addr:127.0.1.1 Bcast:127.255.255.255 Mask:255.0.0.0 >> >> inet6 addr: fe80::c4ca:86ff:fe9c:bdb/64 Scope:Link >> >> >> >> Window 2 >> >> asus@asus:/opt/contiki-2.x/tools/sky/uip6-bridge$ make bridge >> MAC=74:00:11:7b:a3:19 >> >> Starting radvd: radvd. >> >> sudo route add -6 aaaa::/64 tap0 >> >> sudo ip -6 address add aaaa::1/64 dev tap0 >> >> >> Ping >> >> UDP mote Ipv6>> aaaa::212:7400:117b:851d >> >> >> >> asus@asus:/opt/contiki-2.x/tools/sky$ ping6 aaaa::212:7400:117b:851d >> >> >> >> PING aaaa::212:7400:117b:851d(aaaa::212:7400:117b:851d) 56 data bytes >> >> From aaaa::1 icmp_seq=1 Destination unreachable: Address unreachable >> >> ^C >> >> --- aaaa::212:7400:117b:851d ping statistics --- >> >> 14 packets transmitted, 0 received, +12 errors, 100% packet loss, time >> 13050ms >> >> >> >> Regards >> >> Faisal >> Kingston University, London >> >> >> ------------------------------------------------------------------------------ >> Nokia and AT&T present the 2010 Calling All Innovators-North America >> contest >> Create new apps & games for the Nokia N8 for consumers in U.S. and Canada >> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in >> marketing >> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store >> http://p.sf.net/sfu/nokia-dev2dev >> _______________________________________________ >> Contiki-developers mailing list >> Con...@li... >> https://lists.sourceforge.net/lists/listinfo/contiki-developers >> >> > > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All Innovators-North America > contest > Create new apps & games for the Nokia N8 for consumers in U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in > marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > _______________________________________________ > Contiki-developers mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/contiki-developers > > |