CN109120668B - Control method and system based on router upgrade - Google Patents

Control method and system based on router upgrade Download PDF

Info

Publication number
CN109120668B
CN109120668B CN201810676264.7A CN201810676264A CN109120668B CN 109120668 B CN109120668 B CN 109120668B CN 201810676264 A CN201810676264 A CN 201810676264A CN 109120668 B CN109120668 B CN 109120668B
Authority
CN
China
Prior art keywords
upgrade
router
file
upgrading
uboot
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
CN201810676264.7A
Other languages
Chinese (zh)
Other versions
CN109120668A (en
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.)
Shenzhen Phoenix Telecom Technology Co ltd
Original Assignee
Shenzhen Phoenix Telecom 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 Shenzhen Phoenix Telecom Technology Co ltd filed Critical Shenzhen Phoenix Telecom Technology Co ltd
Priority to CN201810676264.7A priority Critical patent/CN109120668B/en
Publication of CN109120668A publication Critical patent/CN109120668A/en
Application granted granted Critical
Publication of CN109120668B publication Critical patent/CN109120668B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a control method based on router upgrade, which comprises the following steps: when detecting that a user presses a RESET button of the router, entering uboot; after entering the uboot is detected, the PC side directly uploads a request upgrading file to the tftp server of the router; and receiving the upgrade file and carrying out upgrade operation. A router upgrade based control system comprising: the system comprises an initial detection module, an upgrade request module and an upgrade proceeding module. According to the control method and system based on the router upgrade, the preset upgrade key is set, and when the preset upgrade key is pressed, the upgrade operation is judged to be performed; upgrading files are automatically uploaded, and automatic upgrading is carried out; on one hand, the operation difficulty of workers in production line production is effectively reduced, and the efficiency of a factory is improved; on the other hand, the scheme has the advantages of being quite reliable and operable, being capable of being operated repeatedly, reducing the reject ratio caused by secondary shell opening operation and being quite convenient and fast. The router is widely applied to the field of routers.

Description

