CN108664260B - Method for automatically updating local serial number from network when BIOS is started in factory mode - Google Patents

Method for automatically updating local serial number from network when BIOS is started in factory mode Download PDF

Info

Publication number
CN108664260B
CN108664260B CN201810312876.8A CN201810312876A CN108664260B CN 108664260 B CN108664260 B CN 108664260B CN 201810312876 A CN201810312876 A CN 201810312876A CN 108664260 B CN108664260 B CN 108664260B
Authority
CN
China
Prior art keywords
serial number
bios
server
network
updating
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
CN201810312876.8A
Other languages
Chinese (zh)
Other versions
CN108664260A (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.)
Jiangsu Zhuoyi Information Technology Co ltd
Kunshan Byosoft Electronic Technology Co ltd
Nanjing Byosoft Co ltd
Original Assignee
Jiangsu Zhuoyi Information Technology Co ltd
Kunshan Byosoft Electronic Technology Co ltd
Nanjing Byosoft 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 Jiangsu Zhuoyi Information Technology Co ltd, Kunshan Byosoft Electronic Technology Co ltd, Nanjing Byosoft Co ltd filed Critical Jiangsu Zhuoyi Information Technology Co ltd
Priority to CN201810312876.8A priority Critical patent/CN108664260B/en
Publication of CN108664260A publication Critical patent/CN108664260A/en
Application granted granted Critical
Publication of CN108664260B publication Critical patent/CN108664260B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Factory Administration (AREA)

Abstract

The invention discloses a method for automatically updating a local serial number from a network when a BIOS is started in a factory mode, which comprises the following steps: the machine is connected with the network, and is started, and a brand new BIOS automatically enters an updating state; the updating module is connected with a server of a factory, informs the information of the model, version and the like of the updating module, and requests a serial number from the server; and the server inquires the database after receiving the information, allocates a unique serial number of the whole plant, and transmits the number back to the machine station. The utility model provides a BIOS opens the automatic method of updating local serial number from the network under the factory mode, the mill need not print the board serial number bar code in advance, the production line workman also need not use and sweeps a yard rifle and input the bar code, also need not get into the DOS system environment of mill's customization in order to write in the serial number, only need insert the net twine in advance and normally start, BIOS oneself networks and reads only serial number, the unnecessary flow has been reduced, the efficiency of mill has been improved, the output is promoted, and the utility model has good practicality.

Description

Method for automatically updating local serial number from network when BIOS is started in factory mode
Technical Field
The invention belongs to the technical field of computer serial number display, and particularly relates to a method for automatically updating a local serial number from a network when a BIOS is started in a factory mode.
Background
In the factory production process of the computer, the product serial number needs to be stored in the BIOS, so that the application in the operating system can read the information, and a user can be informed of information such as the warranty date of the computer after network query. At present, a serial number is printed into a bar code in advance and is pasted on a computer shell, after the computer is started, a factory DOS tool is operated after a machine is started to a DOS operating system, a production line worker inputs serial number information by using equipment such as a code scanning gun, and the serial number is stored in a BIOS storage area by the tool. The BIOS reads the information in the next boot process and informs the operating system through an industry standard interface, obviously, the mode is complex and low in efficiency, and the use requirement cannot be completely met.
Disclosure of Invention
The purpose of the invention is as follows: aiming at the defects in the prior art, the invention aims to provide a method for automatically updating the serial number of a local computer from a network when a BIOS is started in a factory mode, which can improve the factory efficiency, improve the yield and meet the use requirement.
The technical scheme is as follows: in order to realize the purpose of the invention, the technical scheme is as follows:
a method for automatically updating local serial numbers from a network when a BIOS is started in a factory mode comprises the following steps:
1) on a factory production line, a machine station is provided with a brand-new BIOS program, and is plugged with a network cable and started;
2) the BIOS automatically enters an updating state;
3) the updating module is connected with a server of a factory, informs the information of the model, version and the like of the updating module, and requests a serial number from the server;
4) the server inquires the database after receiving the information, allocates a unique serial number of the whole plant and transmits the number back to the machine;
5) if the server cannot timely return the information, trying for 3 times, if the information is not returned within the expected time within 3 times, restarting the machine, and restarting from the step 2);
6) after the machine station successfully receives the serial number, recording the serial number in a nonvolatile storage area of the machine station, and marking an update mark of the serial number as true;
7) restarting the machine, reading the serial number in the nonvolatile storage area if the BIOS identifies that the serial number updating mark is not 0 or null, and filling the serial number into an interface defined by the industry specification;
8) after the operating system is started, the application program reads the serial number, queries a company server, obtains the date of the computer leaving factory, calculates the warranty period and displays the warranty period for a user.
In step 1), the procedure for installing a brand-new BIOS program on the machine is as follows: building a serial number server, opening a DHCP service, and waiting for a request of a client; applying for a section of nonvolatile storage area in the BIOS, and defaulting to be the value 0 xFF; the BIOS is flushed into the SPI ROM of the machine.
In the method for automatically updating the serial number of the local computer from the network when the BIOS is started up in the factory mode, the BIOS reads the first byte of the nonvolatile storage area, finds that the first byte is not 0xFC, indicates that the serial number does not exist currently or the last serial number fails to be updated, and starts the serial number to enter a serial number updating mode; if the updating fails, all data in the area is erased, and the data block is restored to be all 0 xFF.
In step 3), loading the UNDI driver of the network card and the network protocol stack by the BIOS so that the current network card can obtain an effective IP address and the IP address of the server; the type of the BIOS is pre-selected in the BIOS and is sent to a server as a parameter; the request frame contains a fixed header flag, a command word, a data length, a BIOS model string, a fixed end flag, and a data checksum.
In step 4), after receiving the message, the server looks up a table according to the BIOS model, finds the named prefix of the model and the current serial number, adds one to form a character string together with the prefix, and forms a sending frame of the client: the method comprises the steps of head marking, command words, data length, serial number character strings, fixed ending and data check sum, and sending the frame to a client.
In step 5), after the BIOS sends the request frame, checking the arrival of the response frame every 200 milliseconds, and waiting for 3 seconds at most; if the response frame is not waited for within 3 seconds or the data structure is not correct, the request is retransmitted; if none of the 3 times is successful, restarting, and restarting from step 2).
And 6), taking out the sequence number from the received response frame without problems. The first byte of the non-volatile area is written as 0xFE, indicating that the sequence number string is to be written immediately. The serial number string is written in the nonvolatile area starting from the second byte. The first byte of the non-volatile area is written as 0xFC, indicating that the write is complete.
Step 7), sending a sequence number confirmation to the server, wherein the format request frame: a header mark, a command word, a data length, a serial number character string, a fixed end and a data checksum; to prevent the server from failing, this command is sent 3 times in a burst with a pause of 50 milliseconds in between; after receiving the serial number, the server marks the serial number as used; the server periodically recycles the sequence numbers that have been sent out but not acknowledged.
Step 8), BIOS fills the serial number into the serial number field of the compact table type1 and re-issues the type.
Has the advantages that: compared with the prior art, the method for automatically updating the serial number of the local computer from the network when the BIOS is started in the factory mode has the advantages that the factory does not need to print the bar code of the serial number of the machine table in advance, production line workers do not need to use a code scanning gun to input the bar code, the factory customized DOS system environment does not need to be entered in order to write the serial number, only the network cable needs to be inserted in advance and the local computer is started normally, the BIOS is networked to read the unique serial number, unnecessary processes are reduced, the factory efficiency is improved, the yield is increased, and the method has good practicability.
Drawings
FIG. 1 is a flow chart of a method for BIOS power-on to automatically update a native serial number from a network in factory mode.
Detailed Description
The invention is further described below with reference to the accompanying drawings.
Example 1
As shown in fig. 1, the method for automatically updating the local serial number from the network when the BIOS is powered on in the factory mode includes the following steps:
1) on a factory production line, a machine station is brushed with a brand-new BIOS program, and is plugged with a network cable and started.
2) Because of the new BIOS, the serial number update flag is false (0), at which time the BIOS automatically enters the update state.
3) The update module is connected with a server of the factory, informs the information of the model, version and the like of the update module, and requests a serial number from the server.
4) The server inquires the database after receiving the information, allocates a unique serial number of the whole plant, and transmits the number back to the machine.
5) The server may not return the information in time due to the large access amount, etc., and the attempt is made 3 times, if none of the 3 times returns within the expected time, the machine is restarted, and the process is restarted from step 2.
6) After the machine station successfully receives the serial number, the number is recorded in a nonvolatile storage area of the machine station, and the serial number updating mark is recorded as true.
7) And restarting the machine, wherein the BIOS finds that the serial number update mark is not 0 or null, and knows that the serial number is written, so that the serial number is read from the nonvolatile storage area and is filled in an interface defined by the industry specification.
8) After the operating system is started, the application program reads the serial number, queries a company server, obtains the date of the computer leaving factory, calculates the warranty period and displays the warranty period for a user.
Example 2
The method for automatically updating the local serial number from the network when the BIOS is started in a factory mode comprises the following steps:
1) and (4) building a serial number server, opening a DHCP service, and waiting for a request of a client.
2) The BIOS applies for a section of non-volatile storage, which is generally to find a ROM area that is not used yet, because the characteristics of flash, where it is not used, generally has a value of 0xFF, this section of area is defaulted to have a value of 0xFF in its entirety.
3) The BIOS is flushed into the SPI ROM of the machine station, and the machine station is started.
4) The BIOS reads the first byte of the nonvolatile storage area in the step 2), finds that the first byte is not 0xFC, indicates that no serial number exists currently or the last serial number update fails, and starts to enter a serial number update mode this time. If the updating fails, all data in the area is erased, and the data block is restored to be all 0 xFF.
5) The BIOS loads the network driver and service so that the current network card can obtain an effective IP address and the IP address of the server.
6) The model of the BIOS has been pre-selected within the BIOS and is now sent to the server as a parameter. This request frame contains a fixed header tag (0 xAA), a command word (0 x 01), a data length, a BIOS model string, a fixed end tag (0 x 55), and a data checksum.
7) After receiving the message, the server looks up the table according to the BIOS model, finds the named prefix of the model and the current serial number, adds the named prefix and the current serial number to form a character string together with the prefix, and forms a sending frame similar to the client: header flag (0 xAA), command word (0 x 81), data length, sequence number string, fixed end (0 x 55), data checksum. This frame is sent to the client.
8) After the BIOS sends the request frame, it checks the arrival of the response frame every 200 milliseconds, waiting for a maximum of 3 seconds. If the response frame is not waited for within 3 seconds or the data structure is not correct, the request is retransmitted. If none of the 3 times is successful, restart from step 4).
9) The received response frame has no problem, from which the sequence number is extracted. The first byte of the non-volatile area is written as 0xFE, indicating that the sequence number string is to be written immediately. The serial number string is written in the nonvolatile area starting from the second byte. The first byte of the non-volatile area is written as 0xFC, indicating that the write is complete.
10) Sending a sequence number confirmation to the server, with a format similar to the request frame: header flag (0 xAA), command word (0 x 02), data length, sequence number string, fixed end (0 x 55), data checksum. To prevent the server from failing, this command is sent 3 times in a burst with a pause of 50 milliseconds in between.
11) The server marks the sequence number as used upon receipt. The server periodically recycles the sequence numbers that have been sent out but not acknowledged.
12) BIOS fills this sequence number into the serial number field of compact table type1 and re-issues this type.
13) And continuing to start, and ending the function.
By adopting the method, a factory does not need to print the bar code of the serial number of the machine in advance, a production line worker does not need to use a code scanning gun to input the bar code, a factory-customized DOS environment is not needed to be entered for writing the serial number, and only a network cable needs to be plugged in advance and normally started up, and the BIOS reads the unique serial number by networking. Unnecessary processes are reduced, the factory efficiency is improved, and the yield is improved.

