From: Patricia E. F. M. <A01...@it...> - 2011-10-04 05:38:13
|
Hi everyone. I am trying to build a TCP server in cooja. I set up a border router in cooja using border-router.c and a node with my tcp socket server following the example example-psock-server.c. I compille succesfully the simulation and all seems to work but when I do : make connect-router-cooja I get the following error: sudo ../../tools/tunslip6 -a 127.0.0.1 aaaa::1/64 client: connect: Connection refused tunslip6: can't connect to ``127.0.0.1:60001'': Connection refused make: *** [connect-router-cooja] Error 1 I compile it for minimal-net and it is working. I only add the aaaa:: prefix. And I can read in a client socket in java the message "Welcome, please type something and press return.\n" that the server sends to the client. This is the Makefile (it is based on the rest-server-example): all: patty #The Makefile will include the Contiki Make structure and automatically compile your project. CONTIKI=../.. ifndef TARGET TARGET=sky endif WITH_UIP6=1 UIP_CONF_IPV6=1 CFLAGS += -DPROJECT_CONF_H=\"project-conf.h\" include $(CONTIKI)/Makefile.include $(CONTIKI)/tools/tunslip6: $(CONTIKI)/tools/tunslip6.c (cd $(CONTIKI)/tools && $(MAKE) tunslip6) connect-router: $(CONTIKI)/tools/tunslip6 sudo $(CONTIKI)/tools/tunslip6 aaaa::1/64 connect-router-cooja: $(CONTIKI)/tools/tunslip6 sudo $(CONTIKI)/tools/tunslip6 -a 127.0.0.1 aaaa::1/64 Any help? What its happening with cooja and tunslip6? Why I can run succesfully with minimal-net?. What means this error? Thanks in advance. -- Patty Figueroa. |