Control method and system based on router upgrade
Technical Field
The invention relates to the field of routers, in particular to a control method and a control system based on router upgrade.
Background
the tftp server is a server for providing file downloading, and the protocol used is tftp protocol.
In the mass production of modern wireless routers, manufacturers often face a more complicated problem of upgrading the firmware of the wireless router. Because the existing wireless router firmware is faced with the problems of short development period and constantly changing requirements, the router firmware often needs frequent upgrading requirements, and particularly needs upgrading operation on the wireless router in home in manufacture after great improvement.
The upgrading mode of the household wireless router generally has two options: upgrading is carried out through a web page, but a management web page of the household wireless router must be logged in firstly on the premise of executing step by step according to the instruction of the web page, and the method is relatively low in efficiency and is not suitable for batch upgrading; the other method is that the incoming command line is operated by the command line, but the method has to wait for the system to start, and has certain specialized knowledge, which is not favorable for the factory batch method.
Based on the above problems, it is necessary to design a simple upgrading method, which can meet the requirement of upgrading efficiency and has the characteristic of easy operation.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art. Therefore, an object of the present invention is to provide a method and a system for upgrading a wireless router for home use, which are efficient, simple and convenient to operate, easy to handle, and convenient.
The technical scheme adopted by the invention is as follows:
the invention provides a control method based on router upgrade, which comprises the following steps:
when the system detects that a user presses a RESET button of the router, the system enters uboot;
after the system detects that uboot enters, a PC side directly uploads a request upgrading file to a tftp server of the router;
the system receives the upgrade file and carries out upgrade operation;
and when the upgrade is detected to be completed, the upgrade operation is quitted.
As an improvement of the technical scheme, the tftp server is embedded in the router in advance.
As an improvement of the technical scheme, the content of the request file comprises a file type, a checksum and a data part.
Further, the method further comprises: the system enters mac and sn information through scanning.
Further, the method further comprises: and if the system detects that the network connection with the router is successful, uploading the upgrade file.
Further, the file type is used to define a particular firmware portion to which the router is to be upgraded.
Further, after the file uploading is finished, the uboot judgment system upgrades the file to a specific part of the flash.
In another aspect, the present invention further provides a control system based on router upgrade, including:
the initial detection module is used for executing the step that the system detects that a user presses a RESET button of the router, and then the system enters uboot;
the upgrading request module is used for executing the step that after the system detects that uboot enters, the PC end directly uploads a upgrading request file to the tftp server of the router;
the upgrading proceeding module is used for executing the step that the system receives the upgrading file and carries out upgrading operation;
and when the upgrade is detected to be completed, the upgrade operation is quitted.
The invention has the beneficial effects that:
according to the control method and system based on the router upgrade, the preset upgrade key is set, and when the preset upgrade key is pressed, the upgrade operation is judged to be performed; upgrading files are automatically uploaded, and automatic upgrading is carried out; on one hand, the operation difficulty of workers in production line production is effectively reduced, and the efficiency of a factory is improved; on the other hand, the scheme has the advantages of being quite reliable and operable, being capable of being operated repeatedly, reducing the reject ratio caused by secondary shell opening operation and being quite convenient and fast.
Drawings
FIG. 1 is a partially schematic illustration of a wireless router according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an initial upgrade control of a wireless router according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of uploading a file according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a file composition according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of an automatic upgrade of an embodiment of the present invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
Referring to fig. 1 to 5, the functional implementation of the present invention includes: and (3) automatically entering an upgrading command by pressing a RESET key on the uboot, embedding a tftp server in the uboot, detecting the type of the firmware and automatically operating. During upgrading, an operator presses a RESET key by using a special tool to power on, the router automatically enters a background command line, and then after relevant mac and sn information is scanned, the whole process is automatically completed by automatic operation software.
The invention provides a control method based on router upgrade, which comprises the following steps:
when the system detects that a user presses a RESET button of the router, the system enters uboot;
after the system detects that uboot enters, a PC side directly uploads a request upgrading file to a tftp server of the router;
the system receives the upgrade file and carries out upgrade operation;
and when the upgrade is detected to be completed, the upgrade operation is quitted.
The tftp server is embedded in the router in advance.
The content of the request file includes a file type, a checksum, and a data portion. The file type is used to define the particular firmware portion to which the router is to be upgraded. And after the file uploading is finished, the uboot judgment system upgrades the file to a specific part of the flash.
In another aspect, the present invention further provides a control system based on router upgrade, including:
the initial detection module is used for executing the step that the system detects that a user presses a RESET button of the router, and then the system enters uboot;
the upgrading request module is used for executing the step that after the system detects that uboot enters, the PC end directly uploads a upgrading request file to the tftp server of the router;
the upgrading proceeding module is used for executing the step that the system receives the upgrading file and carries out upgrading operation;
and when the upgrade is detected to be completed, the upgrade operation is quitted.
Specifically, the uboot power-on holds the RESET key auto-entry command:
the firmware composition of the home wireless router is shown in fig. 1. When the wireless router is started, the system firstly enters uboot, and after the relevant peripheral time sequence is set, the relevant control right is handed to the kernel. The uboot is equivalent to a small starting system, the upgrading firmware is composed of a kernel and a file system, and the kernel is switched after the uboot is started. When the system enters the boot upgrading, a special key needs to be knocked in the serial port to enter the boot at the corresponding stage of the system, and meanwhile, the related serial port line needs to be accessed. The method replaces complex operation, saves cost and time and is very convenient and fast.
The invention utilizes the common RESET button of the household wireless router, referring to fig. 2, when the household wireless router is powered on, the corresponding key is pressed for 10 seconds, and then the uboot is entered to execute the relevant operation. The design does not need special serial port connecting wires and special commands, can be implemented by only pressing one key, and effectively reduces the operation difficulty of production line operators. Meanwhile, the design does not need to be opened, can be operated for many times, and eliminates defective products caused by secondary opening. The RESET key has corresponding restart definition in a kernel stage, and has no restart significance in uboot, so that the problem of key conflict does not exist.
uboot embeds tftp server:
existing designs routinely erect tftp servers on PCs that are connected to wireless home routers when upgrading. Therefore, when upgrading operation is carried out, the domestic wireless router sends an estrus file to the pc, and tftp server service software needs to be additionally built on the pc. For operators on site, the operation difficulty is inevitably increased by such operation, and the operation difficulty of workers is increased.
Referring to fig. 3, the invention converts the file request mode, and embeds a tftp server service software in the home wireless router. This changes from the way the wireless router had to make a request to the PC before to the way the PC actively makes a request to the home wireless router. The PC can be changed from a server role to a client role, full-automatic control can be achieved through control of an automatic calibration program, and operation difficulty of a production line is further simplified.
Referring to fig. 4, the composition of the file is composed of a file type, a checksum, and a data part.
The file type is an upgrade file type, and the section defines which section of the firmware of the home wireless router the tftp uploaded file is to be upgraded. After the file is uploaded, the uboot judges which part of the flash the file needs to be upgraded to according to the definition of the part. The checksum part is the checksum of the data part and can be used and checked commonly, the data integrity is guaranteed, and the condition that the upgrading fails due to data uploading errors is prevented.
Referring to fig. 5, the automation includes two parts, an automated operation tool and automated operation software. The automatic tool is required to manufacture a piece of production furniture, and after a household wireless router is installed in the tool, the RESER key is propped by a special part, so that the purpose of pressing the RESER key to electrify is achieved. The purpose of the automation software is to replace the traditional manual operation mode and to be automatically executed by the automation software, so that the efficiency is further improved, and the productivity is liberated. The automation tool is deployed on a PC connected to a home wireless router.
The method comprises the following steps: the system enters mac and sn information through scanning. And after the system detects that the network connection with the wireless router is successful, uploading the upgrade file. And when the system detects that the upgrading is finished, the system quits the upgrading operation.
The scheme has the following advantages:
1) without requiring a tear down upgrade
When the household router factory in the prior art is upgraded, the command line is usually upgraded after entering a background command line and inputting a user name and a password, so that the upgrading efficiency is greatly limited. Especially, the model of good packing or reprocess does not often take serial ports connector, must unpack and carry out relevant operation with the thimble, and complex operation is consuming time, also can bring the secondary defective products simultaneously. Aiming at the situation, the invention automatically enters the uboot background for upgrading by pressing the RESET key 10S carried by the household router when the household router is powered on.
2) Simple environment construction
When a factory is upgraded in the past, a tftp server is generally required to be built at an operation station, and a serial port line is additionally arranged for operation. The invention improves the upgrading environment, the tftp server is built in the uboot of the household wireless router, and the lan port of the household wireless router and the pc are connected by only one network wire during upgrading operation, so that the upgrading can be carried out through the pc without more operations.
3) High automation degree
In order to further reduce the operation difficulty of workers, the invention designs automatic station operation software, after the wireless router is started, only a network cable is plugged, and after the mac and the sn of the wireless router are automatically scanned by a scanning gun, a series of related actions can be automatically completed by the operation software, so that the operation difficulty of the workers is further reduced.
4) High reliability and repeated operation
In the past, when a product is upgraded, if one-time operation upgrading fails, a system crashes; if the repair is needed, related uncovering work is needed. Because the tftp server is embedded in the uboot, the firmware can be repeatedly operated after the upgrade failure, and certain reliability and repeated operability are achieved; the design mainly aims at the problem of the brick machine caused by upgrading failure, and the uncontrollable property is thoroughly eliminated.
According to the control method and system based on the router upgrade, the preset upgrade key is set, and when the preset upgrade key is pressed, the upgrade operation is judged to be performed; upgrading files are automatically uploaded, and automatic upgrading is carried out; on one hand, the operation difficulty of workers in production line production is effectively reduced, and the efficiency of a factory is improved; on the other hand, the scheme has the advantages of being quite reliable and operable, being capable of being operated repeatedly, reducing the reject ratio caused by secondary shell opening operation and being quite convenient and fast.
While the preferred embodiments of the present invention have been illustrated and described, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (6)