Claims (8)

1. A method for automatically updating a local serial number from a network when a BIOS is started in a factory mode is characterized by comprising the following steps:
1) on a factory production line, a machine station is provided with a brand-new BIOS program, and is plugged with a network cable and started;
2) the BIOS automatically enters an updating state;
3) the updating module is connected with a server of a factory, informs the model and version information of the updating module, and requests a serial number from the server;
4) the server inquires the database after receiving the information, allocates a unique serial number of the whole plant and transmits the number back to the machine;
5) if the server cannot timely return the information, trying for 3 times, if the information is not returned within the expected time within 3 times, restarting the machine, and restarting from the step 2);
6) after the machine station successfully receives the serial number, recording the serial number in a nonvolatile storage area of the machine station, and marking an update mark of the serial number as true;
7) restarting the machine, reading the serial number in the nonvolatile storage area if the BIOS identifies that the serial number updating mark is not 0 or null, and filling the serial number into an interface defined by the industry specification;
8) after the operating system is started, the application program reads the serial number, queries a company server to obtain the date of the computer leaving factory, calculates the warranty period and displays the warranty period to a user;
in step 3), loading the UNDI driver of the network card and the network protocol stack by the BIOS so that the current network card obtains an effective IP address and the IP address of the server; the type of the BIOS is pre-selected in the BIOS and is sent to a server as a parameter; the request frame contains a fixed header flag, a command word, a data length, a BIOS model string, a fixed end flag, and a data checksum.
2. The method of claim 1, wherein the BIOS in factory mode automatically updates the native serial number from the network upon power-up, further comprising: in step 1), the procedure for installing a brand-new BIOS program on the machine is as follows: building a serial number server, opening a DHCP service, and waiting for a request of a client; applying for a section of nonvolatile storage area in the BIOS, and defaulting to be the value 0 xFF; the BIOS is flushed into the SPI ROM of the machine.
3. The method of claim 2, wherein the BIOS in factory mode automatically updates the native serial number from the network upon power-up, further comprising: reading a first byte of a nonvolatile storage area by the BIOS, finding that the first byte is not 0xFC, indicating that no serial number exists currently or the serial number is failed to be updated last time, and starting the BIOS to enter a serial number updating mode; if the updating fails, all data in the area is erased, and the data block is restored to be all 0 xFF.
4. The method of claim 1, wherein the BIOS in factory mode automatically updates the native serial number from the network upon power-up, further comprising: in step 4), after receiving the message, the server looks up a table according to the BIOS model, finds the named prefix of the model and the current serial number, adds one to form a character string together with the prefix, and forms a sending frame of the client: the method comprises the steps of head marking, command words, data length, serial number character strings, fixed ending and data check sum, and sending the frame to a client.
5. The method of claim 1, wherein the BIOS in factory mode automatically updates the native serial number from the network upon power-up, further comprising: in step 5), after the BIOS sends the request frame, checking the arrival of the response frame every 200 milliseconds, and waiting for 3 seconds at most; if the response frame is not waited for within 3 seconds or the data structure is not correct, the request is retransmitted; if none of the 3 times is successful, restarting, and restarting from step 2).
6. The method of claim 1, wherein the BIOS in factory mode automatically updates the native serial number from the network upon power-up, further comprising: in step 6), the received response frame has no problem, and the sequence number is taken out; writing the first byte of the nonvolatile area as 0xFE, which indicates that a sequence number character string is to be written immediately; writing a serial number character string in the nonvolatile area from the second byte; the first byte of the non-volatile area is written as 0xFC, indicating that the write is complete.
7. The method of claim 1, wherein the BIOS in factory mode automatically updates the native serial number from the network upon power-up, further comprising: step 7), sending a sequence number confirmation to the server, wherein the format request frame: a header mark, a command word, a data length, a serial number character string, a fixed end and a data checksum; to prevent the server from failing, this command is sent 3 times in a burst with a pause of 50 milliseconds in between; after receiving the serial number, the server marks the serial number as used; the server periodically recycles the sequence numbers that have been sent out but not acknowledged.
8. The method of claim 1, wherein the BIOS in factory mode automatically updates the native serial number from the network upon power-up, further comprising: step 8), BIOS fills the serial number into the serial number field of the compact table type1 and re-issues the type.
CN201810312876.8A 2018-04-09 2018-04-09 Method for automatically updating local serial number from network when BIOS is started in factory mode Active CN108664260B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810312876.8A CN108664260B (en) 2018-04-09 2018-04-09 Method for automatically updating local serial number from network when BIOS is started in factory mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810312876.8A CN108664260B (en) 2018-04-09 2018-04-09 Method for automatically updating local serial number from network when BIOS is started in factory mode

Publications (2)

Publication Number Publication Date
CN108664260A CN108664260A (en) 2018-10-16
CN108664260B true CN108664260B (en) 2021-08-17

Family

ID=63783184

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810312876.8A Active CN108664260B (en) 2018-04-09 2018-04-09 Method for automatically updating local serial number from network when BIOS is started in factory mode

Country Status (1)

Country Link
CN (1) CN108664260B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109582333A (en) * 2018-11-28 2019-04-05 合肥华凌股份有限公司 The method of refrigerator software upgrading, medium on refrigerator production line and production line
CN110673861B (en) * 2019-08-12 2022-03-18 深圳市国科亿道科技有限公司 Protection method based on BIOS software
CN114462104B (en) * 2021-12-30 2023-11-14 苏州浪潮智能科技有限公司 Client SN confirmation method and device and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101667126A (en) * 2008-09-03 2010-03-10 神讯电脑(昆山)有限公司 Method for burning computer serial number
CN105357267A (en) * 2015-09-30 2016-02-24 浪潮集团有限公司 Method, device and system for obtaining server information
CN105589699A (en) * 2014-10-20 2016-05-18 中兴通讯股份有限公司 Serial number information update method, device and terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7908469B2 (en) * 2005-03-30 2011-03-15 Inventec Corporation Method for executing power on self test on a computer system and updating SMBIOS information partially

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101667126A (en) * 2008-09-03 2010-03-10 神讯电脑(昆山)有限公司 Method for burning computer serial number
CN105589699A (en) * 2014-10-20 2016-05-18 中兴通讯股份有限公司 Serial number information update method, device and terminal
CN105357267A (en) * 2015-09-30 2016-02-24 浪潮集团有限公司 Method, device and system for obtaining server information

Also Published As

Publication number Publication date
CN108664260A (en) 2018-10-16

Similar Documents

Publication Publication Date Title
CN108664260B (en) Method for automatically updating local serial number from network when BIOS is started in factory mode
US7873956B2 (en) Communication terminal and communication network for partially updating software, software update method, and software creation device and method therefor
US11270289B2 (en) Method and apparatus for recovering incomplete transaction
US20080040495A1 (en) System, method and program for field service of computers
CN110618830A (en) Remote upgrading method and system based on NBIOT network
CN110750285B (en) Firmware upgrading method, device, computer equipment and storage medium
CN106952425A (en) A kind of terminal remote upgrade method and POS terminal
CN110096290A (en) A kind of battery simulator master control borad method for upgrading software
CN113179304A (en) Message issuing method, system, device and storage medium
CN106293622B (en) Power failure self-recovery air upgrading method and device
CN109462661B (en) Data synchronization method and device, computer equipment and storage medium
CN106130771B (en) Method for upgrading FLASH on line based on in-band Ethernet
CN109905430A (en) A kind of method for upgrading software and system
CN110851149A (en) Method and system for installing cloud printing driver and computer equipment
CN111124540A (en) Dynamic configuration method and service request forwarding method of service control system
JP2001249855A (en) Method for rewriting data of nonvolatile memory and subscriber circuit
JP2000215034A (en) Printer and its program updating method
US20070046984A1 (en) Data processing apparatus, data input control method thereof, information processing device, and program for implementing the method
CN112905498A (en) Processing method, processing device, electronic equipment and storage medium
JP4258312B2 (en) Image forming apparatus and program update history management method thereof
CN101854442A (en) Network device and firmware updating method thereof
CN101296448A (en) Terminal software upgrading method and device
JP4388100B2 (en) Mobile phone
CN109901117A (en) A kind of radar method for restarting and device
JP2006127105A (en) Method of installing firmware into electronic apparatus and printed circuit board

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