• Inventory
  • Products
  • Technical Information
  • Circuit Diagram
  • Data Sheet
Technical Information
Home > Technical Information > Embedded System/ARM Technology > Application of Jupiter Processor in Embedded Gateway

Application of Jupiter Processor in Embedded Gateway

Source:lai832
Category:Embedded System/ARM Technology
2023-04-24 10:09:18
26

Embedded gateway is the key of distributed device network platform based on Internet technology. It provides a network communication system with different protocols (such as RS232 interface, RS485 interface, RF interface, etc.) and a connection to Ethernet or even the World Wide Web. Embedded gateways provide embedded Web servers and methods of connecting to various interfaces. Embedded Web server is also a compact and compact Web server designed for embedded devices. It can run on the embedded TCP/IP protocol stack and provide functions that almost all traditional Web servers can provide.

1 Plant Management Scheme Using Embedded Gateway
Inside the factory, commands are delivered over 485 lines or Ethernet, and there are two ways to send alarm messages for monitoring object failures: sending GSM short messages using standard MODEM commands or sending e-mail through SMTP clients. The interaction between the World Wide Web and the Control Network is through an embedded gateway. When the control terminal sends control information to the field device as the smart node through the World Wide Web, it first sends the information to the gateway based on TCP/IP protocol, then the gateway sends the information to the corresponding field device based on the field device bus using the corresponding TCP/IP protocol, RS485 protocol, RS232 protocol. Conversely, the embedded gateway is mainly responsible for the conversion between field protocols. The embedded gateway solves the system integration problems of different protocol standards, as shown in Figure 1.



2 Hardware Subsystem
Jupiter is a 32-bit high-speed dual-ethernet processor manufactured by ADC Corporation of Korea. It is a low-cost, high-performance processor with a high performance price ratio based on the Ethernet system. The chip contains two 10/100Mb/s adaptive Ethernet interfaces, which are widely used in the design of hub and router. It has similar advantages to the built-in 32-bit EISC processor of ARM core, supports uClinux operating system, and is a representative product of EISC Series in the current market. Compared with CISC chips, Jupiter (EISC architecture) has expertise in optimizing embedded applications and code optimization, while the chip architecture is flat. The ease of operation of the Jupiter directive makes it easier to implement hardware functions.
The Jupiter processor works at 50MHz and uses 16-bit single-cycle instruction set, which makes the operation fast. Includes 4K Cache, 2 10/100Mb/s Adaptive Dual Ethernet Controllers, supports 640 × 480 color STNLCD controller, 2 serial UART, 2 DMA, serial SIO controller, 4 32-bit timers and programmable I/O port, 1 interrupt controller, DRAM controller, ROM/SRAM controller; The chip system manager also includes an internal 32-bit bus arbitrator and an extended memory controller. There are 8 32 MB memory space for user expansion; The processor has built-in DHCP Client (including PPPoE, Proxy, DNS) and DHCP Server functions, which can be widely used in IP Sharer, Sohu Gateway, Industrial Field Web Server and Browser, Home Gateway, ADSL, Industrial Control Network Controller, etc.
A comparison of Jupiter chips from ADC Korea with other companies is shown in Table 1.


3 Software Structure
Traditional embedded development is for relatively simple applications. Usually there is only one simple (or fixed) application running, and the tasks implemented are simple and application-specific, so complex task management and scheduling mechanisms are not required. From an engineering point of view, burning a ROM in a simple way allows you to execute the program directly after the system starts, without operating system involvement. Developers can understand all application startup, manage resource details, and manage them. The basic function of an embedded gateway is to connect the embedded devices to the existing Ethernet network, but to a large extent, it maintains the respective functions of the original embedded network, so the gateway must have the ability to resolve multiple protocols. For this kind of complex application, the traditional embedded design method can no longer meet the requirements, and the operating system must be sought to deal with multitask and complex tasks.
UCliux is a Linux operating system developed from the Linux 2.0 kernel and is an embedded Linux operating system designed for microprocessors without MMU. Because most of the kernel source code is rewritten, the uClinux kernel is much smaller than the original Linux 2.0 kernel, but retains the main advantages of the Linux operating system: stability, excellent network capabilities, and file system support.
UClinux can be customized to make the inner edge smaller, add a GUI (graphical user interface) and customize the application, and launch it in ROM, RAM, Flash, or Disk On Chip. Because of the high flexibility of the embedded uClinux operating system's kernel customization, developers can easily configure it on demand to meet practical application needs. Also, because uClinux is open source code, developers can develop all kinds of drivers themselves as long as they know the core principles.
The Jupiter chip is a processor without a memory management unit (MMU), and uClinux solves the problem of memory management without MMU very well. It uses the paging management of memory. The system pages the actual memory at startup. The system's access to memory is direct (it doesn't need to go through the MMU to access addresses, it sends them directly to the address line for output), and the addresses accessed in all programs are the actual physical addresses. The operating system does not protect memory space (which is actually a feature of many embedded systems), and processes actually share a running space (there is no separate address translation table).

Development of uCIinux for Gateway 4
Jupiter has provided users with the uCinux operating system source code and its related reference communication class source programs. The development board uses serial port to connect with PC serial port, uses Cygwin to simulate the Linux operating system environment, and the EISCStudio software package provided by ADC company to conduct online Debg communication and debugging of user programs. Provides C compiler links, disassembly windows and memory windows, assembly and C source program debugging windows, which can be single step, macro single step, breakpoint settings, breakpoint run, continuous run, full speed run, etc. Variable windows allow you to observe and modify the variables of the source program. The software supports both analog debugging and online debugging.
4.1 uClinux Kernel Generation
First install and run Cygwin (software for virtual Linux systems in Windows environment)
Enter X:cygwin\homeadministrator\Clinux-eiSC\ClInux-24.20 (X is the partition where Cygwin is installed)
Execute in Cygwin environment
(1) > Mike mroper
(2) > Make Jupiter_ C0nfig
(3) > Make 01dconfig
(4) > Make dep
(5) > MaKe
After performing the above steps, romimage.bln files are generated, including seloader.bin (bootloader file), linux.bm (1inux kernel file), and rdgz.bin (compressed ramdisk file)
Transplantation of 4.2 uClinux Kernel
After downloading seloader.bin to the EPROM chip of the system through a burner, do the following.
(1) Connect Jupiter's cOMl port to the COM0 of the PC, start the super terminal, and connect JUPiter port 0 to the internal network. After booting up, you should see the following information in the Super Terminal window:
Seloader is se3208 Boot Loader
CPyright (C) 2002 ad chips
Seloader comes with ABSOLUTELY NO WARRANTY:Read the
GNU GPL for details
AutObOOt aborted Tvpe "help" to get a list of commands
Seloader>
Install and run two service programs DHCP and TFTPD on the PC.
DHCP (Dynamic Host Assignment Protocol) is a TCP/IP standard protocol that simplifies host IP address assignment management. Users can use DHCP servers to manage dynamic IP address assignments and other related environment configuration tasks (such as DNS, WINS, Gateway settings); Tftpd is a third-party FTP tool that implements the TFTP Internet standard. The standard does not require a user name and password.
(3) Set the physical address of the internal network device of the user gateway through dhcp. Bootp sever configuration Option-> Add static address entry: Set the Hardware address by." 00:01:23:45:67:00 "At the IP address first three octet must be same with server IP address and last octet can be anyoneAuto-start after setup, shown in the status bar: 1istening onport 67.
(4) Setting TFTPD.Setting tftPd-> Configure. & Gt; Home directory: X:\tftpserver. The linux.bin, rdgz.bin files are stored in this directory. Then tfptd-> Start, shown in the status bar: Serveris running.
Execute the BOOTP command in the super terminal. Command: seloader> Bootp.
Perform TFTP download linux.bin command: seloader> TFTP linuxbin kernel.
Execute TFTP to download rdgz.bin command: seloader> TFTP rdgzbin ramdisk.
_Execute boot to start uClinux command: seloader> Boot.
Startingkernel...
Inhead-se3208.S
Linux version 2.4.20-uc0 ( administrator@ZENGYU-X14PHIPI (gccversion egos-2.91)
66 19990314 (egcs-1.1.2 release)#1 Thu Apr 10 15:43:30 2003
Architecture:eisc-jupiter
.
.
.
Command:hosmamejupiter
Command:mount-t proc proc/proc
Command:cat/etc/motd
Welcome to
For further information check:
Htto://www.adc.co.kr/
Command:ifconfig eth0 192.168.0.3
Command:ifconfig ethl up
Command:ifconflg ethl 192.168.10.3
Command:roHte add default gw l92.168.0.2
Command:ifconfigl0 127.0.0.1
Command:route add-net l27.0.0.0 netmask 255.0.0.01o
Conwnand:#dhcped-P-a eth0&
Execution Finished, Exiting
Sash command shell (version.1.1.1), (pgid:14)
That is, the uClinux environment is set up on the gateway. Drivers and applications can be developed on the LinUX platform.



Source:Xiang Xueqin