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

[ocf] Ocf Client cannot connect to OcfServer on olimex_stm32_e407

Open qiaojingx opened this issue 7 years ago • 3 comments

Description

Ocf connection can't be established on olimex_stm32_e407.

Test Code

OcfServer.js OcfClient.js

Steps to Reproduction

  1. make BOARD=olimex_stm32_e407 JS=samples/OcfServer.js //olimex_stm32_e407(DFU B0->1/B1->0; Normal B0->0/B1->0 )
  2. dfu-util -a 0 -d 0483:df11 -D outdir/olimex_stm32_e407/zephyr/zephyr.bin --dfuse-address 0x08000000
  3. Connect PC via Ethernet cable and add router on PC:
ip -6 route add 2001:db8::/64 dev eno1
ip addr add 2001:db8::2 dev eno1
  1. ./outdir/linux/release/jslinux samples/OcfClient.js --noexit

Actual Result

Ocf connection can't set up. selection_019

Expected Result

Ocf Client can connect to Ocf Server.

Test Builds

Branch Commit Id Target Device Test Date Result
master 4b23a47 olimex_stm32_e407 Jan 18, 2018 Fail

Additional Information

qiaojingx avatar Jan 18 '18 03:01 qiaojingx

Networking doesn't work as expected on them, it's not just OCF, I tried websockets and it is returning the same error

Error in net_context_bind(handle->server_ctx, (struct sockaddr *)&addr, sizeof(struct s ockaddr)): -125

@grgustaf any chance you tried out this board with networking?

jimmy-huang avatar Jan 19 '18 01:01 jimmy-huang

Re-test with commit 0c0af9b in master. OCF, TCP,UDP and Websocket results on new boards(96b_carbon and olimex_stm32_e407) are as below:

Component Test Case 96b_carbon olimex_stm32_e407
TCP test-tcp6-server.js PASS FAIL(#1772)
TCP test-tcp6-client.js FAIL(#1518 ) FAIL(#1772)
Websocket test-ws6-server.js PASS FAIL(#1772)
Websocket WebSocketServer.js FAIL(#1787) FAIL(#1772)
UDP test-udp6-server.js PASS FAIL(#1772)
OCF OcfServer.js PASS FAIL(#1772)

qiaojingx avatar Jan 25 '18 07:01 qiaojingx

I think we should first find out if the native Zephyr apps works on the olimex_stm32_e407 board. I suspect that this may be a Zephyr upstream bug.

jimmy-huang avatar Jan 25 '18 19:01 jimmy-huang