Implement TCP/IP Send and Receive in Raspberry Pi

4 次查看(过去 30 天)
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