cancel
Showing results for 
Search instead for 
Did you mean: 

STM3220G-EVAL + ETH + WinSock

KernelSistemi
Associate II
Posted on October 02, 2014 at 15:00

Hi,

I've a problem with my STM3220G-EVAL board. I need to connect Ethernet Port (CN7) with a VB6 PC program that use a Winsock (then send and receive strings). but I don't know how!

I haven't found

anything

online.

1. Is it possible ? If YES... how ?

2. Are there some examples (with source code) ?

Thanks a lot

Luca

#stm3220-g-eval #ethernet #tcp/ip #stm3220g-eval #lmgtfy:-stm32-resources #winsock
6 REPLIES 6
Posted on October 02, 2014 at 18:22

A lot of protocols send strings back and forth, HTTP, POP, SMTP, etc.

Perhaps you want to look at the Ethernet examples using Lwip, and the Ethernet IAP ones.

You'd need a pretty full featured stack to get connect/listen/send/recv
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
KernelSistemi
Associate II
Posted on October 03, 2014 at 09:15

Ok,

a. Do you know where I can find some examples (with

source code

) that use Ethernet port (stm3220g-eval)?

b. Can I connect a Winsock (first of all, only connect... without rx-tx strings) to the Ethernet port ? If yes.. how ?

Thanks a lot

Posted on October 03, 2014 at 17:03

a. Do you know where I can find some examples (with

source code

) that use Ethernet port (stm3220g-eval)?

http://www.st.com/web/catalog/mmc/FM141/SC1169/SS1575/LN9/PF245079?sc=internet/mcu/product/245079.jsp

Select Design Resources tab, search Ethernet, LwIP, IAP, etc.

http://www.st.com/web/en/catalog/tools/FM147/CL1794/SC961/SS1743/PF257895

http://www.st.com/web/en/catalog/tools/PF257896

b. Can I connect a Winsock (first of all, only connect... without rx-tx strings) to the Ethernet port ? If yes.. how ?

 

Winsock is a Windows Socket interface modelled after Berkeley Sockets, it can be used to connect to any device using the TCP/IP protocol. People have written books on this topic, and there are thousands of examples on the internets. Pick something that meets your educational/experience level.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on October 03, 2014 at 21:16

Winsock is a Windows Socket interface modelled after Berkeley Sockets, it can be used to connect to any device using the TCP/IP protocol. People have written books on this topic, and there are thousands of examples on the internets. 

 

Indeed.

So the fundamental question is: are you familiar with Winsock programming in general?

 

If not, then you should probably start there - once you have a working understanding of Winsock, you will be in a far better position to understand how it would interact with non-Windows devices...

http://www.lmgtfy.com/?q=Windows+Socket+Programming

KernelSistemi
Associate II
Posted on October 08, 2014 at 11:55

Thanks to everyone

!

I found

the example

I was looking for

.

Thanks again....