[net] net samples not working?


Richard Peters <mail@...>
 

Hi Community,

i have several problems with the net examples.
Maybe there are some bugs involved?

1st Problem
===========

Sample: echo_server / echo_client

On 'make server' on server side and 'make client' on client side:

Some frames gets sent and received successfully and than my screen is
flood by these
messages on the client side:

[net/buf] [ERR] net_buf_alloc_debug: net_nbuf_get_reserve():329: Failed
to get free buffer


2nd Problem
===========

Sample: echo_server / echo_client

On 'make BOARD=qemu_cortex_m3 server' on server side and 'make
BOARD=qemu_cortex_m3 client' on both sides:

does not build, because the Makefile contains this line:

CONF_FILE ?= prj_$(BOARD).conf

But there is no prj_qemu_cortex_m3.conf.

When i try it with

make BOARD=qemu_cortex_m3 CONF_FILE=prj_slip.conf [server/client]

or

make BOARD=qemu_cortex_m3 CONF_FILE=prj_qemu_x86.conf [server/client]

than the communication between client and server does not work.


3rd Problem
===========

Sample zoap_server, zoap_client

On 'make server' on server side and 'make client' on client side, i get
on the server side:

[zoap-server] [ERR] udp_receive: Invalid data received (-22)


4th Problem
===========

Sample zoap_server, zoap_client

On 'make BOARD=qemu_cortex_m3 server' on server side and 'make
BOARD=qemu_cortex_m3 client' on client side, i get on the client side:

Unable add option to request.


5th Problem
===========

Sample: coaps_server, coaps_client

On 'make server' on server side and 'make client' on client side, i get
on the server side:

failed!
mbedtls_ssl_handshake returned -0x7900
Packet without payload
No handler for such request (-22)


6th Problem
===========

Sample: coaps_server, coaps_client

On 'make BOARD=qemu_cortex_m3 server' on server side and 'make
BOARD=qemu_cortex_m3 client' on both sides

same as 2nd Problem.


Tested on:

- Ubuntu 16.04 (64 Bit)
- Zephyr rev: e2bbad9600d655287496e3434641576e39a6582b
- Toolchain: Zephyr-SDK 0.8.2

Join devel@lists.zephyrproject.org to automatically receive all group messages.