TCP Through Serial Port

I need to use simulink TCP/IP send and receive blocks to send to TCP messages to from my xpcTarget PC to a server. My problem is that my Ethernet port is already being used for another application. Therefore, I must use wireless access connected through a serial port in order to send these TCP messages. I have found a wireless device to fit my needs (<http://www.gridconnect.com/80211.html)>. My concern is how I will be able to send TCP messages over the Serial wireless card using Simulink. I figure that the TCP send and receive blocks are configured to send data to the Ethernet port. Is there anyway to instead direct these messages to a serial port?

답변 (2개)

Arnaud Miege
Arnaud Miege 2011년 5월 23일

2 개 추천

It's not clear what you want to do:
  1. Send messages over TCP/IP from Simulink on your host machine (which is presumably connected to your target machine via TCP/IP)?
  2. Send message over TCP/IP from xPC Target on your target machine?
For #1, you can use the TCP/IP Receive and TCP/IP Send blocks from the Intrument Control Toolbox. The fact that your Ethernet port is already used (presumably by TCP/IP communications with the target PC) shouldn't matter.
For #2, you can use:
For the last two, it shouldn't matter that the Ethernet port is alreayd being used (presumably for TCP/IP communications with the host).
HTH,
Arnaud

댓글 수: 5

DongBin Lee
DongBin Lee 2011년 5월 23일
Sorry I wasn't too clear. Here is a breakdown of what I would like to do.
First, I must use TCP to send the messages.
I would like to send the messages from my target PC to a separate server. The Ethernet port is connected to a separate video processing board, so it will be unable to be used to send TCP messages to the aforementioned server. Which of these options would be more feasible.
Connect a Serial wifi adapter then send TCP messages through this or purchase a second dedicated Ethernet card and send TCP messages through this?
Arnaud Miege
Arnaud Miege 2011년 5월 23일
I think a second Ethernet card with Model-Based Ethernet is the best solution. There is no built-in support for TCP/IP in xPC Target. Support for Model-Based Ethernet is in R2008b and later releases.
Arnaud Miege
Arnaud Miege 2011년 5월 23일
The other approach is this one:
http://www.mathworks.com/company/newsletters/digest/2008/july/tcpip.html
Jason Ross
Jason Ross 2011년 5월 23일
The second dedicated Ethernet card is going to be considerably less expensive than the product you linked, you can find them under $10. It seems like a lot less trouble.
Arnaud Miege
Arnaud Miege 2011년 5월 23일
OK, the choice is yours. Read the doc about Model-Based Ethernet and make sure to use a supported Ethernet chipset:
http://www.mathworks.com/products/xpctarget/supported-hardware/xPC_Target_Supported_Ethernet_Chipsets.pdf

댓글을 달려면 로그인하십시오.

Chhailin
Chhailin 2011년 7월 3일

0 개 추천

can you confirm us about connection that we can convert RS232 TO wireless.it is the hardware "ConnectSense™ - Industrial Device Server, Wired, Wireless, POE,". website http://www.gridconnect.com/80211.html

카테고리

질문:

2011년 5월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by