Embedded network playback system based on ARM Cortex-M3

Publisher:trendsetter9Latest update time:2011-06-12 Keywords:ARM Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Introduction

In view of the fact that the original RS232 and RS485 serial port devices are no longer adapted to the pace of informatization. The transformation from serial port to network port, from level-level serial port communication to Ethernet or even Internet-based network-level communication is an inevitable trend. Equipment networking management has the advantages of strong flexibility, remote control, and interface standardization. The common method of adding network port connection to embedded devices is to add Ethernet control chips and interfaces to the hardware circuit. However, these chips usually have more than 100 pins and require a deep understanding of the hardware structure and network communication protocol of the chip, or design the TCP/IP protocol stack and network control terminal by yourself, which has a high technical threshold. For users who are not familiar with network communication protocols, want to add network interfaces to embedded devices, and do not want to change the original hardware structure, using a product that does not require knowledge of network interfaces to convert network and serial communications is undoubtedly a better solution. To this end, this paper proposes a solution for adding network interfaces to user embedded devices using the IPort-1 module. Users can add network ports to their embedded devices without modifying the original hardware circuit without knowing the network protocol and control interface. Therefore, it is a convenient and easy embedded device network solution.

1 Structure and Function of IPort-1 Module

IPort-1 module is a multifunctional embedded Ethernet serial port data conversion module developed by Guangzhou Zhiyuan Electronics Co., Ltd. It integrates TCP/IP protocol stack. It can easily complete the network function of embedded devices. IPort-1 module integrates 10/100M adaptive Ethernet interface, the highest baud rate of serial communication is up to 230.4 kbps, and has multiple working modes such as TCP Server, TCP Client, UDP and Real COM driver. It can support up to four connections and support domain name access and other functions.

The pin definition of IPort-1 module is shown in Figure 1. The module has 16 pins, including 3 input pins, 3 output pins and 1 IO port. These ports correspond to different working modes and have different input or output functions.





2 Real COM Mode Application of IPort-1 Module

In Real COM mode, a background service program running on the host computer will actively connect to the IPort-1 module and add a serial port on the PC side. This serial port is the serial port of the IPort-1 module. Generally, after ensuring that the hardware is connected, the network parameters such as IP address, subnet mask and gateway should be set for the PC first. The parameters must be set in the same network segment as the IPox-1 module. The default IP address of the IPort-1 Ethernet to serial port module is: 192.168.0.178. Secondly, the ZNetCom software that comes with the module can be used to obtain device configuration information, and parameters such as working mode and serial port baud rate can be set. Finally, the ZNetManager software can be used to start the service for communication.





Figure 2 shows the circuit connection diagram of the IPort-1 module and the CAN module. As can be seen from Figure 2, when the IPort-1 module communicates with other devices with UART interfaces. Just connect the TXD of the IPort-1 module to the RXD of the device, and connect the RXD of the IPort-1 module to the TXD of the device. The circuit connection is very simple.

Figure 3 is the debugging result of the communication process between the IPort-1 module and the CAN module.





3 Other working modes

In addition to the Real COM mode, the IPort-1 module also has three working modes: TCPServeY, TCP Client, and UDP. In the TCPServer working mode, the IPort-1 module will not actively connect to other devices, but always wait for the connection of the client (TCP Client). After establishing a TCP connection with the client, two-way data communication can be carried out. In the TCP Client mode, the IPort-1 module will actively connect to the pre-set TCP server. If the connection is unsuccessful, the client will continue to try to establish a connection with the TCP server according to the set connection conditions. After establishing a TCP connection with the TCP server, two-way data communication can be carried out. Unlike the TCP protocol used in the above modes, the UDP mode uses the UDP protocol for data communication. UDP is a non-connection-based communication method. It cannot guarantee that the data packets sent to the target host are correctly received. Therefore, in situations where reliability is required, it is generally necessary to use the upper-layer communication protocol to ensure the correctness of the data; however, because UDP is a simpler communication method, it will not increase too much additional communication volume. At the same time, it can also provide a higher communication speed than TCP to ensure the real-time nature of the data packets. In fact, when the network environment is relatively simple and the network communication load is not too large, the UDP working method is not prone to errors. The status of devices working in this way is equal, and there is no server and client.

