How to reconnect the TCP/IP connection on Raspberry Pi

조회 수: 5 (최근 30일)
Abhishek Kekud
Abhishek Kekud 2018년 6월 7일
I am trying to establish an ethernet connection between Raspberry Pi(Server) and Arduino(Client). I am using ethernet sheild on the Arduino and inbuilt ethernet port of Raspberry Pi 3 Model B. Raspberry Pi is been programmed using Simulink and Arduino with the Arduino IDE. As the Simulink model starts running, the connection gets established and the data is transferred from client to server without any hassle. When the ethernet cable from the Arduino end is disconnected the arduino tries to reconnect on every cycle of the loop. On failure, an error message is displayed. When the ethernet cable is connected back, the connection between the Arduino client and Raspberry Pi Server is reconnected and can be seen on the Arduino end. But the raspberry pi does not get any latest data from the arduino. Is there something I am missing to set in the Simulink that refreshes the connection in raspberry pi.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Raspberry Pi Hardware에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by