Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

[ocf] Ocf Client cannot connect to OcfServer on olimex_stm32_e407 #1772

Open
qiaojingx opened this issue Jan 18, 2018 · 3 comments
Open

[ocf] Ocf Client cannot connect to OcfServer on olimex_stm32_e407 #1772

qiaojingx opened this issue Jan 18, 2018 · 3 comments
Assignees
Labels

Comments

@qiaojingx
Copy link

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

@jimmy-huang
Copy link
Contributor

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 jimmy-huang assigned grgustaf and unassigned jimmy-huang Jan 22, 2018
@qiaojingx
Copy link
Author

qiaojingx commented Jan 25, 2018

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)

@jimmy-huang
Copy link
Contributor

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.

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

No branches or pull requests

3 participants