Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation of 6LBR in Ubuntu 10.04 #3

Closed
KarHoey opened this issue Mar 13, 2013 · 39 comments
Closed

Installation of 6LBR in Ubuntu 10.04 #3

KarHoey opened this issue Mar 13, 2013 · 39 comments

Comments

@KarHoey
Copy link

KarHoey commented Mar 13, 2013

Hi,

Thanks for suggestion but I didn't try the Python2.7 yet. The 6lbr still not works for me.

Everything is configured as default except that

  1. /etc/6lbr/6lbr.conf (RAW_ETH=1 and DEV_ETH=eth1)
  2. /6lbr/examples/6lbr/package/etc/6lbr/6lbr.conf.example (#DEV_ETH=eth1)
    because my 6LBR is connected to a Eth1 interface.

The Ubuntu client unable to connect to the [bbbb::100]. Can you point out me where I did wrong.. Thank you.

6lbr

@laurentderu
Copy link
Member

Hi,

The network interface (DEV_ETH) to be specified in /etc/6lbr/6lbr.conf should be the Ethernet interface of the 6LBR host, according to your diagram it should be Eth0 instead Eth1.

If this does not solve the issue, could you send us the configuration files (6lbr.conf and nvm.dat), the log files (var/log/6lbr.*) and also the output of ifconfig eth1 and netstat -nr -A inet6 on the Client.

Could you also try TAP-Bridge mode, it might be that Ubuntu has additional security rules that prevent raw ethernet to work properly.

Thank you for your feedback,
Laurent.

@KarHoey
Copy link
Author

KarHoey commented Mar 15, 2013

Dear Laurent,

Sorry for disturb, but I can't find from 6lbr source code, where is the modified "slip-radio" from 6lbr-demo (cd $CONTIKI_HOME/examples/6lbr-demo/slip-radio) ? Thank you.

@sdawans
Copy link
Collaborator

sdawans commented Mar 15, 2013

Hello,
The slip-radio we use is the one in the contiki examples, here: /examples/ipv6/slip-radio
Note that for the moment the channel switching is only implemented for sky, econotag and nooliberry, so if you use Z1 make sure that you specifiy the channel you use in your project-conf.h so that it's set at compile time, and use the same channel number on 6lbr.

@sdawans
Copy link
Collaborator

sdawans commented Mar 15, 2013

@KarHoey , I wondered why you wre looking for a $CONTIKI_HOME/examples/6lbr-demo/slip-radio and just realized that I had written that in the Hello 6LBR example. My bad, I'm updating it right now.

Thanks for pointing that out

@sdawans
Copy link
Collaborator

sdawans commented Mar 15, 2013

Hi again, when we released 6LBR, we concentrated on documenting RPi, BeagleBone and Econotag. Now, I have replayed a setup using the same configuration as you, and I can contact [bbbb::100] from the IPv6 host. Here is a summary of the steps. I will update the documentation soon. Please let me know if this works for you, I'm using Mint and Debian, it should be close to Ubuntu.

This is what I did:

On the 6LBR Host:

  • install bridge-utils
sudo apt-get install bridge-utils
  • download the 6lbr sources
  • compile /examples/ipv6/slip-radio and upload it to a mote (sky)
  • compile /examples/6lbr-demo/ and upload it to another mote (sky)
  • goto /examples/6lbr/
make all_native
make tools
sudo make install
  • create /etc/6lbr.conf from an example and edit it:
MODE=ROUTER
RAW_ETH=0
BRIDGE=1
DEV_BRIDGE=br0
DEV_TAP=tap0
DEV_ETH=eth0
RAW_ETH_FCS=0
DEV_RADIO=/dev/ttyUSB0
BAUDRATE=115200
IFUP=/usr/lib/6lbr/6lbr-ifup
IFDOWN=/usr/lib/6lbr/6lbr-ifdown
  • connect the 2 motes, make sure that the slip-radio mote is the same as what you put in DEV_RADIO
  • launch 6lbr
 sudo service 6lbr start

On the other PC (directly connected by ethernet)

sudo ip -6 addr add bbbb::101/64 dev eth0

Why do we do this? Because you are on an isolated ethernet LAN without an external IPv6 Router. When we send RAs from the 6LBR in router mode, we intentionnally put the lifetime to 0 and announce WSN destinations explicity using the RIO option in RAs. In the next revision, we will give both options. In the meantime, it is expected that the IPv6 host accepts RIOs. I can explain this later, but it is irrelevant for now because we just want to contact the 6lbr webserver first.

Test

On the IPv6 host, try to access [bbbb::100] from a browser. It should display the 6lbr webserver correctly.

The logs

the end of your logs should contain this:

cat /var/log/6lbr.*
-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
Contiki-6lbr-1.0-rc0-11-g5e54897 started with IPV6, RPL
Rime started with address 1.2.3.4.5.6.7.8
MAC nullmac RDC br-rdc NETWORK sicslowpan
Opening nvm file '/etc/6lbr/nvm.dat'
NVM Magic : 2009
NVM Version : 0
WSN Prefix : aaaa:0000:0000:0000:0000:0000:0000:0000 
WSN IP address : aaaa:0000:0000:0000:0000:0000:0000:0100 
Eth Prefix : bbbb:0000:0000:0000:0000:0000:0000:0000 
Eth IP address : bbbb:0000:0000:0000:0000:0000:0000:0100 
Mode : 5f
Channel : 26
RAW/TAP init
********SLIP started on ``/dev/ttyUSB0''
opened device ``/dev/tap0''
tap0      Link encap:Ethernet  HWaddr 02:0a:0b:0c:0d:0e  
          inet6 addr: fe80::a:bff:fe0c:d0e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
br0       Link encap:Ethernet  HWaddr 02:0a:0b:0c:0d:0e  
          inet6 addr: fe80::a:bff:fe0c:d0e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
Fetching MAC address
TUN data incoming read:90
TUN data incoming read:46
TUN data incoming read:86
SLIP-DBG: cc2420_cmd: setting channel: 26
Got MAC
TUN data incoming read:78
TUN data incoming read:78
Low2Eth adding prefix
Eth MAC address :  06:00:14:6f:02:64 
Opening nvm file '/etc/6lbr/nvm.dat'
Tentative local IPv6 address  fe80:0000:0000:0000:0212:7400:146f:0264 
Tentative global IPv6 address (WSN)  aaaa:0000:0000:0000:0212:7400:146f:0264 
RA with autoconfig
Tentative global IPv6 address (ETH)  bbbb:0000:0000:0000:0000:0000:0000:0100 
Starting as ROUTER
UDP server started
CETIC 6LBR Started
SLIP: Sending 48
TUN data incoming read:101
Server received: '378 | fe80::0400:14ff:ff6f:0264' from aaaa::212:7400:1466:1fdb
Responding with message: Hello from the server! (1)
Server received: '378 | fe80::0400:14ff:ff6f:0264' from aaaa::212:7400:13b7:6d50
Responding with message: Hello from the server! (2)

On the 6LBR Host

ifconfig
br0       Link encap:Ethernet  HWaddr 02:0a:0b:0c:0d:0e  
          inet6 addr: fe80::a:bff:fe0c:d0e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:583 (583.0 B)  TX bytes:4872 (4.8 KB)
eth0      Link encap:Ethernet  HWaddr d4:be:d9:14:00:ea  
          inet6 addr: fe80::d6be:d9ff:fe14:ea/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:242009 errors:0 dropped:0 overruns:0 frame:0
          TX packets:113681 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:182730238 (182.7 MB)  TX bytes:31001936 (31.0 MB)
          Interrupt:20 Memory:e6e00000-e6e20000 
tap0      Link encap:Ethernet  HWaddr 02:0a:0b:0c:0d:0e  
          inet6 addr: fe80::a:bff:fe0c:d0e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:467 errors:0 dropped:0 overruns:0 frame:0
          TX packets:529 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:54152 (54.1 KB)  TX bytes:47537 (47.5 KB)

On the IPv6 Host

sudo netstat -nr6
Kernel IPv6 routing table
Destination                    Next Hop                   Flag Met Ref Use If
bbbb::/64                      ::                         UAe    256 0     0 eth0
fe80::/64                      ::                         U    256 0     0 eth0
::/0                           ::                         !n   -1  1   118 lo
::1/128                        ::                         Un   0   1     3 lo
bbbb::221:70ff:fed6:642/128    ::                         Un   0   1     1943 lo
fe80::221:70ff:fed6:642/128    ::                         Un   0   1     0 lo
ff00::/8                       ::                         U    256 0     0 eth0
::/0                           ::                         !n   -1  1   118 lo
ifconfig
eth0      Link encap:Ethernet  HWaddr 00:21:70:d6:06:42
          inet6 addr: bbbb::101/64 Scope:Global
          inet6 addr: bbbb::221:70ff:fed6:642/64 Scope:Global
          inet6 addr: fe80::221:70ff:fed6:642/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2106593 errors:0 dropped:0 overruns:0 frame:0
          TX packets:95283 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:414214840 (395.0 MiB)  TX bytes:8711929 (8.3 MiB)
          Interrupt:22 Memory:f6ae0000-f6b00000

Please let me know if this works for you.
Sébastien

@sdawans
Copy link
Collaborator

sdawans commented Mar 15, 2013

a minor detail, the follow lines in 6lbr.conf are superfluous:

IFUP=/usr/lib/6lbr/6lbr-ifup
IFDOWN=/usr/lib/6lbr/6lbr-ifdown

This is what is chosen by default when you don't put the option.

@KarHoey
Copy link
Author

KarHoey commented Apr 3, 2013

Thanks dear. It perfectly works!

@sdawans
Copy link
Collaborator

sdawans commented Apr 3, 2013

great, so I will make a new example using the documentation in this thread if this works fine for you.

@calin-p
Copy link

calin-p commented May 4, 2013

Hello!

Everything works for me as well on RaspberryPi (with latest Raspbian) with Sky motes, except finding the actual data from sensors even though 6lbr-demo (via sky-websense) seems to collect them. I thought initially that I will het them via the web-interface, but there even the node names are active links they are not functional.

Please point me into the right direction!

Thank you!

Calin

@calin-p
Copy link

calin-p commented May 7, 2013

Hello!

Strangely enough, trying again, the links worked and the values for light and temperature for both sensors became visible. The setup was the same including additional route to "aaaa::/64" installed manually. However, as a difference from last time, this time all external access to 6LBT host (ssh over IPv4 and IPv6) was lost all the time 6lbr service was started. I will try again a number of times to try to identify a pattern. If you feel that any details/logs are useful, please, let me know.

All the best,

Calin

@laurentderu
Copy link
Member

Hi,

If you have to manually add "aaaa::/64" route it is because your host is discarding the Route Information set in the RA message sent by 6LBR. On Linux this has to be manually activated using :

sysctl -w net.ipv6.conf.eth0.accept_ra_rt_info_max_plen=64

It is supported on Windows from Windows 7 onwards

Your second problem is a known one that will be fixed in V1.1; when 6LBR starts up, it creates a bridge between its internal interface an the Ethernet interface. however the Ethernet interface loses its address in the process. In the mean time you could manually assign the address or invoke dhclient onto br0 interface in 6lbr-ifup script

Laurent.

@calin-p
Copy link

calin-p commented May 7, 2013

Thanks Laurent for the explanations! Now, it makes perfect sense.

Best regards,

Calin

On Tue, May 7, 2013 at 11:04 AM, Laurent Deru notifications@github.comwrote:

Hi,

If you have to manually add "aaaa::/64" route it is because your host is
discarding the Route Information set in the RA message sent by 6LBR. On
Linux this has to be manually activated using :

sysctl -w net.ipv6.conf.eth0.accept_ra_rt_info_max_plen=64

It is supported on Windows from Windows 7 onwards

Your second problem is a known one that will be fixed in V1.1; when 6LBR
starts up, it creates a bridge between its internal interface an the
Ethernet interface. however the Ethernet interface loses its address in the
process. In the mean time you could manually assign the address or invoke
dhclient onto br0 interface in 6lbr-ifup script

Laurent.


Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-17528744
.

@laurentderu
Copy link
Member

Solved in 1.1

@lisir911
Copy link

Hi, sdawans:
I followed your guide about building 6lbr on linux PC. But I could not get it work. I followed the steps on this page above. When I use "ifconfig" command on 6lbr host pc, there's only eth0 and l0 information, no br0 and tap0 as you mentioned above.The printed information is as follows:
"
ifconfig
eth0 Link encap:Ethernet HWaddr 00:27:13:64:fa:22
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::227:13ff:fe64:fa22/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4714 errors:0 dropped:0 overruns:0 frame:0
TX packets:5151 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3831125 (3.8 MB) TX bytes:743152 (743.1 KB)
Interrupt:20 Memory:fc600000-fc620000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:543 errors:0 dropped:0 overruns:0 frame:0
TX packets:543 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:50868 (50.8 KB) TX bytes:50868 (50.8 KB)
"

I don't know where is wrong, could you give some advice?

laurentderu pushed a commit that referenced this issue Apr 24, 2014
…ia Z1).

