STM32以太网方案介绍
合集下载
相关主题
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
Transport Layer
BOOTP DHCP UDP
C
DNS3 P o rt 5
m
TCP) UDP (
What is DNS the IP address of www.st.com ?
TCP
Internet Layer
ICMP
Click on the “letter” to get a detailed description
7
TCP-IP : Encapsulation
TFTP UDP
User
Data
um ks ec Ch
User Data TFTP Header UDP Header TFTP Header TFTP Header TFTP Header User Data User Data User Data User Data Ethernet Trailer
TCP-IP : A layered protocol stack Application • The main interface for the user. • Higher level protocols Layer Transport • End-to-end connections (UDP and TCP) • Ensure reliability (TCP) Layer Internet Layer Data link Layer
STM32 全国研讨会 14-25/09/2009
2
The STM32F107 MAC block diagram
• Configurable and flexible MAC 802.3 • Support two industry standard interfaces for the PHY
IP
ARP Click on the “letter” to get a detailed ET H ER m Layer Datalink su N ET description ck e
Ch
ddre MAC A ??
s s ??
Ethernet
STM32F107 PHY
STM32 全国研讨会 14-25/09/2009
10
TCP-IP : Key Application layer protocols
Application Layer
DHCP/ /68 rts 67 Po BOOTP
C su ck he m u ks ec h
UDP
I want to get an DHCP IP address ?
BOOTP
DNS
C
Telnet rt 2 3
u ks ec h
TCP
Po
I want Telnet a terminal connection.
C u ks ec h m
Files Transfer
Network Management
C u ks ec h
TFTP 9 P o rt 6
C u ks ec h
UDP
I want to TFTP transfer files. I want to FTP transfer files
Click on the “letter” to get a detailed description
STM32 全国研讨会 14-25/09/2009
9
TCP-IP : Key Protocols
Transport Layer
u ks ec h
C
F F.FF.F F.FF.F FF.F
ARP
m
net Ether
STM32 全国研讨会 14-25/09/2009
5
Generic information about TCP-IP
SMTP
BOOTP
?
FTP
?
HTTP
TFTP
?
?
POP3
?
DHCP
SNMP
IP
?
?
?
PPP
DNS
ICMP
?
ARP
TCP
?
Telnet
UDP ?
6
STM32 全国研讨会 14-25/09/2009
TCP
I want HTTP this resource.
C
SMTP 5 P o rt 2
m
TCP
I want to SMTP send an email
Login : _
Terminal connection
m
POP3 10 Port 1
C u ks ec h
TCP
I want to POP3 get my emails.
email Other Domain Names
Application Layer
Configuration
SMTP
POP3
Telnet
DNS (c)
WWW
File Transfer
Network mgt
BOOTP DHCP (c)
HTTP
FTP
TFTP
SNMP
Email
TCP
UDP
Transport Layer Internet Layer Datalink Layer
8
b Port N
Ch
su ck e
m
IP
ress IP Add
um ks c he C
ET H ER N ET
ress C Add MA
IP Header Ethernet Header IP Header
UDP Header UDP Header
STM32 全国研讨会 14-25/09/2009
IP
ARP
Ethernet
Datalink Layer
STM32F107 PHY
11
STM32 全国研讨会 14-25/09/2009
Application layer protocols
World Wide Web
su ck he m
Email
HTTP 0 P o rt 8
C u ks ec h m
STM32 Connectivity Line
Ethernet & TCP/IP introduction
2009年STM32 全国研讨会
北京、深圳、上海、台北、 青岛、重庆、南京、哈尔滨、 武汉、福州、西安
Content STM32F107 Ethernet Generic information about TCP-IP Nichelite TCP-IP Stack Application Examples
Login : _
Terminal connection Network Management
ICMP ARP Ethernet
IP
STM32F107 PHY
STM32 全国研讨会 14-25/09/2009
13
Content STM32F107 Ethernet Generic information about TCP-IP Nichelite TCP-IP Stack Application Examples
DNS (c)
DHCP (c) BOOTP
File Transfer
TCP client / server demo
UDP client / server demo TCP ICMP
TFTP UDP IP
Included Optional Demos
Other solutions
Others
Nichetool
• Intra & Inter-Network communication • no guaranty of delivery • Intra-Network communication • Transport data on the physical support
STM32 全国研讨会 14-25/09/2009
STM32 全国研讨会 14-25/09/2009
14
NicheLite from Interniche Free Package from ST Source code available
Webserver Demo Domain Names Configuration
HTTP demo
TCP / UDP demo
Webserver Demo TCP / UDP demo File Transfer
Configuration
TCP ICMP www.st.com/stm32 Included
UDP IP
Optional Demos
Other solutions
Others
Nichetool
ARP
Ethernet
ARP Who knows 127.127.127.127’s MAC address?
TCP
UDP
ICMP s dd r e s
C su ck he m
IP
IP A
ICMP I send or receive queries or error messages
Internet Layer PING ICMP 127.127.127.127
TCP-IP : Key Protocols
um
s ck he C
ddre M AC A
IP
E
et thern ss
IP I want to send data to 127.127.127.127
UDP I want to send a datagram on the port #
Transport Layer
Ethernet
DMA FIFO FIFO TX RX
IEEE 1588 MAC 802.3
MII / RMII MDC / MDIO
STM32F107
STM32 全国研讨会 14-25/09/2009
3
AHB Bus
PHY
Wake up event
Precision Time Protocol (IEEE1588) : What is it • It is a protocol designed to synchronize real-time clocks of the devices of a network • Synchronization is done with the most accurate clock found in a packet-based network: called the Grand Master Clock. • Accuracy is Sub-µsecond
Por
SNMP
I want to SNMP manage /162 my network. ts 161
m
UDP
Port
FTP 1 2 s 20/
m
TCP
STM32 全国研讨会 14-25/09/2009
12
Application layer protocols
World Wide Web File Transfer
TCP
UDP
C
u ks ec h
UDP
m
IP
dress IP Ad
Internet Layer
C
u ks ec h
TCP
m
IP
dress IP ad
I want to TCP send data in a reliable way on the port #
IP
Datalink Layer
Ethernet STM32F107 PHY
ARP Ethernet
STM32F107 PHY
15
STM32 全国研讨会 14-25/09/2009
NicheLite from Interniche Free Package from ST Source code available
Domain Names
Fra Baidu bibliotek
See Application Note DNS (c) DHCP (c) HTTP demo AN3000 on our website BOOTP UDP TCP description for a detailedclient / serverclient / demo server demo TFTP of the Package
– Media Independent Interface (MII) – Reduced Media Independent Interface (RMII)
• Integrated DMA controller • Hardware support of IEEE 1588 • Ethernet wakeup event
Detailed PTP description
09:00 09:10
09:00 09:01
09:00 Grand Master Clock 09:00
09:00 09:05
09:00 09:30
STM32 全国研讨会 14-25/09/2009
4
Content STM32F107 Ethernet Generic information about TCP-IP Nichelite TCP-IP Stack Application Examples
BOOTP DHCP UDP
C
DNS3 P o rt 5
m
TCP) UDP (
What is DNS the IP address of www.st.com ?
TCP
Internet Layer
ICMP
Click on the “letter” to get a detailed description
7
TCP-IP : Encapsulation
TFTP UDP
User
Data
um ks ec Ch
User Data TFTP Header UDP Header TFTP Header TFTP Header TFTP Header User Data User Data User Data User Data Ethernet Trailer
TCP-IP : A layered protocol stack Application • The main interface for the user. • Higher level protocols Layer Transport • End-to-end connections (UDP and TCP) • Ensure reliability (TCP) Layer Internet Layer Data link Layer
STM32 全国研讨会 14-25/09/2009
2
The STM32F107 MAC block diagram
• Configurable and flexible MAC 802.3 • Support two industry standard interfaces for the PHY
IP
ARP Click on the “letter” to get a detailed ET H ER m Layer Datalink su N ET description ck e
Ch
ddre MAC A ??
s s ??
Ethernet
STM32F107 PHY
STM32 全国研讨会 14-25/09/2009
10
TCP-IP : Key Application layer protocols
Application Layer
DHCP/ /68 rts 67 Po BOOTP
C su ck he m u ks ec h
UDP
I want to get an DHCP IP address ?
BOOTP
DNS
C
Telnet rt 2 3
u ks ec h
TCP
Po
I want Telnet a terminal connection.
C u ks ec h m
Files Transfer
Network Management
C u ks ec h
TFTP 9 P o rt 6
C u ks ec h
UDP
I want to TFTP transfer files. I want to FTP transfer files
Click on the “letter” to get a detailed description
STM32 全国研讨会 14-25/09/2009
9
TCP-IP : Key Protocols
Transport Layer
u ks ec h
C
F F.FF.F F.FF.F FF.F
ARP
m
net Ether
STM32 全国研讨会 14-25/09/2009
5
Generic information about TCP-IP
SMTP
BOOTP
?
FTP
?
HTTP
TFTP
?
?
POP3
?
DHCP
SNMP
IP
?
?
?
PPP
DNS
ICMP
?
ARP
TCP
?
Telnet
UDP ?
6
STM32 全国研讨会 14-25/09/2009
TCP
I want HTTP this resource.
C
SMTP 5 P o rt 2
m
TCP
I want to SMTP send an email
Login : _
Terminal connection
m
POP3 10 Port 1
C u ks ec h
TCP
I want to POP3 get my emails.
email Other Domain Names
Application Layer
Configuration
SMTP
POP3
Telnet
DNS (c)
WWW
File Transfer
Network mgt
BOOTP DHCP (c)
HTTP
FTP
TFTP
SNMP
TCP
UDP
Transport Layer Internet Layer Datalink Layer
8
b Port N
Ch
su ck e
m
IP
ress IP Add
um ks c he C
ET H ER N ET
ress C Add MA
IP Header Ethernet Header IP Header
UDP Header UDP Header
STM32 全国研讨会 14-25/09/2009
IP
ARP
Ethernet
Datalink Layer
STM32F107 PHY
11
STM32 全国研讨会 14-25/09/2009
Application layer protocols
World Wide Web
su ck he m
HTTP 0 P o rt 8
C u ks ec h m
STM32 Connectivity Line
Ethernet & TCP/IP introduction
2009年STM32 全国研讨会
北京、深圳、上海、台北、 青岛、重庆、南京、哈尔滨、 武汉、福州、西安
Content STM32F107 Ethernet Generic information about TCP-IP Nichelite TCP-IP Stack Application Examples
Login : _
Terminal connection Network Management
ICMP ARP Ethernet
IP
STM32F107 PHY
STM32 全国研讨会 14-25/09/2009
13
Content STM32F107 Ethernet Generic information about TCP-IP Nichelite TCP-IP Stack Application Examples
DNS (c)
DHCP (c) BOOTP
File Transfer
TCP client / server demo
UDP client / server demo TCP ICMP
TFTP UDP IP
Included Optional Demos
Other solutions
Others
Nichetool
• Intra & Inter-Network communication • no guaranty of delivery • Intra-Network communication • Transport data on the physical support
STM32 全国研讨会 14-25/09/2009
STM32 全国研讨会 14-25/09/2009
14
NicheLite from Interniche Free Package from ST Source code available
Webserver Demo Domain Names Configuration
HTTP demo
TCP / UDP demo
Webserver Demo TCP / UDP demo File Transfer
Configuration
TCP ICMP www.st.com/stm32 Included
UDP IP
Optional Demos
Other solutions
Others
Nichetool
ARP
Ethernet
ARP Who knows 127.127.127.127’s MAC address?
TCP
UDP
ICMP s dd r e s
C su ck he m
IP
IP A
ICMP I send or receive queries or error messages
Internet Layer PING ICMP 127.127.127.127
TCP-IP : Key Protocols
um
s ck he C
ddre M AC A
IP
E
et thern ss
IP I want to send data to 127.127.127.127
UDP I want to send a datagram on the port #
Transport Layer
Ethernet
DMA FIFO FIFO TX RX
IEEE 1588 MAC 802.3
MII / RMII MDC / MDIO
STM32F107
STM32 全国研讨会 14-25/09/2009
3
AHB Bus
PHY
Wake up event
Precision Time Protocol (IEEE1588) : What is it • It is a protocol designed to synchronize real-time clocks of the devices of a network • Synchronization is done with the most accurate clock found in a packet-based network: called the Grand Master Clock. • Accuracy is Sub-µsecond
Por
SNMP
I want to SNMP manage /162 my network. ts 161
m
UDP
Port
FTP 1 2 s 20/
m
TCP
STM32 全国研讨会 14-25/09/2009
12
Application layer protocols
World Wide Web File Transfer
TCP
UDP
C
u ks ec h
UDP
m
IP
dress IP Ad
Internet Layer
C
u ks ec h
TCP
m
IP
dress IP ad
I want to TCP send data in a reliable way on the port #
IP
Datalink Layer
Ethernet STM32F107 PHY
ARP Ethernet
STM32F107 PHY
15
STM32 全国研讨会 14-25/09/2009
NicheLite from Interniche Free Package from ST Source code available
Domain Names
Fra Baidu bibliotek
See Application Note DNS (c) DHCP (c) HTTP demo AN3000 on our website BOOTP UDP TCP description for a detailedclient / serverclient / demo server demo TFTP of the Package
– Media Independent Interface (MII) – Reduced Media Independent Interface (RMII)
• Integrated DMA controller • Hardware support of IEEE 1588 • Ethernet wakeup event
Detailed PTP description
09:00 09:10
09:00 09:01
09:00 Grand Master Clock 09:00
09:00 09:05
09:00 09:30
STM32 全国研讨会 14-25/09/2009
4
Content STM32F107 Ethernet Generic information about TCP-IP Nichelite TCP-IP Stack Application Examples