From: Sergio V. <ser...@gm...> - 2011-10-24 10:48:39
|
Hi, thanks Cyril!! Great! I am able to compile now... :-) However, why does not it work when I try to compile directly from Cooja, when creating the mote type? I am reading and trying to follow the patch and I am wandering what the minimum changes would be necessary to make the rpl-collect work in a contiki mote. Please, could you advise me through the process to be able to simulate an rpl-collect example with no-memory-limited contiki motes? I mean, how can I create an uart so the udp-sender and udp-sink do not complain? Thanks so much!!! Sergio On Fri, Oct 21, 2011 at 7:06 PM, cyril auburtin <cyr...@in...>wrote: > why don't you build > make border-router.cooja TARGET=cooja? > > well myself I have some frequent crashes of cooja after several minutes > when I use cooja target > > see the log enclosed, > I would like to know the reason > > ------------------------------ > > Hi, > > I made clean and also remove the obj_cooja folder but I got the same error. > > What could be the error caused by? > > Thanks so much for your support! > Sergio > > > > On Fri, Oct 21, 2011 at 5:22 PM, cyril auburtin <cyr...@in...>wrote: > >> Can you clean before and retry? >> >> ------------------------------ >> >> Hi Cyril, >> >> Thank you very much for the file! >> >> I patched it creating two directories with contiki, a and b, into a parent >> directory. Then I patched using "patch -p0 < cooja.diff" and it did not >> display any error. >> >> Then I created a new simulation. But when I create the contiki motes with >> the slip-bridge.c firmware, it complains for some warnings and errors: >> >> > make slip-bridge.cooja TARGET=cooja >> .... >> gcc -DUIP_CONF_IPV6_RPL -DPROJECT_CONF_H=\"project-conf.h\" -DWEBSERVER=1 >> -DCONTIKI=1 -DCONTIKI_TARGET_COOJA=1 -DUIP_CONF_IPV6=1 >> -I'/usr/lib/jvm/java-6-sun/include' >> -I'/usr/lib/jvm/java-6-sun/include/linux' -fno-builtin-printf -fPIC -Wall -g >> -I/usr/local/include -DCLASSNAME=Lib1 -DWITH_UIP6=1 -I. >> -I../../../platform/cooja/. -I../../../platform/cooja/dev >> -I../../../platform/cooja/lib -I../../../platform/cooja/sys >> -I../../../platform/cooja/cfs -I../../../platform/cooja/net >> -I../../../core/dev -I../../../core/lib -I../../../core/net >> -I../../../core/net/mac -I../../../core/net/rime -I../../../core/net/rpl >> -I../../../core/sys -I../../../core/cfs -I../../../core/ctk >> -I../../../core/lib/ctk -I../../../core/loader -I../../../core/. >> -DCONTIKI_VERSION_STRING=\"Contiki-2.5-1439-g431d536\" -MMD -c >> ../../../platform/cooja/net/uip-driver.c -o obj_cooja/uip-driver.o >> ../../../platform/cooja/net/uip-driver.c: In function 'init': >> ../../../platform/cooja/net/uip-driver.c:67:3: warning: passing argument 1 >> of 'tcpip_set_outputfunc' from incompatible pointer type >> ../../../core/./net/tcpip.h:345:6: note: expected 'u8_t (*)(struct >> uip_lladdr_t *)' but argument is of type 'uint8_t (*)(void)' >> ar rcf obj_cooja/mtype337.a obj_cooja/rimeaddr.o obj_cooja/rime.o >> obj_cooja/timesynch.o obj_cooja/rimestats.o obj_cooja/announcement.o >> obj_cooja/polite-announcement.o obj_cooja/broadcast-announcement.o >> obj_cooja/broadcast.o obj_cooja/stbroadcast.o obj_cooja/unicast.o >> obj_cooja/stunicast.o obj_cooja/runicast.o obj_cooja/abc.o obj_cooja/rucb.o >> obj_cooja/polite.o obj_cooja/ipolite.o obj_cooja/netflood.o >> obj_cooja/multihop.o obj_cooja/rmh.o obj_cooja/trickle.o obj_cooja/mesh.o >> obj_cooja/route.o obj_cooja/route-discovery.o obj_cooja/collect.o >> obj_cooja/collect-neighbor.o obj_cooja/neighbor-discovery.o >> obj_cooja/collect-link-estimate.o obj_cooja/rudolph0.o obj_cooja/rudolph1.o >> obj_cooja/rudolph2.o obj_cooja/chameleon.o obj_cooja/channel.o >> obj_cooja/chameleon-raw.o obj_cooja/chameleon-bitopt.o obj_cooja/cxmac.o >> obj_cooja/xmac.o obj_cooja/nullmac.o obj_cooja/lpp.o obj_cooja/frame802154.o >> obj_cooja/sicslowmac.o obj_cooja/nullrdc.o obj_cooja/nullrdc-noframer.o >> obj_cooja/mac.o obj_cooja/framer-nullmac.o obj_cooja/framer-802154.o >> obj_cooja/csma.o obj_cooja/contikimac.o obj_cooja/phase.o obj_cooja/rpl.o >> obj_cooja/rpl-dag.o obj_cooja/rpl-icmp6.o obj_cooja/rpl-timers.o >> obj_cooja/rpl-of-etx.o obj_cooja/process.o obj_cooja/procinit.o >> obj_cooja/autostart.o obj_cooja/elfloader.o obj_cooja/profile.o >> obj_cooja/timetable.o obj_cooja/timetable-aggregate.o obj_cooja/compower.o >> obj_cooja/serial-line.o obj_cooja/memb.o obj_cooja/mmem.o obj_cooja/timer.o >> obj_cooja/list.o obj_cooja/etimer.o obj_cooja/ctimer.o obj_cooja/energest.o >> obj_cooja/rtimer.o obj_cooja/stimer.o obj_cooja/print-stats.o >> obj_cooja/ifft.o obj_cooja/crc16.o obj_cooja/random.o obj_cooja/checkpoint.o >> obj_cooja/ringbuf.o obj_cooja/netstack.o obj_cooja/uip-debug.o >> obj_cooja/packetbuf.o obj_cooja/queuebuf.o obj_cooja/packetqueue.o >> obj_cooja/uip6.o obj_cooja/tcpip.o obj_cooja/psock.o >> obj_cooja/uip-udp-packet.o obj_cooja/uip-split.o obj_cooja/resolv.o >> obj_cooja/tcpdump.o obj_cooja/uiplib.o obj_cooja/simple-udp.o >> obj_cooja/uip-icmp6.o obj_cooja/uip-nd6.o obj_cooja/uip-packetqueue.o >> obj_cooja/sicslowpan.o obj_cooja/neighbor-attr.o obj_cooja/neighbor-info.o >> obj_cooja/uip-ds6.o obj_cooja/mt.o obj_cooja/nullradio.o >> obj_cooja/simEnvChange.o obj_cooja/cooja_mt.o obj_cooja/cooja_mtarch.o >> obj_cooja/rtimer-arch.o obj_cooja/slip.o obj_cooja/watchdog.o >> obj_cooja/beep.o obj_cooja/button-sensor.o obj_cooja/ip.o >> obj_cooja/leds-arch.o obj_cooja/moteid.o obj_cooja/pir-sensor.o >> obj_cooja/rs232.o obj_cooja/vib-sensor.o obj_cooja/clock.o obj_cooja/log.o >> obj_cooja/cfs-cooja.o obj_cooja/cooja-radio.o obj_cooja/sensors.o >> obj_cooja/leds.o obj_cooja/symbols.o obj_cooja/uip-driver.o >> Redefining printf >> objcopy --redefine-sym printf=log_printf slip-bridge.co; objcopy >> --redefine-sym printf=log_printf obj_cooja/mtype337.o; objcopy >> --redefine-sym printf=log_printf obj_cooja/slip-bridge.o; objcopy >> --redefine-sym printf=log_printf obj_cooja/httpd-simple.o; objcopy >> --redefine-sym printf=log_printf obj_cooja/mtype337.a; >> objcopy --redefine-sym puts=log_puts slip-bridge.co; objcopy >> --redefine-sym puts=log_puts obj_cooja/mtype337.o; objcopy --redefine-sym >> puts=log_puts obj_cooja/slip-bridge.o; objcopy --redefine-sym >> puts=log_puts obj_cooja/httpd-simple.o; objcopy --redefine-sym >> puts=log_puts obj_cooja/mtype337.a; >> objcopy --redefine-sym putchar=log_putchar slip-bridge.co; objcopy >> --redefine-sym putchar=log_putchar obj_cooja/mtype337.o; objcopy >> --redefine-sym putchar=log_putchar obj_cooja/slip-bridge.o; objcopy >> --redefine-sym putchar=log_putchar obj_cooja/httpd-simple.o; objcopy >> --redefine-sym putchar=log_putchar obj_cooja/mtype337.a; >> gcc -I'/usr/lib/jvm/java-6-sun/include' >> -I'/usr/lib/jvm/java-6-sun/include/linux' -shared >> -Wl,-Map=obj_cooja/mtype337.map -o obj_cooja/mtype337.cooja >> slip-bridge.co obj_cooja/mtype337.o obj_cooja/slip-bridge.o >> obj_cooja/httpd-simple.o obj_cooja/mtype337.a >> obj_cooja/slip-bridge.o:(.data.rel.ro.local+0x0): multiple definition of >> `rpl_interface' >> slip-bridge.co:(.data.rel.ro.local+0x0): first defined here >> collect2: ld returned 1 exit status >> make: *** [obj_cooja/mtype337.cooja] Error 1 >> Process returned error code 2 >> >> What do you think? Have I done something wrong? >> >> Thanks!! >> Sergio >> >> >> On Thu, Oct 20, 2011 at 7:10 PM, Sergio Valcarcel <ser...@gm...>wrote: >> >>> It looks great!! >>> Please, I am not very confidence with the patch command, could you tell >>> me where to execute the patch and with which options? >>> >>> Thanks!!!!! >>> Sergio >>> >>> >>> On Thu, Oct 20, 2011 at 3:44 PM, cyril auburtin <cyr...@in... >>> > wrote: >>> >>>> wrong sense >>>> >>>> ------------------------------ >>>> >>>> cooja.diff >>>> >>>> hope Contiki applies this soon >>>> >>>> ------------------------------ >>>> >>>> Hi Ciryl, >>>> >>>> Thanks so much for the suggestion! >>>> I have found this website in the Contiki wiki explaining how to set up >>>> RPL over minimal-net and it looks very good: >>>> >>>> http://www.sics.se/contiki/wiki/index.php/A_RPL_network_on_the_minimal-net_platform >>>> >>>> But since I want to see the "network behavior" with many nodes, the best >>>> for us would be to simulate in Cooja. >>>> I remember that you were able to workaround the lack of uart in the >>>> Contiki motes. After checking the thread again, at the end you summarize >>>> everything with: >>>> * >>>> >>>> * >>>> >>>> * >>>> you just have to add in cooja/dev/rs232.c >>>> * >>>> *#include "dev/slip.h"* >>>> * >>>> void >>>> * >>>> * >>>> slip_arch_writeb(unsigned char c) >>>> * >>>> * >>>> { >>>> * >>>> * >>>> simlog_char(c); >>>> * >>>> * >>>> } >>>> * >>>> * >>>> >>>> * >>>> * >>>> void >>>> * >>>> * >>>> slip_arch_init(unsigned long ubr) >>>> * >>>> * >>>> { >>>> * >>>> * >>>> *rs232_set_input(slip_input_byte); >>>> * >>>> } >>>> * >>>> >>>> >>>> But you mentioned that while the RPL border router works, the udp-sender >>>> won't. Were you able to make the whole RPL work? >>>> >>>> Thanks!! >>>> Sergio >>>> >>>> On Wed, Oct 19, 2011 at 11:23 AM, cyril auburtin < >>>> cyr...@in...> wrote: >>>> >>>>> to me, best ways is to use either minimal-net outside of Cooja >>>>> (breakpoints possible) , or cooja targets where printf code size will not >>>>> matter but no code watcher, I don't know if mspcodewatcher would be >>>>> compatible, not even tried >>>>> >>>>> ------------------------------ >>>>> >>>>> Hi, >>>>> >>>>> Is there any way to debug in Cooja, accessing the variables in the >>>>> code? >>>>> >>>>> The msp_code_watcher plugin does not work, I have seen an email >>>>> suggesting a patch, but them another mail says it does not allow >>>>> breakpoints. >>>>> >>>>> Now, I am just changing the source with extensive printfs to see what >>>>> happens in the simulation, but to be able to access the variables in running >>>>> time would be much more efficient. >>>>> >>>>> Please, could you tell me different strategies and even some steps >>>>> "for-dummies" for debugging in Cooja? >>>>> >>>>> Thank you very much!!! >>>>> Sergio >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> All the data continuously generated in your IT infrastructure contains >>>>> a >>>>> definitive record of customers, application performance, security >>>>> threats, fraudulent activity and more. Splunk takes this data and makes >>>>> sense of it. Business sense. IT sense. Common sense. >>>>> http://p.sf.net/sfu/splunk-d2d-oct >>>>> _______________________________________________ >>>>> Contiki-developers mailing list >>>>> Con...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/contiki-developers >>>>> >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> All the data continuously generated in your IT infrastructure contains >>>>> a >>>>> definitive record of customers, application performance, security >>>>> threats, fraudulent activity and more. Splunk takes this data and makes >>>>> sense of it. Business sense. IT sense. Common sense. >>>>> http://p.sf.net/sfu/splunk-d2d-oct >>>>> _______________________________________________ >>>>> Contiki-developers mailing list >>>>> Con...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/contiki-developers >>>>> >>>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> All the data continuously generated in your IT infrastructure contains a >>>> definitive record of customers, application performance, security >>>> threats, fraudulent activity and more. Splunk takes this data and makes >>>> sense of it. Business sense. IT sense. Common sense. >>>> http://p.sf.net/sfu/splunk-d2d-oct >>>> _______________________________________________ >>>> Contiki-developers mailing list >>>> Con...@li... >>>> https://lists.sourceforge.net/lists/listinfo/contiki-developers >>>> >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> The demand for IT networking professionals continues to grow, and the >>>> demand for specialized networking skills is growing even more rapidly. >>>> Take a complimentary Learning@Ciosco Self-Assessment and learn >>>> about Cisco certifications, training, and career opportunities. >>>> http://p.sf.net/sfu/cisco-dev2dev >>>> >>>> _______________________________________________ >>>> Contiki-developers mailing list >>>> Con...@li... >>>> https://lists.sourceforge.net/lists/listinfo/contiki-developers >>>> >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> The demand for IT networking professionals continues to grow, and the >>>> demand for specialized networking skills is growing even more rapidly. >>>> Take a complimentary Learning@Ciosco Self-Assessment and learn >>>> about Cisco certifications, training, and career opportunities. >>>> http://p.sf.net/sfu/cisco-dev2dev >>>> _______________________________________________ >>>> Contiki-developers mailing list >>>> Con...@li... >>>> https://lists.sourceforge.net/lists/listinfo/contiki-developers >>>> >>>> >>> >> >> >> ------------------------------------------------------------------------------ >> The demand for IT networking professionals continues to grow, and the >> demand for specialized networking skills is growing even more rapidly. >> Take a complimentary Learning@Cisco Self-Assessment and learn >> about Cisco certifications, training, and career opportunities. >> http://p.sf.net/sfu/cisco-dev2dev >> _______________________________________________ >> Contiki-developers mailing list >> Con...@li... >> https://lists.sourceforge.net/lists/listinfo/contiki-developers >> >> >> >> >> ------------------------------------------------------------------------------ >> The demand for IT networking professionals continues to grow, and the >> demand for specialized networking skills is growing even more rapidly. >> Take a complimentary Learning@Cisco Self-Assessment and learn >> about Cisco certifications, training, and career opportunities. >> http://p.sf.net/sfu/cisco-dev2dev >> _______________________________________________ >> Contiki-developers mailing list >> Con...@li... >> https://lists.sourceforge.net/lists/listinfo/contiki-developers >> >> > > > ------------------------------------------------------------------------------ > The demand for IT networking professionals continues to grow, and the > demand for specialized networking skills is growing even more rapidly. > Take a complimentary Learning@Cisco Self-Assessment and learn > about Cisco certifications, training, and career opportunities. > http://p.sf.net/sfu/cisco-dev2dev > _______________________________________________ > Contiki-developers mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/contiki-developers > > > > > ------------------------------------------------------------------------------ > The demand for IT networking professionals continues to grow, and the > demand for specialized networking skills is growing even more rapidly. > Take a complimentary Learning@Cisco Self-Assessment and learn > about Cisco certifications, training, and career opportunities. > http://p.sf.net/sfu/cisco-dev2dev > _______________________________________________ > Contiki-developers mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/contiki-developers > > |