intel / zephyr.js

JavaScript* Runtime for Zephyr* OS
Other
180 stars 65 forks source link

[ocf] Ocf Client cannot connect to OcfServer on K64F #1885

Open qiaojingx opened 6 years ago

qiaojingx commented 6 years ago

Description

Ocf connection can't be established on K64F, while ocf works fine on Arduino101.

Test Code

OcfServer.js OcfClient.js OcfSensorServer.js OcfSensorClient.js

Steps to Reproduction

  1. make BOARD=frdm_k64f JS=samples/OcfServer.js
  2. cp outdir/frdm_k64f/zephyr/zephyr.bin /media/<username>/MBED/
  3. Connect PC via Ethernet cable and add router on PC:
    ip -6 route add 2001:db8::/64 dev eno1
    ip -6 addr add 2001:db8::2 dev eno1
  4. ./outdir/linux/release/jslinux samples/OcfClient.js --noexit

Actual Result

Ocf connection can't set up while ping6 2001:db8::1 is ok. screenshot from 2018-05-24 08-33-40

Expected Result

Ocf Client can connect to Ocf Server.

Test Builds

Branch Commit Id Target Device Test Date Result
master f90d9d1 frdm_k64f May 24, 2018 Fail
master f90d9d1 arduino 101 May 24, 2018 Pass

Additional Information

jimmy-huang commented 6 years ago

I can fix this by turn on promiscuous mode to get, with patch #1886, this seems to be related to #1868, currently IF_MCAST_IPV6_ADDR_COUNT is already at 4 with OCF and the bug is still reproducible unless you turn on promiscuous mode, maybe @pfalcon have insights on if this is needed?

pfalcon commented 6 years ago

So, guys, I'm currently digging into other networking issues, and can't look into it, can you please submit a Zephyr ticket on this?