Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TCP connet Net Shell function seems to not working when using NET_SOCKETS_OFFLOAD #12814

Closed
ASSigma opened this issue Jan 29, 2019 · 4 comments
Closed
Assignees
Labels
area: Networking area: Offloading area: Sockets Networking sockets Enhancement Changes/Updates/Additions to existing features priority: low Low impact/importance bug

Comments

@ASSigma
Copy link

ASSigma commented Jan 29, 2019

Describe the bug
tcp connect seems to call net_context_offloading API functions even for aplications with NET_SOCKETS_OFFLOAD that leads to fall to simplelink_dummy_get handler.

To Reproduce
1.) build project for CC3220SF with CONFIG_NET_SHELL=y and CONFIG_NET_SOCKETS_OFFLOAD=y
2.) connect with serial terminal
3.) connect to wifi
3.) Invoke: net tcp connect your_server_adress your_server_port
4.) watch error messages

Expected behavior
Established tcp connection

Screenshots or console output
net tcp connect 192.128.0.101 4444
Connecting from 10.67.36.145:0 to 192.128.0.101:4444
Cannot get TCP context (-1)
uart:~$ [01:14:31.763,244] wifi_simplelink: NET_SOCKET_OFFLOAD must be configured for this driver
[01:14:31.763,244] wifi_simplelink: NET_SOCKET_OFFLOAD must be configured for this driver

Environment (please complete the following information):

@ASSigma ASSigma added the bug The issue is a bug, or the PR is fixing a bug label Jan 29, 2019
@ASSigma ASSigma changed the title Some Net Shell functions seems to not working when using NET_SOCKETS_OFFLOAD TCP connet Net Shell function seems to not working when using NET_SOCKETS_OFFLOAD Jan 29, 2019
@jukkar
Copy link
Member

jukkar commented Jan 29, 2019

The net-shell is still using net_context API to connect TCP. The net_context API does not support socket offloading so you see the error. The plan is to convert net-shell to use BSD socket interface eventually but we are not yet there. If you have spare time, patches are welcome to fix this.

@jukkar jukkar added area: Networking priority: low Low impact/importance bug to do labels Jan 29, 2019
@jukkar jukkar self-assigned this Jan 29, 2019
@jukkar jukkar added the area: Sockets Networking sockets label Jan 29, 2019
@pfalcon
Copy link
Contributor

pfalcon commented Feb 4, 2019

@vanti, @GAnthony : FYI

@pfalcon pfalcon added area: Sockets Networking sockets and removed area: Sockets Networking sockets labels Feb 4, 2019
@jukkar jukkar added Enhancement Changes/Updates/Additions to existing features and removed bug The issue is a bug, or the PR is fixing a bug labels Mar 7, 2019
@aescolar aescolar removed the To do label Apr 11, 2019
@jukkar
Copy link
Member

jukkar commented Jan 28, 2020

Going through old issues. This is a good candidate for closing. Can be re-opened if really needed.

@jukkar jukkar closed this as completed Jan 28, 2020
@mbrunnen
Copy link
Contributor

mbrunnen commented Nov 5, 2021

Hi, I am having the same Problem. I wanted to use zperf on a CC3235 and ran into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Networking area: Offloading area: Sockets Networking sockets Enhancement Changes/Updates/Additions to existing features priority: low Low impact/importance bug
Projects
None yet
Development

No branches or pull requests

5 participants