CN111258664A - Method, system, terminal and storage medium for completely acquiring memory serial number - Google Patents
Method, system, terminal and storage medium for completely acquiring memory serial number Download PDFInfo
- Publication number
- CN111258664A CN111258664A CN202010060597.4A CN202010060597A CN111258664A CN 111258664 A CN111258664 A CN 111258664A CN 202010060597 A CN202010060597 A CN 202010060597A CN 111258664 A CN111258664 A CN 111258664A
- Authority
- CN
- China
- Prior art keywords
- memory
- serial number
- file
- bios
- memory serial
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 238000013507 mapping Methods 0.000 claims abstract description 30
- 238000012986 modification Methods 0.000 claims description 11
- 230000004048 modification Effects 0.000 claims description 11
- 230000000694 effects Effects 0.000 claims description 6
- 230000008676 import Effects 0.000 claims description 6
- 238000004590 computer program Methods 0.000 claims description 3
- 230000006870 function Effects 0.000 abstract description 7
- 238000004891 communication Methods 0.000 description 5
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000006467 substitution reaction Methods 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- KOOAFHGJVIVFMZ-WZPXRXMFSA-M micafungin sodium Chemical compound [Na+].C1=CC(OCCCCC)=CC=C1C1=CC(C=2C=CC(=CC=2)C(=O)N[C@@H]2C(N[C@H](C(=O)N3C[C@H](O)C[C@H]3C(=O)N[C@H](C(=O)N[C@H](C(=O)N3C[C@H](C)[C@H](O)[C@H]3C(=O)N[C@H](O)[C@H](O)C2)[C@H](O)CC(N)=O)[C@H](O)[C@@H](O)C=2C=C(OS([O-])(=O)=O)C(O)=CC=2)[C@@H](C)O)=O)=NO1 KOOAFHGJVIVFMZ-WZPXRXMFSA-M 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
Description
技术领域technical field
本发明涉及服务器技术领域,具体涉及一种内存序列号完整获取方法、系统、终端及存储介质。The invention relates to the technical field of servers, in particular to a method, system, terminal and storage medium for obtaining a complete memory serial number.
背景技术Background technique
内存(Memory)也被称为内存储器和主存储器,其作用是用于暂时存放CPU中的运算数据,以及与硬盘等外部存储器交换的数据,它是其他部件与CPU进行沟通的桥梁,计算机中所有程序的运行都是在内存中进行的。只要计算机在运行中,CPU就会把需要运算的数据调到内存中进行运算,当运算完成后CPU再将结果传送出来,因此内存的性能对计算机的影响非常大,内存的运行也决定了计算机的稳定运行,所以内存条的使用和管控在服务器制造厂商里就显得尤为重要,需要详细记录每台服务器的内存槽位和序列号,便于工厂维修定位、客户追溯等。当前有两种办法记录内存序列号,一种是在组装阶段通过人工扫描,也就是在工厂的生产现场管理系统(SFCS)中开发相应功能,提示作业员人工扫描内存条上黏贴的标签,获取内存序列号,并与整机的序列号建立绑定关系,另一种是通过读取SMBIOS中的信息获取内存序列号,不过SMBIOS中显示的内存序列号只有8位,正常内存有15或18位之多,所以只有8位不能完全定位内存批次。Memory (Memory) is also called internal memory and main memory. Its function is to temporarily store the operation data in the CPU and the data exchanged with external memory such as hard disks. It is a bridge for other components to communicate with the CPU. All programs are run in memory. As long as the computer is running, the CPU will transfer the data that needs to be calculated into the memory for calculation. When the calculation is completed, the CPU will transmit the result. Therefore, the performance of the memory has a great influence on the computer, and the operation of the memory also determines the computer. Therefore, the use and control of memory modules are particularly important in server manufacturers. It is necessary to record the memory slot and serial number of each server in detail, which is convenient for factory maintenance and positioning, and customer traceability. There are currently two ways to record the serial number of the memory. One is to manually scan during the assembly stage, that is, to develop a corresponding function in the factory's production site management system (SFCS) to prompt the operator to manually scan the label pasted on the memory stick. Obtain the memory serial number and establish a binding relationship with the serial number of the whole machine. The other is to obtain the memory serial number by reading the information in the SMBIOS, but the memory serial number displayed in the SMBIOS is only 8 digits, and the normal memory has 15 or As many as 18 bits, so only 8 bits can't fully locate the memory batch.
因此当前获取内存序列号的方法存在需要人工操作效率低下,以及内存序列号获取不完整的问题。Therefore, the current method for obtaining the memory serial number has the problems that manual operation is required and the efficiency is low, and the acquisition of the memory serial number is incomplete.
发明内容SUMMARY OF THE INVENTION
针对现有技术的上述不足,本发明提供一种内存序列号完整获取方法、系统、终端及存储介质,以解决上述技术问题。In view of the above shortcomings of the prior art, the present invention provides a complete acquisition method, system, terminal and storage medium of a memory serial number to solve the above technical problems.
第一方面,本发明提供一种内存序列号完整获取方法,包括:In a first aspect, the present invention provides a method for obtaining a complete memory serial number, including:
通过修改BIOS配置关闭thermal throttling服务;Turn off the thermal throttling service by modifying the BIOS configuration;
创建内存子地址的映射文件;Create a mapped file of memory subaddresses;
根据PCI中的bus值查找相应的内存序列号位置;Find the corresponding memory serial number location according to the bus value in PCI;
根据所述内存序列号位置和内存序列号字节顺序从所述映射文件读取内存序列号。The memory serial number is read from the mapping file according to the memory serial number position and the memory serial number byte order.
进一步的,所述通过修改BIOS配置关闭thermal throttling服务,包括:Further, turning off the thermal throttling service by modifying the BIOS configuration includes:
利用工具SCELNX_64将BIOS设置项导出,保存为BIOS设置项文件;Use the tool SCELNX_64 to export the BIOS setting item and save it as a BIOS setting item file;
将BIOS设置项文件中Throttling Mode项的Options状态修改为Disable状态;Change the Options status of the Throttling Mode item in the BIOS setting file to Disable status;
将修改后的BIOS设置项文件导入BIOS设置,并重启服务器令BIOS设置生效。Import the modified BIOS setting item file into the BIOS setting, and restart the server to make the BIOS setting take effect.
进一步的,所述根据PCI中的bus值查找相应的内存序列号位置,包括:Further, searching for the corresponding memory serial number position according to the bus value in the PCI includes:
获取PCI中的第一bus信息和第二bus信息;Obtain the first bus information and the second bus information in PCI;
读取第二bus对应的配置空间数据,确认存在内存硬件;Read the configuration space data corresponding to the second bus to confirm the existence of memory hardware;
根据第一bus信息定位在映射文件的读取数据区。It is located in the read data area of the mapping file according to the first bus information.
进一步的,所述根据内存序列号位置和内存序列号字节顺序从所述映射文件读取内存序列号,包括:Further, the reading of the memory serial number from the mapping file according to the memory serial number position and the byte order of the memory serial number includes:
对所述映射文件的数据从所述内存序列号位置开始循环递进读取;The data of the mapping file is read cyclically and progressively from the memory serial number position;
将每次读取的字节字符串值保存并整合。Save and consolidate the byte string value of each read.
进一步的,在读取内存序列号之后,所述方法还包括:Further, after reading the memory serial number, the method further includes:
通过将BIOS的配置还原打开thermal throttling服务。Turn on the thermal throttling service by restoring the BIOS configuration.
第二方面,本发明提供一种内存序列号完整获取系统,包括:In a second aspect, the present invention provides a system for obtaining a complete memory serial number, including:
选项修改单元,配置用于通过修改BIOS配置关闭thermal throttling服务;The option modification unit is configured to turn off the thermal throttling service by modifying the BIOS configuration;
映射创建单元,配置用于创建内存子地址的映射文件;The mapping creation unit configures the mapping file used to create memory sub-addresses;
位置查找单元,配置用于根据PCI中的bus值查找相应的内存序列号位置;The location finding unit is configured to find the corresponding memory serial number location according to the bus value in the PCI;
序列读取单元,配置用于根据所述内存序列号位置和内存序列号字节顺序从所述映射文件读取内存序列号。A sequence reading unit configured to read the memory sequence number from the mapping file according to the memory sequence number position and the memory sequence number byte order.
进一步的,所述选项修改单元包括:Further, the option modification unit includes:
文件导出模块,配置用于利用工具SCELNX_64将BIOS设置项导出,保存为BIOS设置项文件;The file export module is configured to use the tool SCELNX_64 to export the BIOS setting item and save it as a BIOS setting item file;
文件修改模块,配置用于将BIOS设置项文件中Throttling Mode项的Options状态修改为Disable状态;The file modification module is configured to modify the Options state of the Throttling Mode item in the BIOS setting item file to the Disable state;
文件导入模块,配置用于将修改后的BIOS设置项文件导入BIOS设置,并重启服务器令BIOS设置生效。The file importing module is configured to import the modified BIOS setting item file into the BIOS setting, and restart the server to make the BIOS setting take effect.
进一步的,所述位置查找单元包括:Further, the location finding unit includes:
bus获取模块,配置用于获取PCI中的第一bus信息和第二bus信息;The bus acquisition module is configured to acquire the first bus information and the second bus information in the PCI;
内存校验模块,配置用于读取第二bus对应的配置空间数据,确认存在内存硬件;The memory verification module is configured to read the configuration space data corresponding to the second bus to confirm the existence of memory hardware;
位置生成模块,配置用于根据第一bus信息定位在映射文件的读取数据区。The location generation module is configured to locate in the read data area of the mapping file according to the first bus information.
第三方面,提供一种终端,包括:In a third aspect, a terminal is provided, including:
处理器、存储器,其中,processor, memory, which,
该存储器用于存储计算机程序,The memory is used to store computer programs,
该处理器用于从存储器中调用并运行该计算机程序,使得终端执行上述的终端的方法。The processor is used to call and run the computer program from the memory, so that the terminal executes the above-mentioned method of the terminal.
第四方面,提供了一种计算机存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述各方面所述的方法。In a fourth aspect, a computer storage medium is provided, and instructions are stored in the computer-readable storage medium, which, when executed on a computer, cause the computer to perform the methods described in the above aspects.
本发明的有益效果在于,The beneficial effect of the present invention is that,
本发明提供的内存序列号完整获取方法、系统、终端及存储介质,通过自动修改BIOS选项值关闭thermal throttling服务,并创建内存子地址的映射文件实现对内存信息的快速读取,同时根据PCI中读取的bus值对内存序列号进行定位,根据定位信息和内存序列号的特有属性即可从内存子地址的映射文件中读取完整的内存序列号。本发明能够自动读取完整的内存序列号,不用操作员在组装阶段人工扫描,提高了组装效率,节省了人力成本;也可以获取完整的内存序列号信息,能够起到有效记录、定位和追溯内存的作用。The complete acquisition method, system, terminal and storage medium of the memory serial number provided by the present invention closes the thermal throttling service by automatically modifying the BIOS option value, and creates a mapping file of memory sub-addresses to realize fast reading of memory information, and at the same time according to the PCI The read bus value locates the memory serial number, and the complete memory serial number can be read from the mapping file of the memory sub-address according to the positioning information and the unique attribute of the memory serial number. The present invention can automatically read the complete memory serial number without manual scanning by the operator in the assembly stage, thereby improving the assembly efficiency and saving labor costs; it can also obtain the complete memory serial number information, which can effectively record, locate and trace role of memory.
此外,本发明设计原理可靠,结构简单,具有非常广泛的应用前景。In addition, the present invention has reliable design principle and simple structure, and has a very wide application prospect.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. In other words, other drawings can also be obtained based on these drawings without creative labor.
图1是本发明一个实施例的方法的示意性流程图。FIG. 1 is a schematic flowchart of a method according to an embodiment of the present invention.
图2是本发明一个实施例的系统的示意性框图。FIG. 2 is a schematic block diagram of a system according to an embodiment of the present invention.
图3为本发明实施例提供的一种终端的结构示意图。FIG. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本发明中的技术方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to make those skilled in the art better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
对本发明出现的名词进行解释。The terms appearing in the present invention are explained.
PCI是Peripheral Component Interconnect(外设部件互连标准)的缩写,它是目前个人电脑中使用最为广泛的接口。PCI is the abbreviation of Peripheral Component Interconnect (peripheral component interconnect standard), which is the most widely used interface in personal computers.
图1是本发明一个实施例的方法的示意性流程图。其中,图1执行主体可以为一种内存序列号完整获取系统。FIG. 1 is a schematic flowchart of a method according to an embodiment of the present invention. Wherein, the execution body of FIG. 1 may be a complete acquisition system of the memory serial number.
如图1所示,该方法100包括:As shown in Figure 1, the method 100 includes:
步骤110,通过修改BIOS配置关闭thermal throttling服务;
步骤120,创建内存子地址的映射文件;
步骤130,根据PCI中的bus值查找相应的内存序列号位置;
步骤140,根据所述内存序列号位置和内存序列号字节顺序从所述映射文件读取内存序列号。Step 140: Read the memory serial number from the mapping file according to the location of the memory serial number and the byte order of the memory serial number.
为了便于对本发明的理解,下面以本发明内存序列号完整获取方法的原理,结合实施例中对内存序列号进行完整获取的过程,对本发明提供的内存序列号完整获取方法做进一步的描述。In order to facilitate the understanding of the present invention, the method for obtaining the complete memory serial number provided by the present invention is further described below based on the principle of the complete memory serial number acquisition method of the present invention and the process of complete acquisition of the memory serial number in the embodiment.
具体的,所述内存序列号完整获取方法包括:Specifically, the complete acquisition method of the memory serial number includes:
S1、通过修改BIOS配置关闭thermal throttling服务。S1. Turn off the thermal throttling service by modifying the BIOS configuration.
开机进入操作系统,编写脚本修改BIOS设置,关闭thermal throttling,首先用工具SCELNX_64将BIOS设置项导出,命令为SCELNX_6/o/s bios.txt,打开bios.txt,修改Throttling Mode字段,讲Options修改为Disable,然后用命令SCELNX_6/i/s bios.txt讲BIOS设置导入,再控制机器重启。Boot into the operating system, write a script to modify the BIOS settings, turn off thermal throttling, first use the tool SCELNX_64 to export the BIOS settings, the command is SCELNX_6/o/s bios.txt, open bios.txt, modify the Throttling Mode field, and modify the Options to Disable, and then use the command SCELNX_6/i/s bios.txt to import the BIOS settings, and then control the machine to restart.
S2、创建内存子地址的映射文件。S2. Create a mapping file of memory sub-addresses.
首先,映射linux目录下"/sys/firmware/acpi/tables/MCFG"文件(内存子地址文件)到"/dev/mem"中,此后可以通过/dev/mem来进行读写操作。First, map the "/sys/firmware/acpi/tables/MCFG" file (memory subaddress file) in the linux directory to "/dev/mem", and then read and write operations can be performed through /dev/mem.
S3、根据PCI中的bus值查找相应的内存序列号位置。S3. Find the corresponding memory serial number position according to the bus value in the PCI.
遍历256个bus号,根据bus/dev/fun读出cpu的类型,读取pci中bus/dev/fun以及偏移量为的0xCC的值,右移8位,和0xFF做与运算,得出bus1,bus1指向内存序列号在映射文件的存储位置;再右移16位,和0xFF做与运算,得出bus2,根据imc->channel->dimm顺序循环做遍历,读取bus2下imc/channel/dimm对应的配置空间中的数据,如果最高位为1,则读取成功,即此imc/channel/dimm下有内存。Traverse 256 bus numbers, read the type of cpu according to bus/dev/fun, read the value of bus/dev/fun in pci and the value of 0xCC whose offset is 0xCC, shift 8 bits to the right, and do an AND operation with 0xFF to get bus1, bus1 points to the storage location of the memory serial number in the mapped file; then shift 16 bits to the right, and do an AND operation with 0xFF to get bus2, traverse according to the order of imc->channel->dimm, and read imc/channel under bus2 The data in the configuration space corresponding to /dimm, if the highest bit is 1, the read is successful, that is, there is memory under this imc/channel/dimm.
S4、根据所述内存序列号位置和内存序列号字节顺序从所述映射文件读取内存序列号。S4. Read the memory serial number from the mapping file according to the location of the memory serial number and the byte order of the memory serial number.
内存的SN为9字节字符串数据,根据bus1以及SN的字节顺序和内存子地址在映射的“/dev/mem”中的数据区读取SN中指定的字节字符串值,循环9次,每次字节顺序加1,获取出所有的SN的字节字符串值。The SN of the memory is 9-byte string data. According to the byte order of bus1 and SN and the memory subaddress, read the byte string value specified in the SN in the data area in the mapped "/dev/mem", loop 9 times, the byte order is incremented by 1 each time, and all the byte string values of SN are obtained.
S5、修改BIOS设置,打开thermal throttling,用工具SCELNX_64将BIOS设置项导出,命令为SCELNX_6/o/s bios.txt,打开bios.txt,修改Throttling Mode字段,讲Options修改为CLTT,再用命令SCELNX_6/i/s bios.txt讲BIOS设置项导入,然后控制机器重启,还原BIOS设置。S5. Modify the BIOS settings, open thermal throttling, use the tool SCELNX_64 to export the BIOS settings, the command is SCELNX_6/o/s bios.txt, open bios.txt, modify the Throttling Mode field, and modify the Options to CLTT, and then use the command SCELNX_6 /i/s bios.txt tells about importing the BIOS settings, and then controls the machine to restart and restore the BIOS settings.
如图2示,该系统200包括:As shown in Figure 2, the system 200 includes:
选项修改单元210,配置用于通过修改BIOS配置关闭thermal throttling服务;The option modification unit 210 is configured to close the thermal throttling service by modifying the BIOS configuration;
映射创建单元220,配置用于创建内存子地址的映射文件;a mapping creation unit 220, configured to create a mapping file of memory sub-addresses;
位置查找单元230,配置用于根据PCI中的bus值查找相应的内存序列号位置;The location finding unit 230 is configured to find the corresponding memory serial number location according to the bus value in the PCI;
序列读取单元240,配置用于根据所述内存序列号位置和内存序列号字节顺序从所述映射文件读取内存序列号。The sequence reading unit 240 is configured to read the memory sequence number from the mapping file according to the memory sequence number position and the memory sequence number byte order.
可选地,作为本发明一个实施例,所述选项修改单元包括:Optionally, as an embodiment of the present invention, the option modification unit includes:
文件导出模块,配置用于利用工具SCELNX_64将BIOS设置项导出,保存为BIOS设置项文件;The file export module is configured to use the tool SCELNX_64 to export the BIOS setting item and save it as a BIOS setting item file;
文件修改模块,配置用于将BIOS设置项文件中Throttling Mode项的Options状态修改为Disable状态;The file modification module is configured to modify the Options state of the Throttling Mode item in the BIOS setting item file to the Disable state;
文件导入模块,配置用于将修改后的BIOS设置项文件导入BIOS设置,并重启服务器令BIOS设置生效。The file importing module is configured to import the modified BIOS setting item file into the BIOS setting, and restart the server to make the BIOS setting take effect.
可选地,作为本发明一个实施例,所述位置查找单元包括:Optionally, as an embodiment of the present invention, the location finding unit includes:
bus获取模块,配置用于获取PCI中的第一bus信息和第二bus信息;The bus acquisition module is configured to acquire the first bus information and the second bus information in the PCI;
内存校验模块,配置用于读取第二bus对应的配置空间数据,确认存在内存硬件;The memory verification module is configured to read the configuration space data corresponding to the second bus to confirm the existence of memory hardware;
位置生成模块,配置用于根据第一bus信息定位在映射文件的读取数据区。The location generation module is configured to locate in the read data area of the mapping file according to the first bus information.
图3为本发明实施例提供的一种终端系统300的结构示意图,该终端系统300可以用于执行本发明实施例提供的内存序列号完整获取方法。FIG. 3 is a schematic structural diagram of a
其中,该终端系统300可以包括:处理器310、存储器320及通信单元330。这些组件通过一条或多条总线进行通信,本领域技术人员可以理解,图中示出的服务器的结构并不构成对本发明的限定,它既可以是总线形结构,也可以是星型结构,还可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。The
其中,该存储器320可以用于存储处理器310的执行指令,存储器320可以由任何类型的易失性或非易失性存储终端或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。当存储器320中的执行指令由处理器310执行时,使得终端300能够执行以下上述方法实施例中的部分或全部步骤。Wherein, the
处理器310为存储终端的控制中心,利用各种接口和线路连接整个电子终端的各个部分,通过运行或执行存储在存储器320内的软件程序和/或模块,以及调用存储在存储器内的数据,以执行电子终端的各种功能和/或处理数据。所述处理器可以由集成电路(Integrated Circuit,简称IC)组成,例如可以由单颗封装的IC所组成,也可以由连接多颗相同功能或不同功能的封装IC而组成。举例来说,处理器310可以仅包括中央处理器(Central Processing Unit,简称CPU)。在本发明实施方式中,CPU可以是单运算核心,也可以包括多运算核心。The
通信单元330,用于建立通信信道,从而使所述存储终端可以与其它终端进行通信。接收其他终端发送的用户数据或者向其他终端发送用户数据。The
本发明还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时可包括本发明提供的各实施例中的部分或全部步骤。所述的存储介质可为磁碟、光盘、只读存储记忆体(英文:read-only memory,简称:ROM)或随机存储记忆体(英文:random access memory,简称:RAM)等。The present invention also provides a computer storage medium, wherein the computer storage medium can store a program, and when the program is executed, it can include some or all of the steps in the embodiments provided by the present invention. The storage medium may be a magnetic disk, an optical disk, a read-only memory (English: read-only memory, ROM for short) or a random access memory (English: random access memory, RAM for short).
因此,本发明通过自动修改BIOS选项值关闭thermal throttling服务,并创建内存子地址的映射文件实现对内存信息的快速读取,同时根据PCI中读取的bus值对内存序列号进行定位,根据定位信息和内存序列号的特有属性即可从内存子地址的映射文件中读取完整的内存序列号。本发明能够自动读取完整的内存序列号,不用操作员在组装阶段人工扫描,提高了组装效率,节省了人力成本;也可以获取完整的内存序列号信息,能够起到有效记录、定位和追溯内存的作用,本实施例所能达到的技术效果可以参见上文中的描述,此处不再赘述。Therefore, the present invention closes the thermal throttling service by automatically modifying the BIOS option value, and creates a mapping file of the memory sub-address to realize the fast reading of the memory information, and simultaneously locates the memory serial number according to the bus value read in the PCI. Information and the unique properties of the memory serial number to read the complete memory serial number from the mapped file of the memory sub-address. The present invention can automatically read the complete memory serial number without manual scanning by the operator in the assembly stage, thereby improving the assembly efficiency and saving labor costs; it can also obtain the complete memory serial number information, which can effectively record, locate and trace For the role of the memory, the technical effects that can be achieved by this embodiment can be referred to the above description, and details are not repeated here.
本领域的技术人员可以清楚地了解到本发明实施例中的技术可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本发明实施例中的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中如U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质,包括若干指令用以使得一台计算机终端(可以是个人计算机,服务器,或者第二终端、网络终端等)执行本发明各个实施例所述方法的全部或部分步骤。Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention can be embodied in the form of software products in essence or in the parts that make contributions to the prior art. The computer software products are stored in a storage medium such as a USB flash drive, a mobile Hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes, including several instructions to make a computer terminal (It may be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.
本说明书中各个实施例之间相同相似的部分互相参见即可。尤其,对于终端实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例中的说明即可。It is sufficient to refer to each other for the same and similar parts among the various embodiments in this specification. In particular, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the description in the method embodiment.
在本发明所提供的几个实施例中,应该理解到,所揭露的系统和方法,可以通过其它的方式实现。例如,以上所描述的系统实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,系统或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed system and method may be implemented in other manners. For example, the system embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection between systems or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
尽管通过参考附图并结合优选实施例的方式对本发明进行了详细描述,但本发明并不限于此。在不脱离本发明的精神和实质的前提下,本领域普通技术人员可以对本发明的实施例进行各种等效的修改或替换,而这些修改或替换都应在本发明的涵盖范围内/任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。Although the present invention has been described in detail in conjunction with the preferred embodiments with reference to the accompanying drawings, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, those of ordinary skill in the art can make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions should all fall within the scope of the present invention/any Those skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should all be included within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010060597.4A CN111258664B (en) | 2020-01-19 | 2020-01-19 | Method, system, terminal and storage medium for completely acquiring memory serial number |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010060597.4A CN111258664B (en) | 2020-01-19 | 2020-01-19 | Method, system, terminal and storage medium for completely acquiring memory serial number |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111258664A true CN111258664A (en) | 2020-06-09 |
CN111258664B CN111258664B (en) | 2023-01-10 |
Family
ID=70954358
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010060597.4A Active CN111258664B (en) | 2020-01-19 | 2020-01-19 | Method, system, terminal and storage medium for completely acquiring memory serial number |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111258664B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111967223A (en) * | 2020-08-07 | 2020-11-20 | 苏州浪潮智能科技有限公司 | Method and device for generating BIOS option mapping number |
CN114546942A (en) * | 2022-01-28 | 2022-05-27 | 苏州浪潮智能科技有限公司 | Database data reading method and device, terminal and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105589699A (en) * | 2014-10-20 | 2016-05-18 | 中兴通讯股份有限公司 | Serial number information update method, device and terminal |
CN109445865A (en) * | 2018-11-09 | 2019-03-08 | 郑州云海信息技术有限公司 | A kind of BIOS option remote batch setting method, device, terminal and storage medium |
-
2020
- 2020-01-19 CN CN202010060597.4A patent/CN111258664B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105589699A (en) * | 2014-10-20 | 2016-05-18 | 中兴通讯股份有限公司 | Serial number information update method, device and terminal |
CN109445865A (en) * | 2018-11-09 | 2019-03-08 | 郑州云海信息技术有限公司 | A kind of BIOS option remote batch setting method, device, terminal and storage medium |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111967223A (en) * | 2020-08-07 | 2020-11-20 | 苏州浪潮智能科技有限公司 | Method and device for generating BIOS option mapping number |
CN114546942A (en) * | 2022-01-28 | 2022-05-27 | 苏州浪潮智能科技有限公司 | Database data reading method and device, terminal and storage medium |
CN114546942B (en) * | 2022-01-28 | 2024-01-19 | 苏州浪潮智能科技有限公司 | Database data reading method, device, terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111258664B (en) | 2023-01-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103412769A (en) | External card parameter configuration method, equipment and system | |
US7188235B2 (en) | Method for booting computer system with memory card | |
CN112231005A (en) | Method for managing FPGA (field programmable Gate array) version based on UBOOT (Universal boot on Board) | |
CN111371610A (en) | A network card firmware batch refresh method, system, terminal and storage medium | |
CN111258664B (en) | Method, system, terminal and storage medium for completely acquiring memory serial number | |
CN114780316A (en) | Memory test method, device and system | |
CN115113943A (en) | Method, device, device and storage medium for determining matching degree of board and slot | |
CN115421750A (en) | Method, device, terminal and storage medium for noninductive upgrading of server firmware | |
CN112486785B (en) | Method, system, terminal and storage medium for positioning downtime phase of server | |
CN109783031B (en) | Method, device, terminal and storage medium for checking drive letter and slot number of RAID card | |
CN111858198A (en) | A multi-scheme memory plugging test method, system, terminal and storage medium | |
CN113900934B (en) | Multi-mirror hybrid refresh test method, system, terminal and storage medium | |
CN112667538B (en) | A method, system, device and medium for obtaining network card identification number | |
CN113778485B (en) | System operation method and device of electronic chip, electronic chip and storage medium | |
CN116610336A (en) | A firmware upgrade method, system, device and readable storage medium | |
CN116841629A (en) | A network card function configuration method, device and medium | |
CN115756620A (en) | A method, system, and related equipment for starting a server NVME hard disk | |
CN114721890A (en) | Memory performance testing method, system, terminal and storage medium | |
US20070169117A1 (en) | Firmware loading device | |
CN114461471A (en) | A method, device and medium for judging PCIE link training process state | |
CN111475208A (en) | Disk device naming method, system, terminal and storage medium | |
CN114816857B (en) | Method, system, terminal and storage medium for forcing BIOS to restore factory parameters | |
CN110555090B (en) | Method, system, terminal and storage medium for automatically acquiring CPU BUS Number | |
CN115061712B (en) | A method, device, terminal and storage medium for upgrading GPU CPLD based on BMC | |
US20250045373A1 (en) | Method and system for writing authentication information |
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 |