zephyr.js icon indicating copy to clipboard operation
zephyr.js copied to clipboard

[ocf] Ocf Client cannot connect to OcfServer on K64F

Open qiaojingx opened this issue 7 years ago • 2 comments

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
  1. ./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

qiaojingx avatar May 24 '18 00:05 qiaojingx

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?

jimmy-huang avatar May 30 '18 22:05 jimmy-huang

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?

pfalcon avatar Jun 07 '18 18:06 pfalcon