Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for setting IP (Internet Protocol) and MAC (Media Access Control) addresses based on embedded system platform

A MAC address, embedded system technology, applied in the field of embedded driver software development, can solve the problem of affecting the life of non-volatile memory, wasting time, etc., and achieve the effect of safe and reliable address setting process, avoiding damage and prolonging service life

Inactive Publication Date: 2014-07-09
AVIC NO 631 RES INST
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In order to solve the technical problem that the existing IP and MAC address setting methods waste time and affect the life of a large area of ​​non-volatile memory, the present invention provides a method for setting IP and MAC addresses based on an embedded system platform. It can quickly modify the IP and MAC address of the target machine's network card, saving a lot of debugging time and prolonging the life of the target machine's non-volatile memory

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for setting IP (Internet Protocol) and MAC (Media Access Control) addresses based on embedded system platform
  • Method for setting IP (Internet Protocol) and MAC (Media Access Control) addresses based on embedded system platform

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] A method for setting IP and MAC addresses based on an embedded system platform, comprising the following steps:

[0026] 1] Select a free sector from the non-volatile memory of the target computer;

[0027] 2] Write the IP address and MAC address in the selected free sector;

[0028] 3) Modify the interface function for obtaining the address in the driver layer of the target machine, and generate the modified code;

[0029] The function of the modified interface function is: the CPU of the target machine reads the IP address and the MAC address from the free sector;

[0030] 4) Compile and connect the modified code to generate the driver target code and solidify it in the non-volatile storage area;

[0031] 5) Power on the target machine, set the IP address and MAC address of the network card:

[0032] 5.1] The target CPU reads and writes the IP address and MAC address from the free sector;

[0033] 5.2] The target machine writes the IP address and MAC address read ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for setting IP (Internet Protocol) and MAC (Media Access Control) addresses based on an embedded system platform. The method comprises the steps of: a) selecting an idle sector from a nonvolatile memory of a target machine; s) writing an IP address and an MAC address from the selected idle sector; 3) modifying an interface function for acquiring the address in the driving layer of the target machine, and the function of the modified interface function is that the CPU (Central Processing Unit) of the target machine reads the IP address and the MAC address from the idle sector; 4) generating a target code by compiling and connecting modified codes and curing the target code in the nonvolatile memory; and 5) electrifying the target machine, initializing a network card and finishing the address set. According to the method, the technical problem that an existing method for setting the IP and MAC addresses can waste time and influence the life of large areas of the nonvolatile memory, the IP and MAC addresses of the network card of the target machine can be quickly modified, a mass of debug time can be saved, and the life of the nonvolatile memory of the target machine can be prolonged.

Description

technical field [0001] The invention belongs to the field of embedded driver software development, in particular to an IP and MAC address setting method based on an embedded system platform. Background technique [0002] In embedded system development, most target machines will be configured with network functions. Among them, when configuring the network function, you need to set the IP and MAC address of the network card. In the current embedded operating system platforms such as VxWorks, Tianmai, etc., the IP and MAC address configuration of the network card is configured in the static configuration file, and then the entire driver program (some include the entire OS layer) is built and the binary file is solidified The IP and MAC address of the network card of the target machine can only be set in the non-volatile memory of the target machine (such as figure 1 shown). However, it is often necessary to modify the IP address or MAC address of the network card of the tar...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/445
Inventor 徐明黄保垒赵根学徐宁董延军韩春阳郝玉锴
Owner AVIC NO 631 RES INST
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products