How to send data via tcp/ip with MC9S12NE64

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to send data via tcp/ip with MC9S12NE64

2,245 次查看
IamX
Contributor I
How to send data via tcp/ip with MC9S12NE64 ?
I will use opentcp.
Example
I will send "aaaa" from 192.168.0.5 port 2000 to 192.168.0.100 port 2000 via tcp protocol.
How do it?
 
Anyone have example sourcecode.?
 
I just lean tcp.Please suggest me.
 
Sorry for language. I little english language.
 
Thank you
 
标签 (1)
0 项奖励
回复
3 回复数

877 次查看
IamX
Contributor I
Thank you very much
Now,I can do it.
0 项奖励
回复

877 次查看
IamX
Contributor I
Have anyone can help me?
0 项奖励
回复

877 次查看
williamskj
Contributor I
Do you need help with .... ?

1) code to run on the NE64
or
2) code to run on another device (PC ?) to send messages to the NE64

For ...
1) I inherited my NE64 project but I believe my colleagues started with AN2836 from Freescale's website. Its a webserver application but don't let that put you off - its not as bad as it looks at first. We modified the http_server.c/.h files to suit our application. One thing we changed was the way it handled connections. Start by trying to understand the main poll loop in main() and how it interacts with http_server.c/.h and tcp.c/.h.

2) You could just use Ping to start with. We had a summer student who wrote some test applications but I think it took him a while. I'm sure there must be some utilities around that would do this.

Regards,

Karl
0 项奖励
回复