The following problems were present in the existing DCO calibration algorithm:

Problem #1. In function msp430_quick_synch_dco(), the "for(i=0; i < 1000; i++) { .. }" loop is optimized away by the compiler, as i is not volatile. Making i volatile would improve the results, but would not be sufficient: see the next point.

Problem #2. According to MSP430F2617 Device Erratasheet, bug BCL12 precludes a naive implementations of "fast" calibration altogether. The bug is present on all MCU revisions up to date.

The description of the bug:
"After switching RSELx bits (located in register BCSCTL1) from a value of >13 to a value of <12 OR from a value of <12 to a value of >13, the resulting clock delivered by the DCO can stop before the new clock frequency is applied. This dead time is approximately 20 us. In some instances, the DCO may completely stop, requiring a power cycle.

Furthermore, if all of the RSELx bits in the BSCTL1 register are set, modifying the DCOCTL register to change the DCOx or the MODx bits could also result in DCO dead time or DCO hang up."

In Contiki code for msp430f2xxx @ 8MHz, the RSEL search currently typically goes from 15 down to 11, thus violating the rules.

Step-by-step RSEL change is proposed as the best possible workaround:
"[..] more reliable method can be implemented by changing the RSEL bits step by step in order to guarantee safe function without any dead time of the DCO."

Problem #3. The old Contiki code started from the highest possible calibration values: RSEL=15, DCOx=7. According to MSP430F2617
datasheet, this means that the DCO frequency is set to 26 MHz. For one, Vcc under 3V is not supported for this frequency, so this means that battery-powered nodes have a big problem. The minimal operating voltages are:
- 1.8V for RSEL <= 13
- 2.2V for RSEL = 14
- 3.0V for RSEL = 15
So the correct way is to always start calibration from RSEL <= 13, unless explicityly pre-calibred values are present.

Problem #4. Timer B should be turned off after the calibration, following the "Principles for Low-Power Applications" in MSP430 user's Guide.

The patch fixes these issues by performing step-by-step calibration and turning off Timer B afterwards. As opposed to MSP430F1xxx calibration, this algorithm does not change the ACLK divider beforehand; attempts to make calibration more precise would lead to looping in some cases, as the calibration step granularity at larger frequencies is quite big.

Additionally, the patch improves DCOSYNCH_CONF_ENABLED behavior, allowing the resynchronization to correct for more than one step.
@litedith
Copy link

@sdawans can you bring please the /etc/network/interfaces file of this project? thanks in advance!

bregell pushed a commit to bregell/6lbr that referenced this issue Mar 18, 2015
Enhancements for your pull request (#556).
@lleopereira
Copy link

Dear developers,

I´m trying to use the 6lbr in my ubunto 10.04 but for some reason that I can´t understand my slip-radio not find the others nodes.

My topology is almost equal to question found on the site, with one difference, I'm using a econotag with 6lbr demo. Link of issue: #3

Look like everthing is run well but i cant find the other node.

I put the level log like 7, but i don´t i can´t get it what is wrong.

Fallows the logs:


Qui Mai 21 16:18:07 BRT 2015 : Starting 6LBR
/usr/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/lib/6lbr/www -L 7 -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 : 70
Log services : ffffffff
2015-04-21 16:18:07.619362: INFO: ETH: 6LBR watchdog started (interval: 60)
2015-04-21 16:18:07.619557: INFO: 6LBR: Starting 6LBR version 1.3.3 (Contiki-6lbr-1.3.2-34-g3715b49)
2015-04-21 16:18:07.619566: INFO: NVM: Opening nvm file '/etc/6lbr/nvm.dat'
2015-04-21 16:18:07.619580: ERROR: NVM: Could not read nvm file
2015-04-21 16:18:07.619585: INFO: NVM: NVM Magic : ffff
2015-04-21 16:18:07.619588: INFO: NVM: NVM Version : ffff
2015-04-21 16:18:07.619591: ERROR: NVM: Invalid NVM magic number or unsupported NVM version, reseting it...
2015-04-21 16:18:07.619595: WARN: NVM: Migrate NVM version 0 towards 1
2015-04-21 16:18:07.619597: INFO: NVM: Opening nvm file '/etc/6lbr/nvm.dat'
2015-04-21 16:18:07.619649: INFO: SCMD: Started br-cmd process
2015-04-21 16:18:07.619655: INFO: NODECFG: No node_config.conf file specified
2015-04-21 16:18:07.619658: INFO: ETH: RAW/TAP init
2015-04-21 16:18:07.626767: INFO: SLIP: SLIP started on /dev/ttyUSB0
2015-04-21 16:18:07.645924: INFO: TAP: opened device /dev/tap0
2015-04-21 16:18:07.645985: INFO: TAP: Running 6lbr-ifup script '/usr/lib/6lbr/6lbr-ifup'
6lbr-ifup: Create bridge br0
/etc/6lbr/ifup.d/50bridge: linha 27: /sys/devices/virtual/net/br0/bridge/multicast_snooping: Arquivo ou diretório não encontrado
6lbr-ifup: attach device eth0
br0 Link encap:Ethernet Endereço de HW 00:15:c5:36:8f:80
endereço inet6: fe80::215:c5ff:fe36:8f80/64 Escopo:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Métrica:1
pacotes RX:0 erros:0 descartados:0 excesso:0 quadro:0
Pacotes TX:1 erros:0 descartados:0 excesso:0 portadora:0
colisões:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:90 (90.0 B)

tap0 Link encap:Ethernet Endereço de HW 02:0a:0b:0c:0d:0e
UP BROADCAST RUNNING MULTICAST MTU:1500 Métrica:1
pacotes RX:0 erros:0 descartados:0 excesso:0 quadro:0
Pacotes TX:0 erros:0 descartados:0 excesso:0 portadora:0
colisões:0 txqueuelen:500
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

2015-04-21 16:18:07.847865: INFO: BR-RDC: Reset SLIP Radio
2015-04-21 16:18:07.847890: PACKET: SLIP: write: 2
2152
2015-04-21 16:18:07.847917: INFO: BR-RDC: Fetching MAC address
2015-04-21 16:18:07.847928: PACKET: SLIP: write: 2
3f4d
2015-04-21 16:18:07.847992: PACKET: TAP: read: 90
2015-04-21 16:18:07.848027: PACKET: ETH: read: 90
33330000 0016020a 0b0c0d0e 86dd6000
00000024 00010000 00000000 00000000
00000000 0000ff02 00000000 00000000
00000000 00163a00 05020000 01008f00
62700000 00010400 0000ff02 00000000
00000000 0001ff0c 0d0e
2015-04-21 16:18:07.848587: PACKET: PF: eth_input: Processing frame
2015-04-21 16:18:07.848606: WARN: PF: No input function set
2015-04-21 16:18:07.848663: PACKET: TAP: read: 90
2015-04-21 16:18:07.848685: PACKET: ETH: read: 90
33330000 00160015 c5368f80 86dd6000
00000024 00010000 00000000 00000000
00000000 0000ff02 00000000 00000000
00000000 00163a00 05020000 01008f00
dfd30000 00010400 0000ff02 00000000
00000000 0001ff36 8f80
2015-04-21 16:18:07.849264: PACKET: PF: eth_input: Processing frame
2015-04-21 16:18:07.849282: WARN: PF: No input function set
2015-04-21 16:18:08.462458: PACKET: TAP: read: 78
2015-04-21 16:18:08.462493: PACKET: ETH: read: 78
3333ff36 8f800015 c5368f80 86dd6000
00000018 3aff0000 00000000 00000000
00000000 0000ff02 00000000 00000000
0001ff36 8f808700 96a40000 0000fe80
00000000 00000215 c5fffe36 8f80
2015-04-21 16:18:08.463014: TRACE: 6LE: translateIP: ICMP Message detected
2015-04-21 16:18:08.463033: PACKET: PF: eth_input: Processing frame
2015-04-21 16:18:08.463052: WARN: PF: No input function set
2015-04-21 16:18:08.524990: PACKET: TAP: read: 138
2015-04-21 16:18:08.525022: PACKET: ETH: read: 138
01005e00 00fb201a 0657819d 08004500
007cec43 4000ff11 7e96ac12 8388e000
00fb14e9 14e90068 27a70000 84000000
00030000 00000331 33370331 33310231
38033137 3207696e 2d616464 72046172
70610000 0c800100 00007800 0d054261
69687505 6c6f6361 6c00c033 00018001
00000078 0004ac12 8389c033 00018001
00000078 0004ac12 8388
2015-04-21 16:18:08.525888: PACKET: PF: eth_input: Dropping packet type=0x0800
2015-04-21 16:18:08.847073: INFO: BR-RDC: Fetching MAC address
2015-04-21 16:18:08.847111: PACKET: SLIP: write: 2
3f4d
2015-04-21 16:18:09.128570: PACKET: TAP: read: 119
2015-04-21 16:18:09.128607: PACKET: ETH: read: 119
0180c200 00000011 22334413 00694242
03000003 027c0000 001930cb 26000000
4e202000 00265abe 3b018042 01001400
02000f00 00004000 30303a32 363a3561
3a62653a 33623a30 31000000 00000000
00000000 00000000 0000ac36 177f5028
3cd4b838 21d8ab26 de620000 00002000
00265abe 3b0114
2015-04-21 16:18:09.129363: PACKET: PF: eth_input: Dropping packet type=0x0069
2015-04-21 16:18:09.398464: PACKET: TAP: read: 90
2015-04-21 16:18:09.398497: PACKET: ETH: read: 90
33330000 00160015 c5368f80 86dd6000
00000024 00010000 00000000 00000000
00000000 0000ff02 00000000 00000000
00000000 00163a00 05020000 01008f00
dfd30000 00010400 0000ff02 00000000
00000000 0001ff36 8f80
2015-04-21 16:18:09.399082: PACKET: PF: eth_input: Processing frame
2015-04-21 16:18:09.399101: WARN: PF: No input function set
2015-04-21 16:18:09.459813: PACKET: SLIP: read: 686
53520100 6d633133 32327820 696e6974
0a0d7662 6174743a 20333332 34206d56
0a0d4e56 4d206f6b 20776974 686f7574
20627563 6b0a0d6d 63313332 32782063
6f6e6669 673a0a0d 20206d61 6769633a
20202020 31333232 0a0d2020 76657273
696f6e3a 2020310a 0d202065 75693a20
20202020 20303030 35306332 61386337
66393530 630a0d20 20636861 6e6e656c
3a202031 350a0d20 20706f77 65723a20
20202031 370a0d20 20666c61 67733a20
20202066 66666666 6663350a 0d202020
20206465 6d6f643a 20202020 310a0d20
20202020 6175746f 61636b3a 2020300a
0d202020 20206e76 6d207479 70653a20
310a0d74 7279696e 6720746f 20737461
72742033 326b487a 20787461 6c0a0d33
32787461 6c206661 696c6564 2c207573
696e6720 72696e67 206f7363 0a0d5254
43206361 6c696272 61746564 20746f20
32313039 20487a0d 0a747269 6d207874
616c2066 6f722045 636f6e6f 74616720
490a0d73 65747469 6e672070 616e6964
20307863 6461620a 0d736574 74696e67
2073686f 7274206d 61632030 78666666
660a0d73 65747469 6e67206c 6f6e6720
6d616320 30783030 30353063 32615f38
63376639 3530630a 0d52696d 6520636f
6e666967 75726564 20776974 68206164
64726573 73203030 3a30353a 30433a32
413a3843 3a37463a 39353a30 430a6e75
6c6c6d61 63206e75 6c6c7264 632c2063
68616e6e 656c2063 6865636b 20726174
65203130 3020487a 2c207261 64696f20
6368616e 6e656c20 32360a54 656e7461
74697665 206c696e 6b2d6c6f 63616c20
49507636 20616464 72657373 20537461
7274696e 67202753 6c697020 72616469
6f207072 6f636573 73270a53 6c697020
52616469 6f207374 61727465 642e2e2e
0a53522d 53494e3a 20322027 3f4d270a
476f7420 72657175 65737420 6d657373
61676520 6f662074 79706520 4d0a

and keeps popping up these messages:

2015-04-21 16:18:14.523747: PACKET: PF: eth_input: Dropping packet type=0x0069
2015-04-21 16:18:16.232402: PACKET: TAP: read: 175
2015-04-21 16:18:16.232463: PACKET: ETH: read: 175
01005e7f fffa0023 5a7c6a4c 08004500
00a12136 00000111 7884ac12 8385efff
fffaf14e 076c008d 409d4d2d 53454152
4348202a 20485454 502f312e 310d0a48
6f73743a 3233392e 3235352e 3235352e
3235303a 31393030 0d0a5354 3a75726e
3a736368 656d6173 2d75706e 702d6f72
673a6465 76696365 3a496e74 65726e65
74476174 65776179 44657669 63653a31
0d0a4d61 6e3a2273 7364703a 64697363
6f766572 220d0a4d 583a330d 0a0d0a
2015-04-21 16:18:16.233555: PACKET: PF: eth_input: Dropping packet type=0x0800
2015-04-21 16:18:16.325842: PACKET: TAP: read: 119
2015-04-21 16:18:16.325874: PACKET: ETH: read: 119
0180c200 00000011 22334413 00694242
03000003 027c0000 001930cb 26000000
4e202000 00265abe 3b018042 01001400
02000f00 00004000 30303a32 363a3561
3a62653a 33623a30 31000000 00000000
00000000 00000000 0000ac36 177f5028
3cd4b838 21d8ab26 de620000 00002000
00265abe 3b0114
2015-04-21 16:18:16.326634: PACKET: PF: eth_input: Dropping packet type=0x0069

I don´t know with something is wrong with the 6lbr or with the node 6lbr

Any help would be great,

My regards.

@laurentderu
Copy link
Member

Hello,

it's a bit strange, there seems to be communication between 6LBR and the slip-radio, however the data received is garbled as if another process is reading from the serial port and only some of the bytes are received.

Have you programmed the slip-radio in the econotag flash or are you programming it the ram ?

@lleopereira
Copy link

Hi,

I had burn the firmware slip-radio it in flash of my econotag.

I already tried with two econotags and yestarday I use the example server and client ipv6 were the comunication betwen them was ok, but nothing pass trough the 6lbr.

Thanks Laurentderu.

@laurentderu
Copy link
Member

Definitively strange... If you connect to the slip-radio using an terminal (hterm, pyterm, ...) and you reset the slip-radio, what is the output ?

@lleopereira
Copy link

I´m not with them right now.

I will put the output from the slip-radio when I get in university.

Thanks for the help.

@lleopereira
Copy link

Hi laurentderu,

This are the outputs from the econotag sli-radio:
mc1322x init

vbatt: 3326 mV

NVM ok without buck

mc1322x config:

magic: 1322

version: 1

eui: 00050c2a8c7f950c

channel: 15

power: 17

flags: ffffffc7

 demod:    1

 autoack:  1

 nvm type: 1

trying to start 32kHz xtal

32xtal failed, using ring osc

RTC calibrated to 2054 Hz
trim xtal for Econotag I

setting panid 0xcdab

setting short mac 0xffff

setting long mac 0x00050c2a_8c7f950c

Rime configured with address 00:05:0C:2A:8C:7F:95:0C
nullmac nullrdc, channel check rate 100 Hz, radio channel 26
Tentative link-local IPv6 address Starting 'Slip radio process'
Slip Radio started...

Thanks!

@lleopereira
Copy link

Any help my felow???

@laurentderu
Copy link
Member

Hi,

Have you build the slip-radio from the Contiki tree of 6LBR tree ? The huge block of data from the Slip-Radio shown in the previous 6LBR traces are actually wrongly formatted slip-radio traces.

If you let 6LBR run for some time, do you still see the lines :

INFO: BR-RDC: Fetching MAC address

@lleopereira
Copy link

Hi,

Sorry for the delay of my answer, but now i got an raspberry pi and the same incident is happing.

My build of slip-radio came from the 6LBR tree and the device takes an MAC address after a while.

Fallow logs from 6LBR:


Tue Jun 9 16:54:03 BRT 2015 : Starting 6LBR
/usr/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/lib/6lbr/www -L 6 -W /var/log/6lbr.timestamp -P 60 -C /etc/network/interfaces -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 : 60
Log services : ffffffff
2015-05-09 16:54:03.998021: INFO: ETH: 6LBR watchdog started (interval: 60)
2015-05-09 16:54:03.999403: INFO: 6LBR: Starting 6LBR version 1.3.3 (Contiki-6lbr-1.3.2-34-g3715b49)
2015-05-09 16:54:03.999445: INFO: NVM: Opening nvm file '/etc/6lbr/nvm.dat'
2015-05-09 16:54:03.999579: INFO: NVM: NVM Magic : 2009
2015-05-09 16:54:03.999611: INFO: NVM: NVM Version : 1
2015-05-09 16:54:03.999634: INFO: SCMD: Started br-cmd process
2015-05-09 16:54:03.999655: INFO: NODECFG: No node_config.conf file specified
2015-05-09 16:54:03.999678: INFO: ETH: RAW/TAP init
2015-05-09 16:54:04.44112: INFO: SLIP: SLIP started on /dev/ttyUSB0
2015-05-09 16:54:04.65068: INFO: TAP: opened device /dev/tap0
2015-05-09 16:54:04.65371: INFO: TAP: Running 6lbr-ifup script '/usr/lib/6lbr/6lbr-ifup'
6lbr-ifup: Create bridge br0
6lbr-ifup: attach device eth0
br0 Link encap:Ethernet HWaddr 02:0a:0b:0c:0d:0e
inet6 addr: fe80::ba27:ebff:fe6a:8177/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:105 (105.0 B) TX bytes:168 (168.0 B)

tap0 Link encap:Ethernet HWaddr 02:0a:0b:0c:0d:0e
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

2015-05-09 16:54:06.293488: INFO: BR-RDC: Reset SLIP Radio
2015-05-09 16:54:06.293887: PACKET: SLIP: write: 2
2152
2015-05-09 16:54:06.294135: INFO: BR-RDC: Fetching MAC address
2015-05-09 16:54:06.294224: PACKET: SLIP: write: 2
3f4d

2015-05-09 16:54:08.22474: PACKET: SLIP: read: 10
214d0005 0c2a8cbd fd6c
2015-05-09 16:54:08.33791: DEBUG: SCMD: Setting MAC address
2015-05-09 16:54:08.34079: INFO: BR-RDC: Got MAC: 00:05:0c:2a:8c:bd:fd:6c
2015-05-09 16:54:08.35111: PACKET: SLIP: read: 45
53522d53 494e3a20 3220273f 4d270a47
6f742072 65717565 7374206d 65737361
6765206f 66207479 7065204d 0a
2015-05-09 16:54:08.38476: INFO: SLIP: SR-SIN: 2 '?M'
Got request message of type M
2015-05-09 16:54:08.38683: PACKET: SLIP: read: 10
214d0005 0c2a8cbd fd6c
2015-05-09 16:54:08.39632: DEBUG: SCMD: Setting MAC address
2015-05-09 16:54:08.39827: INFO: BR-RDC: Got MAC: 00:05:0c:2a:8c:bd:fd:6c
2015-05-09 16:54:08.233357: PACKET: TAP: read: 78
2015-05-09 16:54:08.233656: PACKET: ETH: read: 78
3333ff76 f7a5020a 0b0c0d0e 86dd6000
00000018 3aff0000 00000000 00000000
00000000 0000ff02 00000000 00000000
0001ff76 f7a58700 fd570000 0000fe80
00000000 00000644 af52d976 f7a5
2015-05-09 16:54:08.239515: PACKET: PF: eth_input: Processing frame
2015-05-09 16:54:08.239715: WARN: PF: No input function set
2015-05-09 16:54:08.295061: PACKET: SLIP: write: 3
21431a
2015-05-09 16:54:08.299610: INFO: ETH: Eth MAC address : 02:2a:8c:bd:fd:6c
2015-05-09 16:54:08.301372: INFO: 6LBR: Tentative local IPv6 address fe80::205:c2a:8cbd:fd6c
2015-05-09 16:54:08.302585: INFO: 6LBR: Tentative global IPv6 address (WSN) aaaa::100
2015-05-09 16:54:08.303558: INFO: 6LBR: Tentative global IPv6 address (ETH) bbbb::100
2015-05-09 16:54:08.303994: DEBUG: RIO: Adding route information: length=64, flags=0, route lifetime=1800, dest=aaaa::
2015-05-09 16:54:08.305589: INFO: 6LBR: RA Daemon enabled
2015-05-09 16:54:08.305806: INFO: NVM: Opening nvm file '/etc/6lbr/nvm.dat'
2015-05-09 16:54:08.313137: INFO: 6LBR: Configured as DODAG Root
2015-05-09 16:54:08.313569: INFO: 6LBR: Starting as RPL ROUTER
2015-05-09 16:54:08.315906: INFO: UDPS: UDP server started
2015-05-09 16:54:08.316813: INFO: 6LBR: CETIC 6LBR Started
2015-05-09 16:54:08.353323: PACKET: TAP: read: 90
2015-05-09 16:54:08.353618: PACKET: ETH: read: 90
33330000 0016020a 0b0c0d0e 86dd6000
00000024 00010000 00000000 00000000
00000000 0000ff02 00000000 00000000
00000000 00163a00 05020000 01008f00
776e0000 00010400 0000ff02 00000000
00000000 0001ff76 f7a5
2015-05-09 16:54:08.360102: PACKET: PF: eth_input: Processing frame
2015-05-09 16:54:08.800330: PACKET: PF: bridge_output: Sending packet to Broadcast
2015-05-09 16:54:08.800637: PACKET: PF: wireless_output: sending packet
2015-05-09 16:54:08.801360: PACKET: BR-RDC: write: 33 (sid: 1, cb: 1)
7b493a02 01ff0001 008700cd fd000000
00aaaa00 00000000 00000000 00000001

My settings came to appear:

root@raspberrypi:/var/log# ifconfig
br0 Link encap:Ethernet HWaddr 02:0a:0b:0c:0d:0e
inet addr:172.18.131.141 Bcast:172.18.131.255 Mask:255.255.255.0
inet6 addr: fe80::ba27:ebff:fe6a:8177/64 Scope:Link
inet6 addr: bbbb::c845:bd13:fbce:f454/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6012 errors:0 dropped:0 overruns:0 frame:0
TX packets:10531 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:331487 (323.7 KiB) TX bytes:1418746 (1.3 MiB)

eth0 Link encap:Ethernet HWaddr b8:27:eb:6a:81:77
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14391 errors:0 dropped:1 overruns:0 frame:0
TX packets:16184 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6330455 (6.0 MiB) TX bytes:2266075 (2.1 MiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:72 errors:0 dropped:0 overruns:0 frame:0
TX packets:72 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6288 (6.1 KiB) TX bytes:6288 (6.1 KiB)

tap0 Link encap:Ethernet HWaddr 02:0a:0b:0c:0d:0e
inet addr:169.254.77.32 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:217 errors:0 dropped:0 overruns:0 frame:0
TX packets:793 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:58000 (56.6 KiB) TX bytes:110493 (107.9 KiB)

root@raspberrypi:/etc/6lbr# route -A inet6
Kernel IPv6 routing table
Destination Next Hop Flag Met Ref Use If
bbbb::/64 :: U 204 0 0 br0
fe80::/64 :: U 256 0 0 br0
::/0 :: !n -1 1 1 lo
::1/128 :: Un 0 1 0 lo
bbbb::c845:bd13:fbce:f454/128 :: Un 0 1 0 lo
fe80::ba27:ebff:fe6a:8177/128 :: Un 0 1 0 lo
ff00::/8 :: U 256 0 0 eth0
ff00::/8 :: U 256 0 0 tap0
ff00::/8 :: U 256 1 0 br0
::/0 :: !n -1 1 1 lo

This is my set for 6LBR:

MODE=ROUTER
RAW_ETH=0
BRIDGE=1
DEV_BRIDGE=br0
DEV_TAP=tap0
DEV_ETH=eth0
RAW_ETH_FCS=0
DEV_RADIO=/dev/ttyUSB0
BAUDRATE=115200
IFUP=/usr/lib/6lbr/6lbr-ifup
IFDOWN=/usr/lib/6lbr/6lbr-ifdown
LOG_LEVEL=6
LIB_6LBR=/usr/lib/6lbr
BIN_6LBR=$LIB_6LBR/bin
WWW_6LBR=$LIB_6LBR/www
IP_CONFIG_FILE=/etc/network/interfaces

@laurentderu
Copy link
Member

Hi,

I don't see any issue any more, there is the reply to the fetch MAC address command :

2015-05-09 16:54:08.39827: INFO: BR-RDC: Got MAC: 00:05:0c:2a:8c:bd:fd:6c

And the 6LBR has successfully started,

2015-05-09 16:54:08.316813: INFO: 6LBR: CETIC 6LBR Started

Can you describe what is your issue now ?

@lleopereira
Copy link

Hi!

At the webserver it is not showing any devices in WSN and i cant send a ICMPV6 packet for them because no route was created to the devices.

The route should be created automatically?

My devices are two examples of UDP client.

The output of one UDP client:


setting panid 0xcdab

setting short mac 0xffff

setting long mac 0x00020615_c60dd07e

Rime configured with address 00:02:06:15:C6:0D:D0:7E
nullmac nullrdc, channel check rate 100 Hz, radio channel 26
Tentative link-local IPv6 address fe80:0000:0000:0000:0202:0615:c60d:d07e
Starting 'UDP client process'
UDP client process started
Client IPv6 addresses: aaaa::202:615:c60d:d07e
fe80::202:615:c60d:d07e
Created a connection with the server :: local/remote port 8765/5678
DATA send to 1 'Hello 1'
DATA send to 1 'Hello 2'
DATA send to 1 'Hello 3'


For example, i have a 6LBR demo device and nothing appears on the outputs of him. Your output should have messages like:

Response from the server: 'Hello from the server!(xx)

I created a route to that device.

root@raspberrypi:/home/pi# ping6 aaaa::202:615:c60d:d07e
connect: Network is unreachable

root@raspberrypi:/home/pi# route -A inet6 add aaaa::/64 gw bbbb::100

root@raspberrypi:/home/pi# ping6 aaaa::202:615:c60d:d07e
PING aaaa::202:615:c60d:d07e(aaaa::202:615:c60d:d07e) 56 data bytes

--- aaaa::202:615:c60d:d07e ping statistics ---
100 packets transmitted, 0 received, 100% packet loss, time 99002ms

Before anything I would really like to thank you and sorry for the lack of knowledge.

Thank you.

@laurentderu
Copy link
Member

Hi,

The node should appear in the network tab and the sensor page, if they are using the same channel and pan-id, as well as same MAC and RDC as the Border Router. Instead of using UDP Client example, you should instead try 6lbr-demo, it contains an udp client and is configured to work with the Border Router. The UDP client you are using has nullmac as MAC instead of CSMA, which could prevent connectivity.

To reach the nodes once they appear in the Border Router, you have to setup your connectivity, see https://github.com/cetic/6lbr/wiki/6LBR-Connection

@laurentderu
Copy link
Member

Sorry, I overlooked that you tried with 6lbr-demo. If the node appears in the sensor page, you should be able to ping it. Are you able to ping bbbb::100 from the same machine ? If so, could you send me a pcap while you try to ping that node and the log with level 10 ?

@lleopereira
Copy link

Hi Laurent,

The problem is that no node is appearing on the sensor page.

This time I built 2 6lbr demo in my econotag boards and tried again, but the
page of the sensors, we are not recognized by them.

My configuration:

root@raspberrypi:/home/pi/6lbr/examples/6lbr/tools# ./nvm_tool --print
nvm.dat
Reading nvm file 'nvm.dat'
Channel : 26

WSN network prefix : aaaa::
WSN network prefix length : 64
WSN IP address : aaaa::100
WSN accept RA : True
WSN IP address autoconf : False

Eth network prefix : bbbb::
Eth network prefix length : 64
Eth IP address : bbbb::100
Eth default router : ::
Eth IP address autoconf : False

Local address rewrite : True
Smart Multi BR : False

RA daemon : True
RA router lifetime : 0
RA maximum interval : 600
RA minimum interval : 200
RA minimum delay : 3
RA PIO enabled : True
RA prefix valid lifetime : 86400
RA prefix preferred lifetime : 14400
RA RIO enabled : True
RA RIO lifetime : 1800

RPL instance ID : 30
RPL Preference : 0
RPL version ID : : 247
RPL DIO interval doubling : 8
RPL DIO minimum interval : 12
RPL DIO redundancy : 10
RPL default lifetime : 30
RPL minimum rank increment : 256
RPL lifetime unit : 256

Webserver configuration page disabled : False

Follow the logs:


Tue Jun 9 22:35:47 BRT 2015 : Starting 6LBR
/usr/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/lib/6lbr/www -L 1 -W /var/log/6lbr.timestamp -P 60 -C
/etc/network/interfaces -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 : 10
Log services : ffffffff
6lbr-ifup: Create bridge br0
6lbr-ifup: attach device eth0
br0 Link encap:Ethernet HWaddr 02:0a:0b:0c:0d:0e
inet6 addr: fe80::4100:b573:3110:92b7/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:90 (90.0 B)

tap0 Link encap:Ethernet HWaddr 02:0a:0b:0c:0d:0e
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

2015-05-09 22:35:50.209898: ERROR: SLIP: *** dropping large 2048 byte packet
2015-05-09 22:35:50.215456: ERROR: SLIP: Unknown command 00 (105)
2015-05-09 22:35:51.801845: ERROR: BR-RDC: br-rdc: failed to parse 113


root@raspberrypi:/etc/6lbr# ifconfig
br0 Link encap:Ethernet HWaddr 02:0a:0b:0c:0d:0e
inet addr:10.0.0.105 Bcast:255.255.255.255 Mask:255.255.255.0
inet6 addr: fe80::4100:b573:3110:92b7/64 Scope:Link
inet6 addr: bbbb::c845:bd13:fbce:f454/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:493 errors:0 dropped:0 overruns:0 frame:0
TX packets:310 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:72490 (70.7 KiB) TX bytes:54680 (53.3 KiB)

eth0 Link encap:Ethernet HWaddr b8:27:eb:6a:81:77
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2244 errors:0 dropped:0 overruns:0 frame:0
TX packets:1381 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:737747 (720.4 KiB) TX bytes:196214 (191.6 KiB)

tap0 Link encap:Ethernet HWaddr 02:0a:0b:0c:0d:0e
inet addr:169.254.77.32 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:281 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:480 (480.0 B) TX bytes:62838 (61.3 KiB)

root@raspberrypi:/etc/6lbr# route -A inet6
Kernel IPv6 routing table
Destination Next Hop Flag Met Ref Use
If
bbbb::/64 :: U 204 0 0
br0
fe80::/64 :: U 256 0 0
br0
::/0 :: !n -1
1 1 lo
bbbb::c845:bd13:fbce:f454/128 :: Un 0 1
0 lo
fe80::4100:b573:3110:92b7/128 :: Un 0 1 0
lo
ff00::/8 :: U 256 0 0
eth0
ff00::/8 :: U 256 0 0
tap0
ff00::/8 :: U 256 2 0
br0
::/0 ::

To send ICMPV6 packets is necessary create a route to aaaa::/64 by the 6lbr
router IP:

route -A inet6 add aaaa::/64 gw bbbb::100

And then i can send the packets:

PING aaaa::205:c2a:8cf1:ee15(aaaa::205:c2a:8cf1:ee15) 56 data bytes
64 bytes from aaaa::205:c2a:8cf1:ee15: icmp_seq=1 ttl=64 time=1.37 ms
64 bytes from aaaa::205:c2a:8cf1:ee15: icmp_seq=2 ttl=64 time=0.422 ms
64 bytes from aaaa::205:c2a:8cf1:ee15: icmp_seq=3 ttl=64 time=0.566 ms
64 bytes from aaaa::205:c2a:8cf1:ee15: icmp_seq=4 ttl=64 time=0.417 ms

The answers came from the IP on the slip-radio, but I can not send
packets to the 6LBR demos:

root@raspberrypi:/etc/6lbr# ping6 aaaa::202:0615:c6cb:c866
PING aaaa::0202:0615:c6cb:c866(aaaa::202:615:c6cb:c866) 56 data bytes
^C
--- aaaa::0202:0615:c6cb:c866 ping statistics ---
7 packets transmitted, 0 received, 100% packet loss, time 6008ms

root@raspberrypi:/etc/6lbr# ping6 aaaa::205:0c2a:8c01:4d9a
PING aaaa::205:0c2a:8c01:4d9a(aaaa::205:c2a:8c01:4d9a) 56 data bytes
^C
--- aaaa::205:0c2a:8c01:4d9a ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 4007ms

This are the outputs from 6lbr demos:

setting panid 0xcdab

setting short mac 0xffff

setting long mac 0x00050c2a_8c014d9a

Rime configured with address 00:05:0C:2A:8C:01:4D:9A
CSMA nullrdc, channel check rate 100 Hz, radio channel 26
Tentative link-local IPv6 address fe80:0000:0000:0000:0205:0c2a:8c01:4d9a
Starting '6LBR Demo'


setting panid 0xcdab

setting short mac 0xffff

setting long mac 0x00020615_c6cbc866

Rime configured with address 00:02:06:15:C6:CB:C8:66
CSMA nullrdc, channel check rate 100 Hz, radio channel 26
Tentative link-local IPv6 address fe80:0000:0000:0000:0202:0615:c6cb:c866
Starting '6LBR Demo'


I printed every information from the webserver page, they are attached to
the email with pcap files.

Thanks for the help!

Leonardo Pereira,

Student of graduation in system of telecommunication.

2015-06-11 17:58 GMT-03:00 Laurent Deru notifications@github.com:

Sorry, I overlooked that you tried with 6lbr-demo. If the node appears in
the sensor page, you should be able to ping it. Are you able to ping
bbbb::100 from the same machine ? If so, could you send me a pcap while you
try to ping that node and the log with level 10 ?


Reply to this email directly or view it on GitHub
#3 (comment).

@lleopereira
Copy link

Hi Laurent,

About these logs beneath, then mean samethig wrong?

2015-05-09 22:35:50.209898: ERROR: SLIP: *** dropping large 2048 byte packet
2015-05-09 22:35:50.215456: ERROR: SLIP: Unknown command 00 (105)
2015-05-09 22:35:51.801845: ERROR: BR-RDC: br-rdc: failed to parse 113

Thanks.

@laurentderu
Copy link
Member

HI,

At startup you might have such errors as the 6LBR and the slip-radio are possibly not synchronized yet, and so garbage might be mistaken as messages or commands. But if they continue to appear after a while, it means there is a problem with the slip link (usually another process reading from/writing to the slip radio).

Laurent.

@lleopereira
Copy link

Hi,

With the information from six days ago, you find what is wrong?

I still have problems with raspberry, I keep finding no other devices on WSN. The 6lbr demo can´t find the 6lbr router and no information are sending by my 6lbr demos.

One question, where can I find the PAN ID 6lbr?

Thanks!

@laurentderu
Copy link
Member

Hi,

GitHub drops email attachments, so I never received your pcap and log files. Could you send them directly via email ?

You can find the PAN ID of 6lbr in the 6lbr/project-conf.h file (it's currently hardcoded, but configurable in the next version). For 6lbr-demo, it's also modifiable in 6lbr-demo/project-conf.h

But as far as I can see, your PAN IDs are correct.

@lleopereira
Copy link

Ok!!!

I sent the email to you a few minutes ago to laurent.deru@cetic.be email.

You received ???

@laurentderu
Copy link
Member

Received correctly this time :) I will have a look at it.

@laurentderu
Copy link
Member

Hello, sorry for the delay. I had a look at your logs and pcap, and there is no obvious error. The network and routes are properly configured too.
But as your motes do not even appear in the neighbor table, so I'm starting to believe there is an error in the PAN ID or channel used. But without a capture of packets on the WSN itself, it's hard to tell. Or maybe your slip-radio is using contikimac instead of nullrdc. Are you able to perform live packet capture on the WSN ? if so, could you send me the pcap ?

Laurent.

@lleopereira
Copy link

Hello Laurent, first my apologies for the delay, but I have good news!

After change my custom econotag by a different type with SoC cc2538 the 6lbr worked perfectly.

Now i have one little question. We can use IPsec with the 6lbr?

Thanks for everything.

@laurentderu
Copy link
Member

Hello, it's good to know you get it working !

About IPSec, there is no support for it in 6LBR. There are a few implementation of IPSec for Contiki available, but not in sync with the current development tree (see for example http://sourceforge.net/p/contiki/mailman/message/31687079/ and https://github.com/vjutvik/Contiki-IPsec).

I believe though that the adaptation in 6LBR is small (or maybe even null) as IPsec packets just need to be routed.

laurentderu pushed a commit that referenced this issue Jan 24, 2017
Fixed more MessageListUI to respect visualized in Cooja
@Yoshinee
Copy link

Can i change the IP address that 6lbr use?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants