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 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Run on Target Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!