zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.44k stars 6.4k forks source link

TCP does not work on Arduino 101 board. #3236

Closed zephyrbot closed 7 years ago

zephyrbot commented 7 years ago

Reported by jiequan wu:

Test steps:

  1. cd samples/net/echo_server
  2. enable IPv6 and disable IPv4: CONFIG_NET_IPV4=n
    CONFIG_NET_IPV6=y
  3. make pristine && make BOARD=arduino_101 flash
  4. connect Arduino to the LAN with ENC28J60
  5. set IPv6 address on linux sudo ifconfig eth1 inet6 add 2001:db8::2/64
  6. cd net-tools
  7. $ ./tcptest.py eth1 2001:db8::1 {code} linux@linux-desktop:~/latest/net-tools$ ./tcptest.py eth1 2001:db8::1 Thu Feb 23 14:46:31 2017: Connecting to [2001:db8::1]:4242 (through interface eth1, scope_id 15) {code} It can block here. And ping is ok. {code} linux@linux-desktop:~/latest/net-tools$ ping6 -I eth1 2001:0db8::1 PING 2001:0db8::1(2001:db8::1) 56 data bytes 64 bytes from 2001:db8::1: icmp_seq=1 ttl=64 time=12.2 ms 64 bytes from 2001:db8::1: icmp_seq=2 ttl=64 time=12.2 ms 64 bytes from 2001:db8::1: icmp_seq=3 ttl=64 time=12.3 ms 64 bytes from 2001:db8::1: icmp_seq=4 ttl=64 time=12.2 ms 64 bytes from 2001:db8::1: icmp_seq=5 ttl=64 time=12.2 ms 64 bytes from 2001:db8::1: icmp_seq=6 ttl=64 time=12.2 ms 64 bytes from 2001:db8::1: icmp_seq=7 ttl=64 time=12.2 ms {code}

(Imported from Jira ZEP-1786)

zephyrbot commented 7 years ago

by jiequan wu:

zephyrbot commented 7 years ago

by jiequan wu:

The wireshark file was attached.

zephyrbot commented 7 years ago

by Leandro Pereira:

Has the sample been built with CONFIG_NET_TCP=y? The supplied prj_arduino_101.conf file does not do that by default.

zephyrbot commented 7 years ago

by jiequan wu:

Yes, I did not notice that. Thanks!