How to reconnect the TCP/IP connection on Raspberry Pi

2 次查看(过去 30 天)
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 中查找有关 Run on Target Hardware 的更多信息

产品


版本

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by