This paper will design a network camera, use STM32 (MCU Microcontroller), establish P2P (Peer to Peer) network architecture transmission through UDP protocol. We chose a digital camera (OV5640) because it supports JPEG Compression Mode. The purpose is to transmit the image to the remote user, and the client registers with the P2P (Peer to Peer) server to establish a connection request, then achieving UDP traversal across the network through the NAT penetration principle. We use the Cypress WICED N02 platform (STM32F4XX + Wi-Fi) to register with the P2P server over the wireless network, and the client sends a connection request to the P2P server. It is required to establish a connection with the target device (Camera Device), and the image is transmitted to the client through the UDP protocol. The P2P server is used only for establishing connection during transmission, and there is no intervention at all. Compared with the traditional Client-Server network architecture, the transmission cost of the P2P network architecture is very low.
[1]
Eli Upfal,et al.
Building low-diameter peer-to-peer networks
,
2003,
IEEE J. Sel. Areas Commun..
[2]
Gustavo de Veciana,et al.
Service capacity of peer to peer networks
,
2004,
IEEE INFOCOM 2004.
[3]
Bryan Ford,et al.
State of Peer-to-Peer (P2P) Communication across Network Address Translators (NATs)
,
2008,
RFC.
[4]
Shahrudin Awang Nor,et al.
Performance evaluation of TCP, UDP and DCCP traffic over 4G network
,
2015
.
[5]
Bo Li,et al.
CoolStreaming/DONet: a data-driven overlay network for peer-to-peer live media streaming
,
2005,
Proceedings IEEE 24th Annual Joint Conference of the IEEE Computer and Communications Societies..
[6]
Jian Ma,et al.
The performance comparison of PRSCTP, TCP and UDP for MPEG-4 multimedia traffic in mobile network
,
2003,
International Conference on Communication Technology Proceedings, 2003. ICCT 2003..