CN102185727B - System and method for writing serial numbers to product firmware in batches - Google Patents

System and method for writing serial numbers to product firmware in batches Download PDF

Info

Publication number
CN102185727B
CN102185727B CN 201110153045 CN201110153045A CN102185727B CN 102185727 B CN102185727 B CN 102185727B CN 201110153045 CN201110153045 CN 201110153045 CN 201110153045 A CN201110153045 A CN 201110153045A CN 102185727 B CN102185727 B CN 102185727B
Authority
CN
China
Prior art keywords
equipment
address
sequence number
server
hub
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
CN 201110153045
Other languages
Chinese (zh)
Other versions
CN102185727A (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 Gongjin Electronics Co Ltd
Original Assignee
Shenzhen Gongjin Electronics 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 Gongjin Electronics Co Ltd filed Critical Shenzhen Gongjin Electronics Co Ltd
Priority to CN 201110153045 priority Critical patent/CN102185727B/en
Publication of CN102185727A publication Critical patent/CN102185727A/en
Application granted granted Critical
Publication of CN102185727B publication Critical patent/CN102185727B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention provides a system and a method for writing serial numbers to product firmware in batches. The method comprises the following steps of: powering a plurality of pieces of equipment on, simultaneously connecting the equipment with a server by using a hub, and causing the equipment to enter a connection waiting state; and repeatedly performing the following operations of transmitting a handshaking command, acquiring the page information of any currently connected equipment after connection with the equipment with an Internet protocol (IP) address which an initial IP address is established, writing a medium access control (MAC) address value carried in the page information into the current equipment as a new serial number of the equipment, simultaneously modifying the IP address of the current equipment, disconnecting the connection with the equipment and restarting the equipment by using the server. In the system and the method, the plurality of pieces of equipment simultaneously access the Hub to form a small-size network, the assembly line working way of writing the serial numbers is realized, and the serial numbers can be rapidly and highly-efficiently written to the product firmware in batches.

Description

A kind of system and method for realizing product firmware batch write sequence number
Technical field
The present invention relates to the communication equipment technical field, relate in particular to a kind of system and method for realizing product firmware batch write sequence number.
Background technology
After large batch of product is mail to external and other region in production firm, because the sequence number of these products may not be unique, local operator need be different to each product programming sequence number, and the method for generally taking is: these product facilities are connected with server respectively successively, by server new unique sequence number are write in the product firmware.Yet the mode of one write sequence number is handled in one of this connection, and when being applied to the occasion of typical products in mass production firmware write sequence number, operating efficiency is obviously lower, thereby a kind of new solution fast of necessary proposition.
Summary of the invention
The object of the present invention is to provide a kind of system that realizes product firmware batch write sequence number, a plurality of equipment insert the Hub(hub simultaneously) constituted a mininet, realized the pipeline work of write sequence number.
Another object of the present invention is to provide a kind of method that realizes product firmware batch write sequence number, can be quickly and efficiently to large batch of product firmware write sequence number.
The objective of the invention is to be achieved through the following technical solutions:
A kind of system that realizes product firmware batch write sequence number comprises server, hub and a plurality of equipment; Described a plurality of equipment is connected with hub respectively after connecing electricity, and hub links to each other with server, and the initial ip address of each equipment is identical; Server is used for repeating following operation: send the order of shaking hands, after the equipment that equals described initial ip address with arbitrary IP address wherein connects, obtain the page info of the equipment of current connection, the MAC Address value of wherein carrying is write in the current device as its new sequence number, revise simultaneously and disconnect behind the IP address of current device and being connected and restarting this equipment of this equipment.
Preferably, the quantity of described hub is at least one, and all hubs are connected with described server respectively; Simultaneously, all devices that initial ip address is identical links to each other with same hub.
A kind of method that realizes product firmware batch write sequence number, this method may further comprise the steps:
With a plurality of device power, simultaneously by hub be in the wait connection status after server is connected; The initial ip address of each equipment is identical;
Server repeats following operation: send the order of shaking hands, after the equipment that equals described initial ip address with arbitrary IP address wherein connects, obtain the page info of the equipment of current connection, the MAC Address value of wherein carrying is write in the current device as its new sequence number, revise simultaneously and disconnect behind the IP address of current device and being connected and restarting this equipment of this equipment.
Preferably, also comprise in the said method: behind the page info of the equipment that obtains current connection, described server compares MAC Address and the sequence number that carries in this page info, if both unanimities, then directly revise and disconnect behind the IP address of current device and being connected and restarting this equipment of this equipment.
Preferably, the mode of the IP address of described server modifications current device is: only revise last position of this IP address, amended IP address is inequality with the IP address of other equipment.
Preferably, also comprise in the said method: described equipment is being restarted the successful writing sequence number sign of back demonstration.
Compared with prior art, the embodiment of the invention has following beneficial effect:
1) the present invention when sequence number writes, has guaranteed the uniqueness of sequence number with the Mac address;
2) by the modification to each IP address of equipment, guaranteed that each equipment can not be connected unsuccessful problem because of the server that IP address conflict brings with equipment, and then reduced the possibility of write sequence number failure;
3) mininet of forming by Hub increases the feasibility of single treatment multiple devices, and can pile up the bigger network of composition (the equipment number is no more than 254 in theory) between each Hub, for large-batch processing more provides physical condition;
4) by batch processing method, reduced the possibility of makeing mistakes that a large amount of write sequences hand-manipulated number brings, saved operator's write sequence time.
Description of drawings
Fig. 1 is the system construction drawing of realizing in the embodiment of the invention product firmware batch write sequence number.
Fig. 2 is the method flow diagram of realizing in the embodiment of the invention product firmware batch write sequence number.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explaining the present invention, and be not used in restriction the present invention.
See also shown in Figure 1ly, realize in the present embodiment system of product firmware batch write sequence number is made up of a plurality of equipment, Hub, server, Hub is connected with server, and each equipment inserts Hub respectively; Wherein, the initial ip address of each equipment is identical.
See also shown in Figure 2ly, said system realizes the method for product firmware batch write sequence number specifically be may further comprise the steps in the present embodiment.
201, all devices connects the electricity startup, is in the wait connection status.
202, server sends telnet command by Hub, after the arbitrary equipment that equals initial ip address with IP address wherein connects, revises last position of the IP address of this equipment, and requires to obtain the page info of this equipment.
203, the current equipment that is connected with server returns to server with its page info, and this page info comprises its MAC Address, sequence number (if do not have, then being empty).
204, server extracts MAC Address and sequence number information from received page info, and both are compared, if both are in full accord, does not then deal with; If both are inconsistent, then MAC Address is write in the current device as new sequence number.
205, server disconnects and being connected of current device, and restarts current device, and this equipment is restarted the back display sequence and number write successfully and to identify.So far, return step 202 again and carry out repetitive operation.
In the present embodiment, all devices that is connected with Hub can constantly experience the process of restarting after processed.It is unique value that the IP address of the equipment behind the process place has changed over last position, and it is unsuccessful to have guaranteed that each equipment can not be connected with equipment because of the server that IP address conflict brings, and enters and avoids causing write sequence number failure.Owing to only revise last position of IP address in the present embodiment, thus by theory if the IP address last be no more than 254 equipment and can not cause IP address conflict, the quantity of a batch process is many.
In addition, in actual applications, said system is done repetitive operation always, and the user can write the successfully device powers down of sign with showing sequence number, inserts new pending equipment.And can pile up the bigger network of composition (the equipment number is no more than 254 in theory) between each Hub, for large-batch processing more provides physical condition.
To sum up, the present invention has not only guaranteed sequence number unique of equipment, and realized pipeline work, and improved greatly and write efficient, be fit to very much to be applied to equipment manufacturers, agent, operator etc. are to the occasion of typical products in mass production firmware write sequence number both at home and abroad.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (6)

1. a realization is characterized in that the system of product firmware batch write sequence number, comprises server, hub and a plurality of equipment; Described a plurality of equipment is connected with hub respectively after connecing electricity, and hub links to each other with server, and the initial ip address of each equipment is identical; Server is used for repeating following operation: send the order of shaking hands, after the equipment that equals described initial ip address with arbitrary IP address wherein connects, obtain the page info of the equipment of current connection, the MAC Address value of wherein carrying is write in the current device as its new sequence number, revise simultaneously and disconnect behind the IP address of current device and being connected and restarting this equipment of this equipment.
2. realization as claimed in claim 1 it is characterized in that the quantity of described hub is at least one, and all hubs is connected with described server respectively to the system of product firmware batch write sequence number; Simultaneously, all devices that initial ip address is identical links to each other with same hub.
3. a realization is characterized in that to the method for product firmware batch write sequence number this method may further comprise the steps:
With a plurality of device power, simultaneously by hub be in the wait connection status after server is connected; The initial ip address of each equipment is identical;
Server repeats following operation: send the order of shaking hands, after the equipment that equals described initial ip address with arbitrary IP address wherein connects, obtain the page info of the equipment of current connection, the MAC Address value of wherein carrying is write in the current device as its new sequence number, revise simultaneously and disconnect behind the IP address of current device and being connected and restarting this equipment of this equipment.
4. realization as claimed in claim 3 is to the method for product firmware batch write sequence number, it is characterized in that, also comprise in this method: behind the page info of the equipment that obtains current connection, described server compares MAC Address and the sequence number that carries in this page info, if both unanimities, then directly revise and disconnect behind the IP address of current device and being connected and restarting this equipment of this equipment.
5. as claim 3 or the 4 described realizations method to product firmware batch write sequence number, it is characterized in that, the mode of the IP address of described server modifications current device is: only revise last position of this IP address, amended IP address is inequality with the IP address of other equipment.
6. realization as claimed in claim 3 is characterized in that the method for product firmware batch write sequence number, also comprises in this method: described equipment shows successful writing sequence number sign restarting the back.
CN 201110153045 2011-06-09 2011-06-09 System and method for writing serial numbers to product firmware in batches Active CN102185727B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110153045 CN102185727B (en) 2011-06-09 2011-06-09 System and method for writing serial numbers to product firmware in batches

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110153045 CN102185727B (en) 2011-06-09 2011-06-09 System and method for writing serial numbers to product firmware in batches

