A Data - Image Transmission Device Based On TCP - IP Protocol
A Data - Image Transmission Device Based On TCP - IP Protocol
net/publication/261037291
CITATIONS READS
6 2,818
5 authors, including:
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Bo Shang on 07 July 2014.
Internet
original images from meter reading device wirelessly, and ZigBee STM32F103RDT6 Network
transferring the data and images to monitoring center with module interface
TCP/IP protocol through the existing Internet communication
backbone creatively. The results of the studies showed that the
wirelessly effective distance is 90m, Internet communication LCD display Function keys SD card file system
average transmission rate reaches 11.53 KB/s and this device has
a high accuracy, low power consumption, a good stability and Figure 1. System function structure
supports communications across the gateway, which are suitable
for using in consumption monitoring system in large-scale public
buildings. A. Core processor
STM32F103 is selected as core processing chip, which has
Keywords-Energy Monitoring; TCP/IP Protocol; Data/Image a high-performance ARM® Cortex-M3 32-bit RISC core. This
Transmission; Embedded System; Communications across the chip works at 72MHz and has built-in high-speed memories
Gateway (flash memory as high as 128K bytes and SRAM as high as
20K bytes). The communications between the core processing
I. INTRODUCTION chip and peripherals are realized with 2 integrated SPI ports, a
Ethernet technology obtained fast development because of UART asynchronous serial interface, etc. The resource
its low price and high degree of flexibility. It is not only widely allocation is shown in Table 1.
used in the business office area, but also in a dominant position
of the upper network communication market in commercial TABLE I. PROCESSOR RESOURCE ALLOCATION
computer network communications and industrial control
Then Functional
systems. Its application in embedded devices is becoming if Pin is And Application is
configuration is
wider and wider and its market share is getting higher and PA4-PA7 SPI SD card file system
higher [1-3]. PB10, PB11 UART ZigBee communication module
PB12-PB15 SPI TCP/IP protocol PHY module
Energy monitoring for large public buildings is not only PC0-PC15 16 bits parallel LCD display
one of the social development trends, but also the future
development direction of the public sector achieving modern B. Peripheral circuit design
management [4]. This paper introduces a design of data/image The power modules use a level transition chip AS1117-3.3
transmission device based on embedded TCP/IP protocol. This to convert a 5V power supply to a 3.3 V one which is used by
device can receive data from energy monitoring meter through the whole board. AS1117-3.3 is an efficient DC/DC converter
ZigBee wireless communication, which avoids troublesome with MOSFET and perfect protection function.
integrated wiring [5-7].
The display module adopts a 2.8 inch TFT LCD screen,
which has 320 * 240 pixels and displays 262K colors. This
II. SYSTEM ARCHITECTURE AND HARDWARE DESIGN module adopts 3.3 V power supply and uses 16 parallel bus to
The hardware of the intelligent device designed by this communicate with the core processor.
paper mainly includes micro controller, ZigBee communication
module, power supply circuit, function keys, SD card file There are two interfaces (SD bus and SPI bus) to
system, TCP/IP protocol PHY module, etc. Its function and communicate between the core processor and the SD card file
hardware architecture is shown in Fig. 1. system and the SPI interface is chosen.
4 pins have been used by SPI communication. Every pin
needs to be connected with a 45k pull-up resistor to ensure the
communication.
TABLE II. COMPARISON BETWEEN TCP AND UDP TABLE IV. COMMAND CHARACTER AND COMMAND VALUES
Y
TABLE VI. REPLY PACKET FORMAT
Store data/image in
Beginning Receive Status User-defined Ending SD card
Begin Status Keep End
The value of "Beginning" and "user-defined" are defaulted
to 0. The value of "Ending" is defaulted to 1. Receive status is Whether data/ N
divided into two types. The one is to successfully receive and images reached the
marked with OK, whose value is 0; the other is to biggest number?
unsuccessfully receive and marked with ERROR, whose value
Y
is 1.
Sent data/images
IV. SYSTEM SOFTWARE DESIGN to destination PC
11.52
11.5
transfers the pictures to the device, which can show a picture 0 20000 40000 60000
File Size(B)
80000 100000 120000