1. A control method based on router upgrade is characterized by comprising the following steps:
when the system detects that a user presses a RESET button of the router, the system enters uboot;
after the system detects that uboot enters, a PC side directly uploads a request upgrading file to a tftp server of the router; the tftp server is embedded in the router in advance; the system inputs mac and sn information through scanning;
the system receives the upgrade file and carries out upgrade operation;
and when the upgrade is detected to be completed, the upgrade operation is quitted.
2. The router upgrade based control method according to claim 1, wherein: the content of the file requested to be upgraded comprises a file type, a checksum and a data part.
3. The router upgrade based control method according to claim 1 or 2, further comprising: and if the system detects that the network connection with the router is successful, uploading the upgrade file.
4. The router upgrade based control method according to claim 3, wherein: the file type is used to define the particular firmware portion to which the router is to be upgraded.
5. The router upgrade based control method according to claim 3, wherein: and after the file uploading is finished, the uboot judgment system upgrades the file to a specific part of the flash.
6. A control system based on router upgrade, comprising:
the initial detection module is used for executing the step that if the user presses a RESET button of the router, the router enters uboot;
the request upgrading module is used for directly uploading a request upgrading file to the tftp server of the router by the PC terminal after the execution step detects that the uboot enters, and the tftp server is embedded in the router in advance;
the upgrading progress module is used for executing the steps of inputting mac and sn information through scanning, receiving the upgrading file and performing upgrading operation;
and when the upgrade is detected to be completed, the upgrade operation is quitted.
CN201810676264.7A 2018-06-27 2018-06-27 Control method and system based on router upgrade Active CN109120668B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810676264.7A CN109120668B (en) 2018-06-27 2018-06-27 Control method and system based on router upgrade

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810676264.7A CN109120668B (en) 2018-06-27 2018-06-27 Control method and system based on router upgrade

Publications (2)

Publication Number Publication Date
CN109120668A CN109120668A (en) 2019-01-01
CN109120668B true CN109120668B (en) 2022-01-21

Family

ID=64822390

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810676264.7A Active CN109120668B (en) 2018-06-27 2018-06-27 Control method and system based on router upgrade

Country Status (1)

Country Link
CN (1) CN109120668B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101262368A (en) * 2008-03-17 2008-09-10 中兴通讯股份有限公司 Method and device for configuration and configuration in home gateway routing mode
CN104391726A (en) * 2014-12-12 2015-03-04 四川华拓光通信股份有限公司 SFP (Small Form-Factor Pluggable) optical module upgrading method based on Bootloader
CN105279002A (en) * 2015-11-23 2016-01-27 上海网测通信技术有限公司 System guiding file based automatic upgrading method in embedded system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7352853B1 (en) * 2001-05-22 2008-04-01 Cisco Technology, Inc. Automation of customer premises equipment provisioning in a telecommunications network
CN105871582A (en) * 2015-11-16 2016-08-17 乐视致新电子科技(天津)有限公司 Upgrading method and device of router

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101262368A (en) * 2008-03-17 2008-09-10 中兴通讯股份有限公司 Method and device for configuration and configuration in home gateway routing mode
CN104391726A (en) * 2014-12-12 2015-03-04 四川华拓光通信股份有限公司 SFP (Small Form-Factor Pluggable) optical module upgrading method based on Bootloader
CN105279002A (en) * 2015-11-23 2016-01-27 上海网测通信技术有限公司 System guiding file based automatic upgrading method in embedded system

Also Published As

Publication number Publication date
CN109120668A (en) 2019-01-01

Similar Documents

Publication Publication Date Title
CN101951410A (en) Method for automatically and remotely upgrading embedded terminal
CN104425001A (en) System for simultaneously burning multiple switches, method thereof and corresponding switches
CN101426077A (en) Method for on-line updating television set software through Internet
CN102291593B (en) System configuring and testing method in production of IPTV (Internet Protocol Television) set top box
WO2018126628A1 (en) Remote upgrade method and system for embedded network devices
CN109040752A (en) Automatic debugging system for smart television
CN111414184A (en) BIOS firmware updating method under domestic server
CN103186392A (en) Computer system
CN109120668B (en) Control method and system based on router upgrade
CN112214227A (en) Edge server mirror image customization and deployment system and method
CN109857507B (en) Method for automatically and remotely executing Windows program
CN110069275A (en) Update the method and system for being installed on the software program of electronic device
CN112788576B (en) Equipment offline processing method and system, storage medium and electronic device
CN109849527A (en) A kind of automatic signaling method and system of laser machine
CN104679571A (en) Equipment and method for carrying out program automatic upgrading on multiple pattern generators simultaneously
CN108366064B (en) Method and system for docking platform and electronic equipment
CN114745740B (en) Intelligent household appliance upgrading system and method
CN116301972A (en) Micro control unit firmware upgrading method and system
WO2014187401A1 (en) Method and device for remote base station version installation
CN106210897B (en) set top box automatic test method based on serial port and system thereof
CN109483536A (en) Additional axis adding method and device for robot, storage medium and robot
CN114443097A (en) Single-chip microcomputer firmware upgrading method used in conference unit
CN108874424A (en) FPGA safety on-line upgrade method based on serial port protocol
CN114661536A (en) Automatic test control platform, control method and operation method for processor
CN115878144A (en) Terminal equipment program upgrading system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant