-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
I am debugging the telnet-related functions on stm32f767. During the test, I found that stm32f767 can connect to PC via telnet as a server and enter the nuttx system normally. However, when stm32f767 works as a client to connect to PC, it cannot connect to PC normally. When I tracked and debugged the program, I found that the program can return normally during connect(), but when it comes to send(), it returns an error code "send() failed: 22". I don't know the reason for this and hope to get some suggestions and experience from you. My PC has installed the telnet server correctly and started the telnet service. My code is nuttx _8.2 and configuration is as follows:
CONFIG_NSH_TELNET=y
CONFIG_NSH_TELNETD_PORT=y
CONFIG_NSH_TELNETD_DAEMONPRIO=y
CONFIG_NSH_TELNETD_DAEMONSTACKSIZE=y
CONFIG_NSH_TELNETD_CLIENTPRIO=y
CONFIG_NSH_TELNETD_CLIENTSTACKSIZE=y
SYSTEM_TELNET_CLIENT=y