Publications (2)

Publication Number Publication Date
CN102185727A CN102185727A (en) 2011-09-14
CN102185727B true CN102185727B (en) 2013-07-03

Family

ID=44571800

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110153045 Active CN102185727B (en) 2011-06-09 2011-06-09 System and method for writing serial numbers to product firmware in batches

Country Status (1)

Country Link
CN (1) CN102185727B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106326785A (en) * 2015-06-18 2017-01-11 中兴通讯股份有限公司 Electronic barcode writing method and device
CN106528220B (en) * 2016-10-27 2019-08-09 武汉奥泽电子有限公司 A kind of anti-repeated code automobile remote controllers sequence number programming system and method
CN106681778A (en) * 2017-01-17 2017-05-17 深圳大漠大智控技术有限公司 Multi-single-chip-microcomputer one-time flash system based on network and implementation method
CN109639847A (en) * 2018-12-18 2019-04-16 浪潮电子信息产业股份有限公司 A kind of equipment that writing with a brush dipped in Chinese ink MAC Address, method and system
CN110381176A (en) * 2019-07-10 2019-10-25 中山优感科技有限公司 A kind of bluetooth title naming method and device for producing bluetooth equipment in batches

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030200391A1 (en) * 2001-06-15 2003-10-23 Lsi Logic Corporation Method for managing critial data in an N-way mirrored storage device
CN1696926A (en) * 2004-05-15 2005-11-16 鸿富锦精密工业(深圳)有限公司 MAC system of automatic assigning addresses and method
CN101710240A (en) * 2009-11-18 2010-05-19 深圳市九洲电器有限公司 Set-top box production control system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030200391A1 (en) * 2001-06-15 2003-10-23 Lsi Logic Corporation Method for managing critial data in an N-way mirrored storage device
CN1696926A (en) * 2004-05-15 2005-11-16 鸿富锦精密工业(深圳)有限公司 MAC system of automatic assigning addresses and method
CN101710240A (en) * 2009-11-18 2010-05-19 深圳市九洲电器有限公司 Set-top box production control system

Also Published As

Publication number Publication date
CN102185727A (en) 2011-09-14

Similar Documents

Publication Publication Date Title
CN102185727B (en) System and method for writing serial numbers to product firmware in batches
CN102185718B (en) System upgrading method and device
CN102143229A (en) Method and system for upgrading terminals in batches
US9325664B2 (en) Method for setting address for service blade, platform apparatus, and system
CN104836848A (en) Method for remotely upgrading intelligent household electrical appliances
CN105302759A (en) Automatic switching circuit device and method of 485 communication chip transmitting and receiving data
CN104618943A (en) OMCH (Operation Maintenance Channel) fault treatment method, device and system
CN104092661A (en) Serial port communication method and apparatus of virtual machines
US20170168473A1 (en) Signalling of specification information on an industrial device
CN112954770A (en) Device binding method and device, storage medium and electronic device
JP5308418B2 (en) Programmable logic controller
CN105281944B (en) Method for setting network protocol address and service management system
CN104283968A (en) Intelligent household electrical appliance backstage management system
CN107888677B (en) Communication implementation method, control terminal, intelligent device and system
CN103428305A (en) Network equipment batch upgrading method
CN101931564B (en) Method and system for testing protocol anomaly, test device and control device
CN103747078A (en) System and method for cooperative control of mobile phone and terminals
CN104363208A (en) Computer intercluster key management method and system
CN104506551B (en) Data transmission method and equipment, the line card of distributed dual master control Frame Relay Device
CN112152889B (en) Method of controlling electronic device, computing device, and computer-readable storage medium
CN108075910B (en) Configuration method of communication equipment and communication equipment
CN106709836B (en) Configuration information exchange method, device and equipment
CN105227452B (en) data frame forwarding method and device
CN104184624A (en) Network topology searching system and method
CN108733607B (en) Connection communication method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Address after: 518057 Nanshan medical equipment Industrial Park, No. 1019 Nanhai Road, Shenzhen, Guangdong, Nanshan District B411-413

Applicant after: Shenzhen Gongjin Electronics Co., Ltd.

Address before: 518057 Nanshan medical equipment Industrial Park, No. 1019 Nanhai Road, Shenzhen, Guangdong, Nanshan District B411-413

Applicant before: Shenzhen Gongjin Electronics Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant