Closed lisir911 closed 8 years ago
apt-get install libncurses5-dev
Or, if libncurses5-dev isn't the correct version for that release:
apt-cache search ncurses lib dev
...and pick the appropriate package to install
thank you benemorius: it works. But when I intend to build a 6lbr on ubuntu12.04(naptop), I cound not get it work. After starting the 6lbr router service , the "ifconfig" command has no difference. It print only "eth0" and "l0" information without "br0" and "tap0". could you give some advice or guide?
If you are using 1.2 threre is a bug in the configuration scripts, you temporarily have to add :
LIB_6LBR=/usr/lib/6lbr
in your 6lbr.conf file so that 6lbr can find its if-up and down scripts (which will create the interfaces). If it still does not work please send us your 6lbr.conf file and the two log files (6lbr.log and 6lbr.err)
Hi, laruentderu: I did use 1.2, and I add the "LIB_6LBR=/usr/lib/6lbr" in the 6lbr.conf , but it still can not work. The 6lbr.conf is as following: MODE=ROUTER RAW_ETH=0 BRIDGE=1 DEV_BRIDGE=br0 DEV_TAP=tap0 DEV_ETH=eth0 RAW_ETH_FCS=0 DEV_RADIO=/dev/ttyUSB1 BAUDRATE=115200 LIB_6LBR=/usr/lib/6lbr IFUP=/usr/lib/6lbr/6lbr-ifup IFDOWN=/usr/lib/6lbr/6lbr-ifdown
It's a bit strange, could you send me or attach the two following files : /var/log/6lbr.log and /var/log/6lbr.err
Hi ,laurentderu: The two files are 6lbr.log and 6lbr.err. There is some wrong, but I don't know where.
"6lbr.log":
Sat Jan 18 09:52:23 CST 2014 : Starting 6LBR
/usr/bin/../lib/6lbr/bin/cetic_6lbr_router -c /etc/6lbr/nvm.dat -s /dev/ttyUSB1 -t tap0 -R -B 115200 -U /usr/bin/../lib/6lbr/6lbr-ifup -D /usr/bin/../lib/6lbr/6lbr-ifdown -w /usr/bin/../lib/6lbr/www -W /var/log/6lbr.timestamp -P 60
Contiki 2.6 started with IPV6, RPL
Rime started with address 1.2.3.4.5.6.7.8
MAC CSMA RDC br-rdc NETWORK sicslowpan
Log level : 30
Log services : ffffffff
2014-00-18 9:52:23.505060: INFO: ETH: 6LBR watchdog started (interval: 60)
2014-00-18 9:52:23.505202: INFO: 6LBR: Starting 6LBR version 1.2 (Contiki 2.6)
2014-00-18 9:52:23.505234: INFO: NVM: Opening nvm file '/etc/6lbr/nvm.dat'
2014-00-18 9:52:23.505263: INFO: NVM: NVM Magic : 2009
2014-00-18 9:52:23.505291: INFO: NVM: NVM Version : 1
2014-00-18 9:52:23.505297: INFO: SCMD: Started br-cmd process
2014-00-18 9:52:23.505303: INFO: ETH: RAW/TAP init
2014-00-18 9:52:23.505401: INFO: SLIP: ****SLIP started on ``/dev/ttyUSB1''
2014-00-18 9:52:23.516495: FATAL: TAP: tun_alloc() : Device or resource busy
"6lbr.err":
Sat Jan 18 09:52:23 CST 2014 : Starting 6LBR /usr/bin/6lbr: line 188: 16332 Terminated application_watchdog Sat Jan 18 09:52:23 CST 2014 : /usr/bin/../lib/6lbr/bin/cetic_6lbr_router failed, exit code: 1
And I use cc2538dk as WSN node, does this matter?
Hi, I managed to build 6lbr on Raspberry Pi , the webserver can work,but I can not add a sensor node into the net, it only shows the root node. I followed the "Example 1: Hello 6LBR"(with cc2538dk). But it didn't work. The webpage of 6lbr router is as follows:
could someone give some help? thanks a lot!
At 2014-01-17 15:46:24,"Laurent Deru" notifications@github.com wrote:
If you are using 1.2 threre is a bug in the configuration scripts, you temporarily have to add :
LIB_6LBR=/usr/lib/6lbr
in your 6lbr.conf file so that 6lbr can find its if-up and down scripts (which will create the interfaces). If it still does not work please send us your 6lbr.conf file and the two log files (6lbr.log and 6lbr.err)
¡ª Reply to this email directly or view it on GitHub.
The fix for the Ubuntu issue is available in 6LBR version 1.2.2 (The make install target copied startup scripts at the wrong place on new systems)
The sensor page on 6LBR webserver is populated only if the nodes run the udp-client application from 6lbr-demo. If it's not the case you can have a list of the connected nodes in the Network tab, under the route section.
If no nodes appear there, check that 6LBR and the nodes are configured with the same channel. If it's the case, please post here the 6lbr log files
I am having the same problems as Iisir911 with virtual ubuntu 12.04 but i am using the newest version of 6lbr ( directly downloaded from: git clone https://github.com/cetic/6lbr ). Laurentderu said 2 months ago that the issue was solved at version 1.2.2. ¿Maybe it is again active with 1.3?
Regards!
The logs & errors are the followings :
At 6lbr.log :
mar abr 1 16:56:50 CEST 2014 : Starting 6LBR /usr/bin/../lib/6lbr/bin/cetic_6lbr_router -c /etc/6lbr/nvm.dat -s /dev/ttyUSB0 -t tap0 -R -B 115200 -U /usr/lib/6lbr/6lbr-ifup -D /usr/lib/6lbr/6lbr-ifdown -w /usr/bin/../lib/6lbr/www -W /var/log/6lbr.timestamp -P 60 Contiki-6lbr-1.3 started with IPV6, RPL Rime started with address 1.2.3.4.5.6.7.8 MAC CSMA RDC br-rdc NETWORK sicslowpan Log level : 30 Log services : ffffffff 2014-03-01 16:56:50.682360: INFO: ETH: 6LBR watchdog started (interval: 60) 2014-03-01 16:56:50.682416: INFO: 6LBR: Starting 6LBR version 1.3 (Contiki-6lbr-1.3) 2014-03-01 16:56:50.682418: INFO: NVM: Opening nvm file '/etc/6lbr/nvm.dat' 2014-03-01 16:56:50.682427: INFO: NVM: NVM Magic : 2009 2014-03-01 16:56:50.682428: INFO: NVM: NVM Version : 1 2014-03-01 16:56:50.682429: INFO: SCMD: Started br-cmd process 2014-03-01 16:56:50.682430: INFO: NODECFG: No node_config.conf file specified 2014-03-01 16:56:50.682433: INFO: ETH: RAW/TAP init 2014-03-01 16:56:50.684019: INFO: SLIP: SLIP started on /dev/ttyUSB0 2014-03-01 16:56:50.719176: FATAL: TAP: tun_alloc() : Device or resource busy
And at 6lbr.err :
mar abr 1 16:56:50 CEST 2014 : Starting 6LBR /usr/bin/6lbr: l?nea 192: 3341 Terminado application_watchdog mar abr 1 16:56:50 CEST 2014 : /usr/bin/../lib/6lbr/bin/cetic_6lbr_router failed, exit code: 1
Both are repeated several times EACH second.
My 6lbr.conf :
MODE=ROUTER RAW_ETH=0 BRIDGE=1 DEV_BRIDGE=br0 DEV_TAP=tap0 DEV_ETH=eth1 RAW_ETH_FCS=0 DEV_RADIO=/dev/ttyUSB0 BAUDRATE=115200 IFUP=/usr/lib/6lbr/6lbr-ifup IFDOWN=/usr/lib/6lbr/6lbr-ifdown
With latest update of Ubuntu (not sure which update exactly though) there is an issue with 6lbr starting, the start-stop-daemon tool does not detect the existing instance of 6LBR process and launches another one when the init level changes (for example at boot when switching to desktop mode). This second instance can not get the radio device as it is already used by the first instance and it retries again and again, hence polluting the log file.
This problem does not occurs on Debian and Debian derived distro like Rapsian
Thank you Laurentderu. I know it was strange because at the same time that the log were doing such this things, the 6LBR was working fine.
Well, not exactly fine, i still have a (big) problem : When i try to ping the 6LBR from my PC ( lets call PC to normal Ubuntu 12.04 and vPC to virtual Ubuntu 12.04 running in virtualbox ) i cannot, neither the 6LBR nor the wireless motes. By the other hand, from the vPC i was able to ping the 6LBR, ping the wireless motes ( by adding the via at routes table) and ping the PC.
I dont know if i am missing something, while the 6LBR ip ( as the vCP and the CP ip) is in the same bacd::/64.
$route -6 at PC:
Destination Next Hop Flag Met Ref Use If
bacd::/64 :: U 256 0 7 eth0.100 bacd::192:168:0:81/128 :: Un 0 1 1033 lo
I've just picked the 2 routes that i considered important to this issue, the first the route to all the comunications between the LAN and the second one the IPv6 of my CP.
Regards!
Hi,
In release 1.3.1 we have solved the problem with multiple 6LBR startup as well as another bug in SmartBridge mode preventing hosts on the same subnet to access the 6LBR and the WSN nodes. Could you give it a try ?
Laurent.
Hello Laurentderu, I have updated the 6LBR to 1.3.1 and now i dont have the problem with the multiple 6LBR startups.
EDITING: Right now i am working with a Beaglebone and i want to know if its posible to ( working as a router) make the brigde br0 between eth0 and tap0 without controlling completely the eth0. Because i have some previous global ipv6 and ipv4 directions at eth0, but when the 6lbr is running the eth0 is only working for the 6lbr's ipv6 global direction, not to any more addresses.
EDITING 2: And by the other side, working as a router in raw mode, i can use the eth0, but i have no comunication between the beaglebone and the wireless 802.15.4 net.
So: BRIDGE MODE : No external ipv6 or ipv4 direct comunication with another PC on the net, except by 6lbr. RAW MODE : No external ipv6 direct comunication with the border-router.
make[2]: Leaving directory /home/user/6lbr/examples/6lbr' mkdir -p bin mv cetic-6lbr.native bin/cetic_6lbr_rpl_root make[1]: Leaving directory
/home/user/6lbr/examples/6lbr'
can anybody help me out??
The log provided is truncated and contains no error, also could you open a new issue instead of highjacking this one ? Thank you.
Hello Laurentderu,
I am trying to upload z1 data to ubidots.com by following this link :
https://github.com/marcozennaro/IPv6-WSN-book/blob/master/5.asc
I installed 6lbr on raspberrypi, connected it with a slip-radio loaded z1 mote and, To use NAT64 with Wrapsix then I installed wrapsix on raspberry, modifed wrapper.c with necessary configuration:
when I start wrapsix as daemon I get :
[1] 3039 [Info] WrapSix 0.2.0 is starting pi@raspberrypi ~/wrapsix-0.2.0/src $ [Error] Unable to create listening socket
sudo service 6lbr restart
Logs:
Tue Jun 16 09:52:34 UTC 2015 : Starting 6LBR /usr/lib/6lbr/bin/cetic_6lbr_router -c /etc/6lbr/nvm.dat -s /dev/ttyUSB0 -t eth0 -r -B 115200 -U /usr/lib/6lbr/6lbr-ifup -D /usr/lib/6lbr/6lbr-ifdown -w /usr/lib/6lbr/www -L 3 -W /var/log/6lbr.timestamp -P 60 -C /var/log/6lbr.ip -m /usr/lib/6lbr/plugins Contiki-6lbr-1.3.2-34-g3715b49 started with IPV6, RPL Rime started with address 1.2.3.4.5.6.7.8 MAC CSMA RDC br-rdc NETWORK sicslowpan Log level : 30 Log services : ffffffff 2015-05-16 9:52:34.465054: INFO: ETH: 6LBR watchdog started (interval: 60) 2015-05-16 9:52:34.466461: INFO: 6LBR: Starting 6LBR version 1.3.3 (Contiki-6lbr-1.3.2-34-g3715b49) 2015-05-16 9:52:34.466502: INFO: NVM: Opening nvm file '/etc/6lbr/nvm.dat' 2015-05-16 9:52:34.475495: INFO: NVM: NVM Magic : 2009 2015-05-16 9:52:34.475550: INFO: NVM: NVM Version : 1 2015-05-16 9:52:34.475574: INFO: SCMD: Started br-cmd process 2015-05-16 9:52:34.475598: INFO: NODECFG: No node_config.conf file specified 2015-05-16 9:52:34.475620: INFO: ETH: RAW/TAP init 2015-05-16 9:52:34.478330: INFO: SLIP: SLIP started on /dev/ttyUSB0 2015-05-16 9:52:34.500564: INFO: TAP: opened device /dev/eth0 2015-05-16 9:52:34.501371: INFO: TAP: Running 6lbr-ifup script '/usr/lib/6lbr/6lbr-ifup' eth0 Link encap:Ethernet HWaddr b8:27:eb:33:e7:28 inet addr:192.168.10.5 Bcast:192.168.10.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3531 errors:0 dropped:0 overruns:0 frame:0 TX packets:1726 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:627824 (613.1 KiB) TX bytes:266945 (260.6 KiB)
2015-05-16 9:52:34.870443: INFO: TAP: Eth MAC address : b8:27:eb:33:e7:28 2015-05-16 9:52:34.870684: INFO: BR-RDC: Reset SLIP Radio 2015-05-16 9:52:34.870810: INFO: BR-RDC: Fetching MAC address 2015-05-16 9:52:34.904707: ERROR: SLIP: Unknown command 2015-05-16 9:52:34.935126: INFO: BR-RDC: Got MAC: c1:0c:00:00:00:00:13:e8 2015-05-16 9:52:35.870855: INFO: 6LBR: Tentative local IPv6 address fe80::c30c:0:0:13e8 2015-05-16 9:52:35.871634: INFO: 6LBR: Tentative global IPv6 address (WSN) aaaa::c30c:0:0:13e8 2015-05-16 9:52:35.872290: INFO: 6LBR: Tentative global IPv6 address (ETH) bbbb::100 2015-05-16 9:52:35.872644: INFO: 6LBR: RA Daemon enabled 2015-05-16 9:52:35.873114: INFO: NVM: Opening nvm file '/etc/6lbr/nvm.dat' 2015-05-16 9:52:35.874336: INFO: 6LBR: Configured as DODAG Root 2015-05-16 9:52:35.874611: INFO: 6LBR: Starting as RPL ROUTER 2015-05-16 9:52:35.877235: INFO: UDPS: UDP server started 2015-05-16 9:52:35.878332: INFO: 6LBR: CETIC 6LBR Started 2015-05-16 9:52:35.878704: ERROR: SLIP: Unknown command
In my browser I able to see border router page : [bbbb::100]
After this when I run ubidots_demo.c on another z1 mote I get following logs:
Starting 'Ubidots demo process' Ubidots client: STATE_ERROR_NO_NET Ubidots client: STATE_ERROR_NO_NET Ubidots client: STATE_ERROR_NO_NET Ubidots client: STATE_ERROR_NO_NET Ubidots client: STATE_ERROR_NO_NET Ubidots client: STATE_ERROR_NO_NET Ubidots client: STATE_ERROR_NO_NET Ubidots client: STATE_ERROR_NO_NET Ubidots client: STATE_ERROR_NO_NET Ubidots client: STATE_ERROR_NO_NET Ubidots client: STATE_ERROR_NO_NET Ubidots client: STATE_STARTING Ubidots client: Checking 64:ff9b::3217:7c44 Ubidots client: 'Host: [64:ff9b::3217:7c44]' (remaining 44) Ubidots client: STATE_TCP_CONNECT (1) Ubidots client: Connect 64:ff9b::3217:7c44 port 80 event_callback: disconnected Ubidots client: STATE_DISCONNECTED Ubidots client: STATE_TCP_CONNECT (2) Ubidots client: Connect 64:ff9b::3217:7c44 port 80 event_callback: disconnected Ubidots client: STATE_DISCONNECTED Ubidots client: STATE_TCP_CONNECT (3) Ubidots client: Connect 64:ff9b::3217:7c44 port 80 event_callback: disconnected Ubidots client: STATE_DISCONNECTED Ubidots client: STATE_TCP_CONNECT (4) Ubidots client: Connect 64:ff9b::3217:7c44 port 80
Any suggestions would be helpful
Thanks! Deepika
I never used wrapsix, but I guess the problem is coming from :
[1] 3039
[Info] WrapSix 0.2.0 is starting
pi@raspberrypi ~/wrapsix-0.2.0/src $ [Error] Unable to create listening socket
Without a listening socket, you can not have NAT64 and connectivity.
PS: Please, could you create a proper issue instead of reusing an unrelated one ?
@laurentderu,
I am sorry for that, yes I have created a new issue.
Hi, I intend to install 6lbr on my naptop with ubuntu12.04,but I can't make it. Under the example/6lbr I use the command "make all_native" but finally it print the following error message:
../../platform/native/ctk/ctk-curses.c:34:20: fatal error: curses.h: No such file or directory compilation terminated. make[2]: * [obj_native/ctk-curses.o] Error 1 make[2]: Leaving directory `/home/li-ubuntu/Documents/cetic-6lbr-74dac48/examples/6lbr' make[1]: * [bin/cetic_6lbr_smart_bridge] Error 2 make[1]: Leaving directory`/home/li-ubuntu/Documents/cetic-6lbr-74dac48/examples/6lbr' make: *\ [all_native] Error 2
could someone give some help?