필터 지우기
필터 지우기

Implement TCP/IP Send and Receive in Raspberry Pi

조회 수: 4 (최근 30일)
Heng Kar Lau
Heng Kar Lau 2013년 6월 23일
There is only UDP send and receive in Raspberry Pi. Do you think is it possible to implement TCP/IP send and receive for Raspberry Pi. Do you have the step how to do it? I would like to understand the complexity and implement it. I plan to use S Function builder to do it.
  1. Do you think is it visible to implement TCP/IP send and receive? Do you think the framework has limitation to do it by user?
  2. Is S Function builder project sufficient for this? What else do i need?
  3. How to change makefile setting for Raspeberry Pi. The default make file come with -D"_USE_TARGET_UDP_=" that enable UDP by default. How to change it? I did not see it from Matlab GUI option to disable it.
  4. I am thinking to disable -D"_USE_TARGET_UDP_=" in the makefile and supply a customize "libmwnetworkdevice.so" as call in the code HostLib_Network.c
  5. If i want to add or change in HostLib_Network.c, how to do it? because this file is generate by default.

답변 (1개)

Murat Belge
Murat Belge 2013년 7월 24일
I believe most of your questions are answered in Giampiero Campa "Device Drivers" submission to MATLAB File Exchange. If you did not already, download this FEX submission and read the guide.
1. It is possible to implement TCP/IP blocks for Raspberry Pi. I am not aware of any limitations. 2. Yes. 3. You do not need to change the makefile. This flag will not affect the TCP/IP blocks you develop. Do not touch HostLib_Network.c. These files are there only for UDP. If there are no UDP blocks in a Simulink model, they are not used. 4. Don't. No need for it. 5. See 4.

카테고리

Help CenterFile Exchange에서 Development Computer Setup에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by