4 Conclusion

Using the IPort-1 module allows users to easily add network interfaces to embedded devices without understanding the network communication protocol and its internal hardware structure, and there is no need to change the original hardware structure of the circuit. Therefore, it is a convenient and easy embedded device network solution.

Keywords:ARM Reference address:Embedded network playback system based on ARM Cortex-M3

Previous article:Research on power of solar power generation control system based on ARM
Next article:Ethernet Applications Based on ARM Core Embedded Microprocessors

Recommended ReadingLatest update time:2024-11-16 16:44

ARM development key control LCD cross cursor problem
Problem description: The while loop in the main function detects the pressing of the button, that is, the low level, and the cross cursor moves. The problem is: it does not move. The essential problem: GPF0 is set as input, but this input cannot detect the low level. Attempted solutions: 1. Detect the hardware c
[Microcontroller]
ARM development key control LCD cross cursor problem
Microchip Launches New Arm®-Based PIC® Microcontroller Family
Microchip Launches New Arm®-Based PIC® Microcontroller Family, Easier Way to Add Bluetooth® Low Energy Connectivity The PIC32CX-BZ2 MCU family offers built-in Bluetooth Low Energy (BLE) and other wireless capabilities, outstanding analog performance and comprehensive design support
[Microcontroller]
Microchip Launches New Arm®-Based PIC® Microcontroller Family
Rockchip wants to compete with Apple M1 in the market and will release RK3588
Apple and Qualcomm are certainly not the only chip companies using the ARM architecture to develop desktop computer systems. The domestic fabless chip design company is developing its high-end RK3588 SoC, which promises to combine performance and low power consumption, making it one of the most anticipated processors
[Embedded]
Rockchip wants to compete with Apple M1 in the market and will release RK3588
Arm serial port implements printf and scanf functions
Problem description: The arm serial port implements scanf and printf functions to realize the function of converting a string of decimal numbers into hexadecimal output, but my board test just can't come out, so I want to get it completely done, follow Youji. 1. First code analysis: Use sourceinsight to create a proje
[Microcontroller]
GNU ARM Assembly - (XX) Summary
        From the first article in this series, which was on April 22, to today's summary, it has been more than 7 months. I use my spare time to study what I am interested in. The progress is slow and it is also tiring, but I have gained a lot.         The reason why I wrote this series is that when I was playing with
[Microcontroller]
Arm 2440 - Detailed explanation of Nand flash boot mode (taking LED program as an example)
I have been studying arm on and off for 2 months. Now I feel that I understand the boot process of arm in Nand flash mode. Now I come here to record it to express my extremely happy mood. Without further ado, while I still remember the feelings during the learning process, I will go straight to the point. As we all
[Microcontroller]
Design of bidirectional data transmission between RS-232C serial port and Ethernet port based on ARM920T processor
S3C2440A with ARM920T as the core is used as the main controller and Ethernet control chip DM9000AEP to design the hardware platform; build and transplant an embedded Linux operating system suitable for embedded serial server systems, and use the complete TCP/IP protocol of Linux to design a multi-threaded network on
[Microcontroller]
Design of bidirectional data transmission between RS-232C serial port and Ethernet port based on ARM920T processor
Multi-physiological parameter embedded monitoring system based on ARM design
1. Introduction The multi-physiological parameter monitoring system is used to conduct continuous, long-term, automatic and real-time monitoring of the patient's physiological or biochemical parameters, and realize multi-category automatic alarm and automatic recording after analysis and processing. It also has
[Microcontroller]
Multi-physiological parameter embedded monitoring system based on ARM design
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号