![]() Is there something I am missing here? In the for loop, it should try to establish a connection until it succeeds, but it never actually manages to connect to something. VTaskDelay(1000) // To see the result easily in Comm OperatorĪs I can ping it, I don't think something is fundamentally wrong. Mã sn phm: NUCLEO-F746ZG STM32 Nucleo Nhà sn xut: STMicroelectronics Website h tr: 1.050.000 +. Netconn_write(xNetConn, b_data, b_len, NETCONN_COPY) NUCLEO-F746ZG STM32 Nucleo-144 development board with STM32F746ZG MCU, supports Arduino, ST Zio and morpho connectivity. ![]() IP4_ADDR(&pc_ip, IP_ADDR0_PC, IP_ADDR0_PC, IP_ADDR2_PC, IP_ADDR3_PC) īind_err = netconn_bind ( xNetConn, &local_ip, TCP_PORT_NETCONN ) Ĭonnect_err = netconn_connect ( xNetConn, &pc_ip, TCP_PORT_NETCONN) Both of these implementations follow the provided examples. To do this, one will run a client and the other will run a server. I want to transmit data between two boards using TCP. IP4_ADDR(&local_ip, IP_ADDR0_CLIENT, IP_ADDR1_CLIENT, IP_ADDR2_CLIENT, IP_ADDR3_CLIENT) TCP Client on NUCLEO-F746ZG cant connect to a TCP Server on my PC using Hercules. Here is the code: static void tcpecho_client_thread(void const *arg) NUCLEO-F746ZG STM32 Nucleo-144 development board with STM32F746ZG MCU, supports Arduino, ST Zio and morpho connectivity 24. Both boards are assigned an IP via DHCP, but the address is always the same and matches with what I expect. The client implementation is causing me problems, as it can't seem to establish a connection to a TCP server. The server works fine, I can connect to it from Hercules and transfer data. ![]() ![]() ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |