CN209787189U - Embedded Ethernet communication device - Google Patents

Embedded Ethernet communication device Download PDF

Info

Publication number
CN209787189U
CN209787189U CN201920695558.4U CN201920695558U CN209787189U CN 209787189 U CN209787189 U CN 209787189U CN 201920695558 U CN201920695558 U CN 201920695558U CN 209787189 U CN209787189 U CN 209787189U
Authority
CN
China
Prior art keywords
ethernet controller
ethernet
chip microcomputer
single chip
upper computer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201920695558.4U
Other languages
Chinese (zh)
Inventor
黄文勇
杨丽华
程宇峰
许欣
王小红
桑原�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Bbef Science and Technology Co Ltd
Original Assignee
Beijing Bbef Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Bbef Science and Technology Co Ltd filed Critical Beijing Bbef Science and Technology Co Ltd
Priority to CN201920695558.4U priority Critical patent/CN209787189U/en
Application granted granted Critical
Publication of CN209787189U publication Critical patent/CN209787189U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The utility model belongs to the field of electronic network, and discloses an embedded Ethernet communication device, which comprises an upper computer (1) and is characterized in that the upper computer is connected with an Ethernet controller (2) through a circuit; the Ethernet controller is in communication connection with a single chip microcomputer (3) through a bus, and the single chip microcomputer collects information of the functional modules and then sends the information to the Ethernet controller through the bus; the single chip microcomputer configures an Ethernet controller, and the Ethernet controller is provided with a plurality of target ip addresses and port numbers. The IP and the port number can be directly replaced by the upper computer through the network port, and high-efficiency and high-speed Ethernet communication is guaranteed.

Description

Embedded Ethernet communication device
Technical Field
The utility model belongs to the electronic network field especially relates to an embedded ethernet communication device.
Background
At present, two types of embedded ethernet communication methods are available, one type is that an embedded system platform is utilized to perform ethernet communication based on a lwip or uip protocol, and the method has a large code amount, occupies a large amount of space of a cpu, and has a high requirement on the performance of the cpu. The other method is to use a hardware platform for construction, solidify tcp/ip protocol to form an Ethernet communication controller, configure the controller through a cpu, save the space of the cpu, but have no memory function for a large number of destination ip addresses, have fixed port numbers, can only realize a few point-to-point communications, and reload through the cpu program when changing ip and port numbers each time to cause complex workload.
SUMMERY OF THE UTILITY MODEL
The utility model aims at overcoming the technical problem who exists above, provide an embedded ethernet communication device. The communication flow is redesigned, so that the ip address and the port number can be directly replaced by the upper computer app through the Ethernet port, and the high-efficiency and high-speed Ethernet networking communication of the embedded device is realized.
In order to realize the purpose of the utility model, the technical proposal of the utility model is that:
An embedded Ethernet communication device comprises an upper computer 1 and is characterized in that the upper computer is connected with an Ethernet controller 2 through a circuit; the Ethernet controller is in communication connection with a single chip microcomputer 3 through a bus, and the single chip microcomputer collects information of the functional modules and then sends the information to the Ethernet controller through the bus for communication; the single chip microcomputer configures an Ethernet controller, and the Ethernet controller is provided with a plurality of target ip addresses and port numbers.
Preferably, the upper computer is a PC terminal.
Preferably, the single chip microcomputer is provided with a spi interface single chip microcomputer, and the Ethernet controller uses an Ethernet controller with a solidified TCP/IP protocol.
Preferably, the bus is an SPI interface bus.
The utility model has the advantages that:
The device is the ethernet communication method based on singlechip, the device uses the ethernet controller of solidification (embedding) TCP/IP agreement can save the space of singlechip, simultaneously design accessible APP through the procedure is to ethernet controller (send the order, thereby the singlechip reads and handles the order and realize changing to the purpose IP of ethernet controller), thereby realize the communication to many IP addresses, the communication problem that solidification (embedding) TCP/IP agreement ethernet controller can only carry out several fixed points has been solved, through the change to the purpose IP address that does not use, realize the communication to new purpose IP address.
Drawings
Fig. 1 is a schematic structural diagram of the present invention.
Fig. 2 is a schematic view of the working principle of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings.
As shown in fig. 1-2, an embedded ethernet communication device includes an upper computer 1, the upper computer is connected to an ethernet controller 2, and the ethernet controller uses an ethernet controller embedded with TCP/IP protocol, and needs to be configured when in use; the Ethernet controller is in communication connection with a single chip microcomputer 3 through a bus, the bus is an SPI (serial peripheral interface) bus, and the cost is low. The single chip microcomputer is provided with an spi interface. The singlechip acquires the information of the functional module and then sends the information to the Ethernet controller for communication through the bus; the single chip microcomputer is used as a CPU to configure an Ethernet controller, the Ethernet controller is provided with a plurality of target ip addresses and port numbers, and data segment receiving and sending are realized through the single chip microcomputer. The host computer sends information to one data receiving cache corresponding to the ip address in the Ethernet controller, and the single chip microcomputer reads the data in the cache and identifies and processes the command.
The upper computer is any PC terminal and is connected with the Ethernet communication device through an app sending command of the PC terminal. The Ethernet controller is set to be in a server mode, and the APP at the PC end sends a connection request to the Ethernet controller for connection.
Preferably, the ethernet controller is in communication connection with the plurality of upper computers through the router, and the single chip microcomputer can change the destination ip address of the ethernet controller according to the command of the upper computers, so as to realize the replacement of the destination ip address, and is connected with a new upper computer.
The CPU in the device collects and processes the information of each functional module and then sends the information to the Ethernet controller through the SPI port line. The SPI connection is connected with the Ethernet communication controller in a master-slave mode without occupying the port line of the CPU independently, so that the port line resource is saved. The CPU sends out commands, and the Ethernet controller sends information to the PC end APP for processing. The APP terminal sends a command message to the Ethernet controller, the external interrupt of the CPU is triggered through the configuration of the interrupt register of the Ethernet controller, and the information sent by the PC terminal is read and processed.
According to the characteristics and the actual condition requirements of embedded Ethernet communication, an Ethernet controller of a solidified TCP/IP protocol is used, a plurality of target IP addresses and port numbers are set firstly in the process of program initialization operation, and the Ethernet controller sends an ARP command to acquire the physical address of a target host to carry out preliminary networking. When the target IP (a) address is successfully networked, the APP sends an instruction to the Ethernet controller, the instruction comprises a change instruction for any or all port configurations of the IP ports of the Ethernet controller, the CPU analyzes the instruction, re-initializes the Ethernet controller and then changes the Ethernet controller, the Ethernet controller re-performs ARP to obtain the physical address of the target host so as to carry out networking with the target IP address, the CPU program is not required to be changed, and communication with other IP (b) addresses which are not memorized can be realized only by issuing the instruction through the APP.
The described embodiments are only some, but not all embodiments of the invention. Based on the embodiments in the present invention, all other embodiments obtained by a person skilled in the art without creative work belong to the protection scope of the present invention.

Claims (4)

1. an embedded Ethernet communication device comprises an upper computer (1) and is characterized in that the upper computer is connected with an Ethernet controller (2) through a circuit; the Ethernet controller is in communication connection with a single chip microcomputer (3) through a bus, and the single chip microcomputer transmits the information of the functional module to the Ethernet controller for communication through the bus after acquiring the information; the single chip microcomputer configures an Ethernet controller, and the Ethernet controller is provided with a plurality of target ip addresses and port numbers.
2. An embedded ethernet communication device according to claim 1, wherein: the upper computer is a PC terminal.
3. An embedded ethernet communication device according to claim 1, wherein: the single chip microcomputer is provided with an spi interface.
4. an embedded ethernet communication device according to claim 1, wherein: the bus is an SPI interface bus.
CN201920695558.4U 2019-05-15 2019-05-15 Embedded Ethernet communication device Active CN209787189U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201920695558.4U CN209787189U (en) 2019-05-15 2019-05-15 Embedded Ethernet communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201920695558.4U CN209787189U (en) 2019-05-15 2019-05-15 Embedded Ethernet communication device

Publications (1)

Publication Number Publication Date
CN209787189U true CN209787189U (en) 2019-12-13

Family

ID=68805330

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201920695558.4U Active CN209787189U (en) 2019-05-15 2019-05-15 Embedded Ethernet communication device

Country Status (1)

Country Link
CN (1) CN209787189U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115514410A (en) * 2022-11-24 2022-12-23 成都国星宇航科技股份有限公司 Remote sensing satellite data transmission system based on Ethernet

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115514410A (en) * 2022-11-24 2022-12-23 成都国星宇航科技股份有限公司 Remote sensing satellite data transmission system based on Ethernet

Similar Documents

Publication Publication Date Title
US9985820B2 (en) Differentiating among multiple management control instances using addresses
US10148746B2 (en) Multi-host network interface controller with host management
US8725893B2 (en) Method and system for configuring a plurality of network interfaces that share a physical interface
WO2022095348A1 (en) Remote mapping method and apparatus for computing resources, device and storage medium
US9729440B2 (en) Differentiating among multiple management control instances using IP addresses
CN111656336B (en) PCIE sending and receiving method, device, equipment and system
CN101957808B (en) Communication method among various CPUs (Central Processing Units), system and CPU
CN103441867A (en) Method for updating internal network resource allocation of virtual machine
CN114222009A (en) Industrial communication multi-protocol conversion system
WO2012012994A1 (en) Device with unified shelf management architecture and management control method thereof
CN112147927B (en) Multi-axis motion control system for two-channel bus communication
CN102811152B (en) Method for realizing real-time transaction and data exchange of multiple main bus network communication
CN113645047B (en) Out-of-band management system and server based on intelligent network card
CN115061973B (en) Network card mapping method and device based on asymmetric multiprocessing mode
CN107168161A (en) EtherCAT master-salve station communication systems based on ROS systems
CN209787189U (en) Embedded Ethernet communication device
CN110086745B (en) Automatic change line data acquisition control system
CN107196975B (en) PLC networking serial port converter of multiprotocol conversion
CN110958590B (en) Heterogeneous equipment integrated system based on multi-protocol edge computing gateway
CN202183779U (en) Ethernet access device of serial bus
CN102932208A (en) Site monitoring method and device
JP2023518326A (en) User-side logic controller for reading and writing arbitrary bytes
CN111328091A (en) Wireless communication device configuration method based on RNDIS protocol
CN114567671B (en) ARM server and data transmission method
CN104133447A (en) Engineering machine control system and engineering machine

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant