How to send data via tcp/ip with MC9S12NE64

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to send data via tcp/ip with MC9S12NE64

1,989 Views
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
 
Labels (1)
0 Kudos
3 Replies

621 Views
IamX
Contributor I
Thank you very much
Now,I can do it.
0 Kudos

621 Views
IamX
Contributor I
Have anyone can help me?
0 Kudos

621 Views
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 Kudos