zephyr.js
zephyr.js copied to clipboard
[ocf] Ocf Client cannot connect to OcfServer on olimex_stm32_e407
Description
Ocf connection can't be established on olimex_stm32_e407.
Test Code
Steps to Reproduction
-
make BOARD=olimex_stm32_e407 JS=samples/OcfServer.js
//olimex_stm32_e407(DFU B0->1/B1->0; Normal B0->0/B1->0 )
-
dfu-util -a 0 -d 0483:df11 -D outdir/olimex_stm32_e407/zephyr/zephyr.bin --dfuse-address 0x08000000
- 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
-
./outdir/linux/release/jslinux samples/OcfClient.js --noexit
Actual Result
Ocf connection can't set up.
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
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?
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) |
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.