cetic / 6lbr

A deployment-ready 6LoWPAN Border Router solution based on Contiki
github.com/cetic/6lbr/wiki
Other
337 stars 195 forks source link

unable to access webserver on a node using 6lbr router #159

Closed shatruddha closed 7 years ago

shatruddha commented 8 years ago

Hi I'm having a strange problem, I'm able to access the webpage at router [bbbb::100] but when a node is connected to it, I'm not able to open the webpage hosted there. following are the details Target=srf06-cc26xx Board=srf06/cc13xx one cc13xx module is programmed as slip radio and is connected to RPi. other node is programmed with cc26xx-web-demo has anyone else faced the same issue? further information - as mentioned on http://processors.wiki.ti.com/index.php/Cc26xx_sw_examples netstat -rn does not show me a route to aaaa:: I tried to ping the node, that also fails with "network is unreachable"

laurentderu commented 8 years ago

You need to configure your local network to access the BR, see https://github.com/cetic/6lbr/wiki/6LBR-Connection

Praveen-Kumar-K commented 8 years ago

Hi, I have configure 6lbr on beagle bone black in Router mode, I am able to view [bbbb::100] web page from my PC. In web page how can i access webserver or coap page placed at sensor tab. actually i want to connect device through coap, how it could be achieved, please any one help me out regarding this.

Thanks, Praveen Kumar K

janeksz commented 8 years ago

You need to have a Copper - Firefox extension for Coap. Right click on the Coap link for the mote and open in a new tab. That's it. 6lbr1 6lbr2

Praveen-Kumar-K commented 8 years ago

Hi janeksz, I want to implement CoAP application in my node (cc2538dk) and want to control a led on it. I have configure 6LBR on Beagle bone black in Router mode, What code should i flash to cc2538dk to implement CoAP. I am having Contiki 3.0 OS, can you help me in this regard.

Thanks, Praveen Kumar K

laurentderu commented 8 years ago

You can use either the er-rest-example from Contiki or 6lbr-demo with the CoAP server activated, but you have to code the resources controlling your LED.

Praveen-Kumar-K commented 8 years ago

Thanks laurentderu, i have flashed er-rest-example to cc2338dk and running 6LBR on Beagle bone black, but i am unable to open webserver or CoAP page from my PC. I am able to access up to basic webpage @bbbb::100 only but unable to move forward to open CoAP page. can any one let me know, is there any flags or macros should be enable in code before compiling to enable coap services.

Thanks, Praveen Kumar k

janeksz commented 8 years ago

@Praveen-Kumar-K I don't know the cc2358dk platform, so my advice is to ask for help from TI E22 forum for some pointers and examples. You might check as well https://github.com/thingsquare/hardware , http://www.openmote.com/home.html

Praveen-Kumar-K commented 8 years ago

Hi janeksz, Thanks for links, Actually i need to connect node to internet and implement CoAP on it. I am able to view the 6LBR server page from my PC, but iam unable to forward to open CoAP page from it. Can any one suggest how to implement this. Thanks, Praveen Kumar Kamma

janeksz commented 8 years ago

Your 6LoWPAN motes have to have a proper firmware. Either use the Contiki examples for your platform, modify examples from other platforms or create your own. Reading #11.3 from this book http://wireless.ictp.it/school_2015/book/book.pdf might help in understanding CoAP.

Praveen-Kumar-K commented 8 years ago

Hi janeksz, Thanks for book link, in that they mention that Border router is RPL-border router, can i use Cetic-6lbr in place of that, can any one clarify this.

Thanks, Praveen Kumar K

MarCast commented 7 years ago

Hi, I have a problem. When I click on coap, It opens the page, but clicking on coap discover not find the resources. How can I do?

paishreeni commented 7 years ago

capture

Is it because of this error i'm not able to open webserver?

laurentderu commented 7 years ago

@paishreeni that means your BR has lost the connection with the slip-radio. Although you should be still able to connect to the BR.

paishreeni commented 7 years ago

@laurentderu How to proceed further if I need to open the webserver?

KavinduS commented 5 years ago

How can I access the node using COAP. Copper add on is not supported now.