2014-10-02 06:00 AM
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 #winsock2014-10-02 09:22 AM
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/recv2014-10-03 12:15 AM
Ok,
a. Do you know where I can find some examples (withsource 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 lot2014-10-03 08:03 AM
a. Do you know where I can find some examples (with
source code
) that use Ethernet port (stm3220g-eval)? 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.
2014-10-03 12:16 PM
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...
2014-10-03 12:44 PM
b. Can I connect a Winsock (first of all, only connect... without rx-tx strings) to the Ethernet port ? If yes.. how ?
Create a socket() [Address, Port, Protocol, etc] and connect() to it?http://www.tenouk.com/Winsock/Winsock2story.html
Hideously dated, but probably useful and only a penny +S/Hhttp://www.amazon.com/s/ref=nb_sb_noss_2?url=search-alias%3Daps&field-keywords=winsock
2014-10-08 02:55 AM
Thanks to everyone
!I found
the example
I was looking for
. Thanks again....