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

[ocf/udp/tcp/ws] Server on Arduino101 over ENC28J60 will hang after long-running  #1736

@qiaojingx

Description

@qiaojingx

Description

OcfServer, UDPServer,TCPServer and WebSocketServer all hang after long-running on Arduino101 with ENC28J60 Ethernet Board.

Test Code

WebSocketServer.js;
TCPEchoServ6.js;
TCPClient6.js;
UDPEchoServ4.js;
OcfServer.js;

Steps to Reproduction

  1. connect ENC28J60 to Arduino101 by wiring the below pins on boards.
CS  -> IO10
SI -> IO11
SO -> IO12
SCK -> IO13
VCC -> 3.3v
GND -> GND
INT -> IO4
  1. Connect ENC28J60 Ethernet Board to PC via Ethernet cable.
  2. Flash Arduino101 with test sample.
$ make JS=samples/UDPEchoServ4.js FORCE=zjs_net_l2_enc28j60.json
$ make dfu
  1. add router and address to PC
ip route add 192.0.2.0/24 dev eno1
ip addr add 192.0.2.2 dev eno1
  1. Connect UDPEchoServ4.js using python client:
    python test-udp4-client.py

Actual Result

  1. OcfServer.js
    OcfServer hangs and OcfClient got error [FATAL]:10, cannot reconnect again.
    selection_008

  2. WebSocketServer.js
    WebSocketServer hangs, cannot receive data from node client, cannot reconnect with node client again.
    selection_004

  3. TCPEchoServ6.js
    TCPServer6 got error "malloc failed" first, then hangs. cannot receive data from python client, cannot reconnect with python client again.
    selection_007

  4. UDPEchoServ4.js
    UDPServer4 hangs, cannot receive data from python client, cannot reconnect with python client again.
    selection_003

Expected Result

Server should always works fine.

Test Builds

Branch Commit Id Target Device Test Date Result
master b32969f Arduino 101 Dec 28, 2017 Fail

Additional Information

The matched server and client are here: https://github.com/01org/web-test-suite/tree/master/zephyr.js/tools/tests

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions