How to reconnect the TCP/IP connection on Raspberry Pi
2 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on Run on Target Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!