From: Benjamin B. <had...@go...> - 2011-10-04 07:41:05
|
Hi, I think you should check the port. When you open the tcp socket server in cooja, the port is printed in the window. The other things you tried, are not working, because they use a serial device, which cooja won't create. kind regards Benjamin Am 04.10.2011 07:38, schrieb Patricia Elizabeth Figueroa Millán: > 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. > > > ------------------------------------------------------------------------------ > 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-d2dcopy1 > > > _______________________________________________ > Contiki-developers mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/contiki-developers |